:root {
    --bg: #ffffff;
    --fg: #0f172a;
    --tint: #f8fafc;
    --card: #ffffff;
    --muted: #64748b;
    --border: #e2e8f0;
    --primary: #2563eb;
    --primary-ink: #ffffff;
    --navy: #0b1220;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --radius: 16px;
    --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Header (dark bar, sits seamlessly over the navy hero) ---------- */
.site-header {
    background: rgba(11, 18, 32, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 40;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-weight: 700; font-size: 1.15rem; color: #ffffff; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand .brand-accent { color: var(--primary); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--slate-300); font-size: 0.95rem; font-weight: 500; }
.nav a:hover, .nav a.active { color: #ffffff; text-decoration: none; }
.btn-nav {
    background: var(--primary);
    padding: 9px 18px;
    border-radius: 999px;
    color: #ffffff !important;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35); }
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    margin: 0 -10px 0 0;
    background: none;
    border: 0;
    cursor: pointer;
}
.nav-toggle-bar { display: block; height: 2px; width: 100%; background: #ffffff; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Shared type ---------- */
.eyebrow {
    display: block;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin: 0 0 14px;
}
h1 { font-size: 2.4rem; line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.02em; }
h2 { font-size: 2rem; line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; margin: 0 0 8px; letter-spacing: -0.01em; }
.accent { color: var(--primary); }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 640px; margin: 0; }

/* ---------- Main / bands ---------- */
.site-main { min-height: 60vh; }
.main { padding: 48px 0 72px; }
.section { margin: 0; padding: 40px 0; }
.section-head { max-width: 660px; margin: 0 0 40px; }
.section-head .lead { margin-top: 16px; }

.band { padding: 84px 0; }
.band-light { background: var(--bg); }
.band-tint { background: var(--tint); }
.band-dark { position: relative; overflow: hidden; background: var(--navy); color: #ffffff; }
.band-dark .lead { color: var(--slate-300); }
.band-dark h2, .band-dark h3 { color: #ffffff; }

.grid-texture {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
    background-size: 56px 56px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 60% at 78% 12%, rgba(37, 99, 235, 0.28), transparent 60%),
        radial-gradient(ellipse 60% 55% at 8% 92%, rgba(37, 99, 235, 0.12), transparent 55%),
        var(--navy);
    color: #ffffff;
}
.hero-media {
    position: absolute; inset: 0;
    background-image: url(/assets/hero-dmv.jpg);
    background-position: 72% center;
    background-size: cover;
    background-repeat: no-repeat;
}
.hero-fade-x { position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 4%, rgba(11,18,32,0.82) 44%, rgba(11,18,32,0.12) 100%); }
.hero-fade-y { position: absolute; inset: 0; background: linear-gradient(0deg, var(--navy) 0%, rgba(11,18,32,0.15) 45%, rgba(11,18,32,0.35) 100%); }
.hero-inner { position: relative; padding: 88px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 3.2rem; color: #ffffff; text-shadow: 0 2px 24px rgba(2, 6, 18, 0.55); }
.hero .lead { color: var(--slate-200); font-size: 1.18rem; max-width: 520px; margin-top: 22px; }
.cta-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

/* Floating "how it works" mini-card in the hero */
.hero-card {
    position: relative;
    background: rgba(11, 18, 32, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 26px;
    backdrop-filter: blur(10px);
    box-shadow: 0 24px 60px rgba(2, 6, 18, 0.5);
}
.hero-card h3 { color: #ffffff; margin-bottom: 18px; }
.hero-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.hero-steps li { display: flex; gap: 14px; }
.hero-steps .num {
    flex: 0 0 auto; width: 34px; height: 34px; border-radius: 999px;
    background: rgba(37, 99, 235, 0.2); color: #93b4fc;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem;
}
.hero-steps .step-t { color: #ffffff; font-weight: 600; font-size: 0.95rem; margin: 0; }
.hero-steps .step-b { color: var(--slate-300); font-size: 0.85rem; margin: 2px 0 0; line-height: 1.5; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 24px;
    border-radius: 11px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(37, 99, 235, 0.3); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); color: #ffffff; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.1); }
.band-light .btn-ghost, .band-tint .btn-ghost, .main .btn-ghost {
    background: transparent; border-color: var(--border); color: var(--fg);
}
.band-light .btn-ghost:hover, .band-tint .btn-ghost:hover, .main .btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-small { padding: 9px 16px; font-size: 0.9rem; }

/* ---------- Cards (elevated white) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card {
    display: block;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    color: var(--fg);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card h3 { color: var(--fg); }
.card p { color: var(--muted); margin: 0 0 14px; }
.card p:last-child { margin-bottom: 0; }
.card .price { color: var(--fg); font-weight: 700; }
a.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06), 0 20px 46px rgba(37, 99, 235, 0.12); }

.icon-tile {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--primary); color: var(--primary-ink);
    margin-bottom: 18px;
}
.icon-tile svg { width: 22px; height: 22px; }
.band-dark .icon-tile { background: rgba(37, 99, 235, 0.16); color: #93b4fc; }

/* ---------- Steps (dark band) ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.step-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 28px;
}
.step-card .step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(37, 99, 235, 0.16); color: #93b4fc;
    font-weight: 700; margin-bottom: 16px;
}
.step-card h3 { color: #ffffff; }
.step-card p { color: var(--slate-300); margin: 8px 0 0; font-size: 0.95rem; }

/* ---------- Tables ---------- */
.price-table { width: 100%; border-collapse: collapse; margin-top: 24px; max-width: 640px; }
.price-table th, .price-table td { text-align: left; padding: 16px 14px; border-bottom: 1px solid var(--border); }
.price-table th { color: var(--muted); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.price-table td { font-weight: 500; }
.fine { color: var(--muted); font-size: 0.9rem; margin-top: 18px; }

/* ---------- Forms ---------- */
.form-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 40px rgba(15, 23, 42, 0.07);
}
.form-card h1 { font-size: 1.7rem; }
.form-card .lead { font-size: 1rem; margin-bottom: 6px; }
label { display: block; font-size: 0.9rem; font-weight: 500; color: var(--fg); margin: 18px 0 7px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    width: 100%;
    padding: 12px 13px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--fg);
    font-size: 1rem;
    font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.form-card .btn { width: 100%; margin-top: 24px; }

/* ---------- Notices ---------- */
.notice { border-radius: 11px; padding: 13px 15px; margin: 16px 0; font-size: 0.95rem; }
.notice.info { background: rgba(37, 99, 235, 0.08); border: 1px solid rgba(37, 99, 235, 0.25); color: #1e40af; }
.notice.error { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.3); color: #b91c1c; }
.notice.success { background: rgba(34, 197, 94, 0.09); border: 1px solid rgba(34, 197, 94, 0.3); color: #15803d; }
.notice.mock { background: rgba(234, 179, 8, 0.1); border: 1px solid rgba(234, 179, 8, 0.35); color: #a16207; }

/* ---------- Portal ---------- */
.portal-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.portal-empty {
    text-align: center;
    padding: 64px 24px;
    background: var(--tint);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    margin-top: 24px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--slate-300); margin-top: 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding: 40px 24px; font-size: 0.92rem; flex-wrap: wrap; gap: 10px; }
.footer-inner p { margin: 0; }
.site-footer a { color: var(--slate-300); }
.site-footer a:hover { color: #ffffff; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero h1 { font-size: 2.6rem; }
}
@media (max-width: 640px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .band { padding: 56px 0; }
    .hero-inner { padding: 56px 0 64px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-media { background-position: 65% center; opacity: 0.5; }
    .hero-card { display: none; }
    .header-inner { height: 60px; }
    .nav-toggle { display: flex; }
    .nav {
        position: absolute;
        top: 60px; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 6px 0;
        background: rgba(11, 18, 32, 0.98);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: none;
    }
    .nav.open { display: flex; }
    .nav a { padding: 15px 24px; font-size: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
    .nav a:last-child { border-bottom: 0; }
    .nav .btn-nav { border-radius: 0; margin: 6px 16px; text-align: center; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}
