:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.6rem, 1.2rem + 1.5vw, 2.5rem);
  --text-hero: clamp(2.3rem, 1.4rem + 3.6vw, 4.25rem);
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.25rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem; --space-16: 4rem; --space-24: 6rem;

  --bg: #f2f4f6;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --border: #dde2e8;
  --divider: #e8ecf0;
  --ink: #0f1c2a;
  --muted: #586776;
  --faint: #8d99a6;
  --navy: #0d1b2a;
  --navy-2: #12324f;
  --brand: #4eaeda;
  --brand-ink: #1b74a0;
  --focus: #2f7fd6;

  --g-elite: #0f8a5f;
  --g-strong: #1f7aa8;
  --g-adequate: #b7791f;
  --g-limited: #c2452d;

  --font-display: 'Cabinet Grotesk', 'Satoshi', system-ui, sans-serif;
  --font-body: 'Satoshi', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15,28,42,.05), 0 4px 16px rgba(15,28,42,.06);
  --shadow-lg: 0 2px 4px rgba(13,27,42,.08), 0 18px 48px rgba(13,27,42,.22);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: var(--text-base); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
sup { font-size: .55em; line-height: 0; vertical-align: super; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.mono { font-family: var(--font-mono); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Buttons */
.btn-accent, .btn-primary, .btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; font-weight: 700; text-decoration: none; border: 1px solid transparent; transition: background .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn-accent { background: var(--brand); color: var(--navy); padding: 14px 22px; font-size: var(--text-sm); }
.btn-accent:hover { background: #6cc0e6; }
.btn-accent:active { transform: translateY(1px); }
.btn-primary { background: var(--navy-2); color: #fff; padding: 0 18px; font-size: var(--text-sm); }
.btn-primary:hover { background: var(--navy); }
.btn-sm { padding: 9px 14px; font-size: .875rem; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar-inner { display: flex; align-items: center; gap: var(--space-6); height: 64px; }
.brand img { height: 32px; width: auto; }
@media (max-width: 760px) { .brand img { height: 28px; } }
.nav { display: flex; gap: var(--space-5); margin-left: auto; }
.nav a { text-decoration: none; font-size: .9rem; color: rgba(255,255,255,.78); font-weight: 500; }
.nav a:hover { color: #fff; }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; margin-left: auto; padding: 10px; flex-direction: column; justify-content: center; gap: 6px; }
.menu-btn span { display: block; height: 2px; background: #fff; border-radius: 2px; }
.mnav { display: flex; flex-direction: column; padding: var(--space-2) clamp(1rem, 4vw, 2rem) var(--space-4); background: var(--navy); }
.mnav[hidden] { display: none; }
.mnav a { padding: 12px 0; text-decoration: none; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.88); }
@media (max-width: 1020px) { .nav, .nav-cta { display: none; } .menu-btn { display: flex; } }

/* Hero */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { position: absolute; right: 0; top: 0; height: 100%; width: 62%; object-fit: cover; object-position: 50% 30%; opacity: .75; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 38%, rgba(13,27,42,.82) 60%, rgba(13,27,42,.35) 100%), linear-gradient(0deg, var(--navy) 0%, transparent 30%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3rem, 8vw, 6rem); min-height: min(86vh, 820px); }
.hero h1 { font-size: var(--text-hero); font-weight: 800; letter-spacing: -0.025em; }
.hero .lede { margin-top: var(--space-6); font-size: var(--text-lg); line-height: 1.4; color: #fff; font-weight: 500; max-width: 34ch; }
.hero-body { margin-top: var(--space-4); color: rgba(255,255,255,.74); max-width: 52ch; }
.hero-ctas { margin-top: var(--space-8); display: flex; gap: var(--space-3); flex-wrap: wrap; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; min-height: 0; } .hero-bg img { width: 100%; opacity: .35; } .hero-bg::after { background: linear-gradient(180deg, rgba(13,27,42,.7), var(--navy) 70%); } }

/* Lookup card */
.lookup { color: var(--ink); padding: var(--space-5); box-shadow: var(--shadow-lg); border: 0; }
.lookup-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.lookup-head h2 { font-size: 1.25rem; font-weight: 700; }
.pill { font-size: .75rem; font-weight: 700; color: var(--g-elite); background: #e5f4ee; padding: 4px 10px; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.search { position: relative; display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; height: 48px; padding: 0 14px 0 40px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); font-size: 1rem; }
.search input:focus { outline: none; border-color: var(--focus); background: #fff; box-shadow: 0 0 0 3px rgba(47,127,214,.15); }
.search-icon { position: absolute; left: 13px; top: 15px; width: 18px; height: 18px; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; }
.suggest { position: absolute; left: 0; right: 0; top: 52px; z-index: 20; list-style: none; margin: 0; padding: 4px; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-lg); }
.suggest li { padding: 9px 10px; border-radius: 6px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--surface-2); }
.suggest .s-meta { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest mark { background: none; color: var(--brand-ink); font-weight: 700; }
.suggest .s-empty { color: var(--muted); cursor: default; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-3); align-items: center; }
.chips-label { font-size: .8rem; color: var(--muted); margin-right: 2px; }
.chip { font-size: .8rem; border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 5px 11px; color: var(--ink); }
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--navy-2); color: #fff; border-color: var(--navy-2); }
.result { margin-top: var(--space-5); min-height: 292px; }

.trace { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.trace li { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; font-size: .875rem; color: var(--faint); }
.trace .dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--border); }
.trace li.active { color: var(--ink); } .trace li.active .dot { border-color: var(--focus); animation: pulse 1s infinite; }
.trace li.done { color: var(--ink); } .trace li.done .dot { background: var(--g-elite); border-color: var(--g-elite); }
.trace .t-meta { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); text-align: right; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgba(47,127,214,.2); } }

.res-top { display: grid; grid-template-columns: 132px 1fr; gap: var(--space-5); align-items: center; }
.gauge { position: relative; width: 132px; height: 132px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .track { stroke: var(--divider); }
.gauge .arc { stroke: var(--c); transition: stroke-dashoffset .9s cubic-bezier(.2,.8,.2,1); }
.gauge-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge-num b { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.gauge-num span { font-size: .72rem; color: var(--muted); }
.grade { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.res-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-top: 2px; }
.res-addr { color: var(--muted); font-size: .875rem; }
.res-verdict { margin-top: 6px; font-size: .9rem; }
.res-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: var(--space-5); }
.tile { background: var(--surface-2); border: 1px solid var(--divider); border-radius: 8px; padding: 10px 12px; }
.tile .k { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.tile .v { font-weight: 700; font-size: 1.05rem; margin-top: 2px; font-variant-numeric: tabular-nums; }
.res-foot { margin-top: var(--space-4); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.res-foot a { color: var(--brand-ink); font-weight: 700; text-decoration: none; }
.res-foot a:hover { text-decoration: underline; }
@media (max-width: 480px) { .res-top { grid-template-columns: 104px 1fr; gap: var(--space-4); } .gauge { width: 104px; height: 104px; } .gauge-num b { font-size: 2rem; } .res-tiles { grid-template-columns: 1fr 1fr; } .res-tiles .tile:last-child { grid-column: span 2; } .search button { padding: 0 14px; } }

/* Sections */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section.alt { background: var(--surface); border-block: 1px solid var(--divider); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.two-col.rev > .copy { order: 2; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } .two-col.rev > .copy { order: 0; } }
.h-section { font-size: var(--text-xl); font-weight: 800; }
.sub { margin-top: var(--space-4); font-size: var(--text-lg); font-weight: 600; color: var(--brand-ink); line-height: 1.35; }
.body { margin-top: var(--space-4); color: var(--muted); max-width: 54ch; }
.copy.center { text-align: center; max-width: 760px; margin: 0 auto; }
.copy.center .body { margin-inline: auto; }
.light, .light .body { color: rgba(255,255,255,.78); }
.light .h-section, .h-section.light { color: #fff; }
.light .sub, .sub.light { color: var(--brand); }

/* Listing mock */
.listing { overflow: hidden; }
.listing-img { height: 170px; background: url(assets/hero.jpg) center 35% / cover; position: relative; }
.listing-img .tag { position: absolute; left: 12px; top: 12px; background: rgba(13,27,42,.82); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.listing-body { padding: var(--space-5); }
.listing-body h3 { font-size: 1.25rem; }
.listing-body .addr { color: var(--muted); font-size: .875rem; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: var(--space-4); border: 1px solid var(--divider); border-radius: 10px; overflow: hidden; }
.fact { padding: 10px 12px; border-right: 1px solid var(--divider); }
.fact:last-child { border-right: 0; }
.fact .k { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.fact .v { font-weight: 700; margin-top: 2px; font-size: .95rem; }
.fact.hl { background: #eef7fc; position: relative; }
.fact.hl::before { content: ""; position: absolute; inset: 0; border: 2px solid var(--brand); border-radius: 0 10px 10px 0; pointer-events: none; }
.fact.hl .v { display: flex; align-items: center; gap: 6px; }
.fact.hl .v i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.fact .v small { font-weight: 500; color: var(--muted); font-size: .75rem; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr 1fr; } .fact:nth-child(2) { border-right: 0; } .fact:nth-child(-n+2) { border-bottom: 1px solid var(--divider); } .fact.hl::before { border-radius: 0 0 10px 0; } }

/* Compare */
.compare { padding: var(--space-5); }
.compare h3, .quote h3, .agnostic h3, .feed h3 { font-family: var(--font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.cmp-list { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: 12px; }
.cmp-list li { display: grid; grid-template-columns: minmax(0, 1.2fr) 2fr 36px; gap: 12px; align-items: center; font-size: .9rem; }
.cmp-list .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-list li.me .n { font-weight: 700; }
.cmp-bar { height: 10px; background: var(--divider); border-radius: 99px; overflow: hidden; }
.cmp-bar i { display: block; height: 100%; width: var(--w); background: var(--c); border-radius: 99px; transition: width .7s cubic-bezier(.2,.8,.2,1); }
.cmp-list b { font-variant-numeric: tabular-nums; text-align: right; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--divider); font-size: .78rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* Feeds */
.feed-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-top: var(--space-12); }
@media (max-width: 960px) { .feed-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .feed-grid { grid-template-columns: 1fr; } }
.feed { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.feed .fv { min-height: 96px; display: flex; align-items: center; }
.feed .big { font-family: var(--font-display); font-size: 3rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.feed .big small { font-family: var(--font-body); font-size: .9rem; color: var(--muted); font-weight: 500; margin-left: 6px; }
.mini-gauge { width: 84px; height: 84px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--divider) 0); display: grid; place-items: center; }
.mini-gauge b { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.6rem; }
.techs { display: flex; flex-wrap: wrap; gap: 6px; }
.techs span { font-size: .8rem; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--divider); border-radius: 999px; padding: 4px 10px; background: var(--surface-2); }
.techs i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.kv { margin: 0; display: grid; gap: 6px; font-size: .8rem; width: 100%; }
.kv div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--divider); padding-bottom: 4px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; text-align: right; }
.feed p { font-size: .9rem; color: var(--muted); }
.feed-src { margin-top: var(--space-6); text-align: center; font-size: .8rem; color: var(--muted); }

/* Quote */
.quote { padding: var(--space-5); }
.quote-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.quote-head .addr { font-size: .8rem; color: var(--muted); }
.carriers { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: 8px; }
.carriers label { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--divider); border-radius: 8px; cursor: pointer; transition: border-color .15s, background .15s; }
.carriers label:hover { border-color: var(--brand); }
.carriers input { width: 18px; height: 18px; accent-color: var(--navy-2); margin: 0; }
.carriers input:checked + .c-name { font-weight: 700; }
.carriers label:has(input:checked) { background: #eef7fc; border-color: var(--brand); }
.c-name small { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; }
.c-speed { font-size: .85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.quote-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: var(--space-4); flex-wrap: wrap; }
.quote-foot .btn-primary { height: 44px; }
.quote-foot .btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.quote-count { font-size: .85rem; color: var(--muted); }
.quote-done { margin-top: var(--space-4); padding: 12px 14px; background: #e5f4ee; color: #0b5e41; border-radius: 8px; font-size: .9rem; font-weight: 500; }

/* Revenue flow */
.flow { list-style: none; margin: 0; padding: var(--space-5); display: grid; gap: 0; }
.flow li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; padding: 14px 0; position: relative; }
.flow li + li::before { content: ""; position: absolute; left: 19px; top: -14px; height: 28px; width: 2px; background: var(--divider); }
.f-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); font-weight: 700; font-family: var(--font-display); position: relative; z-index: 1; }
.flow small { display: block; color: var(--muted); font-size: .875rem; }
.f-end .f-n { background: var(--brand); border-color: var(--brand); color: var(--navy); }
.f-end { background: #eef7fc; border-radius: 10px; padding-inline: 12px !important; margin-inline: -12px; }
.f-end::before { left: 31px !important; }

/* Agnostic */
.agnostic { padding: var(--space-5); }
.ag-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ag-head .addr { font-size: .8rem; color: var(--muted); }
.cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-4); }
.cloud span { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--divider); background: var(--surface-2); border-radius: 8px; padding: 7px 11px; font-size: .875rem; }
.cloud i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.cloud em { font-style: normal; color: var(--muted); font-size: .78rem; }
.ag-foot { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--divider); display: flex; gap: 14px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.ag-foot span { display: inline-flex; align-items: center; gap: 6px; }
.ag-foot i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* API */
.mode { display: inline-flex; margin-top: var(--space-6); border: 1px solid var(--border); border-radius: 8px; padding: 3px; background: var(--surface); }
.mode-btn { border: 0; background: none; padding: 8px 14px; border-radius: 6px; font-size: .875rem; font-weight: 600; color: var(--muted); }
.mode-btn.on { background: var(--navy-2); color: #fff; }
.badge-demo { margin-top: var(--space-4); }
.sbadge { display: inline-flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.sbadge .sb-n { width: 44px; height: 44px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.sbadge .sb-t { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.sbadge .sb-t b { display: block; color: var(--ink); font-size: .95rem; }
.sbadge.white { border-radius: 4px; border-color: #c9d1da; box-shadow: none; }
.sbadge.white .sb-n { border-radius: 4px; background: #3d4a5c; }
.dark-card { background: #0b1622; border-color: #1c2b3c; color: #d7e2ee; overflow: hidden; min-width: 0; }
.code-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #1c2b3c; font-size: .75rem; color: #8fa3b8; min-width: 0; }
.code-head .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dots { display: flex; gap: 6px; flex: none; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a3b4f; }
.code pre { margin: 0; padding: 16px; font-size: .78rem; line-height: 1.6; overflow: auto; max-height: 440px; }
.code .k { color: #7fc8ec; } .code .s { color: #b5e0a8; } .code .n { color: #f2c27b; }

/* Coverage */
.coverage { position: relative; background: var(--navy); color: #fff; padding-block: clamp(5rem, 11vw, 8rem); overflow: hidden; }
.coverage-bg { position: absolute; inset: 0; }
.coverage-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.coverage-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(13,27,42,.55), rgba(13,27,42,.92) 75%); }
.coverage .wrap { position: relative; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-12); max-width: 900px; margin-inline: auto; }
.stat { text-align: center; padding: var(--space-6) var(--space-4); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(13,27,42,.55); backdrop-filter: blur(6px); }
.stat b { font-family: var(--font-display); font-size: clamp(2.4rem, 1.6rem + 3vw, 3.75rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.stat > span { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 2vw, 2.5rem); font-weight: 800; color: var(--brand); }
.stat small { display: block; margin-top: 8px; font-size: .875rem; color: rgba(255,255,255,.72); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }

/* Model */
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-12); counter-reset: m; }
@media (max-width: 760px) { .model-grid { grid-template-columns: 1fr; } }
.model { padding: var(--space-6); position: relative; }
.m-n { font-family: var(--font-mono); font-size: .8rem; color: var(--brand-ink); font-weight: 500; }
.model b { display: block; font-family: var(--font-display); font-size: 1.35rem; margin-top: var(--space-3); line-height: 1.15; }
.m-who { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--divider); font-size: .875rem; color: var(--muted); }
.m-who span { font-weight: 700; color: var(--ink); }

/* CTA */
.cta { background: var(--navy); color: #fff; }
.form { padding: var(--space-6); display: grid; gap: var(--space-4); color: var(--ink); box-shadow: var(--shadow-lg); border: 0; }
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; }
.field input { height: 46px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
.field input:focus { outline: none; border-color: var(--focus); background: #fff; box-shadow: 0 0 0 3px rgba(47,127,214,.15); }
.field input[aria-invalid="true"] { border-color: var(--g-limited); }
.form .btn-accent { width: 100%; white-space: normal; }
.form-msg { font-size: .875rem; min-height: 1.2em; }
.form-msg.err { color: var(--g-limited); } .form-msg.ok { color: var(--g-elite); font-weight: 600; }

/* Footer */
.footer { background: #08121d; color: rgba(255,255,255,.6); padding-block: var(--space-10); font-size: .8rem; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-8); align-items: center; }
.footer img { height: 24px; width: auto; opacity: .9; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: var(--space-4); } }

/* fixes */
.hero-grid > *, .two-col > * { min-width: 0; }
.hero h1 { font-size: clamp(2.2rem, 1.3rem + 3vw, 3.75rem); }
.hero-grid { grid-template-columns: 1.1fr 1fr; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }
.result { min-height: 250px; }

/* Quote comparison */
.quote-hint { margin: 6px 0 0; font-size: .82rem; color: var(--muted); }
.carriers label.off { opacity: .45; cursor: not-allowed; }
.carriers label.off:hover { border-color: var(--divider); }
.qt { margin-top: var(--space-4); border: 1px solid var(--divider); border-radius: 10px; overflow: hidden; animation: qtIn .35s ease; }
@keyframes qtIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.qt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 12px 14px; background: var(--navy, #0d1b2a); color: #fff; }
.qt-head b { font-size: .95rem; }
.qt-head span { font-size: .78rem; color: rgba(255,255,255,.7); }
.qt-scroll { overflow-x: auto; }
.qt table { width: 100%; border-collapse: collapse; font-size: .82rem; min-width: 440px; }
.qt th, .qt td { padding: 9px 12px; text-align: left; vertical-align: top; border-top: 1px solid var(--divider); }
.qt thead th { border-top: 0; background: #eef7fc; font-weight: 700; color: var(--ink, #0d1b2a); }
.qt tbody th { font-weight: 600; color: var(--muted); white-space: nowrap; width: 1%; }
.qt td { font-variant-numeric: tabular-nums; }
.qt tbody tr:nth-child(even) td, .qt tbody tr:nth-child(even) th { background: #f8fafc; }
.qt-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: .68rem; font-weight: 700; background: #e3f1fa; color: var(--brand-ink, #1b74a0); white-space: nowrap; }
.qt-tag.green { background: #e5f4ee; color: #0b5e41; }
.qt-note { margin: 0; padding: 10px 14px; font-size: .74rem; color: var(--muted); border-top: 1px solid var(--divider); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.qt table { table-layout: fixed; min-width: 0; font-size: .8rem; }
.qt th, .qt td { padding: 8px 10px; overflow-wrap: anywhere; }
.qt tbody th, .qt thead th:first-child { width: 96px; white-space: normal; overflow-wrap: normal; }
.qt-tag { margin: 4px 0 0; }
@media (max-width: 560px) { .qt table { min-width: 480px; } }
.score-row { display: flex; align-items: center; gap: 12px; }
.grade-lbl { font-weight: 700; font-size: .95rem; color: var(--c); padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, white); }

/* Map section */
.mapsec .copy.center { margin-bottom: var(--space-8); }
.map-card { padding: 0; overflow: hidden; }
.map-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--divider); }
.map-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.mf { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--divider); background: #fff; font: inherit; font-size: .8rem; font-weight: 600; color: var(--ink, #0d1b2a); cursor: pointer; }
.mf i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.mf span { color: var(--muted); font-weight: 500; }
.mf:hover { border-color: var(--brand); }
.mf.on { background: var(--navy-2); color: #fff; border-color: var(--navy-2); }
.mf.on span { color: rgba(255,255,255,.75); }
.map-src { font-size: .75rem; color: var(--muted); }
.map-body { position: relative; }
#map { height: min(560px, 70vh); width: 100%; background: #e9edf0; }
.map-na { padding: 1rem; color: var(--muted); }
.map-panel { position: absolute; left: 16px; bottom: 16px; width: 300px; background: #fff; border-radius: 12px; box-shadow: 0 8px 28px rgba(13,27,42,.18); padding: 16px; z-index: 3; }
.mp-top { display: flex; gap: 12px; align-items: center; }
.mp-score { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.mp-name { font-weight: 700; margin-top: 2px; line-height: 1.25; }
.mp-addr { font-size: .78rem; color: var(--muted); }
.mp-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 12px 0 10px; }
.mp-kv dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.mp-kv dd { margin: 0; font-weight: 700; font-size: .88rem; }
.mp-link { font-size: .82rem; font-weight: 700; color: var(--brand-ink); text-decoration: none; }
.mp-link:hover { text-decoration: underline; }
.mk { width: 32px; height: 32px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 12px; border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); cursor: pointer; padding: 0; transition: transform .15s; }
.mk:hover { transform: scale(1.12); }
.compact .mk:not(.sel) { width: 15px; height: 15px; font-size: 0; border-width: 2px; }
.mk.sel { width: 44px; height: 44px; font-size: 15px; box-shadow: 0 0 0 4px rgba(18,50,79,.25), 0 2px 8px rgba(0,0,0,.3); }
.mk-inner { position: relative; }
.mk-label { position: absolute; left: 50%; top: calc(100% + 4px); transform: translateX(-50%); background: var(--navy); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 4px; white-space: nowrap; font-weight: 600; pointer-events: none; }
.mk-wrap.dim .mk-inner { opacity: .15; filter: grayscale(.7); pointer-events: none; }
@media (max-width: 760px) {
  #map { height: 380px; }
  .map-panel { position: static; width: auto; box-shadow: none; border-top: 1px solid var(--divider); border-radius: 0; }
}
.qt thead th { vertical-align: middle; height: 56px; background: #fff; border-bottom: 1px solid var(--divider); }
.qt-logo { display: block; height: 26px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.field textarea { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); resize: vertical; min-height: 84px; }
.field textarea:focus { outline: none; border-color: var(--focus); background: #fff; box-shadow: 0 0 0 3px rgba(47,127,214,.15); }
.field .opt { font-weight: 400; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form-msg.err a { color: inherit; text-decoration: underline; }
.form .btn-accent:disabled { opacity: .7; cursor: wait; }
