/* landing.css — CoffeeScope product landing.
   Visual language: the V3 mobile lab (deep charcoal, turquoise LED neon,
   violet counterpoint) per mockups-ux-rework/mockups/ChatGPT *(1).png (desktop)
   and *(2).png (mobile). Component blocks (.rig-stage, .m-overlay-*) keep the
   app's class names + values so the vendored components render identically.

   This file is governed by landing/DESIGN_SYSTEM.md. Every colour, radius,
   shadow, font stack and margin/padding/gap is a token declared in :root below.
   No raw hex / rgba / radius-px / shadow-recipe / font-stack / spacing-px should
   appear outside :root. The only exceptions are: SVG data-URI internals, @media
   breakpoint bodies, and genuinely structural px (art widths/heights, grid
   tracks, min-widths, and 1px/1.5px/2px border widths). */

:root {
  /* ============================================================
     DESIGN TOKENS — see landing/DESIGN_SYSTEM.md for the full spec.
     Dark theme only. ============================================ */

  /* ---- RAW BRAND PALETTE (BRAND_BRIEF.md §Color) --------------
     These four are the only "brand colours" that exist. Everything below is a
     SEMANTIC role pointing at one of them — never reach for a raw hex in a
     component, reach for the role. ------------------------------ */
  --yellow: #ffc400;               /* CoffeeScope Yellow — primary action */
  --red:    #e53935;               /* Robot Red — mascot, extraction series */
  --blue:   #1976ff;               /* Robot Blue — x-ray, TDS series */
  --deep-space: #0d1117;           /* the page base */

  /* ---- core surfaces & ink ---------------------------------- */
  --bg: var(--deep-space);
  --bg-soft: #121821;              /* panel gradient foot, tab/scene fills */
  --panel: #151b24;                /* the brief's panel value */
  --panel-2: #1a2029;              /* cards, insights, controls */
  --panel-solid: #151b24;          /* modal / dropdown solid surface */
  --line: #232b36;                 /* default 1px borders — "very subtle" */
  --line-2: #333d4b;               /* ghost-button hover ring */
  --track: #232b36;                /* range-slider track */
  --rig-bg: #0a0e14;               /* hero poster / rig scene backdrop */
  --text: #ffffff;
  --text-sub: #b6bec8;             /* 10.2:1 on --bg */
  --text-dim: #7a8592;             /* notes, footer, Δ-neutral — 5.1:1 on --bg */
  --text-bright: #ffffff;
  --tab-idle: #b6bec8;             /* hero-tab idle label */

  /* ---- brand accents ----------------------------------------
     --accent is the PRIMARY ACTION colour and it is Yellow: the brief is
     explicit that primary buttons are CoffeeScope Yellow and secondary are
     outline. Yellow carries 11.9:1 on --bg, so it doubles as accent text. */
  --accent: var(--yellow);
  --accent-bright: #ffd76b;        /* lighter accent text (chips, legends) */
  --accent-hi: #ffd22e;            /* hover / active */
  --accent-ink: #1a1300;           /* darkest ink on accent (tabs, tags) */
  --grad-mid: #ff8a3d;             /* headline gradient midpoint (yellow→red) */

  /* Text-safe brightenings. Raw --blue is 4.6:1 and raw --red 4.5:1 on --bg —
     fine for fills, borders, chart strokes and large display type, NOT for
     body copy. Use these wherever the colour has to carry words. */
  /* The blue that carries TEXT. It is deliberately close to raw --blue and NOT
     a pale sky blue — the brand blue is the robot's blue and the Run-experiment
     blue, and washing it out to a pastel loses that. This is the lightest step
     that still reads as the same saturated blue while clearing AA as small text:
     6.3:1 on --bg, 5.4:1 on --panel-2. Raw --blue is only 3.96:1 on --panel-2,
     which is why text cannot use it directly. */
  --blue-bright: #4d93ff;
  --blue-hi: #4d93ff;              /* hover on blue-tinted chrome */
  --red-bright: #ff8a87;           /* 8.3:1 on --bg — the red that carries text */
  /* Blue as an ACTION colour — the alternative primary to Yellow (.btn--blue).
     White on raw --blue is only 4.17:1, which fails AA at the 15.5px semibold a
     button label uses. This is --blue deepened just far enough to clear it:
     #ffffff on --blue-action is 5.1:1. Use it for any blue fill carrying text;
     use raw --blue for borders, glows, chart strokes and large display type. */
  --blue-action: #1565e8;
  /* Hover DEEPENS rather than brightens. Lightening the fill is the reflex,
     but white on a lighter blue drops below AA — #2a78ff would be 4.0:1.
     This is 6.1:1; the lift comes from the shadow and transform instead. */
  --blue-action-hi: #0f5ad6;

  /* ---- A/B BREW IDENTITIES — neon green & purple ---------------
     The palette runs on TWO SETS that do not belong to the same family:

       Yellow + Blue    the warm brand set — brand, actions, the mascot
       Green + Purple   the cool instrument set — data identity, markers, numbers

     There IS a tension between them, and it is deliberate. **Do not relieve
     it.** The temptation, every time someone opens this file, will be to
     harmonise: warm the green toward yellow, cool the purple toward blue, add
     a bridging hue, drop the whole thing onto one ramp. Refuse all of it. The
     friction is doing work — a neon-green reading set hard against a yellow
     control is what makes a measurement read as a MEASUREMENT and not as
     another piece of brand. Resolve the clash and the page goes flat and the
     instrument disappears into the marketing.

     So: use the two sets AGAINST each other, at full strength, on purpose.
     Green and purple are the previous identity's two hues, kept deliberately.
     Do not re-point them at --accent/--blue, and do not confuse them with the
     deprecated --violet alias below, which is only a compatibility shim. */
  --brew-a: #35e0c8;               /* neon green — brew A */
  --brew-b: #8b7cf0;               /* purple — brew B */
  --brew-a-bright: #bff5ec;        /* lane-A text on dark */
  --brew-b-bright: #c5bcff;        /* lane-B text — 10.8:1 on --bg, 9.4:1 on
                                      --panel-2. Raw purple is 4.9:1 against
                                      --panel-2, which is where the lane numbers
                                      actually sit: too thin for 11px text. */
  --on-brew-a: #04241f;            /* ink on the green badge — 9.9:1 */
  --on-brew-b: #150f33;            /* ink on the purple badge — 5.4:1 */

  /* ---- status ------------------------------------------------ */
  --pos: #34d399;                  /* success */
  --neg: #ff5b5b;                  /* error / negative delta */

  /* ---- temperature ramp (brief: blue → orange → red) --------- */
  --temp-cold: var(--blue);
  --temp-mid: #ff8a3d;
  --temp-hot: var(--red);
  --grad-temp: linear-gradient(90deg, var(--temp-cold), var(--temp-mid), var(--temp-hot));

  /* ---- DEPRECATED NAME — do not use in new code --------------
     The turquoise/violet identity is retired. This alias exists only so the
     files this re-skin does not own (css/coffeemap.css, js/coffeemap.js,
     validate/index.html) keep resolving. New code uses --blue. */
  --violet: var(--blue);

  /* ---- ink-on-fill (ink for coloured chips/badges) ----------- */
  --on-accent: #1a1300;            /* ink on yellow fills (primary button) */
  --on-blue: #ffffff;              /* ink on --blue-action fills */
  --on-violet: var(--on-brew-b);   /* deprecated name — ink on the purple badge */
  --thumb-ring-a: #062a26;         /* slider-thumb ring, lane A (green) */
  --thumb-ring-b: #17103a;         /* slider-thumb ring, lane B (purple) */

  /* ---- A/B lane alpha ramps ---------------------------------
     Separate from the accent/blue ramps for the same reason the hues are:
     lane chrome must not drift into looking interactive. */
  --brew-a-a06: rgba(53, 224, 200, 0.06);
  --brew-a-a14: rgba(53, 224, 200, 0.14);
  --brew-a-a25: rgba(53, 224, 200, 0.25);
  --brew-a-a40: rgba(53, 224, 200, 0.40);
  --brew-a-a50: rgba(53, 224, 200, 0.50);
  --brew-a-a70: rgba(53, 224, 200, 0.70);
  --brew-b-a06: rgba(139, 124, 240, 0.06);
  --brew-b-a08: rgba(139, 124, 240, 0.08);
  --brew-b-a14: rgba(139, 124, 240, 0.14);
  --brew-b-a30: rgba(139, 124, 240, 0.30);
  --brew-b-a40: rgba(139, 124, 240, 0.40);
  --brew-b-a50: rgba(139, 124, 240, 0.50);
  --brew-b-a70: rgba(139, 124, 240, 0.70);

  /* ---- accent alpha ramp — CoffeeScope Yellow (255,196,0) ----------------------- */
  --accent-a06: rgba(255, 196, 0, 0.06);
  --accent-a08: rgba(255, 196, 0, 0.08);
  --accent-a10: rgba(255, 196, 0, 0.10);
  --accent-a12: rgba(255, 196, 0, 0.12);
  --accent-a16: rgba(255, 196, 0, 0.16);
  --accent-a20: rgba(255, 196, 0, 0.20);
  --accent-a25: rgba(255, 196, 0, 0.25);
  --accent-a35: rgba(255, 196, 0, 0.35);
  --accent-a40: rgba(255, 196, 0, 0.40);
  --accent-a45: rgba(255, 196, 0, 0.45);
  --accent-a50: rgba(255, 196, 0, 0.50);
  --accent-a55: rgba(255, 196, 0, 0.55);
  --accent-a70: rgba(255, 196, 0, 0.70);
  --accent-a85: rgba(255, 196, 0, 0.85);

  /* ---- blue alpha ramp — Robot Blue (25,118,255) ------------- */
  --blue-a06: rgba(25, 118, 255, 0.06);
  --blue-a08: rgba(25, 118, 255, 0.08);
  --blue-a14: rgba(25, 118, 255, 0.14);
  --blue-a16: rgba(25, 118, 255, 0.16);
  --blue-a30: rgba(25, 118, 255, 0.30);
  --blue-a40: rgba(25, 118, 255, 0.40);
  --blue-a50: rgba(25, 118, 255, 0.50);
  --blue-a70: rgba(25, 118, 255, 0.70);

  /* ---- DEPRECATED ramp aliases — do not use in new code -------
     The --violet-a* names are the retired identity's. They stay only so the
     files this re-skin does not own keep resolving. New code uses --blue-a*. */
  --violet-a06: var(--blue-a06);
  --violet-a08: var(--blue-a08);
  --violet-a14: var(--blue-a14);
  --violet-a16: var(--blue-a16);
  --violet-a30: var(--blue-a30);
  --violet-a40: var(--blue-a40);
  --violet-a50: var(--blue-a50);
  --violet-a70: var(--blue-a70);

  /* ---- soft aliases ----------------------------------------- */
  --accent-soft: var(--accent-a12);
  --line-soft: var(--accent-a16);
  --violet-soft: var(--blue-a14);
  --brew-b-soft: var(--brew-b-a14);

  /* ---- bright-accent text alphas (255,215,107) -------------- */
  --accent-bright-a50: rgba(255, 215, 107, 0.50);
  --accent-bright-a45: rgba(255, 215, 107, 0.45);
  --consent-a85: rgba(223, 229, 236, 0.85);
  --check-label: #dfe5ec;
  --summary-more: #9aa5b2;
  --lang-item: #b6bec8;
  --modal-text: #dfe5ec;
  --modal-close: #9aa5b2;

  /* ---- translucent scrims / dark backgrounds ----------------
     All Deep-Space-derived: rgba(13,17,23) unless a component needs a
     one-step-lighter panel scrim. */
  --bg-a65: rgba(13, 17, 23, 0.65);
  --bg-a82: rgba(13, 17, 23, 0.82);
  --bg-a96: rgba(13, 17, 23, 0.96);
  --scrim-vs: rgba(21, 27, 36, 0.72);
  --scrim-menu: rgba(13, 17, 23, 0.70);
  --scrim-menu-active: rgba(25, 33, 44, 0.60);
  --scrim-update: rgba(21, 27, 36, 0.94);
  --scrim-teal-dark: rgba(10, 14, 20, 0.60);  /* poster-load + lang button */
  --scrim-input: rgba(10, 14, 20, 0.80);      /* inline-page beta input */
  --scrim-input-2: rgba(21, 27, 36, 0.60);    /* modal inputs / selects */
  --scrim-backdrop: rgba(10, 13, 18, 0.72);   /* modal ::backdrop */

  /* ---- borders ---------------------------------------------- */
  --line-a60: rgba(35, 43, 54, 0.60);
  --line-a70: rgba(35, 43, 54, 0.70);
  --white-a14: rgba(255, 255, 255, 0.14);
  --white-a02: rgba(255, 255, 255, 0.015);

  /* ---- background art stops ---------------------------------
     The two body radial glows. Kept extremely low-contrast: the brief asks for
     "minimal decoration", so these read as depth, never as colour. */
  --bg-glow-1: #141c28;                       /* upper-right, blue-leaning */
  --bg-glow-2: #16161f;                       /* left, neutral */
  --bed-1: #1a2029;
  --bed-2: #12181f;
  --bed-3: #0a0e14;
  --black-a55: rgba(0, 0, 0, 0.55);           /* rig-image drop-shadow */

  /* ---- radar (vendored component) --------------------------- */
  --m-radar-grid: rgba(120, 140, 155, 0.25);
  --m-radar-text: rgba(150, 165, 178, 0.90);

  /* ---- radii ------------------------------------------------- */
  --r-2: 2px;
  --r-4: 4px;
  --r-6: 6px;
  --r-8: 8px;
  --r-10: 10px;
  --r-12: 12px;
  --r-14: 14px;
  --r-18: 18px;
  --r-20: 20px;
  --r-pill: 999px;
  --r-round: 50%;
  /* The brief fixes the corner radius at 12px. --radius is the component
     default; --radius-lg is the one step up, for full-width panels. */
  --radius: var(--r-12);
  --radius-lg: var(--r-18);

  /* ---- shadows / rings (composite recipes) ------------------ */
  --ring-line: inset 0 0 0 1px var(--line);
  --ring-line-hover: inset 0 0 0 1px var(--line-2);
  --ring-accent: inset 0 0 0 1px var(--accent-a45);
  --ring-blue: inset 0 0 0 1px var(--blue-a40);
  --ring-inset-accent: inset 0 0 6px var(--accent-a10);
  /* Soft, not neon. The retired identity bloomed everything with 24-34px of
     accent glow; the brief asks for Apple/Linear/Vercel restraint — "cards:
     dark, soft shadows, very subtle borders", "minimal decoration". These are
     now real drop shadows with only a trace of accent lift. */
  --shadow-btn-accent: 0 2px 10px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--accent-a20);
  --shadow-btn-accent-hover: 0 6px 18px rgba(0, 0, 0, 0.50), 0 0 18px var(--accent-a25);
  --shadow-btn-blue: 0 2px 10px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--blue-a30);
  --shadow-btn-blue-hover: 0 6px 18px rgba(0, 0, 0, 0.50), 0 0 18px var(--blue-a40);
  --shadow-tab-active: 0 2px 10px rgba(0, 0, 0, 0.40);
  --shadow-tip: 0 6px 16px rgba(0, 0, 0, 0.45);
  --shadow-badge-a: 0 0 12px var(--brew-a-a50);
  --shadow-badge-b: 0 0 12px var(--brew-b-a50);
  --shadow-lane-a: 0 0 0 1px var(--brew-a-a06), 0 0 30px var(--brew-a-a06) inset;
  --shadow-lane-b: 0 0 0 1px var(--brew-b-a08), 0 0 30px var(--brew-b-a06) inset;
  --shadow-vs: 0 4px 18px rgba(0, 0, 0, 0.50);
  --shadow-tick-a: 0 0 7px var(--brew-a);
  --shadow-tick-b: 0 0 7px var(--brew-b);
  --shadow-thumb-a: 0 0 10px var(--brew-a-a70);
  --shadow-thumb-b: 0 0 10px var(--brew-b-a70);
  --shadow-card-hover: 0 8px 26px rgba(0, 0, 0, 0.40);
  --shadow-card-active: 0 0 0 1px var(--accent-a35), 0 0 26px var(--accent-a08);
  --shadow-menu: 0 4px 16px rgba(0, 0, 0, 0.50);
  --shadow-n: 0 0 10px var(--accent-a20);
  --shadow-update: 0 8px 30px rgba(0, 0, 0, 0.45), 0 0 18px var(--accent-a25);
  --shadow-dropdown: 0 12px 30px rgba(0, 0, 0, 0.50);
  --shadow-modal: 0 24px 64px rgba(0, 0, 0, 0.55);

  /* ---- blur ------------------------------------------------- */
  --blur-sm: 5px;
  --blur-md: 6px;
  --blur-lg: 8px;
  --blur-xl: 12px;

  /* ---- fonts ------------------------------------------------- */
  /* Inter is SELF-HOSTED — see css/fonts.css, which every page must link
     BEFORE this file. No CDN, no external runtime asset (CLAUDE.md §Invariants).
     The system stack behind it is the swap fallback, not a second design. */
  --font-sans: "Inter", ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* ---- FLUID TYPE SCALE (see DESIGN_SYSTEM.md §Fluid scaling) --
     Major-third-ish display ramp; each clamp is calibrated so the middle
     term passes through the current design's values at the two reference
     widths — 390px (min) and 1280px (max) — then interpolates between and
     holds flat beyond. Micro / mono UI text stays fixed (raw px) for tabular
     alignment and control legibility. Body floor is 16px on mobile. */
  --fs-display: clamp(39px, 2.584vw + 28.92px, 62px);   /* hero h1  39 → 62 */
  --fs-h2-beta: clamp(24px, 0.225vw + 23.12px, 26px);   /* beta h2  24 → 26 */
  --fs-h2:      clamp(22px, 0.225vw + 21.12px, 24px);   /* section  22 → 24 */
  --fs-h2-demo: clamp(19px, 0.225vw + 18.12px, 21px);   /* demo h2  19 → 21 */
  --fs-lead:    clamp(16px, 0.225vw + 15.12px, 18px);   /* hero sub 16 → 18 */

  /* ---- icon size steps (graphics scale) --------------------- */
  --icon-xs: 16px;
  --icon-sm: 18px;
  --icon-md: 20px;
  --icon-lg: 24px;

  /* ---- SPACING SCALE (4px base modular ladder + fine steps).
     t-shirt map: xs=8 · sm=12 · md=16 · lg=24 · xl=34 · 2xl=40.
     Fine/odd steps preserve the app's dense-instrument rhythm; see
     DESIGN_SYSTEM.md §Spacing for which context uses which token. ------ */
  --space-1: 1px;
  --space-2: 2px;
  --space-3: 3px;
  --space-4: 4px;
  --space-5: 5px;
  --space-6: 6px;
  --space-7: 7px;
  --space-8: 8px;
  --space-9: 9px;
  --space-10: 10px;
  --space-11: 11px;
  --space-12: 12px;
  --space-13: 13px;
  --space-14: 14px;
  --space-15: 15px;
  --space-16: 16px;
  --space-18: 18px;
  --space-20: 20px;
  --space-22: 22px;
  --space-24: 24px;
  --space-26: 26px;
  --space-28: 28px;
  --space-30: 30px;
  --space-34: 34px;
  --space-38: 38px;
  --space-40: 40px;
  --space-42: 42px;
  --space-46: 46px;
  /* fluid section horizontal padding (prose sections): 24 → 34 across 390→1280 */
  --pad-section: clamp(24px, 1.124vw + 19.62px, 34px);
  /* fluid modal panel padding (top · inline · bottom) */
  --pad-modal: clamp(24px, 5vw, 30px) clamp(18px, 5vw, 28px) clamp(20px, 5vw, 26px);

  /* ---- motion ----------------------------------------------- */
  --dur-fast: 0.12s;
  --dur: 0.15s;
  --dur-slow: 0.18s;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* ---- graphics: fluid hero-rig height (440 → 560 across 390→1280) */
  --rig-h: clamp(440px, 13.48vw + 387.4px, 560px);

  /* ---- layout (breakpoints live raw in @media px):
     container 1180px · bp-lg 1020px · bp-sm 760px · bp-xs 640px */
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(120% 70% at 75% -10%, var(--bg-glow-1) 0%, transparent 60%),
    radial-gradient(90% 60% at 10% 30%, var(--bg-glow-2) 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.015em; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

main { max-width: 1180px; margin: 0 auto; padding: 0 var(--space-28); }

/* ============================== header ============================== */
.site-head {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: var(--space-30);
  max-width: 1180px; margin: 0 auto;
  padding: var(--space-14) var(--space-28);
}
.site-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bg-a82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-a60);
}
.brand { display: inline-flex; align-items: center; gap: var(--space-11); }
/* The mark is the multi-colour ceramic robot, so it is NOT tinted by
   currentColor and carries no accent glow — a yellow bloom under a red robot
   reads as a rendering bug. A plain drop shadow gives it the same lift. */
