:root {
  color-scheme: light;
  --navy: #0B2A4A;
  --navy-dark: #061829;
  --navy-light: #1A3E66;
  --teal: #2FB39A;
  --teal-dark: #228574;
  --teal-light: #5FC9B5;
  --orange: #E87722;
  --orange-dark: #C35E14;
  --grey-900: #1F2A37;
  --grey-700: #4A4A4A;
  --grey-500: #6B7280;
  --grey-400: #9CA3AF;
  --grey-300: #CBD5E1;
  --grey-200: #E5E7EB;
  --grey-100: #F2F5F8;
  --grey-50: #F9FAFB;
  --white: #FFFFFF;
  --success: #10B981;
  --warn: #F59E0B;
  --danger: #EF4444;
  --shadow-xs: 0 1px 2px rgba(11,42,74,0.04);
  --shadow-sm: 0 1px 2px rgba(11,42,74,0.06), 0 2px 6px -2px rgba(11,42,74,0.04);
  --shadow: 0 4px 16px -4px rgba(11,42,74,0.08), 0 2px 6px -2px rgba(11,42,74,0.05);
  --shadow-lg: 0 16px 40px -12px rgba(11,42,74,0.16), 0 4px 12px -4px rgba(11,42,74,0.08);
  --shadow-xl: 0 24px 56px -16px rgba(11,42,74,0.22), 0 8px 20px -6px rgba(11,42,74,0.10);
  --ring-teal: 0 0 0 3px rgba(47,179,154,0.18), 0 0 0 1px rgba(47,179,154,0.55);
  --ring-orange: 0 0 0 3px rgba(232,119,34,0.18), 0 0 0 1px rgba(232,119,34,0.55);
  --ring-navy: 0 0 0 3px rgba(11,42,74,0.16), 0 0 0 1px rgba(11,42,74,0.5);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --transition: 180ms var(--ease);
  --dur-fast: 140ms;
  --dur: 220ms;
  --dur-slow: 360ms;
}
::selection { background: rgba(47,179,154,0.25); color: var(--navy); }
:focus-visible {
  outline: none;
  box-shadow: var(--ring-teal);
  border-radius: 6px;
}
button:focus-visible, .btn:focus-visible, .option:focus-visible,
.tab:focus-visible, .text-input:focus-visible, .select-input:focus-visible {
  outline: none;
  box-shadow: var(--ring-teal);
}
.tabular { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; min-height: 100vh; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(ellipse 1400px 700px at 8% -20%, rgba(47,179,154,0.10), transparent 60%),
    radial-gradient(ellipse 1200px 600px at 95% 0%, rgba(232,119,34,0.07), transparent 60%),
    radial-gradient(ellipse 900px 500px at 50% 100%, rgba(11,42,74,0.04), transparent 60%),
    var(--grey-100);
  background-attachment: fixed;
  color: var(--grey-900);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
h1, h2, h3, .hero h1 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.015em;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ------------ APP SHELL ------------ */
.app {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 32px 96px;
}
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  margin: 0 -32px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  z-index: 3;
}
.top-bar .logos {
  display: flex;
  align-items: center;
  gap: 24px;
}
.top-bar img.logo-n { height: 56px; width: auto; filter: brightness(0) invert(1); opacity: 0.95; }
.top-bar img.logo-a { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: 0.95; }
.top-bar .divider { width: 1px; height: 36px; background: rgba(255,255,255,0.22); }

/* Logo-as-home-link (wizard head and results header) */
.home-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: opacity 160ms var(--ease);
}
.home-link:hover { opacity: 0.85; }
.home-link:focus-visible { box-shadow: var(--ring-teal); border-radius: 8px; outline: none; }
.wizard-home,
.results-home {
  margin-bottom: 14px;
  gap: 14px;
  position: relative;
  z-index: 3;
}
.wizard-home img,
.results-home img { display: block; filter: brightness(0) invert(1); opacity: 0.92; }
.wizard-home img.logo-src-n,
.results-home img.logo-src-n { height: 26px; width: auto; }
.wizard-home img.logo-src-a,
.results-home img.logo-src-a { height: 20px; width: auto; }
.wizard-home .divider,
.results-home .divider { width: 1px; height: 18px; background: rgba(255,255,255,0.22); }
@media (max-width: 640px) {
  .wizard-home,
  .results-home { gap: 10px; margin-bottom: 10px; }
  .wizard-home img.logo-src-n,
  .results-home img.logo-src-n { height: 20px; }
  .wizard-home img.logo-src-a,
  .results-home img.logo-src-a { height: 16px; }
  .wizard-home .divider,
  .results-home .divider { height: 14px; }
}
.top-bar .meta {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  text-align: right;
  line-height: 1.7;
}
.top-bar .meta strong {
  font-family: "Inter", sans-serif;
  color: #fff;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.005em;
  display: block;
  margin-bottom: 2px;
}
.app { padding-top: 0; }
.hero-canvas .top-bar { margin: 0; padding: 28px 32px 0; }

/* ------------ DARK HERO CANVAS ------------ */
.hero-canvas {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -24px;
  margin-bottom: 48px;
  padding: 0 0 72px 0;
  background:
    radial-gradient(ellipse 900px 500px at 20% 0%, rgba(47,179,154,0.18), transparent 65%),
    radial-gradient(ellipse 900px 500px at 80% 100%, rgba(232,119,34,0.09), transparent 65%),
    radial-gradient(circle 700px at 50% 110%, rgba(47,179,154,0.14), transparent 60%),
    linear-gradient(180deg, #071A30 0%, #0B2A4A 60%, #0B2A4A 100%);
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hero-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 15%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.hero-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 1px at 20% 30%, rgba(47,179,154,0.3), transparent 1px),
    radial-gradient(circle 1px at 75% 60%, rgba(47,179,154,0.25), transparent 1px),
    radial-gradient(circle 1px at 40% 80%, rgba(255,255,255,0.15), transparent 1px),
    radial-gradient(circle 1px at 85% 20%, rgba(255,255,255,0.1), transparent 1px);
  background-size: 240px 240px, 320px 320px, 180px 180px, 260px 260px;
  animation: drift 30s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes drift {
  to { background-position: 240px 240px, -320px 320px, 180px -180px, -260px -260px; }
}
.hero {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 32px 0;
}
.hero-canvas .top-bar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 32px 0;
}
.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 2.4px;
  font-weight: 500;
  color: rgba(47,179,154,0.9);
  background: rgba(47,179,154,0.08);
  border: 1px solid rgba(47,179,154,0.22);
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  margin-bottom: 36px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero .kicker::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(47,179,154,0.6);
  animation: lf-pulse 2s infinite;
}
.hero h1 {
  font-size: clamp(48px, 9vw, 104px);
  line-height: 0.98;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  font-feature-settings: "ss01", "cv11";
}
.hero h1 .accent {
  color: #5FC9B5;
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, #5FC9B5 0%, #2FB39A 60%, #8ED9C8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-family: "Inter", sans-serif;
  font-size: 19px;
  color: rgba(255,255,255,0.72);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* Telemetry strip under hero — real data from grants.gov */
.telemetry {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 16px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
}
.telemetry .tele-label {
  display: flex; align-items: center; gap: 10px;
  font-weight: 500;
  color: rgba(47,179,154,0.95);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 10.5px;
}
.telemetry .tele-label::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(47,179,154,0.8);
  animation: lf-pulse 2s infinite;
}
.telemetry .tele-ticker {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
}
.telemetry .tele-ticker-track {
  display: inline-block;
  animation: tele-scroll 240s linear infinite;
  padding-left: 100%;
}
.telemetry .tele-ticker-track .op {
  display: inline-block;
  margin-right: 44px;
  color: rgba(255,255,255,0.55);
}
.telemetry .tele-ticker-track .op .aln {
  color: rgba(47,179,154,0.95);
  font-weight: 500;
  margin-right: 10px;
}
.telemetry .tele-ticker-track .op .title {
  color: rgba(255,255,255,0.85);
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  margin-right: 10px;
}
.telemetry .tele-ticker-track .op .arrow {
  color: rgba(255,255,255,0.3);
  margin: 0 10px;
}
.telemetry .tele-ticker-track .op .agency {
  color: rgba(255,255,255,0.4);
}
@keyframes tele-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.telemetry .tele-sync {
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}
.telemetry .tele-sync strong {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

/* Primary stats row — proof numbers directly under hero */
.proof-row {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
}
.proof-row .stat {
  background: rgba(11,42,74,0.6);
  padding: 22px 20px;
  backdrop-filter: blur(8px);
}
.proof-row .stat .val {
  font-family: "Fraunces", Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.proof-row .stat .val .unit {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  margin-left: 4px;
}
.proof-row .stat .lab {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(47,179,154,0.9);
  text-transform: uppercase;
  margin-top: 8px;
  font-weight: 500;
}
.proof-row .stat .sub {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
  font-weight: 400;
}

/* Ticker source chips (grant/award/fnd/saa) */
.telemetry .tele-ticker-track .op .src-chip {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 10px;
  border: 1px solid;
  text-transform: uppercase;
}
.telemetry .tele-ticker-track .op .src-chip.src-grant {
  color: rgba(47,179,154,0.95);
  background: rgba(47,179,154,0.10);
  border-color: rgba(47,179,154,0.35);
}
.telemetry .tele-ticker-track .op .src-chip.src-award {
  color: rgba(245,184,46,0.95);
  background: rgba(245,184,46,0.10);
  border-color: rgba(245,184,46,0.35);
}
.telemetry .tele-ticker-track .op .src-chip.src-fnd {
  color: rgba(139,92,246,0.95);
  background: rgba(139,92,246,0.10);
  border-color: rgba(139,92,246,0.35);
}
.telemetry .tele-ticker-track .op .src-chip.src-saa {
  color: rgba(232,119,34,0.95);
  background: rgba(232,119,34,0.10);
  border-color: rgba(232,119,34,0.35);
}

/* Editorial 3-up below the hero (no cards, no icons — copy only) */
.editorial {
  max-width: 1100px;
  margin: 64px auto 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding: 0 32px;
}
.editorial .lane { border-top: 1px solid var(--grey-300); padding-top: 20px; }
.editorial .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--teal-dark);
  font-weight: 500;
  margin-bottom: 14px;
}
.editorial h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.2;
}
.editorial p {
  font-size: 14px;
  color: var(--grey-700);
  line-height: 1.65;
  max-width: 320px;
}

/* ============================================================
   SECTION PRIMITIVES (reusable across landing sections)
   ============================================================ */
.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 96px 32px;
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 64px;
}
@media (max-width: 900px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 48px;
  }
  .section-eyebrow-col { padding-top: 0; }
}
.section-kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--teal-dark);
  font-weight: 500;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-kicker::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--teal-dark);
}
.section-headline {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--navy);
}
.section-lead {
  font-family: "Inter", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--grey-700);
  max-width: 580px;
  margin-top: 20px;
}
.section-eyebrow-col { padding-top: 6px; }

/* dark section variant (ink canvas) */
.section.dark {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 96px 0;
  background:
    radial-gradient(ellipse 900px 400px at 15% 0%, rgba(47,179,154,0.14), transparent 65%),
    radial-gradient(ellipse 700px 400px at 85% 100%, rgba(232,119,34,0.07), transparent 65%),
    linear-gradient(180deg, #071A30 0%, #0B2A4A 60%, #061829 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 15%, transparent 70%);
  pointer-events: none;
}
.section.dark > .inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}
.section.dark .section-headline { color: #fff; }
.section.dark .section-kicker { color: var(--teal-light); }
.section.dark .section-kicker::before { background: var(--teal-light); }
.section.dark .section-lead { color: rgba(255,255,255,0.72); }

.section-rule { border-top: 1px solid rgba(11,42,74,0.08); padding-top: 32px; }
.section.dark .section-rule { border-top-color: rgba(255,255,255,0.12); }

/* Capabilities list (platform section) */
.cap-list { display: grid; grid-template-columns: 1fr; gap: 0; }
.cap-list .cap {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid rgba(11,42,74,0.08);
}
.cap-list .cap:last-child { border-bottom: 1px solid rgba(11,42,74,0.08); }
.cap .idx {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--grey-500);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
.cap .name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--navy);
  line-height: 1.3;
}
.cap .desc {
  font-size: 14px;
  color: var(--grey-700);
  line-height: 1.55;
  margin-top: 4px;
  max-width: 520px;
}
.cap .tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--teal-dark);
  font-weight: 500;
  text-transform: uppercase;
}

