/* ──────────────────────────────────────────────────────────────
   FundAssist v0.2 · Civic Intelligence
   Taupe ground · navy ink · terracotta accent · sage secondary.
   Built for hours of dense research; deliberately NOT Aspire.
   Reference: FT data graphics · Stripe annual reports · Linear · Plain.
   ────────────────────────────────────────────────────────────── */

:root {
  /* Surface — warm taupe (lighter than Aspire's ivory) */
  --bg:           #f5f1ea;
  --surface:      #ffffff;
  --surface-mut:  #fefcf7;
  --surface-warm: #f0ebe1;

  --rule:         #e2dccf;
  --rule-strong:  #cfc7b5;

  /* Ink — deep navy, not graphite */
  --ink:        #0f1d2d;
  --ink-mid:    #3a4a5e;
  --ink-light:  #6c7a8c;
  --ink-faint:  #a8b1bf;

  /* Accent — terracotta (warm but distinct from brick red) */
  --terra:        #c2410c;
  --terra-soft:   #ea580c;
  --terra-tint:   rgba(194,65,12,0.08);

  /* Sage — secondary, sustainability moments */
  --sage:         #52796f;
  --sage-soft:    #84a98c;
  --sage-tint:    rgba(82,121,111,0.10);

  /* Amber — for data peaks only */
  --amber:        #d97706;
  --amber-tint:   rgba(217,119,6,0.10);

  /* IPN blue — to mark IPN-sourced data */
  --ipn:          #1e40af;
  --ipn-tint:     rgba(30,64,175,0.10);
  --ipn-soft:     #3b82f6;

  /* States */
  --ok:          #65a30d;   /* lime-leaf, less generic */
  --ok-tint:     rgba(101,163,13,0.12);
  --warn:        #d97706;
  --bad:         #b91c1c;

  /* Deep section — true deep navy, not black */
  --deep-bg:      #0f1d2d;
  --deep-surface: #19283a;
  --deep-rule:    #2b3a4d;
  --deep-text:    #e8e2d5;
  --deep-mut:     #94a3b8;

  /* Status pills */
  --st-interested: #1e40af;
  --st-contacted:  #b45309;
  --st-convo:      #c2410c;
  --st-committed:  #166534;

  /* Type */
  --sans:  "General Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono:  "IBM Plex Mono", "SF Mono", Menlo, monospace;

  /* Geometry */
  --r-sm: 4px;
  --r:    6px;
  --r-lg: 10px;

  --shadow-1: 0 1px 0 rgba(15,29,45,0.04);
  --shadow-2: 0 8px 24px rgba(15,29,45,0.08);
  --shadow-3: 0 22px 60px rgba(15,29,45,0.16);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv01";
  text-rendering: optimizeLegibility;
}

.container { width: min(1280px, 100% - 128px); margin: 0 auto; }
.container.narrow { width: min(820px, 100% - 128px); }
@media (max-width: 900px) {
  .container { width: min(100% - 40px, 720px); }
  .container.narrow { width: min(100% - 40px, 600px); }
}

.tabnum { font-variant-numeric: tabular-nums; }

a { color: inherit; text-decoration: none; }

/* The serif is used SPARINGLY — only inside .serif spans and a few
   h1/em moments. Everything else stays sans. */
.serif, em.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
}
em {
  font-style: italic;
  color: var(--ink);
  font-weight: 500;
}

/* ─── Top nav ─── */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 241, 234, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; gap: 32px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-mark {
  width: 14px; height: 14px;
  background: linear-gradient(135deg, var(--terra), var(--amber));
  border-radius: 3px;
  transform: rotate(45deg);
  display: inline-block;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 13px;
  color: var(--ink-mid);
  font-weight: 500;
  transition: color 160ms;
}
.nav-links a:hover { color: var(--terra); }
.nav-meta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--ink-light);
  letter-spacing: 0.02em;
}
.dot { width: 7px; height: 7px; border-radius: 999px; background: var(--ink-faint); display: inline-block; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-tint); }

