/* ClipAlerts: Soft Pop design system.
   Rounded shapes, pastel candy colors, soft shadows, bouncy motion. Fredoka for display, Nunito for text. */

/* Fonts are self-hosted (OFL, see /static/fonts/OFL.txt), so pages make no third-party requests. */
@font-face { font-family: "Fredoka"; src: url("/static/fonts/fredoka-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/static/fonts/fredoka-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/static/fonts/nunito-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/static/fonts/nunito-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/static/fonts/nunito-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #FFF7F2;
  --bg-2: #FDEDE6;
  --card: #FFFFFF;
  --ink: #2D2340;
  --muted: #75698A;
  --line: #EFE3EC;
  --pink: #FF8FB8;
  --pink-ink: #C2366E;
  --mint: #8FE3C8;
  --sky: #A9C8FF;
  --butter: #FFE08A;
  --lilac: #CDB8FF;
  --coral: #FF9A8B;
  --plum: #2D2340;

  --r-lg: 26px;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 12px 32px rgba(45, 35, 64, .08), 0 2px 6px rgba(45, 35, 64, .05);
  --shadow-sm: 0 4px 14px rgba(45, 35, 64, .07);
  --bounce: cubic-bezier(.3, 1.6, .5, 1);

  --f-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --f-body: "Nunito", system-ui, sans-serif;
}

/* One soft color per Bits tier, shared by the site, overlay and extension. */
[data-tier="alert_t1"] { --tier: var(--butter); }
[data-tier="alert_t2"] { --tier: var(--sky); }
[data-tier="alert_t3"] { --tier: var(--pink); }
[data-tier="alert_t4"] { --tier: var(--mint); }
[data-tier="alert_t5"] { --tier: var(--lilac); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 600 16px/1.55 var(--f-body); }
body { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
::selection { background: var(--butter); }
a { color: var(--pink-ink); text-decoration: none; font-weight: 800; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
.icon { width: 1.1em; height: 1.1em; vertical-align: -0.18em; flex: none; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
main { flex: 1; padding: 28px 0 72px; }

h1, h2, h3, .display { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(32px, 5vw, 50px); margin: 0 0 8px; }
h2 { font-size: clamp(24px, 3vw, 32px); margin: 40px 0 14px; }
h3 { font-size: 21px; margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono, .timecode { font-variant-numeric: tabular-nums; }
.spacer, .grow { flex: 1; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .grow { min-width: 180px; }
.center { text-align: center; }

/* ---- Top bar + logo ------------------------------------------------------------------- */
header.top { position: relative; z-index: 20; }
header.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 76px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
header.top a:not(.btn):not(.brand):not(.twitch-btn) { color: var(--muted); font-weight: 800; }
header.top a:not(.btn):not(.brand):not(.twitch-btn):hover { color: var(--ink); text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 23px/1 var(--f-display); color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; background: var(--pink); display: inline-grid; place-content: center;
  transform: rotate(-8deg); transition: transform .3s var(--bounce); }
.brand:hover .brand-mark { transform: rotate(6deg) scale(1.08); }
.brand-mark svg { width: 16px; height: 16px; fill: #fff; margin-left: 2px; }
.who { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.avatar { width: 36px; height: 36px; border-radius: 12px; vertical-align: middle; object-fit: cover; background: var(--lilac); }
.avatar--big { width: 76px; height: 76px; border-radius: 22px; box-shadow: var(--shadow-sm); }

/* ---- Buttons ---------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--f-display);
  color: var(--ink); background: var(--card); border: 0; border-radius: 999px; padding: 11px 18px;
  box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--bounce), background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: inset 0 0 0 2px var(--lilac); }
.btn:active { transform: scale(.96); }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary, .btn--sun, .btn--ink { background: var(--plum); color: #fff; box-shadow: 0 6px 16px rgba(45, 35, 64, .18); }
.btn.primary:hover, .btn--sun:hover, .btn--ink:hover { box-shadow: 0 10px 22px rgba(45, 35, 64, .24); }
.btn--pop { background: var(--pink); color: var(--ink); box-shadow: 0 6px 16px rgba(255, 143, 184, .35); }
.btn.ok { background: var(--mint); box-shadow: none; }
.btn.danger, .btn--hot { background: #FFE1DC; color: #A8323F; box-shadow: none; }
.btn--ghost { background: var(--card); }
.btn.big, .btn--big { font-size: 18px; padding: 16px 26px; }
.linklike { background: none; border: 0; padding: 0; color: var(--pink-ink); font: inherit; font-weight: 800; cursor: pointer; text-align: left; }
.linklike:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Cards ------------------------------------------------------------------------------ */
.box, .card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px; }
a.card { display: block; color: inherit; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 16px 20px; }

/* ---- Forms ------------------------------------------------------------------------------ */
label { display: block; font-size: 14px; font-weight: 800; color: var(--muted); margin-bottom: 6px; }
label:has(input[type=checkbox]) { color: var(--ink); font-size: 15px; display: flex; gap: 10px; align-items: center; cursor: pointer; }
input[type=text], input[type=number], input[type=url], input[type=search], select, textarea {
  background: var(--bg); color: var(--ink); border: 2px solid var(--line); border-radius: 14px; padding: 11px 14px;
  font: 700 16px var(--f-body); width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(169, 200, 255, .35); background: #fff; }
input[type=checkbox] { appearance: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line); background: #fff; margin: 0;
  display: inline-grid; place-content: center; cursor: pointer; flex: none; transition: background .15s, transform .2s var(--bounce); }
input[type=checkbox]:checked { background: var(--mint); border-color: var(--mint); transform: scale(1.06); }
input[type=checkbox]:checked::after { content: ""; width: 10px; height: 6px; border: solid var(--ink); border-width: 0 0 3px 3px; transform: rotate(-45deg) translate(1px, -1px); }

/* ---- Chips: status, stickers, stamps ---------------------------------------------------- */
.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font: 800 12px/1.4 var(--f-body); background: var(--bg-2); vertical-align: middle; }
.pill.pending { background: var(--butter); }
.pill.approved { background: var(--mint); }
.pill.rejected, .pill.disabled { background: #FFE1DC; color: #A8323F; }
.pill.milestone { background: var(--lilac); }
.sticker { display: inline-block; background: var(--butter); border-radius: 14px; padding: 6px 14px; font: 600 14px var(--f-display);
  transform: rotate(-2deg); box-shadow: var(--shadow-sm); }
.sticker--pop { background: var(--pink); } .sticker--lime { background: var(--mint); } .sticker--sky { background: var(--sky); }
.stamp { display: inline-block; font: 600 18px/1 var(--f-display); padding: 10px 18px; border-radius: 999px; background: var(--mint);
  transform: rotate(-4deg); box-shadow: var(--shadow-sm); }
.stamp--hot { background: #FFE1DC; color: #A8323F; }
.bits { font: 800 13px var(--f-body); background: var(--tier, var(--butter)); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.human-badge { display: inline-flex; gap: 8px; align-items: center; margin: 16px 0 0; padding: 8px 16px; background: var(--mint);
  border-radius: 999px; font-weight: 800; }

/* ---- Notices ---------------------------------------------------------------------------- */
.notice { padding: 12px 18px; border-radius: var(--r); background: var(--card); margin: 14px 0; font-weight: 700; box-shadow: var(--shadow-sm); }
.notice.error { background: #FFE8E4; color: #8A2633; }
.notice.good { background: #E3F8F0; }
.notice .btn { margin-left: 8px; }

/* ---- Tabs (segmented) ------------------------------------------------------------------ */
.tabs { display: flex; gap: 4px; margin: 26px 0 20px; overflow-x: auto; padding: 5px; background: var(--card); border-radius: 999px;
  box-shadow: var(--shadow-sm); width: fit-content; max-width: 100%; }
.tabs button { font: 600 15px/1 var(--f-display); background: transparent; color: var(--muted); border: 0; padding: 11px 18px;
  border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.tabs button:hover { color: var(--ink); }
.tabs button.active { background: var(--plum); color: #fff; }
.badge { display: inline-grid; place-content: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px; border-radius: 999px;
  background: var(--pink); color: var(--ink); font: 800 12px var(--f-body); }
.badge:empty { display: none; }

/* ---- Lists ------------------------------------------------------------------------------ */
.list-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 16px 0; border-bottom: 2px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item strong { font: 600 18px var(--f-display); }
.list-item[data-tier] { padding-left: 18px; position: relative; }
.list-item[data-tier]::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 7px; border-radius: 99px; background: var(--tier, var(--line)); }
code.copy { display: block; padding: 12px 14px; background: var(--plum); color: var(--mint); border-radius: 14px;
  word-break: break-all; font: 600 14px ui-monospace, Menlo, monospace; }

/* ---- Sound cards ------------------------------------------------------------------------ */
.pad { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); display: flex; flex-direction: column;
  overflow: hidden; padding: 10px; transition: transform .3s var(--bounce), box-shadow .2s; }
.pad:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 18px 40px rgba(45, 35, 64, .12); }
.pad .thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--r);
  overflow: hidden; cursor: pointer; background: var(--tier, var(--sky)); }
.pad .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.pad .thumb:hover img { transform: scale(1.04); }
.pad .thumb .play { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; background: var(--card);
  border-radius: 999px; padding: 6px 12px; font: 600 13px var(--f-display); color: var(--ink); box-shadow: var(--shadow-sm); }
.pad-body { padding: 12px 8px 6px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pad-name { font: 600 21px/1.1 var(--f-display); word-break: break-word; }
.pad-id { font: 800 12px var(--f-body); background: var(--bg-2); color: var(--muted); padding: 2px 8px; border-radius: 999px; flex: none; }
.pad-src { font: 800 13px/1.45 var(--f-body); color: var(--muted); }
.pad-quote { font-weight: 700; font-style: italic; word-break: break-word; }
.pad-foot { margin-top: auto; padding-top: 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.pad-foot .count { font: 800 13px var(--f-body); background: var(--bg-2); padding: 3px 10px; border-radius: 999px; display: inline-flex; gap: 4px; align-items: center; }
.play-dot { display: inline-block; width: 0; height: 0; border-left: 7px solid currentColor; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }

/* ---- Lore page ------------------------------------------------------------------------- */
.nameplate { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 22px 24px; position: relative; overflow: hidden; }
.nameplate::after { content: ""; position: absolute; right: -60px; top: -70px; width: 220px; height: 220px; border-radius: 50%;
  background: var(--plate, var(--sky)); opacity: .45; pointer-events: none; }
.nameplate > * { position: relative; z-index: 1; }
.nameplate h1 { margin: 0; }
.kicker { display: inline-block; font: 800 13px var(--f-body); color: var(--muted); margin-bottom: 4px; }
.divider { display: flex; align-items: center; gap: 14px; margin: 44px 0 16px; }
.divider span { font: 600 clamp(20px, 3vw, 26px)/1 var(--f-display); background: var(--card); padding: 10px 20px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.divider::after { content: ""; flex: 1; height: 3px; border-radius: 99px; background: var(--line); }
.callback { background: #FFE3EE; border-radius: var(--r-lg); padding: 24px; margin-top: 28px; }
.callback h2 { margin-top: 0; }
.lore-split { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); margin-top: 10px; }
.scoreboard { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.scoreboard li { counter-increment: rank; display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 12px; padding: 10px 0; }
.scoreboard li::before { content: counter(rank); font: 600 17px/40px var(--f-display); width: 40px; height: 40px; border-radius: 14px;
  background: var(--bg-2); text-align: center; }
.scoreboard li:nth-child(1)::before { background: var(--butter); }
.scoreboard li:nth-child(2)::before { background: var(--sky); }
.scoreboard li:nth-child(3)::before { background: var(--pink); }
dialog#replay { background: var(--card); border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 14px;
  max-width: min(92vw, 900px); color: var(--ink); }
dialog#replay::backdrop { background: rgba(45, 35, 64, .55); }
dialog#replay video { width: 100%; max-height: 70vh; display: block; background: #000; border-radius: var(--r); margin-bottom: 12px; }

/* ---- Submit ------------------------------------------------------------------------------ */
.steps { display: grid; gap: 22px; }
.step-num { display: inline-flex; align-items: center; gap: 8px; font: 600 15px var(--f-display); margin-bottom: 12px; }
.step-num b { width: 30px; height: 30px; border-radius: 10px; display: inline-grid; place-content: center; background: var(--butter); font-weight: 600; }
#waveform { background: var(--bg); border-radius: var(--r); min-height: 128px; overflow: hidden; }

/* ---- Dashboard -------------------------------------------------------------------------- */
.panic { width: 104px; height: 104px; border-radius: 50%; border: 0; background: var(--coral); color: var(--ink);
  box-shadow: 0 10px 24px rgba(255, 154, 139, .55), inset 0 -6px 0 rgba(0, 0, 0, .08); font: 600 17px/1.05 var(--f-display);
  cursor: pointer; transition: transform .3s var(--bounce); flex: none; }
.panic:hover { transform: scale(1.06) rotate(-4deg); }
.panic:active { transform: scale(.94); }
.panic.is-paused { background: var(--mint); box-shadow: 0 10px 24px rgba(143, 227, 200, .6), inset 0 -6px 0 rgba(0, 0, 0, .08); }
.on-air { display: inline-flex; align-items: center; gap: 8px; font: 600 15px var(--f-display); padding: 8px 14px; border-radius: 999px; background: var(--bg-2); }
.on-air .status-dot { width: 10px; height: 10px; border-radius: 50%; background: #B9AFC6; }
.on-air.is-live { background: #FFE3EE; }
.on-air.is-live .status-dot { background: var(--pink); box-shadow: 0 0 0 0 rgba(255, 143, 184, .7); animation: pulse 1.6s infinite; }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.status-dot.on { background: var(--mint); }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 143, 184, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 143, 184, 0); } }
.dash-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

/* ---- Bands + footer ----------------------------------------------------------------------- */
.marquee { overflow: hidden; background: var(--plum); color: #fff; white-space: nowrap; font: 600 clamp(17px, 2vw, 22px)/1 var(--f-display);
  padding: 16px 0; }
.marquee--sun { background: var(--butter); color: var(--ink); }
.marquee-track { display: inline-flex; align-items: center; gap: 26px; padding-right: 26px; animation: marquee 34s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 26px; }
.marquee-track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }
.marquee--sun .marquee-track span::after { background: var(--ink); opacity: .35; }
@keyframes marquee { to { transform: translateX(-50%); } }
footer.site { background: var(--card); }
footer.site .wrap { padding-top: 26px; padding-bottom: 30px; display: grid; gap: 14px; color: var(--muted); font-weight: 700; }
footer.site .foot-row { display: flex; gap: 12px 22px; flex-wrap: wrap; align-items: center; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site nav a { color: var(--ink); }
footer.site .legal { font-size: 13px; font-weight: 600; max-width: 70ch; }

/* ---- Twitch sign-in button: Twitch purple, white Glitch, no restyling of the mark -------- */
.twitch-btn { display: inline-flex; align-items: center; gap: 10px; background: #9146FF; color: #FFFFFF; border-radius: 999px;
  padding: 10px 18px 10px 14px; font: 700 15px/1 var(--f-body); text-decoration: none; white-space: nowrap;
  transition: background .15s, transform .25s var(--bounce); }
.twitch-btn:hover { background: #772CE8; color: #FFFFFF; text-decoration: none; transform: translateY(-2px); }
.twitch-btn:active { transform: scale(.97); }
.twitch-glitch { width: 20px; height: 20px; flex: none; }
.twitch-btn--big { font-size: 17px; padding: 15px 24px 15px 20px; }
.twitch-btn--big .twitch-glitch { width: 24px; height: 24px; }

/* ---- Long-form pages (about, privacy, terms) ------------------------------------------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 24px; margin: 34px 0 10px; }
.prose p, .prose li { font-weight: 600; line-height: 1.7; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose .updated { color: var(--muted); font-size: 14px; }
.prose code { background: var(--bg-2); padding: 1px 6px; border-radius: 6px; font-size: .92em; }

/* ---- Home: scroll story --------------------------------------------------------------- */
.home main { padding: 0; }
.reveal { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .5s ease, transform .6s var(--bounce); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 80px; }
.hero-title { font: 600 clamp(44px, 7.6vw, 96px)/1 var(--f-display); margin: 0; letter-spacing: -.02em; max-width: 11ch; }
.hero-title .hl { background: var(--butter); border-radius: .3em; padding: 0 .18em; display: inline-block; transform: rotate(-2deg); }
.hero-title .line { display: block; animation: rise .8s var(--bounce) both; }
.hero-title .line:nth-child(2) { animation-delay: .1s; } .hero-title .line:nth-child(3) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
.hero-sub { max-width: 520px; font-size: clamp(17px, 2vw, 20px); font-weight: 600; color: var(--muted); margin: 22px 0 28px; }
.hero-sub strong { color: var(--ink); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-pads { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-pad { position: absolute; width: clamp(110px, 12vw, 160px); border-radius: 24px; background: var(--card); box-shadow: var(--shadow);
  padding: 10px; rotate: var(--rot, 0deg); animation: bob 7s ease-in-out infinite; animation-delay: var(--d, 0s);
  transition: transform .2s var(--bounce); }
.hero-pad .blob { aspect-ratio: 4 / 3; border-radius: 16px; background: var(--tier, var(--sky)); display: grid; place-content: center; }
.hero-pad .blob svg { width: 26px; height: 26px; fill: #fff; }
.hero-pad b { display: block; font: 600 17px/1.1 var(--f-display); margin: 8px 4px 0; }
.hero-pad small { display: block; font: 800 12px var(--f-body); color: var(--muted); margin: 2px 4px 2px; }
.hero-pad.hit { transform: scale(1.08); }
@keyframes bob { 50% { translate: 0 -14px; } }

.signed-strip { display: flex; gap: 16px; flex-wrap: wrap; margin: 34px 0 0; }
.note { background: var(--card); border-radius: var(--r); padding: 14px 18px; box-shadow: var(--shadow-sm); max-width: 520px; }
.note:nth-child(1) { background: #E3F8F0; } .note:nth-child(2) { background: #E8EFFF; }

.section { padding: 90px 0; }
.section--tint { background: var(--bg-2); }
.section-title { font: 600 clamp(32px, 5vw, 60px)/1.02 var(--f-display); margin: 0 0 24px; letter-spacing: -.02em; max-width: 16ch; }

/* pinned story */
.story { position: relative; height: 420vh; background: var(--bg-2); }
.story-pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; width: 100%; }
.story-steps { position: relative; min-height: 300px; }
.story-step { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(24px); transition: opacity .35s, transform .5s var(--bounce); }
.story-step.on { opacity: 1; transform: none; }
.story-step h3 { font-size: clamp(30px, 4vw, 48px); line-height: 1.02; margin: 10px 0 14px; }
.story-step p { font-size: 18px; color: var(--muted); max-width: 420px; }
.story-count { font: 600 16px var(--f-display); display: flex; align-items: center; gap: 12px; margin-bottom: 10px; color: var(--muted); }
.story-bar { flex: 1; max-width: 200px; height: 10px; border-radius: 99px; background: var(--card); position: relative; overflow: hidden; }
.story-bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); background: var(--pink); border-radius: 99px; }
.stage { position: relative; aspect-ratio: 16 / 10; max-width: 100%; border-radius: 28px; background: var(--plum); box-shadow: 0 30px 60px rgba(45, 35, 64, .25); overflow: hidden; }
.stage-bar { position: absolute; inset: 0 0 auto 0; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 16px;
  font: 800 12px var(--f-body); color: #CFC6DF; z-index: 3; }
.stage-bar .rec { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); animation: pulse 1.6s infinite; }
.scene { position: absolute; inset: 40px 0 0 0; padding: 20px 24px 24px; display: flex; flex-direction: column; justify-content: center; gap: 14px;
  opacity: 0; transform: scale(.97); transition: opacity .3s, transform .45s var(--bounce); }
.stage[data-step="1"] .scene-1, .stage[data-step="2"] .scene-2, .stage[data-step="3"] .scene-3, .stage[data-step="4"] .scene-4 { opacity: 1; transform: none; }
.mock-label { font: 600 15px var(--f-display); color: #fff; }
.mock-field { background: #fff; border-radius: 16px; padding: 14px 16px; font: 700 clamp(12px, 1.3vw, 15px) var(--f-body); white-space: nowrap; overflow: hidden; color: var(--ink); }
.mock-field .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--pink); vertical-align: -3px; animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.mock-wave { position: relative; height: 120px; background: #fff; border-radius: 18px; display: flex; align-items: center; gap: 4px; padding: 0 14px; }
.mock-wave b { flex: 1; background: #D6CDE4; border-radius: 99px; min-width: 3px; }
.mock-region { position: absolute; top: 10px; bottom: 10px; left: calc(18% + var(--p, 0) * 22%); width: calc(14% + var(--p, 0) * 10%);
  background: rgba(255, 224, 138, .6); border-radius: 12px; box-shadow: inset 0 0 0 3px var(--butter); }
.mock-queue { background: #fff; border-radius: 18px; padding: 14px 16px; position: relative; color: var(--ink); }
.mock-queue strong { font: 600 18px var(--f-display); }
.mock-queue .stamp { position: absolute; right: 14px; top: 50%; translate: 0 -50%; opacity: 0; transform: rotate(-6deg) scale(1.8);
  transition: opacity .2s, transform .45s var(--bounce); }
.stage[data-step="3"] .mock-queue .stamp { opacity: 1; transform: rotate(-6deg) scale(1); transition-delay: .25s; }
.mock-video { position: absolute; left: 24px; top: 30px; width: 46%; aspect-ratio: 16 / 9; border-radius: 18px; background: var(--sky);
  display: grid; place-content: center; font: 600 clamp(18px, 2.4vw, 28px) var(--f-display); color: var(--ink); }
.mock-video .vtab { position: absolute; left: 10px; top: 10px; background: #fff; color: var(--ink); font: 800 11px var(--f-body); padding: 3px 9px; border-radius: 99px; }
.mock-card { position: absolute; left: 24px; bottom: 24px; background: #fff; border-radius: 20px; padding: 10px 16px 10px 10px; display: flex; gap: 12px;
  align-items: center; max-width: calc(100% - 48px); color: var(--ink); transform: translateY(170%); transition: transform .6s var(--bounce); }
.stage[data-step="4"] .mock-card { transform: translateY(0); transition-delay: .15s; }
.mock-card .blob { width: 44px; height: 44px; border-radius: 14px; background: var(--butter); display: grid; place-content: center; flex: none; }
.mock-card .blob svg { width: 20px; height: 20px; fill: var(--ink); }
.mock-card .n { font: 600 clamp(17px, 2vw, 21px)/1.1 var(--f-display); }
.mock-card .s { font: 700 12px/1.45 var(--f-body); color: var(--muted); }

/* robot vs real */
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center; }
.vs { font: 600 28px var(--f-display); color: var(--muted); width: 64px; height: 64px; border-radius: 50%; background: var(--card); display: grid; place-content: center; box-shadow: var(--shadow-sm); }
.robot { position: relative; background: #ECE8F0; border-radius: var(--r-lg); padding: 28px; font: 700 clamp(17px, 2.1vw, 21px)/1.4 ui-monospace, Menlo, monospace;
  color: #8D84A0; }
.robot::after { content: ""; position: absolute; left: 20px; right: 20px; top: 50%; height: 6px; border-radius: 99px; background: var(--coral);
  transform: scaleX(var(--p, 0)) rotate(-3deg); transform-origin: left; }
.robot .stamp { position: absolute; right: 18px; bottom: -16px; opacity: clamp(0, calc((var(--p, 0) - .6) * 4), 1); }
.versus .pad { rotate: 1.5deg; }

/* horizontal rail */
.rail { position: relative; height: 320vh; background: var(--bg); }
.rail-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.rail-track { display: flex; gap: 24px; padding: 14px max(16px, calc((100vw - 1120px) / 2 + 16px)) 30px;
  transform: translateX(calc(var(--p, 0) * var(--rail-shift, 0px) * -1)); will-change: transform; }
.tile { flex: none; width: min(360px, 78vw); min-height: 330px; background: var(--card); border-radius: 28px; box-shadow: var(--shadow);
  padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.tile:nth-child(odd) { rotate: -1deg; } .tile:nth-child(even) { rotate: 1deg; }
.tile .ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-content: center; background: var(--tier, var(--butter)); }
.tile .ico svg { width: 28px; height: 28px; stroke: var(--ink); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { font-size: 26px; line-height: 1.05; margin: 8px 0 0; }
.tile p { font-size: 16px; color: var(--muted); margin: 0; }
.tile .foot { margin-top: auto; font: 800 13px var(--f-body); background: var(--bg-2); padding: 5px 12px; border-radius: 99px; width: fit-content; }

/* numbers */
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.numbers > div { padding: 26px 24px; border-radius: var(--r-lg); }
.numbers .n { font: 600 clamp(40px, 6vw, 72px)/1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.numbers .l { font: 800 15px var(--f-body); margin-top: 8px; }
.numbers > div:nth-child(1) { background: var(--butter); } .numbers > div:nth-child(2) { background: var(--pink); } .numbers > div:nth-child(3) { background: var(--mint); }

.cta-band { padding: 40px 0 100px; }
.cta-panel { background: var(--plum); color: #fff; border-radius: 36px; padding: clamp(36px, 6vw, 72px); text-align: center; position: relative; overflow: hidden; }
.cta-panel::before, .cta-panel::after { content: ""; position: absolute; border-radius: 50%; opacity: .9; }
.cta-panel::before { width: 180px; height: 180px; background: var(--pink); left: -50px; top: -60px; }
.cta-panel::after { width: 140px; height: 140px; background: var(--butter); right: -30px; bottom: -50px; }
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel .section-title { color: #fff; margin-left: auto; margin-right: auto; }
.cta-panel .btn { background: var(--butter); color: var(--ink); }
.cta-panel p { color: #CFC6DF; }

@media (max-width: 860px) {
  .story { height: auto; }
  .story-pin { position: static; height: auto; padding: 60px 0; overflow: visible; }
  .story-grid { grid-template-columns: 1fr; gap: 26px; }
  .story-steps { min-height: 0; display: grid; gap: 26px; padding-bottom: 30vh; }
  .story-step { position: static; opacity: 1; transform: none; padding: 14px 0; }
  .story-count { display: none; }
  .stage { order: -1; position: sticky; top: 10px; z-index: 4; align-self: start; }
  .rail { height: auto; }
  .rail-pin { position: static; height: auto; padding: 60px 0; }
  .rail-track { flex-direction: column; transform: none; padding: 0 16px; align-items: stretch; }
  .tile { width: 100%; min-height: 0; }
  .versus { grid-template-columns: 1fr; justify-items: center; }
  .versus > * { width: 100%; }
  .vs { width: 64px; }
  .numbers { grid-template-columns: 1fr; }
  .hero-pads { display: none; }
  .section { padding: 64px 0; }
}

@media (max-width: 600px) {
  .list-item { grid-template-columns: 1fr; }
  header.top .wrap { gap: 10px; }
  .who span { display: none; }
  .panic { width: 88px; height: 88px; font-size: 15px; }
}

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

/* ---- Submit: clip picker ---------------------------------------------------------------- */
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg); border-radius: 999px; flex-wrap: wrap; }
.seg button { font: 600 14px/1 var(--f-display); background: transparent; color: var(--muted); border: 0; padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.seg button.active { background: var(--plum); color: #fff; }
.clip-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); }
.clip-card { background: var(--bg); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.clip-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--lilac); max-width: 100%; }
.clip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip-len { position: absolute; right: 8px; bottom: 8px; background: rgba(45, 35, 64, .85); color: #fff; font: 800 12px var(--f-body); padding: 2px 8px; border-radius: 99px; }
.clip-body { padding: 10px 12px 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; flex: 1; min-width: 0; }
.clip-title { font: 600 16px/1.2 var(--f-display); word-break: break-word; }
.clip-body .btn { margin-top: auto; }
.clip-body > .small, .clip-body > .pill { margin-bottom: 10px; }
