/* BreakTheCallOuts site. Brand colours from constants/theme.ts (Prussian Blue, Vibrant Coral, Dust Grey);
   the dark page sits on a deeper Prussian (#07111f) instead of the app's pure black, so the logo's navy reads as one family. */
:root {
  --bg: #07111f;
  --surface: #0b1a30;
  --raised: #102542;
  --fg: #eef2f2;
  --muted: #a9b6b5;
  --line: rgba(205, 215, 214, 0.16);
  --line-strong: rgba(205, 215, 214, 0.34);
  --coral: #f87060;
  --coral-pressed: #e4604f;
  --coral-text: #f87060;
  --oncoral: #000000;
  --dust: #cdd7d6;
  --prussian: #102542;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  /* Motion tokens: every transition on the page uses these. */
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t-press: 150ms;
  --t-reveal: 420ms;
  --t-show: 900ms; /* explanatory motion inside the screen mock-ups: plays once, on arrival */
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 24px;
  /* Film grain for the hero and the closing poster: a material, not a flat digital field. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: dark;
}
/* Light: pale grey with Prussian Blue type. Coral text darkens so it stays readable on the light field. */
:root[data-theme="light"] {
  --bg: #e9efef; --surface: #f7f9f9; --raised: #dce5e5; --fg: #102542; --muted: #4b5b6b;
  --line: rgba(16, 37, 66, 0.12); --line-strong: rgba(16, 37, 66, 0.28); --coral-text: #b23a2b;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #e9efef; --surface: #f7f9f9; --raised: #dce5e5; --fg: #102542; --muted: #4b5b6b;
    --line: rgba(16, 37, 66, 0.12); --line-strong: rgba(16, 37, 66, 0.28); --coral-text: #b23a2b;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1rem/1.6 var(--font); overflow-x: hidden; }
a { color: var(--coral-text); }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; overflow-wrap: anywhere; text-wrap: pretty; }
h1, h2 { text-wrap: balance; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--coral); color: var(--oncoral); padding: 8px 14px; border-radius: 999px; font-weight: 600; z-index: 110; }
.skip:focus { left: 16px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; margin: 0; }
.logo img { display: block; }
.logo-mark { width: 40px; height: 40px; }
.logo-text { width: auto; height: 33px; }
.logo .on-light { display: none; }
:root[data-theme="light"] .logo .on-dark { display: none; }
:root[data-theme="light"] .logo .on-light { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .logo .on-dark { display: none; }
  :root:not([data-theme="dark"]) .logo .on-light { display: block; }
}

/* ---------- Header ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); border-bottom: 1px solid transparent; transition: background-color 200ms ease, border-color 200ms ease; }
.top.scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); border-bottom-color: var(--line); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); }
.top nav { display: flex; gap: 28px; }
.top nav a { color: var(--muted); font-weight: 500; font-size: 0.92rem; text-decoration: none; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.theme { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; display: grid; place-items: center; cursor: pointer; position: relative; }
.theme svg { position: absolute; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme .moon { display: none; }
:root[data-theme="light"] .theme .sun { display: none; }
:root[data-theme="light"] .theme .moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme .sun { display: none; }
  :root:not([data-theme="dark"]) .theme .moon { display: block; }
}
.pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--coral); color: var(--oncoral); font-weight: 600; font-size: 0.9rem; text-decoration: none; }

/* ---------- Buttons: the press answers on touch-down; hover only where a real pointer hovers ---------- */
.btn, .pill, .theme { transition: transform var(--t-press) var(--ease-out), background-color var(--t-press) ease, border-color var(--t-press) ease; }
.btn:active, .pill:active, .theme:active { transform: scale(0.96); }
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 22px 8px 18px; border-radius: 16px; text-decoration: none; font-weight: 600; border: 1px solid transparent; }
.btn svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn[data-store="ios"] svg { fill: currentColor; stroke: none; }
.btn span { display: grid; line-height: 1.2; text-align: left; }
.btn small { font-size: 0.75rem; font-weight: 500; opacity: 0.75; }
.btn-primary { background: var(--coral); color: var(--oncoral); }
.btn-soft { background: var(--surface); color: var(--fg); border-color: var(--line-strong); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover, .pill:hover { background: var(--coral-pressed); }
  .btn-soft:hover, .theme:hover { border-color: var(--fg); }
  .top nav a:hover { color: var(--fg); }
}