/* Badge grid (compliance) */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(11,42,74,0.08);
  border: 1px solid rgba(11,42,74,0.08);
  border-radius: 14px;
  overflow: hidden;
}
.section.dark .badge-grid { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.08); }
.badge-tile {
  background: #fff;
  padding: 32px 24px;
  transition: background var(--dur) var(--ease);
}
.section.dark .badge-tile { background: rgba(11,42,74,0.55); backdrop-filter: blur(8px); }
.badge-tile:hover { background: rgba(47,179,154,0.06); }
.section.dark .badge-tile:hover { background: rgba(47,179,154,0.14); }
.badge-tile .std {
  font-family: "Fraunces", Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.1;
}
.section.dark .badge-tile .std { color: #fff; }
.badge-tile .std-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--teal-dark);
  text-transform: uppercase;
  margin-top: 10px;
  font-weight: 500;
}
.section.dark .badge-tile .std-sub { color: var(--teal-light); }
.badge-tile .std-desc {
  font-size: 13px;
  color: var(--grey-700);
  line-height: 1.55;
  margin-top: 10px;
}
.section.dark .badge-tile .std-desc { color: rgba(255,255,255,0.65); }

/* Certification source badge (audited vs self-attested) */
.cert-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 5px;
  margin-bottom: 14px;
  align-self: flex-start;
}
.cert-source::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
}
.cert-source.audited {
  color: var(--teal-dark);
  background: rgba(47,179,154,0.12);
  border: 1px solid rgba(47,179,154,0.35);
  font-weight: 700;
}
.cert-source.audited::before { background: var(--teal); box-shadow: 0 0 8px rgba(47,179,154,0.7); }
.cert-source.monitored {
  color: var(--navy);
  background: rgba(11,42,74,0.04);
  border: 1px solid rgba(11,42,74,0.12);
}
.cert-source.monitored::before { background: var(--navy-light); }
.cert-source.self {
  color: var(--grey-700);
  background: rgba(11,42,74,0.05);
  border: 1px solid rgba(11,42,74,0.15);
}
.cert-source.self::before { background: var(--grey-500); }

/* Full-width compliance summary callout below the grid */
.compliance-callout {
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(11,42,74,0.04), rgba(47,179,154,0.06));
  border: 1px solid rgba(47,179,154,0.22);
  border-radius: 14px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}
.compliance-callout .cc-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.compliance-callout .cc-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: 8px;
}
.compliance-callout .cc-body {
  font-size: 14px;
  color: var(--grey-700);
  line-height: 1.6;
}

/* Outcome stat grid */
.outcomes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
}
.outcome {
  background: rgba(11,42,74,0.6);
  padding: 48px 40px;
  backdrop-filter: blur(8px);
}
.outcome .big {
  font-family: "Fraunces", Georgia, serif;
  font-size: 88px;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.outcome .big .unit {
  font-family: "Inter", sans-serif;
  font-size: 42px;
  color: var(--teal-light);
  font-weight: 400;
  margin-left: 2px;
}
.outcome .title {
  font-family: "Inter", sans-serif;
  font-size: 17px;
  color: #fff;
  font-weight: 500;
  line-height: 1.4;
  margin-top: 20px;
  letter-spacing: -0.005em;
}
.outcome .src {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: rgba(47,179,154,0.9);
  text-transform: uppercase;
  margin-top: 14px;
  font-weight: 500;
}
.outcome-secondary-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.outcome-small .num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.outcome-small .body {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.55;
  margin-top: 10px;
  max-width: 420px;
}
.outcome-small .body cite {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-style: normal;
  color: rgba(47,179,154,0.9);
  letter-spacing: 0.08em;
  display: block;
  margin-top: 8px;
}

/* Customer / partners lists */
.roster {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
  margin-top: 32px;
}
.roster .rost {
  padding: 20px 0;
  border-top: 1px solid rgba(11,42,74,0.08);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
}
.roster .rost:last-child, .roster .rost:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid rgba(11,42,74,0.08); }
.roster .rost .org {
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.roster .rost .meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--grey-500);
  text-transform: uppercase;
}

