/* Momotako — landing page (pass 04). Tokens from design/pass-02/tokens.css, cel look.
   Light is the default for everyone (DK 2026-09-28); [data-theme="dark"] keeps the approved dark theme available. */

@font-face{font-family:"Bricolage Grotesque";src:url(fonts/BricolageGrotesque-latin.woff2) format("woff2");font-weight:200 800;font-display:block}
@font-face{font-family:"Figtree";src:url(fonts/Figtree-latin.woff2) format("woff2");font-weight:300 900;font-display:block}
@font-face{font-family:"Sniglet";src:url(fonts/Sniglet-ExtraBold.ttf) format("truetype");font-weight:800;font-display:block}

:root, [data-theme="light"] {
  color-scheme: light;
  --bg: #fff5f8; --surface: #ffffff; --surface-2: #ffe9f0;
  --ink: #16122b; --muted: #5d5a78;
  --line: #d9cfe0; --hard: #16122b;
  --pink: #e0166f; --pink-hover: #f0257e; --pink-ink: #c0115d; --on-pink: #ffffff;
  --lemon: #ffe14d; --on-lemon: #16122b; --on-lemon-muted: #3d3410;
  --success: #1c7a45; --on-success: #ffffff;
  --focus: #e0166f;
  --halftone: color-mix(in srgb, var(--pink) 16%, transparent);
  --screen: #1a1c2a;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0f1f; --surface: #151a30; --surface-2: #1d2340;
  --ink: #f7f5ff; --muted: #a4a7c4;
  --line: #2a3157; --hard: #000000;
  --pink: #ff3d8b; --pink-hover: #ff5a9c; --pink-ink: #ff6aa6; --on-pink: #1b0612;
  --lemon: #ffe14d; --on-lemon: #16122b; --on-lemon-muted: #3d3410;
  --success: #37d67a; --on-success: #06230f;
  --focus: #ffe14d;
  --halftone: color-mix(in srgb, var(--pink) 22%, transparent);
  --screen: #0a0c14;
}
:root, [data-theme] {
  --display: "Bricolage Grotesque", "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
  --body: "Figtree", -apple-system, "SF Pro Text", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --outline: 2px solid var(--hard);
  --shadow-1: 3px 3px 0 var(--hard);
  --shadow-2: 4px 4px 0 var(--hard);
  --shadow-lift: 5px 5px 0 var(--hard);
  --ring: 0 0 0 2px var(--bg), 0 0 0 5px var(--focus);
  --halftone-image: radial-gradient(var(--halftone) 1px, transparent 1.2px);
  --t: 160ms; --ease: cubic-bezier(.2,.8,.2,1);
  --col: 1120px; --gutter: clamp(18px, 4vw, 40px);
}
@media (prefers-reduced-motion: reduce) { :root, [data-theme] { --t: 0ms; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.5 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; text-wrap: pretty;
}
h1, h2, h3 { font-family: var(--display); font-variation-settings: "opsz" 96; letter-spacing: -0.02em; margin: 0; line-height: 1.05; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; max-width: 22ch; }
h3 { font-size: 22px; font-weight: 700; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.tk { display: block; width: 100%; height: auto; overflow: visible; }

main > section { max-width: var(--col); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter); scroll-margin-top: 80px; }
main > section + section { border-top: 2px solid var(--line); }
.sec-lede { color: var(--muted); font-size: 19px; max-width: 58ch; margin-top: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 0 22px; border-radius: 999px; text-decoration: none; cursor: pointer;
  font: 800 16px/1 var(--display); border: var(--outline); white-space: nowrap;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t);
}
.btn-primary { background: var(--pink); color: var(--on-pink); box-shadow: var(--shadow-2); }
.btn-primary:hover { background: var(--pink-hover); box-shadow: var(--shadow-lift); transform: translate(-1px, -1px); }
.btn-primary:active { box-shadow: 2px 2px 0 var(--hard); transform: translate(2px, 2px); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--hard); box-shadow: var(--shadow-1); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; box-shadow: var(--shadow-1); }
.btn:focus-visible { box-shadow: var(--ring); }
.btn[aria-disabled="true"] { cursor: default; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 22px;
  padding: 12px var(--gutter); background: var(--bg); border-bottom: 2px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 20px var(--display); letter-spacing: -0.02em; }
