/* Pencil Coach landing page.
   Brand: docs/DESIGN.md (paper, ink, one coach orange). Type, spacing, radius, motion: landing-page-design Part B.
   Type sizes are Tailwind steps (12 14 16 18 20 24 30 36 48 60 72 96). Spacing comes from the table only (2 4 8 12 16 24 32 40 48 64 80 96).
   One typeface, Geist. Geist Mono only for big numbers. No italics, no gradients, no weights above 600. */

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --paper: #fcfaf6;
  --surface: #fefdfb;
  --desk: #f4f1ed;
  --text: #1b1f29;
  --muted: #656972;
  --line: #e0ded8;
  --line-strong: #cdcac3;
  --control: #8a8d95;
  --accent-ink: #cd5716;
  --accent: #ba480d;
  --accent-hover: #a63c07;
  --on-accent: #fcfcfc;
  --right: #2d8949;
  --bezel: #0f1217;

  --sp-25: 2px;
  --sp-50: 4px;
  --sp-75: 8px;
  --sp-100: 12px;
  --sp-200: 16px;
  --sp-300: 24px;
  --sp-400: 32px;
  --sp-500: 40px;
  --sp-600: 48px;
  --sp-700: 64px;
  --sp-800: 80px;
  --sp-900: 96px;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shadow-chrome: 0 1px 2px rgb(0 0 0 / 0.06), 0 8px 24px rgb(0 0 0 / 0.08);
  --shadow-card: 0 1px 2px rgb(27 31 41 / 0.04), 0 16px 40px -12px rgb(27 31 41 / 0.16);

  --nav-h: 48px;
  --nav-top: 24px;
  --circle-x: 0.26em;
  --circle-y: 0.22em;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.menu-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16px/24px var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgb(205 87 22 / 0.2); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: var(--sp-200); top: var(--sp-200); z-index: 100;
  padding: var(--sp-75) var(--sp-200); border-radius: 12px;
  background: var(--text); color: var(--paper); font-weight: 600; text-decoration: none;
  transform: translateY(-200%); transition: transform 300ms var(--ease);
}
.skip:focus { transform: none; }
main:focus { outline: none; }

.ic { width: 20px; height: 20px; flex: none; fill: currentColor; }

/* ---------- type (Tailwind steps) ---------- */
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
.h1 { font-size: 36px; line-height: 40px; letter-spacing: -0.035em; }
.h2 { font-size: 30px; line-height: 36px; letter-spacing: -0.03em; }
.h3 { font-size: 24px; line-height: 32px; letter-spacing: -0.02em; }
.lead { font-size: 18px; line-height: 28px; color: var(--muted); }
.fine { font-size: 14px; line-height: 20px; color: var(--muted); }
@media (min-width: 560px) { .h1 { font-size: 48px; line-height: 48px; } }
@media (min-width: 720px) {
  .h1 { font-size: 60px; line-height: 60px; }
  .h2 { font-size: 36px; line-height: 40px; }
  .h3 { font-size: 30px; line-height: 36px; }
  .lead { font-size: 20px; line-height: 28px; }
}
.link { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { color: var(--accent-hover); }

/* ---------- layout ---------- */
.wrap { width: min(100% - var(--sp-400), 1120px); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(100% - var(--sp-600), 1120px); } }
@media (min-width: 1100px) { .wrap { width: min(100% - var(--sp-700), 1120px); } }
.section { padding-block: var(--sp-700); }
@media (min-width: 720px) { .section { padding-block: var(--sp-800); } }
@media (min-width: 1100px) { .section { padding-block: var(--sp-900); } }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-75);
  min-height: 48px; padding: var(--sp-100) var(--sp-300);
  border: 0; border-radius: 12px; background: var(--accent); color: var(--on-accent);
  font: 600 16px/24px var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color 200ms var(--ease), transform 200ms var(--ease), opacity 200ms var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.98); }
.btn[aria-busy="true"] { opacity: 0.72; cursor: progress; }
.btn-sm { min-height: 40px; padding: var(--sp-75) var(--sp-200); border-radius: 9999px; font-size: 14px; line-height: 20px; }

