/* ============================================================
   FOLIO — folio.app
   Design system per folio-brand-guide.md
   Bone paper, ink type, Fraunces italic emotion, Inter clarity.
   ============================================================ */

:root {
  /* color tokens — brand guide §4 */
  --bone: #F5F1EA;
  --cream: #FAF6EF;
  --porcelain: #FFFCF7;
  --ink: #1C1A17;
  --ink-soft: #48433D;
  --ink-muted: #8A8278;
  --line: #E6DFD3;
  --accent: #3E5C48;
  --accent-soft: #D8E2D3;
  --score-calm: #7A9E7E;
  --score-neutral: #C9A55A;
  --score-focus: #B97B5A;
  --score-water: #7A9BB0;
  --blush: #E8B8B0;

  /* shadow tokens — §8 */
  --shadow-sm: 0 1px 2px rgba(28,26,23,0.04);
  --shadow-md: 0 8px 24px rgba(28,26,23,0.06);
  --shadow-lg: 0 24px 60px rgba(28,26,23,0.10);

  /* radius — §7 */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* motion — §13 */
  --ease-brand: cubic-bezier(0.2, 0, 0, 1);
  --dur: 280ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; }
::selection { background: var(--accent-soft); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* paper grain — §10, 4-6% opacity */
.grain::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

/* ---------- primitives ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--ink-muted);
  opacity: 0.6;
}
.eyebrow--bare::before { display: none; }

.display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 380;
  font-variation-settings: "opsz" 144;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.06;
}

.h-xl { font-size: clamp(44px, 7vw, 84px); }
.h-l  { font-size: clamp(34px, 4.6vw, 56px); }
.h-m  { font-size: clamp(26px, 3.2vw, 36px); }

.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 54ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 30px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.002em;
  transition: transform var(--dur) var(--ease-brand), background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary { background: var(--ink); color: var(--porcelain); }
.btn--primary:hover { background: #2E2A25; box-shadow: var(--shadow-md); }
.btn--secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--porcelain); }
.btn--small { height: 44px; padding: 0 22px; font-size: 14px; }
.btn:active { transform: scale(0.98); }

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

/* ---------- reveal on scroll — fade + 8pt rise, 280ms ---------- */
.rv {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms var(--ease-brand), transform 600ms var(--ease-brand);
  transition-delay: var(--rv-delay, 0ms);
}
.rv.is-in { opacity: 1; transform: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 12px 10px 24px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--porcelain) 82%, transparent);
  border: 1px solid transparent;
  transition: background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav.is-scrolled .nav__inner {
  border-color: var(--line);
  box-shadow: var(--shadow-md);
}
.nav__logo {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  padding-bottom: 4px; /* room for the f descender */
}
.nav__links { display: flex; gap: 22px; align-items: center; }
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 180ms ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta { margin-left: 4px; }

.nav__burger { display: none; }

