/* THE MARKETING SITE, IN THE APP'S OWN CLOTHES.
 *
 * The site used to be its own world: a dimensioned drawing in system
 * monospace, plaster and line-red, square corners. The app has since moved to
 * a readability redesign (src/styles/app.css section 11): one typeface,
 * neutral cards, one colour per judgement, lime as the accent. A visitor who
 * taps "Open the app" should land in the same product they were just reading
 * about, so this file now wears the app's tokens.
 *
 * THE TOKENS ARE THE APP'S, COPIED, AND A TEST KEEPS THEM EQUAL.
 * These pages are served as themselves (App Review and the store listings
 * link straight to them) and must render with no JavaScript and no build, so
 * they cannot import the app's content-hashed CSS. The values below are copied
 * from app.css, and tests/site-tokens.test.js fails if the two drift. Change a
 * colour in the app and the test tells you to change it here.
 *
 * LIGHT AND DARK FOLLOW THE DEVICE. The app follows the phone until a person
 * picks an appearance in Settings; a website has no Settings, so it follows
 * the phone, always. The court plate stays dark in both, as it does in the
 * app: a heatmap is a luminance ramp and its low end vanishes on white.
 *
 * FIGTREE, SERVED FROM /fonts. The same two vendored files as the app
 * (src/styles/fonts), copied to public/fonts because the app's copies only
 * exist under a content hash after a build. The test checks they are
 * byte-identical. No font CDN: the CSP allows 'self' only.
 *
 * NO JAVASCRIPT.
 */

@font-face {
  font-family: 'Figtree Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(/fonts/figtree-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(/fonts/figtree-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* tokens:light (from app.css :root.scheme-light) */
:root {
  color-scheme: light dark;

  --page: #f2f3ee;
  --surface: #ffffff;
  --ink: #121613;
  --dim: #59615a;
  --faint: #656d66;
  --hairline: #e3e6df;
  --track: #eceee8;
  --ref-fill: #8c948d;
  --tint: #f0f6e3;
  --accent-text: #3b6a00;
  --sig-good: #1d7a3a;
  --sig-soft: #8f5a00;
  --sig-poor: #b3261e;
  --strip-bg: #121613;
  --strip-ink: #f2f3ee;
  --strip-dim: #b9c1ba;
  --strip-accent: #c6ee3a;
  --lime: #c6ee3a;
  --lime-ink: #172000;
  --court-floor: #0e1316;
}
/* end tokens:light */

/* tokens:dark (from app.css :root, the dark scheme) */
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0e1210;
    --surface: #181d1a;
    --ink: #eef2eb;
    --dim: #a6afa8;
    --faint: #8e978f;
    --hairline: #2a312c;
    --track: #2a312c;
    --ref-fill: #737c75;
    --tint: #1f2817;
    --accent-text: #c6ee3a;
    --sig-good: #62d48e;
    --sig-soft: #f4bc52;
    --sig-poor: #ff8f85;
    --strip-bg: #1f2521;
    --strip-ink: #eef2eb;
    --strip-dim: #a6afa8;
    --strip-accent: #c6ee3a;
  }
}
/* end tokens:dark */

:root {
  /* The scale, from tokens.css and recipe.css (consumer-utility). */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-md: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: 1.375rem;
  --tap: 48px;
  --dur: 140ms;
  --radius-card: 20px;
  --radius-tile: 16px;
  --radius-btn: 12px;

  --font: "Figtree Variable", Figtree, ui-sans-serif, -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --measure: 40rem;
  --wide: 68rem;
  --focus-ring: 0 0 0 2px var(--page), 0 0 0 4px var(--accent-text);

  /* pages.css (factory-owned, loaded first on the standalone pages) builds
     its dark palette from these names. Pointing them at the app's tokens is
     what converts those pages, rather than a pile of per-element overrides. */
  --bg: var(--page);
  --text: var(--ink);
  --line: var(--hairline);
  --accent: var(--accent-text);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--page);
  -webkit-text-size-adjust: 100%;
  /* 100%, never pixels: the reader's own text size moves everything. */
  font-size: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-md);
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

