/* ---------- Tokens ---------- */
:root {
  --bg: #0a0e17;
  --bg-alt: #0e1320;
  --surface: #131a2a;
  --surface-2: #1a2236;
  --border: #243049;
  --text: #e8ecf5;
  --muted: #94a0b8;
  --brand: #22d3a6;
  --brand-2: #6c8cff;
  --up: #22c55e;
  --down: #f87171;
  --warn: #fbbf24;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 2.5rem); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.up { color: var(--up); }
.down { color: var(--down); }
.lead { font-size: 1.15rem; color: var(--muted); }
.grad {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--brand); color: #04110d; padding: 0.5rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--brand);
  margin-bottom: 0.9rem;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 0 rgba(34, 211, 166, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(34, 211, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 166, 0); }
}

.tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem; border-radius: 999px;
  background: rgba(34, 211, 166, 0.15); color: var(--brand);
}
.tag--live { background: rgba(248, 113, 113, 0.15); color: var(--down); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.25rem; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: linear-gradient(135deg, var(--brand), #1cb48d); color: #04110d; }
.btn--primary:hover { background: linear-gradient(135deg, #3be3b8, var(--brand)); }
.btn--ghost { border-color: var(--border); background: var(--surface); color: var(--text); }
.btn--ghost:hover { border-color: var(--brand); }
.btn--sm { padding: 0.45rem 0.9rem; font-size: 0.9rem; }
.btn--lg { padding: 0.9rem 1.5rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 23, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 1.25rem; font-weight: 500; }
.brand strong { color: var(--brand); font-weight: 800; }
.nav__links { display: flex; align-items: center; gap: 1.75rem; font-size: 0.95rem; white-space: nowrap; }
.nav__links a:not(.btn) { color: var(--muted); }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__toggle {
  display: none; background: none; border: 0; padding: 0.5rem;
  flex-direction: column; gap: 5px;
}
.nav__toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.2s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 5rem 0 0; }
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 700px; pointer-events: none;
  background:
    radial-gradient(600px 300px at 20% 30%, rgba(34, 211, 166, 0.18), transparent 70%),
    radial-gradient(500px 300px at 80% 20%, rgba(108, 140, 255, 0.18), transparent 70%);
}
.hero__grid {
  position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center;
  padding-bottom: 4rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 2rem 0 1.5rem; }
.hero__points { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 0.95rem; }
.hero__points li::before { content: "✓"; color: var(--brand); margin-right: 0.4rem; font-weight: 700; }
.hero__visual { display: flex; justify-content: center; }

.phone {
  width: min(380px, 100%);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 28px; padding: 1.1rem;
  box-shadow: var(--shadow), 0 0 0 8px rgba(255, 255, 255, 0.02);
  transform: rotate(1.5deg);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: rotate(1.5deg) translateY(-10px); } }
.phone__bar { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--muted); padding: 0.25rem 0.4rem 0.9rem; }
.phone__note { text-align: center; font-size: 0.72rem; color: var(--muted); margin: 0.7rem 0 0; }
.phone__note a { color: var(--brand); font-weight: 600; }

.sig-hero { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 18px; padding: 1.1rem; }
.sig-hero__head { display: flex; justify-content: space-between; align-items: flex-start; }
.sig-hero__ticker { font-size: 1.6rem; font-weight: 800; font-family: var(--mono); }
.sig-hero__chart { width: 100%; height: 110px; margin: 0.8rem 0; }
.sig-hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-bottom: 1rem; }
.sig-hero__stats div { background: var(--surface); border-radius: 10px; padding: 0.5rem 0.6rem; display: flex; flex-direction: column; }
.sig-hero__stats strong { font-family: var(--mono); }
.sig-hero__caption { font-size: 0.72rem; margin: -0.4rem 0 0.8rem; }
.hero-result { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; padding: 0.6rem 0.75rem; border-radius: 10px; background: var(--surface); }
.hero-result span { font-size: 0.8rem; color: var(--muted); }
.hero-result strong { font-family: var(--mono); font-size: 1.05rem; }
.sig-hero__why { font-size: 0.85rem; color: var(--muted); margin: 0.9rem 0 0; }
.sig-hero__why strong { color: var(--text); }

.dir {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.78rem; font-weight: 700; padding: 0.25rem 0.6rem; border-radius: 999px; white-space: nowrap;
}
.dir--bull { background: rgba(34, 197, 94, 0.14); color: var(--up); }
.dir--bear { background: rgba(248, 113, 113, 0.14); color: var(--down); }

