/* Qlozd website — shared stylesheet
   Tokens mirror src/theme.ts in the app. Light theme only. */

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

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --bg: #F6F3EE;
  --surface: #FFFFFF;
  --surface-alt: #EEE9E1;
  --ink: #1A1816;
  --ink-2: #45413B;
  --muted: #8A847B;        /* decorative only: fails 4.5:1 on ivory for small text */
  --line: #E6E1D8;
  --accent: #2F6F6A;
  --accent-ink: #1F4F4B;
  --accent-soft: #DCEAE7;
  --blush: #F2D9CF;
  --sand: #E9DCC7;
  --gold: #C9A24B;
  --danger: #B3261E;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Karla', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius-card: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --max: 1040px;
  --gutter: 16px;
  --header-h: 64px;
  --shadow: 0 6px 16px rgba(26, 24, 22, 0.08);
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.6;
  font-weight: 400;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }
svg { display: inline-block; vertical-align: middle; }

a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--accent); }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
h1 em, h2 em, .statement em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-ink);
}
h3 { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; line-height: 1.3; font-size: 1.2rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
strong { font-weight: 600; }
small { font-size: 0.875rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { font-size: clamp(1.9rem, 3vw, 2.75rem); }
.section-head p { color: var(--ink-2); font-size: 1.1rem; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 0.75rem;
}
.lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--ink-2); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.65rem 1.1rem;
  border-radius: var(--radius-pill); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; outline-color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 238, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); position: relative; }

.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand-mark { fill: var(--accent); }
.brand-mark-line { fill: none; stroke: #fff; stroke-width: 90; stroke-linecap: round; stroke-linejoin: round; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--ink); }
.nav .btn { padding: 0.6rem 1.15rem; font-size: 0.9rem; color: #fff; }

.nav-toggle {
  display: none; align-items: center; gap: 0.5rem;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 0.5rem 0.9rem; font: 600 0.9rem var(--font-body); color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }

@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 0.25rem var(--gutter) 1rem;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { margin-top: 1rem; align-self: flex-start; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--surface-alt); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--accent-ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--accent-ink); }

/* Store badge placeholders: plain styled links, wired later via data-store */
.store-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.store {
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 0.6rem 1.25rem 0.6rem 1rem; border-radius: var(--radius-pill);
  min-height: 54px; transition: background-color 0.15s ease;
}
.store:hover { background: #2A2724; color: #fff; }
.store svg { width: 22px; height: 22px; flex: none; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.store-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-kicker { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.02em; opacity: 0.85; }
.store-name { font-size: 1.05rem; font-weight: 600; }
.fineprint { font-size: 0.9rem; color: var(--ink-2); margin-top: 1rem; max-width: 34rem; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 6vw, 5rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; } }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1.02; margin: 0 0 1.25rem; }
.hero .lede { max-width: 32rem; }

/* ---------- Illustrations (CSS/SVG placeholders, no screenshots) ---------- */
.art { position: relative; }
.art-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  padding: 18px; background: var(--surface-alt); border-radius: var(--radius-card);
}
.art-grid--2 { grid-template-columns: repeat(2, 1fr); }
.tile {
  aspect-ratio: 1 / 1; background: var(--surface); border-radius: var(--radius-md);
  display: grid; place-items: center; box-shadow: 0 1px 0 rgba(26, 24, 22, 0.04);
  position: relative; overflow: hidden;
}
.tile--busy { outline: 2px dashed var(--accent); outline-offset: -8px; }
.tile--busy .garment { opacity: 0.35; }
.tile--busy::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 16%; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) 0 62%, var(--accent-soft) 62% 100%);
}
.garment { width: 62%; height: 62%; fill: currentColor; color: var(--ink); }
.garment--accent { color: var(--accent); }
.garment--sand { color: var(--sand); }
.garment--blush { color: var(--blush); }
.garment--ink2 { color: var(--ink-2); }
.garment--gold { color: var(--gold); }
.garment--soft { color: var(--accent-soft); }

.art-chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--surface); color: var(--accent-ink);
  border-radius: var(--radius-pill); padding: 0.45rem 0.85rem;
  font-size: 0.8rem; font-weight: 600; line-height: 1; white-space: nowrap;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.art-chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art-chip--br { right: -6px; bottom: -14px; }
.art-chip--tl { left: -6px; top: -14px; }
@media (min-width: 640px) {
  .art-chip--br { right: -16px; bottom: -18px; }
  .art-chip--tl { left: -16px; top: -18px; }
}

/* Feature art container */
.feature-art {
  position: relative; background: var(--surface-alt); border-radius: var(--radius-card);
  padding: clamp(1.25rem, 3vw, 2rem); min-height: 300px;
  display: grid; place-items: center;
}
.feature-art .art-grid { background: transparent; padding: 0; width: 100%; max-width: 420px; }

