/* Katori marketing site. Tokens mirror the app's VitaAiColors. */

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --canvas: #ffffff;
  --paper: #f5f9ee;
  --paper-2: #edf3e2;
  --line: #e3ead9;
  --line-strong: #cbd6be;
  --ink: #0a2320;
  --text: #344a44;
  --muted: #5e7268;
  --brand: #0f3f3f;
  --brand-2: #2e6b58;
  --brand-wash: #ddead2;
  --on-brand: #f3f5e8;
  --accent: #d36f52;
  --accent-wash: #fbeae4;
  --wa-bg: #efeae2;
  --wa-out: #d9fdd3;
  --wa-in: #ffffff;
  --wa-ink: #111b21;
  --wa-meta: #667781;
  --shadow: 0 1px 2px rgba(10, 35, 32, 0.06), 0 12px 32px -12px rgba(10, 35, 32, 0.18);
  --radius: 16px;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #080d0a;
    --paper: #121814;
    --paper-2: #19211b;
    --line: #212b24;
    --line-strong: #324036;
    --ink: #eff4e7;
    --text: #becbbe;
    --muted: #8da295;
    --brand: #b6d298;
    --brand-2: #6ea87b;
    --brand-wash: #1c2d21;
    --on-brand: #06140e;
    --accent: #dd7d63;
    --accent-wash: #2b1410;
    --wa-bg: #0b141a;
    --wa-out: #005c4b;
    --wa-in: #202c33;
    --wa-ink: #e9edef;
    --wa-meta: #8696a0;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
  .brand img { background: #f5f9ee; border-radius: 9px; padding: 3px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-2); text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; font-weight: 650; letter-spacing: -0.02em; }
p { margin: 0; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: 0; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }

/* Skip link */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--ink); color: var(--canvas); padding: 8px 12px; border-radius: 8px; }

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

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.brand span { font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.head-cta { margin-left: 8px; }
@media (max-width: 860px) { .nav { display: none; } .head-cta { margin-left: auto; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 16px/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-2); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-quiet:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-2);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); margin: 20px 0 22px; letter-spacing: -0.035em; font-weight: 640; }
.hero h1 em { font-style: normal; color: var(--brand-2); }
.hero .lede { font-size: 20px; color: var(--muted); max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.hero-notes li { display: inline-flex; align-items: center; gap: 8px; }
.hero-notes svg { width: 16px; height: 16px; color: var(--brand-2); flex: none; }
@media (max-width: 960px) {
  .hero { padding: 48px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- Phone + WhatsApp mock ---------- */
.phone {
  width: 340px; max-width: 100%; margin: 0 auto;
  border-radius: 44px; padding: 10px;
  background: #0e1512;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.screen { border-radius: 35px; overflow: hidden; background: var(--wa-bg); color: var(--wa-ink); }
.wa-top {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px;
  background: var(--wa-in); border-bottom: 1px solid rgba(0,0,0,0.06);
}
.wa-top img { width: 34px; height: 34px; border-radius: 50%; background: #fff; padding: 3px; }
.wa-top b { display: block; font-size: 15px; font-weight: 600; }
.wa-top small { display: block; font-size: 12px; color: var(--wa-meta); line-height: 1.2; }
.wa-top .verified { width: 14px; height: 14px; color: #25a35a; display: inline-block; vertical-align: -2px; margin-left: 2px; }
.wa-body { padding: 14px 12px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.42; min-height: 520px; }
.wa-day { align-self: center; font-size: 11.5px; color: var(--wa-meta); background: var(--wa-in); padding: 3px 10px; border-radius: 8px; margin-bottom: 2px; }
.msg { max-width: 84%; padding: 7px 9px 5px; border-radius: 10px; position: relative; box-shadow: 0 1px 0.5px rgba(11,20,26,0.13); }
.msg.in { align-self: flex-start; background: var(--wa-in); border-top-left-radius: 3px; }
.msg.out { align-self: flex-end; background: var(--wa-out); border-top-right-radius: 3px; }
.msg .t { display: block; text-align: right; font-size: 10.5px; color: var(--wa-meta); margin-top: 2px; }
.msg .t svg { display: inline-block; width: 15px; height: 10px; color: #53bdeb; vertical-align: -1px; margin-left: 3px; }
.msg.photo { padding: 4px 4px 5px; }
.msg.photo img { width: 196px; height: 150px; object-fit: contain; background: #e6dfd3; border-radius: 7px; }
@media (prefers-color-scheme: dark) { .msg.photo img { background: #1d2a24; } }
.msg.photo .cap { padding: 4px 5px 0; }
.msg strong { font-weight: 600; }
.meter { display: flex; gap: 4px; margin: 7px 0 2px; }
.meter i { height: 5px; flex: 1; border-radius: 3px; background: rgba(0,0,0,0.1); }
.meter i.on { background: #25a35a; }
@media (prefers-color-scheme: dark) { .meter i { background: rgba(255,255,255,0.14); } }
.voice { display: flex; align-items: center; gap: 8px; min-width: 190px; }
.voice .play { width: 0; height: 0; border-left: 10px solid var(--wa-meta); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 4px; }
.voice .wave { display: flex; align-items: center; gap: 2px; flex: 1; height: 22px; }
.voice .wave i { width: 3px; border-radius: 2px; background: var(--wa-meta); opacity: .8; }
.voice .wave i:nth-child(5n+1) { height: 30%; }
.voice .wave i:nth-child(5n+2) { height: 70%; }
.voice .wave i:nth-child(5n+3) { height: 45%; }
.voice .wave i:nth-child(5n+4) { height: 95%; }
.voice .wave i:nth-child(5n+5) { height: 55%; }
.voice .len { font-size: 11px; color: var(--wa-meta); font-family: var(--mono); }
.transcript { display: block; font-size: 12.5px; color: var(--wa-meta); font-style: italic; margin-top: 4px; }
.wa-input { display: flex; align-items: center; gap: 8px; padding: 8px 10px 12px; }
.wa-input span { flex: 1; background: var(--wa-in); border-radius: 22px; padding: 10px 14px; font-size: 14px; color: var(--wa-meta); }
.wa-input b { width: 40px; height: 40px; border-radius: 50%; background: #00a884; display: grid; place-items: center; }
.wa-input b svg { width: 18px; height: 18px; color: #fff; }
.mock-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }

/* ---------- Strip ---------- */
.strip { border-bottom: 1px solid var(--line); background: var(--paper); }
.strip .wrap { display: flex; align-items: center; gap: 28px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.strip p { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.strip ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.strip li { font-size: 15px; color: var(--ink); background: var(--canvas); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; border-bottom: 1px solid var(--line); }
.section.alt { background: var(--paper); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 4vw, 46px); margin: 16px 0 16px; letter-spacing: -0.03em; }
.section-head p { font-size: 19px; color: var(--muted); }
@media (max-width: 720px) { .section { padding: 72px 0; } .section-head { margin-bottom: 40px; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.section:not(.alt) .step { background: var(--paper); }
.step .num { font: 500 13px/1 var(--mono); color: var(--brand-2); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); }
.step h3 { font-size: 21px; margin: 22px 0 10px; }
.step p { color: var(--muted); font-size: 16px; }
.step .sample { margin-top: 20px; padding: 12px 14px; border-radius: 12px; background: var(--paper-2); font-size: 14px; color: var(--text); border: 1px dashed var(--line-strong); }
.section:not(.alt) .step .sample { background: var(--canvas); }
.step .sample .mono { color: var(--brand-2); font-size: 13px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Dashboard mock ---------- */
.dash-wrap { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .dash-wrap { grid-template-columns: 1fr; } }
.window { background: var(--canvas); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.window-bar span { margin-left: 10px; font: 500 12px/1 var(--mono); color: var(--muted); }
.dash { padding: 22px; }
.dash-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-top h3 { font-size: 20px; }
.dash-top .mono { font-size: 13px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--paper); }
.kpi b { display: block; font: 600 26px/1.1 var(--mono); color: var(--ink); letter-spacing: -0.02em; }
.kpi span { font-size: 13.5px; color: var(--muted); }
.kpi.warn b { color: var(--accent); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font: 500 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink); }
.table tr:last-child td { border-bottom: 0; }
.who { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--sans); background: var(--brand-wash); color: var(--brand); flex: none; }
.av.b { background: var(--accent-wash); color: var(--accent); }
.av.c { background: var(--paper-2); color: var(--brand-2); }
.slots { display: flex; gap: 4px; }
.slots i { width: 18px; height: 8px; border-radius: 3px; background: var(--paper-2); border: 1px solid var(--line); }
.slots i.ok { background: var(--brand-2); border-color: var(--brand-2); }
.slots i.off { background: var(--accent); border-color: var(--accent); }
.pct { font-family: var(--mono); font-size: 14px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.tag.q { background: var(--accent-wash); color: var(--accent); }
.tag.ok { background: var(--brand-wash); color: var(--brand-2); }
.tag.quiet { background: var(--paper-2); color: var(--muted); }
@media (max-width: 640px) {
  .kpis { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .kpi { padding: 10px; }
  .kpi b { font-size: 20px; }
  .kpi span { font-size: 12px; }
  .table .hide-sm { display: none; }
  .table { font-size: 14px; }
  .table td, .table th { padding-left: 4px; padding-right: 4px; }
  .av { width: 26px; height: 26px; font-size: 11px; }
  .slots i { width: 12px; }
  .dash { padding: 16px; }
}

.draft { background: var(--canvas); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; }
.draft .eyebrow { margin-bottom: 14px; }
.draft .q { font-size: 15px; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.draft .q b { color: var(--ink); font-weight: 600; }
.draft .reply { margin: 16px 0 18px; padding: 14px 16px; border-radius: 12px; background: var(--paper); font-size: 15.5px; color: var(--ink); border: 1px solid var(--line); }
.draft .reply small { display: block; font: 500 11.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 6px; }
.draft .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.draft .acts span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.draft .acts .a { background: var(--brand); color: var(--on-brand); }
.draft .acts .b { border: 1px solid var(--line-strong); color: var(--ink); }
.draft .fine { margin-top: 16px; font-size: 13.5px; color: var(--muted); }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--canvas); padding: 30px 28px 32px; }
.section.alt .feature { background: var(--paper); }
.feature svg { width: 26px; height: 26px; color: var(--brand-2); }
.feature h3 { font-size: 19px; margin: 18px 0 8px; }
.feature p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ---------- Food band ---------- */
.food { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.food-art { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.food-card { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; }
.food-card img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.food-card b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; margin-top: 8px; }
.food-card span { display: block; font: 400 12.5px/1.5 var(--mono); color: var(--muted); }
.food-h { font-size: clamp(30px, 3.6vw, 42px); margin: 16px 0 8px; letter-spacing: -0.03em; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 17px; }
.checks svg { width: 22px; height: 22px; color: var(--brand-2); margin-top: 2px; }
.checks b { color: var(--ink); font-weight: 600; }
@media (max-width: 960px) { .food { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Trust ---------- */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.trust-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--canvas); }
.trust-card h3 { font-size: 19px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.trust-card h3 svg { width: 22px; height: 22px; color: var(--brand-2); }
.trust-card ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15.5px; display: grid; gap: 6px; }
@media (max-width: 800px) { .trust { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; background: var(--canvas); display: flex; flex-direction: column; }
.plan.pick { border-color: var(--brand-2); box-shadow: 0 0 0 1px var(--brand-2); }
.plan h3 { font-size: 18px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan h3 .tag { font-size: 12px; }
.price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.price b { font: 650 40px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); letter-spacing: -0.03em; }
.price span { color: var(--muted); font-size: 15px; }
.plan .cap { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; font-size: 15.5px; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.plan li svg { width: 18px; height: 18px; color: var(--brand-2); margin-top: 3px; }
.plan .btn { margin-top: auto; }
.pricing-note { margin-top: 24px; padding: 18px 22px; border-radius: 14px; background: var(--brand-wash); color: var(--ink); font-size: 16px; display: flex; gap: 12px; align-items: flex-start; }
.pricing-note svg { width: 22px; height: 22px; color: var(--brand-2); flex: none; margin-top: 1px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-size: 18px; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); font-size: 16.5px; max-width: 46em; }

/* ---------- CTA ---------- */
.cta { padding: 96px 0; }
.cta-box { background: var(--brand); color: var(--on-brand); border-radius: 28px; padding: 64px; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: center; }
.cta-box h2 { color: var(--on-brand); font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.03em; }
.cta-box p { margin-top: 14px; font-size: 18px; opacity: .82; }
.cta-box .acts { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-box .btn-primary { background: var(--on-brand); color: var(--brand); }
.cta-box .btn-primary:hover { background: #ffffff; }
.cta-box .mail { font-family: var(--mono); font-size: 14px; color: var(--on-brand); opacity: .8; }
@media (max-width: 860px) { .cta-box { grid-template-columns: 1fr; padding: 40px 28px; } .cta { padding: 64px 0; } }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--paper); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--text); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-brand p { margin-top: 14px; color: var(--muted); max-width: 30em; }
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.legal .mono { font-size: 12.5px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Document pages ---------- */
.doc-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); background: var(--paper); }
.doc-head h1 { font-size: clamp(34px, 4.4vw, 50px); margin-top: 14px; letter-spacing: -0.03em; }
.doc-head p { margin-top: 14px; color: var(--muted); font-size: 18px; max-width: 40em; }
.doc-body { display: grid; grid-template-columns: 220px 1fr; gap: 64px; padding: 56px 0 96px; }
.toc { position: sticky; top: 100px; align-self: start; font-size: 14.5px; }
.toc h4 { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.prose { max-width: 720px; }
.prose h2 { font-size: 24px; margin: 44px 0 12px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); font-size: 17px; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 12px 0 0; display: grid; gap: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.callout { margin: 0 0 32px; padding: 18px 20px; border-radius: 14px; background: var(--brand-wash); color: var(--ink); font-size: 16px; }
.facts { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15.5px; }
.facts th, .facts td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { color: var(--muted); font-weight: 500; width: 34%; }
@media (max-width: 900px) { .doc-body { grid-template-columns: 1fr; gap: 32px; } .toc { position: static; } }

/* ---------- 404 ---------- */
.notfound { padding: 120px 0; text-align: center; }
.notfound img { width: 140px; margin: 0 auto 24px; }
.notfound h1 { font-size: 40px; }
.notfound p { margin: 14px auto 28px; color: var(--muted); max-width: 28em; }

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