/* CineTrack — website. Plain CSS, no build step.
   The look follows the app: one gold accent, plain cards, rounded type,
   and the split-flap board from the splash screen and ceremony night. */

:root {
  color-scheme: dark;
  --bg: #0e0e10;
  --surface: #17171a;
  --surface-2: #1f1f23;
  --ink: #f2f2f5;
  --ink-mid: #a9a9b3;
  --ink-low: #7c7c86;
  --rule: rgb(255 255 255 / 0.1);
  --gold: #f5b942;
  --on-gold: #3d2900;
  --link: #f5b942;
  --correct: #30d158;
  --missed: #ff453a;
  --tile: #3b3b40;
  --tile-seam: #0e0e10;
  --flap-ink: #ebebf0;
  --board: #0e0e10;
  --bezel-fill: #2a2a2e;
  --screen-bg: #000;
  --shadow: 0 30px 60px -20px rgb(0 0 0 / 0.7), 0 10px 24px -12px rgb(0 0 0 / 0.6);
  --glow-1: rgb(245 185 66 / 0.16);
  --glow-2: rgb(245 185 66 / 0.07);
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f3ee;
  --surface: #ffffff;
  --surface-2: #ece9e2;
  --ink: #17171a;
  --ink-mid: #55555e;
  --ink-low: #7b7b85;
  --rule: rgb(0 0 0 / 0.1);
  --gold: #a66a00;
  --on-gold: #ffffff;
  --link: #8a5800;
  --correct: #1f8f3d;
  --missed: #c9302a;
  --tile: #1c1c1f;
  --board: #0e0e10;
  --bezel-fill: #1c1c1f;
  --screen-bg: #f2f2f7;
  --shadow: 0 30px 60px -24px rgb(60 40 0 / 0.35), 0 10px 24px -12px rgb(0 0 0 / 0.2);
  --glow-1: rgb(245 185 66 / 0.3);
  --glow-2: rgb(245 185 66 / 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--round);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
@media (min-width: 700px) { .wrap { width: min(1120px, 100% - 64px); } }

.glow { position: absolute; inset: 0 0 auto 0; height: 900px; pointer-events: none; z-index: -1; overflow: hidden; }
.glow::before, .glow::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); }
.glow::before { width: 720px; height: 520px; left: 50%; top: -220px; translate: -50% 0; background: var(--glow-1); }
.glow::after { width: 460px; height: 380px; right: -140px; top: 320px; background: var(--glow-2); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.top nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 26px); }
.top nav > a:not(.button) { color: var(--ink-mid); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav > a:not(.button):hover { color: var(--ink); }
@media (max-width: 760px) { .hide-narrow { display: none; } }

.theme-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.theme-switch button { all: unset; cursor: pointer; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--ink-low); }
.theme-switch button[aria-pressed="true"] { background: var(--surface); color: var(--gold); box-shadow: 0 1px 3px rgb(0 0 0 / 0.25); }
.theme-switch button:focus-visible { outline: 3px solid var(--gold); }
.theme-switch svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--gold); color: var(--on-gold); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform 0.15s ease, filter 0.15s ease; }
.button:hover { filter: brightness(1.07); transform: translateY(-1px); }
.button:active { transform: translateY(0) scale(0.98); }
.button { white-space: nowrap; }
.button.small { min-height: 38px; padding: 0 16px; font-size: 15px; }
.button.quiet { background: var(--surface-2); color: var(--ink); }
.button[aria-disabled="true"] { cursor: default; }
.button[aria-disabled="true"]:hover { filter: none; transform: none; }