/* ─── Kicker + section head ─── */
.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 14px;
}
.kicker.accent { color: var(--amber); }
.section-head { margin-bottom: 28px; }

.section-h {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0 0 14px;
}
.section-h.light { color: var(--deep-text); }
.section-h em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--terra);
  padding: 0 2px;
  letter-spacing: -0.005em;
}
.section-h .muted-light { color: var(--deep-mut); font-weight: 400; }

.section-sub {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-mid);
  margin: 0 0 44px;
  max-width: 60ch;
}
.section-sub.light { color: var(--deep-mut); }
.section-sub strong { color: var(--ink); font-weight: 600; }
.section-sub.light strong { color: var(--deep-text); }

/* ─── HERO ─── */
.hero {
  padding: 112px 0 116px;
  background:
    radial-gradient(70% 50% at 100% 0%, rgba(194,65,12,0.07), transparent 60%),
    radial-gradient(60% 60% at 0% 40%, rgba(82,121,111,0.06), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
@media (max-width: 1080px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

.display {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 0 0 24px;
}
.display .serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--terra);
}
@media (max-width: 900px) { .display { font-size: 44px; } }

.lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-mid);
  max-width: 56ch;
  margin: 0 0 32px;
}
.lede strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.arr { display: inline-block; transition: transform 200ms; }
.btn:hover .arr { transform: translateX(2px); }

/* Hero data graphic — the FT-style chart */
.hero-graphic { position: relative; }
.graphic-frame {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 24px 22px 20px;
  box-shadow: var(--shadow-2);
}
.graphic-head { margin-bottom: 8px; }
.graphic-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.graphic-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-light);
  letter-spacing: 0.01em;
  margin-top: 3px;
}
.hero-chart {
  width: 100%; height: auto;
  display: block;
}
.graphic-foot {
  display: flex; gap: 8px; margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
}
.data-tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}
.data-tag.positive { color: var(--ok); background: var(--ok-tint); }
.data-tag.muted { color: var(--ink-light); background: var(--surface-warm); }

/* Trust strip */
.trust-strip {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 28px 0 0;
  border-top: 1px solid var(--rule);
}
@media (max-width: 900px) { .trust-strip { grid-template-columns: repeat(2, 1fr); } }
.trust-cell { display: flex; flex-direction: column; gap: 4px; }
.trust-num {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.018em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.trust-unit { font-size: 14px; color: var(--ink-light); font-weight: 500; }
.trust-lab {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-light);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* ─── Pills ─── */
.pill {
  display: inline-block;
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 4px;
  border: 1px solid;
  font-weight: 500;
  margin: 1px 0;
  font-family: var(--sans);
}
.pill.ipn {
  background: var(--ipn-tint);
  border-color: var(--ipn-soft);
  color: var(--ipn);
}
.pill.ghost {
  background: transparent;
  border: 1px dashed var(--rule-strong);
  color: var(--ink-light);
}
.pill.full { display: block; margin-bottom: 4px; padding: 4px 10px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px;
  padding: 12px 20px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.btn.small { padding: 7px 14px; font-size: 12.5px; }
.btn.primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn.primary:hover { background: var(--ink-mid); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn.secondary {
  background: var(--terra);
  color: #fff;
  border-color: var(--terra);
}
.btn.secondary:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn.ghost {
  background: transparent;
  color: var(--ink-mid);
  border-color: var(--rule-strong);
}
.btn.ghost:hover { background: var(--surface-warm); color: var(--ink); }
.btn-helper { font-size: 12px; color: var(--ink-light); align-self: center; font-family: var(--mono); }

/* ─── Sections ─── */
.section { padding: 128px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-warm { background: var(--surface-warm); border-top-color: var(--rule); }
.section-deep { background: var(--deep-bg); color: var(--deep-text); border-top-color: var(--deep-rule); }
.section-deep .kicker { color: var(--amber); }

/* ─── Flow (how it works) ─── */
.flow-grid {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) { .flow-grid { grid-template-columns: repeat(2, 1fr); } }
.flow-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 26px 22px 22px;
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms;
}
.flow-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--rule-strong);
}
.flow-card.accent {
  background: linear-gradient(180deg, #fffaf6 0%, #fff 100%);
  border-color: var(--terra);
  box-shadow: 0 0 0 4px var(--terra-tint);
}
.flow-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink-light);
  margin-bottom: 14px;
}
.flow-card h3 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.flow-card p { color: var(--ink-mid); font-size: 14px; margin: 0 0 14px; line-height: 1.55; }
.flow-card.accent p em { font-family: var(--serif); color: var(--terra); font-weight: 500; }
.flow-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--terra);
  background: var(--terra-tint);
  padding: 4px 10px;
  border-radius: 3px;
}