/* ---------- Layout ---------- */
main > section { padding: clamp(72px, 9vw, 120px) var(--gutter); }
main > section > * { max-width: 1120px; margin-inline: auto; }
.sec-head { margin-bottom: clamp(36px, 5vw, 56px); display: grid; gap: 14px; }
.sec-head p { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.1rem); max-width: 52ch; }
/* The logo's chevron marks each section heading. */
.sec-head h2 { display: flex; align-items: center; gap: 0.3em; }
.sec-head h2::before { content: ''; flex: none; width: 0.42em; height: 0.72em; background: var(--coral); clip-path: polygon(0 0, 42% 0, 100% 50%, 42% 100%, 0 100%, 58% 50%); }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 5.6vw, 4rem); line-height: 1; letter-spacing: 0.005em; text-transform: uppercase; }
h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.3; }

/* ---------- Hero: a stage spot behind the phone, film grain, and the logo's cracked diagonal ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: 0 !important; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--grain); opacity: 0.06; pointer-events: none; }
/* The split from the logo: a lighter panel breaks in along a jagged line, like the mark's lightning crack. */
.hero::after { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--surface); opacity: 0.7;
  clip-path: polygon(70% 0, 100% 0, 100% 100%, 46% 100%, 55% 64%, 50% 60%, 60% 30%);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.hero-in { max-width: 1216px !important; min-height: min(100svh, 900px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(32px, 6vw, 72px); padding: 120px 0 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.85rem; font-weight: 500; color: var(--muted); background: color-mix(in srgb, var(--bg) 60%, transparent); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 22%, transparent); }
