/* LicenceMap - data-terminal design system (redesign pack, dark-first) */
:root {
  /* surfaces */
  --bg-page: #0B1120;
  --bg-band-alt: rgba(255,255,255,.012);
  --surface-card: #0E1729;
  --surface-deep: #0A1122;
  --surface-footer: #080D1A;
  --grid-line: rgba(255,255,255,.03);
  --bg-panel: #0A1122;
  --bg-panel-globe: #090F1E;
  --bg-card-dark: #0E1729;
  --sphere-fill: #0A1122;
  /* brand blue */
  --blue-600: #2563EB;
  --blue-400: #60A5FA;
  --blue-300: #93C5FD;
  --blue-700: #1D4ED8;
  --blue-050: #DBEAFE;
  /* text */
  --text-050: #F8FAFC;
  --text-100: #F1F5F9;
  --text-200: #E2E8F0;
  --text-300: #CBD5E1;
  --text-mute: #94A3B8;
  --text-dot: #7C8BA5;
  --text-dim: #64748B;
  --text-fnt: #475569;
  /* status */
  --emerald: #34D399;
  --amber: #FBBF24;
  --red: #F87171;
  /* lines */
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.12);
  /* legacy aliases kept for templates */
  --navy: var(--text-050);
  --ink: var(--text-200);
  --slate: var(--text-mute);
  --line: var(--border);
  --green: var(--emerald);
  --gold: var(--blue-600);
  --gold-dark: var(--blue-700);
  --radius: 9px;
  --radius-card: 14px;
  --shadow: 0 24px 60px rgba(0,0,0,.4);
  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ui: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-ui); color: var(--text-300); line-height: 1.55; font-size: 15.5px;
  background: var(--bg-page);
  background-image:
    radial-gradient(1100px 620px at 12% -4%, rgba(37,99,235,.20), transparent 62%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: auto, 46px 46px, 46px 46px;
  background-attachment: fixed;
}
h1, h2, h3, .price { font-family: var(--font); color: var(--text-050); line-height: 1.08; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); letter-spacing: -1.2px; margin: 0 0 .55em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -1.1px; margin: 0 0 .7em; }
h3 { font-size: 1.18rem; font-weight: 600; color: var(--text-100); margin: 0 0 .5em; }
a { color: var(--blue-400); }
a:hover { color: var(--blue-300); }
p { margin: 0 0 1em; }
img { max-width: 100%; }
code { font-family: var(--font-mono); font-size: .85em; background: rgba(255,255,255,.06); border-radius: 4px; padding: 1px 5px; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 40px; }
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--text-mute); }
.small { font-size: .85rem; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--surface-card); color: var(--text-100); padding: 8px; z-index: 100; border-radius: 6px; }

/* Eyebrow */
.eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-400); margin: 0 0 1em; }