::selection { background: color-mix(in srgb, var(--accent-text) 30%, transparent); color: var(--ink); }

a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
a:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 6px;
}

img { max-width: 100%; height: auto; }

.skip {
  position: absolute; left: var(--sp-2); top: var(--sp-2); z-index: 20;
  display: inline-flex; align-items: center;
  min-height: var(--tap); padding: 0 var(--sp-4);
  border-radius: var(--radius-btn);
  background: var(--ink); color: var(--page);
  font-weight: 700; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

/* --- the bar ------------------------------------------------------------ */

.topbar {
  display: flex; align-items: center; gap: var(--sp-3);
  max-width: var(--wide); margin: 0 auto;
  padding: var(--sp-3) var(--gutter);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: var(--tap);
  margin-right: auto;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  font-weight: 800; font-size: var(--text-lg); letter-spacing: -0.01em;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.topbar nav { display: flex; align-items: center; gap: var(--sp-1); }
.topbar nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: var(--tap);
  padding: 0 var(--sp-2);
  color: var(--ink); font-weight: 600; font-size: var(--text-sm); text-decoration: none;
}
.topbar nav a:not(.btn):hover { text-decoration: underline; }
/* On a phone the bar keeps the brand and the one action; the text links are
   in the footer. */
@media (max-width: 30rem) { .topbar nav a.optional { display: none; } }

/* --- buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: var(--tap); padding: 0 var(--sp-5);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-btn);
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: 1rem; font-weight: 700;
  text-align: center; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur) ease-out, border-color var(--dur) ease-out;
}
.btn:hover { border-color: var(--ref-fill); }
/* The one place the bright lime is a ground, with the near-black text that
   reads on it (15:1), exactly as the app's filled button. */
.btn--primary { border-color: var(--lime); background: var(--lime); color: var(--lime-ink); }
.btn--primary:hover { border-color: color-mix(in srgb, var(--lime) 88%, black); background: color-mix(in srgb, var(--lime) 88%, black); }
.btn--small { min-height: 40px; padding: 0 var(--sp-4); font-size: var(--text-sm); }
.actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-5) 0 var(--sp-4); }
.actions .btn { flex: 1 1 12rem; }
@media (min-width: 40rem) { .actions .btn { flex: 0 0 auto; } }

/* --- type --------------------------------------------------------------- */