.brand__mark { width: 34px; height: 34px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55)); }
.brand__mark svg, .brand__mark img { width: 100%; height: 100%; }
.brand__mark--sm { width: 26px; height: 26px; }
.brand__lockup { display: flex; flex-direction: column; gap: var(--space-2); }
.brand__name { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
/* Machine voice, per the design system: mono, caps, wide tracking. Hidden on
   narrow headers where it would crowd the nav. */
.brand__tagline {
  font: 600 9px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dim);
}
.site-nav { display: flex; gap: var(--space-26); margin-left: auto; }
/* The nav links sit beside the Feedback pill, and the pill centres its label as
   a flex item while an inline <a> centres a 1.55 line box — that put the nav
   text 0.74px above the button text. Both now use a tight, flex-centred line
   box, so their glyph boxes land on the same midline. */
.site-nav a { color: var(--text-sub); font-size: 14.5px; font-weight: 500; transition: color .15s;
  display: inline-flex; align-items: center; line-height: 1; }
.site-nav a:hover { color: var(--text); }
/* min-width keeps the pill stable across its three auth states (Get Early
   Access / Open the lab / Sign in) so the once-per-load swap doesn't shift the
   header layout. */
.head-join { margin-left: var(--space-4); white-space: nowrap; min-width: 9rem; }
.head-join__short { display: none; }
.nav-burger { display: none; background: none; border: none; color: var(--text);
  width: 40px; height: 40px; padding: var(--space-8); cursor: pointer; margin-left: auto; }
