/* ==========================================================================
   sendmoneytonigeria — design system
   Clean fintech: white surfaces, one deep green brand colour, tabular numbers.
   No emojis; inline SVG icons only.
   ========================================================================== */

:root {
  /* Brand */
  --brand: #0a7a52;
  --brand-hover: #086244;
  --brand-ink: #054231;
  --brand-50: #edf8f2;
  --brand-100: #d4efe0;
  --brand-200: #a9dfc3;

  /* Neutrals */
  --ink: #0e1a15;
  --ink-2: #33433b;
  --muted: #56665e;
  --light: #7a8a82;
  --border: #e2e8e4;
  --border-strong: #c9d3cd;
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-2: #f1f5f3;

  /* Signals */
  --gold: #a16207;
  --gold-50: #fef9ec;
  --gold-200: #f6dfa4;
  --red: #b42318;
  --red-50: #fef3f2;
  --blue: #1d4ed8;
  --blue-50: #eff4ff;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-sm: 0 1px 2px rgb(14 26 21 / 0.05);
  --shadow-md: 0 4px 14px -4px rgb(14 26 21 / 0.10), 0 2px 4px -2px rgb(14 26 21 / 0.05);
  --shadow-lg: 0 18px 40px -16px rgb(14 26 21 / 0.22);

  /* Legacy aliases used by inline styles in older templates */
  --color-bg: var(--bg);
  --color-surface: var(--surface);
  --color-surface-hover: var(--surface-2);
  --color-border: var(--border);
  --color-border-focus: var(--border-strong);
  --color-text-main: var(--ink);
  --color-text-muted: var(--muted);
  --color-text-light: var(--light);
  --color-primary: var(--brand);
  --color-primary-hover: var(--brand-hover);
  --color-primary-light: var(--brand-50);
  --color-primary-border: var(--brand-200);
  --color-amber: var(--gold);
  --color-amber-light: var(--gold-50);
  --color-amber-700: var(--gold);
  --color-blue: var(--blue);
  --color-blue-light: var(--blue-50);
  --color-slate-50: #f8faf9;
  --color-slate-200: var(--border);
  --color-slate-300: var(--border-strong);
  --color-slate-400: #9aa8a1;
  --color-slate-500: var(--light);
  --color-slate-600: var(--muted);
  --color-slate-700: var(--ink-2);
  --color-slate-900: var(--ink);
  --color-emerald-50: var(--brand-50);
  --color-emerald-200: var(--brand-200);
  --color-emerald-700: var(--brand);
  --color-emerald-800: var(--brand-ink);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}

img { max-width: 100%; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 3px solid var(--brand-200); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 12px; }