h1, h2, h3 { color: var(--ink); text-wrap: balance; }
h1 {
  margin: var(--sp-5) 0 var(--sp-4);
  font-size: clamp(2.25rem, 9vw, 3.5rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}
h2 {
  margin: 0 0 var(--sp-3);
  font-size: clamp(1.5rem, 5vw, 1.875rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h3 { margin: 0 0 var(--sp-2); font-size: 1.25rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 var(--sp-4); max-width: var(--measure); }
.lede { font-size: var(--text-lg); line-height: 1.5; color: var(--ink); max-width: 34rem; }
.muted { color: var(--dim); }
.small { font-size: var(--text-sm); line-height: 1.5; }

/* --- sections ----------------------------------------------------------- */

.section { padding: var(--sp-7) 0 0; }
.section > .wrap > p:first-of-type { color: var(--dim); }
.section-intro { color: var(--dim); }

/* --- hero --------------------------------------------------------------- */

.hero { padding: var(--sp-4) 0 0; }
.hero-grid { display: grid; gap: var(--sp-6); }
.hero .note { color: var(--dim); font-size: var(--text-sm); }
@media (min-width: 62rem) {
  .hero { padding-top: var(--sp-7); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 20rem; align-items: center; gap: var(--sp-8); }
}

/* A card, like every card in the app: neutral surface, no border, radius 20. */
.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 18px;
}

/* THE COURT PLATE. Dark in both schemes, as in the app. */
.plate { margin: 0; }
.plate .card { padding: var(--sp-4); }
.plate img {
  display: block;
  width: 100%; max-width: 250px; height: auto;
  margin: 0 auto;
  border-radius: 12px;
  background: var(--court-floor);
}
.plate figcaption { margin-top: var(--sp-3); font-size: var(--text-sm); line-height: 1.45; color: var(--dim); }
.ramp { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); font-size: var(--text-xs); color: var(--dim); }
.ramp i {
  display: block; flex: 1 1 auto; max-width: 9rem; height: 8px; border-radius: 999px;
  /* The heatmap's own stops, from RAMP in src/court.js. */
  background: linear-gradient(to right, rgb(23 49 63) 0%, rgb(20 80 106) 18%, rgb(14 122 128) 38%, rgb(42 160 106) 58%, rgb(138 210 63) 78%, rgb(198 255 61) 92%, rgb(234 255 194) 100%);
}

/* THE SUMMARY STRIP. The Sessions screen's dark strip: a few figures, big,
   with their words under them. Dark in the light scheme too, as in the app. */
.strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4) var(--sp-3);
  margin: 0;
  padding: 18px 20px;
  border-radius: var(--radius-card);
  background: var(--strip-bg);
  color: var(--strip-ink);
}
@media (min-width: 40rem) { .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.strip div { min-width: 0; }
.strip dd {
  margin: 0;
  font-size: 1.75rem; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em;
}
.strip dd .u { margin-left: 2px; font-size: 1rem; font-weight: 600; color: var(--strip-dim); }
.strip dd.accent { color: var(--strip-accent); }
.strip dt { margin-top: 2px; font-size: var(--text-sm); line-height: 1.3; color: var(--strip-dim); }
.strip-cap { margin-top: var(--sp-3); font-size: var(--text-sm); color: var(--dim); }

/* --- steps -------------------------------------------------------------- */

.steps { list-style: none; margin: var(--sp-5) 0 0; padding: 0; display: grid; gap: var(--sp-3); counter-reset: step; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: step; }
.steps .card { height: 100%; }
.steps h3::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin-right: 10px;
  border-radius: 999px;
  background: var(--tint); color: var(--accent-text);
  font-size: 1rem; font-weight: 800;
  vertical-align: 2px;
}
.steps p { margin: 0; color: var(--dim); font-size: 1rem; }

/* --- screens ------------------------------------------------------------ */

/* Two across even on a phone: these are pictures of screens, and four
   full-height phones stacked one above another is four screens of scrolling
   before the next idea. At ~160px wide each still reads as the screen it is,
   and the caption carries the words. */
.shots { list-style: none; margin: var(--sp-5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-3); }
@media (min-width: 62rem) { .shots { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); } }
.shots figure { margin: 0; }
.shots img {
  display: block; width: 100%; max-width: 20rem; height: auto; margin: 0 auto;
  border-radius: clamp(12px, 3vw, 20px);
  border: 1px solid var(--hairline);
  background: var(--surface);
}
.shots figcaption { max-width: 20rem; margin: var(--sp-3) auto 0; font-size: var(--text-sm); line-height: 1.45; color: var(--dim); }
@media (min-width: 48rem) { .shots figcaption { font-size: 1rem; } }
.shots figcaption b { color: var(--ink); }

/* --- a finding, as FindingCard.vue draws it ------------------------------ */

.coach-grid { display: grid; gap: var(--sp-5); margin-top: var(--sp-5); }
@media (min-width: 62rem) { .coach-grid { grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: var(--sp-7); align-items: start; } }