.nav-burger svg { width: 100%; height: 100%; }

/* ============================== buttons / chips ============================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-9);
  padding: var(--space-13) var(--space-26); border-radius: var(--r-pill); border: none; cursor: pointer;
  font-size: 15.5px; font-weight: 600; line-height: 1; font-family: inherit;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
}
.btn svg { width: 19px; height: 19px; }
.btn--primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: var(--shadow-btn-accent);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-btn-accent-hover); }
/* The BLUE primary — the alternative to yellow, equal in rank, not a demotion.
   Use it when a yellow fill would fight what is next to it, when two primary
   actions must be told apart, or when the surrounding block is already warm.
   Both read as "press this"; picking between them is a composition decision.
   The fill is --blue-action, not raw --blue, so the label clears AA. */
.btn--blue {
  background: var(--blue-action); color: var(--on-blue);
  box-shadow: var(--shadow-btn-blue);
}
.btn--blue:hover {
  transform: translateY(-1px); background: var(--blue-action-hi);
  box-shadow: var(--shadow-btn-blue-hover);
}
.btn--ghost-blue {
  background: transparent; color: var(--blue-bright);
  box-shadow: var(--ring-blue);
}
.btn--ghost-blue:hover { background: var(--blue-a08); }
.btn--ghost {
  background: transparent; color: var(--text);
  box-shadow: var(--ring-line);
}
.btn--ghost:hover { box-shadow: var(--ring-line-hover); }
.btn--ghost-accent {
  background: transparent; color: var(--accent);
  box-shadow: var(--ring-accent);
}
.btn--ghost-accent:hover { background: var(--accent-soft); }
/* Tertiary. The brief's button ladder is primary = CoffeeScope Yellow fill,
   secondary = outline (.btn--ghost), tertiary = a plain link. The arrow is
   authored in the copy, not injected, so translations can move it. */
.btn--link {
  background: none; box-shadow: none; padding: var(--space-13) var(--space-8);
  color: var(--blue-bright);
}
.btn--link:hover { color: var(--text); }
.btn--pill { padding: var(--space-9) var(--space-20); font-size: 14px; }
.btn--wide { min-width: 260px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: var(--space-8);
  padding: var(--space-6) var(--space-14); border-radius: var(--r-8);
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  color: var(--accent); background: var(--accent-a08);
  border: 1px solid var(--line-soft);
}
.chip--mono { font-family: var(--mono); }
.chip--accent { font-size: 13px; padding: var(--space-7) var(--space-18); }
.chip--violet { color: var(--blue-bright); border-color: var(--blue-a30);
  background: var(--violet-soft); }

.panel {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.mono-cap { font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-sub); }

/* ============================== hero ============================== */
/* Copy gets the larger share, for two reasons that happen to agree: the display
   headline needs ~600px to hold "Understand coffee." on one line, and the brief
   is explicit that the robot "should never dominate". */
.hero {
  display: grid; grid-template-columns: 1.18fr 0.82fr; gap: var(--space-30);
  align-items: center; padding: var(--space-46) 0 var(--space-40);
}
.hero__copy h1 {
  font-size: var(--fs-display); font-weight: 750; margin: var(--space-22) 0 var(--space-18);
  /* The headline is authored with an explicit <br>. Stop the browser adding
     its own breaks on top of it — "Understand / coffee." reads as a mistake. */
  text-wrap: balance;
}
/* The highlighted headline phrase. It stays inside the WARM half of the brand
   (yellow → orange → red): a yellow-to-blue sweep passes through grey at its
   midpoint and reads as a rendering fault rather than as a gradient.
   The red stop sits at 118%, past the end of the text, so the phrase never
   actually reaches full --red — a fully red last word reads as an alert. */
.hero__copy .grad {
  background: linear-gradient(96deg, var(--accent) 0%, var(--grad-mid) 58%, var(--red) 118%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { color: var(--text-sub); font-size: var(--fs-lead); max-width: 34em; margin: 0 0 var(--space-26); }
.hero__ctas { display: flex; gap: var(--space-14); flex-wrap: wrap; margin-bottom: var(--space-34); }
.hero__features {
  list-style: none; display: flex; gap: var(--space-26); padding: 0; margin: 0;
}
.hero__features li { display: flex; gap: var(--space-11); align-items: flex-start; min-width: 0; }
.feat-ic {
  flex: none; width: 38px; height: 38px; border-radius: var(--r-10);
  display: grid; place-items: center;
  color: var(--accent); background: var(--accent-a08);
  border: 1px solid var(--accent-a16);
}
.feat-ic svg { width: var(--icon-md); height: var(--icon-md); }
.hero__features strong { display: block; font-size: 14px; color: var(--text); }
.hero__features span:not(.feat-ic) { font-size: 12.5px; color: var(--text-sub); line-height: 1.35; display: block; margin-top: var(--space-2); }
li.feat--mobile { display: none; }

.hero__rig { position: relative; }
.hero__rig-host {
  position: relative; height: var(--rig-h); border-radius: var(--radius-lg);
  overflow: hidden;
}

/* The standing disclosure that rides with the live rig. The rig puts real
   numbers on screen; BRAND_BRIEF.md §v1.1 makes saying so a requirement. */
.rig-disclosure {
  margin: var(--space-14) auto 0; display: table;
  color: var(--text-dim); border-color: var(--line);
}

/* ---- the robot ------------------------------------------------------------
   BRAND_BRIEF.md — "the robot is the guide, not the hero". It stands still, is
   never animated beyond a slow scan, and never outweighs the simulator. It
   lives on /about.html; this block is written to be reusable, so any page can
   drop in a .robot-hero figure. Half glazed ceramic, half x-ray wireframe: the
   brand's whole thesis in one object. */
.hero__rig--robot { display: grid; place-items: center; }
.robot-hero {
  position: relative; margin: 0; width: 100%; max-width: 520px;
  display: grid; place-items: center;
  /* The art is keyed to transparency, so it sits directly on the page with a
     soft pool of light behind it rather than inside a panel. */
  background: radial-gradient(58% 52% at 50% 52%, var(--blue-a08) 0%, transparent 70%);
}
.robot-hero__img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55));
}
/* The scan sweep. Very slow (14s), very low contrast — the brief asks for
   "soft x-ray scan … scientific, not Disney". It is a thin horizontal band of
   blue light travelling down the figure, clipped to the art's box. */
