/* Fourby website. One stylesheet, no framework.
   The brand (brand/README.md): Fourby Red on Polar Night, Archivo Expanded for display type, Archivo for
   headings, the system font for reading. The header, the heroes, the app section and the footer are always
   dark; the guide in between follows the visitor's light or dark setting.
   Workout colours, everywhere: red = hard intervals (90–95% of max heart rate), glacier blue = recovery,
   slate = warm-up and cool-down. Text on them is checked for at least 4.5:1 contrast.
   Fills are always Fourby Red with white text; the brighter red (--accent-ink on dark) is only for text. */

@font-face {
  font-family: "Archivo Expanded";
  src: url("../fonts/ArchivoExpanded-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Brand, the same in every theme */
  --red: #e3241a;            /* Fourby Red: buttons, the mark, highlights (white text on it 4.6:1) */
  --night: #0c0d11;          /* Polar Night */
  --display: "Archivo Expanded", "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --head: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --narrow: 720px;
  --radius: 18px;

  /* Light theme */
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #ebedf1;
  --ink: #0c0d11;
  --muted: #5b616d;
  --line: #dcdfe5;
  --accent-ink: #c81e12;     /* red text on light, 5.8:1 */
  --hard: #e3241a;
  --easy: #1d66cc;
  --calm: #a3a9b5;
  --on-hard: #ffffff;
  --on-easy: #ffffff;
  --on-calm: #0c0d11;
  --band: rgba(227, 36, 26, 0.08);
  --band-line: rgba(227, 36, 26, 0.5);
  --shadow: 0 1px 2px rgba(12, 13, 17, 0.06), 0 14px 36px rgba(12, 13, 17, 0.08);
  color-scheme: light dark;
}

/* Dark: the whole page for visitors in dark mode, and these sections for everyone. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d11;
    --surface: #16181e;
    --surface-2: #1f222a;
    --ink: #f4f5f7;
    --muted: #9a9fab;
    --line: #2a2e37;
    --accent-ink: #ff4b36;   /* red text on dark, 5.8:1 */
    --hard: #e3241a;
    --easy: #5db3ff;
    --calm: #3a3f4a;
    --on-hard: #ffffff;
    --on-easy: #0c0d11;
    --on-calm: #f4f5f7;
    --band: rgba(255, 75, 54, 0.12);
    --band-line: rgba(255, 75, 54, 0.55);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 14px 36px rgba(0, 0, 0, 0.3);
  }
}
.site-header, .hero, .page-head, .app-band, .site-footer, .notfound {
  --bg: #0c0d11;
  --surface: #16181e;
  --surface-2: #1f222a;
  --ink: #f4f5f7;
  --muted: #9a9fab;
  --line: #2a2e37;
  --accent-ink: #ff4b36;
  --hard: #e3241a;
  --easy: #5db3ff;
  --calm: #3a3f4a;
  --on-hard: #ffffff;
  --on-easy: #0c0d11;
  --on-calm: #f4f5f7;
  --band: rgba(255, 75, 54, 0.12);
  --band-line: rgba(255, 75, 54, 0.55);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 14px 36px rgba(0, 0, 0, 0.3);
  color: var(--ink);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--easy); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
