/* Shared styles for the Pick and Paddle mockups.
   Colour tokens match the app's tailwind.config.js (docs/DESIGN_DIRECTION.md).
   Page-only styles live in each page's <style>. */

/* ---------- Fallback fonts sized to Barlow Condensed ----------
   Measured in the browser: Barlow Condensed is ~84% the width of Avenir Next
   Condensed and ~70% of Arial. Matching widths means headlines break on the
   same words before and after the web font arrives, so nothing jumps. */
@font-face {
  font-family: "Display Fallback Apple";
  src: local("AvenirNextCondensed-HeavyItalic"), local("Avenir Next Condensed Heavy Italic");
  font-style: italic; font-weight: 600 900; size-adjust: 84%;
}
@font-face {
  font-family: "Display Fallback";
  src: local("Arial Bold Italic"), local("Arial-BoldItalicMT"), local("Roboto Bold Italic"), local("Roboto-BoldItalic");
  font-style: italic; font-weight: 600 900; size-adjust: 70%;
}

:root {
  color-scheme: dark;

  /* App colours */
  --canvas: #000000;
  --surface: #0C0C0C;
  --surface-raised: #191A1A;
  --hairline: #242424;
  --hairline-strong: #363A37;
  --muted: #A3A3A3;
  --brand: #DAEE2B;
  --brand-pressed: #BCCC25;
  --court: #4FA8FF;
  --official: #FF7417;
  --warning: #FFE02E;
  --danger: #FF6166;

  /* Text, brightest to faintest. Contrast on black: 21 / 13.5 / 8.3 / 4.1 */
  --text: #FFFFFF;
  --text-2: #D4D4D4;
  --text-3: var(--muted);
  --text-4: #6E6E6E;   /* large text and decoration only */

  --display: "Barlow Condensed", "Display Fallback Apple", "Display Fallback", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Type scale */
  --fs-hero: clamp(60px, 13vw, 156px);
  --fs-band: clamp(60px, 11vw, 150px);
  --fs-h2: clamp(44px, 7vw, 88px);
  --fs-h3: clamp(40px, 5.4vw, 72px);
  --fs-lede: clamp(18px, 1.2vw + 12px, 20px);

  /* Layout */
  --content: 1200px;
  --gutter: 16px;
  --header-h: 68px;
  --section-y: clamp(88px, 10vw, 128px);

  /* Shape */
  --r-sm: 10px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;

  /* Motion */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --dur-fast: .15s;
  --dur-med: .3s;
  --dur-slow: .6s;

  /* Layers */
  --z-raised: 2;
  --z-subnav: 40;
  --z-header: 50;
  --z-appbar: 55;
  --z-tools: 60;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px) { body { font-size: 17px; } }
img, svg { display: block; max-width: 100%; }
/* The hidden attribute always wins over a component's display value. */
[hidden] { display: none !important; }
/* Clip decoration that hangs off the sides (glows, fanned phones) without
   making main a scroll container, so sticky navs inside it still work. */
main { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
p, li, dd { text-wrap: pretty; }
::selection { background: var(--brand); color: #000; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.btn-primary:focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: calc(var(--content) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -80px; z-index: calc(var(--z-tools) + 1);
  padding: 12px 16px; border-radius: var(--r-md); background: var(--brand); color: #000;
  font: italic 800 18px/1 var(--display); text-transform: uppercase;
  transition: top var(--dur-fast);
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
  /* Italic caps lean right, so pull the block left a hair to line its
     stems up with the body text, and give the last letter room to lean. */
  margin-inline-start: -.03em;
  padding-inline-end: .06em;
}
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.lime { color: var(--brand); }
.lede { color: var(--text-2); font-size: var(--fs-lede); max-width: 36ch; margin: 18px 0 0; }
.muted { color: var(--text-3); }
.nowrap { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: var(--r-md);
  font: italic 800 20px/1 var(--display);
  text-transform: uppercase; letter-spacing: .02em;
  transition: background var(--dur-fast), transform var(--dur-fast), border-color var(--dur-fast);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #000; }
.btn-secondary { border: 1.5px solid var(--hairline-strong); color: var(--text); background: #000; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 17px; border-radius: var(--r-sm); }
.arrow { display: inline-block; transition: transform var(--dur-fast) var(--ease-out); }
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font: italic 800 19px/1 var(--display); text-transform: uppercase; letter-spacing: .02em;
  color: var(--brand);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--brand-pressed); }
  .btn-secondary:hover { border-color: var(--text); }
  a:hover > .arrow, a:hover .arrow { transform: translateX(3px); }
}