/* ─── Split layouts ─── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 88px;
  align-items: center;
}
.split.reverse { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
@media (max-width: 1000px) { .split, .split.reverse { grid-template-columns: 1fr; } }

.bullet-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.bullet-list li {
  padding: 11px 0 11px 28px;
  border-top: 1px solid var(--rule);
  position: relative;
  font-size: 14.5px;
  color: var(--ink-mid);
  line-height: 1.55;
}
.bullet-list li:first-child { border-top: none; }
.bullet-list li:before {
  content: "—";
  position: absolute; left: 0; top: 11px;
  color: var(--terra);
  font-family: var(--mono);
  font-weight: 600;
}
.bullet-list li strong { color: var(--ink); font-weight: 600; }
.bullet-list li em { font-family: var(--serif); color: var(--terra); }

/* ─── Mock frame ─── */
.mock {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.mock-head {
  padding: 22px 32px;
  border-bottom: 1px solid var(--rule);
  background: var(--surface-mut);
  display: flex; align-items: center; gap: 12px;
}
.mock-title { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.mock-meta { color: var(--ink-light); font-size: 11px; font-family: var(--mono); margin-left: auto; }
.mock-body { padding: 32px 36px; }

.status-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--ok-tint);
  border: 1.5px solid var(--ok);
}
.status-dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-tint); }

/* ─── Onboarding mock ─── */
.onboarding-mock .mock-step {
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px;
  flex-wrap: wrap;
}
.step-dot {
  width: 11px; height: 11px;
  border-radius: 999px;
  background: var(--surface-mut);
  border: 1.5px solid var(--rule-strong);
}
.step-dot.done { background: var(--ok); border-color: var(--ok); }
.step-dot.active { background: var(--terra); border-color: var(--terra); box-shadow: 0 0 0 4px var(--terra-tint); }
.step-label { color: var(--ink-mid); font-weight: 500; font-family: var(--mono); font-size: 11px; }
.step-label + .step-dot { margin-left: 4px; }
.onboarding-mock .mock-body { padding: 32px 36px; display: flex; flex-direction: column; gap: 24px; }
.field-block { display: flex; flex-direction: column; gap: 6px; }
.field-block label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.field-block label .muted { color: var(--ink-faint); letter-spacing: normal; text-transform: none; font-weight: 400; }
.field-input {
  border: 1px solid var(--rule);
  background: var(--surface);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.field-input.prefilled { background: rgba(30,64,175,0.04); border-color: rgba(30,64,175,0.25); }
.prefill-flag {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ipn);
  letter-spacing: 0.04em;
  background: var(--ipn-tint);
  padding: 2px 6px;
  border-radius: 3px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-pillrow { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0; }
.field-actions {
  display: flex; align-items: center; gap: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
}

/* ─── Scoping result ─── */
.scoping-mock .mock-body { padding: 0; }
.rec-card {
  padding: 30px 36px;
  border-bottom: 1px solid var(--rule);
}
.rec-card.primary {
  background: linear-gradient(180deg, #fffbf6 0%, #fff 100%);
}
.rec-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}
.rec-head h4 {
  margin: 6px 0 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.012em;
}
.rec-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--surface-warm);
  color: var(--ink-light);
}
.rec-badge.primary { background: var(--terra); color: #fff; }
.rec-score {
  text-align: right;
  flex-shrink: 0;
  display: flex; align-items: baseline; gap: 4px;
}
.rec-score-value {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  font-style: italic;
  color: var(--terra);
  line-height: 1;
  letter-spacing: -0.02em;
}
.rec-score.muted .rec-score-value { color: var(--ink-light); }
.rec-score-label {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-light);
  letter-spacing: 0.04em;
}
.rec-rationale {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-mid);
  margin: 8px 0 12px;
}
.rec-rationale em {
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.4;
}
.rec-source {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-light);
  letter-spacing: 0.01em;
}
.rec-source code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mid);
}
.rec-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 12px;
}
.rec-meta > div {
  display: flex; flex-direction: column; gap: 1px;
}
.meta-val {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.meta-unit { font-size: 12px; color: var(--ink-light); }
.meta-lab {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-light);
  letter-spacing: 0.04em;
}
.rec-note { font-size: 13px; color: var(--ink-mid); margin: 10px 0 0; line-height: 1.55; }
.rec-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tag {
  font-family: var(--mono);
  font-size: 10.5px;
  background: var(--surface-warm);
  border: 1px solid var(--rule);
  padding: 2px 7px;
  border-radius: 3px;
  color: var(--ink-mid);
  letter-spacing: 0.01em;
}
.tag.muted { color: var(--ink-light); border-style: dashed; }
.rec-actions {
  padding: 22px 36px;
  display: flex; gap: 14px; align-items: center;
  background: var(--surface-mut);
}

