/* ---------- Tokens ---------- */
:root {
  --bg: #f8fafc;
  --bg-alt: #edf2f7;
  --surface: #ffffff;
  --ink: #0f1b2d;
  --ink-soft: #4b5868;
  --line: #d8e0ea;
  --accent: #0a6c8c;
  --accent-ink: #ffffff;
  --accent-soft: #e2f1f6;
  --ok: #1d6b45;
  --err: #a1301f;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11161c;
    --bg-alt: #161d25;
    --surface: #1b232d;
    --ink: #e9edf1;
    --ink-soft: #a7b1bc;
    --line: #2b3541;
    --accent: #7fb6dd;
    --accent-ink: #0d1620;
    --accent-soft: #1c2c3a;
    --ok: #6fcf9a;
    --err: #f08a78;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); letter-spacing: -0.01em; max-width: 22ch; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px;
}
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--accent); margin-bottom: .8em; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.mark {
  font-family: var(--serif); font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 10px; padding: 2px 9px;
}
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--accent); }
.nav-cta { background: var(--ink); color: var(--bg) !important; padding: 7px 16px; border-radius: 999px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 6px 12px; font: inherit; }
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; width: 100%; }
  .nav-cta { margin-top: 6px; width: auto !important; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 10vw, 120px) 0 64px; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 48px; }
.btn {
  display: inline-block; text-decoration: none; font: 600 .98rem var(--sans);
  padding: 13px 22px; border-radius: 999px; border: 2px solid var(--ink); cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn[disabled] { opacity: .6; cursor: progress; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats > div { padding: 22px 18px 18px 0; }
.stats > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.stats dt { font-family: var(--serif); font-size: 2rem; font-weight: 600; }
.stats dd { margin: 0; color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 36px; }
.section-sub { color: var(--ink-soft); max-width: 60ch; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column;
}
.card p { color: var(--ink-soft); }
.card-tag { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--accent) !important; margin-bottom: .6em; }
.card-outcome { margin-top: auto; margin-bottom: 0; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .94rem; }
.card-outcome strong { color: var(--ink); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.tl-when { font-weight: 600; color: var(--accent); font-size: .95rem; padding-top: 3px; }
.tl-org { color: var(--ink-soft); font-size: .94rem; margin-bottom: .5em; }
.tl-body p:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }
.edu { margin-top: 36px; }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.principles p { color: var(--ink-soft); margin: 0; }
@media (max-width: 600px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Form ---------- */
.form { display: grid; gap: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form-status { min-height: 1.5em; margin: 0; font-weight: 500; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.privacy-note { font-size: .88rem; color: var(--ink-soft); margin-top: 20px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .9rem; color: var(--ink-soft); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer p { margin: 0; }
.footer a { color: var(--ink-soft); }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-content: center; text-align: center; }

/* ---------- Private section ---------- */
.hero-tight { padding-bottom: 40px; }
.private-badge {
  display: inline-block; font-size: .8rem; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts > div { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); margin-bottom: 4px; }
.facts dd { margin: 0; }
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.doc {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; align-items: center;
  text-decoration: none; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.doc:hover { border-color: var(--accent); }
.doc-type { grid-row: span 2; font-weight: 700; font-size: .8rem; color: var(--accent-ink); background: var(--accent); border-radius: 8px; padding: 10px 8px; }
.doc-name { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.doc-desc { color: var(--ink-soft); font-size: .9rem; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 18px; }
.case dl { margin: 0; display: grid; grid-template-columns: 150px 1fr; gap: 10px 20px; }
.case dt { font-weight: 600; color: var(--accent); font-size: .92rem; }
.case dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 600px) { .case dl { grid-template-columns: 1fr; gap: 2px; } .case dd { margin-bottom: 10px; } }
