/* =====================================================================
   "Get A Lower Rate" landing — bold night theme.
   Flexbox layout, design tokens in :root, mobile-first breakpoints.
   ===================================================================== */
:root {
    --bg: #0A0E1A;
    --bg-2: #111A2E;
    --surface: rgba(255, 255, 255, .045);
    --surface-2: rgba(255, 255, 255, .08);
    --line: rgba(255, 255, 255, .11);
    --ink: #F5F7FB;
    --ink-2: #C9D1E3;
    --muted: #8E9AB5;
    --coral: #FF4D5E;
    --coral-dark: #E12F44;
    --coral-glow: rgba(255, 77, 94, .45);
    --blue: #3B7BFF;
    --blue-light: #7FA6FF;
    --blue-glow: rgba(59, 123, 255, .35);
    --radius: 26px;
    --radius-s: 14px;
    --shadow: 0 30px 70px -30px rgba(0, 0, 0, .8);
    --font-display: 'Unbounded', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
    --container: 1140px;
    --gutter: 24px;
    --topbar-h: 72px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
s { text-decoration: none; }
em { font-style: normal; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.page { position: relative; display: flex; flex-direction: column; min-height: 100vh; }
.main { flex: 1 0 auto; display: flex; flex-direction: column; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(860px + var(--gutter) * 2); }

/* ---------- page backdrop: glows + fine grid ---------- */
.page__bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--bg); overflow: hidden; }
.page__bg::before {
    content: ""; position: absolute; inset: -20% -10% auto; height: 90vh;
    background:
        radial-gradient(600px 420px at 18% 10%, rgba(59, 123, 255, .28), transparent 70%),
        radial-gradient(640px 460px at 84% 0%, rgba(255, 77, 94, .22), transparent 70%);
}
.page__bg::after {
    content: ""; position: absolute; inset: 0; opacity: .35;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 65%);
    mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 65%);
}

