/* ─── RESET & TOKENS ─────────────────────────────────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --bg: #f0f4f8;
  --white: #ffffff;
  --b100: #e2e8f0;
  --b200: #cbd5e1;
  --b300: #94a3b8;
  --b500: #64748b;
  --b700: #334155;
  --navy: #0d1f3c;
  --accent: #0a72a8;
  --accent-bg: #ebf4fa;
  --accent-border: #b3d6ee;
  --green: #059669;
  --green-bg: #ecfdf5;
  --green-border: #6ee7b7;
  --amber: #b45309;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
  --sans: "Bricolage Grotesque", sans-serif;
  --mono: "JetBrains Mono", monospace;
  --logo: "Bebas Neue", sans-serif;
}
html,
body {
  font-family: var(--sans);
  background: #d9e2ec;
  color: var(--b700);
  min-height: 100vh;
}
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07);
}

/* ─── NAV ────────────────────────────────────────────────── */
.nav-outer {
  background: var(--white);
  border-bottom: 1.5px solid #d9e2ec;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  padding: 0 28px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-title {
  font-family: var(--logo);
  font-size: 35px;
  letter-spacing: 0.08em;
  color: var(--navy);
  text-decoration: none;
  line-height: 1;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--b300);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover {
  color: var(--accent);
}
.nav-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d9e2ec;
  background: var(--bg);
  border-radius: 100px;
  padding: 4px 12px;
  transition: all 0.3s;
}
.nav-badge.active {
  border-color: var(--green-border);
  background: var(--green-bg);
}
.nav-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--b300);
  flex-shrink: 0;
  transition: background 0.3s;
}
.nav-badge.active .nav-badge-dot {
  background: var(--green);
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.nav-badge.active .nav-badge-dot {
  animation: pulse 1.8s ease-in-out infinite;
}
.nav-badge-txt {
  font-size: 10px;
  font-weight: 600;
  color: var(--b300);
  letter-spacing: 0.06em;
  transition: color 0.3s;
  white-space: nowrap;
}
.nav-badge.active .nav-badge-txt {
  color: var(--green);
}
.share-btn {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.15s;
  display: none;
}
.share-btn:hover {
  background: var(--accent);
  color: #fff;
}
.share-btn.visible {
  display: block;
}
.share-toast {
  font-size: 10px;
  color: var(--green);
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 4px;
}
.share-toast.show {
  display: flex;
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  background: var(--white);
  padding: 36px 28px 32px;
  border-bottom: 1.5px solid #d9e2ec;
}
.hero-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.hero-h1 {
  font-size: clamp(30px, 5.5vw, 52px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.hero-h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-p {
  font-size: 13px;
  color: var(--b500);
  line-height: 1.75;
}

/* ─── CONFIG ─────────────────────────────────────────────── */
.config {
  background: var(--bg);
  padding: 22px 28px;
  border-bottom: 1.5px solid #d9e2ec;
}
.step-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--b300);
  margin-bottom: 11px;
}
.ind-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin-bottom: 22px;
}
@media (max-width: 560px) {
  .ind-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.ind {
  background: var(--white);
  border: 1.5px solid #cbd5e1;
  border-radius: 9px;
  padding: 12px 8px 10px;
  cursor: pointer;
  text-align: center;
  transition: all 0.12s;
}
.ind:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
}
.ind.on {
  background: var(--navy);
  border-color: var(--navy);
}
.ind-ico {
  font-size: 18px;
  display: block;
  margin-bottom: 5px;
  line-height: 1;
}
.ind-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--b700);
  display: block;
  line-height: 1.2;
}
.ind-pct {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--b300);
  display: block;
  margin-top: 2px;
}
.ind.on .ind-name {
  color: #fff;
}
.ind.on .ind-pct {
  color: rgba(255, 255, 255, 0.4);
}
.inputs-outer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 520px) {
  .inputs-outer {
    grid-template-columns: 1fr;
  }
}
.inp-block {
  display: flex;
  flex-direction: column;
}
.inp-block label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--b700);
  margin-bottom: 5px;
}
.inp-desc {
  font-size: 11px;
  color: var(--b300);
  line-height: 1.5;
  min-height: 32px;
  margin-bottom: 7px;
}
.inp-wrap {
  position: relative;
}
.inp-sym {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--b300);
  pointer-events: none;
}
.inp-sym + input {
  padding-left: 28px;
}
.inp-wrap input {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid #cbd5e1;
  border-radius: 7px;
  padding: 9px 12px;
  outline: none;
  width: 100%;
  transition: border-color 0.15s;
}
.inp-wrap input:focus {
  border-color: var(--accent);
}
.inp-wrap input::placeholder {
  color: #b0bec5;
  font-weight: 400;
}
.inp-hint {
  font-size: 10px;
  margin-top: 5px;
  line-height: 1.5;
}
.inp-hint a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.inp-hint a:hover {
  text-decoration: underline;
}
.inp-hint.stale {
  color: var(--amber);
}
.calc-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.calc-btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 10px 24px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s;
}
.calc-btn:hover {
  background: var(--accent);
}
.save-btn {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  border-radius: 7px;
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.15s;
  display: none;
}
.save-btn:hover {
  background: var(--accent);
  color: #fff;
}
.save-btn.visible {
  display: block;
}
.sc-count {
  font-size: 11px;
  color: var(--b300);
}