.finding {
  --sev: var(--sig-good);
  display: flex; flex-direction: column; gap: 14px;
  margin: 0;
  padding: 18px;
  border-radius: var(--radius-card);
  background: var(--surface);
}
.finding p { margin: 0; max-width: none; }
.finding-sev { display: flex; align-items: center; gap: 6px; font-size: var(--text-xs); font-weight: 700; color: var(--sev); }
.sev-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--sev); }
.finding-title { margin: -6px 0 0; font-size: 1.25rem; line-height: 1.25; }
.compare { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.compare-title { font-size: var(--text-sm); color: var(--dim); }
.bars {
  display: grid;
  grid-template-columns: minmax(3.5rem, max-content) minmax(0, 1fr) minmax(3rem, max-content);
  align-items: center; column-gap: 10px; row-gap: 8px;
}
.bar-label { font-size: var(--text-sm); line-height: 1.2; color: var(--dim); }
.bar-label--you { font-weight: 700; color: var(--ink); }
.bar-track { display: block; height: 10px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--ref-fill); }
.bar-fill--you { background: var(--sev); }
.bar-value { font-size: 0.9375rem; font-weight: 600; color: var(--dim); text-align: right; white-space: nowrap; }
.bar-value--you { font-size: var(--text-md); font-weight: 800; color: var(--ink); }
.compare-source { font-size: var(--text-sm); color: var(--dim); }
.try { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--tint); }
.try svg { flex: none; margin-top: 1px; color: var(--accent-text); }
.try-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-text); }
.try-text { margin-top: 2px !important; font-size: 0.9375rem; line-height: 1.4; color: var(--ink); }
.cites-title { font-size: 1rem; font-weight: 700; }
.cites { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cites li {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px 0 8px;
  border-radius: 12px;
  background: var(--page);
  font-size: var(--text-sm); font-weight: 600;
}
.cites .play {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--surface); color: var(--ink);
}
.cites .t { font-weight: 500; color: var(--dim); }
.card-cap { margin-top: var(--sp-3); font-size: var(--text-sm); color: var(--dim); }

/* --- plain lists -------------------------------------------------------- */

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); max-width: var(--measure); }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 0.2em;
  width: 20px; height: 20px; border-radius: 999px;
  background: var(--tint) no-repeat center / 12px 12px;
  /* A check mark, drawn in the accent-text colour of each scheme. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b6a00' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  .ticks li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c6ee3a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  }
}
.ticks b { color: var(--ink); }

/* A list of short facts, as the app's card rows: a title and one line under
   it, hairlines between. */
.rows { list-style: none; margin: 0; padding: 0 18px; border-radius: var(--radius-card); background: var(--surface); }
.rows li { padding: 14px 0; border-top: 1px solid var(--hairline); }
.rows li:first-child { border-top: 0; }
.rows b { display: block; color: var(--ink); font-weight: 700; }
.rows span { display: block; margin-top: 2px; color: var(--dim); font-size: 1rem; line-height: 1.45; }

/* THE ACCURACY CHECKS. One row each: what, the verdict as a word in a pill
   (never colour alone), and the measured figure. */
.checks { list-style: none; margin: var(--sp-5) 0 0; padding: 0 18px; border-radius: var(--radius-card); background: var(--surface); max-width: 46rem; }
.checks li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px var(--sp-3); padding: 16px 0; border-top: 1px solid var(--hairline); }
.checks li:first-child { border-top: 0; }
.checks b { font-weight: 700; }
.checks .fig { grid-column: 1 / -1; color: var(--dim); font-size: 1rem; line-height: 1.45; }
.verdict {
  align-self: start;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: var(--text-xs); font-weight: 700;
  white-space: nowrap;
}
.verdict--pass { color: var(--sig-good); background: color-mix(in srgb, var(--sig-good) 14%, var(--surface)); }
.verdict--fail { color: var(--sig-soft); background: color-mix(in srgb, var(--sig-soft) 14%, var(--surface)); }

.two { display: grid; gap: var(--sp-5); margin-top: var(--sp-5); }
@media (min-width: 62rem) { .two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); } }
.two h3 { margin-bottom: var(--sp-3); }

/* The last ask, in the dark strip. */
.cta { margin-top: var(--sp-8); padding: var(--sp-6) var(--sp-5); border-radius: var(--radius-card); background: var(--strip-bg); color: var(--strip-ink); }
.cta h2 { color: var(--strip-ink); }
.cta p { color: var(--strip-dim); }
.cta .btn:not(.btn--primary) { background: transparent; color: var(--strip-ink); border-color: color-mix(in srgb, var(--strip-ink) 30%, transparent); }
.cta .actions { margin-bottom: 0; }

