/* neuralwave site stylesheet — tokens and system defined in DIRECTION.md */

/* ── Self-hosted font faces ─────────────────────────────────────────────── */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/static/site/fonts/newsreader.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/static/site/fonts/inter.woff2') format('woff2');
}

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --bg: #f4f6f5;
  --card: #ffffff;
  --ink: #1b2226;
  --muted: #535d65;
  --line: rgba(27, 34, 38, .10);
  --accent: #117066;
  --accent-ink: #ffffff;
  --live: #5cd6c5;
  --live-ink: #1f7268;
  --tint-a: #d6f0ea;
  --deep: #0f2a28;
  --deep-ink: #e6ebef;
  --deep-muted: #a9c4bf;
  --band: #0c1013;
  --band-ink: #e6ebef;
  --wash: 18%;
  --ring-mix: 62%;
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "SF Pro Display", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --display-weight: 500;
  --display-track: -0.02em;
  --r-s: 6px;
  --r-m: 14px;
  --r-l: 24px;
  --r-pill: 999px;
  --sh-rgb: 27 34 38;
  --shadow-s: 0 1px 2px rgb(var(--sh-rgb) / .05), 0 4px 12px rgb(var(--sh-rgb) / .07);
  --shadow:   0 1px 2px rgb(var(--sh-rgb) / .05), 0 12px 32px rgb(var(--sh-rgb) / .10);
  --shadow-l: 0 24px 64px rgb(var(--sh-rgb) / .20);
  --gap: clamp(64px, 9vw, 128px);
  --maxw: 1136px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --frame: #0c1013;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1013;
    --card: #141a1f;
    --ink: #e6ebef;
    --muted: #a3adb7;
    --line: rgba(230, 235, 239, .10);
    --accent: #5cd6c5;
    --accent-ink: #0c1013;
    --live-ink: #5cd6c5;
    --tint-a: #11302c;
    --deep: #163e3a;
    --band: #141a1f;
    --sh-rgb: 0 0 0;
    --wash: 30%;
    --ring-mix: 85%;
    --frame: #1c2329;
  }
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--muted) transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.6 var(--font-body);
  caret-color: var(--accent);
  accent-color: var(--accent);
  -webkit-font-smoothing: antialiased;
}
::selection { background: color-mix(in srgb, var(--live) 45%, transparent); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .16em; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--r-s); }
.wrap { width: min(var(--maxw), 100% - 32px); margin-inline: auto; }
section { margin-top: var(--gap); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4, .statement {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  margin: 0;
  text-wrap: balance;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: 1.0; }
h1 .line { display: block; }
@media (min-width: 561px) { h1 .line { white-space: nowrap; } }
h1 .quiet { color: var(--muted); }
.statement { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.05; }
.statement.quiet { color: var(--muted); margin-top: 4px; }
h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; margin-bottom: 24px; }
h3 { font-size: 24px; line-height: 1.2; }
h4 { font-size: 16px; font-family: var(--font-body); font-weight: 600; color: var(--ink); margin: 0 0 12px; }
p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 52ch; }
.small, .detail { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ── Buttons & Links ────────────────────────────────────────────────────── */
.btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font: 500 17px/1 var(--font-body);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s var(--ease), background-color .12s var(--ease), box-shadow .12s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { box-shadow: var(--shadow-s); }
.btn-ghost { border-color: var(--line); background: var(--card); color: var(--ink); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-closing { background: var(--ink); color: var(--tint-a); }
.btn-closing:hover { box-shadow: var(--shadow-s); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* ── Nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 22px/1 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 22px; margin-right: auto; }
.nav-links a, .login { white-space: nowrap; color: var(--ink); text-decoration: none; font-size: 16px; }
.nav-links a:hover, .login:hover { color: var(--accent); }
.nav .btn { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* ── Hero & Scene ───────────────────────────────────────────────────────── */
.hero { margin-top: 0; padding-top: clamp(48px, 7vw, 88px); text-align: center; }
.hero h1 { margin-inline: auto; }
.hero .lead, .hero .fine { margin-inline: auto; }
.hero .lead { margin-top: 28px; }
.hero .ctas { justify-content: center; }
.scene {
  position: relative;
  margin: 72px auto 0;
  max-width: 980px;
  padding-bottom: 24px;
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
  mask-image: linear-gradient(#000 78%, transparent);
}
.scene .lap { width: 82%; }
.scene .phone { position: absolute; right: 2%; bottom: 0; width: 23%; transform: rotate(4deg); }
.scene .phone-only { display: none; }
.sticker {
  position: absolute;
  left: 4%;
  top: 9%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 12px;
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  box-shadow: var(--shadow);
}
.sticker .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 28%, transparent);
}

/* ── Device frames ──────────────────────────────────────────────────────── */
.lap, .phone { background: var(--frame); box-shadow: var(--shadow-l); overflow: hidden; }
.lap { border-radius: 18px; padding: 10px; }
.lap img { border-radius: 9px; }
.phone { border-radius: 34px; padding: 8px; }
.phone img { border-radius: 27px; }

/* ── Signature demo (#demo) ─────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split > :first-child { position: sticky; top: 96px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.chip {
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: 500 16px/1 var(--font-body);
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.chip[aria-pressed="true"] {
  background: color-mix(in oklab, var(--accent) 22%, var(--card));
  border-color: color-mix(in oklab, var(--accent) 45%, var(--card));
}
.chip:hover { border-color: var(--muted); }
.more { display: inline-block; margin-top: 8px; font-size: 16px; }
#play .when-playing, #play[aria-pressed="true"] .when-paused { display: none; }
#play[aria-pressed="true"] .when-playing { display: inline; }

.stage {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  min-height: 560px;
  padding: 48px;
  border-radius: var(--r-l);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
  --level: 0;
  --ring: color-mix(in oklab, var(--scene) var(--ring-mix), var(--ink));
}
.stage .field {
  position: absolute;
  inset: -20%;
  z-index: -1;
  filter: blur(48px);
  opacity: .9;
  transition: background .9s var(--ease);
  background:
    radial-gradient(42% 42% at 30% 28%, color-mix(in oklab, var(--scene) var(--wash), transparent), transparent 70%),
    radial-gradient(38% 38% at 74% 70%, color-mix(in oklab, var(--scene) calc(var(--wash) * .6), transparent), transparent 70%);
}
.sring { position: relative; width: 320px; height: 320px; }
.sring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.sring .track { stroke: var(--line); }
.sring .arc { stroke: var(--ring); opacity: .35; transition: stroke .9s var(--ease), opacity .4s var(--ease); }
.stage[data-state="playing"] .arc { opacity: calc(.55 + var(--level) * .45); transition: stroke .9s var(--ease); }
.sring .time {
  position: absolute;
  left: 0;
  right: 0;
  top: 34px;
  text-align: center;
  font: 400 30px/1 var(--font-mono);
  letter-spacing: .02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.sring .orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 172px;
  height: 172px;
  margin: -72px 0 0 -86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--scene) 12%, var(--card));
  border: 1px solid var(--line);
  transition: background .9s var(--ease);
}
.sring .core {
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--ring);
  opacity: .9;
  transform: scale(calc(1 + var(--level) * .14));
  transition: background .9s var(--ease);
}
.stage[data-state="paused"] .core { opacity: .55; transform: none; }
.sring .glyph {
  position: relative;
  width: 0;
  height: 0;
  border-left: 16px solid var(--card);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}
.stage[data-state="playing"] .glyph {
  width: 14px;
  height: 18px;
  border: 0;
  margin: 0;
  border-left: 5px solid var(--card);
  border-right: 5px solid var(--card);
  box-sizing: border-box;
}
.scene-name { margin: 0; font: 400 28px/1.15 var(--font-display); color: var(--ink); }

/* ── Problem turn ───────────────────────────────────────────────────────── */
.turn { padding-block: clamp(24px, 4vw, 48px); }
.turn .pain { margin-bottom: 48px; }
.turn .numbers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 48px);
  border-top: 1.5px solid var(--ink);
  padding-top: 28px;
  margin-bottom: 36px;
}
.num-tile .num {
  font-family: "Newsreader", var(--font-display);
  font-size: clamp(48px, 6vw, 64px);
  line-height: 1.0;
  font-weight: 500;
  font-variant-numeric: oldstyle-nums;
  font-feature-settings: "onum" 1;
  color: var(--ink);
  margin-bottom: 8px;
}
.num-tile .num-label { font-size: 16px; color: var(--muted); }
.statement.turn,
.turn-line {
  color: var(--live-ink);
  max-width: 20ch;
}