/* ─── Dashboard mock ─── */
.mock-fullbleed { margin-top: 36px; }
.dashboard-mock {
  border-color: var(--deep-rule);
  background: var(--surface);
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.30);
}
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
  border-bottom: 1px solid var(--rule);
}
.kpi-card {
  padding: 18px 20px;
  border-right: 1px solid var(--rule);
}
.kpi-card:last-child { border-right: none; }
.kpi-label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 8px;
}
.kpi-value {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.kpi-unit {
  font-size: 14px;
  color: var(--ink-light);
  font-weight: 500;
  margin-left: 2px;
}
.kpi-trend {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-light);
  letter-spacing: 0.01em;
}
.kpi-trend.up { color: var(--ok); }

.dash-row {
  display: grid;
  grid-template-columns: 256px 1fr;
}
.dash-aside {
  background: var(--surface-warm);
  border-right: 1px solid var(--rule);
  padding: 20px 18px 22px;
}
.aside-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.aside-collapse {
  background: var(--surface); border: 1px solid var(--rule);
  width: 22px; height: 22px;
  border-radius: 4px;
  color: var(--ink-light);
  cursor: pointer; font-size: 11px;
}
.aside-section {
  border-top: 1px solid var(--rule);
  padding: 14px 0 6px;
}
.aside-section:first-of-type { border-top: none; padding-top: 0; }
.aside-label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 8px;
}
.check {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--ink-mid);
  margin: 5px 0;
  cursor: pointer;
}
.check input { accent-color: var(--terra); }
.check .cnt {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-light);
}
.chart-thumb svg.sparkline { width: 100%; height: 90px; display: block; }
.aside-axis {
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-light);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.dash-main { padding: 20px 22px 26px; }
.dash-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.dash-search {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--rule); border-radius: 6px;
  padding: 10px 12px;
  background: var(--surface);
  max-width: 500px;
}
.search-icon { color: var(--ink-light); }
.dash-search input {
  border: none; outline: none;
  font-family: inherit; font-size: 13px;
  background: transparent;
  width: 100%;
  color: var(--ink);
}
.dash-toolbar-actions { display: flex; gap: 8px; }
.dash-results-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
  font-size: 12.5px;
  color: var(--ink-mid);
}
.dash-results-meta .muted { color: var(--ink-light); }
.dash-results-meta strong { color: var(--ink); }