/* ---------- Store badges (not links until the listings exist) ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 18px 0 14px;
  border-radius: var(--r-md); background: #000; border: 1.5px solid #4a4a4a; color: var(--text);
}
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 11px; color: var(--text-2); }
.store b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
a.store { transition: border-color var(--dur-fast); }
@media (hover: hover) { a.store:hover { border-color: var(--text); } }
.soon { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 14px; color: var(--text-3); }
.soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warning); flex: none; }

/* ---------- Stripes (from the live scoring concept) ---------- */
.stripes { display: inline-flex; gap: 8px; }
.stripes i { display: block; width: 14px; height: 36px; background: var(--brand); transform: skewX(-32deg); }
.stripes i:nth-child(2) { opacity: .75; } .stripes i:nth-child(3) { opacity: .5; }

/* ---------- Live dot ---------- */
.live-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); flex: none; }
.live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brand);
  animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- Ghost word behind sections ---------- */
.ghost {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  font: italic 900 clamp(120px, 26vw, 360px)/.8 var(--display);
  text-transform: uppercase; letter-spacing: -.02em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .07);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  border-bottom: 1px solid transparent;
  background: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,0));
  transition: background var(--dur-med), border-color var(--dur-med);
}
.site-header.solid {
  background: rgba(0, 0, 0, .9); border-color: var(--hairline);
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: block; padding: 4px 0; }
.logo img { height: 34px; width: auto; }
.nav-links { display: none; align-items: center; gap: 36px; }
.nav-links a:not(.btn) {
  position: relative; padding: 8px 0;
  font: italic 600 18px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: #e8e8e8;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px;
  background: var(--brand); transition: right var(--dur-med) var(--ease-out);
}
.nav-links a[aria-current="page"] { color: var(--brand); }
.nav-links a[aria-current="page"]::after { right: 0; }
@media (hover: hover) { .nav-links a:not(.btn):hover::after { right: 0; } }
@media (min-width: 860px) { .nav-links { display: flex; } .menu { display: none; } }