/* ---------- topbar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10, 14, 26, .55);
    -webkit-backdrop-filter: saturate(140%) blur(16px);
    backdrop-filter: saturate(140%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s, background .25s;
}
.topbar.is-stuck { border-bottom-color: var(--line); background: rgba(10, 14, 26, .8); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--topbar-h); gap: 16px; min-width: 0; }
.logo { display: flex; align-items: center; color: var(--coral); min-width: 0; }
.logo .brand-name { overflow: hidden; text-overflow: ellipsis; }
.logo img, .footer__brand img { height: 40px; width: auto; max-width: min(300px, calc(100vw - 160px)); object-fit: contain; object-position: left center; }
.brand-mark { display: inline-flex; align-items: center; gap: 10px; }
.brand-emblem { width: 36px; height: 36px; flex: 0 0 auto; filter: drop-shadow(0 6px 14px var(--coral-glow)); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.topbar__tag {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
    font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.topbar__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255, 77, 94, .18); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 58px; padding: 0 30px; border-radius: 999px; white-space: nowrap;
    font-family: var(--font-body); font-weight: 700; font-size: 17px; line-height: 1; letter-spacing: .01em;
    transition: transform .2s, box-shadow .2s, background .2s;
}
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; transition: transform .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--coral); color: #fff; box-shadow: 0 16px 36px -12px var(--coral-glow), inset 0 -3px 0 rgba(0, 0, 0, .18); }
.btn--primary:hover { background: var(--coral-dark); box-shadow: 0 20px 44px -12px var(--coral-glow), inset 0 -3px 0 rgba(0, 0, 0, .18); }
.btn--primary:hover svg { transform: translateX(4px); }
.cta .btn--primary:hover svg { transform: translateX(4px); }

/* ---------- eyebrow ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-light); }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px var(--blue-glow); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 48px 0 24px; }
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__title {
    margin-top: 18px; max-width: 980px;
    font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.08;
    font-size: clamp(28px, 4.6vw, 54px); color: var(--ink);
}
.hero__title .was { position: relative; color: var(--muted); font-weight: 700; white-space: nowrap; }
.hero__title .was::after { content: ""; position: absolute; left: -3%; right: -3%; top: 54%; height: .08em; background: var(--coral); border-radius: 4px; transform: rotate(-7deg); }
.hero__title .now {
    white-space: nowrap;
    background: linear-gradient(90deg, #FF6B78, var(--coral) 45%, var(--blue-light));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.showcase {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
    width: 100%; max-width: 980px; margin-top: 36px; padding: 10px 0 34px;
}
.showcase__glow {
    position: absolute; left: 50%; bottom: 10px; width: min(760px, 100%); height: 220px; transform: translateX(-50%);
    background: radial-gradient(closest-side, var(--blue-glow), transparent 72%); filter: blur(30px); pointer-events: none;
}
.price {
    position: relative; display: inline-flex; align-items: flex-start; line-height: .9;
    font-family: var(--font-display); font-weight: 800; color: var(--blue); letter-spacing: -.04em;
    text-shadow: 0 20px 60px var(--blue-glow);
}
.price__cur { font-size: clamp(26px, 7vw, 62px); margin-top: .18em; margin-right: .04em; }
.price__int { font-size: clamp(64px, 23vw, 190px); font-variant-numeric: tabular-nums; }
.price__dec { font-size: clamp(20px, 5.5vw, 44px); margin-top: .22em; color: var(--muted); letter-spacing: -.02em; }
.price__per { font-size: clamp(18px, 5vw, 36px); align-self: flex-end; margin-left: .18em; margin-bottom: .14em; color: var(--blue-light); letter-spacing: -.02em; }
.car { position: relative; width: min(560px, 92%); animation: drive 7s ease-in-out infinite; }
.car img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); }
.showcase__road {
    position: absolute; left: 50%; bottom: 22px; width: min(820px, 96%); height: 2px; transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(127, 166, 255, .7) 30%, rgba(255, 77, 94, .7) 70%, transparent);
}
.showcase__road::after {
    content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 1px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 28px, transparent 28px 52px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}
@keyframes drive { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.hero__lead { margin-top: 28px; max-width: 760px; font-size: clamp(17px, 2vw, 21px); font-weight: 500; color: var(--ink-2); }
.hero__actions { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 30px; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }

/* ---------- quiz card ---------- */
.quiz { padding: 32px 0 24px; scroll-margin-top: calc(var(--topbar-h) + 8px); }
.quiz__card {
    position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 34px 22px 32px; border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
    border: 1px solid var(--line); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .08);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.quiz__meta { display: flex; align-items: center; justify-content: space-between; width: 100%; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.quiz__step { color: var(--coral); }
.quiz__hint { color: var(--muted); }
.quiz__bar { width: 100%; height: 6px; margin-top: 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.quiz__bar-fill { display: block; width: 34%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--coral), #FF8A94); box-shadow: 0 0 18px var(--coral-glow); }
.quiz__title { margin-top: 30px; font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-size: clamp(26px, 4.4vw, 42px); color: var(--ink); }
.quiz__options { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; margin-top: 30px; }
.opt {
    flex: 1 1 calc(50% - 6px); display: inline-flex; align-items: center; justify-content: center;
    min-height: 68px; padding: 0 16px; border-radius: 16px;
    background: var(--coral); color: #fff;
    font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; white-space: nowrap;
    box-shadow: 0 14px 30px -14px var(--coral-glow), inset 0 -4px 0 rgba(0, 0, 0, .2);
    transition: transform .2s, box-shadow .2s, background .2s;
}
.opt:hover, .opt:focus-visible { background: var(--coral-dark); transform: translateY(-3px); box-shadow: 0 22px 38px -14px var(--coral-glow), inset 0 -4px 0 rgba(0, 0, 0, .2); }
.opt:active { transform: translateY(0); }
.quiz__note { margin-top: 26px; font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--ink); }

/* ---------- stats ---------- */
.stats { padding: 28px 0 10px; }
.stats__grid { display: flex; flex-wrap: wrap; gap: 14px; }
.stat {
    flex: 1 1 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
    padding: 26px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
}
.stat__value { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.stat__label { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }

/* ---------- cta ---------- */
.cta { padding: 44px 0 90px; }
.cta__band {
    position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
    padding: 40px 28px; border-radius: var(--radius); border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(59, 123, 255, .22), rgba(255, 77, 94, .14) 70%, rgba(255, 255, 255, .03)); box-shadow: var(--shadow);
}
.cta__band::before {
    content: ""; position: absolute; right: -140px; top: -180px; width: 440px; height: 440px; border-radius: 50%;
    background: radial-gradient(closest-side, var(--coral-glow), transparent 70%); filter: blur(10px); pointer-events: none;
}
.cta__copy { position: relative; }
.cta__title { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; font-size: clamp(24px, 3.4vw, 36px); color: var(--ink); }
.cta__text { margin-top: 10px; color: var(--ink-2); font-size: 17px; }
.cta .btn { position: relative; }

/* ---------- legal pages ---------- */
.legal { padding: 52px 0 90px; }
.legal__head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.legal__title { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; font-size: clamp(30px, 4.6vw, 48px); color: var(--ink); }
.legal__body {
    margin-top: 28px; padding: 34px 26px; border-radius: var(--radius); background: var(--surface);
    border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; font-size: 16.5px; line-height: 1.72;
}
.legal__body h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; font-size: 20px; color: var(--ink); margin-top: 18px; }
.legal__body ul, .legal__body ol { display: flex; flex-direction: column; gap: 6px; padding-left: 22px; }
.legal__body ul { list-style: disc; }
.legal__body ol { list-style: decimal; }
.legal__body li::marker { color: var(--coral); font-weight: 700; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: var(--muted); padding: 40px 0 44px; }
.footer__top { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.footer__brand { color: var(--coral); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px; }
.footer__nav a { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; transition: border-color .2s, background .2s; }
.footer__nav a:hover { border-color: var(--coral); background: rgba(255, 77, 94, .12); }
.footer__legal { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; font-size: 13px; line-height: 1.65; }
.footer__copy { color: var(--ink-2); font-weight: 600; }

/* ---------- back to top ---------- */
.to-top {
    position: fixed; right: 18px; bottom: 18px; z-index: 40;
    display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
    background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal--delay { transition-delay: .12s; }
.reveal--delay-2 { transition-delay: .24s; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .car { animation: none; }
    .btn, .opt { transition: none; }
}

/* ---------- breakpoints ---------- */
@media (min-width: 640px) {
    .hero__actions { flex-direction: row; gap: 22px; }
    .opt { flex-basis: calc(33.333% - 8px); }
    .stat { flex-basis: calc(33.333% - 10px); }
    .quiz__card { padding: 40px 40px 38px; }
    .footer__top { flex-direction: row; align-items: center; justify-content: space-between; }
    .cta__band { padding: 48px 44px; }
    .legal__body { padding: 44px 48px; }
}
@media (min-width: 900px) {
    .hero { padding: 64px 0 32px; }
    .showcase { flex-direction: row; justify-content: center; align-items: center; gap: 32px; padding: 20px 0 44px; }
    .car { width: 46%; max-width: 520px; }
    .opt { flex: 1 1 0; }
    .quiz__card { padding: 44px 48px 42px; }
    .cta__band { flex-direction: row; align-items: center; justify-content: space-between; padding: 52px 56px; }
}
@media (max-width: 420px) {
    .btn { white-space: normal; text-align: center; }
    .brand-name { font-size: 14px; }
    .brand-emblem { width: 30px; height: 30px; }
    .topbar__tag { font-size: 10px; padding: 0 9px; height: 26px; gap: 6px; letter-spacing: .06em; }
}

/* ---------- offer pop-up (every page load, 2s delay) ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4, 6, 14, .72); opacity: 0; transition: opacity .3s; }
.modal__box {
    position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
    width: 100%; max-width: 480px; padding: 52px 32px 40px; border-radius: 28px; background: #fff;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08);
    opacity: 0; transform: translateY(16px) scale(.96);
    transition: opacity .35s cubic-bezier(.2, .7, .2, 1), transform .35s cubic-bezier(.2, .7, .2, 1);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal__close {
    position: absolute; top: 16px; right: 16px; display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #111; cursor: pointer;
    transition: background .2s;
}
.modal__close:hover { background: #F0F2F7; }
.modal__close svg { width: 20px; height: 20px; }
.modal__title {
    font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.15;
    font-size: clamp(22px, 3.6vw, 32px); color: #1E4FD6; max-width: 380px;
}
.btn--modal {
    margin-top: 28px; min-width: 190px; color: #fff;
    background: linear-gradient(135deg, var(--coral), #FF7A86); box-shadow: 0 16px 34px -12px var(--coral-glow), inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.btn--modal:hover { background: linear-gradient(135deg, var(--coral-dark), var(--coral)); }
body.is-modal-open { overflow: hidden; }
@media (min-width: 640px) { .modal__box { padding: 56px 48px 44px; } }

/* ---------- per-site overrides ---------- */
.car--photo { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--bg-2); }
.car--photo img { filter: none; }
@media (min-width: 900px) { .showcase { gap: 40px; } .car--photo { flex: 0 0 auto; width: 40%; max-width: 440px; } .price__int { font-size: clamp(64px, 23vw, 160px); } }
.legal__date { font-size: 14px; font-weight: 600; color: var(--muted); }
