:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #5b6b82;
  --bg: #ffffff;
  --surface: #f5f8fc;
  --surface-2: #eaf1fa;
  --line: #dde5ef;
  --brand: #0a2a5e;
  --brand-2: #123d85;
  --accent: #2f80ed;
  --accent-ink: #1b5fc1;
  --good: #0f9d58;
  --warn: #c77700;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .18);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 100; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.brand-tld { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 18px; font-weight: 500; font-size: .95rem; }
.site-nav a { color: var(--ink-2); }
.site-nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: inherit; color: var(--ink); }
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 18px; gap: 4px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: none; margin-top: 8px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; background: var(--accent); color: #fff !important; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 600; line-height: 1.2; }
.btn:hover { background: var(--accent-ink); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--brand) !important; border-color: var(--brand); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-light { background: #fff; color: var(--brand) !important; }
.btn-light:hover { background: #eaf1fa; }
.btn-small { padding: 8px 14px; font-size: .9rem; border-radius: 8px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Hero */
.hero { background: radial-gradient(1200px 600px at 80% -10%, #1f4fa3 0%, transparent 60%), linear-gradient(135deg, #0a2a5e 0%, #0d3474 55%, #0a2a5e 100%); color: #fff; padding: clamp(56px, 8vw, 110px) 0; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M0 60h120M60 0v120' stroke='rgba(255,255,255,.05)' stroke-width='1'/%3E%3C/svg%3E"); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lede { font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); max-width: 62ch; color: #d9e6fb; }
.hero .eyebrow { color: #9cc4ff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-note { margin-top: 28px; color: #b9cff2; font-size: .9rem; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent-ink); margin-bottom: 12px; }

/* Sections */
.section { padding: clamp(48px, 6vw, 88px) 0; }
.section-alt { background: var(--surface); }
.section-tight { padding: clamp(32px, 4vw, 56px) 0; }
.section-head { max-width: 72ch; margin-bottom: 32px; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card .tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); background: var(--surface-2); padding: 3px 8px; border-radius: 999px; margin-bottom: 10px; }
.card-link { display: inline-block; margin-top: 8px; font-weight: 600; }
.kpi { border-left: 4px solid var(--accent); padding: 4px 0 4px 16px; }
.kpi .num { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; color: var(--brand); line-height: 1.1; }
.kpi .lab { color: var(--ink-2); font-size: .95rem; }
.kpi .src { font-size: .8rem; color: var(--muted); }
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 20px 20px 20px 64px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; }
.note { background: var(--surface-2); border-left: 4px solid var(--accent); padding: 14px 18px; border-radius: 8px; font-size: .95rem; }
.note-warn { border-left-color: var(--warn); background: #fff7e8; }
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--ink-2); }
.meta { color: var(--muted); font-size: .9rem; margin-bottom: 1.5em; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--surface-2); color: var(--brand); }
.pill-good { background: #e6f6ee; color: #0b6e3d; }
.pill-warn { background: #fff1dc; color: #8a4b00; }
.pill-info { background: #e8f0fe; color: #1b4fa8; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface); font-weight: 600; color: var(--ink-2); white-space: nowrap; position: sticky; top: 0; }
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-note { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.filter-row input, .filter-row select { font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* Pricing */
.price-grid { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .price-grid { grid-template-columns: 1fr; } }
.price { display: flex; flex-direction: column; }
.price .amount { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; color: var(--brand); }
.price .per { color: var(--muted); font-size: .9rem; }
.price ul { padding-left: 1.1em; margin: 12px 0 18px; color: var(--ink-2); font-size: .93rem; }
.price .btn { margin-top: auto; }
.price-featured { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 128, 237, .15), var(--shadow); }

/* Forms */
.form { display: grid; gap: 14px; max-width: 560px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.form input, .form select, .form textarea { font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status { min-height: 1.4em; font-size: .95rem; }
.form-status.ok { color: var(--good); }
.form-status.err { color: #b42318; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .choice-grid { grid-template-columns: 1fr; } }
.choice { border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; display: grid; gap: 4px; font-weight: 500; }
.choice input { width: auto; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--surface-2); }
.choice .small { font-weight: 400; }

/* Map */
.map-frame { height: min(70vh, 640px); min-height: 420px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.map-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .9rem; margin: 12px 0; color: var(--ink-2); }
.map-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; background: var(--c, #999); }
.map-side { display: grid; gap: 12px; }
.map-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
@media (max-width: 900px) { .map-layout { grid-template-columns: 1fr; } }
.maplibregl-popup-content { font-family: var(--font); font-size: .9rem; line-height: 1.45; padding: 12px 14px; border-radius: 8px; }
.maplibregl-popup-content b { color: var(--brand); }

/* Footer */
.site-footer { background: #0b1b3a; color: #c7d4ea; padding: 48px 0 40px; margin-top: 40px; }
.site-footer a { color: #dbe6f9; display: block; margin-bottom: 8px; }
.site-footer .brand-name { color: #fff; }
.site-footer .footer-tag { color: #fff; font-weight: 600; margin: 10px 0; }
.site-footer .muted { color: #93a7c8; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-h { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }

/* Utilities */
.flex { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; }
.center { text-align: center; }
.cta-band { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-radius: 16px; padding: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #d9e6fb; margin: 0; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