/* Header */
.site-header { background: rgba(11,17,32,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.nav-row { display: flex; align-items: center; justify-content: space-between; min-height: 58px; gap: 16px; padding-top: 4px; padding-bottom: 4px; }
.brand { font-family: var(--font-mono); font-size: 19px; font-weight: 700; color: var(--text-050); text-decoration: none; letter-spacing: -.5px; display: inline-flex; align-items: center; }
.brand span { color: var(--blue-400); }
.brand:hover { color: var(--text-050); }
.logo-mark { display: inline-grid; grid-template-columns: 9px 9px; gap: 3px; margin-right: 11px; }
.logo-mark i { width: 9px; height: 9px; border-radius: 2px; background: #334155; }
.logo-mark i:first-child, .logo-mark i:last-child { background: var(--blue-600); }
.admin-tag { color: var(--amber); font-style: normal; font-size: .72rem; border: 1px solid var(--amber); border-radius: 4px; padding: 1px 6px; margin-left: 8px; vertical-align: middle; letter-spacing: .05em; }
.main-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.main-nav a { color: var(--text-mute); text-decoration: none; font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.main-nav a:hover, .main-nav a.active { color: var(--text-050); }
.main-nav .btn { text-transform: none; letter-spacing: 0; font-family: var(--font); }
.nav-toggle { display: none; background: none; border: none; color: var(--text-100); font-size: 1.5rem; cursor: pointer; }

/* Compliance bar */
.topbar-disclaimer { background: rgba(37,99,235,.06); border-bottom: 1px solid rgba(37,99,235,.14); color: var(--text-mute); font-size: 12px; text-align: center; padding: 8px 16px; }
.topbar-disclaimer a { color: var(--blue-400); }

/* Buttons */
.btn { display: inline-block; border-radius: var(--radius); padding: 10px 20px; font-size: .92rem; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: all .15s; font-family: var(--font); }
.btn-primary { background: var(--blue-600); color: #fff; border-color: var(--blue-600); box-shadow: 0 10px 26px rgba(37,99,235,.42); }
.btn-primary:hover { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.btn-outline { background: transparent; color: var(--text-200); border-color: rgba(255,255,255,.18); }
.btn-outline:hover { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost { background: none; color: var(--text-mute); border-color: transparent; }
.btn-ghost:hover { color: var(--text-100); }
.btn-danger { background: #B91C1C; color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .84rem; }
.btn-lg { padding: 14px 28px; font-size: 1.02rem; }
button.btn { font-family: var(--font); }

/* Hero terminal */
.hero-terminal { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.ht-grid { display: grid; gap: 40px; align-items: center; padding: 56px 0 72px; }
.ht-atlas { grid-template-columns: 422px 1fr; }
.ht-globe { grid-template-columns: 1fr 396px; }
.ht-globe .ht-text { order: 2; }
.ht-globe .ht-map { order: 1; }
.ht-map { position: relative; }
.ht-eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-400); margin-bottom: 1.1em; }
.ht-h1 { font-family: var(--font); font-weight: 700; font-size: clamp(32px, 3.9vw, 47px); letter-spacing: -1.5px; line-height: 1.03; color: var(--text-050); margin: 0 0 .5em; }
.ht-h1 .accent { color: var(--blue-400); }
.ht-sub { font-family: var(--font-ui); font-size: 15.5px; line-height: 1.55; color: var(--text-mute); max-width: 46ch; margin-bottom: 1.6em; }
.ht-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 1.2em; }
.ht-btn { font-family: var(--font); font-weight: 600; font-size: 14px; padding: 12px 22px; border-radius: 9px; text-decoration: none; display: inline-block; }
.ht-btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 10px 26px rgba(37,99,235,.42); }
.ht-btn-primary:hover { background: var(--blue-700); color: #fff; }
.ht-btn-ghost { color: var(--text-200); border: 1px solid rgba(255,255,255,.18); }
.ht-btn-ghost:hover { border-color: rgba(255,255,255,.35); color: #fff; }
.ht-caption { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }

/* Map panels */
.map-panel { position: relative; border-radius: 14px; border: 1px solid rgba(255,255,255,.09); overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.5); background: var(--surface-deep) radial-gradient(420px 300px at 50% 40%, rgba(37,99,235,.16), transparent 70%); height: 500px; }
.map-panel-globe { height: 512px; background-color: var(--bg-panel-globe); }
.map-panel-coverage { height: 452px; }
.map-panel canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-failed canvas, .map-failed .map-hint { display: none; }
.map-failed::after { content: 'Live map unavailable, see the matrix'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.map-tag { position: absolute; top: 14px; left: 16px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; color: var(--text-dot); display: flex; align-items: center; gap: 7px; }
.live-dot, .hint-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); display: inline-block; }
.live-dot { animation: livepulse 2s infinite; }
@keyframes livepulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.map-hint { position: absolute; bottom: 14px; right: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--text-dot); background: rgba(2,8,20,.8); border: 1px solid var(--border); border-radius: 20px; padding: 6px 12px; display: flex; align-items: center; gap: 7px; }
/* Readout docks bottom-left, minimised to a slim bar by default (so Mexico
   stays visible). It expands on tap, or automatically on marker click. */
.map-readout { position: absolute; bottom: 14px; left: 16px; width: 244px; background: rgba(14,23,41,.94); border: 1px solid var(--border-strong); border-radius: 9px; padding: 10px 12px; backdrop-filter: blur(4px); transition: width .15s ease; }
.map-readout .ro-row { padding: 5px 0; }
.map-readout .ro-cta { margin-top: 7px; font-size: 11.5px; }
.map-readout.ro-min { width: auto; padding: 7px 10px; cursor: pointer; }
.ro-min .ro-head { padding-bottom: 0; }
.ro-toggle { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; gap: 1px; padding: 3px 4px; margin-left: 2px; }
.ro-toggle .chev { width: 7px; height: 7px; border-left: 2px solid var(--blue-400); border-top: 2px solid var(--blue-400); transform: rotate(45deg); transition: transform .15s; }
.map-readout:not(.ro-min) .ro-toggle .chev { transform: rotate(225deg); }
.ro-min .ro-toggle .chev { animation: chevpulse 1.2s infinite; }
.ro-min .ro-toggle .chev:nth-child(2) { animation-delay: .35s; }
@keyframes chevpulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ro-min .ro-toggle .chev { animation: none; opacity: .8; } }
.readout-table .ro-toggle { display: none; }
.readout-table { position: static; width: 100%; max-width: 340px; margin-top: 22px; background: var(--surface-card); }
.ro-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; }
.ro-code, .code-badge { font-family: var(--font-mono); font-weight: 700; font-size: 12px; color: var(--text-050); background: rgba(255,255,255,.07); border-radius: 4px; padding: 2px 6px; }
.ro-name { font-family: var(--font-ui); font-weight: 600; font-size: 13px; color: var(--text-200); text-decoration: none; flex: 1; }
.ro-name:hover { color: #fff; }
.ro-tier { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; display: flex; align-items: center; gap: 5px; }
.ro-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.ro-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 1px solid rgba(96,165,250,.14); padding: 6.5px 0; }
.ro-row span { font-family: var(--font-ui); font-size: 11.5px; color: var(--text-dot); }
.ro-row b { font-family: var(--font-mono); font-weight: 600; font-size: 12.5px; color: var(--text-200); text-align: right; }
.ro-lock { color: var(--amber); font-size: 11px; }
.ro-cta { display: inline-block; margin-top: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--blue-400); text-decoration: none; }
.sr-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; padding: 0; list-style: none; }
.sr-list:focus-within { position: static; width: auto; height: auto; clip: auto; display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 0; }
.sr-list button { font-family: var(--font-mono); font-size: 11px; background: var(--surface-card); color: var(--text-200); border: 1px solid var(--border-strong); border-radius: 6px; padding: 4px 8px; cursor: pointer; }