/* ─── LOADING & ERROR ────────────────────────────────────── */
.loading-state {
  padding: 56px 28px;
  text-align: center;
}
.loading-state p {
  font-size: 13px;
  color: var(--b300);
  line-height: 1.8;
}
.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--b100);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.error-state {
  background: var(--amber-bg);
  border: 1.5px solid var(--amber-border);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 28px;
  font-size: 12px;
  color: var(--amber);
  line-height: 1.6;
}

/* ─── RESULTS EMPTY ──────────────────────────────────────── */
.results {
  background: var(--bg);
}
.empty {
  padding: 56px 28px;
  text-align: center;
}
.empty p {
  font-size: 13px;
  color: var(--b300);
  line-height: 1.8;
  max-width: 280px;
  margin: 0 auto;
}

/* ─── TICKER ─────────────────────────────────────────────── */
.ticker-section {
  background: var(--navy);
  padding: 28px 28px 24px;
}
.ticker-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.t-eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 6px;
}
.t-num {
  font-family: var(--mono);
  font-size: clamp(36px, 7vw, 60px);
  font-weight: 500;
  color: var(--green);
  letter-spacing: -0.02em;
  line-height: 1;
}
.t-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 5px;
}
.t-rates {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
}
.t-r-lbl {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}
.t-r-val {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

/* ─── MATH STRIP ─────────────────────────────────────────── */
.math-strip {
  background: #ebf4fa;
  border-top: 1.5px solid var(--accent-border);
  border-bottom: 1.5px solid var(--accent-border);
  padding: 9px 28px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.mp {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 500;
}
.mo {
  font-size: 11px;
  color: var(--b300);
}
.meq {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--navy);
  font-weight: 700;
}

/* ─── KPI STRIP ──────────────────────────────────────────── */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-bottom: 1.5px solid #d9e2ec;
}
@media (max-width: 540px) {
  .kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
.kpi {
  padding: 18px 20px;
  border-right: 1.5px solid #d9e2ec;
}
.kpi:last-child {
  border-right: none;
}
.kpi-lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--b300);
  margin-bottom: 4px;
}
.kpi-val {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--navy);
}
.kpi-val.hi {
  color: var(--accent);
}
.kpi-note {
  font-size: 10px;
  color: var(--b300);
  margin-top: 3px;
  line-height: 1.4;
}

/* ─── FUNNEL ─────────────────────────────────────────────── */
.funnel-row {
  background: var(--white);
  border-bottom: 1.5px solid #d9e2ec;
  padding: 22px 28px;
}
.section-head {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--b300);
  margin-bottom: 16px;
}
.funnel-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fn-step {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fn-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--b700);
  width: 110px;
  flex-shrink: 0;
}
.fn-bar-wrap {
  flex: 1;
  height: 26px;
  background: var(--b100);
  border-radius: 4px;
  overflow: hidden;
}
.fn-bar {
  height: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0%;
}
.fn-bar span {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}
.fn-val {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--b500);
  width: 44px;
  text-align: right;
  flex-shrink: 0;
}
.fn-connector {
  margin-left: 122px;
  height: 8px;
  width: 2px;
  background: var(--b200);
}