.vehicles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.vehicle {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--navy);
  background: rgba(11,42,74,0.05);
  border: 1px solid rgba(11,42,74,0.14);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
}
.section.dark .vehicle {
  color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding: 120px 32px;
}
.final-cta h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(40px, 6.5vw, 80px);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.02;
  max-width: 900px;
  margin: 0 auto 32px;
}
.final-cta h2 .accent {
  font-style: italic;
  background: linear-gradient(135deg, #5FC9B5, #2FB39A, #8ED9C8);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.final-cta .sub {
  font-family: "Inter", sans-serif;
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.final-cta .cta-row { justify-content: center; }

/* Unified stack schematic (replaces the old illustrated platform-visual) */
.unified-stack {
  position: relative;
  margin: 16px 0 72px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 700px 250px at 15% 0%, rgba(47,179,154,0.16), transparent 65%),
    radial-gradient(ellipse 500px 200px at 90% 100%, rgba(232,119,34,0.07), transparent 65%),
    linear-gradient(180deg, #071A30 0%, #0B2A4A 100%);
  border: 1px solid rgba(47,179,154,0.18);
  box-shadow: var(--shadow-lg);
  padding: 44px 48px;
  color: #fff;
}
.unified-stack::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 30%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 30%, black 20%, transparent 75%);
  pointer-events: none;
}
.unified-stack > * { position: relative; z-index: 1; }
.us-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: baseline;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.us-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--teal-light);
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}
.us-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: #fff;
  max-width: 640px;
}
.us-layers {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ============================================================
   HERO · LOAD-IN SEQUENCE (fires on page load, cascading)
   ============================================================ */
@keyframes heroDrop {
  0%   { opacity: 0; transform: translateY(-18px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes heroRise {
  0%   { opacity: 0; transform: translateY(28px); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
@keyframes heroScaleIn {
  0%   { opacity: 0; transform: translateY(28px) scale(0.94); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0) scale(1);       filter: blur(0); }
}
@keyframes heroSlideLeft {
  0%   { opacity: 0; transform: translateX(28px); filter: blur(4px); }
  100% { opacity: 1; transform: translateX(0);    filter: blur(0); }
}
.hero .kicker   { animation: heroDrop 700ms cubic-bezier(0.16,1,0.3,1) 120ms both; }
.hero h1        { animation: heroRise 1100ms cubic-bezier(0.16,1,0.3,1) 280ms both; }
.hero p.lead    { animation: heroRise 900ms cubic-bezier(0.16,1,0.3,1) 520ms both; }
.hero .cta-row  { animation: heroRise 800ms cubic-bezier(0.34,1.56,0.64,1) 720ms both; }
.hero .proof-row .stat {
  animation: heroScaleIn 800ms cubic-bezier(0.16,1,0.3,1) both;
}
.hero .proof-row .stat:nth-child(1) { animation-delay: 880ms; }
.hero .proof-row .stat:nth-child(2) { animation-delay: 980ms; }
.hero .proof-row .stat:nth-child(3) { animation-delay: 1080ms; }
.hero .proof-row .stat:nth-child(4) { animation-delay: 1180ms; }
.hero .telemetry { animation: heroSlideLeft 900ms cubic-bezier(0.16,1,0.3,1) 1320ms both; }

/* Top-bar logos drop in first */
.top-bar .logos { animation: heroDrop 700ms cubic-bezier(0.16,1,0.3,1) 40ms both; }
.top-bar .meta  { animation: heroDrop 700ms cubic-bezier(0.16,1,0.3,1) 180ms both; }

@media (prefers-reduced-motion: reduce) {
  .hero *, .top-bar * { animation: none !important; }
}

/* ============================================================
   STAGGERED STACK REVEAL — "layers land from offscreen"
   Each layer flies in from the left with scale + blur → focus,
   overshoots with a spring, then fires a teal glow pulse on
   arrival. Layer 01 leads; the 5-layer build tops out with the
   contract-vehicle footer strip. ~2s total.
   ============================================================ */
.unified-stack .us-layer {
  opacity: 0;
  transform: translateX(-140px) scale(0.82) rotate(-2deg);
  filter: blur(8px);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 900ms cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 700ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}
.unified-stack .us-head {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.unified-stack .us-foot {
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition:
    opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.unified-stack.stacked .us-head {
  opacity: 1;
  transform: translateY(0);
}
.unified-stack.stacked .us-layer {
  opacity: 1;
  transform: translateX(0) scale(1) rotate(0);
  filter: blur(0);
}
/* Glow-pulse on each layer as it lands. Uses --tint from inline style. */
@keyframes layerLand {
  0%   { box-shadow: 0 0 0 0 transparent, 0 0 0 0 transparent; }
  55%  { box-shadow: 0 20px 48px -12px var(--tint, rgba(47,179,154,0.6)),
                      0 0 0 1px rgba(255,255,255,0.12); }
  100% { box-shadow: 0 0 0 0 transparent, 0 0 0 0 transparent; }
}
.unified-stack.stacked .us-layer {
  animation-name: layerLand;
  animation-duration: 1000ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: both;
}
/* Order: 5 children. Layer 01 = last child = first to reveal. Wider stagger. */
.unified-stack.stacked .us-layer:nth-child(5) { transition-delay: 160ms; animation-delay: 160ms; }   /* LAYER 01 */
.unified-stack.stacked .us-layer:nth-child(4) { transition-delay: 360ms; animation-delay: 360ms; }   /* LAYER 02 */
.unified-stack.stacked .us-layer:nth-child(3) { transition-delay: 560ms; animation-delay: 560ms; }   /* LAYER 03 */
.unified-stack.stacked .us-layer:nth-child(2) { transition-delay: 760ms; animation-delay: 760ms; }   /* LAYER 04 */
.unified-stack.stacked .us-layer:nth-child(1) { transition-delay: 960ms; animation-delay: 960ms; }   /* LAYER 05 */
.unified-stack.stacked .us-foot {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 1220ms;
}
@media (prefers-reduced-motion: reduce) {
  .unified-stack .us-layer,
  .unified-stack .us-head,
  .unified-stack .us-foot {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
    animation: none;
  }
}

/* ============================================================
   SCROLL-TRIGGERED SCENE REVEALS
   JS adds .revealed to containers when they enter view.
   Each descendant has its own stagger via nth-child delays.
   ============================================================ */

/* Editorial 3-up */
.editorial .lane {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(6px);
  transition:
    opacity 800ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 900ms cubic-bezier(0.34, 1.4, 0.64, 1),
    filter 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.editorial.revealed .lane {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.editorial.revealed .lane:nth-child(1) { transition-delay: 0ms; }
.editorial.revealed .lane:nth-child(2) { transition-delay: 180ms; }
.editorial.revealed .lane:nth-child(3) { transition-delay: 360ms; }

/* Outcomes — big stat cards with glow pulse + count-up */
.outcomes .outcome {
  opacity: 0;
  transform: translateY(32px) scale(0.92);
  filter: blur(8px);
  transition:
    opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1000ms cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 800ms cubic-bezier(0.16, 1, 0.3, 1);
}
.outcomes.revealed .outcome {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  animation: outcomeLand 1400ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.outcomes.revealed .outcome:nth-child(1) { transition-delay: 100ms; animation-delay: 200ms; }
.outcomes.revealed .outcome:nth-child(2) { transition-delay: 340ms; animation-delay: 440ms; }
@keyframes outcomeLand {
  0%   { box-shadow: 0 0 0 0 transparent, 0 0 0 0 transparent; }
  50%  { box-shadow: 0 24px 64px -16px rgba(47,179,154,0.65),
                     0 0 0 1px rgba(47,179,154,0.35); }
  100% { box-shadow: 0 0 0 0 transparent, 0 0 0 0 transparent; }
}

/* Secondary stats row */
.outcome-secondary-row .outcome-small {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}
.outcomes.revealed .outcome-small {
  opacity: 1;
  transform: translateY(0);
}
.outcomes.revealed .outcome-small:nth-child(1) { transition-delay: 720ms; }
.outcomes.revealed .outcome-small:nth-child(2) { transition-delay: 880ms; }

/* Compliance badge tiles — each lands with teal glow */
.badge-grid .badge-tile {
  opacity: 0;
  transform: translateY(28px) scale(0.9) rotate(-1deg);
  filter: blur(6px);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 800ms cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 600ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.badge-grid.revealed .badge-tile {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0);
  filter: blur(0);
  animation: tileLand 1000ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.badge-grid.revealed .badge-tile:nth-child(1) { transition-delay:   0ms; animation-delay:  100ms; }
.badge-grid.revealed .badge-tile:nth-child(2) { transition-delay: 120ms; animation-delay:  220ms; }
.badge-grid.revealed .badge-tile:nth-child(3) { transition-delay: 240ms; animation-delay:  340ms; }
.badge-grid.revealed .badge-tile:nth-child(4) { transition-delay: 360ms; animation-delay:  460ms; }
.badge-grid.revealed .badge-tile:nth-child(5) { transition-delay: 480ms; animation-delay:  580ms; }
.badge-grid.revealed .badge-tile:nth-child(6) { transition-delay: 600ms; animation-delay:  700ms; }
@keyframes tileLand {
  0%   { box-shadow: 0 0 0 0 transparent; }
  50%  { box-shadow: 0 20px 40px -12px rgba(47,179,154,0.5); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Compliance summary callout — reveals after all tiles finish */
.compliance-callout {
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 800ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.badge-grid.revealed + .compliance-callout {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 1300ms;
}

/* Testimonial cards */
.testimonial-grid .testimonial {
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  filter: blur(4px);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 800ms cubic-bezier(0.34, 1.4, 0.64, 1),
    filter 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.testimonial-grid.revealed .testimonial {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.testimonial-grid.revealed .testimonial:nth-child(1) { transition-delay:   0ms; }
.testimonial-grid.revealed .testimonial:nth-child(2) { transition-delay: 180ms; }
.testimonial-grid.revealed .testimonial:nth-child(3) { transition-delay: 360ms; }

/* Deployment photo tiles */
.deployments .dep {
  opacity: 0;
  transform: translateY(20px) scale(0.92);
  filter: blur(4px);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 800ms cubic-bezier(0.34, 1.4, 0.64, 1),
    filter 500ms cubic-bezier(0.16, 1, 0.3, 1);
}
.deployments.revealed .dep {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.deployments.revealed .dep:nth-child(1) { transition-delay: 0ms; }
.deployments.revealed .dep:nth-child(2) { transition-delay: 140ms; }
.deployments.revealed .dep:nth-child(3) { transition-delay: 280ms; }

/* Final CTA sequence */
.final-cta .section-kicker,
.final-cta h2,
.final-cta .sub,
.final-cta .cta-row {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(6px);
  transition:
    opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1000ms cubic-bezier(0.34, 1.4, 0.64, 1),
    filter 800ms cubic-bezier(0.16, 1, 0.3, 1);
}
.final-cta.revealed .section-kicker { opacity: 1; transform: translateY(0); filter: blur(0); transition-delay: 0ms; }
.final-cta.revealed h2              { opacity: 1; transform: translateY(0); filter: blur(0); transition-delay: 180ms; }
.final-cta.revealed .sub            { opacity: 1; transform: translateY(0); filter: blur(0); transition-delay: 420ms; }
.final-cta.revealed .cta-row        { opacity: 1; transform: translateY(0); filter: blur(0); transition-delay: 640ms; }

@media (prefers-reduced-motion: reduce) {
  .editorial .lane,
  .outcomes .outcome,
  .outcome-secondary-row .outcome-small,
  .badge-grid .badge-tile,
  .compliance-callout,
  .testimonial-grid .testimonial,
  .deployments .dep,
  .final-cta .section-kicker,
  .final-cta h2,
  .final-cta .sub,
  .final-cta .cta-row {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
    animation: none;
  }
}
.us-layer {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px 22px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 3px solid var(--tint, var(--teal));
  border-radius: 10px;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.us-layer:hover {
  background: rgba(255,255,255,0.06);
  transform: translateX(3px);
  border-color: rgba(255,255,255,0.14);
  border-left-color: var(--tint, var(--teal));
}
.us-layer-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--tint, var(--teal-light));
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.us-layer-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.3;
}
.us-layer-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
  text-align: right;
  line-height: 1.5;
  max-width: 480px;
}
.us-foot {
  margin-top: 24px;
  padding: 16px 22px;
  background: rgba(47,179,154,0.08);
  border: 1px solid rgba(47,179,154,0.22);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.us-foot .us-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(47,179,154,0.7);
  animation: lf-pulse 2s infinite;
  flex-shrink: 0;
}
.us-foot-txt {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--teal-light);
  text-transform: uppercase;
  font-weight: 500;
}
@media (max-width: 768px) {
  .unified-stack { padding: 28px 24px; }
  .us-layer { grid-template-columns: auto 1fr; padding: 14px 16px; }
  .us-layer-meta { grid-column: 1 / -1; text-align: left; padding-top: 4px; max-width: none; }
}

/* Testimonial cards */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.testimonial {
  background: #fff;
  border: 1px solid rgba(11,42,74,0.08);
  border-radius: 14px;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(47,179,154,0.3);
}
.testimonial .quote-mark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 52px;
  color: var(--teal);
  line-height: 0.6;
  height: 18px;
  font-weight: 500;
}
.testimonial .quote {
  font-family: "Fraunces", Georgia, serif;
  font-size: 17px;
  line-height: 1.45;
  color: var(--navy);
  font-weight: 400;
  letter-spacing: -0.01em;
  flex: 1;
}
.testimonial .attribution {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(11,42,74,0.08);
}
.testimonial .avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--grey-200);
  flex-shrink: 0;
}
.testimonial .who {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.testimonial .where {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--grey-500);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Deployments photo strip */
.deployments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding-top: 40px;
  border-top: 1px solid rgba(11,42,74,0.08);
}
.deployments .dep {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border: 1px solid rgba(11,42,74,0.08);
  background: var(--grey-100);
  transition: transform var(--dur) var(--ease);
}
.deployments .dep:hover { transform: translateY(-3px); }
.deployments .dep img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.deployments .dep .dep-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(180deg, transparent, rgba(7,26,48,0.88));
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.deployments .dep .dep-cap .dep-meta {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--teal-light);
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ============================================================
   ACQUISITION PANEL (AchieveDXP procurement plan)
   ============================================================ */
.acq-hero {
  background:
    radial-gradient(ellipse 700px 250px at 15% 0%, rgba(47,179,154,0.22), transparent 60%),
    radial-gradient(ellipse 500px 250px at 90% 100%, rgba(232,119,34,0.12), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  border-radius: 18px;
  padding: 36px 40px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(47,179,154,0.2);
  box-shadow: var(--shadow-lg);
}
.acq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 75%);
  pointer-events: none;
}
.acq-hero > * { position: relative; z-index: 1; }
.acq-hero .acq-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--teal-light);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.acq-hero .acq-kicker::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px rgba(47,179,154,0.6);
}
.acq-hero h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 14px;
  max-width: 780px;
}
.acq-hero h3 .accent {
  font-style: italic;
  background: linear-gradient(135deg, #5FC9B5, #2FB39A, #8ED9C8);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.acq-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
  max-width: 680px;
}
.acq-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.acq-item {
  background: #fff;
  border: 1px solid rgba(11,42,74,0.08);
  border-radius: 14px;
  padding: 24px 26px;
  position: relative;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.acq-item:hover {
  border-color: rgba(47,179,154,0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.acq-item .acq-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--teal-dark);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 8px;
}
.acq-item .acq-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 10px;
}
.acq-item .acq-range {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--navy);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.acq-item .acq-range .unit {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--grey-500);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.acq-item .acq-desc {
  font-size: 13.5px;
  color: var(--grey-700);
  line-height: 1.6;
  margin-bottom: 14px;
}
.acq-item .acq-funding {
  padding-top: 14px;
  border-top: 1px solid rgba(11,42,74,0.06);
  font-size: 12px;
  color: var(--grey-700);
  line-height: 1.5;
}
.acq-item .acq-funding strong {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
}

/* Procurement path timeline */
.acq-path {
  background: #fff;
  border: 1px solid rgba(11,42,74,0.08);
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 32px;
}
.acq-path .acq-path-head {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--teal-dark);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 18px;
}
.acq-path-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.acq-path-grid::before {
  content: "";
  position: absolute;
  left: 32px; right: 32px;
  top: 20px;
  height: 1px;
  background: linear-gradient(90deg, var(--teal), var(--navy));
  opacity: 0.3;
  z-index: 0;
}
.acq-step {
  position: relative;
  padding-right: 20px;
  z-index: 1;
}
.acq-step:last-child { padding-right: 0; }
.acq-step .dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 14px;
  box-shadow: 0 2px 8px -2px rgba(47,179,154,0.3);
}
.acq-step .step-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 6px;
}
.acq-step .step-body {
  font-size: 13px;
  color: var(--grey-700);
  line-height: 1.5;
}

/* Vehicles strip for the acquisition panel */
.acq-vehicles-block {
  background: var(--grey-50);
  border: 1px solid rgba(11,42,74,0.06);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}
.acq-vehicles-block .acq-vehicles-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--navy);
  line-height: 1.4;
  max-width: 280px;
}
.acq-vehicles-block .vehicles { margin-top: 0; }

/* Procurement CTA block */
.acq-cta {
  background:
    radial-gradient(ellipse 500px 200px at 80% 100%, rgba(47,179,154,0.18), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  border-radius: 16px;
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(47,179,154,0.2);
}
.acq-cta .acq-cta-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 8px;
}
.acq-cta .acq-cta-body {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  max-width: 500px;
}
.acq-cta .btn-primary {
  white-space: nowrap;
}
.acq-cta-sent {
  grid-column: 1 / -1;
  background: rgba(47,179,154,0.10);
  border: 1px solid rgba(47,179,154,0.35);
  color: #fff;
  padding: 22px 24px;
  border-radius: 14px;
  font-family: "Inter", sans-serif;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
}
.acq-cta-sent img {
  width: 96px;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(47,179,154,0.35));
}
.acq-cta-sent .acq-cta-sent-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.acq-cta-sent .acq-cta-sent-title::before {
  content: "✓";
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(47,179,154,0.5);
  flex-shrink: 0;
}
.acq-cta-sent .acq-cta-sent-body {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
}

/* ============================================================
   MASCOT
   ============================================================ */
.mascot {
  display: inline-block;
  vertical-align: middle;
  line-height: 0;
}
.mascot img { display: block; width: 100%; height: auto; }
.mascot--xs { width: 32px; }
.mascot--sm { width: 56px; }
.mascot--md { width: 96px; }
.mascot--lg { width: 140px; }
.mascot--lg img { filter: drop-shadow(0 6px 16px rgba(47,179,154,0.3)); }

/* Wizard header mascot — decorative, top-right of the dark header */
.wizard-head .wizard-mascot {
  position: absolute;
  top: 20px;
  right: 28px;
  z-index: 3;
  width: 96px;
  opacity: 0.98;
  filter: drop-shadow(0 6px 14px rgba(47,179,154,0.25));
  pointer-events: none;
  transition: transform 600ms var(--ease-out);
}
.wizard-head .wizard-mascot img { width: 100%; height: auto; display: block; }
.wizard-head .wizard-mascot:hover { transform: translateY(-2px) rotate(-2deg); }
@media (max-width: 640px) {
  .wizard-head .wizard-mascot { width: 64px; top: 14px; right: 16px; }
}

/* ============================================================
   MASCOT · FLOATER (single element, moves between sections)
   One fixed-position mascot. As each section scrolls into view,
   the bubble text is swapped and the side alternates L/R with a
   crossfade. Only ONE mascot ever visible at a time.
   ============================================================ */
.mascot-floater {
  position: fixed;
  bottom: 10%;
  right: max(24px, calc(50% - 700px));
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  display: flex;
  /* Default = RIGHT side: bubble (inward) then mascot (outward edge) */
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 14px;
  max-width: 320px;
  transform: translate(100px, 20px) scale(0.5) rotate(10deg);
  /* Exit timing — graceful */
  transition:
    opacity 500ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mascot-floater.left {
  right: auto;
  left: max(24px, calc(50% - 700px));
  /* LEFT side: mascot (outward edge) then bubble (inward) */
  flex-direction: row;
  transform: translate(-100px, 20px) scale(0.5) rotate(-10deg);
}
.mascot-floater.in {
  opacity: 1;
  transform: translate(0, 0) scale(1) rotate(0);
  pointer-events: auto;
  /* Entry timing — snappy spring */
  transition:
    opacity 400ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 560ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mascot-floater .m-char {
  width: 104px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 10px 22px rgba(47,179,154,0.28));
  animation: mascot-float 4s ease-in-out infinite;
  pointer-events: auto;
  transition: transform 250ms ease-out;
}
.mascot-floater .m-char:hover { transform: scale(1.08) rotate(-4deg); }
.mascot-floater .m-bubble {
  position: relative;
  background: #fff;
  border: 1px solid rgba(11,42,74,0.1);
  border-radius: 16px;
  padding: 12px 16px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--navy);
  line-height: 1.35;
  box-shadow: 0 6px 18px -4px rgba(11,42,74,0.18);
  max-width: 240px;
  transition: opacity 280ms ease, transform 280ms ease;
}
.mascot-floater.bubble-swap .m-bubble {
  opacity: 0;
  transform: translateY(4px);
}
.mascot-floater.on-dark .m-bubble {
  background: rgba(255,255,255,0.97);
  border-color: rgba(47,179,154,0.35);
  box-shadow: 0 8px 24px -4px rgba(0,0,0,0.4);
}
.mascot-floater .m-bubble::after {
  /* Default = RIGHT side: mascot is to the bubble's RIGHT → tail points right */
  content: "";
  position: absolute;
  bottom: 16px;
  right: -7px;
  width: 12px; height: 12px;
  background: inherit;
  border-right: 1px solid rgba(11,42,74,0.1);
  border-top: 1px solid rgba(11,42,74,0.1);
  transform: rotate(45deg);
  border-radius: 2px;
}
.mascot-floater.left .m-bubble::after {
  /* LEFT side: mascot is to the bubble's LEFT → tail points left */
  right: auto;
  left: -7px;
  border-right: 0;
  border-top: 0;
  border-left: 1px solid rgba(11,42,74,0.1);
  border-bottom: 1px solid rgba(11,42,74,0.1);
}
.mascot-floater.on-dark .m-bubble::after { border-color: rgba(47,179,154,0.35) !important; }
.mascot-pop .m-char {
  width: 72px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 18px rgba(47,179,154,0.22));
  animation: mascot-float 4s ease-in-out infinite;
  animation-delay: 900ms;
  pointer-events: auto;
  transition: transform 200ms ease-out;
}
.mascot-pop .m-char:hover { transform: scale(1.05) rotate(-3deg); }
@keyframes mascot-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
.mascot-pop .m-bubble {
  position: relative;
  background: #fff;
  border: 1px solid rgba(11,42,74,0.1);
  border-radius: 14px;
  padding: 10px 14px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--navy);
  line-height: 1.35;
  box-shadow: 0 4px 14px -4px rgba(11,42,74,0.14);
  max-width: 220px;
  opacity: 0;
  transform: translateY(6px) scale(0.9);
  transition: opacity 400ms 360ms var(--ease-out), transform 400ms 360ms var(--ease-out);
}
.mascot-pop.in .m-bubble {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* Dark-section variant: light bubble, more translucent */
.mascot-pop.on-dark .m-bubble {
  background: rgba(255,255,255,0.96);
  border-color: rgba(47,179,154,0.3);
  box-shadow: 0 6px 20px -4px rgba(0,0,0,0.35);
}
/* Bubble pointer (small triangle pointing at mascot) */
.mascot-pop .m-bubble::after {
  content: "";
  position: absolute;
  bottom: 14px;
  left: -7px;
  width: 12px; height: 12px;
  background: inherit;
  border-left: 1px solid rgba(11,42,74,0.1);
  border-bottom: 1px solid rgba(11,42,74,0.1);
  transform: rotate(45deg);
  border-radius: 2px;
}
.mascot-pop.right .m-bubble::after {
  left: auto;
  right: -7px;
  border-left: 0;
  border-bottom: 0;
  border-right: 1px solid rgba(11,42,74,0.1);
  border-top: 1px solid rgba(11,42,74,0.1);
}
.mascot-pop.on-dark .m-bubble::after {
  border-color: rgba(47,179,154,0.3) !important;
}

/* Hide below desktop widths — mascot needs gutter space to sit in */
@media (max-width: 1280px) {
  .mascot-pop { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mascot-pop,
  .mascot-pop .m-bubble,
  .mascot-pop .m-char { transition: opacity 200ms linear; animation: none; }
  .mascot-pop:not(.in) { opacity: 0; }
  .mascot-pop.in { transform: none; opacity: 1; }
}
.hero .cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  transition: transform 200ms cubic-bezier(0.4,0,0.2,1), box-shadow 200ms, background 200ms, border-color 200ms;
  border: 1px solid transparent;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: linear-gradient(180deg, #1A3E66 0%, #0B2A4A 55%, #061829 100%);
  color: #fff;
  border-color: rgba(47,179,154,0.4);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.10) inset,
    0 0 0 1px rgba(47,179,154,0.2),
    0 10px 30px -12px rgba(47,179,154,0.4),
    0 2px 6px -2px rgba(0,0,0,0.3);
  padding: 14px 28px 14px 32px;
  position: relative;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.12) inset,
    0 0 0 1px rgba(47,179,154,0.4),
    0 20px 40px -12px rgba(47,179,154,0.55),
    0 4px 10px -2px rgba(0,0,0,0.35);
  border-color: rgba(47,179,154,0.6);
}
.btn-secondary {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.38);
  background: rgba(255,255,255,0.12);
  transform: translateY(-1px);
  color: #fff;
}
/* Light-mode secondary (when used outside the dark hero) */
.btn-secondary.on-light {
  background: rgba(255,255,255,0.85);
  color: var(--navy);
  border-color: rgba(11,42,74,0.14);
  box-shadow: 0 1px 2px rgba(11,42,74,0.04);
}
.btn-secondary.on-light:hover {
  border-color: rgba(11,42,74,0.3);
  background: #fff;
  color: var(--navy);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  padding: 10px 16px;
}
.btn-ghost:hover { background: var(--grey-100); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-navy { background: var(--navy); color: white; }
.btn-navy:hover { background: var(--navy-dark); }
.btn-teal { background: var(--teal); color: white; }
.btn-teal:hover { background: var(--teal-dark); }

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.benefit-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 28px 24px;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(11,42,74,0.04), 0 4px 16px -6px rgba(11,42,74,0.06);
  text-align: left;
  border: 1px solid rgba(11,42,74,0.08);
  transition: transform 220ms cubic-bezier(0.4,0,0.2,1),
              box-shadow 220ms cubic-bezier(0.4,0,0.2,1),
              border-color 220ms;
  position: relative;
  overflow: hidden;
}
.benefit-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(47,179,154,0.4), rgba(232,119,34,0.3), rgba(11,42,74,0.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 220ms;
  pointer-events: none;
}
.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1px 2px rgba(11,42,74,0.04), 0 20px 48px -12px rgba(11,42,74,0.16);
  border-color: transparent;
}
.benefit-card:hover::after { opacity: 1; }
.benefit-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  box-shadow: 0 4px 12px -4px currentColor;
}
.benefit-card:nth-child(1) .icon { background: var(--teal); }
.benefit-card:nth-child(2) .icon { background: var(--orange); }
.benefit-card:nth-child(3) .icon { background: var(--navy); }
.benefit-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.benefit-card p { font-size: 14px; color: var(--grey-700); }