/* Stats band (replaces logo strip) */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-band-alt); }
.strip-row { display: flex; justify-content: space-between; gap: 12px; padding: 18px 0; flex-wrap: wrap; font-family: var(--font-mono); font-size: .82rem; letter-spacing: .04em; color: var(--text-dot); text-transform: uppercase; }
.strip-row strong { color: var(--text-100); margin-right: 6px; }

/* Sections */
.section { padding: 88px 0; border-top: 1px solid var(--border); }
.section:first-of-type { border-top: none; }
.section-alt { background: var(--bg-band-alt); }
.section-lead { color: var(--text-mute); font-size: 1.05rem; max-width: 720px; }
.page-head { padding: 44px 0 6px; }
.breadcrumb { font-family: var(--font-mono); font-size: .8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }
.breadcrumb a { color: var(--text-dot); text-decoration: none; }

/* Grids / cards */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.card { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 26px 24px; box-shadow: var(--shadow); }
.card p { color: var(--text-mute); }
.j-card { text-decoration: none; display: block; transition: transform .15s, border-color .15s; }
.j-card:hover { transform: translateY(-3px); border-color: rgba(96,165,250,.4); }
.j-card .muted { min-height: 2.6em; }
.j-flag { font-size: 2rem; }
.j-flag-sm { font-size: 1.1rem; }
.j-flag-lg { font-size: 2.2rem; vertical-align: middle; }

/* Step cards (how it works) */
.step-card { position: relative; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 26px 24px 28px; }
.step-card::before { content: ''; position: absolute; top: 0; left: 24px; width: 56px; height: 3px; background: var(--blue-600); border-radius: 0 0 3px 3px; }
.step-num { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--blue-400); letter-spacing: .1em; display: block; margin-bottom: 12px; }