/* ── How it works (#how) ────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--card);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-s);
  padding: 32px 28px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .15s var(--ease);
}
.step-card:hover { transform: translateY(-2px); }
.step-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-dot {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
}
.step-card p { font-size: 16px; color: var(--muted); margin-bottom: 24px; flex-grow: 1; }
.step-media {
  margin-top: auto;
  position: relative;
  height: 260px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.step-media .phone {
  width: 82%;
  max-width: 260px;
  margin-inline: auto;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding-bottom: 0;
  align-self: flex-start;
}
.phone-crop {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 27px 27px 0 0;
}
.phone-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.step-crop-1 { aspect-ratio: 780 / 1100; }
.step-crop-1 img { object-position: center 88%; }
.step-crop-2 { aspect-ratio: 780 / 1000; }
.step-crop-2 img { object-position: center 22%; }
.step-crop-3 { aspect-ratio: 780 / 1000; }
.step-crop-3 img { object-position: center 36%; }

/* ── Features ───────────────────────────────────────────────────────────── */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  background: var(--card);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-s);
  padding: clamp(28px, 4vw, 56px);
  overflow: hidden;
}
.feature + .feature { margin-top: 20px; }
.feature:nth-child(even) .media { order: -1; }
.feature.on-deep { background: var(--deep); color: var(--deep-ink); border: 1px solid var(--line); }
.feature.on-deep .detail { color: var(--deep-muted); border-top-color: color-mix(in srgb, var(--deep-ink) 14%, transparent); }
.feature.on-deep h3 { color: var(--deep-ink); }
.feature h3 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; margin-bottom: 16px; }
.feature .detail { max-width: 44ch; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 20px; }
.feature .media { align-self: end; margin-bottom: calc(-1 * clamp(28px, 4vw, 56px)); }
.feature .media .phone { width: 52%; margin-inline: auto; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.feature-crop-tracks {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 27px 27px 0 0;
}
.feature-crop-tracks img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

/* ── Pricing band (#pricing) ────────────────────────────────────────────── */
.pricing-band {
  background: var(--band);
  color: var(--band-ink);
  padding-block: clamp(64px, 8vw, 112px);
  margin-top: var(--gap);
}
.pricing-band .statement { text-align: center; margin-bottom: 48px; color: var(--band-ink); }
.pricing-cards {
  max-width: 440px;
  margin-inline: auto;
}
.price-card {
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--r-l);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.price-header { margin-bottom: 28px; }
.price-header h3 { font-size: 26px; margin: 0; }
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--tint-a);
  color: var(--ink);
  font: 600 13px/1 var(--font-body);
}
.price-num { font-family: var(--font-display); font-size: 44px; font-weight: 500; margin-top: 12px; line-height: 1; }
.price-num .per { font-size: 18px; font-family: var(--font-body); font-weight: 400; color: var(--muted); }
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  flex-grow: 1;
}
.price-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.price-features li:last-child { border-bottom: 0; }
.price-cta {
  margin-top: auto;
}
.price-cta .btn {
  width: 100%;
}