.brand svg { width: 34px; height: 34px; }
/* bubble wordmark (DK 2026-09-28): Sniglet (OFL), pink fill, hard outline, lemon offset, letters bounce */
.wm { display: inline-block; font-family: "Sniglet", "Arial Rounded MT Bold", var(--display); font-weight: 800; letter-spacing: .01em; line-height: 1.05;
  color: var(--pink); -webkit-text-stroke: var(--wm-stroke, 2px) var(--hard); paint-order: stroke fill; white-space: nowrap;
  text-shadow: var(--wm-off, 2px) var(--wm-off, 2px) 0 var(--lemon), calc(var(--wm-off, 2px) * 1.7) calc(var(--wm-off, 2px) * 1.7) 0 var(--hard); }
.wm span { display: inline-block; transition: transform var(--t, 200ms) cubic-bezier(.34,1.56,.64,1); }
.wm span:nth-child(odd) { transform: translateY(calc(var(--wm-bob, 1px) * -1)) rotate(-4deg); }
.wm span:nth-child(even) { transform: translateY(var(--wm-bob, 1px)) rotate(3deg); }
.brand .wm { font-size: 27px; --wm-stroke: 2px; --wm-off: 2px; --wm-bob: 1px; }
.brand:hover .wm span:nth-child(odd) { transform: translateY(-4px) rotate(-8deg); }
.brand:hover .wm span:nth-child(even) { transform: translateY(3px) rotate(6deg); }
@media (max-width: 480px) { .brand { gap: 7px; } .brand svg { width: 28px; height: 28px; } .brand .wm { font-size: 21px; } }
@media (max-width: 370px) { .brand svg { display: none; } .brand .wm { font-size: 16px; } }
.topnav { display: flex; gap: 2px; margin-left: auto; }
.topnav a { text-decoration: none; font: 700 14px var(--display); padding: 9px 12px; border-radius: 999px; border: 2px solid transparent; color: var(--ink); white-space: nowrap; }
.topnav a:hover { border-color: var(--line); }
@media (max-width: 720px) { .topnav { display: none; } .top .btn { margin-left: auto; } }
/* polish-01: 721-900px (tablets) - drop the two least-used links so the beta button stays inside the header */
@media (min-width: 721px) and (max-width: 900px) { .topnav a[href="#voices"], .topnav a[href="#faq"] { display: none; } }
@media (min-width: 721px) and (max-width: 800px) { .topnav a[href="#how"] { display: none; } }

/* ---------- how-to video (video-01) ---------- */
.howto-frame { margin: 32px 0 0; }
.howto-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; background: #0b0f1f;
  border: 3px solid var(--hard); border-radius: 22px; box-shadow: var(--shadow-lift); }