/* Why pay */
.why-pay { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.why-col { border-radius: var(--radius-card); padding: 26px; }
.why-old { background: var(--surface-card); border: 1px solid var(--border); }
.why-new { background: linear-gradient(160deg, rgba(37,99,235,.22), rgba(37,99,235,.08)); border: 1px solid rgba(96,165,250,.35); color: var(--text-200); }
.why-new h3 { color: var(--blue-300); }
.why-col ul { padding-left: 20px; margin: 0; color: var(--text-mute); }
.why-new ul { color: var(--text-200); }
.why-col li { margin-bottom: .6em; }

/* Badges */
.badge { display: inline-block; font-family: var(--font-mono); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 4px; padding: 2px 8px; vertical-align: middle; }
.badge-free { background: rgba(52,211,153,.14); color: var(--emerald); border: 1px solid rgba(52,211,153,.35); }
.badge-locked { background: rgba(251,191,36,.12); color: var(--amber); border: 1px solid rgba(251,191,36,.3); }
.badge-featured { background: var(--blue-600); color: #fff; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; align-items: stretch; }
.price-card { position: relative; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 30px 26px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.price-featured { border: 1.5px solid var(--blue-600); box-shadow: 0 0 0 1px rgba(37,99,235,.2), 0 24px 60px rgba(37,99,235,.18); }
.price { font-size: 2.5rem; font-weight: 700; letter-spacing: -1.5px; margin: .2em 0; }
.price span { font-size: 1rem; color: var(--text-mute); font-family: var(--font-ui); letter-spacing: 0; }
.price-alt { color: var(--text-mute); font-size: .88rem; margin-bottom: .6em; }
.price-card ul { text-align: left; padding-left: 0; list-style: none; color: var(--text-300); flex: 1; }
.price-card li { margin-bottom: .55em; padding-left: 22px; position: relative; }
.price-card li::before { content: '✓'; position: absolute; left: 0; color: var(--emerald); font-weight: 700; }
.price-featured li::before { color: var(--blue-400); }
.price-card .btn, .price-card form { margin-top: auto; }
.price-card form .btn { width: 100%; }

/* Matrix */
.matrix-toolbar { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; font-size: .9rem; color: var(--text-mute); }
.matrix-toolbar select, .compare-picker select, select { background: var(--surface-deep); color: var(--text-200); padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 6px; font-size: .9rem; font-family: var(--font-ui); }
.check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.matrix-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow); background: var(--surface-card); }
table.matrix { border-collapse: collapse; width: 100%; min-width: 1100px; font-size: .87rem; }
.matrix th, .matrix td { padding: 12px 14px; border-bottom: 1px solid var(--border); border-right: 1px solid rgba(255,255,255,.04); vertical-align: top; text-align: left; }
.matrix thead th { background: rgba(37,99,235,.07); color: var(--text-100); font-family: var(--font); font-weight: 600; white-space: nowrap; position: sticky; top: 0; z-index: 4; }
.matrix tbody td { color: var(--text-300); }
.sticky-col { position: sticky; left: 0; background: var(--surface-card); z-index: 2; min-width: 180px; box-shadow: 2px 0 4px rgba(0,0,0,.35); }
.matrix thead .sticky-col { background: #12203B; z-index: 5; }
.jcell { font-weight: 600; }
.jlink { color: var(--text-100); text-decoration: none; font-weight: 700; }
.jlink:hover { color: #fff; text-decoration: underline; }
.verified-tag { font-family: var(--font-mono); font-size: .7rem; color: var(--text-dim); font-weight: 400; margin-top: 4px; }
.dimcell { font-weight: 600; color: var(--text-100); }
.cell { max-width: 320px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.compare-table .cell { max-width: none; }

/* Paywall */
.cell-locked { background: rgba(255,255,255,.015); position: relative; }
.blurred { filter: blur(5px); user-select: none; pointer-events: none; color: var(--text-dim); }
.cell-locked::after { content: '🔒'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: .95rem; opacity: .7; }
.paywall-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: linear-gradient(160deg, rgba(37,99,235,.2), rgba(37,99,235,.05)); border: 1px solid rgba(96,165,250,.35); color: var(--text-300); border-radius: var(--radius-card); padding: 28px 32px; margin-top: 26px; }
.paywall-banner h3 { color: var(--text-050); margin-bottom: .3em; }
.paywall-banner p { margin: 0; max-width: 620px; color: var(--text-mute); }
.paywall-inline { flex-direction: column; align-items: flex-start; }
.paywall-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Detail pages */
.meta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.verified-pill { background: rgba(52,211,153,.14); color: var(--emerald); font-size: .84rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; border: 1px solid rgba(52,211,153,.3); }
.detail-list { display: flex; flex-direction: column; gap: 16px; }
.detail-item { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 20px 24px; }
.detail-item h3 { margin-bottom: .4em; }
.detail-value { margin-bottom: .5em; white-space: pre-line; color: var(--text-300); }
.detail-meta { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--font-mono); font-size: .74rem; color: var(--text-dim); }
.detail-locked { opacity: .92; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.notify-box { background: var(--surface-deep); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; margin-top: 30px; }

/* Compare picker */
.compare-picker { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.compare-picker select { min-width: 200px; }
.vs { font-family: var(--font-mono); color: var(--text-dim); font-size: .85rem; }

/* Forms */
.form-narrow { max-width: 560px; }
.stack-form { display: flex; flex-direction: column; gap: 16px; }
.stack-form label, .field-grid label, .cell-editor label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .88rem; color: var(--text-200); }
input, textarea { background: var(--surface-deep); color: var(--text-200); border: 1px solid var(--border-strong); border-radius: 6px; padding: 11px 13px; font-size: .98rem; font-family: var(--font-ui); font-weight: 400; }
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--blue-600); border-color: var(--blue-600); }
.inline-capture { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.inline-capture input { flex: 1; min-width: 220px; }
.footer-capture { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-capture input { flex: 1; min-width: 150px; padding: 8px 10px; }
.row-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form { display: inline; }
.logout-form { margin-top: 16px; }

/* Alerts */
.alert { border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; font-size: .93rem; }
.alert-error { background: rgba(248,113,113,.1); color: #FCA5A5; border: 1px solid rgba(248,113,113,.3); }
.alert-success { background: rgba(52,211,153,.1); color: var(--emerald); border: 1px solid rgba(52,211,153,.3); }
.alert-info { background: rgba(96,165,250,.1); color: var(--blue-300); border: 1px solid rgba(96,165,250,.3); word-break: break-all; }

/* Fine print */
.fineprint { font-size: .78rem; color: var(--text-dim); margin-top: 22px; }
.link-arrow { font-weight: 600; }

/* Landing: matrix preview */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 12px; color: var(--text-200); background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 20px; padding: 6px 13px; cursor: pointer; opacity: .55; transition: all .15s; }
.chip.active { background: rgba(37,99,235,.16); border-color: rgba(96,165,250,.55); opacity: 1; }
.chip:hover { opacity: .85; }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.mxp { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-card); overflow-x: auto; box-shadow: var(--shadow); }
.mxp-row { display: flex; min-width: 640px; border-bottom: 1px solid var(--border); }
.mxp-row:last-child { border-bottom: none; }
.mxp-head { background: rgba(37,99,235,.07); }
.mxp-cell { flex: 1; min-width: 130px; padding: 12px 14px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-200); border-right: 1px solid rgba(255,255,255,.04); }
.mxp-cell:last-child { border-right: none; }
.mxp-label { flex: 0 0 210px; min-width: 170px; font-family: var(--font-ui); font-size: 12.5px; color: var(--text-dot); font-weight: 600; }
.mxp-head .mxp-cell { display: flex; align-items: center; gap: 8px; font-family: var(--font-ui); font-weight: 600; color: var(--text-100); }
.mxp-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 13px 16px; font-size: .8rem; color: var(--text-dim); background: rgba(255,255,255,.015); }
.locked-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--amber); border: 1px solid rgba(251,191,36,.3); background: rgba(251,191,36,.08); border-radius: 20px; padding: 4px 12px; }