/* ------------ WIZARD ------------ */
.wizard {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 0;
  overflow: hidden;
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid rgba(11,42,74,0.05);
}
.wizard-head {
  background:
    radial-gradient(ellipse 600px 200px at 10% 0%, rgba(47,179,154,0.28), transparent 60%),
    radial-gradient(ellipse 500px 200px at 95% 100%, rgba(232,119,34,0.14), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 26px 40px 22px;
  position: relative;
  overflow: hidden;
}
.wizard-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
}
.wizard-head > * { position: relative; z-index: 1; }
.wizard-head h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: #fff;
}
.wizard-head .subtitle {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  opacity: 0.78;
  font-weight: 400;
}
.progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 16px;
  position: relative;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  box-shadow: 0 0 12px rgba(47,179,154,0.5);
  width: 0;
  transition: width 500ms var(--ease-out);
  border-radius: inherit;
}
.wizard-body {
  padding: 36px 48px 40px;
}
.option.option-soft {
  opacity: 0.72;
  font-style: italic;
}
.option.option-soft:hover { opacity: 1; font-style: normal; }
.option.option-soft.selected { opacity: 1; font-style: normal; }
.step { display: none; animation: stepIn 320ms var(--ease-out); }
.step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(12px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.step-label {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: 6px;
}
.step h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.15;
}
.step .desc {
  color: var(--grey-700);
  font-size: 15px;
  margin-bottom: 32px;
  line-height: 1.55;
  max-width: 640px;
}
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.option-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.option-grid.cols-1 { grid-template-columns: 1fr; }
.option {
  padding: 14px 18px;
  border: 1.5px solid var(--grey-200);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  font-size: 14px;
  color: var(--grey-900);
  font-weight: 500;
  position: relative;
}
.option:hover {
  border-color: rgba(47,179,154,0.5);
  background: rgba(47,179,154,0.03);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -4px rgba(47,179,154,0.15);
}
.option.selected {
  border-color: var(--teal);
  background: linear-gradient(135deg, rgba(47,179,154,0.09), rgba(47,179,154,0.04));
  color: var(--navy);
  box-shadow: 0 0 0 1px var(--teal), 0 6px 16px -6px rgba(47,179,154,0.3);
}
.option.selected .check { background: var(--teal); border-color: var(--teal); transform: scale(1.05); }
.option.selected .check::after { display: block; animation: checkPop 240ms var(--ease-out); }
@keyframes checkPop { from { transform: translate(-50%, -50%) scale(0); } to { transform: translate(-50%, -50%) scale(1); } }
.option .check {
  width: 20px;
  height: 20px;
  border: 2px solid var(--grey-300);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: all var(--dur) var(--ease);
}
.option .check.square { border-radius: 5px; }
.option .check::after {
  content: "";
  display: none;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 7px; height: 7px;
  background: white;
  border-radius: 50%;
}
.option .check.square::after { border-radius: 1px; }
.text-input, .select-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--grey-200);
  border-radius: 10px;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  background: white;
  color: var(--grey-900);
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.text-input::placeholder, .select-input::placeholder { color: var(--grey-400); }
.text-input:hover, .select-input:hover { border-color: var(--grey-300); }
.text-input:focus, .select-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(47,179,154,0.14);
  background: #fff;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-700);
  margin-bottom: 6px;
}
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  background: linear-gradient(180deg, rgba(242,245,248,0.5), var(--grey-50));
  border-top: 1px solid rgba(11,42,74,0.06);
}
.step-counter {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: var(--grey-500);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.step-counter strong {
  color: var(--navy);
  font-weight: 600;
}

/* ------------ RESULTS ------------ */
.results { display: none; }
.results.active { display: block; }

/* TL;DR <-> full report toggle. Default is summary. */
.results.view-summary .tldr { display: block; }
.results.view-summary .tab-bar,
.results.view-summary .panel,
.results.view-summary .panel.active,
.results.view-summary .full-toggle { display: none !important; }
.results.view-full .tldr { display: none !important; }
.results.view-full .tab-bar { display: flex; }
.results.view-full .panel.active { display: block; }
.results.view-full .full-toggle { display: block; margin: 16px 0 0; }
.full-toggle .btn { padding: 8px 14px; font-size: 13px; }

/* TL;DR cards */
.tldr {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tldr-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}
@media (max-width: 760px) {
  .tldr-grid { grid-template-columns: 1fr; }
}
.tldr-score-card,
.tldr-funding-card,
.tldr-grants-card {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(11,42,74,0.06);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
}
.tldr-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: 12px;
}
.tldr-score-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.tldr-today,
.tldr-with { display: flex; flex-direction: column; }
.tldr-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.tldr-with .tldr-num { color: var(--teal-dark); }
.tldr-cap {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-700);
  margin-top: 4px;
}
.tldr-arrow {
  font-size: 24px;
  color: var(--teal);
  font-weight: 500;
}
.tldr-delta {
  margin-left: auto;
  background: var(--teal);
  color: var(--navy);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.tldr-score-label {
  margin-top: 12px;
  font-size: 13px;
  color: var(--grey-700);
  letter-spacing: 0.02em;
}
.tldr-funding-amount {
  font-family: "Fraunces", Georgia, serif;
  font-size: 32px;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 500;
}
.tldr-funding-sub {
  margin-top: 8px;
  font-size: 13px;
  color: var(--grey-700);
  line-height: 1.5;
}
.tldr-grant {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--grey-200);
}
.tldr-grant:last-of-type { border-bottom: 0; }
.tldr-grant-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 16px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.tldr-grant-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--grey-700);
}
.tldr-grant-fit {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(11,42,74,0.06);
  color: var(--navy);
  font-weight: 600;
}
.tldr-grant-fit.match-strong { background: rgba(47,179,154,0.18); color: var(--teal-dark); }
.tldr-grant-fit.match-good { background: rgba(232,119,34,0.14); color: var(--orange-dark); }
.tldr-grant-empty {
  font-size: 13px;
  color: var(--grey-700);
  font-style: italic;
  padding: 12px 0;
}
.tldr-grants-more {
  margin-top: 12px;
  background: transparent;
  border: none;
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.tldr-grants-more:hover { text-decoration: underline; }
.tldr-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  border-radius: 16px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 12px 28px -12px rgba(11,42,74,0.4);
}
.tldr-cta-text { flex: 1 1 320px; min-width: 240px; }
.tldr-cta-head {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 4px;
}
.tldr-cta-blurb {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}
.tldr-cta-blurb a { color: var(--teal-light); font-weight: 600; text-decoration: underline; }
.tldr-cta-btn { background: var(--teal); color: var(--navy); border: none; white-space: nowrap; }
.tldr-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -6px rgba(47,179,154,0.5); color: var(--navy); }
.tldr-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 8px 0 4px;
}
.tldr-toggle-sub {
  font-size: 12px;
  color: var(--grey-700);
  letter-spacing: 0.02em;
}
.results-header {
  background:
    radial-gradient(ellipse 800px 300px at 15% 0%, rgba(47,179,154,0.22), transparent 60%),
    radial-gradient(ellipse 600px 300px at 95% 100%, rgba(232,119,34,0.14), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: white;
  padding: 44px 48px;
  border-radius: var(--radius-xl);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(47,179,154,0.15);
}
.results-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 30% 40%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, black 20%, transparent 75%);
  pointer-events: none;
}
.results-header::after {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(47,179,154,0.22) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.results-header > * { position: relative; z-index: 1; }
.results-header .kicker {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--teal-light);
  font-weight: 600;
  background: rgba(47,179,154,0.14);
  border: 1px solid rgba(47,179,154,0.3);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.results-header h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  max-width: 760px;
  line-height: 1.1;
  color: #fff;
}
.results-header p {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  opacity: 0.82;
  max-width: 680px;
  line-height: 1.6;
}
.results-header .ctas {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* ------------ TABS ------------ */
.tab-bar {
  display: flex;
  gap: 2px;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(11,42,74,0.06);
  overflow-x: auto;
  scrollbar-width: thin;
}
.tab {
  padding: 10px 18px;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-700);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease),
              background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  border: none;
  background: transparent;
  cursor: pointer;
  letter-spacing: -0.005em;
}
.tab:hover { background: rgba(11,42,74,0.04); color: var(--navy); }
.tab.active {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(11,42,74,0.12), 0 4px 12px -4px rgba(11,42,74,0.3);
}
.tab .tab-num {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.55;
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.tab.active .tab-num { opacity: 0.8; }

.panel { display: none; }
.panel.active { display: block; animation: fadeIn 240ms ease-out; }

/* ------------ CARDS ------------ */
.card {
  background: var(--white);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(11,42,74,0.06);
  margin-bottom: 20px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover {
  border-color: rgba(11,42,74,0.12);
  box-shadow: var(--shadow);
}
.card-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 6px;
}
.card-desc {
  font-size: 14px;
  color: var(--grey-500);
  margin-bottom: 18px;
  line-height: 1.55;
}

/* ------------ READINESS ------------ */
.readiness-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  margin-bottom: 24px;
  align-items: start;
}

