/* Shared visual layer for the content pages (home, docs, guides, contact, terms...).
   Loaded after each page's inline <style>, so it restyles the existing classes
   without touching markup. The map page (map.css) and PrivacyPolicy.html don't use it. */

:root {
    --bg: #070b12;
    --panel: rgba(17, 25, 37, .72);
    --panel-solid: #111925;
    --panel-border: rgba(148, 179, 214, .14);
    --panel-border-strong: rgba(148, 179, 214, .26);
    --scope: #5eead4;
    --scope-2: #38bdf8;
    --alert: #fb7185;
    --text: #e6edf3;
    --text-dim: #93a4b8;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px -12px rgba(0, 0, 0, .6);
    --ease: cubic-bezier(.2, .7, .2, 1);
    color-scheme: dark;
}

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

body {
    background:
        radial-gradient(1100px 600px at 12% -10%, rgba(94, 234, 212, .10), transparent 60%),
        radial-gradient(900px 520px at 100% 0%, rgba(56, 189, 248, .09), transparent 60%),
        var(--bg);
    background-attachment: fixed;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-feature-settings: 'cv11', 'ss01';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* faint radar-scope grid behind everything */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 179, 214, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 179, 214, .035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at top, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at top, #000 20%, transparent 75%);
}

::selection { background: rgba(94, 234, 212, .3); color: #fff; }

:focus-visible {
    outline: 2px solid var(--scope);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--text);
    text-wrap: balance;
}

h1 {
    font-size: clamp(32px, 5.5vw, 52px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.08;
    background: linear-gradient(120deg, #fff 30%, var(--scope) 75%, var(--scope-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 { font-size: 20px; line-height: 1.3; }
h3 { letter-spacing: -.01em; }

p, li { text-wrap: pretty; }

a {
    color: var(--scope);
    text-decoration-color: rgba(94, 234, 212, .4);
    text-underline-offset: 3px;
    transition: color .15s var(--ease), text-decoration-color .15s var(--ease);
}
a:hover { text-decoration-color: currentColor; }

strong { color: var(--text); font-weight: 600; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 5px 11px 5px 9px;
    border: 1px solid rgba(94, 234, 212, .25);
    border-radius: 999px;
    background: rgba(94, 234, 212, .08);
    font-size: 11px;
    letter-spacing: .1em;
}
.eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--scope);
    box-shadow: 0 0 0 0 rgba(94, 234, 212, .6);
    animation: rb-ping 2.4s var(--ease) infinite;
}
@keyframes rb-ping {
    0%   { box-shadow: 0 0 0 0 rgba(94, 234, 212, .55); }
    70%  { box-shadow: 0 0 0 8px rgba(94, 234, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); }
}

.intro { color: #b4c2d2; font-size: clamp(17px, 2vw, 19px); line-height: 1.65; }
.updated { font-size: 13px; opacity: .85; }

/* ---------- Header + navigation ---------- */

.header { margin-bottom: 40px; }

.nav,
.header-links {
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    background: rgba(13, 20, 31, .7);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: var(--shadow);
    width: fit-content;
    max-width: 100%;
}

.nav a,
.nav button,
.header-links a,
.back {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 500;
    transition: background-color .15s var(--ease), color .15s var(--ease);
}
.nav a:hover,
.nav a:focus-visible,
.nav button:hover,
.nav button:focus-visible,
.back:hover,
.back:focus-visible {
    background: rgba(148, 179, 214, .1);
    color: var(--text);
}
/* the one call-to-action in a nav bar (home page "Live map") */
.nav a.nav-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, var(--scope), var(--scope-2));
    color: #04121a;
    font-weight: 700;
    box-shadow: 0 6px 18px -8px rgba(56, 189, 248, .7);
}
.nav a.nav-primary::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #04121a;
    animation: rb-blink 1.6s ease-in-out infinite;
}
@keyframes rb-blink { 50% { opacity: .25; } }
.nav a.nav-primary:hover,
.nav a.nav-primary:focus-visible {
    background: linear-gradient(135deg, var(--scope), var(--scope-2));
    color: #04121a;
    filter: brightness(1.08);
}
.nav a.active,
.nav a[aria-current] {
    background: rgba(94, 234, 212, .14);
    color: var(--scope);
}

@media (max-width: 700px) {
    .nav, .header-links { border-radius: 18px; }
}

/* ---------- Surfaces ---------- */

.card,
.top-ad,
.note,
.app-note,
.app-card,
.box,
.search-card {
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 40%),
        var(--panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.card { padding: 26px; }
.card h2 { margin-bottom: 12px; }
.grid { gap: 18px; }

/* cards that are links (guide index) lift on hover */
.card:has(a.guide-link) {
    transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.card:has(a.guide-link):hover {
    transform: translateY(-3px);
    border-color: rgba(94, 234, 212, .35);
    box-shadow: var(--shadow), 0 18px 40px -20px rgba(94, 234, 212, .35);
}
.card a.guide-link { color: var(--text); text-decoration: none; }
.card:has(a.guide-link):hover a.guide-link { color: var(--scope); }
.card .read-more { margin-top: auto; padding-top: 14px; }
.card .read-more::after { content: ' \2192'; display: inline-block; transition: transform .2s var(--ease); }
.card:hover .read-more::after { transform: translateX(3px); }

.note,
.app-note { border-left-width: 1px; position: relative; overflow: hidden; }
.note::before,
.app-note::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--scope), var(--scope-2));
}

.safety,
.note.safety,
.disclaimer {
    border-color: rgba(251, 113, 133, .28);
    background:
        linear-gradient(180deg, rgba(251, 113, 133, .07), transparent 60%),
        var(--panel);
}
.card.safety { border-left-width: 1px; }
.card.safety h2 { color: #fda4af; }
.note.safety::before { background: var(--alert); }

.top-ad { border-radius: var(--radius-sm); box-shadow: none; }

/* ---------- Buttons ---------- */

.map-cta,
.btn-primary,
.action-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 14px 26px;
    background: linear-gradient(135deg, var(--scope), var(--scope-2));
    color: #04121a;
    font: 700 16px 'Inter', system-ui, sans-serif;
    letter-spacing: -.01em;
    text-decoration: none;
    box-shadow: 0 10px 30px -10px rgba(56, 189, 248, .6), 0 0 0 1px rgba(255, 255, 255, .15) inset;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
.map-cta:hover,
.map-cta:focus-visible,
.btn-primary:hover,
.action-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 16px 36px -10px rgba(56, 189, 248, .75), 0 0 0 1px rgba(255, 255, 255, .2) inset;
}

/* ---------- Tables ---------- */

.table-wrap {
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-sm);
    background: var(--panel);
}
.table-wrap table { font-size: 14px; }
.table-wrap thead th {
    background: rgba(148, 179, 214, .06);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--text-dim);
}
.table-wrap tbody tr { transition: background-color .15s var(--ease); }
.table-wrap tbody tr:hover { background: rgba(148, 179, 214, .05); }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }

.scale { border-color: var(--panel-border); border-radius: var(--radius-sm); background: var(--panel); }
.swatch { border-radius: 6px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset; }

/* ---------- Footer / misc ---------- */

.back-link {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

.site-footer { border-top-color: var(--panel-border); gap: 8px 20px; }

.step-number {
    background: linear-gradient(135deg, var(--scope), var(--scope-2));
    color: #04121a;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