.tabular-nums, .tabular, .num { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.text-muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-sm { padding: 32px 0; }
.section-white { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container, .container-narrow { padding: 0 16px; }
  .section { padding: 40px 0; }
}

.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
.section-title { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 750; letter-spacing: -0.02em; line-height: 1.2; margin: 6px 0 10px; }
.section-lead { color: var(--muted); max-width: 680px; font-size: 1.02rem; }
.section-head { margin-bottom: 28px; }

/* ---------- Header ---------- */
.header { background: rgb(255 255 255 / 0.92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 1.05rem; color: var(--ink); letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-name span { color: var(--brand); }
.brand-badge { background: var(--brand-50); color: var(--brand-ink); font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--brand-100); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-link { white-space: nowrap; display: inline-block; text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; }
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link.active { color: var(--brand-ink); background: var(--brand-50); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px; cursor: pointer; color: var(--ink); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); display: none; }
  .site-nav.open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; padding: 12px 16px 16px; gap: 2px; }
  .nav-link { padding: 12px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* Corridor pills */
.corridor-bar { background: var(--surface); border-bottom: 1px solid var(--border); }
.corridor-nav { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.corridor-nav::-webkit-scrollbar { display: none; }
.corridor-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border: 1px solid var(--border); border-radius: 999px; font-size: 0.85rem; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; background: var(--surface); }
.corridor-pill:hover { border-color: var(--border-strong); color: var(--ink); }
.corridor-pill.active { border-color: var(--brand); background: var(--brand-50); color: var(--brand-ink); font-weight: 600; }
.flag { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgb(14 26 21 / 0.08); flex-shrink: 0; }
.flag-lg { width: 36px; height: 27px; border-radius: 5px; }
.pill-currency { color: var(--light); font-size: 0.78rem; }

/* ---------- Buttons & badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 0.92rem; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background 0.15s, border-color 0.15s, color 0.15s; white-space: nowrap; font-family: inherit; line-height: 1.2; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-secondary, .btn-outline { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover, .btn-outline:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--brand); padding-left: 0; padding-right: 0; }
.btn-lg { padding: 14px 24px; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 7px 12px; font-size: 0.82rem; border-radius: 8px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--border); }
.badge-accent, .badge-brand { background: var(--brand-50); color: var(--brand-ink); border-color: var(--brand-100); }
.badge-gold { background: var(--gold-50); color: var(--gold); border-color: var(--gold-200); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
a.card:hover { border-color: var(--brand-200); box-shadow: var(--shadow-md); color: inherit; }
.card-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; color: var(--ink); }
.card-text { font-size: 0.92rem; color: var(--muted); }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; font-size: 0.9rem; color: var(--brand); }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 56px; background:
  radial-gradient(1200px 400px at 85% -10%, var(--brand-50), transparent 60%),
  linear-gradient(var(--surface), var(--bg)); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr); gap: 40px; align-items: start; }
.hero-title { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; margin: 12px 0 16px; }
.hero-title em { font-style: normal; color: var(--brand); }
.hero-subtitle { font-size: 1.08rem; color: var(--muted); max-width: 560px; }
.hero-points { list-style: none; margin-top: 24px; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--ink-2); }
.hero-points svg { color: var(--brand); flex-shrink: 0; margin-top: 3px; }
.freshness-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px #dcfce7; }
@media (max-width: 1100px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } }

.page-hero { padding: 36px 0 32px; background: var(--surface); border-bottom: 1px solid var(--border); }
.page-hero .hero-title { font-size: clamp(1.75rem, 3.6vw, 2.5rem); margin-top: 10px; }
.breadcrumbs { font-size: 0.82rem; color: var(--light); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.85rem; color: var(--muted); margin-top: 14px; align-items: center; }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Calculator ---------- */
.calculator-card { container-type: inline-size; container-name: calc; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 20px; }
.calculator-controls { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; }
@container calc (max-width: 640px) { .calculator-controls { grid-template-columns: 1fr 1fr; } .calculator-controls .control-group:first-child { grid-column: 1 / -1; } }
@container calc (max-width: 420px) { .calculator-controls { grid-template-columns: 1fr; } }
.control-group label, .field-label { display: block; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.input-with-symbol { position: relative; }
.input-symbol { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); pointer-events: none; }
.calculator-input, .calculator-select { width: 100%; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: 10px; font-size: 1rem; font-weight: 600; color: var(--ink); background: var(--surface); font-family: inherit; }
.input-with-symbol .calculator-input { padding-left: 40px; font-size: 1.15rem; font-weight: 700; }
.calculator-input:focus, .calculator-select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.quick-amounts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.quick-amount-btn, .amount-pill { border: 1px solid var(--border); background: var(--surface-2); color: var(--ink-2); padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.quick-amount-btn:hover, .amount-pill:hover, .quick-amount-btn.active, .amount-pill.active { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-50); }
.filter-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.toggle-group { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; flex-wrap: wrap; }
.toggle-btn { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-size: 0.82rem; font-weight: 600; color: var(--muted); cursor: pointer; font-family: inherit; }
.toggle-btn.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.check-label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); cursor: pointer; }
.check-label input { accent-color: var(--brand); width: 16px; height: 16px; }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 10px; font-size: 0.84rem; line-height: 1.5; }
.notice svg { flex-shrink: 0; margin-top: 2px; }
.notice-gold { background: var(--gold-50); border: 1px solid var(--gold-200); color: #713f12; }
.notice-brand { background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-ink); }