/* Right column of the Readiness panel — radar + lift breakdown stack */
.readiness-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ===== Radar card ===== */
.radar-card {
  background: var(--white);
  border: 1px solid rgba(11,42,74,0.08);
  border-radius: 16px;
  padding: 24px 26px 20px;
  box-shadow: var(--shadow-sm);
}
.radar-wrap {
  position: relative;
  height: 320px;
  margin-top: 6px;
}
.radar-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}
.radar-legend {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(11,42,74,0.08);
}
.rl-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
}
.rl-item .rl-dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 3px;
}
.rl-today .rl-dot {
  background: transparent;
  border: 2px dashed rgba(11,42,74,0.65);
}
.rl-with .rl-dot {
  background: rgba(47,179,154,0.35);
  border: 2px solid var(--teal);
}

/* ===== Lift breakdown card ===== */
.lift-breakdown-card {
  background:
    linear-gradient(135deg, rgba(47,179,154,0.04), transparent 60%),
    var(--white);
  border: 1px solid rgba(47,179,154,0.22);
  border-radius: 16px;
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.lift-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lb-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 12px 14px;
  background: rgba(47,179,154,0.04);
  border: 1px solid rgba(47,179,154,0.14);
  border-radius: 10px;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease);
}
.lb-item:hover {
  transform: translateX(2px);
  border-color: rgba(47,179,154,0.32);
}
.lb-pts {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--teal-dark);
  font-variant-numeric: tabular-nums;
  min-width: 46px;
  text-align: center;
  line-height: 1.1;
  padding-top: 2px;
}
.lb-label {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.005em;
  margin-bottom: 3px;
}
.lb-desc {
  font-size: 12.5px;
  color: var(--grey-700);
  line-height: 1.5;
}
.lb-empty {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--grey-700);
  line-height: 1.6;
  padding: 16px 18px;
  background: rgba(47,179,154,0.05);
  border-left: 3px solid var(--teal);
  border-radius: 8px;
}