/* Ticker strip */
.ticker {
  position: relative; border-block: 1px solid var(--border); background: var(--bg-alt);
  overflow: hidden; padding: 0.85rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; gap: 2.5rem; width: max-content; animation: scroll 60s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--mono); font-size: 0.9rem; white-space: nowrap; }
.ticker__item b { font-weight: 700; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: none; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
}
.step { display: flex; flex-direction: column; }
.step p { color: var(--muted); margin: 0; }
.step__ex { margin-top: auto; padding-top: 1.25rem; }
.step__ex dl { margin: 0; display: grid; gap: 0.35rem; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 0.8rem 0.9rem; font-size: 0.82rem; }
.step__ex dl div { display: flex; justify-content: space-between; gap: 0.75rem; }
.step__ex dt { color: var(--muted); }
.step__ex dd { margin: 0; font-family: var(--mono); color: var(--text); text-align: right; }
.step__ex dd.up { color: var(--up); }
.step__ex dd.down { color: var(--down); }
.step__ex-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand-2); margin: 0 0 0.5rem; }
.step__num {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.2rem; margin-bottom: 1.2rem; color: #04110d;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: center; margin-bottom: 2rem; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px; }
.seg__btn {
  background: none; border: 0; color: var(--muted); padding: 0.45rem 0.9rem; border-radius: 8px; font-size: 0.9rem; font-weight: 500;
}
.seg__btn:hover { color: var(--text); }
.seg__btn.is-active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.sort { display: inline-flex; align-items: center; gap: 0.5rem; }
.sort select {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.5rem 0.75rem; font: inherit; font-size: 0.9rem;
}

/* Board */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.board__empty { text-align: center; padding: 2rem; }
.card {
  text-align: left; color: inherit; width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem; display: flex; flex-direction: column; gap: 0.75rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  animation: fadeUp 0.35s ease both;
}
.card:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.card__ticker { font-family: var(--mono); font-weight: 800; font-size: 1.25rem; }
.card__name { font-size: 0.8rem; color: var(--muted); }
.card__spark { width: 100%; height: 48px; }
.card__setup { font-family: var(--mono); font-size: 0.8rem; color: var(--text); background: var(--bg-alt); border-radius: 8px; padding: 0.4rem 0.6rem; }
.card__row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.85rem; }
.card__row span:first-child { color: var(--muted); }
.card__row strong { font-family: var(--mono); font-weight: 600; }
.card__result { display: flex; flex-direction: column; gap: 0.1rem; font-size: 0.78rem; color: var(--muted); background: var(--bg-alt); border-radius: 8px; padding: 0.5rem 0.6rem; }
.card__result strong { font-family: var(--mono); font-size: 1rem; }
.card__foot { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 0.7rem; }
.card__foot .link { color: var(--brand); font-weight: 600; }
.chip { font-size: 0.7rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 6px; background: var(--surface-2); color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* Signal replays */
.replay-record { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.75rem; margin: 0 0 1.25rem; color: var(--muted); font-size: 0.95rem; }
.replay-record strong { font-family: var(--mono); font-size: 1.1rem; color: var(--text); }
.replay-record strong.up { color: var(--up); }
.replay-record strong.down { color: var(--down); }
.replay-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.6rem; margin-bottom: 1.25rem; }
.replay-tab {
  display: flex; flex-direction: column; gap: 0.3rem; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 0.85rem; color: var(--muted);
}
.replay-tab:hover { border-color: var(--brand); }
.replay-tab[aria-selected="true"] { border-color: var(--brand); background: var(--surface-2); color: var(--text); box-shadow: 0 0 0 1px var(--brand); }
.replay-tab b { display: block; font-family: var(--mono); font-size: 1.05rem; color: var(--text); }
.replay-tab small { font-size: 0.78rem; }
.replay-tab strong { font-family: var(--mono); font-size: 1rem; }