/* Landing: coverage */
.cov-grid { display: grid; grid-template-columns: 1fr 372px; gap: 24px; align-items: start; }
.legend-list { display: flex; flex-direction: column; gap: 8px; max-height: 452px; overflow-y: auto; padding-right: 4px; }
.legend-row { display: flex; align-items: center; gap: 10px; background: var(--surface-card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 13px; cursor: pointer; text-align: left; width: 100%; font-family: var(--font-ui); transition: border-color .15s; }
.legend-row:hover { border-color: rgba(96,165,250,.4); }
.legend-row.active { border-color: rgba(96,165,250,.65); background: rgba(37,99,235,.1); }
.legend-name { flex: 1; color: var(--text-200); font-weight: 600; font-size: 13.5px; }
.legend-meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-dim); display: block; font-weight: 400; }
.tier-chip { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; border-radius: 4px; padding: 2px 7px; }
.tier-FREE { color: var(--emerald); background: rgba(52,211,153,.12); }
.tier-CORE { color: var(--blue-400); background: rgba(96,165,250,.12); }
.tier-PRO { color: var(--amber); background: rgba(251,191,36,.12); }
.cov-foot { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); margin-top: 12px; }

/* Landing: source trace */
.method-grid { display: grid; grid-template-columns: 1fr 440px; gap: 40px; align-items: center; }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.principle { background: var(--surface-card); border: 1px solid var(--border); border-radius: 11px; padding: 16px 18px; }
.principle h3 { font-size: .95rem; margin-bottom: .3em; }
.principle p { font-size: .82rem; color: var(--text-dim); margin: 0; }
.trace-card { background: var(--surface-deep); border: 1px solid var(--border-strong); border-radius: var(--radius-card); box-shadow: var(--shadow); overflow: hidden; }
.trace-bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.trace-bar i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.trace-bar i:nth-child(1) { background: #F87171; } .trace-bar i:nth-child(2) { background: var(--amber); } .trace-bar i:nth-child(3) { background: var(--emerald); }
.trace-body { padding: 18px 20px; font-family: var(--font-mono); font-size: 12.5px; }
.trace-kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.trace-kv span { color: var(--text-dot); } .trace-kv b { color: var(--text-200); font-weight: 600; text-align: right; }
.trace-src { margin-top: 14px; background: rgba(37,99,235,.1); border: 1px solid rgba(96,165,250,.3); border-radius: 9px; padding: 12px 14px; font-size: 12px; color: var(--text-300); }
.trace-src .vpill { display: inline-block; background: rgba(52,211,153,.15); color: var(--emerald); border-radius: 12px; padding: 1px 9px; font-size: 10.5px; font-weight: 700; margin-left: 8px; }
.trace-src a { display: inline-block; margin-top: 8px; }

/* Landing: FAQ */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; background: none; border: none; color: var(--text-100); font-family: var(--font); font-size: 1.05rem; font-weight: 600; text-align: left; padding: 18px 4px; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-q .pm { color: var(--blue-400); font-size: 1.3rem; font-weight: 400; flex: 0 0 auto; }
.faq-a { display: none; padding: 0 4px 20px; color: var(--text-mute); max-width: 90%; }
.faq-item.open .faq-a { display: block; }

/* Landing: CTA band */
.cta-band { border-radius: 20px; border: 1px solid rgba(96,165,250,.4); background: radial-gradient(600px 300px at 50% 0%, rgba(37,99,235,.35), rgba(37,99,235,.06)), var(--surface-deep); padding: 64px 40px; text-align: center; }
.cta-band h2 { margin-bottom: .4em; }
.cta-band p { color: var(--text-mute); max-width: 520px; margin: 0 auto 1.6em; }
.cta-band .btn-white { background: #fff; color: #0B1120; border-color: #fff; }
.cta-band .btn-white:hover { background: var(--blue-050); }

/* Footer */
.site-footer { background: var(--surface-footer); border-top: 1px solid var(--border); padding: 48px 0 24px; margin-top: 64px; }
.footer-disclaimer { background: rgba(37,99,235,.06); border: 1px solid rgba(37,99,235,.16); color: var(--text-mute); border-radius: var(--radius-card); padding: 16px 20px; font-size: .84rem; margin-bottom: 32px; }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-cols h4 { margin: 0 0 .9em; color: var(--text-100); font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-cols a { display: block; color: var(--text-dot); text-decoration: none; margin-bottom: .55em; font-size: .9rem; }
.footer-cols a:hover { color: var(--text-100); }
.footer-cols .muted { color: var(--text-dim); }
.footer-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--emerald); border: 1px solid rgba(52,211,153,.3); background: rgba(52,211,153,.08); border-radius: 20px; padding: 5px 12px; margin-top: 10px; text-decoration: none; }
.footer-intro { border: 1px solid rgba(96,165,250,.25); background: rgba(37,99,235,.05); border-radius: var(--radius-card); padding: 14px 18px; font-size: .84rem; color: var(--text-mute); margin-bottom: 24px; }
.footer-intro strong { color: var(--text-200); }
.footer-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 18px; font-size: .82rem; color: var(--text-fnt); }
.footer-base a { color: var(--text-dot); }
.footer-tagline { font-family: var(--font-mono); font-size: .78rem; }