/* Hero */
.hero { text-align: center; padding: clamp(28px, 6vw, 72px) 0 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.lede { font-size: clamp(18px, 2.2vw, 22px); color: var(--ink-mid); max-width: 40em; margin-inline: auto; }
.hero .lede { margin-top: 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.fine { font-size: 14px; color: var(--ink-low); margin-top: 18px; }
.badge { display: inline-block; padding: 2px 9px; margin-right: 6px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: 1px; }

/* Split-flap board */
.board { --cols: 10; --gap: clamp(3px, 0.7vw, 7px); display: inline-grid; grid-template-columns: repeat(var(--cols), 1fr); gap: var(--gap); padding: clamp(10px, 1.8vw, 20px); border-radius: clamp(14px, 2vw, 24px); background: var(--board); box-shadow: var(--shadow), inset 0 0 0 1px rgb(255 255 255 / 0.07); width: min(720px, 100%); margin-top: 22px; }
.flap { position: relative; aspect-ratio: 0.7; display: grid; place-items: center; border-radius: 14%/10%; background: var(--tile); color: var(--flap-ink); font-family: var(--round); font-weight: 800; font-size: clamp(20px, 6.2vw, 54px); line-height: 1; overflow: hidden; user-select: none; }
:root[data-theme="light"] .flap { background: #2c2c31; }
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: max(1.5px, 3%); translate: 0 -50%; background: var(--tile-seam); }
.flap::before { content: ""; position: absolute; inset: 0 0 50% 0; background: linear-gradient(rgb(255 255 255 / 0.07), rgb(255 255 255 / 0)); }
.flap.gold { color: #f5b942; }
.flap.blank { opacity: 0.55; }
.flap.tick span { animation: flip 0.09s ease-in; display: block; }
@keyframes flip { from { transform: scaleY(0.2); opacity: 0.4; } to { transform: scaleY(1); opacity: 1; } }

/* Countdown */
.countdown { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; margin-top: clamp(30px, 5vw, 48px); padding: 20px clamp(18px, 3vw, 32px) 18px; border-radius: 24px; background: var(--board); box-shadow: var(--shadow), inset 0 0 0 1px rgb(255 255 255 / 0.07); }
.countdown .label { color: #a9a9b3; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
.countdown .units { display: flex; gap: clamp(10px, 2.4vw, 22px); }
.countdown .unit { display: grid; gap: 6px; justify-items: center; }
.countdown .pair { display: flex; gap: 4px; }
.countdown .flap { width: clamp(30px, 7vw, 46px); aspect-ratio: 0.72; font-size: clamp(22px, 5.2vw, 34px); color: #f5b942; background: #3b3b40; }
.countdown small { color: #7c7c86; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

/* Device frames. The screenshot is shown whole inside a plain bezel. */
.frame { background: var(--bezel-fill); padding: var(--bezel, 8px); border-radius: var(--radius, 26px); box-shadow: var(--shadow), 0 0 0 1px rgb(120 120 130 / 0.3); }
.frame img { width: 100%; height: auto; border-radius: calc(var(--radius, 26px) - var(--bezel, 8px)); background: var(--screen-bg); }
.frame.phone { --radius: clamp(22px, 3.6vw, 46px); --bezel: clamp(5px, 0.8vw, 9px); }
.frame.duo-open { --radius: clamp(14px, 2.4vw, 30px); --bezel: clamp(5px, 0.8vw, 9px); position: relative; }
.frame.duo-open::after { content: ""; position: absolute; top: var(--bezel); bottom: var(--bezel); left: 50%; width: 1px; background: linear-gradient(rgb(0 0 0 / 0), rgb(0 0 0 / 0.22) 20%, rgb(0 0 0 / 0.22) 80%, rgb(0 0 0 / 0)); }
.frame.duo-open.tall::after { top: 50%; bottom: auto; left: var(--bezel); right: var(--bezel); width: auto; height: 1px; background: linear-gradient(90deg, rgb(0 0 0 / 0), rgb(0 0 0 / 0.22) 20%, rgb(0 0 0 / 0.22) 80%, rgb(0 0 0 / 0)); }
.frame.duo-fold { --radius: clamp(18px, 3vw, 38px); --bezel: clamp(5px, 0.8vw, 9px); position: relative; padding-left: calc(var(--bezel) * 2.1); border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.frame.duo-fold img { border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.frame.duo-fold::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--bezel) * 1.5); border-radius: 8px 0 0 8px; background: linear-gradient(90deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.03) 55%, rgb(0 0 0 / 0.35)); }

/* Hero stage */
.stage { position: relative; margin: clamp(44px, 7vw, 84px) auto 0; max-width: 980px; perspective: 1400px; padding-bottom: 6%; }
.stage .duo-open { width: 80%; margin-right: auto; }
.stage .phone { position: absolute; right: 0; bottom: 0; width: 25%; }
.layer { transition: transform 0.25s ease-out; will-change: transform; }
@media (max-width: 560px) { .stage .duo-open { width: 86%; } .stage .phone { width: 30%; } }

/* Marquee */
.marquee { margin-top: clamp(56px, 8vw, 96px); overflow: hidden; border-block: 1px solid var(--rule); padding: 16px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; gap: 12px; width: max-content; animation: slide 60s linear infinite; }
.marquee span { flex: none; padding: 7px 15px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule); font-size: 16px; font-weight: 600; color: var(--ink-mid); white-space: nowrap; }
.marquee span.hot { background: var(--gold); color: var(--on-gold); box-shadow: none; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
section { padding-top: clamp(72px, 10vw, 128px); }
.section-head { text-align: center; max-width: 760px; margin-inline: auto; }
.section-head h2 { margin-top: 12px; }
.section-head .lede { margin-top: 16px; font-size: clamp(17px, 2vw, 20px); }

/* The season in three acts */
.acts { display: grid; gap: 20px; margin-top: clamp(32px, 5vw, 56px); }
.act { display: grid; gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(22px, 4vw, 48px); border-radius: 32px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); overflow: hidden; }
.act .num { display: inline-grid; place-items: center; width: 38px; aspect-ratio: 0.74; border-radius: 6px; background: var(--tile); color: #f5b942; font-weight: 800; font-size: 22px; position: relative; }
:root[data-theme="light"] .act .num { background: #2c2c31; }
.act .num::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--tile-seam); }
.act .when { display: flex; align-items: center; gap: 12px; color: var(--ink-low); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.act h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-top: 16px; letter-spacing: -0.02em; }
.act p { color: var(--ink-mid); margin-top: 12px; }
.act ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; }
.act li { padding-left: 26px; position: relative; }
.act li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 7px; border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); rotate: -45deg; }
.act .shots { display: flex; gap: clamp(10px, 2vw, 20px); justify-content: center; align-items: flex-start; }
.act .shots .frame { flex: 1 1 0; max-width: 250px; }
.act .shots .frame:nth-child(2) { margin-top: 9%; }
@media (min-width: 860px) {
  .act { grid-template-columns: 1fr 1fr; }
  .act.flip .copy { order: 2; }
}