@media (max-width: 820px) {
  .nav__links, .nav__cta { display: none; }
  .nav__inner { width: 100%; justify-content: space-between; padding: 10px 16px 10px 22px; }
  .nav__burger {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: var(--r-pill);
    color: var(--ink);
  }
  .nav.is-open .nav__inner { border-radius: var(--r-lg); }
}
.nav__sheet { display: none; }
.nav.is-open .nav__sheet {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  pointer-events: auto;
}
.nav__sheet a {
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-weight: 500;
  color: var(--ink);
}
.nav__sheet a:hover { background: var(--cream); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(140px, 18vh, 200px) 0 clamp(60px, 8vw, 110px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero__copy > * + * { margin-top: 28px; }
.hero__title { max-width: 12ch; }
.hero__title .accent { color: var(--accent); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__note {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__note .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: breathe 2.4s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.5); opacity: 1; }
}

/* stage that holds the tilted report */
.hero__stage {
  position: relative;
  perspective: 1400px;
  min-height: 540px;
}
.hero__report {
  transform: rotate(2.5deg);
  transition: transform 700ms var(--ease-brand);
}
.hero__stage:hover .hero__report { transform: rotate(1deg) translateY(-4px); }

/* floating chips around the report */
.chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  animation: float 7s ease-in-out infinite;
  will-change: transform;
}
.chip .pin { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.chip small { display: block; font-size: 10px; font-weight: 500; color: var(--ink-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.chip--tzone { top: 4%; left: -7%; animation-delay: 0.6s; }
.chip--barrier { bottom: 22%; right: -5%; animation-delay: 1.8s; }
.chip--hydration { top: 46%; left: -10%; animation-delay: 3s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { min-height: 0; margin-top: 12px; }
  .hero__report { transform: rotate(0); max-width: 460px; margin: 0 auto; }
  .chip--tzone { top: -18px; left: 6%; }
  .chip--barrier { right: 2%; bottom: -14px; }
  .chip--hydration { display: none; }
}

/* ============================================================
   THE REPORT SHEET (CSS recreation — brand guide §14)
   ============================================================ */
.report {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(26px, 3.4vw, 44px);
  position: relative;
  overflow: hidden;
}
.report::after { /* inner grain */
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.report__band {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.report__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 380;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-top: 14px;
}
.report hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: clamp(18px, 2.2vw, 28px) 0;
}

.report__id {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(18px, 2.6vw, 34px);
  align-items: center;
}
.facewrap {
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 10px;
}
.facewrap svg { width: 100%; height: auto; display: block; }

.report__facts { display: grid; gap: 18px; }
.fact .eyebrow { margin-bottom: 4px; }
.fact strong {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 480;
  font-size: clamp(19px, 2vw, 24px);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.fact span { display: block; font-size: 13px; color: var(--ink-muted); margin-top: 2px; }

/* score row */
.report__scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
}
.score {
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(12px, 1.6vw, 18px);
}
.score .eyebrow { font-size: 10px; }
.score__num {
  font-family: var(--font-display);
  font-weight: 460;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
}
.score__bar {
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  margin: 10px 0 8px;
  overflow: hidden;
}
.score__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: var(--score-calm);
  transition: width 900ms cubic-bezier(0.6, 0, 0.2, 1);
}
.is-in .score__bar i, .score.is-in .score__bar i { width: var(--val); }
.score__label { font-size: 12px; font-weight: 500; color: var(--ink-soft); }

/* focus areas + routines inside report */
.report__list { display: grid; gap: 10px; }
.report__list li {
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 14px;
  color: var(--ink-soft);
}
.report__list .pin { width: 7px; height: 7px; border-radius: 50%; flex: none; transform: translateY(-1px); }
.report__list strong { color: var(--ink); font-weight: 600; }

.report__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.4vw, 32px);
}
.report__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--ink-muted);
}
.report__foot .fmark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
}
.tagrow { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 12px;
}
.tag--avoid { color: var(--score-focus); border-color: color-mix(in srgb, var(--score-focus) 30%, var(--line)); }