h1, h2 { font-family: var(--display); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.55rem, 3.3vw, 2.2rem); font-weight: 800; line-height: 1.08; margin-bottom: 0.65em; }
h3 { font-family: var(--head); font-size: 1.15rem; font-weight: 750; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
::selection { background: var(--red); color: #fff; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(var(--narrow), 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--red); color: #fff; font-weight: 700; }
.skip-link:focus { top: 12px; }
@media (max-width: 600px) { body { font-size: 16px; } }

/* Labels: small expanded capitals with a red tile, used for eyebrows and tags */
.eyebrow { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; color: var(--muted); font-family: var(--display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.4; }
.eyebrow::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 0.2em; border-radius: 2px; background: var(--red); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(12, 13, 17, 0.9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-name { font-family: var(--display); font-size: 1.3rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1; text-transform: uppercase; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-family: var(--head); font-size: 0.95rem; font-weight: 600; }
.site-nav a:hover { color: var(--ink); }
@media (max-width: 800px) { .site-nav { display: none; } .header-row .btn { margin-left: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--red); color: #fff; font-family: var(--display); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; box-shadow: 0 6px 20px rgba(227, 36, 26, 0.35); transition: transform 0.15s, box-shadow 0.15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(227, 36, 26, 0.45); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 0.74rem; box-shadow: none; }

/* Hero: always dark, with a red glow behind the headline */
.hero { position: relative; overflow: hidden; padding: clamp(44px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); background: radial-gradient(48% 62% at 88% 8%, rgba(227, 36, 26, 0.26), rgba(227, 36, 26, 0) 70%), radial-gradient(40% 50% at 0% 100%, rgba(93, 179, 255, 0.08), rgba(93, 179, 255, 0) 70%), var(--bg); border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 12ch; font-size: clamp(2.1rem, 8.4vw, 6.2rem); font-weight: 900; line-height: 0.92; letter-spacing: -0.035em; text-transform: uppercase; }
.hl { color: var(--accent-ink); text-transform: none; }
.lede { margin: 26px 0 0; max-width: 42rem; color: var(--muted); font-size: clamp(1.08rem, 1.6vw, 1.26rem); line-height: 1.55; }
.facts { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 940px; }
.facts li { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.facts li:first-child { background: var(--red); border-color: var(--red); }
.facts li:first-child, .facts li:first-child span { color: #fff; }
.facts strong { display: block; font-family: var(--display); font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.facts span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.88rem; line-height: 1.35; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The workout chart */
.chart-card { margin: 30px 0 0; padding: clamp(16px, 3vw, 30px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.chart-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 32px; }
.chart-title { font-family: var(--display); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.85rem; }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.key-hard { background: var(--hard); }
.key-easy { background: var(--easy); }
.key-calm { background: var(--calm); }
.chart { position: relative; height: clamp(190px, 25vw, 270px); }
.chart-plot { position: absolute; inset: 0 0 26px; }
.zone-band { position: absolute; left: 0; right: 0; bottom: 80%; height: 10%; background: var(--band); border-block: 1px dashed var(--band-line); }
.zone-band span { position: absolute; left: 0; bottom: 100%; margin-bottom: 6px; color: var(--accent-ink); font-family: var(--display); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 4px; }
.bar { flex: var(--min) 1 0; height: calc((var(--pct) - 50) * 2%); display: flex; justify-content: center; padding-top: 8px; border-radius: 8px 8px 3px 3px; font-family: var(--head); font-size: 0.8rem; font-weight: 800; line-height: 1.1; white-space: nowrap; overflow: hidden; transform-origin: bottom; animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i) * 70ms); }
.bar-hard { background: var(--hard); color: var(--on-hard); }
.bar-easy { background: var(--easy); color: var(--on-easy); }
.bar-calm { background: var(--calm); color: var(--on-calm); }
.axis { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; display: flex; justify-content: space-between; color: var(--muted); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
@keyframes rise { from { transform: scaleY(0.04); } to { transform: none; } }
@media (max-width: 560px) { .bar .u { display: none; } .bar { font-size: 0.72rem; } }

/* Guide body: the text column, with the contents beside it on wide screens */
.guide-body { width: min(var(--wrap), 100% - 32px); margin: 48px auto 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.prose, .toc { max-width: var(--narrow); }
.toc { padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.95rem; }
.toc-title { margin: 0 0 10px; color: var(--muted); font-family: var(--display); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 1.5em; }
.toc li { margin: 0; padding: 3px 0; break-inside: avoid; }
.toc li::marker { color: var(--accent-ink); font-family: var(--head); font-size: 0.85em; font-weight: 700; }
.toc a { color: var(--ink); text-decoration: none; font-family: var(--head); font-weight: 500; }
.toc a:hover { color: var(--accent-ink); text-decoration: underline; }
@media (min-width: 640px) and (max-width: 1079px) { .toc ol { columns: 2; column-gap: 40px; } }
@media (min-width: 1080px) {
  .guide-body { grid-template-columns: minmax(0, var(--narrow)) 240px; justify-content: space-between; gap: 64px; }
  .prose { grid-column: 1; grid-row: 1; }
  .toc { grid-column: 2; grid-row: 1; position: sticky; top: 100px; align-self: start; padding: 4px 0 0; background: none; border: 0; font-size: 0.92rem; }
}

/* Prose. Each section heading carries four short red bars: the four intervals. */
.prose > section { margin-bottom: 72px; }
.prose > section > h2::before { content: ""; display: block; width: 44px; height: 6px; margin-bottom: 18px; border-radius: 1px; background: repeating-linear-gradient(90deg, var(--red) 0 8px, transparent 8px 12px); }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin: 0.45em 0; }
.prose li::marker { color: var(--accent-ink); font-weight: 800; }
.note { color: var(--muted); font-size: 0.95rem; }
.inline-cta { padding: 16px 20px; border-radius: 14px; background: var(--surface-2); border-left: 4px solid var(--red); font-weight: 600; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: step; }
.prose .steps { padding: 0; }
.steps li { position: relative; margin: 0; padding: 18px 20px 18px 70px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; font-family: var(--display); font-weight: 900; font-size: 1rem; }
.steps .step-calm::before { background: var(--calm); color: var(--on-calm); }
.steps .step-hard::before { background: var(--hard); color: var(--on-hard); }
.steps .step-easy::before { background: var(--easy); color: var(--on-easy); }
.steps h3 { margin: 4px 0 4px; }
.steps p { margin: 0; color: var(--muted); }

.callout { margin: 28px 0 0; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--red); border-radius: 6px 16px 16px 6px; }
.callout h3 { margin-bottom: 6px; font-size: 1.05rem; }
.callout p { margin: 0; }

/* Calculator */
.calc { display: grid; gap: 22px; margin: 0 0 18px; padding: clamp(18px, 3vw, 30px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.calc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-family: var(--head); font-size: 0.95rem; font-weight: 700; }
.field small { color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.field input { width: 100%; min-height: 54px; padding: 10px 16px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font-family: var(--display); font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.field input::placeholder { color: var(--muted); font-family: var(--head); font-weight: 500; opacity: 1; }
.field input:focus-visible { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(227, 36, 26, 0.18); }
.calc-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.result { display: grid; gap: 2px; padding: 16px 18px; border-radius: 14px; background: var(--surface-2); }
.result-label { color: var(--muted); font-family: var(--display); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.result-value { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.unit { color: var(--muted); font-family: var(--head); font-size: 0.95rem; font-weight: 600; letter-spacing: 0; }
.result-note { color: var(--muted); font-size: 0.82rem; }
.result-hard { background: var(--red); }
.result-hard .result-label, .result-hard .result-value, .result-hard .unit, .result-hard .result-note { color: #fff; }
.result-easy .result-value output { color: var(--easy); }
@media (max-width: 560px) { .calc-inputs, .calc-results { grid-template-columns: 1fr; } }

/* Where to do it */
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.options div { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.options dt { margin-bottom: 4px; font-family: var(--head); font-weight: 750; }
.options dd { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .options { grid-template-columns: 1fr; } }

/* Research */
.studies { display: grid; gap: 12px; }
.study { padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.study-tag { margin: 0 0 8px; color: var(--accent-ink); font-family: var(--display); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.study h3 { margin-bottom: 8px; font-family: var(--display); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.study p { margin-bottom: 10px; }
.study .study-source { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Questions */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item summary { position: relative; padding: 20px 48px 20px 0; cursor: pointer; list-style: none; font-family: var(--head); font-size: 1.08rem; font-weight: 750; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 10px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--accent-ink); border-bottom: 2.5px solid var(--accent-ink); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-answer { padding: 0 0 20px; }
.faq-answer p:last-child { margin-bottom: 0; }

.sources { color: var(--muted); font-size: 0.92rem; }
.sources h2 { color: var(--ink); font-size: 1.35rem; }
.prose .sources li::marker { color: var(--muted); font-weight: 500; }
.sources a { word-break: break-word; }

/* The app: always dark */
.app-band { margin-top: 24px; padding: clamp(60px, 9vw, 120px) 0; background: radial-gradient(55% 70% at 78% 45%, rgba(227, 36, 26, 0.24), rgba(227, 36, 26, 0) 70%), var(--bg); border-top: 1px solid var(--line); }
.app-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 56px; }
.app-icon { margin-bottom: 26px; }
.app-icon .brand-mark { width: 76px; height: 76px; filter: drop-shadow(0 14px 28px rgba(227, 36, 26, 0.45)); }
.app-band h2 { max-width: 14ch; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 900; line-height: 0.95; letter-spacing: -0.035em; text-transform: uppercase; }
.app-band p { color: var(--muted); font-size: 1.08rem; }
.app-features { margin: 24px 0 32px; padding: 0; list-style: none; display: grid; gap: 10px; }
.app-features li { position: relative; padding-left: 32px; }
.app-features li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 20px; height: 6px; border-radius: 1px; background: repeating-linear-gradient(90deg, var(--red) 0 3.5px, transparent 3.5px 5.5px); }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn { display: inline-flex; flex-direction: column; justify-content: center; min-width: 160px; min-height: 58px; padding: 8px 20px; border: 1.5px solid rgba(255, 255, 255, 0.32); border-radius: 14px; color: #fff; line-height: 1.2; text-decoration: none; }
.store-btn small { color: var(--muted); font-family: var(--display); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.store-btn strong { font-family: var(--head); font-size: 1.15rem; font-weight: 800; }
.store-btn.is-soon { border-style: dashed; }
a.store-btn:hover { background: rgba(255, 255, 255, 0.06); }
@media (max-width: 880px) { .app-grid { grid-template-columns: 1fr; gap: 48px; } }

.app-band .store-note { margin: 14px 0 0; font-size: 0.92rem; }

/* The watch illustration (decorative): a generic watch showing the 4x4 zone for a max of 180 */
.watch { display: grid; justify-items: center; width: 240px; margin-inline: auto; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.5)); }
.watch-band { width: 150px; height: 64px; background: linear-gradient(180deg, #23262e, #15171c); }
.watch-band:first-child { border-radius: 24px 24px 0 0; }
.watch-band:last-child { border-radius: 0 0 24px 24px; }
.watch-case { position: relative; width: 230px; height: 272px; padding: 13px; border-radius: 60px; background: linear-gradient(155deg, #4a4f5a, #16181e 62%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.watch-crown { position: absolute; right: -8px; top: 64px; width: 11px; height: 42px; border-radius: 6px; background: linear-gradient(90deg, #3a3f4a, #5f6573); }
.watch-screen { height: 100%; display: flex; flex-direction: column; gap: 6px; padding: 28px 22px 22px; border-radius: 48px; background: #000; color: #fff; }
.w-row { display: flex; justify-content: space-between; color: #ff4b36; font-size: 0.78rem; font-weight: 700; }
.w-clock { color: #9a9fab; font-weight: 600; }
.w-timer { margin-top: 10px; font-size: 3.4rem; font-weight: 800; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.w-hr { display: flex; align-items: baseline; gap: 5px; }
.w-hr-num { color: #ff4b36; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.w-hr-unit { color: #9a9fab; font-size: 0.85rem; font-weight: 600; }
.w-gauge { position: relative; height: 8px; margin-top: 4px; border-radius: 999px; background: #1f222a; }
.w-gauge-band { position: absolute; top: 0; bottom: 0; left: 49%; width: 20%; border-radius: 999px; background: rgba(255, 75, 54, 0.45); }
.w-gauge-dot { position: absolute; top: 50%; left: 62%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #ff4b36; box-shadow: 0 0 0 4px rgba(255, 75, 54, 0.25); }
.w-zone { color: #9a9fab; font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.w-zone b { color: #ff4b36; }

/* Footer: always dark */
.site-footer { padding: 48px 0 64px; background: var(--bg); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.footer-row { display: grid; gap: 16px; }
.site-footer .brand-name { font-size: 1.15rem; }
.site-footer .brand-mark { width: 28px; height: 28px; }
.fineprint { margin: 0; max-width: 60rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding-bottom: 8px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: var(--ink); font-family: var(--head); font-weight: 600; text-decoration: none; }
.footer-nav a:hover { color: var(--accent-ink); text-decoration: underline; }
.site-footer a { color: var(--ink); }

/* Privacy and support pages: a dark head like the guide's, with a smaller heading */
.page-head { padding: clamp(44px, 7vw, 96px) 0 clamp(36px, 5vw, 60px); background: radial-gradient(48% 70% at 90% 0%, rgba(227, 36, 26, 0.22), rgba(227, 36, 26, 0) 70%), var(--bg); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 15ch; font-size: clamp(2rem, 6vw, 4.2rem); font-weight: 900; line-height: 0.95; letter-spacing: -0.035em; text-transform: uppercase; }
.small-print { margin: 18px 0 0; color: var(--muted); font-size: 0.9rem; }
.page-head .callout { max-width: var(--narrow); margin-top: 28px; }
.page-head .callout p { margin: 0 0 6px; }
.page-head .callout p:last-child { margin: 0; color: var(--muted); }
.legal .prose h3 { margin: 1.5em 0 0.35em; font-size: 1.1rem; }
.legal .prose h2 + h3 { margin-top: 0.3em; }
.todo { padding: 0 4px; border: 1px dashed currentColor; border-radius: 4px; background: #fff3a8; color: #3a2e00; font-weight: 700; }

/* Not found */
.notfound { padding: clamp(72px, 12vw, 150px) 0; background: var(--bg); }
.notfound h1 { margin-bottom: 0.4em; font-size: clamp(2.2rem, 7vw, 4.4rem); font-weight: 900; line-height: 0.95; letter-spacing: -0.035em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar { animation: none; }
  .btn { transition: none; }
  .faq-item summary::after { transition: none; }
}

/* Footer brand line */
.footer-brand { display: grid; gap: 10px; }
.tagline { margin: 0; color: var(--ink); font-family: var(--display); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
