:root {
  color-scheme: dark;
  --bg: #0a1018;
  --surface: #0e1723;
  --raised: #132030;
  --line: #253443;
  --soft-line: #1b2a38;
  --text: #eaf3fa;
  --muted: #9eb1c4;
  --dim: #7b90a6;
  --accent: #65efd0;
  --accent-hi: #9dfbe6;
  --gold: #f3c969;
  --ink: #071915;
  --warning: #ffce83;
  --danger: #ff8e8e;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, ui-monospace, monospace;
  --sans: "Segoe UI", "Helvetica Neue", system-ui, -apple-system, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
body { margin: 0; padding-bottom: 76px; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); }
a { color: var(--accent); text-underline-offset: .26em; }
a:hover { color: var(--accent-hi); }
button, select, input { font: inherit; }
button, select { cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, calc(100% - 56px)); margin-inline: auto; }
.skip { position: absolute; z-index: 40; top: 8px; left: 12px; padding: 8px 14px; background: var(--bg); border: 1px solid var(--accent); border-radius: 6px; transform: translateY(-180%); }
.skip:focus { transform: none; }

/* Header */
.masthead { position: sticky; z-index: 20; top: 0; background: rgba(10, 16, 24, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--soft-line); }
.topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 10px; color: var(--text); text-decoration: none; font-size: 18px; font-weight: 750; line-height: 1; letter-spacing: -.04em; }
.brand em { color: var(--muted); font-style: normal; font-size: 14px; font-weight: 450; letter-spacing: 0; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
.nav a, .footer-links a { color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 600; transition: color .15s ease; }
.nav a:hover, .nav a[aria-current="page"], .footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .5em; }