/* Duo */
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); margin-top: 28px; max-width: 100%; }
.tabs button { all: unset; cursor: pointer; padding: 9px clamp(14px, 3vw, 22px); border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--ink-mid); white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--gold); color: var(--on-gold); }
.tabs button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.pose { margin-top: clamp(28px, 4vw, 44px); display: grid; gap: clamp(22px, 4vw, 44px); align-items: center; text-align: left; }
.pose[hidden] { display: none; }
.pose .says p { color: var(--ink-mid); margin-top: 12px; }
.pose .says h3 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; }
.pose .view { display: flex; gap: 16px; justify-content: center; align-items: center; }
.pose .view .duo-fold { width: min(300px, 70%); }
.pose .view .duo-open.tall { width: min(460px, 100%); }
@media (min-width: 900px) { .pose { grid-template-columns: 1.7fr 1fr; } .pose.narrow { grid-template-columns: 1fr 1fr; } }
figure { margin: 0; }
figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-low); text-align: center; }

/* Gallery of three phones */
.shots.three { display: flex; gap: clamp(10px, 2.4vw, 28px); justify-content: center; align-items: flex-start; margin-top: clamp(32px, 5vw, 56px); }
.shots.three figure { flex: 1 1 0; max-width: 260px; }
.shots.three figure:nth-child(2) { margin-top: 4%; }
@media (max-width: 560px) { .shots.three figcaption { font-size: 12px; } }
.pose .view .duo-open.tall { width: min(420px, 100%); }