.robot-hero__scan {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  border-radius: var(--radius-lg);
  -webkit-mask-image: radial-gradient(58% 52% at 50% 52%, #000 0%, transparent 72%);
  mask-image: radial-gradient(58% 52% at 50% 52%, #000 0%, transparent 72%);
}
.robot-hero__scan::before {
  content: ""; position: absolute; left: 0; right: 0; height: 16%;
  background: linear-gradient(180deg, transparent, var(--blue-a16), transparent);
  animation: robot-scan 14s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes robot-scan {
  0%, 8%   { transform: translateY(-20%); opacity: 0; }
  18%      { opacity: 1; }
  82%      { opacity: 1; }
  92%, 100% { transform: translateY(620%); opacity: 0; }
}
/* The standing disclosure. The brief makes this a requirement, not a footnote:
   anywhere a visitor could mistake output for measurement, say so. */
.robot-hero--sm { max-width: 190px; }
.robot-hero--sm .robot-hero__img { filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.5)); }
.robot-hero__cap {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .robot-hero__scan::before { animation: none; opacity: 0; }
}

/* ---- hero poster: the cheap static still shown until the live rig mounts.
   Sits on top of the (later-appended) WebGL canvas and crossfades out once the
   rig renders its first frame. With JS disabled it simply stays — a crawlable,
   layout-stable image (the host owns the height, so no CLS either way). ---- */
.hero__poster {
  position: absolute; inset: 0; z-index: 7; border-radius: inherit; overflow: hidden;
  background: var(--rig-bg);   /* matches the rig scene background so the fade is seamless */
  opacity: 1; transition: opacity .55s ease;
}
.hero__poster.is-hidden { opacity: 0; pointer-events: none; }
.hero__poster-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__poster-load {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; align-items: center; gap: var(--space-9);
  font: 600 11px/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-bright); background: var(--scrim-teal-dark);
  border: 1px solid var(--blue-a30); border-radius: var(--r-pill); padding: var(--space-8) var(--space-14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero__poster-spin {
  width: 12px; height: 12px; border-radius: var(--r-round);
  border: 2px solid var(--blue-a14); border-top-color: var(--blue);
  animation: hero-poster-spin .9s linear infinite;
}
@keyframes hero-poster-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .hero__poster { transition: none; }
  .hero__poster-spin { animation: none; border-top-color: var(--blue-a30); }
}

/* ---- hero scene tabs — ICON-ONLY bar above the scene; the accent-filled
   active tab governs the whole rig. Names + 'coming soon' live in a hover/tap
   tooltip (data-tip). Not-yet-live brewers are dimmed + disabled. ---- */
.hero-tabs {
  display: flex; flex-wrap: wrap; gap: var(--space-8); margin: 0 0 var(--space-12);
  position: relative; z-index: 3;
}
.hero-tab {
  position: relative; display: grid; place-items: center;
  padding: var(--space-10) var(--space-12); border: 1px solid var(--line); border-radius: var(--r-12);
  background: var(--bg-soft); color: var(--tab-idle); cursor: pointer;
  transition: color .18s, background .18s, border-color .18s, box-shadow .18s;
}
.hero-tab__ic { display: grid; place-items: center; }
.hero-tab__ic svg { width: var(--icon-md); height: var(--icon-md); display: block; }
.hero-tab:hover { color: var(--text-bright); background: var(--panel); }
.hero-tab.is-active {
  color: var(--accent-ink); background: var(--accent); border-color: var(--accent);
  box-shadow: var(--shadow-tab-active);
}
/* icon-only name tooltip (hover / keyboard focus) */
.hero-tab::after {
  content: attr(data-tip);
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-3px);
  white-space: nowrap; font: 600 11px/1 var(--font-sans); letter-spacing: .02em;
  padding: var(--space-6) var(--space-9); border-radius: var(--r-8);
  background: var(--panel); color: var(--text-bright); border: 1px solid var(--accent-a35);
  box-shadow: var(--shadow-tip);
  opacity: 0; pointer-events: none; transition: opacity .14s, transform .14s; z-index: 20;
}
.hero-tab:hover::after, .hero-tab:focus-visible::after {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
@media (max-width: 640px) {
  .hero-tabs { gap: 6px; margin-bottom: 10px; }
  .hero-tab { padding: 9px 10px; }
  .hero-tab__ic svg { width: 18px; height: 18px; }
}
/* coming-soon placeholder shown IN the scene panel when a not-yet-live brewer
   tab is selected (the 'coming soon' lives on the tab surface, not the nav) */
.hero-soon {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: var(--space-10); text-align: center; padding: var(--space-24);
  background: radial-gradient(120% 90% at 50% 32%, var(--accent-a08), transparent 60%), var(--bg-soft);
}
.hero-soon__ic { color: var(--accent); }
.hero-soon__ic svg { width: 62px; height: 62px; display: block; filter: drop-shadow(0 0 16px var(--accent-a40)); }
.hero-soon__name { font: 700 22px/1.1 var(--font-sans); color: var(--text-bright); margin-top: var(--space-6); }
.hero-soon__tag {
  font: 700 11px/1 var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent); padding: var(--space-5) var(--space-13); border-radius: var(--r-pill);
}
.hero-soon__note { max-width: 300px; margin: var(--space-4) 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text-sub); }
.hero__rig-caption {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  font-size: 10.5px; letter-spacing: 0.18em; white-space: nowrap;
  background: var(--bg-a65); backdrop-filter: blur(6px);
}

/* ============================== lane scenes ============================== */
.lane-scene {
  position: relative; width: 100%; height: 100%;
  border-radius: inherit;
}
.lane-canvas {
  position: relative; z-index: 4;
  width: 100%; height: 100%; display: block;
}
/* deep calm stage behind the rig (same treatment as the app) */
.canvas-wrap--bed.has-rig {
  background:
    radial-gradient(120% 90% at 50% 8%, var(--bed-1) 0%, var(--bed-2) 55%, var(--bed-3) 100%);
}

/* ---- vendored component CSS: rig stage (values match coffeescope-mobr) ---- */
.rig-stage { position: absolute; inset: 0; display: none; pointer-events: none; }
.rig-stage.is-active { display: block; }
.rig-stage__img { position: absolute; height: auto;
  filter: drop-shadow(0 18px 30px var(--black-a55)); }
.rig-stage__cone { z-index: 3; }
.rig-stage__carafe { z-index: 5; }
.rig-stage__scale { z-index: 1; }
.rig-stage__led {
  position: absolute; transform: translate(-50%, -50%); z-index: 5;
  display: flex; align-items: stretch; gap: var(--space-14); pointer-events: none;
}
.rig-stage__ledcell { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.rig-stage__lednum { display: block; line-height: 0; }
.rig-stage__lednum .m-7seg { filter: drop-shadow(0 0 7px var(--brew-a-a40)); }
.rig-stage__ledlab {
  font-size: 8px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brew-a-a50); font-family: var(--mono);
}
.rig-stage__ledsep { width: 1px; align-self: stretch; margin: var(--space-2) 0;
  background: var(--brew-a-a25); }

/* ---- vendored component CSS: neon overlay picker ---- */
.m-overlay-controls { position: absolute; left: 14px; bottom: 14px;
  pointer-events: none; z-index: 6; }
.m-overlay-controls[hidden] { display: none !important; }
.m-overlay-picker-btn {
  width: 48px; height: 48px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border-radius: var(--r-pill); border: none; background: none;
  color: var(--blue-a70); cursor: pointer; pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  transition: color .18s ease, transform .12s ease;
}
.m-overlay-picker-btn:hover, .m-overlay-picker-btn:active { transform: scale(1.1); color: var(--blue-bright); }
.m-overlay-picker-btn svg { width: 26px; height: 26px; stroke: currentColor; fill: none;
  filter: drop-shadow(0 0 5px var(--blue-a50)); }
.m-overlay-picker-menu {
  position: absolute; left: 0; top: -8px; transform: translateY(-100%);
  display: flex; flex-direction: column; gap: var(--space-8);
  background: var(--scrim-menu);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: var(--r-10); border: 1px solid var(--blue-a30);
  padding: var(--space-8); pointer-events: auto; min-width: max-content;
  box-shadow: var(--shadow-menu);
}
.m-overlay-picker-menu[hidden] { display: none; }
.m-overlay-menu-item {
  display: inline-flex; flex-direction: column; align-items: center; gap: var(--space-4);
  padding: var(--space-8) var(--space-12); border-radius: var(--r-8); border: 1px solid transparent;
  background: transparent; color: var(--blue-a70);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: all .18s ease; white-space: nowrap;
}
.m-overlay-menu-item:hover, .m-overlay-menu-item:active { background: var(--blue-a08); }
.m-overlay-menu-item.is-active {
  color: var(--blue-bright); border-color: var(--blue-a40);
  background: var(--scrim-menu-active);
  box-shadow: var(--ring-inset-accent);
}
.m-overlay-menu-item svg { width: var(--icon-sm); height: var(--icon-sm); stroke: currentColor; fill: none;
  filter: drop-shadow(0 0 3px var(--blue-a30)); }
.m-overlay-menu-item__lab {
  font-size: 11px; font-weight: 650; letter-spacing: 0.08em;
  text-transform: uppercase; color: currentColor; opacity: 0.85;
}

