/* Landing page. Colour tokens, editor and grid styles come from workbench/app/styles.css. */

/* Brand type: Geist body 17px / 1.6, at most ~70 characters a line; Martian Mono for short labels. */
body.landing { overflow: auto; overflow-x: hidden; font-size: 17px; line-height: 1.6; }
.landing a { color: var(--link); text-decoration: none; }
.landing a:hover { text-decoration: underline; }
/* Links in body copy are underlined (brand rule). */
.landing p a, .landing li a, .landing .steps a { text-decoration: underline; text-underline-offset: 2px; }
.landing main { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.landing h1, .landing h2, .landing h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin: 0; }

.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--panel); color: var(--text) !important; border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.btn:hover { text-decoration: none !important; border-color: var(--border-strong); background: var(--panel-2); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary) !important; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); background: var(--primary); }
.btn.big { padding: 10px 18px; font-size: 15px; border-radius: 10px; }

/* header */
.site-head { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 10px 24px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-head .brand:hover { text-decoration: none; }
.site-head .brand img { height: 26px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14px; }
.site-nav > a:not(.btn) { color: var(--muted); }
.site-nav > a:not(.btn):hover { color: var(--text); text-decoration: none; }

/* hero */
.hero { padding: 72px 0 40px; max-width: 820px; }
.eyebrow { color: var(--muted); font: 14px var(--brand); letter-spacing: 0.02em; margin: 0 0 14px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.04em; line-height: 1.08; }
.lede { font-size: 18px; color: var(--muted); margin: 18px 0 28px; max-width: 64ch; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cta .quiet { font-size: 14px; color: var(--muted); margin-left: 4px; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { font-size: 12.5px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 3px 11px; background: var(--panel); }

/* sections */
.landing section { padding: 40px 0; scroll-margin-top: 56px; }
.theme-btn { display: inline-flex; align-items: center; padding: 4px; }
/* The landing header always shows the full lockup. */
.landing .brand-full { display: inline-flex !important; }
.landing .brand-compact { display: none !important; }
.section-head { max-width: 760px; margin-bottom: 22px; }
.section-head h2 { font-size: 28px; font-weight: 700; }
.section-head p { color: var(--muted); margin: 10px 0 0; }

/* live console */
.console { display: grid; grid-template-columns: 230px minmax(0, 1fr); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--panel); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 12px 40px rgba(16, 24, 40, 0.07); height: 640px; }
.examples { border-right: 1px solid var(--border); background: var(--panel-2); padding: 10px 8px; overflow: auto; font-size: 13px; }
.examples-title, .schema-title { font: 11px var(--brand); letter-spacing: 0.02em; color: var(--muted); padding: 6px 8px 4px; }
.schema-title { margin-top: 10px; }
.example { display: block; width: 100%; text-align: left; border: 1px solid transparent; background: none; padding: 6px 8px; border-radius: 7px; color: var(--text); font-size: 13px; line-height: 1.35; }
.example:hover { background: var(--panel); border-color: var(--border); }
.example.active { background: var(--primary-soft); border-color: transparent; }
.example small { display: block; color: var(--muted); font-size: 11.5px; }
.schema-list { font: 12px/1.7 var(--mono); color: var(--muted); padding: 0 8px; }
.schema-list button { border: none; background: none; padding: 0; font: inherit; color: var(--tk-obj); cursor: pointer; }
.schema-list button:hover { text-decoration: underline; }
.schema-list .k { color: var(--faint); font-family: var(--sans); font-size: 11px; }
.console-main { display: grid; grid-template-rows: auto minmax(120px, 38%) minmax(0, 1fr); min-width: 0; min-height: 0; }
.console-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.console-status { font-size: 12.5px; color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console-status.err { color: var(--danger); white-space: normal; }
.console-editor { min-height: 0; display: grid; border-bottom: 1px solid var(--border); }
.console-editor .editor { min-height: 0; }
.console-result { position: relative; min-height: 0; display: flex; }
.grid-host { flex: 1; display: flex; min-height: 0; }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.feature-grid article { border: 1px solid var(--border); border-radius: 12px; padding: 18px; background: var(--panel); }
.feature-grid h3 { font-size: 16px; margin-bottom: 6px; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 14px; }

/* environments */
.env-cols { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.code { margin: 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-2); font: 13px/1.6 var(--mono); overflow-x: auto; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 14px; color: var(--muted); }
.steps b { color: var(--text); }

.foot-left { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.powered { display: inline-flex; line-height: 0; }
.site-foot { max-width: 1180px; margin: 40px auto 0; padding: 22px 24px 40px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); }

@media (max-width: 860px) {
  .site-nav > a:not(.btn) { display: none; }
  .console { grid-template-columns: 1fr; height: auto; }
  .examples { border-right: none; border-bottom: 1px solid var(--border); overflow-x: auto; padding: 8px; }
  #examples { display: flex; gap: 6px; }
  .examples-title, .schema-title, .schema-list { display: none; }
  .example { flex: none; width: auto; white-space: nowrap; border-color: var(--border); background: var(--panel); }
  .example small { display: none; }
  .console-main { grid-template-rows: auto 200px 360px; }
  .env-cols { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
}
@media (max-width: 520px) {
  .landing main, .site-head { padding-left: 16px; padding-right: 16px; }
  .site-nav { gap: 8px; }
  .lede { font-size: 16px; }
}
