/*
 * MSP scan-pack signup funnel (issue #293).
 *
 * Salvaged from the closed o6-internal/msp-worker PR #2 and re-tuned to
 * Radar's landing-page palette (#0a0a0a / #00f260) so the funnel reads as the
 * same product rather than a bolt-on microsite. Scoped to public/msp/ — it
 * deliberately does not extend style.css, which is the light-themed app chrome.
 */

:root {
    --bg: #0a0a0a;
    --panel: #141414;
    --panel-alt: #1c1c1c;
    --border: #2a2a2a;
    --text: #ffffff;
    --muted: #a0a0a0;
    --accent: #00f260;
    --accent-hover: #33ff85;
    --link: #00f260;
    --err: #ff6b6b;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --wrap-max: 1080px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
}

a { color: var(--link); }
a:hover { color: var(--accent-hover); }

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

/* --- header --- */
.site-header {
    border-bottom: 1px solid var(--border);
    background: var(--panel);
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}
.brand { text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
.brand-mark { font-weight: 700; letter-spacing: 2px; font-size: 14px; }
.brand-sub { color: var(--accent); font-size: 12px; letter-spacing: 1px; }
.site-nav a { text-decoration: none; font-size: 14px; color: var(--muted); }
.site-nav a:hover { color: var(--accent); }

/* --- hero --- */
.hero { padding: 56px 24px 24px; }
.hero h1 {
    margin: 0 0 16px;
    font-size: 36px;
    line-height: 1.15;
    font-weight: 700;
}
.hero .lede {
    color: var(--muted);
    font-size: 17px;
    max-width: 640px;
    margin: 0 0 20px;
}
.hero-bullets {
    color: var(--text);
    margin: 0;
    padding-left: 20px;
    max-width: 640px;
}
.hero-bullets li { margin: 4px 0; }

/* --- packs section --- */
.packs { padding: 32px 24px 48px; }
.packs h2 { margin: 0 0 4px; font-size: 22px; }
.section-sub { color: var(--muted); margin: 0 0 20px; font-size: 14px; }

.email-form {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.email-form label { display: block; }
.label-text {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
}
.email-form input {
    width: 100%;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 15px;
    font-family: var(--font);
}
.email-form input:focus { outline: none; border-color: var(--accent); }
.email-help { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

.pack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.pack-tile {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    color: var(--text);
    cursor: pointer;
    font-family: var(--font);
    transition: border-color 0.12s ease, transform 0.12s ease, background 0.12s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 160px;
}
.pack-tile:hover:not(:disabled) {
    border-color: var(--accent);
    background: var(--panel-alt);
    transform: translateY(-2px);
}
.pack-tile:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.pack-tile:disabled { opacity: 0.5; cursor: wait; }
.pack-name { font-size: 13px; color: var(--muted); }
.pack-scans { font-size: 40px; font-weight: 800; color: var(--accent); line-height: 1; }
.pack-scans-sub { font-size: 13px; color: var(--muted); margin-top: -4px; }
.pack-price { font-size: 22px; font-weight: 700; margin-top: auto; }
.pack-per-scan { font-size: 13px; color: var(--muted); }

.checkout-error {
    color: var(--err);
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.35);
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 20px;
    font-size: 14px;
}

/* --- how it works --- */
.how-it-works { padding: 0 24px 56px; }
.how-it-works h2 { font-size: 22px; margin: 0 0 12px; }
.how-list { color: var(--text); margin: 0; padding-left: 20px; max-width: 680px; }
.how-list li { margin: 6px 0; }

/* --- welcome --- */
.welcome { padding: 72px 24px; max-width: 680px; }
.welcome h1 { margin: 0 0 12px; font-size: 32px; }
.welcome .lede { color: var(--muted); font-size: 17px; margin-bottom: 24px; }
.welcome-actions { margin-top: 24px; }

.btn-primary {
    background: var(--accent);
    color: #000;
    border: 0;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    text-decoration: none;
    display: inline-block;
}
.btn-primary:hover { background: var(--accent-hover); color: #000; }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }

/* --- footer --- */
.site-footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
    padding: 24px 0;
}

/* --- narrow screens --- */
@media (max-width: 600px) {
    .hero { padding: 32px 20px 8px; }
    .hero h1 { font-size: 28px; }
    .pack-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
    .pack-grid { grid-template-columns: 1fr; }
}

.muted { color: var(--muted); font-style: italic; }