/* Buttons & CTA micro-triggers */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 20px; border: 1px solid transparent; border-radius: 8px; background: var(--accent); color: var(--ink); text-align: center; text-decoration: none; font-size: 14.5px; font-weight: 750; line-height: 1.25; transition: background .15s ease, border-color .15s ease, transform .12s ease; }
.button:hover { background: var(--accent-hi); color: var(--ink); transform: translateY(-1px); }
.button.secondary { background: #101c27; border-color: #314654; color: var(--text); }
.button.secondary:hover { border-color: var(--accent); color: var(--accent); background: #132230; }
.button.small { min-height: 38px; padding: 8px 14px; font-size: 13.5px; white-space: nowrap; }
.button .arrow { font-size: 15px; }
.cta-block { margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cta-meta { margin-top: 9px; color: var(--muted); font: 12px/1.4 var(--mono); letter-spacing: .01em; }
.cta-meta strong { color: var(--accent); font-weight: 650; }

/* Top Promo Strip */
.promo { background: #0d2220; border-bottom: 1px solid #21403b; }
.promo .wrap { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; min-height: 42px; padding-block: 6px; font-size: 13px; color: #c7dfd9; }
.promo strong { color: var(--accent); font: 700 12.5px var(--mono); white-space: nowrap; }
.promo-links { margin-left: auto; display: inline-flex; gap: 14px; align-items: center; }
.promo a { font-size: 12.5px; font-weight: 700; white-space: nowrap; }

/* Hero */
.hero { position: relative; border-bottom: 1px solid var(--soft-line); background: radial-gradient(ellipse at 86% 18%, #15313d 0%, transparent 56%), repeating-linear-gradient(90deg, transparent 0 59px, #19313a44 59px 60px), repeating-linear-gradient(0deg, transparent 0 59px, #19313a44 59px 60px), #0c1520; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .84fr); gap: clamp(26px, 5vw, 72px); align-items: center; min-height: 388px; padding-block: 42px 46px; }
.hero.single .hero-layout { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-block: 36px 40px; }
.hero.single .answer { max-width: 720px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; color: var(--muted); font: 12px/1.4 var(--mono); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.kicker, .panel-label { display: flex; align-items: center; gap: 8px; color: var(--accent); font: 650 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(101, 239, 208, .65); }
h1, h2, h3, p { margin: 0; }
h1 { margin-top: 12px; font-size: clamp(38px, 4.8vw, 66px); font-weight: 750; line-height: 1.02; letter-spacing: -.055em; text-wrap: balance; }
h1 span { color: var(--accent); }
.hero.single h1 { font-size: clamp(34px, 4.4vw, 56px); }
.answer { max-width: 580px; margin-top: 15px; color: #c4d4e2; font-size: clamp(16px, 1.55vw, 18.5px); line-height: 1.52; }

/* Quick Fact Pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid #284050; border-radius: 999px; background: rgba(16, 28, 39, .92); color: #cde0ee; font: 600 12px/1.25 var(--mono); }
.pill.live { border-color: #2c6d5c; background: #0f2c27; color: var(--accent); }
.pill.warn { border-color: #6b522a; background: #261e12; color: var(--gold); }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Interactive Hero Terminal */
.terminal { min-width: 0; overflow: hidden; border: 1px solid #30505b; border-radius: 12px; background: #0b151f; box-shadow: 0 18px 54px rgba(3, 8, 12, .55); }
.terminal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: #111f2b; border-bottom: 1px solid var(--line); }
.terminal-head a { font: 600 11.5px var(--mono); white-space: nowrap; }
.terminal-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--soft-line); color: var(--text); text-decoration: none; transition: background .14s ease; }
a.terminal-row:hover { background: #122434; }
a.terminal-row:hover b { color: var(--accent-hi); }
.terminal-row:last-child { border-bottom: 0; }
.glyph { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #2e4654; border-radius: 7px; background: #132635; color: #a9d8f6; font: 700 12px var(--mono); }
.glyph.green { background: #112b28; border-color: #2a5950; color: #8cebc9; }
.glyph.gold { background: #302719; border-color: #5d4a26; color: var(--gold); }
.terminal-row strong, .terminal-row small { display: block; }
.terminal-row strong { font: 650 13px/1.35 var(--mono); color: var(--text); }
.terminal-row small { color: var(--muted); font-size: 12px; }
.terminal-row b { color: var(--accent); font: 700 13px var(--mono); white-space: nowrap; }
.terminal-foot { padding: 11px 18px; background: #0d1925; border-top: 1px solid var(--soft-line); display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 11.5px var(--mono); color: var(--muted); }

/* Metrics Bar */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.metric { min-width: 0; padding: 16px 20px; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric span, .metric strong { display: block; }
.metric span { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.metric strong { color: var(--text); font: 700 clamp(18px, 2.5vw, 26px)/1.2 var(--mono); letter-spacing: -.04em; }

/* Main Content */
.content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 38px; padding-block: 34px 48px; }
.section-head { margin-bottom: 14px; }
h2 { font-size: clamp(23px, 3vw, 33px); letter-spacing: -.035em; line-height: 1.16; }
h3 { font-size: 16.5px; letter-spacing: -.015em; line-height: 1.28; }
p + p { margin-top: 10px; }
.section-head p, .prose, .note { max-width: 82ch; color: var(--muted); }
.section-head p { margin-top: 7px; }
.note { margin-top: 11px; font-size: 13px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; text-align: left; }
.wide { min-width: 700px; }
.medium { min-width: 540px; }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--soft-line); vertical-align: top; }
thead th { background: #142231; color: #bed0df; font: 650 11px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
tbody td, tbody th { font-size: 14px; }
tbody th { color: var(--text); font-weight: 650; }
tbody td { color: #c7d5e2; }
tbody tr:nth-child(even) { background: #101b27; }
tbody tr:last-child > * { border-bottom: 0; }
.number, .symbol { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.positive { color: var(--accent); font-weight: 650; }
.warning { color: var(--gold); font-weight: 650; }
.badge-tag { display: inline-block; padding: 2px 8px; border-radius: 5px; font: 650 11.5px var(--mono); background: #132833; color: var(--accent); border: 1px solid #264d4e; }
.badge-tag.restricted { background: #2c1e18; color: var(--warning); border-color: #63462c; }
.badge-tag.verify { background: #1c2434; color: #a9c6e8; border-color: #364b6b; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; padding: 17px 18px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
a.card { color: var(--text); text-decoration: none; transition: border-color .15s ease, background .15s ease; }
a.card:hover { border-color: var(--accent); background: #111e2d; }
.card p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.card .card-links { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; }
.card .card-link { display: inline-block; margin-top: 9px; color: var(--accent); font-size: 13px; font-weight: 650; }
.card .card-links .card-link { margin-top: 0; }

/* Media & Visual Infographics */
.visual-card { border: 1px solid var(--line); border-radius: 11px; background: var(--surface); overflow: hidden; }
.visual-card img { width: 100%; height: auto; }
.visual-caption { padding: 11px 16px; border-top: 1px solid var(--soft-line); background: #0c141e; color: var(--muted); font: 12px/1.45 var(--mono); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.embed-btn { padding: 4px 10px; border: 1px solid #2d4c5c; border-radius: 5px; background: #122130; color: var(--accent); font: 600 11px/1.3 var(--mono); transition: border-color .15s ease, background .15s ease; }
.embed-btn:hover { border-color: var(--accent); background: #14302d; }
.media-split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 18px; align-items: stretch; }
.media-frame { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.media-frame img { width: 100%; height: auto; object-fit: cover; }
.media-frame figcaption { padding: 11px 15px; font: 12px/1.4 var(--mono); color: var(--muted); border-top: 1px solid var(--soft-line); }

/* Steps */
.steps { margin: 0; padding-left: 22px; }
.steps li { padding: 10px 0 10px 6px; }
.steps li::marker { color: var(--accent); font: 700 13px var(--mono); }
.steps li + li { border-top: 1px solid var(--soft-line); }
.steps strong { color: var(--text); }

/* Interactive Calculators & Filters */
.calc { display: grid; grid-template-columns: .92fr 1.08fr; gap: 22px; align-items: start; padding: 20px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.controls, .filters { display: grid; gap: 12px; }
.field { display: grid; gap: 5px; color: #cbd9e5; font-size: 13px; font-weight: 650; }
.field input, .field select { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #3a5062; border-radius: 7px; background: #0a1420; color: var(--text); }
.field input:focus, .field select:focus { border-color: var(--accent); outline: none; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.picks button { min-height: 36px; padding: 6px 12px; border: 1px solid #375161; border-radius: 6px; background: #132331; color: var(--text); font: 650 12px var(--mono); }
.picks button:hover, .picks button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: #112a29; }
.outputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: 9px; background: var(--line); overflow: hidden; }
.outputs div { min-width: 0; padding: 14px 12px; background: #142331; }
.outputs span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.outputs output { display: block; overflow-wrap: anywhere; font: 700 clamp(16px, 2.2vw, 24px)/1.2 var(--mono); color: var(--text); }
.outputs output.positive { color: var(--accent); }
.calc-cta { margin-top: 14px; padding: 14px 16px; border: 1px solid #294e49; border-radius: 9px; background: #0e2220; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.calc-cta p { font-size: 13.5px; color: #d5eae5; max-width: 46ch; }
.filters { grid-template-columns: minmax(200px, 1.2fr) minmax(150px, .65fr) minmax(120px, .45fr); max-width: 760px; margin-bottom: 12px; }
.result-count { margin-bottom: 9px; color: var(--muted); font: 12px var(--mono); }

/* Country Checker */
.checker { padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); display: grid; gap: 14px; }
.checker-bar { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 10px; align-items: end; }
.checker-result { padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: #111d2a; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.checker-result p { font-size: 14px; color: #d2e0ec; max-width: 62ch; }

/* Bottom Verdict CTA */
.bottom { display: flex; gap: 22px; align-items: center; justify-content: space-between; padding: 24px; background: linear-gradient(117deg, #0f2922, #101d2b); border: 1px solid #2b544c; border-radius: 11px; }
.bottom h2 { font-size: clamp(20px, 2.4vw, 26px); }
.bottom p { margin-top: 6px; color: #b7ccdc; font-size: 14.5px; max-width: 58ch; }
.bottom-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.bottom-actions .cta-meta { margin-top: 2px; text-align: right; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 13px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--text); }
.faq details p { margin-top: 8px; max-width: 82ch; color: var(--muted); font-size: 14.5px; }

/* Sticky Bottom CTA Bar */
.sticky-cta { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: rgba(11, 21, 31, .97); backdrop-filter: blur(10px); border-top: 1px solid #294d48; box-shadow: 0 -8px 28px rgba(0, 0, 0, .45); transition: transform .2s ease; }
.sticky-cta.is-hidden { transform: translateY(110%); pointer-events: none; }
.sticky-cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding-block: 8px; }
.sticky-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; }
.sticky-info strong { font-size: 14px; color: var(--text); }
.sticky-info span { font: 12px var(--mono); color: var(--accent); }
.sticky-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sticky-close { width: 32px; height: 32px; border: 1px solid #2c4152; border-radius: 6px; background: #101c28; color: var(--muted); font-size: 16px; line-height: 1; display: grid; place-items: center; }
.sticky-close:hover { border-color: var(--accent); color: var(--text); }

/* Footer */
.footer { padding: 24px 0 28px; border-top: 1px solid var(--line); background: #080e15; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-legal { margin-top: 14px; color: var(--dim); font-size: 11.5px; line-height: 1.45; }

/* Responsive */
@media (max-width: 960px) {
  .wrap { width: calc(100% - 40px); }
  .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 112px; }
  body { padding-bottom: 84px; }
  .wrap { width: calc(100% - 32px); }
  .topline { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: auto; gap: 6px 10px; padding-block: 9px 8px; }
  .topline > .button { grid-column: 2; grid-row: 1; }
  .nav { grid-column: 1 / -1; gap: 4px 12px; }
  .nav a { font-size: 12.5px; min-height: 26px; display: inline-flex; align-items: center; }
  .hero-layout { grid-template-columns: 1fr; padding-block: 28px 28px; gap: 22px; min-height: auto; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { padding: 12px 14px; }
  .metric:nth-child(3) { border-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .content { gap: 28px; padding-block: 24px 36px; }
  .calc, .cards, .cards.two, .cards.four, .filters, .checker-bar { grid-template-columns: 1fr; }
  .calc { padding: 15px; gap: 16px; }
  .bottom, .footer-top { flex-direction: column; align-items: flex-start; }
  .bottom-actions { align-items: flex-start; }
  .bottom-actions .cta-meta { text-align: left; }
  .bottom { gap: 14px; padding: 18px; }
  .sticky-info span { display: none; }
  th, td { padding: 10px 12px; }
}
@media (max-width: 420px) {
  .actions .button { width: 100%; }
  .outputs div { padding: 11px 8px; }
  .sticky-cta .wrap { gap: 8px; }
  .sticky-info strong { font-size: 12.5px; }
}