/* ============================== demo section ============================== */
.demo { padding: var(--space-26) var(--space-26) var(--space-30); margin: var(--space-26) 0 var(--space-34); }
.demo__head {
  display: flex; align-items: center; gap: var(--space-20); flex-wrap: wrap;
  padding-bottom: var(--space-20);
}
.demo__title { display: flex; align-items: center; gap: var(--space-11); }
.demo__title h2 { font-size: var(--fs-h2-demo); }
.demo__changed {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start;
  gap: var(--space-8) var(--space-12); margin: 0 0 var(--space-20);
}
.demo__changed-sub { font-size: 13px; color: var(--text-sub); }
/* Run button folds into the "changed" row, pushed to the far right */
.demo__changed #runBtn { margin-left: auto; }
.speed { display: flex; gap: var(--space-4); background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: var(--space-4); }
.speed button {
  border: none; background: none; color: var(--text-sub); cursor: pointer;
  font: 600 12px var(--mono); letter-spacing: 0.06em;
  padding: var(--space-6) var(--space-12); border-radius: var(--r-pill); transition: all .15s;
}
.speed button.is-active { background: var(--accent-soft); color: var(--accent); }

/* synced field-layer toggle (drives both A/B lanes) */
.ab-layers {
  flex: none; border: 1px solid var(--line); background: var(--panel-2);
  color: var(--text-sub); cursor: pointer;
  font: 600 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  padding: var(--space-8) var(--space-14); border-radius: var(--r-pill); transition: all .15s;
}
.ab-layers:hover { color: var(--text); border-color: var(--line-soft); }
.ab-layers.is-on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-a40); }
/* speed + layers wrap as a pair; the colour scale is wider than both, so let it
   drop to its own line rather than push the ticks off the edge on narrow screens */
.ab-controls { display: flex; align-items: center; gap: var(--space-10); flex-wrap: wrap; }

/* ONE colour scale for both lanes (see landing.js). The gradient bar + ticks are
   built by the rig from the shader's own stops; this supplies only the chrome and
   the TEXT colour — the ramp is the data, the labels stay on a text token.
   :empty collapses it on the natural view, where the rig clears the slot. */
.ab-legend { flex: none; color: var(--text-sub); }
.ab-legend:empty { display: none; }

/* selector sits ABOVE the scenes (beat .exps' own margin by specificity) */
.demo .demo__exps { margin: 0 0 var(--space-16); }

/* stage = A/B block (scenes + one shared transport) beside the insights aside */
.demo__stage {
  display: grid; grid-template-columns: minmax(0, 1fr) 344px; gap: var(--space-18);
  align-items: start;
}
.ab { display: flex; flex-direction: column; gap: var(--space-14); min-width: 0; }
.ab__scenes {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10);
  align-items: stretch;
}
/* VS = a frosted outline ring centred over the seam, overlapping both boxes */
.vs-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-pill);
  font: 700 12px var(--mono); letter-spacing: 0.04em; color: var(--text-sub);
  background: var(--scrim-vs); backdrop-filter: blur(5px);
  border: 1.5px solid var(--accent-a45);
  box-shadow: var(--shadow-vs); z-index: 8;
}

.lane-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--panel-2);
  /* Lane identity, not an action — instrument set (see :root §two sets). */
  border: 1px solid var(--brew-a-a40);
  box-shadow: var(--shadow-lane-a);
}
.lane-card--b { border-color: var(--brew-b-a40);
  box-shadow: var(--shadow-lane-b); }
.lane-card__head {
  display: flex; align-items: center; gap: var(--space-10); padding: var(--space-12) var(--space-14);
}
.lane-badge {
  width: 26px; height: 26px; border-radius: var(--r-pill); flex: none;
  display: grid; place-items: center;
  font: 700 13px var(--mono);
}
.lane-badge--a { background: var(--brew-a); color: var(--on-brew-a); box-shadow: var(--shadow-badge-a); }
.lane-badge--b { background: var(--brew-b); color: var(--on-brew-b); box-shadow: var(--shadow-badge-b); }
.lane-card__variant { font-size: 13px; color: var(--text-sub); font-weight: 600; }
.lane-card__ey { margin-left: auto; font: 600 17px var(--mono); color: var(--brew-a-bright); }
.lane-card__ey--b { color: var(--brew-b-bright); }
.lane-card__scene { position: relative; flex: 1; min-height: 500px; }   /* portrait — frames the tall rig */
.lane-card__scene .lane-scene { position: absolute; inset: 0; border-radius: 0; }

/* ONE synced transport under both scenes */
.ab-transport {
  display: flex; align-items: center; gap: var(--space-12);
  padding: var(--space-4) var(--space-4) var(--space-2);
}
.ab-scrub { position: relative; flex: 1; display: flex; align-items: center; min-width: 0; }
.t-tick {
  position: absolute; top: 50%; left: calc(var(--p, 0) * 100%);
  width: 2px; height: 13px; transform: translate(-50%, -50%);
  border-radius: var(--r-2); pointer-events: none;
}
.t-tick--a { background: var(--brew-a); box-shadow: var(--shadow-tick-a); }
.t-tick--b { background: var(--brew-b); box-shadow: var(--shadow-tick-b); }
.t-play {
  flex: none; width: 34px; height: 34px; border-radius: var(--r-pill); border: none;
  display: grid; place-items: center; cursor: pointer;
  background: var(--accent-soft); color: var(--accent);
  transition: transform .12s;
}
.lane-card--b .t-play { background: var(--brew-b-a14); color: var(--brew-b-bright); }
.t-play:hover { transform: scale(1.08); }
.t-play svg { width: var(--icon-xs); height: var(--icon-xs); }
.t-play .ic-pause { display: none; }
.t-play.is-playing .ic-play { display: none; }
.t-play.is-playing .ic-pause { display: block; }
.t-clock { font: 600 12.5px var(--mono); color: var(--text-sub); min-width: 36px; }
.t-clock--end { text-align: right; }
.t-slider { flex: 1; appearance: none; -webkit-appearance: none; height: 4px;
  border-radius: var(--r-4); background: var(--track); outline: none; cursor: pointer; }
.t-slider::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 14px; height: 14px; border-radius: var(--r-pill);
  background: var(--brew-a); box-shadow: var(--shadow-thumb-a);
  border: 2px solid var(--thumb-ring-a);
}
.t-slider--b::-webkit-slider-thumb { background: var(--brew-b);
  box-shadow: var(--shadow-thumb-b); border-color: var(--thumb-ring-b); }
.t-slider::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: var(--r-pill);
  background: var(--brew-a); border: 2px solid var(--thumb-ring-a);
}
.t-slider--b::-moz-range-thumb { background: var(--brew-b); border-color: var(--thumb-ring-b); }

/* insights */
.insights { display: flex; flex-direction: column; gap: var(--space-18); min-width: 0; }
.insights__card {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--space-16) var(--space-16) var(--space-14);
}
.insights__card h3 {
  display: flex; align-items: center; gap: var(--space-9);
  font-size: 14.5px; font-weight: 650; margin-bottom: var(--space-12);
}
.insights__card h3 svg { width: 17px; height: 17px; color: var(--accent); }
.insights__cred {
  font-size: 11.5px; line-height: 1.45; color: var(--muted);
  border-left: 2px solid var(--accent); padding-left: var(--space-9);
  margin: calc(-1 * var(--space-4)) 0 var(--space-12);
}
.insights__cred a { color: var(--blue-bright); text-decoration: none; white-space: nowrap; }
.insights__cred a:hover { text-decoration: underline; }
.insights__table { width: 100%; border-collapse: collapse; }
.insights__table tr { border-top: 1px solid var(--line-a70); }
.insights__table tr:first-child { border-top: none; }
.insights__table th {
  text-align: left; font-size: 12px; font-weight: 500; color: var(--text-sub);
  padding: var(--space-8) var(--space-6) var(--space-8) 0; white-space: nowrap;
}
.insights__cols th { padding: 0 var(--space-2) var(--space-9); font: 600 11px var(--mono); text-align: center; }
.insights__cols .col-d { color: var(--text-sub); text-align: right; }
.lane-badge--xs { width: 18px; height: 18px; font-size: 10px; display: inline-grid; box-shadow: none; }
.insights__table td { font: 500 11px var(--mono); padding: var(--space-8) var(--space-2); white-space: nowrap; }
.insights__table td.a { color: var(--brew-a-bright); text-align: center; }
.insights__table td.b { color: var(--brew-b-bright); text-align: center; }
.insights__table td.d { text-align: right; padding-left: var(--space-8); }
.insights__table td.d.pos { color: var(--accent); }
.insights__table td.d.neg { color: var(--neg); }
.insights__table td.d.neu { color: var(--text-dim); }
.insights__table td.v--prose {
  font-family: inherit; font-size: 12px; line-height: 1.4; white-space: normal;
  color: var(--accent); text-align: left;
}

/* evenness row — the value carries a lead word ("center +2.3 pts"), so let this
   one row wrap and breathe rather than forcing the whole table wider. */
.insights__table tr[data-k="evenness"] td.a,
.insights__table tr[data-k="evenness"] td.b { white-space: normal; line-height: 1.3; }
.insights__table tr[data-k="evenness"] th[title] { cursor: help; }