/* ---------- island nav ---------- */
.nav-wrap {
  position: fixed; z-index: 50; left: 0; right: 0;
  top: max(var(--nav-top), env(safe-area-inset-top));
  display: flex; justify-content: center; padding-inline: var(--sp-200); pointer-events: none;
}
.nav {
  pointer-events: auto; display: flex; align-items: center; gap: var(--sp-75);
  height: var(--nav-h); padding: var(--sp-50); border-radius: 9999px;
  background: rgb(254 253 251 / 0.97); /* 0.9 let the FAQ headings ghost through the links while scrolling */
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgb(27 31 41 / 0.08); box-shadow: var(--shadow-chrome);
}
.brand {
  display: flex; align-items: center; gap: var(--sp-75); height: 40px; padding: 0 var(--sp-75);
  border-radius: 9999px; color: var(--text); text-decoration: none;
  font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em;
}
.brand img { width: 28px; height: 28px; border-radius: 6px; box-shadow: 0 0 0 1px rgb(27 31 41 / 0.1); }
.brand span { display: none; padding-right: var(--sp-75); }
.nav-links { display: none; align-items: center; }
.nav-links a {
  display: flex; align-items: center; height: 40px; padding: 0 var(--sp-200); border-radius: 9999px;
  color: var(--muted); font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: none;
  transition: color 200ms var(--ease), background-color 200ms var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgb(27 31 41 / 0.05); }
.nav-links a[aria-current="true"], .nav-links a[aria-current="page"] { color: var(--text); background: rgb(27 31 41 / 0.07); }
.menu-btn {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 9999px;
  background: transparent; color: var(--text); transition: background-color 200ms var(--ease);
}
.menu-btn:hover { background: rgb(27 31 41 / 0.05); }
.bars { position: relative; width: 20px; height: 20px; }
.bars i {
  position: absolute; left: 2px; right: 2px; height: 2px; border-radius: 2px; background: currentColor; font-style: normal;
  transition: transform 500ms var(--ease), top 500ms var(--ease);
}
.bars i:nth-child(1) { top: 6px; }
.bars i:nth-child(2) { top: 12px; }
.menu-open .bars i:nth-child(1) { top: 9px; transform: rotate(45deg); }
.menu-open .bars i:nth-child(2) { top: 9px; transform: rotate(-45deg); }
@media (min-width: 480px) { .brand span { display: inline; } }
@media (min-width: 720px) {
  .nav { gap: var(--sp-50); padding-left: var(--sp-75); }
  .nav-links { display: flex; margin-inline: var(--sp-75); }
  .menu-btn, .menu { display: none; }
}

.menu {
  position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-top) + var(--nav-h) + var(--sp-400)) var(--sp-300) var(--sp-600);
  background: rgb(252 250 246 / 0.94);
  -webkit-backdrop-filter: blur(48px) saturate(1.4); backdrop-filter: blur(48px) saturate(1.4);
  opacity: 0; visibility: hidden;
  transition: opacity 500ms var(--ease), visibility 0s linear 500ms;
}
.menu-open .menu { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu ul { display: grid; gap: var(--sp-75); }
.menu li, .menu .btn { opacity: 0; transform: translateY(var(--sp-600)); }
.menu-open .menu li, .menu-open .menu .btn {
  opacity: 1; transform: none;
  transition: opacity 700ms var(--ease) calc(100ms + var(--i, 0) * 50ms), transform 700ms var(--ease) calc(100ms + var(--i, 0) * 50ms);
}
.menu a:not(.btn) {
  display: block; padding: var(--sp-75) 0; font-size: 36px; line-height: 40px; font-weight: 600;
  letter-spacing: -0.03em; text-decoration: none;
}
.menu .btn { margin-top: var(--sp-400); align-self: flex-start; }

/* ---------- reveal on scroll (B7) ---------- */
html.js:not(.no-reveal) .reveal {
  opacity: 0; transform: translateY(var(--sp-700)); filter: blur(12px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease), filter 900ms var(--ease);
  transition-delay: var(--d, 0ms);
}
html.js:not(.no-reveal) .reveal.in { opacity: 1; transform: none; filter: none; }
html.js:not(.no-reveal) .reveal-soft { filter: none; }

/* ---------- forms ---------- */
.join { width: 100%; max-width: 520px; margin-inline: auto; text-align: left; }
.join-field { display: flex; flex-direction: column; gap: var(--sp-75); }
.join input {
  width: 100%; min-width: 0; height: 48px; padding: 0 var(--sp-200);
  border: 1px solid var(--control); border-radius: 12px; background: var(--surface);
  font: 400 16px/24px var(--font); color: var(--text);
  transition: border-color 200ms var(--ease);
}
.join input::placeholder { color: var(--muted); opacity: 1; }
.join input:hover { border-color: var(--muted); }
.join input[aria-invalid="true"] { border-color: var(--accent); }
.join-msg { display: none; align-items: flex-start; gap: var(--sp-75); margin-top: var(--sp-100); font-size: 14px; line-height: 20px; color: var(--accent); }
.join-msg.show { display: flex; }
.join-msg .ic { width: 16px; height: 16px; margin-top: 2px; }
.join-done { display: none; align-items: flex-start; gap: var(--sp-100); padding: var(--sp-200); border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); }
.join-done .ic { width: 24px; height: 24px; color: var(--right); }
.join-done p { font-size: 16px; line-height: 24px; }
.join-done strong { font-weight: 600; }
.join[data-state="done"] .join-field, .join[data-state="done"] .join-msg { display: none; }
.join[data-state="done"] .join-done { display: flex; }
.join-done:focus { outline: none; }
@media (min-width: 560px) {
  .join-field {
    flex-direction: row; gap: var(--sp-50); padding: var(--sp-50);
    border: 1px solid var(--control); border-radius: 16px; background: var(--surface);
    transition: border-color 200ms var(--ease);
  }
  .join-field:hover { border-color: var(--muted); }
  .join-field:focus-within { outline: 2px solid var(--accent-ink); outline-offset: 0; }
  .join input { flex: 1; height: 48px; border: 0; border-radius: 12px; background: transparent; }
  .join input:focus-visible { outline: none; }
  .join input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--accent); }
  .join-field:has(input[aria-invalid="true"]) { border-color: var(--accent); }
  .join .btn { flex: none; }
}