.menu summary {
  list-style: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: var(--r-md); border: 1.5px solid var(--hairline-strong);
  display: grid; place-items: center; background: rgba(0,0,0,.4);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary i, .menu summary i::before, .menu summary i::after {
  display: block; width: 18px; height: 2px; background: var(--text); position: relative;
  transition: transform var(--dur-med) var(--ease-out), background var(--dur-fast);
}
.menu summary i::before, .menu summary i::after { content: ""; position: absolute; left: 0; }
.menu summary i::before { top: -6px; } .menu summary i::after { top: 6px; }
.menu[open] summary i { background: transparent; }
.menu[open] summary i::before { transform: translateY(6px) rotate(45deg); }
.menu[open] summary i::after { transform: translateY(-6px) rotate(-45deg); }
.menu-panel {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: #000; border-top: 1px solid var(--hairline);
  padding: 24px var(--gutter) max(40px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto; overscroll-behavior: contain;
}
.menu[open] .menu-panel { animation: menu-in var(--dur-med) var(--ease-out); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
.menu-panel a:not(.btn) {
  font: italic 800 44px/1.15 var(--display); text-transform: uppercase; padding: 6px 0;
  border-bottom: 1px solid var(--hairline);
}
.menu-panel .btn { margin-top: 24px; }
body.menu-open { overflow: hidden; }

/* ---------- Motion ---------- */
.rise { animation: rise .55s var(--ease-out) both; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .26s; } .rise.d4 { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity var(--dur-slow) ease, transform var(--dur-slow) var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
/* site.js adds .paused to sections that are off screen, so looping
   animations (pulsing dots, floating cards) stop costing frames. */
.paused, .paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }

/* ---------- Page transition: the serve (transition.js) ----------
   The arriving page is covered from its first frame by body::after, which
   looks exactly like a full .pp-cover (plain lime, no text), so nothing changes
   at the moment the page switches. Native cross-document view transitions are
   left off on purpose: they can't draw anything while the next page loads. */
.pp-layer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.pp-cover, html.pp-arriving body::after {
  background-color: var(--brand);
  background-image: radial-gradient(circle, rgba(0,0,0,.09) 3px, transparent 3.5px);
  background-size: 28px 28px; background-position: center;
}
html.pp-arriving body::after { content: ""; position: fixed; inset: 0; z-index: 100; }
/* The curtain is a circle scaled with transform (GPU-friendly), sized and
   centred by transition.js. */
.pp-cover { position: fixed; border-radius: 50%; transform: scale(0); will-change: transform; backface-visibility: hidden; }
.pp-word { position: fixed; inset: 0; display: grid; place-items: center; overflow: hidden; }
.pp-word span {
  display: block; padding: 0 var(--gutter); color: #000; text-align: center; opacity: 0; will-change: transform, opacity;
  font: italic 900 clamp(64px, 15vw, 220px)/.9 var(--display); text-transform: uppercase; letter-spacing: -.01em;
}
html.pp-holding .rise { animation-play-state: paused; }
.pp-ball {
  position: fixed; left: 0; top: 0; width: 96px; height: 96px; opacity: 0;
  will-change: transform, opacity; filter: drop-shadow(0 18px 22px rgba(0,0,0,.45));
}
.pp-ball svg { width: 100%; height: 100%; }
.pp-ring { position: fixed; width: 110px; height: 110px; border-radius: 50%; border: 3px solid var(--brand); opacity: 0; }
/* The header link the ball lands in reacts to the hit. */
.nav-links a.pp-hit { animation: pp-hit .7s var(--ease-out); }
.nav-links a.pp-hit::after { animation: pp-line .7s var(--ease-out); }
.logo.pp-hit img { animation: pp-pop .6s var(--ease-out); }
@keyframes pp-hit { 25% { color: #fff; text-shadow: 0 0 16px var(--brand); } }
@keyframes pp-line { 25% { transform: scaleY(2.5); box-shadow: 0 0 12px var(--brand); } }
@keyframes pp-pop { 35% { transform: scale(1.12) rotate(-3deg); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: var(--section-y) 0; }
.section-head { max-width: 900px; position: relative; z-index: 1; }

.tick { width: 22px; height: 22px; border-radius: 50%; background: rgba(218,238,43,.12); display: grid; place-items: center; margin-top: 2px; }
.tick::after { content: ""; width: 9px; height: 5px; border: solid var(--brand); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-2); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--hairline); padding: 56px 0 40px; }
.foot { display: grid; gap: 40px; }
@media (min-width: 600px) { .foot { grid-template-columns: repeat(3, 1fr); } .foot-brand { grid-column: 1 / -1; } }
@media (min-width: 900px) { .foot { grid-template-columns: 1.4fr repeat(3, 1fr); } .foot-brand { grid-column: auto; } }
.foot h2 { margin: 0 0 14px; font: italic 600 14px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.foot ul a { display: inline-block; padding: 6px 0; }
@media (hover: hover) { .foot a:hover { color: var(--brand); } }
.foot-brand img { height: 36px; width: auto; }
.foot-brand p { color: var(--text-3); font-size: 15px; max-width: 32ch; }
.foot-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-3); }
.tagline { font: italic 800 16px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }

/* ---------- Device frame (holds a media slot) ---------- */
.device {
  position: relative; width: var(--device-w, 300px); aspect-ratio: 1179 / 2556;
  padding: 9px; border-radius: calc(var(--device-w, 300px) * .16);
  background: linear-gradient(160deg, #3a3a3a, #121212 40%, #0a0a0a);
  box-shadow: inset 0 0 0 1px #4a4a4a, 0 50px 90px -30px rgba(0,0,0,.9);
  flex: none;
}
.device > .slot { height: 100%; border-radius: calc(var(--device-w, 300px) * .135); }
.device::after { /* Dynamic Island */
  content: ""; position: absolute; top: calc(9px + var(--device-w, 300px) * .035); left: 50%;
  width: 30%; height: calc(var(--device-w, 300px) * .085); transform: translateX(-50%);
  border-radius: 99px; background: #000; z-index: 3;
}
.glow { /* soft lime light behind phones; a gradient, no blur filter */
  position: absolute; width: 520px; max-width: 90vw; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(218,238,43,.16), rgba(218,238,43,.05) 40%, rgba(218,238,43,0) 68%);
}

/* ---------- Media slot ----------
   <div class="slot" data-slot><img src="media/name.webp" alt="">
   <div class="slot-note"><b>name.webp</b><span>what to capture</span><em>spec</em></div></div> */
.slot {
  position: relative; overflow: hidden; display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, rgba(218,238,43,.035) 0 10px, transparent 10px 20px), #0b0b0b;
  outline: 1px dashed rgba(218,238,43,.28); outline-offset: -1px;
}
.slot.filled { outline: 0; background: #000; }
.slot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; z-index: 1; }
.slot.empty > img { display: none; }
.slot-note {
  position: relative; z-index: 2; display: grid; gap: 6px; justify-items: center; text-align: center;
  padding: 16px; max-width: 240px; color: var(--text-3); font: 500 12px/1.4 var(--body);
}
.slot-note::before {
  content: ""; width: 34px; height: 34px; border-radius: var(--r-sm); margin-bottom: 4px;
  border: 1.5px solid rgba(218,238,43,.5);
  background: radial-gradient(circle at 35% 40%, rgba(218,238,43,.6) 3px, transparent 3.5px);
}
.slot-note b { color: var(--brand); font: 600 12px/1.3 ui-monospace, "SF Mono", Menlo, monospace; word-break: break-all; }
.slot-note em { font-style: normal; font-size: 11px; color: var(--text-4); }
.slot.filled .slot-note { display: none; }
body.show-slots .slot.filled .slot-note {
  display: grid; position: absolute; left: 8px; right: 8px; bottom: 8px; max-width: none;
  padding: 8px; border-radius: 8px; background: rgba(0,0,0,.85); gap: 2px;
}
body.show-slots .slot.filled .slot-note::before { display: none; }

/* ---------- Floating notification card ---------- */
.notif {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center;
  width: 280px; padding: 11px 13px; border-radius: 18px;
  background: rgba(28, 28, 28, .82); border: 1px solid rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(0,0,0,.55); font-size: 13px; line-height: 1.3;
}
.notif img { width: 34px; height: 34px; border-radius: 9px; background: #000; padding: 5px; object-fit: contain; }
.notif b { display: block; font-weight: 600; font-size: 13px; }
.notif span { color: var(--text-2); }
.notif time { align-self: start; font-size: 11px; color: var(--text-3); }

/* ---------- Lit statement ---------- */
.lit { font: italic 800 clamp(34px, 5.4vw, 72px)/1.02 var(--display); text-transform: uppercase; margin: 0; max-width: 18ch; text-wrap: balance; }
.js .lit span { color: #2b2b2b; transition: color .25s; }
.js .lit span.on { color: var(--text); }
.js .lit span.on.hl { color: var(--brand); }

/* ---------- Mobile "Get the app" bar ---------- */
.app-bar {
  position: fixed; z-index: var(--z-appbar); left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 18px;
  background: rgba(20,20,20,.9); border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transform: translateY(calc(100% + 24px)); transition: transform .35s var(--ease-out);
}
.app-bar.show { transform: none; }
.app-bar img { width: 36px; height: 36px; }
.app-bar div { flex: 1; line-height: 1.2; }
.app-bar b { display: block; font: italic 800 18px/1 var(--display); text-transform: uppercase; }
.app-bar small { color: var(--text-3); font-size: 12px; }
@media (min-width: 860px) { .app-bar { display: none; } }

/* ---------- Legal pages (built by scripts/build-legal-pages.py) ---------- */
.legal { padding: calc(var(--header-h) + 56px) 0 var(--section-y); }
.legal-head { max-width: 900px; padding-bottom: 40px; border-bottom: 1px solid var(--hairline); }
.legal-head h1 { font-size: clamp(52px, 9vw, 112px); font-weight: 900; }
.legal-head .lede { max-width: 46ch; }
.legal-effective { margin: 14px 0 0; font-size: 14px; color: var(--text-3); }
.legal-grid { display: grid; gap: 32px; padding-top: 40px; }
@media (min-width: 1000px) { .legal-grid { grid-template-columns: 260px minmax(0, 1fr); gap: 72px; } }

.legal-side { display: grid; gap: 24px; align-content: start; }
@media (min-width: 1000px) {
  .legal-side { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); }
}
.legal-switch { display: flex; flex-wrap: wrap; column-gap: 20px; }
.legal-switch a {
  padding: 8px 0; font: italic 800 17px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--text-3);
}
@media (min-width: 1000px) { .legal-switch { display: grid; gap: 2px; } .legal-switch a { font-size: 20px; } }
.legal-switch a[aria-current="page"] { color: var(--brand); }
.legal-toc { border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--surface); min-height: 0; display: flex; flex-direction: column; }
.legal-toc summary {
  list-style: none; cursor: pointer; padding: 14px 16px;
  font: italic 600 14px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
}
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc summary::after { content: "+"; float: right; font-style: normal; }
.legal-toc[open] summary::after { content: "–"; }
.legal-toc nav { display: grid; padding: 0 8px 10px; max-height: 50vh; overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 1000px) {
  .legal-toc summary { pointer-events: none; }
  .legal-toc summary::after, .legal-toc[open] summary::after { content: none; }
  .legal-toc nav { max-height: none; }
}
.legal-toc nav a { padding: 6px 8px; border-radius: 8px; font-size: 14px; line-height: 1.35; color: var(--text-3); }
.legal-toc nav a.active { color: var(--text); background: var(--surface-raised); }
@media (hover: hover) { .legal-switch a:hover, .legal-toc nav a:hover { color: var(--text); } }

.legal-body { max-width: 68ch; color: var(--text-2); }
.legal-body h2 {
  margin: 56px 0 14px; color: var(--text);
  font: italic 800 clamp(26px, 2.6vw, 32px)/1.05 var(--display); text-transform: uppercase; letter-spacing: .005em;
  text-wrap: balance;
}
.legal-body > section:first-child > h2, .legal-facts + section > h2 { margin-top: 0; }
.legal-body h3 { margin: 32px 0 10px; color: var(--text); font-size: 18px; }
.legal-body p { margin: 0 0 16px; }
.legal-body ul, .legal-body ol { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 10px; }
.legal-body li::marker { color: var(--brand); }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal-facts {
  margin-bottom: 48px; padding: 20px 22px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--hairline); font-size: 15px;
}
.legal-facts p { margin: 0; }
.legal-facts p + p { margin-top: 10px; }
.legal-also { margin-top: 56px !important; padding-top: 24px; border-top: 1px solid var(--hairline); font-size: 15px; color: var(--text-3); }

