/* 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. */

:root {
  --bg: #05080d;
  --bg-soft: #0a1016;
  --panel: #0b111a;
  --panel-2: #0e1520;
  --line: #1b2532;
  --line-soft: rgba(53, 224, 200, 0.16);
  --text: #eef2f5;
  --text-sub: #93a1af;
  --text-dim: #5d6b78;
  --accent: #35e0c8;
  --accent-soft: rgba(53, 224, 200, 0.12);
  --violet: #8b7cf0;
  --violet-soft: rgba(139, 124, 240, 0.14);
  --brew-a: #35e0c8;
  --brew-b: #8b7cf0;
  --brew-b-soft: rgba(139, 124, 240, 0.16);
  --m-radar-grid: rgba(120, 140, 155, 0.25);
  --m-radar-text: rgba(150, 165, 178, 0.9);
  --radius: 14px;
  --radius-lg: 20px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(120% 70% at 75% -10%, #0c1420 0%, transparent 60%),
    radial-gradient(90% 60% at 10% 30%, #081019 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  font: 400 16px/1.55 ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -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 28px; }

/* ============================== header ============================== */
.site-head {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 30px;
  max-width: 1180px; margin: 0 auto;
  padding: 14px 28px;
}
.site-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(5, 8, 13, 0.82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27, 37, 50, 0.6);
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { width: 34px; height: 34px; color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(53, 224, 200, 0.45)); }
.brand__mark svg { width: 100%; height: 100%; }
.brand__mark--sm { width: 26px; height: 26px; }
.brand__name { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { color: var(--text-sub); font-size: 14.5px; font-weight: 500; transition: color .15s; }
.site-nav a:hover { color: var(--text); }
.head-join { margin-left: 4px; }
.nav-burger { display: none; background: none; border: none; color: var(--text);
  width: 40px; height: 40px; padding: 8px; 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: 9px;
  padding: 13px 26px; border-radius: 999px; border: none; cursor: pointer;
  font: 600 15.5px/1 inherit; 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: #04241f;
  box-shadow: 0 0 24px rgba(53, 224, 200, 0.35);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 0 34px rgba(53, 224, 200, 0.5); }
.btn--ghost {
  background: transparent; color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px #2c3a4c; }
.btn--ghost-accent {
  background: transparent; color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(53, 224, 200, 0.45);
}
.btn--ghost-accent:hover { background: var(--accent-soft); }
.btn--pill { padding: 9px 20px; font-size: 14px; }
.btn--wide { min-width: 260px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  color: var(--accent); background: rgba(53, 224, 200, 0.07);
  border: 1px solid var(--line-soft);
}
.chip--mono { font-family: var(--mono); }
.chip--accent { font-size: 13px; padding: 7px 18px; }
.chip--violet { color: var(--violet); border-color: rgba(139, 124, 240, 0.3);
  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 ============================== */
.hero {
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 30px;
  align-items: center; padding: 46px 0 40px;
}
.hero__copy h1 {
  font-size: clamp(40px, 5.2vw, 62px); font-weight: 750; margin: 22px 0 18px;
}
.hero__copy .grad {
  background: linear-gradient(92deg, var(--accent) 10%, #6fc3f0 45%, var(--violet) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { color: var(--text-sub); font-size: 18px; max-width: 34em; margin: 0 0 26px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero__features {
  list-style: none; display: flex; gap: 26px; padding: 0; margin: 0;
}
.hero__features li { display: flex; gap: 11px; align-items: flex-start; min-width: 0; }
.feat-ic {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--line-soft);
}
.feat-ic svg { width: 20px; height: 20px; }
.hero__features strong { display: block; font-size: 14px; color: var(--accent); }
.hero__features span:not(.feat-ic) { font-size: 12.5px; color: var(--text-sub); line-height: 1.35; display: block; margin-top: 2px; }
li.feat--mobile { display: none; }

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

/* ---- hero scene tabs (V60 / AeroPress) — neon segmented switcher ---- */
.hero-tabs {
  position: absolute; z-index: 7; top: 14px; left: 50%; transform: translateX(-50%);
  display: inline-flex; gap: 4px; padding: 4px;
  background: rgba(6, 20, 18, 0.72); border: 1px solid rgba(53, 224, 200, 0.28);
  border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.hero-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; border: 1px solid transparent; border-radius: 999px;
  background: transparent; color: #9fb6b0; cursor: pointer;
  font: 600 12px/1 ui-sans-serif, system-ui, sans-serif; letter-spacing: 0.04em;
  transition: color .18s, border-color .18s, background .18s, box-shadow .18s;
}
.hero-tab__ic { display: grid; place-items: center; }
.hero-tab__ic svg { width: 17px; height: 17px; display: block; }
.hero-tab:hover { color: #eafffb; border-color: rgba(53, 224, 200, 0.5); }
.hero-tab.is-active {
  color: #eafffb; background: rgba(53, 224, 200, 0.16);
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(53, 224, 200, 0.5), inset 0 0 0 1px rgba(53, 224, 200, 0.35);
}
@media (max-width: 640px) {
  .hero-tabs { top: 10px; }
  .hero-tab { padding: 6px 12px; font-size: 11.5px; }
  .hero-tab__lbl { display: inline; }
}
.hero__rig-caption {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  font-size: 10.5px; letter-spacing: 0.18em; white-space: nowrap;
  background: rgba(5, 8, 13, 0.65); 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%, #10171d 0%, #0a1014 55%, #070b0e 100%);
}

/* ---- vendored component CSS: rig stage (values match brew-sim-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 rgba(0, 0, 0, 0.55)); }
.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: 14px; pointer-events: none;
}
.rig-stage__ledcell { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.rig-stage__lednum { display: block; line-height: 0; }
.rig-stage__lednum .m-7seg { filter: drop-shadow(0 0 7px rgba(53, 224, 200, 0.35)); }
.rig-stage__ledlab {
  font-size: 8px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(53, 224, 200, 0.5); font-family: var(--mono);
}
.rig-stage__ledsep { width: 1px; align-self: stretch; margin: 2px 0;
  background: rgba(53, 224, 200, 0.2); }

/* ---- 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: 999px; border: none; background: none;
  color: rgba(53, 224, 200, 0.85); 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: #5ffbe2; }
.m-overlay-picker-btn svg { width: 26px; height: 26px; stroke: currentColor; fill: none;
  filter: drop-shadow(0 0 5px rgba(53, 224, 200, 0.55)); }
.m-overlay-picker-menu {
  position: absolute; left: 0; top: -8px; transform: translateY(-100%);
  display: flex; flex-direction: column; gap: 8px;
  background: rgba(5, 8, 9, 0.7);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 10px; border: 1px solid rgba(53, 224, 200, 0.25);
  padding: 8px; pointer-events: auto; min-width: max-content;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.m-overlay-picker-menu[hidden] { display: none; }
.m-overlay-menu-item {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; color: rgba(53, 224, 200, 0.75);
  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: rgba(53, 224, 200, 0.12); }
.m-overlay-menu-item.is-active {
  color: #5ffbe2; border-color: rgba(53, 224, 200, 0.55);
  background: rgba(9, 22, 22, 0.6);
  box-shadow: inset 0 0 6px rgba(53, 224, 200, 0.1);
}
.m-overlay-menu-item svg { width: 18px; height: 18px; stroke: currentColor; fill: none;
  filter: drop-shadow(0 0 3px rgba(53, 224, 200, 0.4)); }
.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: 26px 26px 30px; margin: 26px 0 34px; }
.demo__head {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding-bottom: 20px;
}
.demo__title { display: flex; align-items: center; gap: 11px; }
.demo__title h2 { font-size: 21px; }
.demo__changed {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start;
  gap: 8px 12px; margin: 0 0 20px;
}
.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: 4px; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px; }
.speed button {
  border: none; background: none; color: var(--text-sub); cursor: pointer;
  font: 600 12px var(--mono); letter-spacing: 0.06em;
  padding: 6px 12px; border-radius: 999px; 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: 8px 14px; border-radius: 999px; 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: rgba(53, 224, 200, 0.4); }
.ab-controls { display: flex; align-items: center; gap: 10px; }   /* speed + layers wrap as a pair */

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

/* stage = A/B block (scenes + one shared transport) beside the insights aside */
.demo__stage {
  display: grid; grid-template-columns: minmax(0, 1fr) 344px; gap: 18px;
  align-items: start;
}
.ab { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ab__scenes {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  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: 999px;
  font: 700 12px var(--mono); letter-spacing: 0.04em; color: var(--text-sub);
  background: rgba(9, 14, 20, 0.72); backdrop-filter: blur(5px);
  border: 1.5px solid rgba(53, 224, 200, 0.45);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5); z-index: 8;
}

.lane-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--panel-2);
  border: 1px solid rgba(53, 224, 200, 0.35);
  box-shadow: 0 0 0 1px rgba(53, 224, 200, 0.06), 0 0 30px rgba(53, 224, 200, 0.05) inset;
}
.lane-card--b { border-color: rgba(139, 124, 240, 0.4);
  box-shadow: 0 0 0 1px rgba(139, 124, 240, 0.07), 0 0 30px rgba(139, 124, 240, 0.05) inset; }
.lane-card__head {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
}
.lane-badge {
  width: 26px; height: 26px; border-radius: 999px; flex: none;
  display: grid; place-items: center;
  font: 700 13px var(--mono);
}
.lane-badge--a { background: var(--accent); color: #04241f; box-shadow: 0 0 12px rgba(53,224,200,.5); }
.lane-badge--b { background: var(--violet); color: #150f33; box-shadow: 0 0 12px rgba(139,124,240,.5); }
.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(--accent); }
.lane-card__ey--b { color: var(--violet); }
.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: 12px;
  padding: 4px 4px 2px;
}
.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: 2px; pointer-events: none;
}
.t-tick--a { background: var(--accent); box-shadow: 0 0 7px var(--accent); }
.t-tick--b { background: var(--violet); box-shadow: 0 0 7px var(--violet); }
.t-play {
  flex: none; width: 34px; height: 34px; border-radius: 999px; 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(--violet-soft); color: var(--violet); }
.t-play:hover { transform: scale(1.08); }
.t-play svg { width: 16px; height: 16px; }
.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: 4px; background: #1c2836; outline: none; cursor: pointer; }
.t-slider::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 14px; height: 14px; border-radius: 999px;
  background: var(--accent); box-shadow: 0 0 10px rgba(53, 224, 200, 0.7);
  border: 2px solid #062a26;
}
.t-slider--b::-webkit-slider-thumb { background: var(--violet);
  box-shadow: 0 0 10px rgba(139, 124, 240, 0.7); border-color: #17103a; }
.t-slider::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 999px;
  background: var(--accent); border: 2px solid #062a26;
}
.t-slider--b::-moz-range-thumb { background: var(--violet); border-color: #17103a; }

/* insights */
.insights { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.insights__card {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 16px 14px;
}
.insights__card h3 {
  display: flex; align-items: center; gap: 9px;
  font-size: 14.5px; font-weight: 650; margin-bottom: 12px;
}
.insights__card h3 svg { width: 17px; height: 17px; color: var(--accent); }
.insights__table { width: 100%; border-collapse: collapse; }
.insights__table tr { border-top: 1px solid rgba(27, 37, 50, 0.7); }
.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: 8px 6px 8px 0; white-space: nowrap;
}
.insights__cols th { padding: 0 2px 9px; 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: 8px 2px; white-space: nowrap; }
.insights__table td.a { color: var(--accent); text-align: center; }
.insights__table td.b { color: var(--violet); text-align: center; }
.insights__table td.d { text-align: right; padding-left: 8px; }
.insights__table td.d.pos { color: var(--accent); }
.insights__table td.d.neg { color: #e0637c; }
.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;
}

.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: 22px; margin-top: 8px;
  font-size: 12px; color: var(--text-sub); }
.radar-legend .sw { display: inline-block; width: 16px; height: 3px; border-radius: 2px;
  vertical-align: middle; margin-right: 7px; }
.sw--a { background: var(--brew-a); }
.sw--b { background: var(--brew-b); }

/* ============================== experiment cards ============================== */
.exps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin: 0 0 34px;
}
.exp-card {
  display: flex; align-items: center; gap: 13px; text-align: left;
  padding: 16px 15px; 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: rgba(53, 224, 200, 0.4);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4); }