/* ─── CHARTS ─────────────────────────────────────────────── */
.charts-row {
  display: grid;
  grid-template-columns: 3fr 2fr;
  background: var(--white);
  border-bottom: 1.5px solid #d9e2ec;
}
@media (max-width: 580px) {
  .charts-row {
    grid-template-columns: 1fr;
  }
}
.chart-block {
  padding: 20px 22px;
}
.chart-block + .chart-block {
  border-left: 1.5px solid #d9e2ec;
}
@media (max-width: 580px) {
  .chart-block + .chart-block {
    border-left: none;
    border-top: 1.5px solid #d9e2ec;
  }
}
.chart-lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--b300);
  margin-bottom: 4px;
}
.chart-sublbl {
  font-size: 10px;
  color: var(--b300);
  margin-bottom: 12px;
  font-style: italic;
}

/* ─── RECOVERY ───────────────────────────────────────────── */
.recovery-section {
  background: var(--white);
  border-bottom: 1.5px solid #d9e2ec;
  padding: 22px 28px;
}
.recovery-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 560px) {
  .recovery-inner {
    grid-template-columns: 1fr;
  }
}
.rec-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.rec-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--b700);
}
.rec-pct-disp {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}
input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
  margin: 4px 0;
}
.rec-subtext {
  font-size: 10px;
  color: var(--b300);
  margin-top: 6px;
  line-height: 1.6;
}
.rec-ref {
  margin-top: 14px;
}
.rec-ref-head {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--b300);
  margin-bottom: 8px;
}
.rec-ref-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--b100);
}
.rec-ref-label {
  font-size: 11px;
  color: var(--b500);
}
.rec-ref-val {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--green);
}
.rec-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rec-card {
  border-radius: 8px;
  padding: 14px 16px;
  border: 1.5px solid;
}
.rec-card.loss {
  background: var(--bg);
  border-color: var(--b100);
}
.rec-card.gain {
  background: var(--green-bg);
  border-color: var(--green-border);
}
.rec-card.potential {
  background: var(--accent-bg);
  border-color: var(--accent-border);
}
.rc-lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.rc-lbl.l {
  color: var(--b300);
}
.rc-lbl.g {
  color: var(--green);
}
.rc-lbl.p {
  color: var(--accent);
}
.rc-val {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
}
.rc-val.l {
  color: var(--accent);
}
.rc-val.g {
  color: var(--green);
}
.rc-val.p {
  color: var(--navy);
}
.rc-note {
  font-size: 10px;
  color: var(--b300);
  margin-top: 3px;
}

/* ─── 5-YEAR ─────────────────────────────────────────────── */
.fiveyear-section {
  background: var(--white);
  border-bottom: 1.5px solid #d9e2ec;
  padding: 20px 22px;
}
.five-headline {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.five-val {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
}
.five-sub {
  font-size: 11px;
  color: var(--b300);
}

/* ─── SCENARIOS ──────────────────────────────────────────── */
.scenarios-section {
  background: var(--bg);
  border-bottom: 1.5px solid #d9e2ec;
  padding: 22px 28px;
}
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
@media (max-width: 500px) {
  .scenarios-grid {
    grid-template-columns: 1fr;
  }
}
.sc-card {
  background: var(--white);
  border: 1.5px solid #cbd5e1;
  border-radius: 9px;
  padding: 14px 16px;
  position: relative;
}
.sc-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--b300);
  margin-bottom: 6px;
}
.sc-industry {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.sc-val {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 2px;
}
.sc-sub {
  font-size: 10px;
  color: var(--b300);
}
.sc-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--b100);
  border: none;
  cursor: pointer;
  font-size: 11px;
  color: var(--b500);
  line-height: 18px;
  text-align: center;
  transition: background 0.15s;
}
.sc-remove:hover {
  background: var(--b200);
}
.sc-empty {
  font-size: 12px;
  color: var(--b300);
  padding: 16px 0;
  text-align: center;
}