/* ---------- FAQ (Features, Support) ---------- */
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } }
.faq { max-width: 860px; margin-top: 40px; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font: italic 800 clamp(22px, 2.6vw, 28px)/1.1 var(--display); text-transform: uppercase;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-style: normal; color: var(--brand); font-size: 30px; line-height: 1; transition: transform var(--dur-med) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--text-2); max-width: 64ch; }
.faq details[open] p { animation: panel-in .35s var(--ease-out); }
.faq a { text-decoration: underline; text-underline-offset: 3px; }
.legal-body .faq { margin-top: 0; }
.legal-body .faq summary { color: var(--text); font-size: clamp(20px, 2.2vw, 24px); padding: 18px 0; }
.legal-body .faq details p, .legal-body .faq details ul { margin-bottom: 20px; }

/* ---------- Help pages (Contact, Support, Delete account) ---------- */
.legal-body .help-ways { list-style: none; padding: 0; margin: 0 0 56px; display: grid; gap: 12px; }
@media (min-width: 700px) { .legal-body .help-ways { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } }
.help-ways li { padding: 20px; border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--surface); font-size: 15px; }
.help-ways h3 { margin: 0 0 8px; color: var(--text); font: italic 800 22px/1.05 var(--display); text-transform: uppercase; }
.help-ways p { margin: 0; overflow-wrap: anywhere; }
.legal-body ol.steps { padding-left: 26px; }
.legal-body ol.steps li::marker { font-weight: 700; }