/* ---------- hero ---------- */
.hero { padding-top: calc(var(--nav-top) + var(--nav-h) + var(--sp-600)); padding-bottom: var(--sp-700); text-align: center; }
.hero-title { max-width: 680px; margin-inline: auto; }
.hero-title .ln, .final .h1 .ln { display: block; }
.hero-title .ln + .ln, .final .h1 .ln + .ln { margin-top: var(--sp-50); }
.circled { position: relative; display: inline-block; white-space: nowrap; }
.circle {
  position: absolute; left: calc(var(--circle-x) * -1); top: calc(var(--circle-y) * -1);
  width: calc(100% + var(--circle-x) * 2); height: calc(100% + var(--circle-y) * 2);
  max-width: none; overflow: visible; pointer-events: none;
}
.circle .stroke { fill: none; stroke: var(--accent-ink); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.circle .tip { fill: var(--accent-ink); }
html.js:not(.no-reveal) .circled:not(.is-drawn) .stroke { stroke-dashoffset: 1.05; }
html.js:not(.no-reveal) .circled:not(.is-drawn) .tip { opacity: 0; }
.circled.is-drawn .stroke { stroke-dashoffset: 0; transition: stroke-dashoffset 900ms var(--ease); }
.circled.is-drawn .tip { opacity: 1; transition: opacity 300ms var(--ease) 800ms; }
.hero .lead { max-width: 680px; margin: var(--sp-300) auto 0; }
.hero .join { margin-top: var(--sp-400); }
.hero .fine { margin-top: var(--sp-100); }
.proof-line { max-width: 560px; margin: var(--sp-300) auto 0; text-wrap: balance; }
.demo { width: 100%; max-width: 1040px; margin: var(--sp-600) auto 0; }

.ipad {
  position: relative; padding: var(--sp-100); border-radius: 24px; background: var(--bezel);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1), 0 0 0 1px rgb(27 31 41 / 0.16), 0 1px 2px rgb(0 0 0 / 0.06),
    0 24px 48px -12px rgb(27 31 41 / 0.22), 0 48px 96px -24px rgb(27 31 41 / 0.2);
}
.ipad::before {
  content: ""; position: absolute; top: var(--sp-50); left: 50%; width: 4px; height: 4px; transform: translateX(-50%);
  border-radius: 50%; background: #272b35;
}
.screen { position: relative; overflow: hidden; border-radius: 12px; background: var(--paper); aspect-ratio: 1194 / 834; }
.screen video { width: 100%; height: 100%; object-fit: cover; }
.play-overlay {
  position: absolute; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; border: 0;
  background: rgb(27 31 41 / 0.08); color: var(--text);
}
.play-overlay[hidden] { display: none; }
.play-overlay span {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 9999px;
  background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-chrome);
  transition: transform 300ms var(--ease), background-color 200ms var(--ease);
}
.play-overlay:hover span { background: var(--accent-hover); transform: scale(1.04); }
.play-overlay:active span { transform: scale(0.97); }
.play-overlay .ic { width: 28px; height: 28px; margin-left: var(--sp-25); }
@media (min-width: 720px) {
  .ipad { padding: var(--sp-200); border-radius: 32px; }
  .ipad::before { width: 6px; height: 6px; }
  .screen { border-radius: 16px; }
}
.demo-cap { display: flex; flex-direction: column; align-items: center; gap: var(--sp-100); margin-top: var(--sp-200); font-size: 14px; line-height: 20px; color: var(--muted); text-align: center; }
.demo-cap p { max-width: 560px; }
.demo-cap strong { color: var(--text); font-weight: 600; }
.vbtn {
  display: inline-flex; align-items: center; gap: var(--sp-75); min-height: 40px; padding: var(--sp-75) var(--sp-200) var(--sp-75) var(--sp-100);
  border: 1px solid var(--line-strong); border-radius: 9999px; background: var(--surface);
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text);
  transition: background-color 200ms var(--ease), transform 200ms var(--ease);
}
.vbtn:hover { background: var(--desk); }
.vbtn:active { transform: scale(0.98); }
.vbtn[hidden] { display: none; }
.vbtn .ic { width: 16px; height: 16px; }
@media (min-width: 720px) { .demo-cap { flex-direction: row; justify-content: center; text-align: left; } }