.replay { display: grid; grid-template-columns: 360px 1fr; gap: 1.5rem; align-items: start; animation: fadeUp 0.3s ease both; }
.replay .phone { width: 100%; transform: none; animation: none; }
.replay > *, .replay__main > * { min-width: 0; }
.push {
  display: grid; grid-template-columns: 36px 1fr; gap: 0.7rem; align-items: start;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); border-radius: 16px; padding: 0.75rem; margin-bottom: 0.9rem;
}
.push img { border-radius: 9px; background: var(--bg); padding: 4px; }
.push__top { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.push__title { font-size: 0.88rem; font-weight: 700; margin: 0.15rem 0 0.1rem; }
.push__body { font-size: 0.82rem; color: var(--muted); margin: 0; }
.news {
  border-left: 3px solid var(--brand-2); background: var(--bg-alt); border-radius: 0 10px 10px 0;
  padding: 0.6rem 0.8rem; margin: 0.9rem 0 0;
}
.news__src { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand-2); font-weight: 700; }
.news p { font-size: 0.85rem; margin: 0.2rem 0 0; }
.why-list { list-style: none; padding: 0; margin: 0.9rem 0 0; display: grid; gap: 0.35rem; font-size: 0.82rem; color: var(--muted); }
.why-list li::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: 0.45rem; }
.why-list .warn::before { content: "!"; color: var(--warn); }