.form {
  display: grid; gap: 22px; margin: 8px 0 16px; padding: clamp(18px, 4vw, 28px);
  border: 1px solid var(--hairline); border-radius: var(--r-xl); background: var(--surface);
}
.form-danger { border-color: rgba(255, 97, 102, .35); }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { padding: 0; color: var(--text); font-size: 15px; font-weight: 600; }
.field .optional { color: var(--text-3); font-weight: 400; }
.legal-body .hint, .hint { margin: 0; font-size: 14px; color: var(--text-3); }
.input {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: var(--r-md);
  border: 1.5px solid var(--hairline-strong); background: #000; color: var(--text);
  font: 400 16px/1.4 var(--body); /* 16px stops iOS zooming in on focus */
  transition: border-color var(--dur-fast);
}
.input::placeholder { color: var(--text-4); }
.input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; border-radius: var(--r-md); }
textarea.input { min-height: 180px; resize: vertical; }
select.input {
  appearance: none; padding-right: 44px; cursor: pointer;
  background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23DAEE2B' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin: 0; font-size: 14px; color: var(--danger); }
.field-error:empty { display: none; }
.counter { justify-self: end; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.counter.over { color: var(--danger); }
.password-row { position: relative; }
.password-row .input { padding-right: 76px; }
.password-row button {
  position: absolute; top: 6px; right: 6px; bottom: 6px; padding: 0 12px; border: 0; border-radius: 8px;
  background: var(--surface-raised); color: var(--text-2); font: 600 13px/1 var(--body); cursor: pointer;
}
.choices { display: grid; gap: 10px; }
.choice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; cursor: pointer;
  border: 1.5px solid var(--hairline-strong); border-radius: var(--r-md); font-size: 15px; color: var(--text-2);
}
.choice:has(input:checked) { border-color: var(--brand); color: var(--text); }
.choice:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.choice input, .check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); }
.choice strong { display: block; margin-bottom: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-2); cursor: pointer; }
.check[aria-invalid="true"] input { outline: 2px solid var(--danger); outline-offset: 2px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-actions .hint { flex: 1 1 220px; }
.btn { cursor: pointer; border: 0; }
.btn-secondary { border: 1.5px solid var(--hairline-strong); }
.btn-danger { background: var(--danger); color: #000; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
@media (hover: hover) and (pointer: fine) { .btn-danger:not([disabled]):hover { background: #ff8a8e; } }
.notice { margin: 0; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--hairline-strong); background: var(--surface-raised); font-size: 15px; color: var(--text-2); }
.notice-error { border-color: rgba(255, 97, 102, .55); background: rgba(255, 97, 102, .08); color: #ffd9da; }
.notice-ok { border-color: rgba(218, 238, 43, .5); background: rgba(218, 238, 43, .06); color: var(--text); }
.legal-body .notice a { color: inherit; }
.form-done { display: grid; gap: 14px; margin: 8px 0 16px; padding: clamp(18px, 4vw, 28px); border: 1px solid rgba(218, 238, 43, .45); border-radius: var(--r-xl); background: var(--surface); }
.form-done h3 { margin: 0; color: var(--text); font: italic 800 28px/1 var(--display); text-transform: uppercase; }
.form-done p { margin: 0; }
.receipt { display: grid; gap: 10px; margin: 0; font-size: 15px; }
.receipt div { display: grid; gap: 2px; }
@media (min-width: 600px) { .receipt div { grid-template-columns: 150px minmax(0, 1fr); gap: 16px; } }
.receipt dt { color: var(--text-3); }
.receipt dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.receipt code { font: 500 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.faq-search { margin: 0 0 8px; }
.faq-search .input { max-width: 520px; }
.faq-empty { margin: 16px 0 0; }

/* ---------- Mockup tools (not part of the real site) ---------- */
.mock-flag, .mock-tools button {
  padding: 6px 10px; border-radius: 8px; background: rgba(0,0,0,.8); border: 1px dashed #444;
  font: 600 11px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3);
}
.mock-flag { position: fixed; left: 12px; bottom: 12px; z-index: var(--z-tools); }
.mock-tools { position: fixed; left: 12px; bottom: 12px; z-index: var(--z-tools); display: flex; gap: 6px; }
.mock-tools .mock-flag { position: static; }
.mock-tools button { cursor: pointer; }
.mock-tools button[aria-pressed="true"] { color: #000; background: var(--brand); border-color: var(--brand); }
@media (max-width: 859px) { .mock-tools { bottom: 84px; } }

/* ---------- Preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header.solid, .notif, .app-bar { background: #111; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  .btn, .store, .tile, .card { border: 1px solid CanvasText; }
  .live-dot, .tick { forced-color-adjust: none; }
}