/* ---- radial-EY evenness sparkline strip ---- */
.insights__spark h3 svg { color: var(--accent); }
.spark-strip { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); }
.spark {
  margin: 0; position: relative;
  border: 1px solid var(--line); border-radius: var(--r-10);
  background: var(--white-a02); padding: var(--space-20) var(--space-8) var(--space-8);
}
.spark--a { border-color: var(--brew-a-a25); }
.spark--b { border-color: var(--brew-b-a30); }
.spark .lane-badge--xs { position: absolute; top: 6px; left: 6px; }
.spark__plot { position: relative; height: 46px; }
.spark__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.spark__line { fill: none; stroke-width: 2px; vector-effect: non-scaling-stroke;
  stroke-linejoin: round; stroke-linecap: round; }
.spark__svg--a .spark__line { stroke: var(--brew-a); }
.spark__svg--b .spark__line { stroke: var(--brew-b); }
.spark__mean { stroke-width: 1px; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke;
  stroke: var(--text-dim); opacity: 0.7; }
.spark__mean-lbl {
  position: absolute; right: 2px; transform: translateY(-50%);
  font: 500 9px var(--mono); color: var(--text-dim);
  background: var(--panel-2); padding: 0 var(--space-2); pointer-events: none;
}
.spark__axis {
  display: flex; justify-content: space-between; margin-top: var(--space-5);
  font: 500 10px var(--mono); color: var(--text-dim); text-transform: uppercase;
  letter-spacing: 0.04em;
}
.spark__cap { margin: var(--space-6) 0 0; font-size: 11.5px; color: var(--text-sub); line-height: 1.35; }

.insights__radar .radar-host { height: 250px; position: relative; }
.insights__radar .m-radar { width: 100%; height: 100%; display: block; }
.radar-legend { display: flex; justify-content: center; gap: var(--space-22); margin-top: var(--space-8);
  font-size: 12px; color: var(--text-sub); }
.radar-legend .sw { display: inline-block; width: 16px; height: 3px; border-radius: var(--r-2);
  vertical-align: middle; margin-right: var(--space-7); }
.sw--a { background: var(--brew-a); }
.sw--b { background: var(--brew-b); }

/* ============================== experiment cards ============================== */
.exps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-16);
  margin: 0 0 var(--space-34);
}
.exp-card {
  display: flex; align-items: center; gap: var(--space-13); text-align: left;
  padding: var(--space-16) var(--space-15); cursor: pointer;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--text);
  font-family: inherit; font-size: 14px;
  transition: border-color .18s, transform .15s, box-shadow .2s;
}
.exp-card:hover { transform: translateY(-2px); border-color: var(--accent-a40);
  box-shadow: var(--shadow-card-hover); }
.exp-card.is-active { border-color: var(--accent-a70);
  box-shadow: var(--shadow-card-active); }
.exp-card__ic {
  flex: none; width: 44px; height: 44px; border-radius: var(--r-12);
  display: grid; place-items: center;
  color: var(--blue); background: var(--blue-a08);
  border: 1px solid var(--blue-a30);
}
.exp-card__ic svg { width: var(--icon-lg); height: var(--icon-lg); stroke: currentColor; fill: none;
  filter: drop-shadow(0 0 4px var(--blue-a30)); }
.exp-card__tx { min-width: 0; }
.exp-card__tx strong { display: block; font-size: 14px; margin-bottom: var(--space-3); }
.exp-card__tx span { display: block; font-size: 12px; color: var(--text-sub); line-height: 1.35; }
.exp-card__arrow { margin-left: auto; flex: none; color: var(--text-dim); }
.exp-card__arrow svg { width: var(--icon-xs); height: var(--icon-xs); }

/* ============================== how it works ============================== */
.how { padding: var(--space-34) var(--pad-section) var(--space-38); margin-bottom: var(--space-34); }
.how h2 { font-size: var(--fs-h2); margin-bottom: var(--space-24); }
.how__steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-26); margin: 0; padding: 0; }
.how__steps li { display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-14); align-items: baseline; }
.how__steps strong { font-size: 15.5px; }
.how__steps li > span:last-child { grid-column: 2; font-size: 13.5px; color: var(--text-sub); margin-top: var(--space-4); }
.how__n {
  width: 30px; height: 30px; border-radius: var(--r-pill); display: grid; place-items: center;
  font: 700 14px var(--mono); color: var(--accent);
  border: 1px solid var(--accent-a45); align-self: start;
  box-shadow: var(--shadow-n);
}

/* ============================== faq ============================== */
.faq { padding: var(--space-34) var(--pad-section) var(--space-30); margin-bottom: var(--space-34); }
.faq h2 { font-size: var(--fs-h2); margin-bottom: var(--space-22); }
.faq__list { display: grid; gap: var(--space-10); }
.faq__item {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--space-4) var(--space-18);
}
.faq__item summary {
  list-style: none; cursor: pointer; padding: var(--space-14) 0;
  font-size: 16px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-14);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex: 0 0 auto;
  font: 400 20px/1 var(--mono); color: var(--blue-bright);
  transition: transform .18s ease;
}
.faq__item[open] summary::after { content: "–"; }
.faq__item summary:hover { color: var(--blue-bright); }
.faq__item p {
  margin: 0 0 var(--space-16); padding-top: var(--space-2);
  font-size: 14.5px; line-height: 1.6; color: var(--text-sub);
  border-top: 1px solid var(--line);
  padding-top: var(--space-14);
}

/* ============================== beta ============================== */
.beta {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-34); align-items: center;
  padding: var(--space-34) var(--space-38); margin-bottom: var(--space-40);
  background:
    radial-gradient(80% 130% at 8% 50%, var(--blue-a06) 0%, transparent 60%),
    linear-gradient(180deg, var(--panel) 0%, var(--bg-soft) 100%);
}
/* The robot at the conversion moment. It is the guide, so it is sized to sit
   BESIDE the copy, not to compete with the CTA — see BRAND_BRIEF.md. The glow
   is the same soft blue pool the About-page figure uses, so the character reads
   the same wherever it appears. */
.beta__illo { width: 190px; margin: 0; flex: none; }
.beta__copy h2 { font-size: var(--fs-h2-beta); margin: var(--space-14) 0 var(--space-10); }
.beta__copy p { color: var(--text-sub); margin: 0; max-width: 36em; }
.beta__form { display: grid; grid-template-columns: minmax(210px, 1fr) auto; gap: var(--space-10); align-items: center; }
.beta__form input {
  padding: var(--space-13) var(--space-16); border-radius: var(--r-10);
  background: var(--scrim-input); border: 1px solid var(--line);
  color: var(--text); font: 400 15px inherit; font-family: inherit; outline: none;
  transition: border-color .15s;
}
.beta__form input:focus { border-color: var(--blue-a50); }
.beta__form .btn { white-space: nowrap; }
.beta__note { grid-column: 1 / -1; font-size: 12px; color: var(--text-dim); }
/* pricing note + why-waves link inside the Early Access modal (near submit) */
.beta__pricing { grid-column: 1 / -1; margin: 0; display: flex; flex-wrap: wrap;
  align-items: center; gap: var(--space-5) var(--space-8);
  font: 500 12.5px var(--mono); letter-spacing: .01em; color: var(--text-sub); }
.beta__pricing-sep { color: var(--accent-a50); }
.beta__whylink { grid-column: 1 / -1; font-size: 12.5px; color: var(--summary-more);
  text-decoration: none; }
.beta__whylink:hover { color: var(--blue-bright); text-decoration: underline; }
.beta__form.is-done input, .beta__form.is-done select, .beta__form.is-done textarea, .beta__form.is-done .btn { display: none; }
.beta__thanks { grid-column: 1 / -1; color: var(--accent); font-weight: 600; }
/* small pricing note under the Early Access CTA (page section) */
.beta__underline { margin: var(--space-12) 0 0; font: 500 12.5px var(--mono);
  letter-spacing: .01em; color: var(--text-dim); }

/* ============================== hero CTA + pricing note ============================== */
.hero__cta { margin: 0 0 var(--space-34); }
.hero__join { min-width: 220px; }
.hero__note {
  margin: var(--space-12) 0 0; display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-5) var(--space-8);
  font: 500 12.5px var(--mono); letter-spacing: .01em; color: var(--text-dim);
}
.hero__note-sep { color: var(--accent-a50); }

/* ============================== why early access ============================== */
.why { padding: var(--space-34) var(--pad-section) var(--space-38); margin-bottom: var(--space-34); }
.why__head { max-width: 48em; }
.why h2 { font-size: var(--fs-h2); margin: var(--space-12) 0 var(--space-12); }
.why__lead { color: var(--text-sub); font-size: var(--fs-lead); margin: 0; max-width: 42em; }
.why__waves { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-26); margin: var(--space-30) 0; padding: 0; }
.why__waves li { display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-14);
  row-gap: var(--space-4); align-items: baseline; }
.why__waves strong { grid-column: 2; font-size: 15.5px; }
.why__waves li > span:last-child { grid-column: 2; font-size: 13.5px; color: var(--text-sub); line-height: 1.45; }
.why__step {
  width: 30px; height: 30px; border-radius: var(--r-pill);
  display: grid; place-items: center; align-self: start;
  font: 700 14px var(--mono); color: var(--accent);
  border: 1px solid var(--accent-a45); box-shadow: var(--shadow-n);
}
.why__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-14); }
.why__cta-note { font: 500 12.5px var(--mono); letter-spacing: .01em; color: var(--text-dim); }