/* hero (compact) variant hides deep sections */
.report--compact .report__deep { display: none; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(70px, 9vw, 130px) 0; position: relative; }
.section--cream { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head .display { margin-top: 16px; }
.section__head p { margin-top: 18px; }

/* --- how it works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.step {
  padding: clamp(24px, 2.6vw, 36px);
  position: relative;
  overflow: hidden;
  transition: transform 400ms var(--ease-brand), box-shadow 400ms var(--ease-brand);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 380;
  font-size: 68px;
  line-height: 1;
  color: var(--line);
  transition: color 400ms ease;
}
.step:hover .step__num { color: var(--accent-soft); }
.step h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 420;
  font-size: 24px;
  color: var(--ink);
  margin: 18px 0 10px;
}
.step p { font-size: 15px; color: var(--ink-soft); }
.step .eyebrow { position: absolute; top: 28px; right: 28px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* --- signals grid --- */
.signals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 24px);
}
.signal {
  padding: clamp(20px, 2.4vw, 30px);
  transition: transform 400ms var(--ease-brand), box-shadow 400ms var(--ease-brand);
}
.signal:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.signal__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.signal__dot { width: 10px; height: 10px; border-radius: 50%; }
.signal h3 { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.002em; }
.signal p { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
.signal .score__bar { margin-top: 16px; }
@media (max-width: 860px) { .signals { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .signals { grid-template-columns: 1fr; } }

/* --- app gallery --- */
.gallery {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  padding: 8px 4px 28px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.shot {
  flex: 0 0 auto;
  width: clamp(220px, 24vw, 280px);
  scroll-snap-align: center;
}
.shot__frame {
  border-radius: 36px;
  border: 1px solid var(--line);
  background: var(--ink);
  padding: 10px;
  box-shadow: var(--shadow-lg);
  transition: transform 500ms var(--ease-brand);
}
.shot:hover .shot__frame { transform: translateY(-8px); }
.shot__frame img { border-radius: 28px; width: 100%; }
.shot figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
}

/* --- ingredient marquee --- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  padding: 22px 0;
  display: flex;
}
.marquee__track {
  display: flex;
  gap: 44px;
  flex: none;
  min-width: 100%;
  align-items: center;
  padding-right: 44px;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee__item {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--ink-soft);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 44px;
}
.marquee__item::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

/* --- membership --- */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: clamp(16px, 2vw, 28px);
}
.plan { padding: clamp(26px, 3vw, 38px); position: relative; }
.plan--featured {
  background: var(--porcelain);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-lg);
}
.plan__badge {
  position: absolute;
  top: -13px;
  right: 26px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--r-pill);
}
.plan h3 { font-size: 15px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.02em; }
.plan__price {
  font-family: var(--font-display);
  font-weight: 440;
  font-size: clamp(40px, 4.4vw, 54px);
  color: var(--ink);
  margin: 12px 0 2px;
  letter-spacing: -0.02em;
}
.plan__price span { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--ink-muted); letter-spacing: 0; }
.plan__sub { font-size: 13px; color: var(--ink-muted); }
.plan ul { margin: 22px 0 0; display: grid; gap: 11px; }
.plan li { list-style: none; display: flex; gap: 11px; font-size: 14.5px; color: var(--ink-soft); align-items: baseline; }
.plan li svg { flex: none; transform: translateY(2px); color: var(--accent); }
.plans__note {
  text-align: center;
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 26px;
}
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* --- privacy promises --- */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 24px); }
.promise { padding: clamp(20px, 2.4vw, 30px); }
.promise svg { color: var(--accent); margin-bottom: 16px; }
.promise h3 { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.promise p { font-size: 13.5px; color: var(--ink-soft); }
@media (max-width: 900px) { .promises { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .promises { grid-template-columns: 1fr; } }

/* --- FAQ --- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 4px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  transition: color 180ms ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary .ic {
  flex: none;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  transition: transform 300ms var(--ease-brand), background-color 200ms ease;
}
.faq details[open] summary .ic { transform: rotate(45deg); background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.faq .faq__a { padding: 0 4px 26px; font-size: 15px; color: var(--ink-soft); max-width: 62ch; }
.faq .faq__a a { text-decoration: underline; text-underline-offset: 3px; }

/* --- final CTA --- */
.cta {
  text-align: center;
  padding: clamp(90px, 12vw, 160px) 0;
}
.cta .display { margin: 18px auto 30px; max-width: 16ch; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  background: var(--cream);
  padding: 60px 0 40px;
}
.footer__grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer__mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 44px;
  color: var(--ink);
  line-height: 1;
}
.footer__tag { font-size: 13px; color: var(--ink-muted); margin-top: 10px; }
.footer__cols { display: flex; gap: clamp(40px, 6vw, 90px); flex-wrap: wrap; }
.footer__col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.footer__col a {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 5px 0;
  transition: color 180ms ease;
}
.footer__col a:hover { color: var(--ink); }
.footer__legal {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-muted);
}
.footer__legal .disclaimer { max-width: 60ch; }

/* ============================================================
   DOC PAGES (privacy / terms / support)
   ============================================================ */
.doc-hero {
  padding: clamp(140px, 16vh, 190px) 0 clamp(40px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.doc-hero .display { margin-top: 16px; max-width: 20ch; }
.doc-hero .meta { margin-top: 18px; font-size: 13px; color: var(--ink-muted); }

.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  padding: clamp(50px, 6vw, 80px) 0 clamp(80px, 9vw, 120px);
}
.doc-toc {
  position: sticky;
  top: 110px;
  align-self: start;
  display: grid;
  gap: 2px;
}
.doc-toc a {
  font-size: 13.5px;
  color: var(--ink-muted);
  padding: 7px 12px;
  border-left: 1px solid var(--line);
  transition: color 180ms ease, border-color 180ms ease;
}
.doc-toc a:hover, .doc-toc a.is-active { color: var(--ink); border-left-color: var(--ink); }
@media (max-width: 860px) { .doc-layout { grid-template-columns: 1fr; } .doc-toc { display: none; } }

.prose { max-width: 70ch; }
.prose h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 420;
  font-size: 28px;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 54px 0 16px;
  scroll-margin-top: 110px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 30px 0 10px; }
.prose p { margin: 0 0 16px; font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); }
.prose ul { margin: 0 0 16px 20px; display: grid; gap: 8px; }
.prose li { font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose .callout {
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--cream); font-weight: 600; color: var(--ink); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }

/* support cards */
.support-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0 0 40px; }
.support-card { padding: 28px; }
.support-card h3 { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.support-card p { font-size: 14px; color: var(--ink-soft); margin: 0 0 16px; }
@media (max-width: 700px) { .support-cards { grid-template-columns: 1fr; } }

/* ============================================================
   MOTION SAFETY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .rv { opacity: 1; transform: none; }
  .score__bar i { width: var(--val) !important; }
}
