/* ─────────────────────────────────────────────────────────────
   FundAssist v2 · Option E — Modern Workspace
   Same 5-step IA as Riya's mockup. Sleek, restrained, modern
   data-product chrome. Inter + JetBrains Mono. Off-white ground,
   matte-black emphasis, single deep-emerald accent moment.
   ───────────────────────────────────────────────────────────── */

:root {
  /* surfaces */
  --page: #F8F7F4;
  --surface: #FFFFFF;
  --surface-tint: #FAF9F5;
  --surface-deep: #0F0F10;

  /* ink */
  --ink: #0A0A0A;
  --ink-2: #1F1F22;
  --body: #525258;
  --muted: #8E8E94;
  --faint: #B4B0A8;

  /* lines */
  --line: #EAE7DE;
  --line-strong: #D8D3C5;

  /* accent system */
  --emerald: #064E3B;
  --emerald-2: #0B6B52;
  --emerald-bg: #ECF1EE;
  --amber: #B45309;
  --amber-bg: #FBF3E3;
  --sage: #5B7F58;
  --terra: #B3503B;
  --slate: #4A6B7D;
  --plum: #6B5B95;

  /* chart categorical */
  --cat-1: #4A6B7D;
  --cat-2: #B45309;
  --cat-3: #3B7958;
  --cat-4: #6B5B95;
  --cat-5: #B3503B;
  --cat-6: #5B5B61;

  /* radii / shadow */
  --r-control: 10px;
  --r-card: 16px;
  --shadow-soft: 0 1px 0 rgba(10, 10, 10, 0.04), 0 2px 12px rgba(10, 10, 10, 0.03);

  /* type */
  --sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Spectral", "GT Sectra", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "ss01" 1, "cv11" 1, "tnum" 1;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.55;
}

a { color: var(--emerald); text-decoration: none; transition: color 0.12s; }
a:hover { color: var(--emerald-2); }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--emerald-bg); color: var(--emerald); }

/* ─── Global header ─── */

.fa-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.fa-header__inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px 36px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.fa-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.fa-brand__mark {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
}
.fa-brand__name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.fa-brand__sub {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-left: 8px;
  border-left: 1px solid var(--line);
  margin-left: 4px;
}

.fa-status {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  color: var(--body);
  justify-content: center;
}
.fa-status__item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.fa-status__label {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.fa-status__value { color: var(--ink-2); font-weight: 500; }
.fa-status__sep {
  width: 1px;
  height: 12px;
  background: var(--line-strong);
}

.fa-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  font-size: 12px;
  color: var(--ink-2);
  background: var(--surface);
}
.fa-user__avatar {
  width: 22px; height: 22px;
  background: var(--emerald-bg);
  color: var(--emerald);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
}

/* ─── Sub-nav: dual track ─── */

.fa-track {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.fa-track__inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 14px 36px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.fa-track__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.fa-track__toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  padding: 2px;
  background: var(--surface-tint);
}
.fa-track__btn {
  border: 0;
  background: transparent;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--body);
  transition: background 0.12s, color 0.12s;
}
.fa-track__btn[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}
.fa-track__hint {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

/* ─── Stepper ─── */

.fa-stepper {
  max-width: 1480px;
  margin: 0 auto;
  padding: 24px 36px 0;
  display: flex;
  gap: 8px;
  position: relative;
}
.fa-stepper::after {
  content: "";
  position: absolute;
  left: 36px; right: 36px; bottom: 0;
  height: 1px;
  background: var(--line);
}
.fa-step {
  position: relative;
  background: transparent;
  border: 0;
  padding: 12px 4px 18px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.12s;
}
.fa-step__num {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  font-weight: 500;
}
.fa-step:hover { color: var(--ink-2); }
.fa-step:hover .fa-step__num { border-color: var(--line-strong); color: var(--body); }
.fa-step[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}
.fa-step[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--ink);
  z-index: 1;
}
.fa-step[aria-current="page"] .fa-step__num {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.fa-step__cap { display: inline-block; padding: 4px 8px; }

/* ─── Main ─── */

.fa-main {
  max-width: 1480px;
  margin: 0 auto;
  padding: 36px 36px 80px;
}

.fa-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.fa-page-title {
  font-size: 34px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 10px;
}
.fa-page-title .accent-serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--emerald);
}
.fa-page-lead {
  font-size: 15px;
  color: var(--body);
  max-width: 720px;
  margin: 0 0 28px;
  line-height: 1.6;
}

.fa-section-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 14px;
  gap: 16px;
}
.fa-section-bar h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}
.fa-section-bar p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* ─── Cards ─── */