.exp-card.is-active { border-color: rgba(53, 224, 200, 0.65);
  box-shadow: 0 0 0 1px rgba(53, 224, 200, 0.35), 0 0 26px rgba(53, 224, 200, 0.08); }
.exp-card__ic {
  flex: none; width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--line-soft);
}
.exp-card__ic svg { width: 24px; height: 24px; stroke: currentColor; fill: none;
  filter: drop-shadow(0 0 4px rgba(53, 224, 200, 0.4)); }
.exp-card__tx { min-width: 0; }
.exp-card__tx strong { display: block; font-size: 14px; margin-bottom: 3px; }
.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: 16px; height: 16px; }

/* ============================== how it works ============================== */
.how { padding: 34px 34px 38px; margin-bottom: 34px; }
.how h2 { font-size: 24px; margin-bottom: 24px; }
.how__steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 26px; margin: 0; padding: 0; }
.how__steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; 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: 4px; }
.how__n {
  width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center;
  font: 700 14px var(--mono); color: var(--accent);
  border: 1px solid rgba(53, 224, 200, 0.45); align-self: start;
  box-shadow: 0 0 10px rgba(53, 224, 200, 0.18);
}

/* ============================== faq ============================== */
.faq { padding: 34px 34px 30px; margin-bottom: 34px; }
.faq h2 { font-size: 24px; margin-bottom: 22px; }
.faq__list { display: grid; gap: 10px; }
.faq__item {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 4px 18px;
}
.faq__item summary {
  list-style: none; cursor: pointer; padding: 14px 0;
  font-size: 16px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.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(--accent);
  transition: transform .18s ease;
}
.faq__item[open] summary::after { content: "–"; }
.faq__item summary:hover { color: var(--accent); }
.faq__item p {
  margin: 0 0 16px; padding-top: 2px;
  font-size: 14.5px; line-height: 1.6; color: var(--text-sub);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* ============================== beta ============================== */
.beta {
  display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center;
  padding: 34px 38px; margin-bottom: 40px;
  background:
    radial-gradient(80% 130% at 8% 50%, rgba(53, 224, 200, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, var(--panel) 0%, var(--bg-soft) 100%);
}
.beta__illo { width: 130px; filter: drop-shadow(0 0 18px rgba(53, 224, 200, 0.25)); }
.beta__copy h2 { font-size: 26px; margin: 14px 0 10px; }
.beta__copy p { color: var(--text-sub); margin: 0; max-width: 36em; }
.beta__form { display: grid; grid-template-columns: minmax(210px, 1fr) auto; gap: 10px; align-items: center; }
.beta__form input {
  padding: 13px 16px; border-radius: 10px;
  background: rgba(5, 9, 14, 0.8); 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: rgba(53, 224, 200, 0.5); }
.beta__form .btn { white-space: nowrap; }
.beta__note { grid-column: 1 / -1; font-size: 12px; color: var(--text-dim); }
.beta__form.is-done input, .beta__form.is-done textarea, .beta__form.is-done .btn { display: none; }
.beta__thanks { grid-column: 1 / -1; color: var(--accent); font-weight: 600; }

/* ============================== footer ============================== */
.site-foot {
  max-width: 1180px; margin: 0 auto; padding: 22px 28px 34px;
  display: flex; align-items: center; gap: 26px;
  border-top: 1px solid rgba(27, 37, 50, 0.6);
  color: var(--text-dim); font-size: 13.5px;
}
.site-foot__social { display: flex; gap: 18px; 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__links { display: flex; gap: 22px; }
.site-foot__links a:hover { color: var(--text-sub); }

/* ============================== 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; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 6px 0 12px;
    background: rgba(5, 8, 13, 0.96);
    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; }
  .nav-burger { display: block; margin-left: 0; }

  .hero { grid-template-columns: 1fr; padding-top: 30px; gap: 22px; }
  .hero__copy h1 { font-size: clamp(34px, 10vw, 44px); margin-top: 18px; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; padding: 15px 26px; }
  .hero__rig-host { height: 440px; }
  /* 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: 4px; background: #1c2836;
  }
  .t-slider::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -8px; }
  .t-slider::-moz-range-track { height: 6px; border-radius: 4px; background: #1c2836; }
  .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; }
  .insights { grid-template-columns: 1fr; }
  .insights__card { overflow-x: auto; }
  .exps { grid-template-columns: 1fr; }
  .how__steps { grid-template-columns: 1fr; }
  .beta { grid-template-columns: 1fr; padding: 26px 20px; gap: 20px; }
  .beta__illo { display: none; }
  .beta__form { grid-template-columns: 1fr; }
  .site-foot { flex-wrap: wrap; padding: 20px 16px 30px; }
}