/* ===== Funding unlock line in the score-card ===== */
.funding-unlock {
  display: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(11,42,74,0.12);
  text-align: center;
}
.funding-unlock.show { display: block; }
.funding-unlock .fu-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: 8px;
}
.funding-unlock .fu-row {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.funding-unlock .fu-amount {
  font-family: "Fraunces", Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.funding-unlock .fu-with {
  color: var(--teal-dark);
  font-size: 32px;
}
.funding-unlock .fu-arrow {
  color: var(--grey-400);
  font-size: 18px;
  font-weight: 400;
}
.funding-unlock .fu-caption {
  font-size: 11.5px;
  color: var(--grey-500);
  line-height: 1.45;
  max-width: 280px;
  margin: 0 auto;
}

/* Gaps section — now full-width below the grid */
.gaps-section {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid rgba(11,42,74,0.08);
}
@media (max-width: 980px) {
  .readiness-grid { grid-template-columns: 1fr; }
}
.score-card {
  background:
    radial-gradient(ellipse 400px 200px at 50% 0%, rgba(47,179,154,0.08), transparent 70%),
    var(--white);
  border-radius: 16px;
  padding: 36px 24px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid rgba(11,42,74,0.06);
  position: relative;
  overflow: hidden;
}
.gauge-wrap { position: relative; width: 240px; height: 240px; margin: 0 auto; }
.gauge-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.gauge-score {
  font-family: "Fraunces", Georgia, serif;
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.gauge-unit {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: var(--grey-500);
  font-weight: 500;
  margin-left: 2px;
}
.gauge-label {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 1.8px;
  color: var(--teal-dark);
  margin-top: 10px;
  font-weight: 600;
  text-transform: uppercase;
}
.score-summary { margin-top: 20px; text-align: left; }
.score-summary-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.score-summary p { font-size: 13px; color: var(--grey-700); }
.gaps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gap-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  border-left: 4px solid var(--orange);
  box-shadow: var(--shadow-sm);
  border-top: 1px solid var(--grey-200);
  border-right: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
}
.gap-item.good { border-left-color: var(--success); }
.gap-item .title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gap-item .title .tag {
  font-size: 10px;
  background: var(--orange);
  color: white;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  font-weight: 700;
  text-transform: uppercase;
}
.gap-item.good .title .tag { background: var(--success); }
.gap-item .body { font-size: 13px; color: var(--grey-700); margin-bottom: 6px; }
.gap-item .fix {
  font-size: 12px;
  color: var(--teal-dark);
  font-weight: 600;
  padding-top: 6px;
  border-top: 1px dashed var(--grey-200);
  margin-top: 6px;
  display: block;
}
.gap-item .fix .fix-tag {
  display: inline-block;
  background: rgba(47,179,154,0.14);
  color: var(--teal-dark);
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 6px;
  font-weight: 700;
}
.score-lift {
  margin-top: 14px;
  display: none;
  background: linear-gradient(135deg, rgba(11,42,74,0.04), rgba(47,179,154,0.10));
  border: 1px solid rgba(47,179,154,0.22);
  border-radius: 12px;
  padding: 14px 16px;
}
.score-lift.show { display: block; }
.score-lift .lift-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.score-lift .lift-today,
.score-lift .lift-with {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.score-lift .lift-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 30px;
  line-height: 1;
  color: var(--navy);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.score-lift .lift-with .lift-num { color: var(--teal-dark); }
.score-lift .lift-cap {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-700);
  margin-top: 2px;
}
.score-lift .lift-arrow {
  font-size: 20px;
  color: var(--teal);
  font-weight: 500;
}
.score-lift .lift-delta {
  margin-left: auto;
  background: var(--teal);
  color: var(--navy);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.score-lift .lift-sub {
  margin-top: 8px;
  font-size: 12px;
  color: var(--grey-700);
  letter-spacing: 0.02em;
}
.score-lift .lift-sub strong { color: var(--teal-dark); }

/* ------------ PEER BENCHMARK + GRANTS ACTIONS ------------ */
.peer-benchmark {
  margin-top: 14px;
  background: rgba(255,255,255,0.6);
  border: 1px dashed rgba(47,179,154,0.4);
  border-radius: 12px;
  padding: 14px 16px;
}
.peer-benchmark .pb-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: 4px;
}
.peer-benchmark .pb-head {
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.peer-benchmark .pb-body {
  font-size: 13px;
  color: var(--grey-700);
  line-height: 1.55;
  margin-bottom: 8px;
}
.peer-benchmark .pb-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.peer-benchmark .pb-chip {
  background: rgba(11,42,74,0.06);
  color: var(--navy);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.grants-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.btn.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

/* ------------ PER-TAB "NEXT STEP" CTA ------------ */
.next-step-cta {
  margin-top: 28px;
}
.next-step-cta:empty { display: none; }
.next-step-cta .ns-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 26px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(11,42,74,0.4);
}
.next-step-cta .ns-text { flex: 1 1 320px; min-width: 260px; }
.next-step-cta .ns-head {
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 4px;
}
.next-step-cta .ns-blurb {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}
.next-step-cta .ns-btn {
  background: var(--teal);
  color: var(--navy);
  border: none;
  white-space: nowrap;
}
.next-step-cta .ns-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(47,179,154,0.5);
  color: var(--navy);
}

/* ------------ LIVE FEED BANNER ------------ */
.livefeed-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background:
    radial-gradient(ellipse 400px 120px at 0% 50%, rgba(47,179,154,0.25), transparent 70%),
    linear-gradient(90deg, #0B2A4A 0%, #145C51 100%);
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  border: 1px solid rgba(47,179,154,0.2);
  position: relative;
  overflow: hidden;
}
.livefeed-banner .lf-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #2FB39A;
  box-shadow: 0 0 0 0 rgba(47,179,154,0.7);
  animation: lf-pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes lf-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(47,179,154,0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(47,179,154,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,179,154,0); }
}
.livefeed-banner .lf-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.85;
}
.livefeed-banner .lf-text {
  font-size: 13px;
  font-weight: 600;
  flex: 1;
  min-width: 240px;
}
.livefeed-banner .lf-text strong { color: #F5B82E; }
.livefeed-banner .lf-refresh {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  color: white;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.livefeed-banner .lf-refresh:hover { background: rgba(255,255,255,0.25); }
.livefeed-sources {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  opacity: 0.85;
}
.livefeed-sources span { white-space: nowrap; }

/* ------------ FRESHNESS BADGES ------------ */
.freshness-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 2px 7px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}
.freshness-badge.new    { background: #2FB39A; color: white; }
.freshness-badge.updated{ background: #F5B82E; color: #071A30; }
.freshness-badge.live   { background: #0B2A4A; color: #CADCFC; }
.source-link {
  font-size: 11px;
  color: var(--teal-dark);
  text-decoration: none;
  font-weight: 600;
  margin-left: 6px;
}
.source-link:hover { text-decoration: underline; }
.grant-sync-stamp {
  font-size: 10px;
  color: var(--grey-500);
  margin-top: 8px;
  font-style: italic;
}

/* ------------ GRANT CARDS ------------ */
.grants-list { display: flex; flex-direction: column; gap: 14px; }
.grant-card {
  background: var(--white);
  border-radius: 14px;
  padding: 22px 26px;
  box-shadow: var(--shadow-xs);
  border: 1px solid rgba(11,42,74,0.07);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  position: relative;
}
.grant-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(47,179,154,0.3);
}
.grant-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}
.grant-head .name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--navy);
  line-height: 1.25;
}
.grant-head .agency {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: var(--grey-500);
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: 0.01em;
}
.match-badge {
  background: var(--teal);
  color: white;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  flex-shrink: 0;
  box-shadow: 0 2px 8px -2px rgba(47,179,154,0.4);
}
.match-badge.high { background: var(--teal); box-shadow: 0 2px 8px -2px rgba(47,179,154,0.4); }
.match-badge.med { background: var(--orange); box-shadow: 0 2px 8px -2px rgba(232,119,34,0.4); }
.match-badge.low { background: var(--grey-500); box-shadow: none; }
.grant-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid rgba(11,42,74,0.06);
  border-bottom: 1px solid rgba(11,42,74,0.06);
  margin: 12px 0;
}
.grant-meta-item {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: var(--grey-900);
  font-variant-numeric: tabular-nums;
}
.grant-meta-item strong {
  color: var(--grey-500);
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  margin-bottom: 3px;
  text-transform: uppercase;
}
.grant-why { font-size: 13px; color: var(--grey-700); margin-bottom: 14px; line-height: 1.55; }
.grant-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------ FUNDING STACK ------------ */
.stack-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
  align-items: start;
}
.stack-chart-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  margin: 8px auto 4px;
}
.stack-chart-wrap canvas { width: 100% !important; height: 100% !important; }
.stack-layer {
  padding: 16px 20px;
  margin-bottom: 8px;
  border-radius: 10px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 4px 12px -6px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.15);
  letter-spacing: -0.005em;
  transition: transform var(--dur-fast) var(--ease);
}
.stack-layer:hover { transform: translateX(2px); }
.stack-layer .layer-name { flex: 1; }
.stack-layer .layer-amt {
  font-size: 13px;
  opacity: 0.92;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.stack-total {
  background: linear-gradient(135deg, rgba(11,42,74,0.05), rgba(47,179,154,0.05));
  padding: 18px 20px;
  border-radius: 10px;
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1.5px dashed rgba(11,42,74,0.3);
}
.stack-total .label {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--navy);
  text-transform: uppercase;
}
.stack-total .value {
  font-family: "Fraunces", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

/* ------------ PROGRAM BUILDER ------------ */
.builder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.builder-item {
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  border-radius: 10px;
  padding: 18px;
  cursor: pointer;
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.builder-item:hover {
  border-color: rgba(47,179,154,0.5);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -6px rgba(47,179,154,0.2);
}
.builder-item.selected {
  border-color: var(--teal);
  background: linear-gradient(135deg, rgba(47,179,154,0.08), rgba(47,179,154,0.02));
  box-shadow: 0 0 0 1px var(--teal), 0 6px 16px -6px rgba(47,179,154,0.3);
}
.builder-item .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.builder-item .title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.builder-item .check {
  width: 20px; height: 20px;
  border: 2px solid var(--grey-300);
  border-radius: 4px;
  transition: all var(--transition);
  flex-shrink: 0;
  position: relative;
}
.builder-item.selected .check {
  background: var(--teal);
  border-color: var(--teal);
}
.builder-item.selected .check::after {
  content: "";
  position: absolute;
  top: 3px; left: 6px;
  width: 5px; height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.builder-item .cost { font-size: 12px; color: var(--grey-500); margin-bottom: 4px; }
.builder-item .sources { font-size: 11px; color: var(--teal-dark); font-weight: 600; }

.builder-summary {
  background: var(--navy);
  color: white;
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 20px;
}
.builder-summary h4 { font-size: 13px; opacity: 0.8; margin-bottom: 8px; letter-spacing: 1px; text-transform: uppercase; }
.builder-summary .total-range {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 4px;
}
.builder-summary .total-note { font-size: 13px; opacity: 0.8; }
.builder-summary .components {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 13px;
  opacity: 0.9;
}

/* ------------ GAP CALCULATOR ------------ */
.gap-calc {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--grey-200);
  box-shadow: var(--shadow-sm);
}
.gap-calc .row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
}
.gap-visual {
  background: var(--grey-100);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
}
.gap-bar {
  width: 100%;
  height: 36px;
  background: var(--grey-200);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin: 12px 0 10px;
}
.gap-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal) 0%, var(--success) 100%);
  transition: width 400ms ease;
}
.gap-bar .label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: 700;
  font-size: 13px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.gap-amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--orange);
}
.gap-amount.covered { color: var(--success); }
.gap-label { font-size: 12px; color: var(--grey-700); margin-top: 4px; }

/* ------------ ROADMAP ------------ */
.roadmap { position: relative; padding-left: 28px; }
.roadmap::before {
  content: "";
  position: absolute;
  left: 10px; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--teal) 0%, var(--navy) 100%);
}
.phase {
  position: relative;
  padding: 16px 20px 16px 8px;
  margin-bottom: 8px;
}
.phase::before {
  content: "";
  position: absolute;
  left: -24px; top: 20px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--teal);
  z-index: 1;
}
.phase .phase-time {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--teal-dark);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.phase .phase-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.phase .phase-body {
  font-size: 13px;
  color: var(--grey-700);
  line-height: 1.5;
}

/* ------------ PARTNERS ------------ */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.partner-tile {
  background: var(--white);
  border: 1px solid rgba(11,42,74,0.08);
  border-radius: 12px;
  padding: 20px 18px;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.partner-tile:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: rgba(47,179,154,0.25);
}
.partner-tile .name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 6px;
}
.partner-tile .cat {
  font-size: 10px;
  letter-spacing: 0.6px;
  color: var(--teal-dark);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.partner-tile .desc {
  font-size: 12px;
  color: var(--grey-700);
  line-height: 1.5;
}
.partner-tile.priority {
  border: 2px solid var(--teal);
  background: linear-gradient(180deg, rgba(47,179,154,0.04) 0%, transparent 100%);
}

/* ============================================================
   PARTNER CATALOG (reworked)
   ============================================================ */

/* Bundled platform capabilities (2x3 grid) */
.bundled-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.bundled-tile {
  background: linear-gradient(135deg, rgba(47,179,154,0.06), rgba(47,179,154,0.02));
  border: 1px solid rgba(47,179,154,0.2);
  border-radius: 12px;
  padding: 18px 18px 16px;
}
.bundled-tile .bt-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--teal-dark);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}
.bundled-tile .bt-label::before {
  content: "✓";
  width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal);
  color: #fff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.bundled-tile .bt-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 4px;
}
.bundled-tile .bt-body {
  font-size: 12.5px;
  color: var(--grey-700);
  line-height: 1.5;
}

/* Catalog section headers */
.catalog-group {
  margin-top: 28px;
}
.catalog-group:first-child { margin-top: 0; }
.catalog-group-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(11,42,74,0.12);
  margin-bottom: 10px;
}
.catalog-group-head .cg-cat {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--navy);
  text-transform: uppercase;
  font-weight: 600;
}
.catalog-group-head .cg-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--grey-500);
  text-align: right;
}

/* Catalog row */
.catalog-row {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr auto;
  gap: 24px;
  align-items: start;
  padding: 18px 16px;
  border-bottom: 1px solid rgba(11,42,74,0.06);
  transition: background var(--dur) var(--ease);
}
.catalog-row:last-child { border-bottom: 0; }
.catalog-row:hover { background: rgba(47,179,154,0.03); }
.catalog-row.priority {
  background: linear-gradient(90deg, rgba(47,179,154,0.04) 0%, transparent 60%);
  border-left: 3px solid var(--teal);
  padding-left: 13px;
}
.catalog-row .c-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--navy);
  line-height: 1.25;
}
.catalog-row .c-priority {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--teal-dark);
  background: rgba(47,179,154,0.12);
  border: 1px solid rgba(47,179,154,0.28);
  padding: 3px 7px;
  border-radius: 5px;
  margin-left: 8px;
  vertical-align: middle;
  font-weight: 600;
  text-transform: uppercase;
}
.catalog-row .c-desc {
  font-size: 13px;
  color: var(--grey-700);
  line-height: 1.55;
  margin-top: 4px;
}
.catalog-row .c-grants {
  margin-top: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--teal-dark);
}
.catalog-row .c-grants-label {
  color: var(--grey-500);
  margin-right: 6px;
}
.catalog-row .c-cost {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 160px;
}
.catalog-row .c-cost-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}
.catalog-row .c-cost-badge.bundled {
  background: rgba(47,179,154,0.14);
  color: var(--teal-dark);
  border: 1px solid rgba(47,179,154,0.3);
}
.catalog-row .c-cost-badge.add {
  background: rgba(232,119,34,0.12);
  color: var(--orange-dark);
  border: 1px solid rgba(232,119,34,0.28);
}
.catalog-row .c-cost-badge.own {
  background: rgba(11,42,74,0.06);
  color: var(--navy);
  border: 1px solid rgba(11,42,74,0.14);
}
.catalog-row .c-cost-note {
  font-size: 11px;
  color: var(--grey-500);
  text-align: right;
  max-width: 220px;
  line-height: 1.4;
}
.catalog-foot {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--grey-50);
  border: 1px solid rgba(11,42,74,0.06);
  border-radius: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--grey-700);
  letter-spacing: 0.02em;
  line-height: 1.5;
  display: flex;
  gap: 10px;
}
.catalog-foot::before {
  content: "i";
  width: 18px; height: 18px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 12px;
  font-weight: 600;
}
@media (max-width: 820px) {
  .bundled-grid { grid-template-columns: 1fr 1fr; }
  .catalog-row { grid-template-columns: 1fr; gap: 10px; }
  .catalog-row .c-cost { align-items: flex-start; }
  .catalog-row .c-cost-note { text-align: left; }
}