/* Cookie banner */
.cookie-banner { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 520px; margin: 0 auto; background: var(--surface-card); border: 1px solid var(--border-strong); border-radius: var(--radius-card); box-shadow: 0 8px 30px rgba(0,0,0,.55); padding: 18px 20px; z-index: 90; font-size: .87rem; color: var(--text-300); }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* Admin */
.admin-body { background: var(--bg-page); }
.admin-header { background: rgba(11,17,32,.9); }
.admin-main { min-height: 80vh; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; font-size: .89rem; }
.admin-table th, .admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; color: var(--text-300); }
.admin-table thead th { background: rgba(37,99,235,.09); color: var(--text-100); font-family: var(--font); }
.row-actions { white-space: nowrap; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 20px 0 30px; }
.stat { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 18px; text-align: center; color: var(--text-mute); }
.stat-n { font-size: 1.9rem; font-weight: 700; font-family: var(--font); color: var(--text-050); }
.stat-warn { border-color: rgba(251,191,36,.45); background: rgba(251,191,36,.06); }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.cell-editor { border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface-card); padding: 16px 18px 20px; margin: 0; }
.cell-editor legend { font-weight: 700; color: var(--text-100); padding: 0 6px; font-family: var(--font); }
.cell-ph { border-left: 4px solid var(--amber); }
.check-row { display: flex; gap: 24px; flex-wrap: wrap; color: var(--text-200); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.danger-zone { margin-top: 34px; padding-top: 20px; border-top: 1px dashed rgba(248,113,113,.5); }
.legal-page h2 { margin-top: 1.6em; font-size: 1.3rem; }

/* Unlock box */
.unlock-box { margin-top: 18px; }
.unlock-box .inline-capture { justify-content: flex-start; }

/* Verification freshness & live monitoring (dark-adapted) */
.fresh-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .72rem; font-weight: 600; border-radius: 20px; padding: 2px 10px; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.fresh-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.fresh-current { background: rgba(52,211,153,.12); color: var(--emerald); border-color: rgba(52,211,153,.32); }
.fresh-due { background: rgba(251,191,36,.1); color: var(--amber); border-color: rgba(251,191,36,.3); }
.fresh-stale { background: rgba(248,113,113,.1); color: var(--red); border-color: rgba(248,113,113,.3); }
.fresh-pending { background: rgba(255,255,255,.05); color: var(--text-mute); border-color: var(--border); }
a.fresh-pill:hover { filter: brightness(1.15); }
.matrix .verified-tag.fresh-pill { margin-top: 6px; }
.matrix thead .verified-tag.fresh-pill { color: var(--emerald); }
.nav-live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); margin-right: 6px; vertical-align: middle; animation: lm-pulse 2s infinite; }
.monitor-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--emerald); display: inline-block; animation: lm-pulse 2s infinite; }
@keyframes lm-pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.5); } 70% { box-shadow: 0 0 0 6px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.status-head .monitor-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 12px; font-size: .9rem; color: var(--text-mute); }
.monitor-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(52,211,153,.1); color: var(--emerald); border: 1px solid rgba(52,211,153,.3); border-radius: 20px; padding: 4px 12px; font-weight: 700; font-size: .8rem; font-family: var(--font-mono); }
.monitor-meta strong { color: var(--text-100); }
.status-legend { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 22px; }
.jur-status-list { display: flex; flex-direction: column; gap: 10px; }
.jur-status-row { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.jur-status-row summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.jur-status-row summary::-webkit-details-marker { display: none; }
.jsr-name { font-weight: 700; color: var(--text-100); }
.jsr-meta { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jsr-verified { font-family: var(--font-mono); font-size: .74rem; color: var(--text-dim); }
.dim-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 18px 16px; }
.dim-chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .72rem; border-radius: 6px; padding: 4px 8px; border: 1px solid var(--border); color: var(--text-300); }
.dim-chip-label { font-weight: 600; }
.dim-chip-date { opacity: .8; font-variant-numeric: tabular-nums; }
.jsr-foot { padding: 0 18px 14px; font-size: .85rem; color: var(--text-mute); }
.status-feeds { margin-top: 26px; }
.updates-list { list-style: none; padding: 0; margin: 0; }
.updates-list li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .9rem; color: var(--text-300); }
.updates-list li:last-child { border-bottom: none; }
.upd-date { color: var(--text-dim); font-variant-numeric: tabular-nums; margin-right: 6px; font-family: var(--font-mono); font-size: .8rem; }