/* Dashboard table — FT-style: dense, monospace numerics, hover row */
.dash-table {
  width: 100%;
  border-collapse: collapse;
}
.dash-table thead th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
  position: sticky; top: 0;
}
.dash-table th.right { text-align: right; }
.dash-table th.cb { width: 36px; text-align: center; }
.dash-table tbody td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--rule);
  font-size: 13.5px;
  color: var(--ink-mid);
}
.dash-table tbody tr {
  transition: background 100ms;
  cursor: pointer;
}
.dash-table tbody tr:hover { background: var(--surface-warm); }
.dash-table tbody td.right { text-align: right; font-family: var(--mono); }
.dash-table tbody td.strong { font-weight: 500; color: var(--ink); font-family: var(--sans); font-variant-numeric: tabular-nums; }
.dash-table tbody b { color: var(--ink); font-weight: 500; }
.dash-table .star {
  cursor: pointer; font-size: 15px;
  color: var(--ink-faint);
  transition: color 120ms, transform 120ms;
}
.dash-table .star.starred { color: var(--terra); }
.dash-table .star:hover { transform: scale(1.15); }

.match-bar {
  display: inline-block;
  width: 60px; height: 5px;
  background: var(--surface-warm);
  border-radius: 999px;
  overflow: hidden;
  vertical-align: middle;
  margin-right: 8px;
}
.match-bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--terra-soft), var(--terra));
  border-radius: 999px;
}
.match-num {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-mid);
  font-weight: 500;
}

.listing-pill {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid;
}
.listing-pill.listed { background: var(--ok-tint); border-color: var(--ok); color: #4d7c0f; }
.listing-pill.unlisted { background: var(--surface-warm); border-color: var(--rule-strong); color: var(--ink-light); }

.dash-table .more td {
  background: var(--surface-mut);
  text-align: center;
  font-style: italic;
  cursor: default;
  font-family: var(--mono);
  font-size: 11.5px;
}

/* ─── Funder detail mock ─── */
.funder-mock .mock-body { padding: 36px 40px; display: flex; flex-direction: column; gap: 32px; }
.funder-header {
  display: flex; align-items: center; gap: 10px;
}
.funder-header h3 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.015em;
}
.funder-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-light);
  margin-top: 3px;
}
.funder-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--surface-mut);
  border-radius: 6px;
  border: 1px solid var(--rule);
}
.funder-stats > div {
  padding: 20px 24px;
  border-right: 1px solid var(--rule);
}
.funder-stats > div:last-child { border-right: none; }
.funder-stats .kpi-value { font-size: 19px; }
.funder-section { display: flex; flex-direction: column; gap: 6px; }
.funder-section svg.bars { width: 100%; height: 100px; }
.proj-list { margin: 0; padding: 0; list-style: none; }
.proj-list li {
  display: flex; align-items: baseline; gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 14px;
  color: var(--ink-mid);
}
.proj-list li:last-child { border-bottom: none; }
.proj-amt {
  display: inline-block;
  min-width: 84px;
  color: var(--terra);
  font-weight: 600;
  font-family: var(--mono);
  font-size: 12.5px;
}
.funder-actions { display: flex; gap: 10px; padding-top: 10px; border-top: 1px solid var(--rule); }

/* ─── Shortlist ─── */
.shortlist-grid { display: flex; flex-direction: column; gap: 14px; }
.shortlist-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
}
.shortlist-count { font-size: 14px; }
.shortlist-count strong { color: var(--ink); font-weight: 600; }
.status-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid;
}
.status-pill.interested {
  background: var(--ipn-tint); border-color: var(--ipn-soft); color: var(--ipn);
}
.status-pill.contacted {
  background: rgba(180,83,9,0.08); border-color: #d97706; color: #92400e;
}
.status-pill.convo {
  background: var(--terra-tint); border-color: var(--terra); color: var(--terra);
}
.status-pill.committed {
  background: var(--sage-tint); border-color: var(--sage); color: #1f5e51;
}

.shortlist-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--rule-strong);
  border-radius: var(--r-lg);
  padding: 28px 36px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.shortlist-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.shortlist-card.status-interested { border-left-color: var(--ipn-soft); }