/* ============================== founder ============================== */
.founder {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-30); align-items: start;
  padding: var(--space-34) var(--space-38); margin-bottom: var(--space-34);
  background:
    radial-gradient(80% 130% at 8% 30%, var(--accent-a06) 0%, transparent 60%),
    linear-gradient(180deg, var(--panel) 0%, var(--bg-soft) 100%);
}
.founder__mark {
  width: 88px; height: 88px; border-radius: var(--r-round); display: grid; place-items: center;
  background: var(--accent-a08); border: 1px solid var(--accent-a35);
  box-shadow: var(--ring-inset-accent);
}
.founder__monogram { font: 700 26px var(--mono); letter-spacing: .04em; color: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent-a40)); }
.founder__copy { max-width: 48em; }
.founder h2 { font-size: var(--fs-h2); margin: var(--space-12) 0 var(--space-14); }
.founder__copy p { color: var(--text-sub); margin: 0 0 var(--space-12); font-size: 14.5px; line-height: 1.6; }
.founder__sign { display: block; margin-top: var(--space-6);
  font: 600 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-bright); }

/* ============================== roadmap ============================== */
.roadmap { padding: var(--space-34) var(--pad-section) var(--space-38); margin-bottom: var(--space-40); }
.roadmap__head { max-width: 48em; }
.roadmap h2 { font-size: var(--fs-h2); margin: var(--space-12) 0 var(--space-12); }
.roadmap__lead { color: var(--text-sub); font-size: var(--fs-lead); margin: 0 0 var(--space-30); max-width: 42em; }
.roadmap__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-18); align-items: start; }
.roadmap__col {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-20) var(--space-20) var(--space-18);
}
.roadmap__col--now { border-color: var(--accent-a35); }
.roadmap__col h3 { display: flex; align-items: center; gap: var(--space-9); margin-bottom: var(--space-16); }
.roadmap__dot { width: 9px; height: 9px; border-radius: var(--r-round); flex: none; }
.roadmap__dot--now { background: var(--accent); box-shadow: var(--shadow-badge-a); }
.roadmap__dot--next { background: var(--text-dim); }
.roadmap__col ul { list-style: none; display: grid; gap: var(--space-11); margin: 0; padding: 0; }
.roadmap__col li { position: relative; padding-left: var(--space-22); font-size: 14px; color: var(--text); line-height: 1.4; }
.roadmap__col li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: var(--r-2);
}
.roadmap__col--now li::before { background: var(--accent); box-shadow: 0 0 6px var(--accent-a40); }
.roadmap__col--next li { color: var(--text-sub); }
.roadmap__col--next li::before { border: 1px solid var(--line-2); }
.roadmap__cta { margin-top: var(--space-26); }

/* ============================== early-access confirmation (modal) ============================== */
/* [hidden] must win over the explicit display on .beta__form--q / .btn so
   showConfirmation() (form → confirmation) and the founder-button swap actually
   hide their targets. */
.beta-modal__panel [hidden] { display: none !important; }
.ea-confirm { text-align: center; }
.ea-confirm__mark {
  width: 46px; height: 46px; margin: var(--space-4) auto var(--space-12); border-radius: var(--r-round);
  display: grid; place-items: center; color: var(--on-accent); background: var(--accent);
  box-shadow: var(--shadow-badge-a);
}
.ea-confirm__mark svg { width: var(--icon-lg); height: var(--icon-lg); }
.ea-confirm__title { font-size: 22px; color: var(--text-bright); margin: 0 0 var(--space-10); }
.ea-confirm__lead { color: var(--modal-text); font-size: 14.5px; line-height: 1.55;
  margin: 0 auto var(--space-16); max-width: 34em; }
.ea-confirm__list { list-style: none; text-align: left; display: grid; gap: var(--space-8);
  margin: 0 0 var(--space-20); padding: 0; }
.ea-confirm__list li { position: relative; padding-left: var(--space-24);
  font-size: 13.5px; color: var(--modal-text); line-height: 1.45; }
.ea-confirm__list li::before {
  content: ""; position: absolute; left: var(--space-5); top: 6px;
  width: 7px; height: 7px; border-radius: var(--r-round); background: var(--accent);
}
.ea-founder { border-top: 1px solid var(--line); padding-top: var(--space-18); text-align: left; }
.ea-founder__title { font-size: 15px; color: var(--text-bright); margin: 0 0 var(--space-6); }
.ea-founder__p { font-size: 13px; color: var(--text-sub); line-height: 1.5; margin: 0 0 var(--space-14); }
.ea-founder .btn { width: 100%; }
.ea-founder__done { margin: var(--space-12) 0 0; font-size: 13px; color: var(--accent); font-weight: 600; }

/* ============================== footer ============================== */
.site-foot {
  max-width: 1180px; margin: 0 auto; padding: var(--space-22) var(--space-28) var(--space-34);
  display: flex; align-items: center; gap: var(--space-26);
  border-top: 1px solid var(--line-a60);
  color: var(--text-dim); font-size: 13.5px;
}
.site-foot__social { display: flex; gap: var(--space-18); margin-left: auto; }
.site-foot__social a { color: var(--text-dim); transition: color .15s; }
.site-foot__social a:hover { color: var(--text-sub); }
.site-foot__social svg { width: 18px; height: 18px; }
.site-foot__ea { color: var(--accent); font-weight: 600; transition: color .15s; }
.site-foot__ea:hover { color: var(--accent-hi); }
.site-foot__links { display: flex; flex-wrap: wrap; gap: var(--space-10) var(--space-22); }
.site-foot__links a:hover { color: var(--text-sub); }
.site-foot__ver {
  margin-left: auto; font: 500 11.5px/1 var(--mono);
  letter-spacing: .02em; color: var(--text-dim); opacity: .75; white-space: nowrap;
}

/* ---- new-version prompt (iOS Safari otherwise pins a stale app/engine) ---- */
.cs-update {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%); z-index: 999;
  display: flex; align-items: center; gap: var(--space-14);
  max-width: calc(100vw - 24px); padding: var(--space-11) var(--space-12) var(--space-11) var(--space-18);
  font-size: 14px; color: var(--text-bright);
  background: var(--scrim-update); border: 1px solid var(--accent-a45);
  border-radius: var(--r-pill); box-shadow: var(--shadow-update);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: cs-update-in .35s cubic-bezier(.2, .8, .2, 1);
}
@keyframes cs-update-in { from { opacity: 0; transform: translate(-50%, 12px); } }
.cs-update__btn {
  flex: none; cursor: pointer; font: 600 13px/1 inherit; color: var(--accent-ink);
  background: var(--accent); border: 0; border-radius: var(--r-pill); padding: var(--space-8) var(--space-16);
  transition: filter .15s;
}
.cs-update__btn:hover { filter: brightness(1.08); }

/* ============================== responsive ============================== */
@media (max-width: 1020px) {
  .demo__stage { grid-template-columns: 1fr; }
  .insights { display: grid; grid-template-columns: 1fr 1fr; }
  .exps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  main { padding: 0 16px; }
  .site-head { padding: 12px 16px; gap: 14px; }
  /* The tagline wraps to two lines here and shoves the CTA into the burger.
     The wordmark alone carries the brand at this width. */
  .brand__tagline { display: none; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 6px 0 12px;
    background: var(--bg-a96);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 22px; font-size: 16px; }
  .head-join { margin-left: auto; min-width: 6rem; }
  .head-join__full { display: none; }
  .head-join__short { display: inline; }
  .nav-burger { display: block; margin-left: 0; }

  .hero { grid-template-columns: 1fr; padding-top: 30px; gap: 22px; }
  .hero__copy h1 { margin-top: 18px; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; padding: 15px 26px; }
  /* hero feature list is relocated (by landing.js) to sit BELOW the demo on mobile */
  .hero__features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
  .hero__features.is-relocated { margin: 22px 0 12px; }
  li.feat--mobile { display: flex; }

  .demo { padding: 18px 14px 22px; }
  .demo__head { justify-content: center; }
  .demo__title { display: none; }
  /* experiments become a swipeable scroll-snap strip */
  .demo__exps {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -14px 18px; padding: 2px 14px 8px; -webkit-overflow-scrolling: touch;
  }
  .demo__exps .exp-card { flex: 0 0 80%; scroll-snap-align: center; }

  /* keep the chip + Run button together on the top line; drop the subtext to
     its own line beneath so the Run button never gets pushed off the chip row */
  .demo__changed { gap: 8px 10px; }
  .demo__changed .chip { white-space: nowrap; font-size: 11px; }
  .demo__changed-sub { order: 3; flex: 1 1 100%; font-size: 12px; }
  .demo__changed #runBtn { order: 2; padding: 10px 20px; }

  /* scenes STAY side by side on mobile */
  .ab__scenes { gap: 8px; }
  .vs-badge { width: 32px; height: 32px; font-size: 10px; }
  .lane-card__head { padding: 9px 10px; gap: 7px; }
  .lane-card__ey { font-size: 14px; }
  .lane-card__scene { min-height: 300px; }   /* portrait on mobile too */

  /* --- touch-friendly synced transport --- */
  .ab-transport { flex-wrap: wrap; gap: 10px 12px; padding: 6px 2px 2px; }
  .t-play { width: 48px; height: 48px; }
  .t-play svg { width: 20px; height: 20px; }
  .t-clock { font-size: 13px; min-width: 40px; }
  /* the whole scrub area is a 44px-tall touch target; the visual track stays
     thin (drawn on the slider's runnable-track), the thumb is finger-sized */
  .ab-scrub { min-height: 44px; }
  .t-slider { height: 44px; background: transparent; }
  .t-slider::-webkit-slider-runnable-track {
    height: 6px; border-radius: var(--r-4); background: var(--track);
  }
  .t-slider::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -8px; }
  .t-slider::-moz-range-track { height: 6px; border-radius: var(--r-4); background: var(--track); }
  .t-slider::-moz-range-thumb { width: 20px; height: 20px; }
  /* speed + Layers stay a pair and wrap below the scrub only when tight */
  .ab-transport { justify-content: center; }
  .speed button { padding: 9px 11px; font-size: 12px; }
  .ab-layers { padding: 9px 12px; font-size: 12px; }
  /* the shared scale becomes a full-width caption bar under the controls (rather
     than a small ramp orphaned to one side): the gradient stretches edge-to-edge
     and the ticks spread, so it reads as the instrument's scale, not a stray chip */
  .ab-controls { justify-content: center; }
  .ab-legend { flex: 1 1 100%; margin-top: 2px; }
  .ab-legend > * { min-width: 0 !important; width: 100%; }
  .insights { grid-template-columns: 1fr; }
  .insights__card { overflow-x: auto; }
  .exps { grid-template-columns: 1fr; }
  .how__steps { grid-template-columns: 1fr; }
  .hero__join { width: 100%; }
  .why__waves { grid-template-columns: 1fr; gap: 18px; }
  .founder { grid-template-columns: 1fr; gap: 18px; padding: 26px 20px; }
  .founder__mark { width: 64px; height: 64px; }
  .founder__monogram { font-size: 20px; }
  .roadmap__cols { grid-template-columns: 1fr; }
  .beta { grid-template-columns: 1fr; padding: 26px 20px; gap: 20px; }
  .beta__illo { display: none; }
  .beta__form { grid-template-columns: 1fr; }
  /* stack the footer cleanly: copyright, then the (wrapping) link block, then
     the version line — each on its own row, left-aligned with breathing room */
  .site-foot {
    flex-direction: column; align-items: flex-start; gap: 16px;
    padding: 24px 18px 34px;
  }
  .site-foot__links { gap: 12px 20px; }
  .site-foot__links a { padding: 3px 0; }   /* comfier tap targets */
  .site-foot__ver { margin-left: 0; }        /* was auto → don't shove it right */
}

