:root {
    --ink: #0c1a14;
    --ink-soft: #163026;
    --paper: #f4f1ea;
    --paper-2: #ebe6db;
    --amber: #f5a623;
    --amber-dark: #c47d0b;
    --amber-glow: rgba(245, 166, 35, 0.35);
    --forest: #1f4d3a;
    --forest-deep: #123328;
    --mint: #d8efe3;
    --muted: #5c564c;
    --card: #ffffff;
    --line: #eadfcb;
    --danger: #9b1c1c;
    --ok: #15803d;
    --shadow: 0 24px 60px rgba(12, 26, 20, 0.12);
    --radius: 22px;
    --nav-h: 76px;
    --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: var(--forest); }
button, input { font-family: inherit; }

.skip-link {
    position: absolute;
    left: 12px;
    top: -40px;
    background: var(--amber);
    color: var(--ink);
    padding: 8px 12px;
    z-index: 80;
    border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 20px;
    background: rgba(12, 26, 20, 0.92);
    backdrop-filter: blur(16px);
    color: #fff;
    border-bottom: 1px solid rgba(245, 166, 35, 0.18);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: 1.2rem;
}

.brand-mark-img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: contain;
    background: #fff;
}

.brand-lockup-img {
    height: 88px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    background: #fff;
    border-radius: 14px;
    padding: 4px;
}

.brand-suffix {
    color: var(--amber);
    font-size: 0.85rem;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--amber), #ffd27a);
    color: var(--ink);
    display: grid;
    place-items: center;
    font-size: 0.95rem;
}

.brand-name { display: inline; white-space: nowrap; }
.brand-name span { color: var(--amber); }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.2);
    background: transparent;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a {
    color: rgba(255,255,255,.86);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.is-active { color: #fff; background: rgba(255,255,255,.08); }

.nav-form { margin: 0; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--amber);
    color: var(--ink);
    padding: 11px 18px;
    border: 0;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px var(--amber-glow);
    transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #ffb53a; transform: translateY(-1px); }
.btn.ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,.28);
    box-shadow: none;
}
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn.dark {
    background: var(--ink);
    color: #fff;
    box-shadow: none;
}
.btn.wide { width: 100%; margin-top: 8px; }

main { flex: 1; }