/* Feature grid */
.grid { display: grid; gap: 16px; margin-top: clamp(32px, 5vw, 56px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.tile { padding: 26px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.tile .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.tile .icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { margin-top: 18px; }
.tile p { color: var(--ink-mid); margin-top: 8px; font-size: 16px; }

/* Rate-it toy */
.rate { text-align: center; }
.rate-card { margin: 32px auto 0; max-width: 520px; padding: 30px 24px 26px; border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule), var(--shadow); position: relative; overflow: hidden; }
.rate-card .q { font-weight: 700; font-size: 19px; }
.stars { display: inline-flex; gap: 4px; margin-top: 18px; touch-action: none; cursor: pointer; border-radius: 12px; padding: 4px; }
.stars svg { width: clamp(40px, 11vw, 54px); height: auto; overflow: visible; }
.stars .empty { fill: none; stroke: var(--ink-low); stroke-width: 1.4; stroke-linejoin: round; }
.stars .full { fill: var(--gold); }
.rate-card .verdict { min-height: 1.6em; margin-top: 14px; color: var(--ink-mid); font-weight: 600; }
.rate-card .score { display: inline-flex; gap: 4px; margin-top: 14px; }
.rate-card .score .flap { width: 44px; aspect-ratio: 0.74; font-size: 30px; color: #f5b942; background: #3b3b40; }
.rate-card .score .dot { align-self: flex-end; color: var(--gold); font-weight: 800; font-size: 30px; line-height: 1; padding-bottom: 6px; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: 46%; left: 50%; width: 8px; height: 13px; border-radius: 2px; animation: burst 1.1s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
@keyframes burst { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

/* Share cards */
.cards { display: flex; gap: clamp(12px, 2.4vw, 24px); justify-content: center; align-items: center; margin-top: clamp(32px, 5vw, 56px); }
.cards img { border-radius: clamp(12px, 2vw, 22px); box-shadow: var(--shadow); width: 100%; height: auto; }
.cards figure { flex: 1 1 0; max-width: 300px; }
.cards figure:nth-child(1) { rotate: -4deg; translate: 0 10px; }
.cards figure:nth-child(3) { rotate: 4deg; translate: 0 10px; }
@media (max-width: 560px) { .cards figure:nth-child(3) { display: none; } }

/* Panels */
.panel { margin-top: clamp(72px, 10vw, 128px); padding: clamp(28px, 5vw, 56px); border-radius: 32px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.panel h2 { margin-top: 12px; font-size: clamp(28px, 4vw, 42px); }
.cols { display: grid; gap: 28px; margin-top: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.cols p { color: var(--ink-mid); margin-top: 8px; font-size: 16px; }
.story { display: grid; gap: 18px; max-width: 46em; }
.story p { color: var(--ink-mid); font-size: 18px; }
.story p:first-of-type { margin-top: 20px; }
.story .sign { color: var(--ink); font-weight: 700; }

.get { text-align: center; }
.get img.icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 22px; box-shadow: var(--shadow); }
.get .lede { margin-top: 14px; }

/* FAQ */
.faq { max-width: 800px; margin-inline: auto; }
.faq h2 { margin-top: 12px; }
details { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 700; font-size: 18px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-size: 26px; font-weight: 500; color: var(--gold); transition: rotate 0.2s ease; }
details[open] summary::after { rotate: 45deg; }
details p { color: var(--ink-mid); padding: 0 0 22px; max-width: 44em; }

/* TestFlight invite form */
dialog#invite { width: min(540px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 28px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow), 0 0 0 1px var(--rule); overflow: auto; }
dialog#invite::backdrop { background: rgb(0 0 0 / 0.6); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
#invite form, #invite-done { padding: clamp(20px, 4vw, 30px); display: grid; gap: 14px; }
#invite h2 { font-size: 26px; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog-head .close { border: 0; background: var(--surface-2); color: var(--ink-mid); width: 36px; height: 36px; flex: none; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; }
.dialog-lede { color: var(--ink-mid); font-size: 16px; }
#invite label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
#invite label small { font-weight: 400; color: var(--ink-low); }
#invite input:not([type="checkbox"]), #invite textarea { font: 16px/1.3 var(--round); color: var(--ink); padding: 12px 14px; border-radius: 12px; border: 1px solid var(--rule); background: var(--bg); width: 100%; }
#invite input:focus-visible, #invite textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
#invite fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
#invite legend { font-size: 14px; font-weight: 700; margin-bottom: 8px; padding: 0; }
#invite .tick { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; font-size: 15px; }
#invite .tick input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--gold); }
#invite .consent { color: var(--ink-mid); font-size: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.form-error { color: var(--missed); font-size: 14px; font-weight: 700; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
#invite .fine { font-size: 13px; margin-top: 0; }
#invite .how { font-size: 14px; color: var(--ink-mid); padding: 10px 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--rule); }
.send-ways { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
#invite #invite-copy { font: 13px/1.45 var(--mono); resize: vertical; }
#invite [hidden] { display: none; }

/* Footer */
footer { margin-top: clamp(72px, 10vw, 128px); padding: 32px 0 48px; border-top: 1px solid var(--rule); color: var(--ink-low); font-size: 14px; }
footer .row { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer a { color: var(--ink-mid); }
footer .legal { margin-top: 20px; display: grid; gap: 8px; max-width: 62em; font-size: 13px; }

/* Text pages */
.doc { max-width: 720px; margin-inline: auto; padding-top: clamp(28px, 5vw, 56px); }
.doc h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; margin-top: 12px; }
.doc .updated { color: var(--ink-low); font-size: 14px; margin-top: 14px; }
.doc h2 { font-size: 24px; margin-top: 44px; letter-spacing: -0.01em; }
.doc h3 { font-size: 18px; margin-top: 26px; }
.doc p, .doc ul, .doc ol { margin-top: 14px; color: var(--ink-mid); }
.doc ul, .doc ol { padding-left: 22px; display: grid; gap: 8px; }
.doc strong { color: var(--ink); }
.doc .eyebrow { color: var(--gold); margin-top: 0; }
.doc .summary { margin-top: 28px; padding: 22px 24px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.doc .summary h2 { margin-top: 0; font-size: 19px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); color: var(--ink-mid); }
.doc th { color: var(--ink); font-weight: 700; }
.doc .table-scroll { overflow-x: auto; }
.release { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--rule); }
.release:first-of-type { border-top: 0; }
.release h2 { margin-top: 0; }
.release .date { color: var(--ink-low); font-size: 14px; margin-top: 6px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee .track { animation: none; }
  .flap.tick span, .confetti i { animation: none; }
  .layer { transition: none; }
}