/* ==================================================================
   MODAL · QUESTIONNAIRE · LANGUAGE SWITCH
   Previously duplicated inline in every index.html <style> block; moved
   here (tokenized) so the three locales share one source. Class names +
   IDs are unchanged — landing.js and the other locales depend on them.
   ================================================================== */

/* beta questionnaire (extends .beta__form) — a single stacked column so every
   field is full width with an even rhythm (the base .beta__form grid is for the
   inline page form; the modal questionnaire overrides it to flex here) */
.beta__form--q { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-14); }
.beta__form--q #betaCountry, .beta__form--q #contactFrom { flex: 1 1 100%; }
.beta__form--q input:not([type=checkbox]) { min-height: 46px; border-radius: var(--r-12); }
/* country selector — matches the dark inputs, with a custom chevron */
.beta__select {
  flex: 1 1 100%; box-sizing: border-box;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  width: 100%; min-height: 46px; padding: var(--space-12) var(--space-42) var(--space-12) var(--space-14);
  border-radius: var(--r-12); border: 1px solid var(--white-a14);
  background-color: var(--scrim-input-2); color: var(--text-bright);
  font: 15px/1.4 var(--font-sans); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%237fb8ae' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px;
  transition: border-color .15s;
}
.beta__select:focus { outline: none; border-color: var(--accent); }
.beta__select:has(option[value=""]:checked) { color: var(--accent-bright-a50); }
.beta__select option { background: var(--panel-solid); color: var(--text-bright); }
.beta__select option[value=""] { color: var(--accent-bright-a50); }
.beta__uses { flex: 1 1 100%; border: 1px solid var(--accent-a20); border-radius: var(--r-14); padding: var(--space-12) var(--space-14); margin: 0; }
.beta__uses legend { font: 600 12px/1 var(--font-sans); letter-spacing: .03em; color: var(--accent-bright); padding: 0 var(--space-6); }
.beta__uses legend span { color: var(--accent-bright-a50); font-weight: 400; }
.beta__uses label { display: flex; align-items: center; gap: var(--space-9); padding: var(--space-6) var(--space-2); font-size: 14px; color: var(--check-label); cursor: pointer; }
.beta__uses input, .beta__consent input { width: 16px; height: 16px; min-height: 0; accent-color: var(--accent); cursor: pointer; flex: 0 0 auto; }
.beta__consent { flex: 1 1 100%; display: flex; align-items: center; gap: var(--space-9); font-size: 13px; color: var(--consent-a85); cursor: pointer; }
.beta__form--q .btn { flex: 1 1 100%; }
.beta__note-input {
  flex: 1 1 100%; box-sizing: border-box; width: 100%; padding: var(--space-11) var(--space-13);
  border-radius: var(--r-12); border: 1px solid var(--white-a14);
  background: var(--scrim-input-2); color: var(--text-bright);
  font: 14px/1.5 var(--font-sans); resize: vertical; min-height: 44px;
}
.beta__note-input::placeholder { color: var(--accent-bright-a45); }
.beta__note-input:focus { outline: none; border-color: var(--accent); }
.beta__open { margin-top: var(--space-20); align-self: flex-end; }
/* email-first modal: questionnaire collapsed under an optional expander */
.beta__more { flex: 1 1 100%; padding: 0; margin: 0; border: none; }
.beta__more > summary { cursor: pointer; font: 600 13px/1 var(--font-sans); color: var(--summary-more); list-style: none; padding: var(--space-6) 0; }
.beta__more > summary::-webkit-details-marker { display: none; }
.beta__more > summary::before { content: '+  '; color: var(--accent); font-weight: 700; }
.beta__more[open] > summary::before { content: '–  '; }
.beta__more[open] { display: flex; flex-direction: column; gap: var(--space-12); }
/* language switcher (active code + dropdown) */
.lang-switch { position: relative; display: inline-flex; margin-left: var(--space-8); }
.lang-switch__btn { display: inline-flex; align-items: center; gap: var(--space-3); font: 700 11px/1 var(--font-sans); letter-spacing: .05em; color: var(--accent-bright); background: var(--scrim-teal-dark); border: 1px solid var(--accent-a25); border-radius: var(--r-8); padding: var(--space-6) var(--space-8); cursor: pointer; }
.lang-switch__btn:hover { border-color: var(--accent); }
.lang-switch__caret { font-size: 9px; opacity: .7; }
.lang-switch__menu { position: absolute; top: calc(100% + 6px); right: 0; min-width: 120px; background: var(--panel-solid); border: 1px solid var(--accent-a25); border-radius: var(--r-10); padding: var(--space-5); display: none; flex-direction: column; gap: var(--space-1); z-index: 20; box-shadow: var(--shadow-dropdown); }
.lang-switch.is-open .lang-switch__menu { display: flex; }
.lang-switch__item { font: 600 12px/1 var(--font-sans); color: var(--lang-item); text-decoration: none; padding: var(--space-8) var(--space-9); border-radius: var(--r-6); white-space: nowrap; }
.lang-switch__item:hover { color: var(--text-bright); background: var(--accent-a10); }
.lang-switch__item.is-active { color: var(--text-bright); background: var(--accent-a16); }
/* beta modal (questionnaire behind the CTA) */
.beta-modal { border: none; background: transparent; padding: 0; max-width: 500px; width: min(94vw, 500px); color: var(--modal-text); }
.beta-modal::backdrop { background: var(--scrim-backdrop); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.beta-modal__panel { position: relative; background: var(--panel-solid); border: 1px solid var(--accent-a25); border-radius: var(--r-18); padding: var(--pad-modal); box-shadow: var(--shadow-modal); }
.beta-modal__close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-round); border: 1px solid var(--white-a14); background: transparent; color: var(--modal-close); cursor: pointer; font-size: 15px; line-height: 1; transition: color .15s, border-color .15s; }
.beta-modal__close:hover { color: var(--text-bright); border-color: var(--accent); }
.beta-modal__panel .chip { margin-right: var(--space-42); }
.beta-modal__title { margin: var(--space-14) 0 var(--space-18); font-size: 22px; line-height: 1.2; color: var(--text-bright); }
.beta__uses label { min-height: 34px; }
.beta__consent { padding: var(--space-2) 0; }

/* sign-in panel (reuses .beta-modal / .beta__form--q / .ea-confirm) */
.signin__body { margin: 0; color: var(--modal-text); font-size: 14.5px; line-height: 1.55; }
.signin__note { margin: 0; font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }
.signin__newhere { margin: 0; font-size: 13px; color: var(--text-sub); line-height: 1.5; }
.signin__newhere a { color: var(--accent); text-decoration: none; white-space: nowrap; }
.signin__newhere a:hover { text-decoration: underline; }
.signin__msg { margin: 0; font-size: 13px; color: var(--neg); line-height: 1.5; }
.signin__msg[hidden] { display: none; }

/* 2026-07-22 owner review: breathing room. The modal read crammed (especially
   on mobile) and checkbox rows sat tight; general sections get a touch more
   vertical rhythm on small screens. */
.beta-modal__panel { padding: calc(var(--pad-modal) * 1.2); }
.beta__form--q { gap: var(--space-16, 16px); }
.beta__uses { padding: var(--space-14) var(--space-16, 16px); }
.beta__uses label { padding: var(--space-8, 8px) var(--space-2); }
.ea-note { line-height: 1.75; }
@media (max-width: 640px) {
  .beta-modal__panel { padding: 22px 18px; }
  .beta__form--q { gap: 14px; }
  .beta__uses label { font-size: 13.5px; padding: 7px 2px; }
  .beta__uses input, .beta__consent input { width: 15px; height: 15px; }
  section { scroll-margin-top: 70px; }
  .panel, .hero { padding-top: 26px; padding-bottom: 26px; }
}