.replay__main { display: grid; gap: 1.25rem; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.panel__head h3 { font-size: 1rem; margin: 0; }
.legend { display: flex; gap: 1rem; font-size: 0.78rem; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 0.35rem; vertical-align: middle; }
.replay__chart { width: 100%; height: auto; overflow: visible; }
.replay__chart text { font-family: var(--mono); font-size: 11px; fill: var(--muted); }
/* A halo in the panel colour keeps marker labels legible where they cross the price line. */
.replay__chart .lbl { font-family: var(--font); font-size: 11px; font-weight: 700; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }

.result { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.result div { background: var(--bg-alt); border-radius: 10px; padding: 0.6rem 0.75rem; display: flex; flex-direction: column; }
.result span { font-size: 0.75rem; color: var(--muted); }
.result strong { font-family: var(--mono); font-size: 1.15rem; }
.result .result__big strong { font-size: 1.5rem; }

.ledger-wrap { overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.ledger th, .ledger td { padding: 0.5rem 0.6rem; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ledger th:first-child, .ledger td:first-child { text-align: left; }
.ledger thead th { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.ledger td { font-family: var(--mono); }
.ledger tbody tr:last-child td { border-bottom: 0; }
.ledger .tag { font-family: var(--font); margin-left: 0.4rem; }
.tag--stop { background: rgba(248, 113, 113, 0.15); color: var(--down); }
.ledger__greek { font-family: var(--font); color: var(--muted); font-size: 0.75rem; display: block; }
.replay__lesson { font-size: 0.9rem; color: var(--muted); margin: 0.9rem 0 0; }
.replay__lesson strong { color: var(--text); }
.replay__lab { margin-top: 0.9rem; }
.replay__note { margin-top: 1.5rem; }

/* Greeks lab */
.lab { display: grid; grid-template-columns: 300px 1fr; gap: 1.5rem; align-items: start; }
.lab > * { min-width: 0; }
.lab__controls {
  position: sticky; top: 88px; display: grid; gap: 1.25rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem;
}
.lab__field { display: grid; gap: 0.5rem; font-size: 0.88rem; color: var(--muted); }
.lab__field > span { display: flex; justify-content: space-between; gap: 0.5rem; }
.lab__field strong { font-family: var(--mono); color: var(--text); font-weight: 600; }
.lab__field select {
  background: var(--bg-alt); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.6rem 0.7rem; font: inherit; font-size: 0.88rem;
}
.lab__field input[type="range"] { width: 100%; accent-color: var(--brand); }
.lab__presets { display: grid; gap: 0.5rem; }
.lab__presets .is-active { border-color: var(--brand); }
.lab__out { display: grid; gap: 1.25rem; }
.lab .result div { background: var(--surface); border: 1px solid var(--border); }
.lab__panel { padding: 1.1rem 1.25rem; }
.lab__chart { width: 100%; height: auto; overflow: visible; }
.lab__chart text { font-family: var(--mono); font-size: 11px; fill: var(--muted); }
.legend__dash { background: none !important; border-top: 2px dashed var(--muted); border-radius: 0 !important; height: 0 !important; width: 14px !important; }
.lab__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.lab-greeks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.lab-greeks li { display: grid; grid-template-columns: 2rem 4rem 1fr; gap: 0.6rem; align-items: baseline; font-size: 0.84rem; }
.lab-greeks b { color: var(--brand); text-align: center; background: var(--surface-2); border-radius: 6px; padding: 0.1rem 0; }
.lab-greeks strong { font-family: var(--mono); }
.lab-greeks span { color: var(--muted); }
.drivers { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.driver { display: grid; grid-template-columns: 5.5rem 1fr 4.5rem; gap: 0.6rem; align-items: center; font-size: 0.84rem; }
.driver__val { font-family: var(--mono); text-align: right; }
.driver__track { position: relative; height: 14px; }
.driver__track::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--muted); opacity: 0.5; }
.driver__fill { position: absolute; top: 0; bottom: 0; transition: width 0.15s ease; }
.driver__fill--gain { left: 50%; background: var(--up); border-radius: 0 3px 3px 0; }
.driver__fill--loss { right: 50%; background: var(--down); border-radius: 3px 0 0 3px; }
.driver--total { padding-top: 0.6rem; border-top: 1px solid var(--border); font-weight: 600; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; transition: border-color 0.2s;
}
.feature:hover { border-color: rgba(34, 211, 166, 0.5); }
.feature p { color: var(--muted); margin: 0; }
.feature { display: flex; flex-direction: column; }
.feature__proof { margin-top: auto; padding-top: 1rem; font-size: 0.88rem; font-weight: 600; color: var(--brand); }
.feature__proof:hover { text-decoration: underline; }
.feature__icon {
  width: 48px; height: 48px; display: grid; place-items: center; color: var(--brand);
  background: var(--surface-2); border-radius: 12px; margin-bottom: 1rem;
}
.feature__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Pricing */
.billing { display: inline-flex; gap: 4px; padding: 4px; margin-top: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.billing__btn { background: none; border: 0; color: var(--muted); padding: 0.45rem 1rem; border-radius: 8px; font-weight: 500; }
.billing__btn.is-active { background: var(--surface-2); color: var(--text); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; margin-bottom: 1.5rem; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem;
}
.plan--featured {
  border-color: var(--brand);
  background: linear-gradient(180deg, rgba(34, 211, 166, 0.08), var(--surface) 40%);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow);
}
.plan__badge {
  position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #04110d; font-size: 0.75rem; font-weight: 700;
  padding: 0.25rem 0.75rem; border-radius: 999px;
}
.plan__price { margin: 0.25rem 0 0.5rem; }
.plan__amt { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.plan ul { list-style: none; padding: 0; margin: 0.5rem 0 1.75rem; flex: 1; }
.plan li { padding: 0.4rem 0; color: var(--muted); }
.plan li::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: 0.6rem; }

/* FAQ */
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 0.75rem; padding: 0 1.25rem;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.1rem; margin: 0; }

/* CTA */
.cta {
  background:
    radial-gradient(600px 250px at 50% 0%, rgba(34, 211, 166, 0.15), transparent 70%),
    var(--bg);
}
.waitlist__record { margin: 1.25rem 0 0; }
.waitlist { display: flex; gap: 0.6rem; max-width: 480px; margin: 2rem auto 0.75rem; }
.waitlist input {
  flex: 1; min-width: 0; padding: 0.8rem 1rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit;
}
.waitlist input:focus { outline: none; border-color: var(--brand); }
.waitlist .btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.waitlist input[aria-invalid="true"] { border-color: var(--down); }
.waitlist__msg { min-height: 1.5em; font-size: 0.95rem; }
.waitlist__msg.is-ok { color: var(--brand); }
.waitlist__msg.is-err { color: var(--down); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 3rem 0 2rem; background: var(--bg-alt); }
.footer__top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.footer__links { display: flex; gap: 1.5rem; color: var(--muted); font-size: 0.9rem; }
.footer__links a:hover { color: var(--text); }
.disclaimer { font-size: 0.8rem; color: var(--muted); max-width: 900px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
/* Seven nav links plus the button need about 930px, so switch to the menu below that. */
@media (max-width: 980px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1.25rem 1.25rem;
    background: var(--bg); border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: 0.8rem 0; border-bottom: 1px solid var(--border); }
  .nav__links .btn { margin-top: 1rem; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__cta, .hero__points { justify-content: center; }
  .steps, .features, .plans { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .replay { grid-template-columns: 1fr; }
  .replay .phone { max-width: 380px; margin-inline: auto; }
  .lab { grid-template-columns: 1fr; }
  .lab__controls { position: static; }
}
@media (max-width: 760px) {
  .section { padding: 4.5rem 0; }
  .steps, .features { grid-template-columns: 1fr; }
  .replay-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.4rem; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
  .replay-tab { flex: 0 0 140px; scroll-snap-align: start; }
  .result { grid-template-columns: repeat(2, 1fr); }
  .lab__grid { grid-template-columns: 1fr; }
  .lab__chart text { font-size: 19px; }
  /* The chart scales down with its viewBox, so enlarge its text to stay readable on phones. */
  .replay__chart text, .replay__chart .lbl { font-size: 19px; }
  .waitlist { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