/* ---------- steps ---------- */
.steps { display: grid; gap: var(--sp-600); margin-top: var(--sp-600); }
.step .shot { margin-bottom: var(--sp-300); }
.step .shot img { aspect-ratio: 3 / 2; object-fit: cover; }
.step h3 { font-size: 24px; line-height: 32px; letter-spacing: -0.02em; }
.step p { margin-top: var(--sp-75); color: var(--muted); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--sp-300); } }
@media (min-width: 1100px) { .steps { gap: var(--sp-400); } }

.shot {
  padding: var(--sp-50); border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  box-shadow: var(--shadow-card);
}
.shot img { width: 100%; height: auto; border-radius: 12px; }
.shot-bare { max-width: 640px; padding: 0; border: 0; background: none; box-shadow: none; }
.shot-bare img { border-radius: 0; filter: drop-shadow(0 1px 2px rgb(27 31 41 / 0.08)) drop-shadow(0 16px 24px rgb(27 31 41 / 0.12)); }

/* ---------- tagline reveal (B11) ---------- */
.tagline { display: grid; align-items: center; min-height: min(56vh, 480px); padding-block: var(--sp-800); }
.tagline-text {
  max-width: 1000px; margin-inline: auto; text-align: center;
  font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance;
}
@media (min-width: 720px) { .tagline-text { font-size: 48px; line-height: 48px; } }
@media (min-width: 1100px) { .tagline-text { font-size: 60px; line-height: 60px; } }
.tagline-text .w { transition: color 900ms var(--ease); }
html.js:not(.no-reveal) .tagline-text:not(.all-on) .w { color: rgb(27 31 41 / 0.28); }
html.js:not(.no-reveal) .tagline-text:not(.all-on) .w.on { color: var(--text); }

/* ---------- benefits ---------- */
.benefits { display: grid; gap: var(--sp-700); }
.benefit { display: grid; gap: var(--sp-300); align-items: center; }
.benefit-copy { max-width: 480px; }
.benefit-copy p { margin-top: var(--sp-100); color: var(--muted); font-size: 18px; line-height: 28px; }
@media (min-width: 900px) {
  .benefits { gap: var(--sp-900); }
  .benefit { grid-template-columns: 5fr 7fr; gap: var(--sp-700); }
  .benefit:nth-child(even) { grid-template-columns: 7fr 5fr; }
  .benefit:nth-child(even) .benefit-copy { order: 2; justify-self: end; }
  .benefit:nth-child(even) .shot { order: 1; }
}