/* ------------ NARRATIVE ------------ */
.narrative-box {
  background:
    radial-gradient(ellipse 600px 300px at 0% 0%, rgba(47,179,154,0.04), transparent 70%),
    var(--grey-50);
  border: 1px solid rgba(11,42,74,0.08);
  border-radius: 14px;
  padding: 32px 36px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--grey-900);
  white-space: pre-wrap;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.005em;
  position: relative;
}
.narrative-box::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--teal);
  border-radius: var(--radius) 0 0 var(--radius);
}
.copy-btn-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(120%);
  background:
    radial-gradient(ellipse 300px 100px at 0% 50%, rgba(47,179,154,0.4), transparent 70%),
    var(--navy);
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  box-shadow: var(--shadow-xl);
  transition: transform 380ms var(--ease-out);
  z-index: 9999;
  border: 1px solid rgba(47,179,154,0.3);
}
/* Refined scrollbars for tab-bar, etc. */
.tab-bar::-webkit-scrollbar, .card::-webkit-scrollbar { height: 6px; width: 6px; }
.tab-bar::-webkit-scrollbar-track, .card::-webkit-scrollbar-track { background: transparent; }
.tab-bar::-webkit-scrollbar-thumb, .card::-webkit-scrollbar-thumb {
  background: rgba(11,42,74,0.15);
  border-radius: 999px;
}
.tab-bar::-webkit-scrollbar-thumb:hover, .card::-webkit-scrollbar-thumb:hover {
  background: rgba(11,42,74,0.3);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ------------ CALLBACK MODAL ------------ */
.callback-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.callback-modal[hidden] { display: none; }
.callback-modal .cm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11,42,74,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
  animation: cmFadeIn 220ms var(--ease);
}
.callback-modal .cm-panel {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 24px 60px -10px rgba(11,42,74,0.35);
  max-width: 560px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 28px 32px 24px;
  animation: cmPopIn 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes cmFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cmPopIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.callback-modal .cm-close {
  position: absolute;
  top: 12px; right: 14px;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--grey-700);
  padding: 4px 8px;
}
.callback-modal .cm-close:hover { color: var(--navy); }
.callback-modal .cm-team {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: 4px;
}
.callback-modal h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 4px;
}
.callback-modal .cm-sub {
  font-size: 14px;
  color: var(--grey-700);
  margin-bottom: 10px;
  line-height: 1.5;
}
.callback-modal .cm-ctx {
  background: rgba(47,179,154,0.08);
  border-left: 3px solid var(--teal);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--navy);
  margin-bottom: 18px;
}
.callback-modal .cm-ctx:empty { display: none; }
.callback-modal form { display: flex; flex-direction: column; gap: 12px; }
.callback-modal form[hidden],
.callback-modal .cm-success[hidden] { display: none !important; }
.callback-modal .cm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .callback-modal .cm-panel { padding: 22px 18px 18px; }
  .callback-modal .cm-grid { grid-template-columns: 1fr; }
}
.callback-modal label {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.callback-modal input,
.callback-modal select,
.callback-modal textarea {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  padding: 10px 12px;
  border: 1.5px solid var(--grey-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--grey-900);
  font-weight: 400;
  transition: border-color 160ms var(--ease);
}
.callback-modal input:focus,
.callback-modal select:focus,
.callback-modal textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(47,179,154,0.2);
}
.callback-modal .cm-submit { margin-top: 6px; }
.callback-modal .cm-guarantee {
  font-size: 12px;
  color: var(--grey-700);
  text-align: center;
  line-height: 1.5;
  margin-top: 2px;
}
.callback-modal .cm-success {
  text-align: center;
  padding: 10px 0 4px;
}
.callback-modal .cm-success .cm-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 32px;
  line-height: 56px;
  margin: 0 auto 14px;
  font-weight: 700;
}
.callback-modal .cm-success p {
  font-size: 14px;
  color: var(--grey-700);
  line-height: 1.55;
  margin-bottom: 16px;
}
.callback-modal .cm-success a {
  color: var(--teal-dark);
  text-decoration: underline;
  font-weight: 600;
}

/* Click-to-call button in results header */
.results-header .ctas .btn-call {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.results-header .ctas .btn-call:hover {
  background: rgba(47,179,154,0.2);
  border-color: rgba(47,179,154,0.4);
}

/* Within the next-step CTA, call and guarantee */
.next-step-cta .ns-call {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}
.next-step-cta .ns-call:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.next-step-cta .ns-guarantee {
  flex-basis: 100%;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* ------------ COMPLIANCE STRIP ------------ */
.compliance-strip {
  background:
    radial-gradient(ellipse 600px 200px at 20% 0%, rgba(47,179,154,0.18), transparent 65%),
    radial-gradient(ellipse 500px 200px at 90% 100%, rgba(232,119,34,0.1), transparent 65%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: white;
  border-radius: 16px;
  padding: 28px 32px;
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(47,179,154,0.2);
  box-shadow: var(--shadow-lg);
}
.compliance-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at 30% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, black 30%, transparent 80%);
  pointer-events: none;
}
.compliance-strip > * { position: relative; z-index: 1; }
.compliance-strip h4 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  color: #fff;
}
.compliance-strip p { font-size: 13px; opacity: 0.82; line-height: 1.5; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 6px 12px;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  backdrop-filter: blur(8px);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.badge:hover {
  background: rgba(47,179,154,0.18);
  border-color: rgba(47,179,154,0.4);
}

/* ------------ PRINT ------------ */
@page {
  size: letter;
  margin: 0.6in 0.55in 0.7in;
}
@media print {
  /* Make every color print as designed (otherwise navy/teal wash out) */
  *, *::before, *::after { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  body { background: white !important; color: var(--navy); font-size: 10.5pt; line-height: 1.4; }
  .app { padding: 0 !important; max-width: none !important; }

  /* Hide everything that isn't the report — landing, wizard, modals, chrome */
  #landing, #wizard,
  .callback-modal,
  .mascot-floater, .wizard-mascot,
  .resume-banner,
  .toast,
  .site-footer,
  .home-link, .results-home, .wizard-home,
  .top-bar, .tab-bar, .full-toggle, .tldr-toggle, .next-step-cta,
  .results-header .ctas,
  .btn, button,
  .copy-btn-wrap,
  .grants-actions,
  .lf-refresh,
  .acq-cta { display: none !important; }

  /* Force the report visible regardless of summary/full toggle state */
  .results { display: block !important; }
  .results .tldr,
  .results .tab-bar,
  .results .panel,
  .results .panel.active { display: block !important; }
  .results.view-summary .tldr,
  .results.view-full .tldr { display: block !important; }

  /* Cleaner header for print: navy block, no gradients/shadow flair */
  .results-header {
    background: #0B2A4A !important;
    color: #fff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 18px 22px !important;
    margin-bottom: 18px;
  }
  .results-header h2 { font-size: 22pt !important; line-height: 1.15; margin: 6px 0 8px; }
  .results-header .kicker { font-size: 8pt; letter-spacing: 0.18em; }
  #reportSummary { font-size: 10pt; opacity: 0.92; }

  /* Page-break discipline: each major section starts fresh, internal cards stay together */
  .tldr,
  .panel[data-panel] { page-break-before: auto; page-break-inside: avoid; break-inside: avoid; }
  .panel[data-panel="acquisition"],
  .panel[data-panel="grants"],
  .panel[data-panel="stack"],
  .panel[data-panel="program"],
  .panel[data-panel="gap"] { page-break-before: always; break-before: page; }
  .panel .card,
  .panel .grant-card,
  .panel .compliance-strip,
  .gap-item,
  .acq-item,
  .acq-step,
  .bundled-tile { page-break-inside: avoid; break-inside: avoid; }

  /* Cards: print-friendly borders, no drop-shadows */
  .panel .card,
  .panel .grant-card,
  .panel .compliance-strip,
  .tldr-score-card,
  .tldr-funding-card,
  .tldr-grants-card,
  .tldr-cta { box-shadow: none !important; border: 1px solid #d4dae2 !important; background: white !important; color: var(--navy) !important; }
  .tldr-cta { color: var(--navy) !important; }
  .tldr-cta-head, .tldr-cta-blurb { color: var(--navy) !important; }

  /* Gauge + radar chart: cap size so they don't blow up on the page */
  .gauge-wrap canvas { max-width: 160px !important; max-height: 160px !important; }
  .radar-wrap canvas, #readinessRadar { max-width: 280px !important; max-height: 280px !important; }

  /* Headings */
  h2.section-headline { font-size: 18pt !important; }
  .card-title { font-size: 13pt !important; }
  .step h3, .narrative-box, .acq-title { font-size: 12pt !important; }

  /* Make sure links print their URL inline so paper readers can find sources */
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; word-break: break-all; }
  a[href^="mailto:"]::after,
  a[href^="tel:"]::after { content: ""; }

  /* Print-only run-line at the very top of every page */
  .print-only { display: block !important; }
  .print-banner {
    display: block !important;
    text-align: center;
    font-family: "JetBrains Mono", monospace;
    font-size: 8pt;
    color: var(--grey-700);
    border-bottom: 1px solid #d4dae2;
    padding: 0 0 6px;
    margin: 0 0 14px;
    letter-spacing: 0.04em;
  }
}
.print-only { display: none; }
.print-banner { display: none; }

/* ------------ MISC ------------ */
.muted { color: var(--grey-500); }
.small { font-size: 12px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pill {
  display: inline-block;
  background: var(--grey-100);
  color: var(--navy);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 4px;
}
.pill.teal { background: rgba(47,179,154,0.15); color: var(--teal-dark); }
.pill.orange { background: rgba(232,119,34,0.15); color: var(--orange-dark); }

/* Resume banner (sticky, only shown when saved wizard progress exists) */
.resume-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 10px 20px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  box-shadow: 0 2px 12px rgba(11,42,74,0.18);
}
.resume-banner.show { display: flex; }
.resume-banner .rb-msg { opacity: 0.92; }
.resume-banner .rb-btn {
  background: var(--teal);
  color: var(--navy);
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.resume-banner .rb-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(47,179,154,0.4); }
.resume-banner .rb-dismiss {
  background: transparent;
  color: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.resume-banner .rb-dismiss:hover { color: #fff; border-color: rgba(255,255,255,0.6); }

/* ============================================================
   EXPANDED FUNDING DATA — SAA · Peer Awards · Foundations
   Rendered inside the Grants tab below the grant-matches list.
   ============================================================ */

/* ============================================================
   LIVE FUNDING MAP — tile cartogram of the U.S.
   ============================================================ */
.fmap-wrap {
  position: relative;
  margin-top: 16px;
}
.fmap-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--grey-500);
  text-transform: uppercase;
}
.fmap-legend-label { color: var(--teal-dark); font-weight: 600; }
.fmap-scale { display: inline-flex; gap: 2px; }
.fmap-swatch { width: 16px; height: 10px; border-radius: 2px; }
.fmap-legend-range {
  font-family: "Fraunces", Georgia, serif;
  font-size: 13px;
  color: var(--navy);
  letter-spacing: -0.01em;
  text-transform: none;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.fmap-grid {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 20px;
  background:
    radial-gradient(ellipse at center, rgba(47,179,154,0.04), transparent 70%),
    rgba(11,42,74,0.02);
  border: 1px solid rgba(11,42,74,0.06);
  border-radius: 16px;
  overflow: hidden;
}
.fmap-grid svg.us-map {
  display: block;
  width: 100%;
  height: auto;
  max-height: 640px;
}
.fmap-grid svg.us-map path {
  cursor: pointer;
  transition: fill 180ms var(--ease), stroke 180ms var(--ease), filter 180ms var(--ease);
  outline: none;
}
.fmap-grid svg.us-map path.fm-0 { fill: #e5edf4; stroke: #b7c6d5; stroke-width: 0.8; }
.fmap-grid svg.us-map path.fm-1 { fill: rgba(47,179,154,0.28); stroke: rgba(47,179,154,0.45); }
.fmap-grid svg.us-map path.fm-2 { fill: rgba(47,179,154,0.5);  stroke: rgba(47,179,154,0.65); }
.fmap-grid svg.us-map path.fm-3 { fill: rgba(47,179,154,0.72); stroke: rgba(34,133,116,0.8); }
.fmap-grid svg.us-map path.fm-4 {
  fill: #228574;
  stroke: #0f5b4e;
  filter: drop-shadow(0 0 6px rgba(47,179,154,0.4));
}
.fmap-grid svg.us-map path:hover,
.fmap-grid svg.us-map path:focus-visible {
  stroke: #0B2A4A;
  stroke-width: 1.4;
  filter: drop-shadow(0 4px 10px rgba(11,42,74,0.25));
}
.fmap-fallback {
  padding: 48px;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--grey-500);
}
.fmap-swatch.fm-0 { background: rgba(11,42,74,0.08); }
.fmap-swatch.fm-1 { background: rgba(47,179,154,0.2); }
.fmap-swatch.fm-2 { background: rgba(47,179,154,0.4); }
.fmap-swatch.fm-3 { background: rgba(47,179,154,0.65); }
.fmap-swatch.fm-4 { background: #228574; }

.fmap-tooltip {
  position: absolute;
  transform: translate(-50%, -100%);
  background: #0B2A4A;
  color: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: 0 12px 32px -8px rgba(11,42,74,0.45), 0 0 0 1px rgba(47,179,154,0.25);
  min-width: 280px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
  z-index: 20;
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
}
.fmap-tooltip.show { opacity: 1; }
.fmap-tooltip .tt-head {
  font-family: "Fraunces", Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.fmap-tooltip .tt-code {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(47,179,154,0.95);
  font-weight: 700;
}
.fmap-tooltip .tt-total {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.fmap-tooltip .tt-total .tt-sub {
  font-family: "Inter", sans-serif;
  font-size: 11.5px;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  margin-left: 4px;
}
.fmap-tooltip .tt-sub { color: rgba(255,255,255,0.6); font-size: 12px; }
.fmap-tooltip .tt-items {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.fmap-tooltip .tt-item {
  font-size: 11.5px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 3px;
  line-height: 1.35;
}
.fmap-tooltip .tt-amt {
  font-family: "JetBrains Mono", monospace;
  color: rgba(47,179,154,0.95);
  font-weight: 700;
  font-size: 11px;
  margin-right: 4px;
}
.fmap-tooltip .tt-cta {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255,255,255,0.14);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(47,179,154,0.95);
  font-weight: 600;
}

.fmap-totals {
  margin-top: 24px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(47,179,154,0.06), rgba(11,42,74,0.03));
  border: 1px solid rgba(47,179,154,0.2);
  border-radius: 12px;
}
.fmap-totals .ft-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: baseline;
  text-align: center;
}
.fmap-totals .ft-big {
  font-family: "Fraunces", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.fmap-totals .ft-cap {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--grey-500);
  text-transform: uppercase;
  margin-left: 6px;
}

@media (max-width: 780px) {
  .fmap-grid { aspect-ratio: 14 / 10; }
  .fmap-tile { font-size: 9px; }
  .fmap-totals .ft-row { grid-template-columns: 1fr; gap: 8px; }
}

/* State-routing banner — appears when ?state=XX is in the URL */
.state-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 18px;
  padding: 8px 14px 8px 8px;
  background: rgba(47,179,154,0.08);
  border: 1px solid rgba(47,179,154,0.28);
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  max-width: 640px;
}
.state-banner .sb-flag {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 0 10px rgba(47,179,154,0.55);
}
.state-banner .sb-txt {
  font-size: 12.5px;
  letter-spacing: -0.005em;
  color: rgba(255,255,255,0.82);
}

/* Screen-reader-only (clip-based, works everywhere, no layout impact) */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Site footer — privacy link + contact */
.site-footer {
  margin-top: 48px;
  padding: 28px 32px;
  border-top: 1px solid rgba(11,42,74,0.08);
}
.site-footer .sf-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer .sf-brand {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: var(--grey-700);
  letter-spacing: -0.005em;
}
.site-footer .sf-brand strong {
  display: block;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 2px;
}
.site-footer .sf-brand .sf-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--grey-500);
  text-transform: uppercase;
}
.site-footer .sf-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
}
.site-footer .sf-links a {
  color: var(--teal-dark);
  text-decoration: none;
  border-bottom: 1px dashed rgba(47,179,154,0.35);
  padding-bottom: 1px;
}
.site-footer .sf-links a:hover {
  border-bottom-style: solid;
}