/* ─── BENCHMARK ──────────────────────────────────────────── */
.bench-section {
  background: var(--white);
  border-bottom: 1.5px solid #d9e2ec;
  padding: 20px 28px;
}
.bench-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 32px;
}
@media (max-width: 480px) {
  .bench-cols {
    grid-template-columns: 1fr;
  }
}
.br {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
}
.br-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--b500);
  width: 76px;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.br-name.you {
  color: var(--navy);
  font-weight: 700;
}
.br-track {
  flex: 1;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}
.br-fill {
  height: 100%;
  border-radius: 2px;
  background: #cbd5e1;
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.br-fill.you {
  background: var(--accent);
}
.br-pct {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--b300);
  width: 26px;
  text-align: right;
  flex-shrink: 0;
}
.br-pct.you {
  color: var(--accent);
  font-weight: 500;
}
.br-you {
  font-size: 9px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
  padding: 1px 5px;
  flex-shrink: 0;
}

/* ─── INSIGHT ────────────────────────────────────────────── */
.insight-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-bottom: 1.5px solid #d9e2ec;
}
@media (max-width: 540px) {
  .insight-row {
    grid-template-columns: 1fr;
  }
}
.ins {
  padding: 20px 22px;
  border-right: 1.5px solid #d9e2ec;
}
.ins:last-child {
  border-right: none;
}
@media (max-width: 540px) {
  .ins:last-child {
    border-top: 1.5px solid #d9e2ec;
    border-right: none;
  }
}
.ins-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}
.ins-icon {
  width: 28px;
  height: 28px;
  background: var(--bg);
  border: 1.5px solid #d9e2ec;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.ins-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}
.ins-caption {
  font-size: 10px;
  color: var(--b300);
  margin-top: 1px;
}
.ins-body {
  font-size: 12px;
  color: var(--b500);
  line-height: 1.75;
}
.ins-body strong {
  color: var(--navy);
  font-weight: 600;
}

/* ─── RESULT FOOTER ──────────────────────────────────────── */
.foot {
  padding: 14px 28px;
  background: var(--bg);
  border-top: 1px solid #d9e2ec;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.foot-txt {
  font-size: 10px;
  color: var(--b300);
  line-height: 1.6;
}
.foot-txt strong {
  color: var(--b500);
  font-weight: 500;
}
.foot-txt a {
  color: var(--accent);
  text-decoration: none;
}
.foot-txt a:hover {
  text-decoration: underline;
}

/* ─── SITE FOOTER ────────────────────────────────────────── */
.site-footer {
  background: #d9e2ec;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto;
}
.site-footer-txt {
  font-size: 11px;
  color: var(--b500);
  font-weight: 500;
}
.site-footer-txt a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}
.site-footer-txt a:hover {
  color: var(--accent);
}