.wrap {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.flash {
    width: min(1120px, calc(100% - 40px));
    margin: 20px auto 0;
    background: var(--mint);
    border: 1px solid #b7ddc8;
    color: var(--forest-deep);
    border-radius: 14px;
    padding: 14px 18px;
    font-weight: 600;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

h1, h2, h3 { letter-spacing: -0.04em; line-height: 1.12; }
h1 { margin: 0 0 14px; font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { margin: 0 0 8px; font-size: 1.15rem; }

.muted { color: var(--muted); }
.lede { font-size: 1.08rem; max-width: 42rem; }
code {
    font-size: 0.88em;
    background: var(--paper-2);
    padding: 2px 8px;
    border-radius: 8px;
}

label { display: block; margin: 14px 0 6px; color: var(--muted); font-weight: 600; font-size: 0.9rem; }
input,
select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 1rem;
    background: #fff;
    font-family: inherit;
}
input:focus,
select:focus {
    outline: 2px solid var(--amber);
    border-color: var(--amber);
}
.error { color: var(--danger); font-size: .88rem; margin-top: 6px; }

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 80% 10%, rgba(245,166,35,.28), transparent 32%),
        radial-gradient(circle at 10% 90%, rgba(31,77,58,.7), transparent 40%),
        linear-gradient(160deg, #07140f 0%, #123328 48%, #0c1a14 100%);
    padding: 72px 0 88px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245,166,35,.14);
    color: var(--amber);
    border: 1px solid rgba(245,166,35,.35);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero h1 { color: #fff; }
.hero .lede { color: rgba(255,255,255,.78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-meta {
    display: flex;
    gap: 28px;
    color: rgba(255,255,255,.7);
    font-size: .92rem;
}
.hero-meta strong { display: block; color: #fff; font-size: 1.25rem; }

.hero-panel {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 28px;
    padding: 22px;
    backdrop-filter: blur(10px);
    overflow: visible;
}
.hero-panel label { color: rgba(255,255,255,.78); }
.hero-panel .pill {
    color: var(--ink);
    background: #fff;
}
.hero-panel .pill.active,
.hero-panel .pill:has(input:checked) {
    background: var(--ink);
    color: #fff;
}
.hero-panel .soon-note { background: rgba(0,0,0,.28); color: rgba(255,255,255,.72); }
.hero-panel .error { color: #fecaca; }

.route-card {
    background: #fff;
    color: var(--ink);
    border-radius: 20px;
    padding: 20px;
}

.route-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
}
.route-row + .route-row { border-top: 1px dashed var(--line); }
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}
.dot.pick { background: var(--forest); }
.dot.drop { background: var(--amber); }
.route-row small { color: var(--muted); display: block; }
.soon-note {
    margin: 16px 0 0;
    font-size: .85rem;
    color: var(--muted);
    background: var(--paper);
    border-radius: 12px;
    padding: 10px 12px;
}

.vehicle-pills { display: flex; gap: 8px; margin-bottom: 8px; }
.pill {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    border-radius: 14px;
    background: var(--paper);
    color: var(--ink);
    font-weight: 700;
    font-size: .85rem;
}
.pill { cursor: pointer; position: relative; }
.pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.pill.active,
.pill:has(input:checked) { background: var(--ink); color: #fff; }

.place-field { position: relative; }
.place-suggest {
    position: absolute;
    z-index: 80;
    left: 0;
    right: 0;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-height: 240px;
    overflow: auto;
}
.place-suggest button {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 8px 12px;
    cursor: pointer;
}
.place-suggest button small { display: block; color: var(--muted); font-size: .8rem; }
.place-suggest .place-empty { padding: 10px 12px; color: var(--muted); font-size: .85rem; }
.book-steps {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    flex-wrap: wrap;
    font-size: .9rem;
    color: var(--muted);
}
.book-steps .is-active { color: var(--ink); font-weight: 700; }
.book-steps .is-done { color: var(--ok); }

.route-form .soon-note { margin-top: 12px; }

.page-hero {
    background:
        radial-gradient(circle at 85% 10%, rgba(245,166,35,.25), transparent 36%),
        linear-gradient(160deg, #07140f 0%, #123328 100%);
    color: #fff;
    padding: 52px 0 48px;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero .lede { color: rgba(255,255,255,.78); margin: 0; }

.prose { max-width: 720px; }
.prose h2 { margin-top: 28px; }
.prose p { color: var(--muted); }

textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font: inherit;
    resize: vertical;
}
textarea:focus {
    outline: 2px solid var(--amber);
    border-color: var(--amber);
}

.route-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 20px;
    align-items: stretch;
}
.route-map {
    min-height: 440px;
    border-radius: 22px;
    border: 1px solid var(--line);
    overflow: hidden;
    background: #d7e4dc;
}
.route-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.route-summary span { display: block; font-size: .85rem; }

.contact-layout {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 20px;
    align-items: start;
}

.faq-list details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 10px;
}
.faq-list summary { font-weight: 700; cursor: pointer; }
.faq-list p { margin: 10px 0 0; }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: #fff; }
.section-head { max-width: 640px; margin-bottom: 36px; }

.grid-3, .grid-4 {
    display: grid;
    gap: 18px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.tile {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
    transition: transform .18s ease, box-shadow .18s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--mint);
    margin-bottom: 14px;
    font-size: 1.3rem;
}
.step-num {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--amber);
    display: grid;
    place-items: center;
    font-weight: 800;
    margin-bottom: 14px;
}

.cta-band {
    margin: 0 0 72px;
    background: linear-gradient(120deg, var(--forest) 0%, var(--ink) 100%);
    color: #fff;
    border-radius: 28px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.cta-band p { color: rgba(255,255,255,.78); margin: 8px 0 0; }

.status-panel { margin-bottom: 72px; }
.health {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 20px 24px;
}
.health-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 6px rgba(21,128,61,.15);
    display: inline-block;
    margin-right: 8px;
}
.health[data-down="1"] .health-dot {
    background: var(--danger);
    box-shadow: 0 0 0 6px rgba(155,28,28,.15);
}

/* Auth */
.auth-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - var(--nav-h) - 180px);
}
.auth-visual {
    background:
        radial-gradient(circle at 20% 20%, rgba(245,166,35,.3), transparent 40%),
        linear-gradient(165deg, #0c1a14, #1f4d3a);
    color: #fff;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.auth-visual h2 { color: #fff; font-size: 2.2rem; }
.auth-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}
.auth-card { width: min(420px, 100%); box-shadow: none; border: 0; background: transparent; padding: 0; }
.auth-card h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

/* Dashboard */
.page { padding: 40px 0 72px; }
.dash-hero {
    background: linear-gradient(135deg, var(--ink), var(--forest));
    color: #fff;
    border-radius: 28px;
    padding: 36px;
    margin-bottom: 22px;
}
.dash-hero p { color: rgba(255,255,255,.75); }
.dash-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Footer */
.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,.72);
    padding: 48px 0 24px;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.legal { padding-top: 18px; font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.quote-price { font-size: 1.6rem; font-weight: 800; margin: 8px 0; color: var(--ink); }
.vehicle-quotes { margin-top: 28px; }
.app-download { margin: 12px 0 8px; }
.app-download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}
.app-card { text-align: center; }
.app-card img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 22px;
    background: #fff;
    margin: 0 auto 12px;
    display: block;
    box-shadow: 0 10px 30px rgba(12, 26, 20, .12);
}

@media (max-width: 960px) {
    .app-download-grid { grid-template-columns: 1fr; }
    .hero-grid, .auth-shell, .grid-3, .grid-4, .footer-grid, .stats, .cta-band, .route-layout, .contact-layout, .route-summary {
        grid-template-columns: 1fr;
        display: grid;
    }
    .cta-band { display: grid; }
    .nav-toggle { display: grid; place-items: center; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0c1a14;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 6px;
        border-bottom: 1px solid rgba(245,166,35,.18);
    }
    .site-nav.open { display: flex; }
    .auth-visual { display: none; }
    .hero { padding: 48px 0 56px; }
    .section { padding: 52px 0; }
}