/* ── Who it's for ───────────────────────────────────────────────────────── */
.who-section h2 {
  margin-bottom: 40px;
  text-align: left;
}
.who-card {
  background: var(--card);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-s);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.who-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.who-disc {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.who-row h3 { font-size: 22px; margin-bottom: 4px; }
.who-row p { margin: 0; color: var(--muted); font-size: 17px; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq-split {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.faq-label { position: sticky; top: 96px; }
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding-block: 20px;
}
.faq-list summary {
  font: 600 19px/1.4 var(--font-body);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .2s var(--ease);
  margin-left: 16px;
}
.faq-list details[open] summary::after {
  transform: rotate(-135deg);
}
.faq-ans { margin-top: 14px; }
.faq-ans p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }

/* ── Coming next ────────────────────────────────────────────────────────── */
.coming-section { padding-block: clamp(24px, 4vw, 40px); }
.coming-label { font-size: 15px; color: var(--muted); font-weight: 400; margin-bottom: 20px; }
.coming-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.coming-row {
  background: var(--card);
  border-radius: var(--r-m);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-s);
}
.coming-title { display: flex; align-items: center; gap: 14px; }
.coming-title h3 { font-size: 20px; margin: 0; }
.coming-row p { margin: 0; color: var(--muted); font-size: 16px; text-align: right; }

/* ── Closing band ───────────────────────────────────────────────────────── */
.closing-band {
  background: var(--tint-a);
  color: var(--ink);
  border-radius: var(--r-l);
  padding: clamp(64px, 8vw, 104px) 24px;
  position: relative;
  overflow: hidden;
  margin-top: var(--gap);
}
.closing-wrap {
  position: relative;
  z-index: 2;
  text-align: center;
}
.closing-wrap .statement { margin-inline: auto; max-width: 24ch; }
.closing-wrap .ctas { justify-content: center; }
.closing-ring {
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 1px solid var(--line);
  pointer-events: none;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1.5px solid var(--ink);
  padding-block: 64px 48px;
  margin-top: var(--gap);
}
.footer-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-col .brand { margin-bottom: 12px; }
.footer-col .tagline { color: var(--muted); font-size: 15px; max-width: 28ch; margin-bottom: 0; }
.footer-col .copyright { margin-top: 24px; margin-bottom: 0; font-size: 14px; color: var(--muted); }
.footer-col nav { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: 16px; }
.footer-col a:hover { color: var(--accent); }