/* ─── SOURCES PAGE ───────────────────────────────────────── */
.page-header {
  background: var(--white);
  padding: 36px 28px 32px;
  border-bottom: 1.5px solid #d9e2ec;
}
.ph-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.ph-h1 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.ph-p {
  font-size: 13px;
  color: var(--b500);
  line-height: 1.75;
  max-width: 560px;
}
.ph-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.ph-meta-item {
  font-size: 11px;
  color: var(--b300);
}
.ph-meta-item strong {
  color: var(--b500);
  font-weight: 600;
}
.ph-meta-item.stale {
  color: var(--amber);
}
.ph-meta-item a {
  color: var(--accent);
  text-decoration: none;
}
.ph-meta-item a:hover {
  text-decoration: underline;
}
.intro-band {
  background: var(--accent-bg);
  border-bottom: 1.5px solid var(--accent-border);
  padding: 12px 28px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ib-icon {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}
.ib-txt {
  font-size: 12px;
  color: var(--accent);
  line-height: 1.7;
}
.ib-txt strong {
  font-weight: 600;
}
.ib-txt code {
  font-family: var(--mono);
  font-size: 11px;
}
.table-section {
  background: var(--white);
  border-bottom: 1.5px solid #d9e2ec;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
th {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--b300);
  padding: 12px 20px;
  text-align: left;
  border-bottom: 1.5px solid #d9e2ec;
  white-space: nowrap;
  background: var(--white);
  position: sticky;
  top: 52px;
}
td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--b100);
  vertical-align: top;
}
tr:last-child td {
  border-bottom: none;
}
tr:hover td {
  background: var(--bg);
}
.td-ind {
  display: flex;
  align-items: center;
  gap: 8px;
}
.td-ico {
  font-size: 16px;
  flex-shrink: 0;
}
.td-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}
.td-val {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}
.td-val-sub {
  font-size: 10px;
  color: var(--b300);
  margin-top: 2px;
}
.td-stat {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--navy);
}
.td-stat-sub {
  font-size: 10px;
  color: var(--b300);
  margin-top: 2px;
}
.td-src a {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.td-src a:hover {
  text-decoration: underline;
}
.td-src a::after {
  content: "↗";
  font-size: 9px;
  opacity: 0.7;
}
.td-xref {
  font-size: 10px;
  color: var(--b300);
  margin-top: 3px;
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 600;
  border-radius: 100px;
  padding: 2px 8px;
  margin-top: 4px;
}
.verified-badge.fresh {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green-border);
}
.verified-badge.stale {
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid var(--amber-border);
}
.verified-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.verified-badge.fresh .verified-badge-dot {
  background: var(--green);
}
.verified-badge.stale .verified-badge-dot {
  background: var(--amber);
}
.methodology {
  background: var(--bg);
  padding: 28px;
  border-bottom: 1.5px solid #d9e2ec;
}
.section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--b300);
  margin-bottom: 18px;
}
.meth-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 600px) {
  .meth-grid {
    grid-template-columns: 1fr;
  }
}
.meth-card {
  background: var(--white);
  border: 1.5px solid #cbd5e1;
  border-radius: 9px;
  padding: 16px 18px;
}
.mc-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--b300);
  margin-bottom: 8px;
}
.mc-formula {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.7;
  background: var(--bg);
  border-radius: 5px;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.mc-note {
  font-size: 11px;
  color: var(--b500);
  line-height: 1.65;
}
.governance {
  background: var(--white);
  border-bottom: 1.5px solid #d9e2ec;
  padding: 24px 28px;
}
.gov-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 4px;
}
@media (max-width: 560px) {
  .gov-grid {
    grid-template-columns: 1fr;
  }
}
.gov-item-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--b300);
  margin-bottom: 6px;
}
.gov-item-val {
  font-size: 12px;
  color: var(--b700);
  line-height: 1.7;
}
.gov-item-val a {
  color: var(--accent);
  text-decoration: none;
}
.gov-item-val a:hover {
  text-decoration: underline;
}
.gov-item-val code {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--b100);
}
.stale-warning {
  background: var(--amber-bg);
  border: 1.5px solid var(--amber-border);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 20px 28px 0;
  font-size: 12px;
  color: var(--amber);
  line-height: 1.7;
  display: none;
}
.stale-warning.show {
  display: block;
}
.disclaimer {
  padding: 16px 28px;
  background: var(--bg);
}
.dis-txt {
  font-size: 10px;
  color: var(--b300);
  line-height: 1.7;
  max-width: 680px;
}
.dis-txt strong {
  color: var(--b500);
  font-weight: 500;
}