h1 { margin: 24px 0 22px; font-family: var(--display); font-weight: 400; font-size: clamp(3.6rem, 9vw, 7rem); line-height: 0.92; letter-spacing: 0.005em; text-transform: uppercase; }
h1 span { color: var(--coral-text); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 44ch; }
.promise { font-weight: 600; color: var(--coral-text); letter-spacing: 0.01em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.notes { min-height: 1px; }
.note { margin-top: 14px; font-size: 0.9rem; color: var(--fg); max-width: 50ch; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.note:focus { outline: none; border-color: var(--line-strong); }

.stage { position: relative; display: grid; place-items: center; min-height: 600px; overflow-x: clip; } /* clip only sideways (chevrons on phones); hidden would cut the phone shadow */
/* Two chevrons facing each other, from the logo. */
.chev { position: absolute; top: 50%; width: clamp(96px, 13vw, 170px); aspect-ratio: 150 / 280; translate: 0 -50%; clip-path: polygon(0 0, 42% 0, 100% 50%, 42% 100%, 0 100%, 58% 50%); }
.chev-l { right: calc(50% + min(150px, 37vw) + 12px); background: var(--coral); }
.chev-r { left: calc(50% + min(150px, 37vw) + 12px); background: var(--dust); transform: scaleX(-1); }
:root[data-theme="light"] .chev-r { background: var(--prussian); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .chev-r { background: var(--prussian); } }

.phone { position: relative; width: min(300px, 74vw); aspect-ratio: 9 / 19; border-radius: 44px; padding: 10px; background: #050505; border: 1px solid #2b3a50; box-shadow: 0 40px 90px -24px rgba(0, 0, 0, 0.75), 0 0 0 6px rgba(255, 255, 255, 0.03); }
.screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #000; display: grid; grid-template-rows: 1fr auto; }
.split { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.half { display: grid; place-items: center; overflow: hidden; }
.half img { width: 120%; max-width: none; height: auto; translate: 0 6%; }
.half-a { background: var(--prussian); }
.half-b { background: var(--dust); }
.half-b img { transform: scaleX(-1); }
.tagname { position: absolute; top: 44px; display: grid; padding: 6px 10px; border-radius: 12px; background: rgba(8, 18, 33, 0.72); color: #fff; font-size: 0.72rem; font-weight: 700; line-height: 1.25; }
.tagname small { font-weight: 500; opacity: 0.75; }
.ta { left: 10px; } .tb { right: 10px; }
.vs { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #000; border: 2px solid var(--coral); color: var(--coral); font-family: var(--display); font-size: 1.15rem; }
.panel { margin: 0 10px 12px; padding: 12px; border-radius: 20px; background: #0b1a30; border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; }
.meta { display: flex; justify-content: space-between; font-size: 0.75rem; font-weight: 600; }
.meta span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.clock { font-variant-numeric: tabular-nums; }
.votes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.vote { display: grid; place-items: center; height: 38px; border-radius: 999px; background: var(--coral); color: #000; font-size: 0.75rem; font-weight: 700; }

/* ---------- How it works: one track that fills as you scroll, each step showing its own screen ---------- */
.flow { position: relative; }
.track { position: absolute; left: 28px; right: calc((100% - 72px) / 4 - 28px); top: 27px; height: 2px; background: var(--line-strong); }
.track i { display: block; height: 100%; background: var(--coral); transform-origin: left; transform: scaleX(0); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { position: relative; display: grid; align-content: start; gap: 10px; }
.num { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--coral); color: var(--coral-text); font-family: var(--display); font-size: 1.5rem; margin-bottom: 12px; }
.steps p { color: var(--muted); font-size: 0.95rem; }
.due { justify-self: start; margin-top: 4px; padding: 4px 10px; border-radius: 999px; background: var(--raised); color: var(--fg); font-size: 0.78rem; font-weight: 600; }

/* Screen mock-ups: shared frame. They follow the theme, like the app does. */
.vig { position: relative; height: 176px; margin-bottom: 8px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; font-size: 0.78rem; }
.vig svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }

/* 1 · recording: the ring stands at 0:42 of 1:00 */
.ring { width: 116px; height: 116px; transform: rotate(-90deg); }
.ring circle { stroke: var(--line-strong); stroke-width: 7; }
.ring .ring-fill { stroke: var(--coral); stroke-dasharray: 100; stroke-dashoffset: 30; transition: stroke-dashoffset var(--t-show) var(--ease-in-out) 150ms; }
.ring-time { position: absolute; display: grid; justify-items: center; line-height: 1.1; }
.ring-time b { font-family: var(--display); font-weight: 400; font-size: 1.9rem; font-variant-numeric: tabular-nums; }
.ring-time small { color: var(--muted); }
.rec { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: var(--raised); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.06em; }
.rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }

/* 2 · accepting */
.vig-accept { place-items: stretch; align-content: center; gap: 10px; padding: 16px; }
.from { display: flex; align-items: center; gap: 10px; }
.from img { border-radius: 8px; flex: none; }
.from b { font-weight: 700; }
.left { font-family: var(--display); font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair > span { display: grid; place-items: center; height: 34px; border-radius: 999px; font-weight: 700; }
.yes { background: var(--coral); color: var(--oncoral); }
.no { border: 1px solid var(--line-strong); }

/* 3 · uploading: both rounds side by side, the answer filling in */
.vig-up { align-content: center; gap: 10px; padding: 16px; }
.clips { display: flex; gap: 8px; }
.clip { width: 62px; height: 82px; border-radius: 10px; overflow: hidden; display: grid; place-items: end center; }
.clip img { width: 130%; max-width: none; height: auto; }
.clip-a { background: var(--prussian); }
.clip-b { background: var(--dust); }
.clip-b img { transform: scaleX(-1); }
.bar { width: 150px; height: 6px; border-radius: 999px; background: var(--line-strong); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--coral); transform-origin: left; transform: scaleX(0.72); transition: transform var(--t-show) var(--ease-in-out) 150ms; }
.bar-label { color: var(--muted); }

/* 4 · voting: one vote cast, the score locked */
.vig-vote { align-content: center; gap: 14px; padding: 16px; }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.opt { display: flex; align-items: center; justify-content: center; gap: 4px; height: 38px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 700; }
.opt.on { background: var(--coral); border-color: var(--coral); color: var(--oncoral); }
.opt svg { width: 16px; height: 16px; stroke-width: 2.6; stroke-dasharray: 24; stroke-dashoffset: 0; transition: stroke-dashoffset 360ms var(--ease-out) 500ms; }
.hidden-score { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.hidden-score svg { width: 16px; height: 16px; stroke-width: 1.8; }

/* Start states: only when the reveal is running, so without JS or with reduced motion the end state shows at once. */
.reveal-ready .steps li:not(.in) .ring-fill { stroke-dashoffset: 100; }
.reveal-ready .steps li:not(.in) .bar i { transform: scaleX(0.08); }
.reveal-ready .steps li:not(.in) .opt svg { stroke-dashoffset: 24; }

/* ---------- App: bento of real screens ---------- */
.bento { display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-template-areas: "feed board chat" "feed notes notes"; gap: 16px; }
.tile { display: grid; grid-template-rows: auto auto 1fr; gap: 10px; align-content: start; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.tile p { color: var(--muted); font-size: 0.95rem; }
.tile:nth-child(2) { grid-area: board; } .tile:nth-child(3) { grid-area: chat; }
.tile-feed { grid-area: feed; grid-template-rows: 1fr auto auto; }
.tile-wide { grid-area: notes; }
.shot { position: relative; margin-bottom: 10px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; font-size: 0.82rem; }

.shot-feed { min-height: 340px; display: grid; grid-template-columns: 1fr 1fr; border: 0; }
.fh { display: grid; place-items: center; overflow: hidden; }
.fh img { width: 130%; max-width: none; height: auto; translate: 0 10%; }
.fh-a { background: var(--prussian); }
.fh-b { background: var(--dust); }
.fh-b img { transform: scaleX(-1); }
.slow { position: absolute; top: 12px; right: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(8, 18, 33, 0.75); color: #fff; font-weight: 700; font-size: 0.72rem; }

.shot-board { display: grid; gap: 4px; padding: 14px; }
.chips { display: flex; gap: 6px; margin-bottom: 6px; }
.chips span { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.72rem; font-weight: 600; color: var(--muted); }
.chips .on { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.row { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 10px; }
.row:first-of-type { background: var(--raised); }
.row b { font-family: var(--display); font-weight: 400; font-size: 1rem; color: var(--muted); }
.row:first-of-type b { color: var(--coral-text); }
.row span { font-weight: 600; }
.row em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--muted); }

.shot-chat { display: grid; gap: 8px; padding: 16px 14px; align-content: center; min-height: 150px; }
.bub { max-width: 80%; padding: 8px 12px; border-radius: 16px; line-height: 1.35; }
.them { justify-self: start; background: var(--raised); border-bottom-left-radius: 4px; }
.me { justify-self: end; background: var(--coral); color: var(--oncoral); font-weight: 500; border-bottom-right-radius: 4px; }

.shot-notes { display: grid; gap: 8px; padding: 14px; }
.ntf { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.ntf i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.ntf span { display: grid; line-height: 1.35; color: var(--muted); }
.ntf b { color: var(--fg); font-weight: 600; }
.ntf small { color: var(--muted); font-size: 0.72rem; }

/* ---------- Fair play ---------- */
.fair-list { list-style: none; padding: 0; margin-block: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.fair-list li { padding-top: 24px; border-top: 2px solid var(--line-strong); color: var(--muted); font-size: 0.95rem; }
.fair-list svg { width: 26px; height: 26px; margin-bottom: 14px; fill: none; stroke: var(--coral-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fair-list b { display: block; color: var(--fg); font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }

/* ---------- FAQ ---------- */
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 12px 0; font-weight: 600; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; flex: none; width: 9px; height: 9px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); transition: transform 200ms var(--ease-in-out); }
details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
details p { padding: 0 0 20px; color: var(--muted); max-width: 68ch; }

/* ---------- Closing poster: the logo's dancer, big enough to leave the frame ---------- */
.cta { padding-top: 0 !important; }
.cta-in { position: relative; isolation: isolate; overflow: hidden; min-height: 460px; display: grid; align-items: center; padding: clamp(36px, 6vw, 80px); border-radius: 32px; background: #102542; color: #fff; }
.cta-in::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--grain); opacity: 0.08; pointer-events: none; }
.cta-dancer { position: absolute; z-index: -1; right: -2%; bottom: -16%; height: 128%; width: auto; max-width: none; rotate: -8deg; }
.cta-copy { display: grid; justify-items: start; gap: 28px; max-width: 560px; }
.cta h2 { font-size: clamp(3rem, 8.4vw, 6.4rem); line-height: 0.92; }
.cta h2 span { color: var(--coral); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 48px var(--gutter) 56px; display: grid; gap: 8px; justify-items: center; text-align: center; color: var(--muted); font-size: 0.92rem; }
.foot .logo { margin-bottom: 8px; }
.fine { font-size: 0.8rem; }

/* ---------- Reveal: content below the fold rises once as it arrives; the hero is already there and never animates ---------- */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal-ready [data-reveal].in { opacity: 1; transform: none; }

/* The steps' track fills with scroll where the browser can tie an animation to it (progressive enhancement). */
@keyframes fill-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fill-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .track i { animation: fill-x linear both; animation-timeline: view(); animation-range: entry 100% cover 55%; }
  }
}

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 80px; }
.legal h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1; margin: 32px 0 12px; }
.legal h2 { font-family: var(--font); text-transform: none; font-size: 1.2rem; font-weight: 700; line-height: 1.3; margin: 32px 0 8px; }
.legal p, .legal li { color: color-mix(in srgb, var(--fg) 82%, var(--bg)); }
.legal .draft { display: inline-block; margin: 8px 0 24px; padding: 6px 12px; border-radius: 999px; background: var(--raised); color: var(--coral-text); font-weight: 500; font-size: 0.85rem; }

/* 404 */
.lost { min-height: 100dvh; display: grid; align-content: center; justify-items: start; }
.lost .lost-code { font-family: var(--display); font-size: clamp(6rem, 24vw, 12rem); line-height: 0.9; color: var(--coral); margin: 24px 0 0; }
.lost .btn { margin-top: 16px; padding-inline: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "feed board" "feed chat" "notes notes"; }
  .fair-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-bottom: 32px; }
  .hero::after { clip-path: polygon(0 52%, 100% 40%, 100% 100%, 0 100%, 0 70%, 12% 64%, 6% 60%); }
  .stage { min-height: 560px; }
  /* Steps stack; the track runs down the left edge and fills downward. */
  .track { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .track i { width: 100%; transform-origin: top; transform: scaleY(0); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .steps li { grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; }
  .steps li > :not(.num) { grid-column: 2; }
  .steps .num { grid-row: 1 / span 4; margin: 0; }
  .vig { max-width: 420px; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (max-width: 960px) {
    .track i { animation-name: fill-y; animation-range: cover 15% cover 70%; }
  }
}
@media (max-width: 760px) { .top nav { display: none; } }
@media (max-width: 600px) {
  .top { padding-block: 10px; }
  .top .logo-mark { width: 34px; height: 34px; }
  .top .logo-text { height: 28px; }
  .pill { padding: 0 14px; font-size: 0.85rem; }
  .stores .btn { flex: 1 1 100%; }
  .stage { min-height: 480px; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "feed" "board" "chat" "notes"; }
  .shot-feed { min-height: 280px; }
  .tile { padding: 20px; }
  .fair-list { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cta-in { min-height: 520px; align-items: start; border-radius: 24px; }
  .cta-dancer { height: 72%; right: -14%; bottom: -10%; }
}

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; transition-delay: 0ms !important; animation: none !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
  .track i { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .top.scrolled { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: var(--line-strong); }
  .note, .steps p, .tile p, .fair-list li, details p, .sec-head p { color: var(--fg); }
}