/* Rates table */
.table-wrapper, .table-responsive { width: 100%; overflow-x: auto; }
.rates-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.92rem; }
.rates-table th { text-align: left; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--light); padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.rates-table td { padding: 14px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.rates-table tbody tr:last-child td { border-bottom: 0; }
.rates-table tr.rank-1 td, .rates-table tr.winner-row td { background: var(--brand-50); }
.rates-table tr.rank-1 td:first-child { border-radius: 12px 0 0 12px; }
.rates-table tr.rank-1 td:last-child { border-radius: 0 12px 12px 0; }

.provider-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rank-badge { font-size: 0.78rem; font-weight: 700; color: var(--light); min-width: 22px; }
.provider-logo-wrap, .provider-logo { width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.provider-logo img, .provider-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.provider-logo-lg { width: 64px; height: 64px; border-radius: 16px; }
.provider-info h4 { font-size: 0.98rem; font-weight: 700; line-height: 1.25; }
.provider-info h4 a { color: var(--ink); text-decoration: none; }
.provider-info h4 a:hover { color: var(--brand); }
.provider-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 0.78rem; color: var(--light); margin-top: 2px; }
.rate-val { font-weight: 600; }
.margin-text { font-size: 0.76rem; color: var(--light); }
.fee-val { font-weight: 600; }
.fee-zero { color: var(--brand); }
.naira-received { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.rank-1 .naira-received { color: var(--brand-ink); }
.winner-tag { display: inline-block; margin-top: 4px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand-ink); background: var(--brand-100); padding: 2px 8px; border-radius: 999px; }
.limit-note { font-size: 0.72rem; color: var(--gold); }

@container calc (max-width: 700px) {
  .rates-table thead { display: none; }
  .rates-table, .rates-table tbody, .rates-table tr, .rates-table td { display: block; width: 100%; }
  .rates-table tr { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; background: var(--surface); display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
  .rates-table tr.rank-1 { border-color: var(--brand-200); background: var(--brand-50); }
  .rates-table tr.rank-1 td { background: transparent; }
  .rates-table td { border: 0; padding: 0; }
  .rates-table td.cell-provider { grid-column: 1 / -1; }
  .rates-table td.cell-rate, .rates-table td.cell-fee { font-size: 0.85rem; }
  .rates-table td[data-label]::before { content: attr(data-label); display: block; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--light); }
  .rates-table td.cell-received { grid-column: 1; }
  .rates-table td.cell-action { grid-column: 2; grid-row: span 1; align-self: end; text-align: right; }
}

/* ---------- Verdict / stats ---------- */
.verdict-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .verdict-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .verdict-grid { grid-template-columns: 1fr; } }
.verdict-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; }
.verdict-item .label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--light); margin-bottom: 4px; }
.verdict-item .value { font-size: 0.9rem; color: var(--ink-2); line-height: 1.45; }
.verdict-item .value strong { color: var(--ink); }
.verdict-item.featured { border-color: var(--brand-200); background: var(--brand-50); }

.stat { padding: 18px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); }
.stat-value { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.stat-label { font-size: 0.82rem; color: var(--muted); }

/* ---------- Article / guide layout ---------- */
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; gap: 24px; } }
.toc { position: sticky; top: 132px; font-size: 0.88rem; }
.toc-title { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--light); margin-bottom: 10px; }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 2px solid var(--border); }
.toc a { display: block; padding: 5px 12px; color: var(--muted); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--brand); border-left-color: var(--brand); }
@media (max-width: 960px) { .toc { position: static; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; } }

.article-section { padding: 8px 0 32px; scroll-margin-top: 130px; }
.article-section + .article-section { border-top: 1px solid var(--border); padding-top: 32px; }
.article-section > h2 { font-size: 1.45rem; font-weight: 750; letter-spacing: -0.02em; margin-bottom: 14px; }