.shortlist-card.status-contacted  { border-left-color: #d97706; }
.shortlist-card.status-convo      { border-left-color: var(--terra); }
.shortlist-card.status-committed  { border-left-color: var(--sage); }
.sl-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 14px;
}
.sl-head h4 {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.012em;
}
.sl-head .muted {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-light);
  letter-spacing: 0.01em;
}
.sl-note {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.5;
  padding: 12px 18px;
  background: var(--surface-mut);
  border-left: 2px solid var(--terra);
  border-radius: 0 6px 6px 0;
}
.sl-note em { font-family: inherit; }
.sl-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-light);
  letter-spacing: 0.02em;
}

/* ─── Implementers ─── */
.impl-table { width: 100%; border-collapse: collapse; }
.impl-table tr td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  font-size: 13.5px;
}
.impl-table tr:last-child td { border-bottom: none; }
.impl-table tr:hover { background: var(--surface-warm); }
.impl-table .right { text-align: right; font-family: var(--mono); }
.impl-table .muted { color: var(--ink-light); font-family: var(--mono); font-size: 11px; }

/* ─── Design system ─── */
.system-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
@media (max-width: 900px) { .system-grid { grid-template-columns: 1fr; } }
.ds-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 26px 24px;
}
.ds-card h4 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 18px;
  letter-spacing: -0.012em;
}
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.sw {
  border-radius: 6px;
  color: #fff;
  padding: 42px 8px 8px;
  font-size: 10px;
  display: flex; flex-direction: column; gap: 1px;
}
.sw.light { background: var(--bg); color: var(--ink); border: 1px solid var(--rule-strong); }
.sw span { font-weight: 600; }
.sw code { font-family: var(--mono); font-size: 9.5px; opacity: 0.88; }

.type-row {
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
}
.type-row:last-child { border-bottom: none; }
.t-display {
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.022em;
}
.t-display .serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--terra);
}
.t-h1 { font-family: var(--sans); font-size: 22px; font-weight: 600; letter-spacing: -0.012em; }
.t-body { font-family: var(--sans); font-size: 14px; color: var(--ink-mid); }
.t-mono { font-family: var(--mono); font-size: 13px; color: var(--terra); font-variant-numeric: tabular-nums; }
.type-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.ds-comp { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.ds-note { font-size: 13.5px; color: var(--ink-mid); line-height: 1.55; }
.ds-note.muted { color: var(--ink-light); margin-bottom: 14px; }

.diff-list { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
.diff-list li { padding: 7px 0; border-bottom: 1px dashed var(--rule); color: var(--ink-mid); }
.diff-list li:last-child { border-bottom: none; }
.diff-strike { color: var(--ink-light); text-decoration: line-through; text-decoration-color: var(--terra); }
.diff-arrow {
  color: var(--terra);
  font-family: var(--mono);
  margin-right: 6px;
  font-weight: 600;
}

/* ─── Closing (deep section) ─── */
.closing .section-h { font-size: 42px; }
.section-deep code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--amber);
}
.closing-questions {
  margin: 28px 0 36px;
  padding-left: 0;
  list-style: none;
}
.closing-questions li {
  padding: 16px 0 16px 36px;
  border-top: 1px solid var(--deep-rule);
  font-size: 16px;
  color: var(--deep-text);
  position: relative;
  line-height: 1.5;
}
.closing-questions li:before {
  content: "?";
  position: absolute; left: 0; top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  font-weight: 400;
  color: var(--amber);
}
.closing-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--deep-mut);
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--deep-rule);
  letter-spacing: 0.02em;
}

/* ─── Reveal animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1), transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1100px) {
  .dash-kpis, .funder-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-row { grid-template-columns: 1fr; }
  .dash-aside { display: none; }
}
@media (max-width: 700px) {
  .container { width: min(100% - 32px, 600px); }
  .hero { padding: 60px 0 72px; }
  .display { font-size: 38px; }
  .section { padding: 64px 0; }
  .section-h { font-size: 28px; }
  .trust-strip { grid-template-columns: 1fr 1fr; gap: 22px; }
  .funder-stats { grid-template-columns: 1fr 1fr; }
  .funder-stats > div { border-right: none; border-bottom: 1px solid var(--rule); }
}