.howto-frame figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: clamp(24px, 5vw, 64px); align-items: center;
  background-image: var(--halftone-image); background-size: 9px 9px;
  padding-top: clamp(40px, 6vw, 80px) !important;
}
.hero-name { font-size: clamp(44px, 10.5vw, 132px); margin: 0 0 26px; --wm-stroke: clamp(3px, .5vw, 6px); --wm-off: clamp(4px, .6vw, 8px); --wm-bob: clamp(3px, .45vw, 7px); }
@media (max-width: 480px) { .hero-name { font-size: calc((100vw - 46px) / 6); } }
.hero-name .wm { animation: wm-wobble 3.2s ease-in-out infinite; transform-origin: 40% 80%; }
@keyframes wm-wobble { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg) translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .hero-name .wm { animation: none; } .wm span { transition: none; } }
/* the tagline sits in the brand balloon; the lemon bar under it is the subtitle bar of the mark */
.say { position: relative; display: inline-block; max-width: 100%; margin-bottom: 30px; }
.balloon {
  position: relative; display: inline-block; background: var(--pink); color: var(--on-pink);
  font-size: clamp(30px, 4.6vw, 56px); font-weight: 800; padding: .3em .55em .34em;
  border: var(--outline); border-radius: .5em; box-shadow: var(--shadow-lift); text-wrap: balance;
}
.balloon::after {
  content: ""; position: absolute; left: .7em; bottom: -.5em; width: .55em; height: .55em;
  background: var(--pink); border: var(--outline); border-top: 0; border-right: 0;
  clip-path: none; transform: skewX(-18deg);
}
.subbar {
  display: block; margin: 20px 0 0 clamp(20px, 3vw, 48px); width: fit-content; max-width: 34ch;
  background: var(--lemon); color: var(--on-lemon); border: var(--outline); border-radius: 999px; box-shadow: var(--shadow-1);
  font: 700 15px/1.3 var(--display); padding: 8px 16px;
}
/* BRIEF-11 (DK 2026-10-01): tagline "Ouch! No dub? No worries." in two beats that only wrap after the "?";
   44px keeps it on one line in the 1280 hero column. Lemon subbar carries the "what is this" line. */
.balloon { font-size: clamp(30px, 3.45vw, 44px); padding: .3em .5em .34em; }
.balloon .l { display: inline-block; }
.balloon .l + .l { margin-left: .12em; }
.subbar { max-width: none; }
@media (max-width: 560px) { .subbar { max-width: 34ch; } }
.lede { max-width: 54ch; font-size: 19px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 28px; }
.req { color: var(--muted); font-size: 15px; max-width: 32ch; }
.hero-momo { max-width: 480px; justify-self: end; width: 100%; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-momo { order: -1; justify-self: start; max-width: min(320px, 70vw); }
}

/* ---------- the live moment ---------- */
.stage { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .8fr); gap: clamp(20px, 4vw, 48px); align-items: end; margin-top: 40px; }
.player { margin: 0; border: var(--outline); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-2); overflow: hidden; }
.screen { position: relative; aspect-ratio: 16/9; background: var(--screen); display: grid; align-items: end; justify-items: center; padding: 0 24px 22px;
  background-image: linear-gradient(transparent 0, transparent 100%), radial-gradient(circle at 30% 40%, rgba(255,255,255,.05), transparent 45%); }