.prose { color: var(--ink-2); font-size: 1rem; line-height: 1.75; }
.prose > * + * { margin-top: 14px; }
.prose h2 { font-size: 1.35rem; font-weight: 750; letter-spacing: -0.015em; color: var(--ink); margin-top: 30px; }
.prose h3 { font-size: 1.12rem; font-weight: 700; color: var(--ink); margin-top: 26px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { color: var(--brand); text-underline-offset: 3px; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }
.prose code { font-size: 0.88em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.prose blockquote { border-left: 3px solid var(--brand-200); padding-left: 16px; color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.prose th, .prose td { border-bottom: 1px solid var(--border); padding: 8px 10px; text-align: left; }

/* ---------- Provider directory ---------- */
.provider-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.provider-card + .provider-card { margin-top: 16px; }
.provider-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.provider-card-title { display: flex; align-items: center; gap: 14px; }
.provider-card-title h3 { font-size: 1.15rem; font-weight: 750; letter-spacing: -0.01em; }
.provider-card-body { margin-top: 14px; font-size: 0.94rem; color: var(--ink-2); }
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
@media (max-width: 640px) { .fit-grid { grid-template-columns: 1fr; } }
.fit-box { border-radius: 10px; padding: 12px 14px; font-size: 0.88rem; line-height: 1.5; }
.fit-box.good { background: var(--brand-50); color: var(--brand-ink); }
.fit-box.bad { background: var(--red-50); color: #7a271a; }
.fit-box strong { display: block; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 4px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { font-size: 0.75rem; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--border); }

/* ---------- FAQ (shared accordion: views/partials/faq-list.ejs) ---------- */
.faq-block { margin-top: 4px; }
.faq-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.faq-title { font-size: 1.45rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.25; }
.faq-toggle-all { flex-shrink: 0; background: none; border: 0; padding: 4px 0; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--brand); cursor: pointer; }
.faq-toggle-all:hover { text-decoration: underline; text-underline-offset: 3px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); transition: border-color 0.15s, box-shadow 0.15s; overflow: hidden; }
.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; font-weight: 650; font-size: 1rem; line-height: 1.45; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary:hover .faq-q { color: var(--brand-ink); }
.faq-item summary:focus-visible { outline: 3px solid var(--brand-200); outline-offset: -3px; border-radius: var(--radius-md); }
.faq-icon { position: relative; width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; border-radius: 50%; background: var(--surface-2); transition: background 0.15s, transform 0.2s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px; background: var(--ink-2); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--brand-100); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: var(--brand-ink); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); opacity: 0; }
.faq-answer { padding: 0 18px 18px; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.faq-answer p { border-top: 1px solid var(--border); padding-top: 14px; }
.faq-answer p + p { border-top: 0; padding-top: 0; margin-top: 10px; }
/* Smooth open/close where supported (Chromium 131+); instant elsewhere */
@supports (interpolate-size: allow-keywords) {
  .faq-item { interpolate-size: allow-keywords; }
  .faq-item::details-content { height: 0; overflow: clip; transition: height 0.22s ease, content-visibility 0.22s allow-discrete; }
  .faq-item[open]::details-content { height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item::details-content, .faq-icon, .faq-icon::before, .faq-icon::after { transition: none; }
}
@media (max-width: 640px) {
  .faq-title { font-size: 1.25rem; }
  .faq-item summary { padding: 14px 14px; font-size: 0.96rem; }
  .faq-answer { padding: 0 14px 16px; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-50); color: var(--brand-ink); border: 1px solid var(--brand-100); font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; }
.steps h3 { font-size: 1rem; font-weight: 700; }
.steps p { font-size: 0.92rem; color: var(--muted); }

/* ---------- Corridor tiles ---------- */
.corridor-tile { display: flex; flex-direction: column; gap: 10px; }
.corridor-tile-head { display: flex; align-items: center; gap: 12px; }
.corridor-tile-head h3 { font-size: 1.05rem; font-weight: 700; }
.corridor-tile .rate-line { font-size: 0.85rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #c5d1cb; padding: 56px 0 28px; margin-top: 64px; }
.footer .brand { color: #fff; }
.footer .brand:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h5 { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.footer-col p { font-size: 0.88rem; line-height: 1.6; color: #a9b8b0; }
.footer-links { list-style: none; display: grid; gap: 8px; }
.footer-links a { color: #c5d1cb; text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }
.disclaimer-text { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 0.1); font-size: 0.8rem; line-height: 1.65; color: #93a39b; }
.disclaimer-text p + p { margin-top: 10px; }
.disclaimer-text strong { color: #d7e1dc; }

/* ---------- Legacy helpers (older templates) ---------- */
.hero-subtitle.center, .center { text-align: center; }
.scorecard-item { background: var(--surface-2); border-radius: 10px; padding: 12px; text-align: center; }
.score-num { font-size: 1.4rem; font-weight: 800; color: var(--ink); }
.score-label { font-size: 0.75rem; color: var(--muted); }
.warning-box { background: var(--gold-50); border: 1px solid var(--gold-200); border-radius: 12px; padding: 16px; }
.warning-title { font-weight: 700; color: var(--gold); }

/* Cookie consent banner (only rendered when GA_MEASUREMENT_ID is set) */
.consent-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.consent-banner[hidden] { display: none; }
.consent-banner p { flex: 1 1 260px; margin: 0; font-size: 0.88rem; line-height: 1.5; color: var(--ink-2); }
.consent-banner a { color: var(--brand); }
.consent-actions { display: flex; gap: 8px; }