/* --- footer ------------------------------------------------------------- */

.site-footer {
  max-width: var(--wide);
  margin: var(--sp-7) auto 0;
  padding: var(--sp-5) var(--gutter) var(--sp-6);
  border-top: 1px solid var(--hairline);
  color: var(--dim);
  font-size: var(--text-sm);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 var(--sp-2); margin: 0 0 var(--sp-2) calc(-1 * var(--sp-2)); }
.site-footer nav a {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--sp-2);
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.site-footer nav a:hover, .site-footer nav a[aria-current] { text-decoration: underline; }
.site-footer p { margin: 0; }

/* --- the standalone pages: about, support, privacy, terms ---------------- */
/* pages.css (factory-owned) lays these out first; this brings them into the
   same product. One reading column, the app's card for grouped content. */

body.page { padding: 0; }
body.page main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 var(--gutter) var(--sp-4);
  background: transparent;
  border: 0;
}
body.page h1 { margin: var(--sp-5) 0 var(--sp-2); font-size: clamp(2rem, 7vw, 2.5rem); }
body.page h2 { margin: var(--sp-6) 0 var(--sp-2); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
body.page h3 { margin: var(--sp-4) 0 var(--sp-1); font-size: 1.0625rem; }
body.page p, body.page li { color: var(--ink); max-width: none; }
body.page ul, body.page ol { margin: 0 0 var(--sp-4); padding-left: 22px; }
body.page li { margin-bottom: var(--sp-2); }
body.page li::marker { color: var(--dim); }
body.page .updated,
body.page .page-lede {
  margin: 0 0 var(--sp-5);
  color: var(--dim);
  font-size: 1rem;
}
body.page .page-lede { font-size: var(--text-lg); color: var(--ink); }
body.page .card { border: 0; border-radius: var(--radius-card); background: var(--surface); padding: 18px 20px; margin: 0 0 var(--sp-4); }
body.page .card h2 { margin-top: 0; }
body.page .card > :last-child { margin-bottom: 0; }
body.page .callout {
  margin: 0 0 var(--sp-5);
  padding: 16px 18px;
  border: 0;
  border-radius: var(--radius-tile);
  background: var(--tint);
  color: var(--ink);
}
body.page .back {
  display: inline-flex; align-items: center; min-height: var(--tap);
  margin-top: var(--sp-5);
  font-weight: 600;
}
body.page .site-footer, body.page .topbar { max-width: 44rem; }

/* The two policy pages carry the factory's own inline .policy block. Its
   padding and sizes are neutralised so the policy sits in this column; the
   words inside are untouched. */
body.page .policy { max-width: none; margin: 0; padding: 0; line-height: 1.6; }
body.page .policy h1 { margin: var(--sp-5) 0 var(--sp-2); font-size: clamp(2rem, 7vw, 2.5rem); }
body.page .policy h2 { margin: var(--sp-6) 0 var(--sp-2); font-size: 1.25rem; }
body.page .policy .updated { opacity: 1; margin: 0 0 var(--sp-5); }
body.page .policy p, body.page .policy li { margin: 0 0 var(--sp-3); }
body.page .policy ul { padding-left: 22px; }
body.page .policy a { color: var(--accent-text); }
body.page .policy .back { display: block; margin-top: var(--sp-6); }
body.page .policy .back a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; }
body.page .policy footer { margin-top: 0; }

/* A contents list for the long policy pages: jump links, two columns when
   there is room. */
.toc { margin: 0 0 var(--sp-5); padding: 16px 20px; border-radius: var(--radius-tile); background: var(--surface); }
.toc h2 { margin: 0 0 var(--sp-2) !important; font-size: 1rem !important; color: var(--dim); }
.toc ol { margin: 0 !important; padding-left: 22px !important; columns: 1; }
@media (min-width: 36rem) { .toc ol { columns: 2; column-gap: var(--sp-6); } }
.toc li { margin: 0 !important; break-inside: avoid; }
.toc a { display: inline-flex; align-items: center; min-height: 36px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