.sub-line { font: 500 clamp(17px, 2.2vw, 24px)/1.35 var(--body); color: #fff; background: rgba(0,0,0,.72); padding: 6px 14px; border-radius: 4px; text-align: center; }
.controls { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 2px solid var(--line); font: 600 12px var(--mono); color: var(--muted); }
.ctl-play { width: 0; height: 0; border-left: 12px solid var(--ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.ctl-bar { flex: 1; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.ctl-fill { display: block; width: 51%; height: 100%; background: var(--pink); }
.ctl-cc { border: 2px solid var(--ink); color: var(--ink); border-radius: 3px; padding: 0 3px; font: 800 10px var(--display); }
.mix { display: grid; gap: 8px; padding: 12px 14px 14px; border-top: 2px solid var(--line); font-size: 13px; color: var(--muted); }
.mix-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 44px; align-items: center; gap: 10px; }
.mix-row b { font: 600 12px var(--mono); color: var(--ink); text-align: right; }
.meter { height: 8px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--lemon); }

.dub { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; align-items: end; }
.dub-momo { width: 120px; margin-bottom: -8px; }
.dub-balloon { position: relative; background: var(--surface); border: var(--outline); border-radius: 16px; box-shadow: var(--shadow-2); padding: 14px 16px 12px; }
.dub-balloon::before { content: ""; position: absolute; left: -12px; bottom: 26px; width: 14px; height: 14px; background: var(--surface); border: var(--outline); border-top: 0; border-right: 0; transform: rotate(45deg); }
.plate { display: inline-flex; align-items: center; gap: 8px; background: var(--pink); color: var(--on-pink); border: var(--outline); box-shadow: var(--shadow-1);
  font: 800 11px/1.3 var(--display); text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 6px; }
.plate .cast { text-transform: none; letter-spacing: 0; font-weight: 700; opacity: .9; }
.dub-line { font: 700 20px/1.3 var(--display); margin-top: 10px; }
.stats { margin-top: 8px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.stats span { white-space: nowrap; }
.stats b { font: 600 13px var(--mono); color: var(--ink); margin-right: 3px; }
.stage-note { color: var(--muted); font-size: 14px; margin-top: 20px; max-width: 60ch; }
.replay { margin-top: 14px; }
@media (max-width: 860px) { .stage { grid-template-columns: 1fr; } .dub { grid-template-columns: 96px minmax(0,1fr); } .dub-momo { width: 96px; } }

/* the one orchestrated moment: Momo's mouth and sound arcs, the line arriving. Finite. */
.live.play .dub-balloon .dub-line, .live.play .dub-balloon .stats { animation: arrive 500ms var(--ease) both; }
.live.play .stats { animation-delay: 700ms; }
.live.play .tk-mouth { animation: paku 450ms steps(2, jump-none) 8; transform-origin: 100px 118px; transform-box: view-box; }
.live.play .tk-sound path { animation: arc 1s var(--ease) 4 both; }
.live.play .tk-sound path:nth-child(2) { animation-delay: 250ms; }
.live.play .tk-balloon { animation: bob 900ms ease-in-out 4; }
@keyframes paku { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@keyframes arc { 0% { opacity: 0; transform: translateX(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateX(6px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .live.play .tk-mouth, .live.play .tk-sound path, .live.play .tk-balloon, .live.play .dub-line, .live.play .stats { animation: none; }
}

/* ---------- how it works: a real sequence ---------- */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); position: relative; }
.steps::before { content: ""; position: absolute; left: 24px; right: 24px; top: 21px; height: 2px; background: var(--line); }
.steps li { position: relative; display: grid; grid-template-rows: auto auto auto 1fr; gap: 12px; align-content: start; }
.num { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--pink); color: var(--on-pink); border: var(--outline); box-shadow: var(--shadow-1); font: 800 18px var(--display); }
.steps h3 { margin-top: 6px; max-width: 16ch; }
.steps p { color: var(--muted); max-width: 36ch; }
.step-art { margin-top: 10px; align-self: end; }
.step-art-1 { aspect-ratio: 16/9; background: var(--screen); border: var(--outline); border-radius: 10px; display: grid; align-items: end; justify-items: center; padding: 14px; box-shadow: var(--shadow-1); }
.fake-sub { color: #fff; background: rgba(0,0,0,.72); padding: 4px 10px; border-radius: 4px; font-size: 14px; }
.popup { background: var(--surface); border: var(--outline); border-radius: 14px; padding: 14px; box-shadow: var(--shadow-2); display: grid; gap: 10px; justify-items: start; }
.pk-plate { font: 800 11px/1.3 var(--display); text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 6px; border: var(--outline); box-shadow: var(--shadow-1); }
.pk-plate.ready { background: var(--success); color: var(--on-success); }
.pk-body { font: 600 16px/1.3 var(--display); }
.pk-start { justify-self: stretch; text-align: center; background: var(--pink); color: var(--on-pink); border: var(--outline); border-radius: 999px; box-shadow: var(--shadow-1); font: 800 14px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; padding: 13px; }
.step-art-3 { max-width: 150px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { left: 21px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; }
  .steps li { padding-left: 64px; }
  .steps .num { position: absolute; left: 0; top: 0; }
  .steps h3 { margin-top: 0; }
  .step-art { max-width: 360px; }
  .step-art-3 { max-width: 140px; }
}

/* ---------- private ---------- */
.private { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(24px, 5vw, 64px); align-items: center; }
.facts { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; max-width: 54ch; }
.facts li { padding-left: 22px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--lemon); border: 2px solid var(--hard); }
.private-momo { max-width: 260px; }
@media (max-width: 860px) { .private { grid-template-columns: 1fr; } .private-momo { max-width: 200px; } }

/* ---------- voices ---------- */
.voice-demo { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.seg { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seg-label { font: 800 11px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 4px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; border: var(--outline); background: var(--surface); font: 700 15px var(--display); }
.chip.on { background: var(--lemon); color: var(--on-lemon); box-shadow: var(--shadow-1); }
.voice-names { color: var(--muted); font-size: 15px; margin-top: 18px; max-width: 40ch; }
table { border-collapse: collapse; width: 100%; }
caption { text-align: left; color: var(--muted); font-size: 14px; padding-bottom: 8px; }
.cast-list { background: var(--surface); border: var(--outline); border-radius: 14px; box-shadow: var(--shadow-2); overflow: hidden; border-spacing: 0; }
.cast-list caption { caption-side: bottom; padding: 10px 2px 0; }
.cast-list th, .cast-list td { text-align: left; padding: 12px 16px; border-bottom: 2px solid var(--line); }
.cast-list thead th { font: 800 11px var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cast-list tbody th { font: 700 16px var(--display); }
.cast-list tbody tr:last-child th, .cast-list tbody tr:last-child td { border-bottom: 0; }
.cast-list td:nth-child(2) { font: 600 14px var(--mono); color: var(--muted); }
.cast-list td:last-child { font-weight: 700; }
@media (max-width: 720px) { .voice-demo { grid-template-columns: 1fr; } }

/* ---------- packages ---------- */
.compare { margin-top: 32px; max-width: 760px; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 2px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { font: 800 22px var(--display); letter-spacing: -0.02em; border-bottom: var(--outline); }
.compare tbody th { font-weight: 500; }
.compare td { font: 700 16px var(--display); width: 120px; color: var(--muted); }
.compare td.yes { color: var(--on-lemon); background: var(--lemon); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.pkg-note { color: var(--muted); font-size: 15px; margin-top: 18px; }
.soon { margin-top: 28px; padding: 22px 26px; background: var(--surface); border: 3px dashed var(--line); border-radius: 22px; }
.soon h3 { margin: 0 0 12px; font-family: var(--display, inherit); font-size: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.soon-tag { display: inline-block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; background: var(--lemon); color: var(--on-lemon); border: 2px solid var(--hard); border-radius: 999px; padding: 3px 12px; box-shadow: 3px 3px 0 var(--hard); }
.soon ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.soon li { color: var(--muted); }
.soon li b { color: var(--ink); }
@media (max-width: 480px) { .compare td { width: 72px; padding-inline: 10px; } .compare th, .compare td { padding-block: 12px; }
  .compare thead th { font-size: 17px; padding-inline: 10px; } .compare tbody th { padding-inline: 10px 8px; } }

/* ---------- beta ---------- */
.beta-box { background: var(--surface); border: var(--outline); border-radius: 20px; box-shadow: var(--shadow-lift); padding: clamp(28px, 4vw, 48px); display: grid; gap: 16px; justify-items: start; max-width: 720px; }
.beta-box p { max-width: 52ch; }
.beta-box .btn { margin-top: 6px; }

/* ---------- faq ---------- */
.faq details { border-top: 2px solid var(--line); padding: 4px 0; max-width: 720px; }
.faq details:first-of-type { margin-top: 28px; }
.faq details:last-of-type { border-bottom: 2px solid var(--line); }
.faq summary { cursor: pointer; font: 700 19px var(--display); padding: 14px 32px 14px 0; list-style: none; position: relative; border-radius: 6px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform var(--t) var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); padding: 0 0 18px; max-width: 58ch; }

/* ---------- footer ---------- */
.foot { max-width: var(--col); margin: 0 auto; padding: 32px var(--gutter) 48px; display: flex; flex-wrap: wrap; gap: 8px 32px; color: var(--muted); font-size: 14px; border-top: 2px solid var(--line); }

/* ---- beta signup (Design Fable, brief 07: design/signup/beta-form.css) ---- */
/* ---------- beta signup (Design Fable, brief 07) — append to site/styles.css ----------
   Everything keys off form#beta-form[data-state]: idle | sending | done | invalid | busy | oops.
   Tokens only; no new colours except the two message tints derived from --success / --lemon. */
.beta-form { display: grid; gap: 8px; width: 100%; max-width: 520px; margin-top: 4px; }
.beta-label { font: 700 15px var(--display); }
.beta-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: stretch; }
@media (max-width: 440px) { .beta-row { grid-template-columns: 1fr; } }
.beta-input {
  min-height: 48px; width: 100%; padding: 0 16px; font: 500 17px var(--body); color: var(--ink);
  background: var(--bg); border: var(--outline); border-radius: 999px; box-shadow: inset 2px 2px 0 var(--line);
  transition: box-shadow var(--t), border-color var(--t);
}
.beta-input::placeholder { color: var(--muted); opacity: .8; }
.beta-input:hover { box-shadow: inset 2px 2px 0 var(--line), var(--shadow-1); }
.beta-input:focus-visible { box-shadow: inset 2px 2px 0 var(--line), var(--ring); border-radius: 999px; }
.beta-submit { position: relative; min-height: 48px; padding: 0 24px; margin-top: 0; }
.beta-box .beta-submit { margin-top: 0; }                    /* overrides .beta-box .btn { margin-top: 6px } */
.beta-submit-wait { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; gap: 6px; }
.beta-submit-wait i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: beta-dot 1s ease-in-out infinite; }
.beta-submit-wait i:nth-child(2) { animation-delay: .16s; }
.beta-submit-wait i:nth-child(3) { animation-delay: .32s; }
@keyframes beta-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

/* status line: hidden while empty, tinted per state */
.beta-msg { margin: 0; font: 600 15px/1.4 var(--body); color: var(--ink); max-width: 52ch; }
.beta-msg:empty { display: none; }
.beta-form[data-state="invalid"] .beta-msg { color: var(--pink-ink); }
.beta-form[data-state="busy"] .beta-msg,
.beta-form[data-state="oops"] .beta-msg { display: inline-block; background: var(--lemon); color: var(--on-lemon); border: var(--outline); border-radius: 10px; padding: 8px 12px; box-shadow: var(--shadow-1); }
.beta-form[data-state="invalid"] .beta-input { border-color: var(--pink); box-shadow: inset 2px 2px 0 var(--line), 0 0 0 2px var(--pink); }

/* sending: input locked, label swaps for the dots (button keeps its width) */
.beta-form[data-state="sending"] .beta-input { color: var(--muted); pointer-events: none; }
.beta-form[data-state="sending"] .beta-submit { pointer-events: none; transform: none; box-shadow: 2px 2px 0 var(--hard); }
.beta-form[data-state="sending"] .beta-submit-label { visibility: hidden; }
.beta-form[data-state="sending"] .beta-submit-wait { display: flex; }

/* done: the fields go, Momo and the line come in; nothing left to resubmit */
.beta-done { display: none; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: center;
  background: var(--lemon); color: var(--on-lemon); border: var(--outline); border-radius: 16px; padding: 12px 16px 12px 10px; box-shadow: var(--shadow-2); }
.beta-form[data-state="done"] .beta-label,
.beta-form[data-state="done"] .beta-row,
.beta-form[data-state="done"] .beta-msg { display: none; }
.beta-form[data-state="done"] .beta-done { display: grid; animation: beta-pop 480ms cubic-bezier(.34,1.4,.64,1) both; }
.beta-done-momo { width: 88px; }
.beta-done-momo .tk { width: 100%; height: auto; overflow: visible; display: block; transform-origin: 50% 90%; }
.beta-form[data-state="done"] .beta-done-momo .tk { animation: beta-bounce 560ms cubic-bezier(.34,1.4,.64,1) 120ms both; }
.beta-done-text { margin: 0; font: 500 16px/1.4 var(--body); }
.beta-done-text b { font: 800 19px/1.2 var(--display); }
@keyframes beta-pop { from { transform: scale(.94) translateY(6px); opacity: 0; } }
@keyframes beta-bounce { 0% { transform: scale(.7, 1.2) translateY(-10px); } 45% { transform: scale(1.12, .9) translateY(2px); } 75% { transform: scale(.97, 1.03); } 100% { transform: none; } }

/* privacy */
.beta-note { margin: 2px 0 0; font-size: 14px; color: var(--muted); max-width: 52ch; }
.beta-privacy { font-size: 14px; color: var(--muted); max-width: 52ch; }
.beta-privacy summary { cursor: pointer; display: inline-block; font: 700 14px var(--display); color: var(--pink-ink); padding: 8px 0; min-height: 44px; line-height: 28px; list-style: none; border-radius: 6px; }
.beta-privacy summary::-webkit-details-marker { display: none; }
.beta-privacy summary::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 8px 2px 2px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); transition: transform var(--t) var(--ease); }
.beta-privacy[open] summary::before { transform: rotate(45deg) translate(-1px, -1px); }
.beta-privacy ul { margin: 2px 0 6px; padding-left: 18px; display: grid; gap: 6px; line-height: 1.45; }
.beta-privacy a { color: var(--pink-ink); }

/* honeypot: off-screen, no size, not focusable, not announced */
.beta-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .beta-submit-wait i { animation: none; opacity: 1; }
  .beta-form[data-state="done"] .beta-done, .beta-form[data-state="done"] .beta-done-momo .tk { animation: none; }
}

/* ---- beta signup done card + download (Design Fable, brief 09: design/signup-download/beta-done.css) ---- */
/* ---------- beta done card with download (Design Fable, brief 09) — append after the brief-07 block ----------
   Overrides only the .beta-done grid so a third row (button + requirements) fits under the text, next to Momo.
   Tokens only. The brief-07 pop / bounce animations and reduced-motion rules still apply. */
.beta-done {
  grid-template-columns: 88px minmax(0, 1fr);
  grid-template-areas: "momo text" "momo act";
  align-items: start;
  row-gap: 12px;
  padding: 14px 18px 16px 12px;
}
.beta-done-momo { grid-area: momo; align-self: center; }
.beta-done-text { grid-area: text; }
.beta-done-act { grid-area: act; display: grid; gap: 8px; justify-items: start; }
.beta-download { min-height: 48px; padding: 0 22px; }
.beta-done .btn-primary:focus-visible { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--ink); }  /* the pink ring vanishes on lemon; ink ring instead */
[data-theme="dark"] .beta-done .btn-primary:focus-visible { box-shadow: 0 0 0 3px var(--lemon), 0 0 0 6px var(--ink); }
.beta-done-req { margin: 0; font: 500 13px/1.4 var(--body); color: var(--on-lemon); opacity: .8; }

/* 320–400 px: Momo goes above, everything else full width, button stretches */
@media (max-width: 400px) {
  .beta-done { grid-template-columns: 1fr; grid-template-areas: "momo" "text" "act"; justify-items: start; padding: 14px 16px 16px; }
  .beta-done-momo { width: 72px; }
  .beta-done-act { width: 100%; }
  .beta-download { width: 100%; justify-content: center; }
}

/* CONV-1 (2026-10-11): phone-only hint and requirements line in the beta box; X link in the footer */
.beta-phone { display: none; font-weight: 600; }
@media (max-width: 720px) { .beta-phone { display: block; margin-top: 10px; } }
.beta-req { margin-top: 10px; max-width: none; }
.foot-x a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.foot-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- hero loop (video-03, DK 2026-10-11): a silent 12 s loop replaces the still Momo in the hero ---------- */
.hero:has(.hero-loop) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.hero-loop { position: relative; margin: 0; width: 100%; max-width: 640px; justify-self: end; }
.hero-loop video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; background: #0b0f1f;
  border: 3px solid var(--hard); border-radius: 22px; box-shadow: var(--shadow-lift); }
/* the Pause/Play control sits under the frame, right-aligned, so it never covers Momo or the captions */
.loop-toggle { display: block; margin: 14px 0 0 auto; font: 700 13px var(--display); padding: 6px 14px;
  border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.loop-toggle:hover, .loop-toggle:focus-visible { border-color: var(--hard); color: var(--ink); }
.loop-toggle[hidden] { display: none; }
@media (max-width: 860px) {
  .hero:has(.hero-loop) { grid-template-columns: 1fr; }
  .hero-loop { order: -1; justify-self: stretch; max-width: none; }
  .hero-loop video { border-radius: 16px; }
}

/* ---------- packages: Expert column (BRIEF-16 desktop, unchanged + BRIEF-17 phone; append-only) ---------- */
/* Three value columns need more room than the two-column table had; the label column still gets the rest. */
.xp-compare { max-width: 900px; }
.xp-compare td { width: 150px; }            /* so "About 4.5 GB" stays on one line */
.xp-compare td:last-child { width: 230px; }
.xp-compare .xp-th .soon-tag { display: block; width: max-content; margin-top: 6px; font-family: var(--body); font-weight: 700; letter-spacing: .06em; }
.xp-compare .xp-price td { color: var(--ink); }
.xp-compare .xp-price td:last-child { font-size: 15px; }
.xp-cta { margin-top: 22px; }
.xp-p { display: none; }                    /* phone-only short price wording; desktop shows the full sentence */

/* Phone (BRIEF-17): a real table again, just narrower — label left, Light / Standard / Expert in three narrow
   aligned columns under one legend. No boxes, no repeated captions; the lemon highlight stays on the value;
   long Expert details (.xp-d) are desktop-only. Nothing scrolls sideways at 375. */
@media (max-width: 640px) {
  .xp-compare { display: block; max-width: none; margin-top: 20px; }
  .xp-compare thead, .xp-compare tbody { display: block; }
  .xp-compare thead tr, .xp-compare tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) 50px 58px 70px; column-gap: 6px; align-items: start; }
  .xp-compare thead tr { padding: 0 0 6px; border-bottom: var(--outline); }
  .xp-compare thead th { display: block; padding: 0; border-bottom: 0; font-size: 13px; }
  .xp-compare .xp-th .soon-tag { font-size: 8px; letter-spacing: .03em; padding: 1px 5px; margin-top: 3px; box-shadow: 1px 1px 0 var(--hard); }
  .xp-compare tbody tr { padding: 6px 0; border-bottom: 2px solid var(--line); }
  .xp-compare tbody tr:last-child { border-bottom: 0; }
  .xp-compare tbody th { display: block; padding: 0; border-bottom: 0; font-size: 13.5px; line-height: 1.25; }
  .xp-compare td, .xp-compare td:last-child { display: block; width: auto; min-width: 0; padding: 1px 4px; margin-left: -4px; border-bottom: 0; border-radius: 4px; font-size: 13px; line-height: 1.25; overflow-wrap: break-word; }
  .xp-d { display: none; }
  .xp-p { display: inline; }
  /* price: Light/Standard stay in their columns; the Expert price gets its own full line */
  .xp-compare .xp-price td:last-child { grid-column: 1 / -1; padding-top: 4px; }
  .xp-compare .xp-price td:last-child::before { content: "Expert · "; color: var(--muted); }
  .xp-compare .xp-price td { font-size: 13px; }
  .xp-cta { margin-top: 14px; }
}