/* ---------- proof ---------- */
.proof { background: var(--desk); }
.proof-grid { display: grid; gap: var(--sp-400); align-items: center; }
.stat { font: 500 72px/1 var(--mono); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.stat-label { margin-top: var(--sp-100); max-width: 240px; color: var(--muted); font-size: 14px; line-height: 20px; }
.proof-copy .lead { margin-top: var(--sp-200); color: var(--text); }
.proof-copy .fine { margin-top: var(--sp-300); }
@media (min-width: 720px) { .stat { font-size: 96px; } }
@media (min-width: 900px) { .proof-grid { grid-template-columns: auto 1fr; gap: var(--sp-800); } }

/* ---------- pricing ---------- */
.plans { display: grid; gap: var(--sp-200); margin-top: var(--sp-600); }
.plan {
  display: flex; flex-direction: column; gap: var(--sp-200); padding: var(--sp-300);
  border: 1px solid var(--line); border-radius: 24px; background: var(--surface);
}
.plan-beta { border-color: var(--text); box-shadow: var(--shadow-card); }
.plan h3 { font-size: 16px; line-height: 24px; font-weight: 600; }
.plan .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-75); color: var(--text); }
.price .big { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.price span:not(.big) { color: var(--muted); }
.plan p { color: var(--muted); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan .grow { flex: 1; }
.cancel { display: flex; align-items: center; justify-content: center; gap: var(--sp-75); margin-top: var(--sp-300); color: var(--muted); font-size: 14px; line-height: 20px; }
.cancel .ic { width: 16px; height: 16px; color: var(--right); }
@media (min-width: 720px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .plan-beta { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .plans { grid-template-columns: repeat(3, 1fr); }
  .plan-beta { grid-column: auto; }
}

/* ---------- faq ---------- */
.faq-grid { display: grid; gap: var(--sp-400); }
.faq-intro p { margin-top: var(--sp-100); color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-200); min-height: 64px;
  padding: var(--sp-200) 0; font-size: 18px; line-height: 28px; font-weight: 500; list-style: none;
  cursor: pointer; border-radius: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ic { color: var(--muted); transition: transform 400ms var(--ease); }
.faq-list details[open]:not([data-closing]) summary .ic { transform: rotate(45deg); }
.faq-list summary:hover .ic { color: var(--text); }
.faq-a { overflow: hidden; }
.faq-a p { max-width: 640px; padding-bottom: var(--sp-300); color: var(--muted); }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 4fr 8fr; gap: var(--sp-700); } .faq-intro { padding-top: var(--sp-200); } }

/* ---------- final call and footer ---------- */
.final { background: var(--desk); text-align: center; }
.final .h1 { max-width: 680px; margin-inline: auto; }
.final .join { margin-top: var(--sp-400); }
.final .fine { margin-top: var(--sp-100); }
.foot { padding-block: var(--sp-600); background: var(--desk); border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-300); }
.foot .brand { height: 40px; padding: 0; }
.foot .brand span { display: inline; padding: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--sp-100) var(--sp-300); }
.foot-links a { color: var(--muted); font-size: 14px; line-height: 20px; text-decoration: none; padding: var(--sp-75) 0; }
.foot-links a:hover, .foot-links a[aria-current="page"] { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.legal { margin-top: var(--sp-300); max-width: 640px; color: var(--muted); font-size: 12px; line-height: 16px; }
@media (min-width: 720px) { .foot-row { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- legal pages and 404 ---------- */
.doc { padding-top: calc(var(--nav-top) + var(--nav-h) + var(--sp-700)); padding-bottom: var(--sp-900); }
.doc .wrap { max-width: 720px; }
.back { display: inline-flex; align-items: center; gap: var(--sp-75); margin-bottom: var(--sp-300); color: var(--muted); font-size: 14px; line-height: 20px; text-decoration: none; }
.back:hover { color: var(--text); }
.back .ic { transform: rotate(90deg); width: 16px; height: 16px; }
.doc h1 { font-size: 36px; line-height: 40px; letter-spacing: -0.035em; }
.doc .updated { margin-top: var(--sp-100); color: var(--muted); font-size: 14px; line-height: 20px; }
.doc h2 { margin-top: var(--sp-600); font-size: 24px; line-height: 32px; letter-spacing: -0.02em; }
.doc p, .doc li { margin-top: var(--sp-100); }
.doc ul { margin-top: var(--sp-100); padding-left: var(--sp-300); list-style: disc; }
.doc li::marker { color: var(--muted); }
.doc .lead { margin-top: var(--sp-300); color: var(--text); }
@media (min-width: 720px) { .doc h1 { font-size: 48px; line-height: 48px; } }
.nf { display: grid; place-items: center; min-height: 100vh; padding: calc(var(--nav-top) + var(--nav-h) + var(--sp-700)) var(--sp-200) var(--sp-900); text-align: center; }
.nf .lead { max-width: 480px; margin: var(--sp-300) auto 0; }
.nf .btn { margin-top: var(--sp-400); }
.nf .h1 .ln { display: block; }
.nf .h1 .ln + .ln { margin-top: var(--sp-75); }

/* ---------- reduced motion: fades only, no flight, no stroke reveals, no autoplay ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  html.js .circled .stroke { stroke-dashoffset: 0 !important; transition: none !important; }
  html.js .circled .tip { opacity: 1 !important; transition: none !important; }
  html.js .tagline-text .w { color: var(--text) !important; transition: none !important; }
  .menu, .menu li, .menu .btn, .bars i, .btn, .skip, .faq-list summary .ic { transition-duration: 1ms !important; transition-delay: 0s !important; }
}