.fa-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px 28px;
}
.fa-card + .fa-card { margin-top: 18px; }
.fa-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 4px;
}
.fa-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}
.fa-card__sub {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 18px;
}
.fa-card__head-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.fa-card__head-meta::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--sage);
  border-radius: 999px;
}

/* ─── Buttons ─── */

.btn {
  border: 0;
  border-radius: var(--r-control);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.12s, transform 0.06s, border-color 0.12s;
  letter-spacing: -0.005em;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--ink);
  color: #fff;
}
.btn--primary:hover { background: var(--ink-2); }

.btn--emerald {
  background: var(--emerald);
  color: #fff;
}
.btn--emerald:hover { background: var(--emerald-2); }

.btn--ghost {
  background: transparent;
  color: var(--body);
  border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: var(--line-strong); color: var(--ink-2); background: var(--surface-tint); }

.btn--minimal {
  background: transparent;
  color: var(--body);
  padding: 6px 10px;
}
.btn--minimal:hover { color: var(--ink); background: var(--surface-tint); }

.btn--sm { font-size: 12px; padding: 6px 12px; }

/* ─── Chips ─── */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-tint);
  border: 1px solid var(--line);
  color: var(--ink-2);
  padding: 5px 10px 5px 12px;
  border-radius: var(--r-control);
  font-size: 12.5px;
  font-weight: 500;
  margin: 0 6px 6px 0;
}
.chip__dot {
  width: 6px; height: 6px;
  background: var(--emerald);
  border-radius: 999px;
}
.chip__dot--neutral { background: var(--muted); }
.chip__x {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  margin-left: 2px;
  padding: 0 2px;
}
.chip__x:hover { color: var(--terra); }
.chip--emerald {
  background: var(--emerald-bg);
  color: var(--emerald);
  border-color: rgba(6,78,59,0.18);
}
.chip--emerald .chip__dot { background: var(--emerald); }

/* ─── Tab 1 — Scoping Workspace ─── */

.fa-cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
@media (max-width: 1024px) {
  .fa-cols-2 { grid-template-columns: 1fr; }
}

.fa-field { margin-bottom: 20px; }
.fa-field__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 10px;
  display: flex;
  justify-content: space-between;
}
.fa-field__legend { color: var(--faint); font-size: 10.5px; }

.fa-field__chips { min-height: 28px; margin-bottom: 8px; }
.fa-field__inputrow {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.fa-field__inputrow input,
.fa-input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.12s, box-shadow 0.12s;
}
.fa-input:focus,
.fa-field__inputrow input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.06);
}

/* Intelligence advice cards */
.fa-advice {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.fa-advice:first-of-type { border-top: 0; padding-top: 4px; }
.fa-advice__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 3px;
  letter-spacing: -0.005em;
}
.fa-advice__why {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.fa-advice__add {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 8px;
  flex-shrink: 0;
  transition: all 0.12s;
}
.fa-advice__add:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.fa-callout {
  background: var(--amber-bg);
  border: 1px solid rgba(180, 83, 9, 0.18);
  border-radius: var(--r-control);
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--amber);
  margin-top: 18px;
  line-height: 1.55;
}
.fa-callout strong { color: var(--amber); }

.fa-ready {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-card);
  padding: 22px 24px;
  margin-top: 18px;
}
.fa-ready__title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.fa-ready__title small {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.fa-ready__body {
  font-size: 13.5px;
  color: #bcbcc0;
  margin: 0 0 16px;
}
.fa-ready__body strong { color: #fff; font-weight: 600; }
.fa-ready .btn {
  background: #fff;
  color: var(--ink);
}
.fa-ready .btn:hover { background: var(--emerald-bg); }

/* Data sources */
.fa-sources {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 6px;
}
.fa-source {
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  padding: 16px 18px;
}
.fa-source__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.35;
}
.fa-source__count {
  font-family: var(--mono);
  font-size: 17px;
  color: var(--ink);
  margin: 6px 0;
  font-weight: 500;
}
.fa-source__status {
  font-size: 11px;
  color: var(--sage);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fa-source__status::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--sage);
  border-radius: 999px;
}

/* ─── Tab 2 — Ecosystem Trends ─── */

.fa-filter-bar {
  display: flex;
  gap: 0;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: var(--surface);
  padding: 4px;
  overflow-x: auto;
}
.fa-filter {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 16px;
  border-right: 1px solid var(--line);
  min-width: 200px;
}
.fa-filter:last-child { border-right: 0; }
.fa-filter label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-family: var(--mono);
}
.fa-filter select {
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  padding: 2px 0;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E8E94' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 12px;
  padding-right: 18px;
  cursor: pointer;
}