/* ── Legal pages (/privacy, /terms) ─────────────────────────────────────── */
.legal-main { padding-block: clamp(48px, 6vw, 80px); }
.legal-main h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 8px; }
.legal-updated { font-size: 15px; color: var(--muted); margin-bottom: 40px; }
.legal-block { margin-bottom: 32px; }
.legal-block h2 { font-size: 22px; font-family: var(--font-body); font-weight: 600; margin-bottom: 10px; }
.legal-block p { font-size: 17px; color: var(--muted); margin-bottom: 8px; }

/* ── 404 page ───────────────────────────────────────────────────────────── */
.notfound-main {
  padding-block: clamp(80px, 12vw, 160px);
  text-align: center;
}
.notfound-main h1 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 16px; margin-inline: auto; }
.notfound-main .lead { margin-inline: auto; margin-bottom: 36px; }
.notfound-main .ctas { justify-content: center; }

/* ── Motion & Reduced motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise .6s var(--ease) both; }
  .hero > :nth-child(2) { animation-delay: .06s; }
  .hero > :nth-child(3) { animation-delay: .12s; }
  .hero > :nth-child(5) { animation-delay: .22s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } }
  .sticker .dot { animation: breathe 2.8s var(--ease) infinite alternate; }
  @keyframes breathe {
    from { box-shadow: 0 0 0 2px color-mix(in srgb, var(--live) 28%, transparent); }
    to { box-shadow: 0 0 0 5px color-mix(in srgb, var(--live) 18%, transparent); }
  }
  .sring .core { transition: transform .12s linear, background .9s var(--ease); }
}

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

/* ── Responsive (<900px, <560px) ────────────────────────────────────────── */
@media (max-width: 900px) {
  .split, .feature { grid-template-columns: 1fr; }
  .split > :first-child { position: static; }
  .feature:nth-child(even) .media { order: 0; }
  .stage { min-height: 460px; padding: 32px; }
  .steps { grid-template-columns: 1fr; }
  .faq-split { grid-template-columns: 1fr; }
  .faq-label { position: static; margin-bottom: 20px; }
  .footer-wrap { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .nav-links { display: none; }
  .nav .wrap { gap: 14px; }
  .login { margin-left: auto; font-size: 15px; }
  .brand { font-size: 19px; }
  .nav .btn { padding: 0 14px; font-size: 14px; }
  h1 .brk { display: block; }
  .hero .ctas .btn { flex: 1 1 100%; }
  .scene { margin-top: 48px; }
  .scene .lap, .sticker, .scene .phone-hero { display: none; }
  .scene .phone-only { display: block; position: static; width: 64%; margin-inline: auto; transform: none; }
  #demo {
    display: flex;
    flex-direction: column;
  }
  #demo .demo-copy {
    display: contents;
  }
  #demo h2 {
    order: 1;
    margin-bottom: 12px;
  }
  #demo .lead {
    order: 2;
    margin-bottom: 24px;
  }
  #demo .stage {
    order: 3;
    margin-bottom: 24px;
  }
  #demo .chips {
    order: 4;
    margin: 0 0 20px;
  }
  #demo .ctas {
    order: 5;
    margin-top: 0;
    margin-bottom: 12px;
  }
  #demo #demo-note {
    order: 6;
    margin-top: 0;
    margin-bottom: 16px;
  }
  #demo .more {
    order: 7;
    margin-top: 0;
  }
  .sring { width: 220px; height: 220px; }
  .sring svg { width: 220px; height: 220px; }
  .sring .time { top: 22px; font-size: 22px; }
  .sring .orb { width: 118px; height: 118px; margin: -49px 0 0 -59px; }
  .sring .core { width: 44px; height: 44px; }
  .stage { min-height: 400px; padding: 28px 16px; }
  .scene-name { font-size: 24px; }
  .chip { flex: 1 1 calc(50% - 4px); }
  .feature .media .phone { width: 62%; }
  .turn .numbers { grid-template-columns: 1fr; gap: 24px; }
  .coming-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .coming-row p { text-align: left; }
  .closing-ring { right: -80px; bottom: -120px; width: 320px; height: 320px; }
  .footer-wrap { grid-template-columns: 1fr; }
}
