/* Mileproof · Joint & tendon support for runners
   A Highform brand. Static site, self-hosted fonts, no third-party requests. */

@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }

:root {
  --paper: #FAF9F6;
  --stone: #F1EEE7;
  --sand: #E9E2D6;
  --ink: #0E0F11;
  --ink-2: #3B3D42;
  --ink-3: #6E7077;
  --line: rgba(14, 15, 17, .10);
  --orange: #F05A22;
  --orange-deep: #C9420F;
  --orange-soft: #FDE7DC;
  --night: #121316;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --serif: "Instrument Serif", Georgia, serif;

  --r-lg: 32px;
  --r-md: 22px;
  --r-sm: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.orange { color: var(--orange); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; padding: 0 12px; pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 6px;
  width: 100%; max-width: 980px;
  padding: 7px 7px 7px 20px;
  background: rgba(250, 249, 246, .78);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 30px -12px rgba(14,15,17,.18);
  transition: background .3s var(--ease);
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand__word { font-weight: 800; letter-spacing: -.035em; font-size: 19px; line-height: 1; display: flex; align-items: center; gap: 2px; }
.brand__word i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-left: 3px; transform: translateY(-5px); }
.brand__desc { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.nav__links { display: flex; gap: 2px; }
.nav__links a {
  text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  padding: 9px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav__links a:hover { background: rgba(14,15,17,.06); color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: -.005em;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .2s, box-shadow .25s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { box-shadow: 0 10px 24px -10px rgba(14,15,17,.5); }
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-deep); box-shadow: 0 12px 28px -12px rgba(240,90,34,.7); }
.btn--ghost { background: transparent; border-color: rgba(14,15,17,.18); color: var(--ink); }
.btn--ghost:hover { background: rgba(14,15,17,.05); }
.btn--light { background: #fff; color: var(--ink); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.nav .btn { padding: 11px 18px; font-size: 14px; }
.nav__menu { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.nav__menu span { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; }
.nav__menu span::before, .nav__menu span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink); transition: transform .25s; }
.nav__menu span::before { top: -5px; } .nav__menu span::after { top: 5px; }
.sheet {
  position: fixed; inset: 0; z-index: 49; background: var(--paper);
  padding: 96px var(--gutter) 32px; display: flex; flex-direction: column; gap: 4px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.sheet a { font-size: 34px; font-weight: 700; letter-spacing: -.035em; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sheet .btn { margin-top: 20px; font-size: 17px; padding: 16px; border: 0; }
body.menu-open .sheet { opacity: 1; visibility: visible; }
body.menu-open .nav__menu span { background: transparent; }
body.menu-open .nav__menu span::before { transform: translateY(5px) rotate(45deg); }
body.menu-open .nav__menu span::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__links, .nav .btn--orange { display: none; }
  .nav__menu { display: inline-flex; }
}
@media (max-width: 560px) {
  .brand { flex-direction: column; align-items: flex-start; gap: 3px; }
  .brand__desc { font-size: 9px; }
  .nav__pill { padding-left: 18px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; padding: 120px 0 56px;
  display: flex; align-items: center; overflow: hidden;
  background:
    radial-gradient(80% 60% at 78% 45%, #FFE3D4 0%, rgba(255,227,212,0) 60%),
    linear-gradient(180deg, #F6F2EA 0%, var(--paper) 100%);
}
.hero__track { position: absolute; inset: 0; pointer-events: none; opacity: .9; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 24px; align-items: center; width: 100%; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.hero__eyebrow b { background: var(--orange); color: #fff; padding: 3px 9px; border-radius: 999px; font-weight: 500; }
.hero h1 {
  font-size: clamp(56px, 9.4vw, 148px); line-height: .88; letter-spacing: -.055em; font-weight: 800;
  margin: 26px 0 26px;
}
.hero h1 .serif { font-weight: 400; letter-spacing: -.03em; color: var(--orange); padding-right: .06em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { to { transform: none; } }
.hero__lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 34ch; margin: 0 0 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 40px; color: var(--ink-3); }
.hero__meta span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-right: 8px; transform: translateY(-1px); }
.stage { position: relative; aspect-ratio: 1 / 1.08; width: 100%; max-width: 560px; justify-self: center; }
.stage canvas { width: 100% !important; height: 100% !important; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.stage__tag {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 14px; box-shadow: 0 14px 30px -18px rgba(14,15,17,.35); font-size: 13px; line-height: 1.3;
}
.stage__tag .mono { font-size: 10px; color: var(--ink-3); display: block; margin-bottom: 2px; }
.stage__tag--a { left: 0; top: 22%; }
.stage__tag--b { right: 0; bottom: 20%; }
.stage__shadow { position: absolute; left: 22%; right: 22%; bottom: 6%; height: 26px; background: radial-gradient(closest-side, rgba(14,15,17,.22), transparent); filter: blur(4px); }

@media (max-width: 900px) {
  .hero { padding-top: 104px; min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .stage { max-width: 380px; margin-top: 8px; }
  .hero h1 { margin: 22px 0 20px; }
  .hero__meta { margin-top: 28px; }
  .stage__tag--a { left: 2%; } .stage__tag--b { right: 2%; }
}

/* ---------- Ticker ---------- */
.ticker { background: var(--ink); color: #fff; overflow: hidden; padding: 18px 0; }
.ticker__row { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker__row span { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; padding: 0 22px; white-space: nowrap; display: flex; align-items: center; gap: 44px; }
.ticker__row span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.pad { padding: clamp(80px, 11vw, 150px) 0; }
.kicker { color: var(--orange); display: inline-flex; gap: 10px; align-items: center; }
.kicker::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.h2 { font-size: clamp(40px, 6vw, 88px); line-height: .95; letter-spacing: -.05em; font-weight: 750; margin: 18px 0 0; }
.h2 .serif { font-weight: 400; letter-spacing: -.025em; }
.lead { font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-2); max-width: 46ch; }

/* Statement panel */
.panel {
  background: var(--night); color: #fff; border-radius: var(--r-lg);
  margin: 0 12px; padding: clamp(64px, 10vw, 140px) 0; overflow: hidden; position: relative;
}
.panel .h2 { max-width: 15ch; }
.panel .h2 .serif { color: var(--orange); }
.panel__cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.panel p { color: rgba(255,255,255,.72); font-size: 19px; max-width: 40ch; margin: 0 0 18px; }
.panel__lanes { position: absolute; right: -10%; top: -20%; width: 70%; opacity: .5; pointer-events: none; }
@media (max-width: 900px) { .panel__cols { grid-template-columns: 1fr; gap: 24px; } }

/* Formula */
.formula__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  background: var(--stone); border-radius: var(--r-md); padding: 30px; min-height: 360px;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-4px); }
.card__no { color: var(--ink-3); }
.card h3 { font-size: 30px; letter-spacing: -.035em; line-height: 1.02; margin: auto 0 14px; font-weight: 700; }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.card__claim { margin-top: 18px !important; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px !important; }
.card--orange { background: var(--orange); color: #fff; }
.card--orange .card__no, .card--orange p { color: rgba(255,255,255,.86); }
.card--orange .card__claim { border-color: rgba(255,255,255,.3); }
.card--ink { background: var(--ink); color: #fff; }
.card--ink p, .card--ink .card__no { color: rgba(255,255,255,.7); }
.card__art { position: absolute; right: -30px; top: -30px; width: 190px; height: 190px; opacity: .9; }
@media (max-width: 900px) {
  .formula__head { grid-template-columns: 1fr; gap: 16px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 280px; }
}

/* Ritual */
.ritual { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); margin-top: 56px; }
.ritual > div { padding: 30px 28px 0 0; }
.ritual > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.ritual b { display: block; font-size: clamp(36px, 4vw, 54px); letter-spacing: -.05em; line-height: 1; margin: 14px 0 10px; font-weight: 750; }
.ritual p { margin: 0; color: var(--ink-2); }
@media (max-width: 900px) {
  .ritual { grid-template-columns: 1fr; }
  .ritual > div, .ritual > div + div { padding: 26px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* How to order */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { background: var(--stone); border-radius: var(--r-md); padding: 30px; min-height: 250px; display: flex; flex-direction: column; }
.step h3 { font-size: 28px; letter-spacing: -.035em; line-height: 1.05; margin: auto 0 12px; font-weight: 700; }
.step p { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .step { min-height: 200px; } }

/* Training block chart */
.block { background: var(--stone); border-radius: var(--r-lg); margin: 0 12px; }
.block__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; }
.chart { background: #fff; border-radius: var(--r-md); padding: 26px 26px 18px; border: 1px solid var(--line); }
.chart__top { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-3); margin-bottom: 20px; flex-wrap: wrap; }
.chart__top b { color: var(--ink); font-weight: 500; }
.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 260px; position: relative; }
.bar { position: relative; height: 100%; display: flex; align-items: flex-end; }
.bar i {
  display: block; width: 100%; border-radius: 8px 8px 4px 4px; background: var(--sand);
  height: 0; transition: height 1.1s var(--ease), background .3s;
}
.bar.is-cut i { background: repeating-linear-gradient(135deg, var(--sand) 0 6px, #F3EEE6 6px 12px); }
.bar.is-taper i { background: var(--orange-soft); }
.bar.is-race i { background: var(--orange); }
.bar span { position: absolute; bottom: calc(var(--h) + 6px); left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); opacity: 0; transition: opacity .4s .9s; }
.chart.in .bar span { opacity: 1; }
.bar:hover i { background: var(--ink); }
.bar.is-race:hover i { background: var(--orange-deep); }
.line-mp { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; pointer-events: none; }
.weeks { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; margin-top: 10px; text-align: center; color: var(--ink-3); font-family: var(--mono); font-size: 10.5px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; transform: translateY(1px); }
.legend .mp { width: 18px; height: 2px; background: var(--orange); border-radius: 0; transform: translateY(-3px); }
@media (max-width: 900px) {
  .block__grid { grid-template-columns: 1fr; }
  .chart { padding: 18px 14px 14px; }
  .bars { height: 200px; gap: 4px; } .weeks { gap: 4px; }
  .bar span { display: none; }
}

/* Niggle guide cards */
.guide__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.posts { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.post {
  grid-column: span 4; text-decoration: none; border-radius: var(--r-md); background: var(--stone);
  padding: 26px; min-height: 280px; display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), background .3s;
}
.post:hover { transform: translateY(-4px); }
.post--feature { grid-column: span 8; background: var(--ink); color: #fff; min-height: 440px; }
.post--feature .post__meta { color: rgba(255,255,255,.6); }
.post__meta { display: flex; justify-content: space-between; color: var(--ink-3); }
.post h3 { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.04em; line-height: 1; margin: auto 0 0; font-weight: 700; max-width: 16ch; }
.post--feature h3 { font-size: clamp(32px, 4vw, 58px); }
.post .soon { display: inline-block; margin-top: 14px; color: var(--ink-3); }
.post .read { display: inline-flex; gap: 8px; margin-top: 16px; color: var(--orange); }
.post__art { position: absolute; right: 26px; top: 58px; width: 40%; max-width: 280px; }
a.post[aria-disabled="true"] { cursor: default; }
a.post[aria-disabled="true"]:hover { transform: none; }
@media (max-width: 900px) {
  .post, .post--feature { grid-column: span 12; min-height: 220px; }
  .post--feature { min-height: 360px; }
  .post__art { width: 46%; top: 54px; opacity: .55; }
}

/* FAQ */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 24px 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 300; font-size: 28px; line-height: 1; color: var(--orange); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: -6px 0 24px; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; gap: 24px; } }

/* Waitlist */
.wait {
  margin: 0 12px; border-radius: var(--r-lg); background: var(--orange); color: #fff; overflow: hidden; position: relative;
}
.wait .h2 { max-width: 13ch; }
.wait .h2 .serif { color: var(--ink); }
.wait p { color: rgba(255,255,255,.9); font-size: 19px; max-width: 40ch; }
.wait__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; position: relative; }
.form { display: flex; gap: 8px; background: #fff; border-radius: 999px; padding: 6px; max-width: 520px; }
.form input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink);
  padding: 0 8px 0 18px; font-size: 16px;
}
.form input::placeholder { color: var(--ink-3); }
.form__note { font-size: 13.5px !important; color: rgba(255,255,255,.82) !important; margin-top: 14px; }
.form__note a { color: #fff; }
.wait__lanes { position: absolute; left: -5%; bottom: -40%; width: 80%; opacity: .25; pointer-events: none; }
@media (max-width: 900px) { .wait__grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) {
  .form { flex-direction: column; border-radius: 22px; padding: 8px; }
  .form input { padding: 14px 12px; }
}

/* Waitlist form extras */
.wl__row { display: flex; align-items: center; gap: 12px; margin-top: 12px; max-width: 520px; }
.wl__row label { color: rgba(255,255,255,.85); white-space: nowrap; }
.wl__row select {
  flex: 1; min-width: 0; appearance: none; -webkit-appearance: none; font: inherit; font-size: 15px;
  color: #fff; background: rgba(255,255,255,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='white' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 11px 40px 11px 18px; cursor: pointer;
}
.wl__row select option { color: var(--ink); }
.wl__consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; max-width: 520px; font-size: 14.5px; color: #fff; cursor: pointer; line-height: 1.45; }
.wl__consent input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border-radius: 6px; border: 1.5px solid rgba(255,255,255,.8); background: transparent; cursor: pointer; display: grid; place-content: center; }
.wl__consent input:checked { background: var(--ink); border-color: var(--ink); }
.wl__consent input:checked::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.wl__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl.is-error .wl__consent span, .wl.is-error .form { animation: nudge .35s; }
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.wl.is-busy button { opacity: .7; pointer-events: none; }
.wl.is-done { display: none; }
.form__status.is-done { font-size: 20px !important; color: #fff !important; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; max-width: 26ch; }
.form__status.is-err { color: #fff !important; background: rgba(14,15,17,.22); padding: 10px 14px; border-radius: 12px; }

/* Footer */
.foot { padding: 80px 0 36px; }
.foot__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 56px; }
.foot__big { font-size: clamp(64px, 16vw, 250px); font-weight: 850; letter-spacing: -.07em; line-height: .78; margin: 0 0 30px; color: var(--ink); user-select: none; }
.foot__big i { font-style: normal; color: var(--orange); }
.foot h4 { margin: 0 0 14px; color: var(--ink-3); font-weight: 500; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot ul a { text-decoration: none; color: var(--ink-2); }
.foot ul a:hover { color: var(--orange); }
.foot__tag { color: var(--ink-2); max-width: 32ch; margin: 0; }
.foot__legal { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.foot__legal p { margin: 0; max-width: 78ch; }
@media (max-width: 900px) { .foot__top { grid-template-columns: 1fr 1fr; } .foot__top > :first-child { grid-column: 1 / -1; } }

/* Reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
}

/* ---------- Article / guide pages ---------- */
.page-hero { padding: 150px 0 60px; background: linear-gradient(180deg, #F6F2EA, var(--paper)); }
.page-hero h1 { font-size: clamp(48px, 8vw, 120px); letter-spacing: -.055em; line-height: .9; margin: 18px 0 22px; font-weight: 800; }
.page-hero h1 .serif { color: var(--orange); font-weight: 400; letter-spacing: -.03em; }
.crumbs { color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--orange); }
.article { display: grid; grid-template-columns: 220px minmax(0, 700px); gap: 64px; padding: 40px 0 120px; justify-content: center; }
.toc { position: sticky; top: 110px; align-self: start; font-size: 14px; }
.toc h4 { margin: 0 0 12px; color: var(--ink-3); font-weight: 500; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { text-decoration: none; color: var(--ink-2); display: flex; gap: 10px; }
.toc a::before { content: counter(t, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--ink-3); padding-top: 3px; }
.toc a:hover { color: var(--orange); }
.prose { font-size: 18.5px; line-height: 1.68; color: var(--ink-2); }
.prose > p:first-child { font-size: 22px; line-height: 1.5; color: var(--ink); letter-spacing: -.01em; }
.prose h2 { font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -.04em; line-height: 1.05; color: var(--ink); margin: 64px 0 18px; font-weight: 700; scroll-margin-top: 110px; }
.prose h2 .n { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--orange); display: block; margin-bottom: 10px; font-weight: 500; }
.prose h3 { font-size: 22px; letter-spacing: -.02em; color: var(--ink); margin: 34px 0 8px; }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 1.1em; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--orange); }
.callout { background: var(--stone); border-radius: var(--r-md); padding: 24px 26px; margin: 32px 0; font-size: 17px; }
.callout .mono { color: var(--orange); display: block; margin-bottom: 8px; }
.callout p { margin: 0; }
.callout--warn { background: var(--ink); color: rgba(255,255,255,.82); }
.callout--warn strong { color: #fff; }
.table-wrap { overflow-x: auto; margin: 28px 0; border-radius: var(--r-sm); border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; background: var(--stone); }
.prose tr:last-child td { border-bottom: 0; }
.prose td.hl { color: var(--orange); font-weight: 600; }
.plug {
  margin-top: 64px; border-radius: var(--r-md); background: var(--orange); color: #fff; padding: 30px;
  display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap;
}
.plug h3 { margin: 0 0 6px; color: #fff; font-size: 26px; letter-spacing: -.03em; }
.plug p { margin: 0; color: rgba(255,255,255,.88); font-size: 15.5px; max-width: 44ch; }
.byline { display: flex; gap: 22px; flex-wrap: wrap; color: var(--ink-3); }
@media (max-width: 900px) {
  .article { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: static; margin-bottom: 30px; padding: 20px; background: var(--stone); border-radius: var(--r-sm); }
  .prose { font-size: 17.5px; }
}

/* Consultation */
.consult { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; padding: 30px 0 120px; align-items: start; }
.consult__side { position: sticky; top: 110px; }
.consult__side ol { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.consult__side li { display: flex; gap: 14px; color: var(--ink-2); }
.consult__side li b { color: var(--ink); display: block; }
.consult__side li .mono { color: var(--orange); padding-top: 3px; }
.cform { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 44px); display: grid; gap: 26px; }
.field { display: grid; gap: 8px; }
.field > label, .field > legend { font-weight: 600; letter-spacing: -.01em; font-size: 16px; padding: 0; }
.field small { color: var(--ink-3); font-weight: 400; font-size: 13.5px; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.cform input[type=text], .cform input[type=email], .cform textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper);
  border: 1px solid rgba(14,15,17,.14); border-radius: 14px; padding: 14px 16px; outline: 0; transition: border-color .2s, box-shadow .2s;
}
.cform textarea { min-height: 96px; resize: vertical; }
.cform input:focus, .cform textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(14,15,17,.16); font-size: 15px; cursor: pointer; transition: all .2s; user-select: none; }
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.tick { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); cursor: pointer; line-height: 1.45; }
.tick input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px; border: 1.5px solid rgba(14,15,17,.35); cursor: pointer; display: grid; place-content: center; }
.tick input:checked { background: var(--orange); border-color: var(--orange); }
.tick input:checked::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.consult__status { margin: 0; font-size: 15px; color: var(--ink-2); }
.consult__status.is-err { color: var(--orange-deep); font-weight: 500; }
@media (max-width: 900px) { .consult { grid-template-columns: 1fr; gap: 28px; } .consult__side { position: static; } .two { grid-template-columns: 1fr; } }

/* 404 */
.lost { min-height: 100svh; display: flex; align-items: center; padding: 120px 0 60px; }
.lost h1 { font-size: clamp(64px, 12vw, 180px); letter-spacing: -.06em; line-height: .85; margin: 16px 0 24px; font-weight: 850; }
.lost h1 .serif { color: var(--orange); font-weight: 400; }