/* KPI strip */
.fa-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.fa-kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px 24px;
}
.fa-kpi__label {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
.fa-kpi__value {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1;
}
.fa-kpi__unit {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  margin-left: 4px;
}
.fa-kpi__delta {
  font-size: 11.5px;
  color: var(--sage);
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
}
.fa-kpi__delta--down { color: var(--terra); }

.fa-kpi--feature {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.fa-kpi--feature .fa-kpi__label { color: #9c9ca2; }
.fa-kpi--feature .fa-kpi__value { color: #fff; }
.fa-kpi--feature .fa-kpi__unit { color: #9c9ca2; }
.fa-kpi--feature .fa-kpi__delta { color: var(--emerald-bg); }

/* Charts */
.fa-charts {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
}
.fa-chart {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px 26px;
}
.fa-chart__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 3px;
  letter-spacing: -0.005em;
}
.fa-chart__sub {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 18px;
}

.fa-line-svg { width: 100%; height: 220px; display: block; }

.fa-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11.5px;
  color: var(--body);
  margin-top: 14px;
  font-family: var(--mono);
}
.fa-legend__dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}

/* Donut */
.fa-donut-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}
.fa-donut {
  width: 180px; height: 180px;
  border-radius: 50%;
  background: conic-gradient(
    var(--cat-1) 0 22%,
    var(--cat-2) 22% 41%,
    var(--cat-3) 41% 56%,
    var(--cat-4) 56% 69%,
    var(--cat-5) 69% 81%,
    var(--cat-6) 81% 100%
  );
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.fa-donut::after {
  content: "";
  width: 110px; height: 110px;
  background: var(--surface);
  border-radius: 50%;
  position: absolute;
}
.fa-donut__center {
  position: relative;
  z-index: 1;
  text-align: center;
}
.fa-donut__total {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}
.fa-donut__label {
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* Bar table */
.fa-bartable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.fa-bartable th {
  text-align: left;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--mono);
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 10px 12px 10px 0;
}
.fa-bartable td {
  border-bottom: 1px solid var(--line);
  padding: 13px 12px 13px 0;
  vertical-align: middle;
}
.fa-bartable tr:last-child td { border-bottom: 0; }
.fa-bartable td:first-child { color: var(--ink); font-weight: 500; }
.fa-bar-cell { position: relative; }
.fa-bar-cell__bar {
  display: flex;
  align-items: center;
  background: var(--surface-tint);
  border-radius: 4px;
  position: relative;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  padding: 5px 8px 5px 0;
  justify-content: flex-end;
  overflow: hidden;
}
.fa-bar-cell__bar::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--w, 50%);
  background: var(--emerald);
  opacity: 0.92;
  border-radius: 4px;
}
.fa-bar-cell__bar > span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 500;
}
.fa-bar-cell__bar--muted::before { background: var(--slate); opacity: 0.85; }

/* Heatmap */
.fa-heat {
  display: grid;
  grid-template-columns: 160px repeat(6, 1fr);
  gap: 5px;
}
.fa-heat__corner, .fa-heat__col-h {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 4px;
}
.fa-heat__row-h {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 8px 6px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fa-heat__row-h small {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 5px;
  background: var(--emerald-bg);
  border-radius: 4px;
}
.fa-heat__cell {
  height: 36px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: transform 0.08s;
}
.fa-heat__cell:hover { transform: scale(1.05); z-index: 1; }

/* ─── Tab 3 — Match & Shortlist ─── */

.fa-search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.fa-search-row .fa-input {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E8E94' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='11' cy='11' r='8'/%3e%3cpath d='m21 21-4.3-4.3'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 16px;
  padding-left: 38px;
}

.fa-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.fa-funder-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.fa-funder-table th {
  text-align: left;
  font-size: 10.5px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 12px 14px 12px 0;
  font-weight: 500;
  white-space: nowrap;
}
.fa-funder-table td {
  border-bottom: 1px solid var(--line);
  padding: 16px 14px 16px 0;
  vertical-align: middle;
}
.fa-funder-table tr:last-child td { border-bottom: 0; }
.fa-funder-table tr:hover td { background: var(--surface-tint); }
.fa-funder-table td:first-child { font-weight: 500; color: var(--ink); padding-left: 4px; }
.fa-funder-table .num {
  font-family: var(--mono);
  text-align: right;
  color: var(--ink);
}
.fa-funder-table .industry { color: var(--body); font-size: 12.5px; }

.fa-score {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
}
.fa-score--high { background: var(--emerald-bg); color: var(--emerald); }
.fa-score--mid { background: var(--surface-tint); color: var(--body); border: 1px solid var(--line); }

.fa-spark { display: block; width: 84px; height: 22px; }

.fa-verified-tag {
  font-size: 10.5px;
  color: var(--sage);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.fa-verified-tag::before {
  content: "✓";
  background: var(--sage);
  color: #fff;
  width: 13px; height: 13px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 9px;
}

.fa-shortlist-strip {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.fa-shortlist-strip__count {
  font-size: 13.5px;
  color: var(--body);
  margin: 0;
}
.fa-shortlist-strip__count strong {
  color: var(--ink);
  font-weight: 600;
}

/* ─── Tab 4 — Funder Diagnostics ─── */

.fa-diag-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px 30px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
}
.fa-diag-hero__name {
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}
.fa-diag-hero__meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 22px;
  font-family: var(--mono);
}
.fa-diag-hero__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.fa-diag-hero__kpi-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-family: var(--mono);
  margin: 0 0 8px;
}
.fa-diag-hero__kpi-value {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1;
}
.fa-diag-hero__swap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  min-width: 240px;
}
.fa-diag-hero__swap select {
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  padding: 11px 14px;
  font-family: var(--sans);
  font-size: 13px;
  background: var(--surface);
  color: var(--ink);
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E8E94' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 32px;
}

