/* ============ DESIGN.md tokens ============ */
:root {
  --color-primary: #1c5d5f;
  --color-primary-dark: #0e4749;
  --color-ink: #283338;
  --color-canvas: #f7f5f0;
  --color-accent: #65b8a2;
  --color-accent-soft: #e4f0f1;
  --color-highlight: #ffe95c;
  --color-illustration-ink: #231e21;
  --color-surface-white: #ffffff;
  --color-hairline: rgba(40, 51, 56, 0.15);
  --color-text-muted: rgba(40, 51, 56, 0.65);

  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --text-caption: 13px; --text-body-sm: 15px; --text-body: 17px;
  --text-subheading: 21px; --text-heading-sm: 26px; --text-heading: 34px;
  --text-heading-lg: 44px; --text-display: 56px;

  --page-max-width: 1200px;
  --section-gap: 96px;

  --radius-button: 999px; --radius-card: 16px;
  --radius-featured: 24px; --radius-input: 12px;

  --shadow-button: 0 3px 0 0 var(--color-primary-dark);
}

/* ============ Base ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-canvas);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(38px, 5.5vw, var(--text-display)); }
h2 { font-size: clamp(28px, 4vw, var(--text-heading)); line-height: 1.25; }
h3 { font-size: var(--text-heading-sm); line-height: 1.3; }
p { max-width: 65ch; }
a { color: var(--color-primary); }
img, svg { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.container { max-width: var(--page-max-width); margin: 0 auto; padding: 0 24px; }
section { padding: clamp(56px, 8vw, var(--section-gap)) 0; }

/* ============ Eyebrow (mono field-notes label) ============ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); flex: none; }

/* ============ Highlighter wash ============ */
.hl {
  background: linear-gradient(transparent 15%, var(--color-highlight) 15%, var(--color-highlight) 92%, transparent 92%);
  padding: 0 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 16px; font-weight: 600;
  border-radius: var(--radius-button);
  padding: 14px 28px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn-primary {
  background: var(--color-primary); color: var(--color-canvas);
  box-shadow: var(--shadow-button);
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(1px); }
.btn-secondary {
  background: transparent; color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn-secondary:hover { background: var(--color-accent-soft); }
.btn-sm { padding: 10px 20px; font-size: 15px; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--color-primary); padding-bottom: 1px; }
.link-arrow:hover { color: var(--color-primary-dark); }
.reassure { font-size: var(--text-caption); color: var(--color-text-muted); margin-top: 12px; }

/* ============ Navigation ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-canvas);
  border-bottom: 1px solid var(--color-hairline);
}
.nav { display: flex; align-items: center; gap: 24px; min-height: 72px; flex-wrap: wrap; padding: 8px 24px; max-width: var(--page-max-width); margin: 0 auto; }
.brand { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--color-ink); text-decoration: none; margin-right: auto; }
.brand span { color: var(--color-primary); }
.nav-links { display: flex; gap: 20px; flex-wrap: wrap; list-style: none; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--color-ink); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--color-primary); }
.nav-links a[aria-current="page"] { border-bottom: 2px solid var(--color-highlight); }

/* ============ Hero ============ */
.hero { padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.hero-inner { max-width: 780px; }
.hero .eyebrow { margin-bottom: 20px; }
.hero p.lead { font-size: 20px; margin: 24px 0 32px; color: var(--color-text-muted); max-width: 600px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-art { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 360px; opacity: 0.35; pointer-events: none; }
@media (max-width: 900px) { .hero-art { display: none; } }

/* ============ Cards & grids ============ */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; align-items: center; }
.card {
  background: var(--color-accent-soft);
  border-radius: var(--radius-card);
  padding: 32px;
}
.card.card-white { background: var(--color-surface-white); border: 1px solid var(--color-hairline); }
.card h3 { margin-bottom: 12px; }
.card p { font-size: var(--text-body-sm); }
.card .icon-circle { margin-bottom: 20px; }
.icon-circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-surface-white);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-primary);
}
.card .icon-circle { background: var(--color-canvas); }

/* ============ Stat strip ============ */
.stat-strip { border-top: 1px solid var(--color-hairline); border-bottom: 1px solid var(--color-hairline); padding: 32px 0; }
.stat-strip .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; text-align: center; }
.stat-strip .num { font-family: var(--font-mono); font-weight: 600; font-size: 30px; color: var(--color-primary); display: block; }
.stat-strip .label { font-size: var(--text-caption); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-family: var(--font-mono); }

/* ============ University strip ============ */
.uni-strip { text-align: center; }
.uni-strip .unis { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; margin-top: 24px; }
.uni-strip .unis span { font-family: var(--font-display); font-size: 18px; color: var(--color-text-muted); white-space: nowrap; }