/* Aggregate reference strip — replaces the named-client logo wall for discretion */
.reference-strip {
  margin-top: 40px;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(47,179,154,0.04), rgba(11,42,74,0.02));
  border: 1px solid rgba(47,179,154,0.2);
  border-radius: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
}
.reference-strip .rs-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--teal-dark);
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  padding-top: 2px;
}
.reference-strip .rs-body {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: var(--grey-700);
  letter-spacing: -0.005em;
}
.reference-strip .rs-body a {
  color: var(--teal-dark);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px dashed rgba(47,179,154,0.35);
}
.reference-strip .rs-body a:hover {
  border-bottom-style: solid;
}
@media (max-width: 640px) {
  .reference-strip { grid-template-columns: 1fr; gap: 12px; padding: 20px 22px; }
}

/* Legacy (retained for any inline fallback) — kept minimal */
.logo-wall {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(11,42,74,0.08);
}
.lw-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.lw-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 600;
}
.lw-count {
  font-family: "Inter", sans-serif;
  font-size: 13.5px;
  color: var(--grey-700);
  letter-spacing: -0.005em;
}
.lw-count .lw-big {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  color: var(--navy);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 2px;
  font-variant-numeric: tabular-nums;
}
.lw-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: rgba(11,42,74,0.08);
  border: 1px solid rgba(11,42,74,0.08);
  border-radius: 14px;
  overflow: hidden;
}
.lw-cell {
  background: #fff;
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  transition: background 220ms var(--ease), transform 220ms var(--ease);
  cursor: default;
  position: relative;
}
.lw-cell:hover {
  background: linear-gradient(180deg, rgba(47,179,154,0.05), rgba(47,179,154,0.01));
  transform: translateY(-2px);
}
.lw-cell::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease);
}
.lw-cell:hover::after { transform: scaleX(1); }
.lw-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(11,42,74,0.18);
  border-radius: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy);
  background: rgba(11,42,74,0.03);
}
.lw-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--navy);
  line-height: 1.25;
  margin-top: 4px;
}
.lw-sub {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--grey-500);
  text-transform: uppercase;
  font-weight: 500;
  margin-top: auto;
  padding-top: 4px;
}
@media (max-width: 1100px) { .lw-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .lw-grid { grid-template-columns: repeat(2, 1fr); } }

/* "LIVE" pill next to real ceiling/floor values pulled from grants.gov */
.live-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background: var(--teal);
  border-radius: 4px;
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(47,179,154,0.6);
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47,179,154,0.6); }
  50%      { box-shadow: 0 0 0 4px rgba(47,179,154,0); }
}

.saa-card { border-left: 4px solid var(--teal); }
.saa-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  padding: 12px 0 4px;
}
.saa-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--teal-dark);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}
.saa-state {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.015em;
}
.saa-agency {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.4;
}
.saa-url {
  display: inline-block;
  margin-top: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--teal-dark);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.saa-url:hover { text-decoration: underline; }
.saa-verify {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-dark);
  background: rgba(232,119,34,0.1);
  border: 1px solid rgba(232,119,34,0.25);
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
  font-weight: 600;
}
.saa-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(11,42,74,0.1);
  font-size: 13px;
  color: var(--grey-700);
  line-height: 1.55;
}

.pa-summary {
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(47,179,154,0.06), rgba(11,42,74,0.03));
  border: 1px solid rgba(47,179,154,0.2);
  border-radius: 10px;
  font-size: 13px;
  color: var(--navy);
  margin-bottom: 16px;
  font-weight: 500;
}
.pa-summary .pa-big {
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 4px;
}
.pa-list { display: flex; flex-direction: column; gap: 0; }
.pa-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px 4px;
  border-top: 1px solid rgba(11,42,74,0.06);
  transition: background 160ms ease;
}
.pa-row:first-child { border-top: 0; }
.pa-row:hover { background: rgba(47,179,154,0.03); }
.pa-amt {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  min-width: 90px;
  text-align: right;
}
.pa-recipient {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.pa-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--grey-500);
  text-transform: uppercase;
}
.pa-meta .pa-aln { color: var(--teal-dark); font-weight: 600; }
.pa-meta .pa-state {
  background: rgba(11,42,74,0.06);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--navy);
}
.pa-link {
  text-decoration: none;
  color: var(--grey-500);
  font-size: 16px;
  transition: color 160ms ease;
  padding: 4px 8px;
}
.pa-link:hover { color: var(--teal-dark); }

.fnd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.fnd-row {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(11,42,74,0.08);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.fnd-row:hover {
  transform: translateY(-2px);
  border-color: rgba(47,179,154,0.3);
  box-shadow: var(--shadow-sm);
}
.fnd-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.fnd-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.fnd-assets {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--teal-dark);
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-weight: 600;
}
.fnd-pitch {
  font-size: 13px;
  color: var(--grey-700);
  line-height: 1.55;
}
.fnd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.fnd-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(11,42,74,0.05);
  border: 1px solid rgba(11,42,74,0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.fnd-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px dashed rgba(11,42,74,0.08);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--grey-500);
  letter-spacing: 0.04em;
}
.fnd-meta a {
  color: var(--teal-dark);
  text-decoration: none;
}
.fnd-meta a:hover { text-decoration: underline; }
.fnd-note {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(47,179,154,0.04);
  border: 1px solid rgba(47,179,154,0.18);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--grey-700);
  line-height: 1.55;
  font-style: italic;
}

/* Responsive */
@media (max-width: 900px) {
  .app { padding: 16px 20px 80px; }
  .hero h1 { font-size: 34px; }
  .hero p.lead { font-size: 17px; }
  .benefit-grid, .readiness-grid, .stack-wrap, .option-grid, .option-grid.cols-3, .partner-grid, .builder-grid, .gap-calc .row, .field-row { grid-template-columns: 1fr; }
  .wizard-body, .wizard-head, .wizard-nav { padding: 20px 22px; }
  .results-header { padding: 24px 22px; }
  .results-header h2 { font-size: 24px; }
  .saa-row { grid-template-columns: 1fr; gap: 14px; }
  .pa-row { grid-template-columns: auto 1fr; }
  .pa-link { grid-column: 2 / 3; justify-self: end; }
  .fnd-grid { grid-template-columns: 1fr; }
}