.fa-diag-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
}

.fa-narrative {
  font-size: 14px;
  color: var(--body);
  line-height: 1.75;
  margin: 0 0 12px;
}
.fa-narrative strong { color: var(--ink); font-weight: 600; }

.fa-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.fa-stat-tile p:first-child {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 6px;
}
.fa-stat-tile .v {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.fa-stat-tile small { font-family: var(--mono); font-size: 11px; color: var(--muted); }

.fa-people {
  display: flex;
  flex-direction: column;
}
.fa-person {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.fa-person:first-of-type { border-top: 0; padding-top: 4px; }
.fa-person__avatar {
  width: 36px; height: 36px;
  background: var(--surface-tint);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
}
.fa-person__name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.fa-person__role {
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 0;
}
.fa-person__email {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--body);
}
.fa-person__conn {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: right;
}
.fa-person__conn strong { color: var(--ink); font-weight: 500; }

.fa-connection {
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-card);
  font-size: 13.5px;
  line-height: 1.65;
}
.fa-connection strong { color: var(--emerald-bg); }
.fa-connection em {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}

/* ─── Tab 5 — Outreach Proposal ─── */

.fa-pitch {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 18px;
}
.fa-pitch__form .fa-input,
.fa-pitch__form select,
.fa-pitch__form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  padding: 11px 14px;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink);
  background: var(--surface);
  margin-bottom: 14px;
}
.fa-pitch__form textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.55;
  font-family: var(--sans);
}
.fa-pitch__form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E8E94' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 32px;
}
.fa-pitch__form-label {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 6px;
}
.fa-pitch-step {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
}
.fa-pitch-step::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--line-strong);
}
.fa-pitch-step + h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
}
.fa-pitch-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.fa-pitch-mode__btn {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-control);
  padding: 16px;
  text-align: left;
  font-family: var(--sans);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.fa-pitch-mode__btn[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--surface-tint);
}
.fa-pitch-mode__icon {
  font-size: 18px;
  margin-bottom: 8px;
  opacity: 0.85;
}
.fa-pitch-mode__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.fa-pitch-mode__sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.fa-pitch-output {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px 30px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
}
.fa-pitch-output h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 12px;
  font-weight: 500;
}
.fa-pitch-output p { margin: 0 0 14px; }
.fa-pitch-output p:last-child { margin-bottom: 0; }
.fa-pitch-output strong { font-weight: 600; }
.fa-pitch-output .signature {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 16px;
  font-size: 13px;
  color: var(--body);
}
.fa-pitch-output .signature small {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Footer ─── */

.fa-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  margin-top: 56px;
}
.fa-footer__inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 22px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.fa-footer__brand {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.fa-secure {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.fa-secure::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--sage);
  border-radius: 999px;
}

/* ─── Tab visibility ─── */

.fa-tab-panel { display: none; }
.fa-tab-panel.is-active { display: block; animation: fadeIn 0.18s ease-out; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Connection probe ─── */

.fa-wired {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.fa-wired__dot {
  width: 7px; height: 7px;
  background: var(--sage);
  border-radius: 999px;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ─── Misc ─── */

.placeholder-note {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  background: var(--surface-tint);
  border-left: 2px solid var(--line-strong);
  padding: 8px 12px;
  border-radius: 4px;
  margin: 10px 0;
}

@media (max-width: 768px) {
  .fa-charts, .fa-diag-grid, .fa-pitch, .fa-grid-2 { grid-template-columns: 1fr; }
  .fa-kpi-strip, .fa-sources { grid-template-columns: 1fr 1fr; }
  .fa-header__inner { grid-template-columns: 1fr auto; }
  .fa-status { display: none; }
  .fa-main { padding: 24px 18px 60px; }
  .fa-stepper { overflow-x: auto; }
}