/* ============ Tabs (adapted from donor component per CLAUDE.md) ============ */
.tabs-header { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.tabs-header .eyebrow { justify-content: center; }
.tab-list { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.tab-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  color: var(--color-text-muted);
  background: transparent; border: 1.5px solid transparent;
  border-radius: var(--radius-button);
  padding: 12px 20px; cursor: pointer;
}
.tab-trigger[aria-selected="true"] { background: var(--color-surface-white); color: var(--color-primary); border-color: var(--color-hairline); }
.tab-panel-wrap { background: var(--color-accent-soft); border-radius: var(--radius-featured); padding: clamp(24px, 5vw, 64px); }
.tab-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: center; }
.tab-panel[hidden] { display: none; }
.tab-panel .panel-badge {
  display: inline-flex; width: fit-content;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--color-surface-white); color: var(--color-primary-dark);
  border-radius: var(--radius-button); padding: 6px 14px; margin-bottom: 16px;
}
.tab-panel h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.tab-panel p { color: var(--color-text-muted); margin-bottom: 24px; }
.tab-art { display: flex; justify-content: center; }

/* ============ Process timeline ============ */
.timeline { list-style: none; position: relative; max-width: 720px; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--color-accent); }
.timeline li { position: relative; padding: 0 0 40px 64px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .node {
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-surface-white); border: 2px solid var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: var(--color-primary);
}
.timeline .stage-meta { font-family: var(--font-mono); font-size: var(--text-caption); color: var(--color-text-muted); }
.timeline h3 { margin-bottom: 8px; }
.timeline p { font-size: var(--text-body-sm); }

/* ============ Placeholder box ============ */
.placeholder-box {
  border: 2px dashed var(--color-accent);
  border-radius: var(--radius-card);
  background: var(--color-surface-white);
  padding: 40px 32px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-body-sm);
  margin: 24px 0 40px 64px;
}
.placeholder-box strong { font-family: var(--font-mono); font-size: var(--text-caption); text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-primary-dark); display: block; margin-bottom: 8px; }

/* ============ Quote / story card ============ */
.quote-card {
  background: var(--color-surface-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-featured);
  padding: clamp(32px, 5vw, 56px);
}
.quote-card blockquote { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); line-height: 1.3; margin-bottom: 24px; }
.quote-card blockquote .hl { padding: 0 6px; }

/* ============ Tier cards (pricing) ============ */
.tier { display: flex; flex-direction: column; }
.tier ul { list-style: none; margin-top: 16px; display: grid; gap: 12px; }
.tier li { font-size: var(--text-body-sm); padding-left: 28px; position: relative; }
.tier li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px;
  border: 1.5px solid var(--color-primary); border-radius: 50%;
  background: var(--color-accent-soft);
}
.tier.recommended { border: 2px solid var(--color-primary); position: relative; }
.tier .tier-badge {
  position: absolute; top: -14px; left: 32px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--color-highlight); color: var(--color-ink);
  border-radius: var(--radius-button); padding: 4px 14px;
}

/* ============ FAQ ============ */
.faq details { border-bottom: 1px solid var(--color-hairline); padding: 20px 0; }
.faq summary {
  font-weight: 600; font-size: 18px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 22px; color: var(--color-primary); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; font-size: var(--text-body-sm); color: var(--color-text-muted); }

/* ============ CTA band ============ */
.cta-band { background: var(--color-primary); border-radius: var(--radius-featured); color: var(--color-canvas); text-align: center; padding: clamp(48px, 7vw, 80px) 32px; }
.cta-band h2 { color: var(--color-canvas); margin-bottom: 16px; }
.cta-band p { margin: 0 auto 28px; color: rgba(247, 245, 240, 0.85); }
.cta-band .btn-primary { background: var(--color-highlight); color: var(--color-ink); box-shadow: 0 3px 0 0 rgba(0,0,0,0.25); }
.cta-band .btn-primary:hover { background: #f5dd3f; }
.cta-band .reassure { color: rgba(247, 245, 240, 0.7); }

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--color-hairline); padding: 48px 0 32px; margin-top: var(--section-gap); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.site-footer h4 { font-family: var(--font-mono); font-size: var(--text-caption); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { font-size: var(--text-body-sm); text-decoration: none; color: var(--color-ink); }
.site-footer a:hover { color: var(--color-primary); }
.site-footer .legal { font-size: var(--text-caption); color: var(--color-text-muted); border-top: 1px solid var(--color-hairline); padding-top: 24px; }
@media (max-width: 700px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ============ Page hero (inner pages) ============ */
.page-hero { padding: clamp(48px, 7vw, 80px) 0 clamp(32px, 5vw, 48px); }
.page-hero p.lead { font-size: 20px; color: var(--color-text-muted); margin-top: 20px; max-width: 640px; }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--color-text-muted); margin-top: 16px; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .section-head, .center p { margin-left: auto; margin-right: auto; }

.ink-art { color: var(--color-illustration-ink); }