/* Stack of cards: fast add */
.stack { position: relative; width: min(100%, 260px); aspect-ratio: 1 / 1; margin: 1.25rem auto; }
.stack .card {
  position: absolute; inset: 0; border-radius: var(--radius-md);
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.stack .card--back { background: var(--sand); transform: rotate(-7deg) translate(-10px, 6px); }
.stack .card--mid { background: var(--blush); transform: rotate(5deg) translate(8px, -4px); }
.stack .card--front { background: var(--surface); }
.stack .card--back::before, .stack .card--mid::before {
  content: ""; position: absolute; left: 18%; right: 26%; bottom: 20%; height: 22%;
  background: rgba(26, 24, 22, 0.06); border-radius: 50%; filter: blur(2px);
}

/* Before/after: cutouts */
.before-after { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.75rem; width: 100%; max-width: 420px; }
.before-after .tile { aspect-ratio: 1 / 1; }
.tile--messy { background: var(--sand); }
.tile--messy::before {
  content: ""; position: absolute; left: -10%; bottom: -25%; width: 80%; height: 60%;
  border-radius: 50%; background: rgba(26, 24, 22, 0.10); filter: blur(6px);
}
.tile--messy::after {
  content: ""; position: absolute; right: -15%; top: 8%; width: 55%; height: 45%;
  border-radius: 50%; background: rgba(242, 217, 207, 0.9); filter: blur(4px);
}
.tile--messy .garment { position: relative; z-index: 1; }
.arrow { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Outfit card */
.outfit-card {
  width: 100%; max-width: 360px; background: var(--surface); border-radius: var(--radius-card);
  padding: 1rem; box-shadow: var(--shadow);
}
.outfit-card .chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }
.chip {
  display: inline-flex; align-items: center; border-radius: var(--radius-pill);
  padding: 0.3rem 0.7rem; font-size: 0.78rem; font-weight: 600;
  background: var(--accent-soft); color: var(--accent-ink);
}
.chip--neutral { background: var(--surface-alt); color: var(--ink-2); }
.outfit-card .pieces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.outfit-card .pieces .tile { background: var(--bg); border-radius: var(--radius-sm); }
.outfit-card .note {
  margin: 0.9rem 0 0; padding-top: 0.9rem; border-top: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: 0.98rem; line-height: 1.4; color: var(--ink-2);
}

/* Calendar + packing */
.plan { display: grid; gap: 0.9rem; width: 100%; max-width: 420px; }
@media (min-width: 420px) { .plan { grid-template-columns: 1.2fr 1fr; } }
.mini-cal { background: var(--surface); border-radius: var(--radius-md); padding: 0.9rem; box-shadow: var(--shadow); }
.mini-cal .cal-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.6rem; }
.mini-cal .cal-head span:first-child { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.mini-cal .cal-head span:last-child { font-size: 0.72rem; font-weight: 600; color: var(--accent-ink); letter-spacing: 0.08em; text-transform: uppercase; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-grid span { aspect-ratio: 1 / 1; border-radius: 6px; background: var(--surface-alt); display: block; }
.cal-grid .worn { background: var(--accent-soft); }
.cal-grid .worn-2 { background: var(--sand); }
.cal-grid .worn-3 { background: var(--blush); }
.cal-grid .today { background: var(--accent); }
.checklist { background: var(--surface); border-radius: var(--radius-md); padding: 0.9rem; box-shadow: var(--shadow); align-self: start; }
.checklist h4 { font-family: var(--font-display); font-weight: 600; font-size: 1rem; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.checklist ul { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--ink-2); margin: 0; padding: 0.3rem 0; }
.checklist .box { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--accent); flex: none; display: grid; place-items: center; }
.checklist .box.done { background: var(--accent); }
.checklist .box svg { width: 10px; height: 10px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Statement band ---------- */
.statement { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 4rem); }
.statement p {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.3; letter-spacing: -0.01em;
  max-width: 44ch; margin: 0; color: var(--ink);
}

/* ---------- Features ---------- */
.feature { display: grid; gap: 2rem; align-items: center; padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.feature + .feature { border-top: 1px solid var(--line); }
@media (min-width: 820px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .feature--flip .feature-art { order: -1; }
}
.feature h2 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); margin: 0 0 1rem; }
.feature p { color: var(--ink-2); max-width: 34rem; }
.feature ul { color: var(--ink-2); max-width: 34rem; margin-top: 1rem; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 1.25rem; list-style: none; padding: 0; margin: 0; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.steps li {
  counter-increment: step; margin: 0;
  background: var(--surface); border-radius: var(--radius-card); padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 2.25rem; line-height: 1; color: var(--accent); margin-bottom: 1rem; letter-spacing: -0.03em;
}
.steps h3 { margin-bottom: 0.4rem; }
.steps p { color: var(--ink-2); font-size: 1rem; }

/* ---------- Why paid (dark band) ---------- */
.why { background: var(--ink); color: var(--bg); }
.why h2, .why h3 { color: var(--bg); }
.why h2 em { color: var(--accent-soft); }
.why .eyebrow { color: var(--accent-soft); }
.why .section-head p { color: #D8D3CA; }
.why-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
.why-grid article {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-card); padding: 1.5rem;
}
.why-grid h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.why-grid p { color: #D8D3CA; font-size: 1rem; margin: 0; }
.why-note {
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #D8D3CA; font-size: 1rem; max-width: 52rem;
}
.why-note a { color: var(--accent-soft); }
.why-note a:hover { color: #fff; }

/* ---------- FAQ ---------- */
.faq { max-width: 44rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0; font-weight: 600; font-size: 1.05rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin: 0 6px 4px 0;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
.faq summary:focus-visible { outline-offset: 2px; }
.faq .answer { padding: 0 0 1.25rem; color: var(--ink-2); max-width: 60ch; }
.faq .answer p, .faq .answer li { color: var(--ink-2); }
.faq .answer ol, .faq .answer ul { margin: 0.5rem 0 0.75rem; }

/* ---------- CTA ---------- */
.cta {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: clamp(2rem, 5vw, 3.5rem); text-align: center;
}
.cta h2 { font-size: clamp(1.9rem, 3vw, 2.75rem); }
.cta .store-row { justify-content: center; }
.cta .fineprint { margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem 2.5rem; margin-top: clamp(3rem, 6vw, 5rem); font-size: 0.95rem; color: var(--ink-2); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1.5rem 3rem; }
.footer-brand p { margin: 0.75rem 0 0; max-width: 24rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-meta { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--ink-2); }
.footer-meta p { margin: 0 0 0.25rem; }

/* ---------- Documents (legal, support) ---------- */
.doc { padding-block: clamp(2.5rem, 6vw, 5rem) 0; }
.doc-header { max-width: 44rem; }
.doc-header h1 { font-size: clamp(2.2rem, 4.5vw, 3.25rem); margin: 0 0 1rem; }
.doc-meta { color: var(--ink-2); font-size: 0.95rem; }
.doc-layout { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
@media (min-width: 900px) {
  .doc-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 4rem; align-items: start; }
  .toc { position: sticky; top: calc(var(--header-h) + 24px); }
}
.toc { font-size: 0.9rem; }
.toc h2 { font-family: var(--font-body); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 0.75rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 0.35rem 0.9rem; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); }

.prose { max-width: 68ch; min-width: 0; }
.prose h2 { font-size: clamp(1.45rem, 2vw, 1.8rem); margin: 2.75rem 0 0.9rem; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.5rem 0 0.5rem; }
.prose p, .prose li { color: var(--ink); }
.prose li { margin-bottom: 0.5rem; }
.prose a { font-weight: 500; }
.prose .lede { color: var(--ink-2); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); margin: 1.25rem 0; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.92rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; background: var(--surface-alt); color: var(--ink); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose td a { overflow-wrap: anywhere; }

.callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.25rem 1.5rem; margin: 1.25rem 0; }
.callout--accent { background: var(--accent-soft); border-color: transparent; }
.callout--accent p, .callout--accent li { color: var(--ink); }
.callout h3 { margin-top: 0; }
.path { font-weight: 600; color: var(--ink); white-space: nowrap; }
.path-sep { color: var(--accent); padding: 0 0.3em; }
.danger-text { color: var(--danger); font-weight: 600; }

.contact-card { display: grid; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(1.5rem, 4vw, 2.5rem); margin-top: 2rem; }
@media (min-width: 720px) { .contact-card { grid-template-columns: 1fr auto; align-items: center; } }
.contact-card h2 { margin: 0 0 0.5rem; font-size: 1.6rem; }
.contact-card p { color: var(--ink-2); margin: 0; }

.support-groups { display: grid; gap: clamp(2rem, 4vw, 3rem); margin-top: 2.5rem; }
.support-groups section { scroll-margin-top: calc(var(--header-h) + 24px); }
.support-groups h2 { font-size: clamp(1.45rem, 2vw, 1.8rem); margin-bottom: 0.5rem; }
.support-groups .faq { max-width: 100%; }

/* ---------- 404 ---------- */
.center { text-align: center; padding-block: clamp(4rem, 12vw, 9rem); }
.center h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.center p { color: var(--ink-2); max-width: 30rem; margin-inline: auto; }
.center .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.75rem; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .skip-link, .toc, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .doc-layout { display: block; }
  .prose { max-width: none; }
  a { color: #000; text-decoration: none; }
  .table-wrap { border: 0; }
}
