/* SafeNominee static site — shared styles.
   Hand-authored, dependency-free, theme-aware (light/dark), responsive.
   Served by nginx at "/" and the legal routes; the WASM app lives under /app. */

:root {
    --brand: #1565C0;
    --brand-600: #1257a8;
    --brand-050: #e8f1fc;
    --accent: #42a5f5;

    --bg: #ffffff;
    --bg-alt: #f6f9fd;
    --surface: #ffffff;
    --border: #e4e9f0;
    --text: #101828;
    --text-muted: #5a6b82;
    --shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.06);
    --radius: 16px;
    --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0d1117;
        --bg-alt: #131a24;
        --surface: #161d29;
        --border: #263243;
        --text: #e8edf4;
        --text-muted: #93a3b8;
        --brand-050: #14243a;
        --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
    }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.site-header .wrap {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-muted); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }
@media (max-width: 860px) { .nav-links a.hide-sm { display: none; } }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 700; font-size: 15px; border-radius: 10px;
    padding: 11px 22px; cursor: pointer; border: 1px solid transparent;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(21,101,192,.28); }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--border); }
.btn-ghost:hover { background: var(--brand-050); }
.btn-lg { padding: 14px 30px; font-size: 16px; }

/* ── Sections ───────────────────────────────────────────── */
section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow {
    display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 1.6px;
    text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
h1, h2, h3 { line-height: 1.18; letter-spacing: -0.02em; }
.section-title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; max-width: 760px; }
.section-sub { color: var(--text-muted); font-size: 17px; max-width: 680px; margin-top: 14px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ── Hero ───────────────────────────────────────────────── */
.hero { padding: 84px 0 64px; background:
    radial-gradient(1200px 500px at 50% -10%, var(--brand-050), transparent 70%); }
.hero h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 900; letter-spacing: -0.03em; }
.hero .tagline { color: var(--brand); font-weight: 700; margin: 8px 0 18px; letter-spacing: .5px; }
.hero p.lead { font-size: 19px; color: var(--text-muted); max-width: 720px; margin: 0 auto 30px; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .note { color: var(--text-muted); font-size: 14px; margin-top: 16px; }
.badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
    padding: 8px 15px; font-size: 13.5px; font-weight: 600; color: var(--text-muted);
    box-shadow: var(--shadow);
}
.badge b { color: var(--text); }

/* ── Card grids ─────────────────────────────────────────── */
.grid { display: grid; gap: 20px; margin-top: 44px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px; box-shadow: var(--shadow);
}
.card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 15px; }
.card .ico {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: var(--brand-050); color: var(--brand); margin-bottom: 16px; font-size: 22px;
}
.step-num {
    width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
    background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 14px;
}

/* ── Steps (numbered) ───────────────────────────────────── */
.steps { counter-reset: step; }

/* ── CTA band ───────────────────────────────────────────── */
.cta-band { background: linear-gradient(135deg, var(--brand), var(--brand-600)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 18px; margin: 14px auto 28px; max-width: 620px; }
.cta-band .btn-primary { background: #fff; color: var(--brand); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.cta-band .btn-primary:hover { background: #f0f4fa; }
.cta-band .mini { color: rgba(255,255,255,.85); font-size: 14px; margin-top: 16px; }

/* ── Comparison table ───────────────────────────────────── */
.tick { color: #16a34a; font-weight: 800; }
.cross { color: #dc2626; font-weight: 800; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 48px 0 32px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text); font-size: 15px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--brand); text-decoration: none; }
.footer-brand { max-width: 300px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 12px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ── Legal / content pages ──────────────────────────────── */
.legal { padding: 52px 0 72px; }
.legal-hero { text-align: center; margin-bottom: 40px; }
.legal-hero h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; }
.legal-hero .sub { color: var(--text-muted); font-size: 18px; margin-top: 10px; }
.legal-hero .meta { color: var(--brand); font-weight: 700; font-size: 14px; margin-top: 8px; }
.legal-body { max-width: 820px; margin: 0 auto; }
.legal-body h2 { font-size: 22px; font-weight: 800; margin: 34px 0 12px; }
.legal-body h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; color: var(--text); }
.legal-body p { color: var(--text-muted); margin-bottom: 12px; }
.legal-body ul { color: var(--text-muted); margin: 0 0 14px 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body .callout {
    background: var(--brand-050); border-left: 4px solid var(--brand); border-radius: 8px;
    padding: 16px 18px; margin: 18px 0; color: var(--text);
}
.legal-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px 24px; margin-bottom: 16px; box-shadow: var(--shadow);
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq-cat { font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--brand); margin: 30px 0 12px; }
details.faq {
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    padding: 0; margin-bottom: 10px; overflow: hidden;
}
details.faq summary {
    cursor: pointer; padding: 16px 20px; font-weight: 700; font-size: 16px;
    list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; font-weight: 400; flex-shrink: 0; }
details.faq[open] summary::after { content: "\2212"; }
details.faq .ans { padding: 0 20px 18px; color: var(--text-muted); font-size: 15px; }

.skip-note { color: var(--text-muted); font-size: 14px; }