/* Report page: form + branded sample mock-ups */
.report-grid { display: grid; grid-template-columns: 1fr 360px; gap: 44px; align-items: start; }
.report-examples { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 18px; }
.mock-report { position: relative; background: linear-gradient(175deg, #101B31, var(--surface-deep)); border: 1px solid var(--border-strong); border-radius: 12px; padding: 20px 22px 18px; box-shadow: 0 24px 60px rgba(0,0,0,.45); overflow: hidden; }
.mock-report::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--blue-600), var(--blue-400)); }
.mr-sample { position: absolute; top: 38%; right: -34px; transform: rotate(-24deg); font-family: var(--font-mono); font-size: 34px; font-weight: 700; letter-spacing: .3em; color: rgba(255,255,255,.05); pointer-events: none; }
.mr-head { display: flex; align-items: center; gap: 9px; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.mr-head .logo-mark { margin-right: 0; transform: scale(.8); }
.mr-brand { font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--text-100); letter-spacing: -.4px; }
.mr-brand b { color: var(--blue-400); font-weight: 700; }
.mr-type { margin-left: auto; font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .16em; color: var(--blue-400); border: 1px solid rgba(96,165,250,.35); border-radius: 4px; padding: 2px 7px; }
.mock-report h4 { font-family: var(--font); font-size: 1.05rem; color: var(--text-050); margin: 0 0 2px; }
.mr-meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-dim); margin: 0 0 12px; }
.mr-toc { display: flex; flex-direction: column; }
.mr-line { display: flex; gap: 10px; align-items: baseline; font-family: var(--font-ui); font-size: 12.5px; color: var(--text-300); padding: 5.5px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.mr-line:last-child { border-bottom: none; }
.mr-line span { font-family: var(--font-mono); font-size: 10px; color: var(--blue-400); font-weight: 700; }
.mr-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.mr-badges .vpill { background: rgba(52,211,153,.12); color: var(--emerald); border-radius: 12px; padding: 2px 9px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; }
@media (max-width: 980px) { .report-grid { grid-template-columns: 1fr; } .report-examples { position: static; } }

/* Export / print */
.export-table { min-width: 0; }
.print-head { font-family: var(--font-mono); font-size: .8rem; color: var(--text-dim); margin-bottom: 12px; }
@media print {
  body { background: #fff !important; color: #111 !important; font-size: 11px; }
  .site-header, .topbar-disclaimer, .site-footer, .cookie-banner, .no-print, .nav-toggle { display: none !important; }
  .section { padding: 0; border: none; }
  h1, h2, h3, .price, .dimcell, .jlink { color: #0B1120 !important; }
  .matrix-scroll, table.matrix, .matrix th, .matrix td { background: #fff !important; color: #111 !important; border-color: #ddd !important; box-shadow: none !important; }
  .matrix thead th { background: #fff !important; color: #0B1120 !important; border-bottom: 2px solid #0B1120 !important; }
  .detail-meta, .verified-tag, .print-head, .fineprint { color: #555 !important; }
  .matrix th, .matrix td { padding: 6px 8px; }
  a { text-decoration: none; color: inherit !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .live-dot, .nav-live-dot, .monitor-dot { animation: none; }
  html { scroll-behavior: auto; }
  .j-card, .btn, .chip, .legend-row { transition: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .container, .container-wide { padding: 0 20px; }
  .ht-atlas, .ht-globe { grid-template-columns: 1fr; }
  .ht-globe .ht-text { order: 1; }
  .ht-globe .ht-map { order: 2; }
  .map-panel, .map-panel-globe, .map-panel-coverage { height: 360px; }
  /* Small screens: the readout flows below the map instead of covering it */
  .map-readout { position: static; width: 100%; margin-top: 12px; }
  .cov-grid, .method-grid { grid-template-columns: 1fr; }
  .legend-list { max-height: none; }
  .section { padding: 56px 0; }
}
@media (max-width: 820px) {
  .main-nav { display: none; position: absolute; top: 58px; left: 0; right: 0; background: var(--bg-page); border-bottom: 1px solid var(--border); flex-direction: column; align-items: flex-start; padding: 16px 20px 20px; gap: 14px; box-shadow: 0 12px 20px rgba(0,0,0,.45); }
  body.nav-open .main-nav { display: flex; }
  .nav-toggle { display: block; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .paywall-banner { flex-direction: column; align-items: flex-start; }
  .principles { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .footer-cols { grid-template-columns: 1fr; }
  .strip-row { flex-direction: column; gap: 6px; }
  .ht-ctas .ht-btn, .hero-ctas .btn { width: 100%; text-align: center; }
  .mxp-label { flex-basis: 130px; }
}