/* ─── MOBILE RESPONSIVE ─────────────────────────────────────
   Primary breakpoint: 480px (most phones)
   Secondary:          380px (small phones — iPhone SE etc.)
──────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  /* Layout */
  .page-wrap {
    box-shadow: none;
  }
  .hero {
    padding: 24px 16px 20px;
  }
  .config {
    padding: 16px;
  }
  .hero-p {
    font-size: 12px;
  }

  /* Nav — hide badge text on very small screens, keep dot */
  .nav {
    padding: 0 16px;
    height: 48px;
  }
  .nav-title {
    font-size: 20px;
  }
  .nav-badge-txt {
    display: none;
  }
  .nav-badge {
    padding: 4px 8px;
  }
  .nav-right {
    gap: 6px;
  }
  .share-btn {
    font-size: 10px;
    padding: 4px 9px;
  }
  .nav-link {
    font-size: 10px;
  }

  /* Industry grid — 2 columns on very small screens */
  .ind-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .ind {
    padding: 10px 6px 8px;
  }
  .ind-ico {
    font-size: 16px;
  }
  .ind-name {
    font-size: 10px;
  }
  .ind-pct {
    font-size: 8px;
  }

  /* Inputs */
  .inp-desc {
    min-height: auto;
  }
  .calc-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .calc-btn {
    width: 100%;
    text-align: center;
  }
  .save-btn.visible {
    width: 100%;
    text-align: center;
  }

  /* Ticker — stack left and rates vertically */
  .ticker-section {
    padding: 20px 16px 18px;
  }
  .ticker-top {
    flex-direction: column;
    gap: 14px;
  }
  .t-num {
    font-size: clamp(32px, 10vw, 48px);
  }
  .t-rates {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
    width: 100%;
  }
  .t-r-val {
    font-size: 12px;
  }

  /* Math strip — smaller text, tighter gap */
  .math-strip {
    padding: 8px 16px;
    gap: 5px;
    row-gap: 4px;
  }
  .mp,
  .mo,
  .meq {
    font-size: 10px;
  }

  /* KPI strip — 2x2 grid */
  .kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .kpi {
    padding: 14px 12px;
    border-right: 1.5px solid #d9e2ec;
  }
  .kpi:nth-child(2) {
    border-right: none;
  }
  .kpi:nth-child(3) {
    border-top: 1.5px solid #d9e2ec;
  }
  .kpi:nth-child(4) {
    border-top: 1.5px solid #d9e2ec;
    border-right: none;
  }
  .kpi-val {
    font-size: 17px;
  }
  .kpi-note {
    font-size: 9px;
  }

  /* Funnel — shrink label width */
  .funnel-row {
    padding: 18px 16px;
  }
  .fn-label {
    width: 76px;
    font-size: 10px;
  }
  .fn-connector {
    margin-left: 88px;
  }
  .fn-bar span {
    font-size: 9px;
  }
  .fn-val {
    font-size: 10px;
    width: 36px;
  }

  /* Charts — full width, taller canvas */
  .charts-row {
    grid-template-columns: 1fr;
  }
  .chart-block {
    padding: 16px;
  }
  .chart-block + .chart-block {
    border-left: none;
    border-top: 1.5px solid #d9e2ec;
  }

  /* Recovery */
  .recovery-section {
    padding: 18px 16px;
  }
  .recovery-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 5-year */
  .fiveyear-section {
    padding: 18px 16px;
  }

  /* Scenarios */
  .scenarios-section {
    padding: 18px 16px;
  }
  .scenarios-grid {
    grid-template-columns: 1fr;
  }

  /* Benchmark bars — single column already handled, just tighten */
  .bench-section {
    padding: 18px 16px;
  }
  .bench-cols {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .br-name {
    width: 72px;
    font-size: 10px;
  }

  /* Insight */
  .insight-row {
    grid-template-columns: 1fr;
  }
  .ins {
    padding: 16px;
  }
  .ins:last-child {
    border-top: 1.5px solid #d9e2ec;
    border-right: none;
  }

  /* Footer */
  .foot {
    padding: 12px 16px;
    flex-direction: column;
    gap: 4px;
  }
  .site-footer {
    padding: 12px 16px;
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  /* Sources page */
  .page-header {
    padding: 24px 16px 20px;
  }
  .intro-band {
    padding: 12px 16px;
  }
  .methodology {
    padding: 20px 16px;
  }
  .governance {
    padding: 18px 16px;
  }
  .disclaimer {
    padding: 14px 16px;
  }
  .stale-warning {
    margin: 16px 16px 0;
  }
}

@media (max-width: 380px) {
  /* Extra small — iPhone SE, Galaxy A series */
  .nav-title {
    font-size: 18px;
  }
  .ind-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ind-name {
    font-size: 9px;
  }

  /* Hide share button entirely, accessible via URL copy */
  .share-btn {
    display: none !important;
  }

  /* KPI numbers tighter */
  .kpi-val {
    font-size: 15px;
  }
  .kpi-lbl {
    font-size: 8px;
  }

  /* Funnel label even smaller */
  .fn-label {
    width: 60px;
    font-size: 9px;
  }
  .fn-connector {
    margin-left: 72px;
  }
}
