/*
 * IDMS Showroom — demo vehicle marketplace (static, no database).
 * Visual language borrowed from the IDMS sign-in screens (resources/css/login-v3.css):
 * the .ial-auth--bovine palette: Bovine slate brand panels fading to
 * azul-marinho, azul-principal primary, Manrope display + Karla body,
 * and the rotated-square "steps" motif on dark brand panels.
 */

:root {
    --bovine-50: #f3f4f5;
    --bovine-200: #c3c7ca;
    --bovine-500: #52585c;
    --bovine-800: #2a2d2f;
    --bovine-900: #1c1e20;
    --azul-nevoa: #dce8f2;
    --azul-aco: #6f93b3;
    --azul-principal: #2f6fa8;
    --azul-marinho: #1e3a5f;

    --navy-dark: var(--azul-marinho);   /* hover, footer, compare bar */
    --navy: var(--azul-principal);      /* buttons, links, headings, active states */
    --navy-2: var(--azul-marinho);
    --bovine: var(--bovine-500);
    --soft: var(--bovine-200);          /* text on the dark footer */
    --bg: var(--bovine-50);
    --surface: #ffffff;
    --text: var(--bovine-800);
    --muted: var(--bovine-500);
    --border: var(--bovine-200);
    --hairline: #eef2f7;
    --accent: var(--azul-principal);
    --accent-ink: var(--azul-marinho);
    --good: #12805c;
    --good-bg: #e3f4ed;
    --warn: #b45309;
    --warn-bg: #fdf0e1;
    --danger: #b42318;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(28, 30, 32, .06), 0 1px 3px rgba(28, 30, 32, .05);
    --shadow: 0 6px 24px rgba(28, 30, 32, .08), 0 2px 6px rgba(28, 30, 32, .05);
    --shadow-lg: 0 24px 60px rgba(28, 30, 32, .22);
    --display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4, h5, .display {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--bovine-900);   /* as the login screen's headings */
    margin: 0 0 .5rem;
    line-height: 1.15;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--accent-ink); }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.xsmall { font-size: .78rem; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buttons ---------------------------------------------------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    height: 46px; padding: 0 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-family: var(--display); font-weight: 700; font-size: .92rem;
    transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
    white-space: nowrap;
    text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); color: #fff; box-shadow: 0 6px 18px rgba(30, 58, 95, .3); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); color: #fff; box-shadow: 0 6px 18px rgba(30, 58, 95, .3); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--border); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn-whatsapp { background: #128c4b; color: #fff; }
.btn-whatsapp:hover { background: #0d7139; color: #fff; }
.btn-sm { height: 36px; padding: 0 .9rem; font-size: .84rem; }
.btn-block { width: 100%; }
.icon-btn {
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-grid; place-items: center;
    border: 1px solid var(--border); background: #fff; color: var(--navy);
    transition: all .15s; position: relative;
}
.icon-btn:hover { border-color: var(--navy); }
.icon-btn .count {
    position: absolute; top: -4px; right: -4px;
    min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
    background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700;
    display: grid; place-items: center; border: 2px solid #fff;
}

/* ---------- Header ----------------------------------------------------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--border);
}
.topbar {
    background: var(--navy-dark); color: var(--soft);
    font-size: .8rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 34px; gap: 1rem; }
.topbar a { color: var(--soft); }
.topbar a:hover { color: #fff; }
.topbar .tb-links { display: flex; gap: 1.25rem; }
.header-row { display: flex; align-items: center; gap: 2rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--navy); letter-spacing: -.03em; }
.brand:hover { color: var(--navy); }
.brand svg { width: 36px; height: 36px; }
.brand small { display: block; font-family: var(--body); font-weight: 500; font-size: .68rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-top: -3px; }
.main-nav { display: flex; gap: .25rem; flex: 1; }
.main-nav a {
    padding: .5rem .85rem; border-radius: var(--radius-sm);
    font-family: var(--display); font-weight: 600; font-size: .92rem; color: var(--text);
}
.main-nav a:hover { background: var(--bg); color: var(--navy); }
.main-nav a.active { color: var(--navy); background: var(--azul-nevoa); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; }

@media (max-width: 1020px) {
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: #fff; padding: .75rem 20px 1rem; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
    .main-nav.open { display: flex; }
    .nav-toggle { display: inline-grid; }
    .header-row { gap: 1rem; justify-content: space-between; }
    .header-actions .btn-dealer span { display: none; }
    .topbar .tb-links { display: none; }
}

/* ---------- Brand-panel motif (IDMS login) ----------------------------- */

.ial-panel {
    position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(145deg, var(--bovine-900) 0%, var(--bovine-800) 50%, var(--azul-marinho) 100%);
}
.ial-panel::before, .ial-panel::after {
    content: ""; position: absolute; pointer-events: none;
    border: 2px solid rgba(111, 147, 179, .18);
    transform: rotate(45deg);
}
.ial-panel::before { width: 620px; height: 620px; right: -260px; bottom: -330px; }
.ial-panel::after { width: 400px; height: 400px; right: -110px; bottom: -200px; border-color: rgba(111, 147, 179, .36); }
.ial-panel > * { position: relative; z-index: 1; }
.ial-panel h1, .ial-panel h2, .ial-panel h3 { color: #fff; }
.ial-rule { width: 56px; height: 3px; border-radius: 3px; background: var(--soft); margin-bottom: 1.25rem; }

/* ---------- Hero ------------------------------------------------------- */

.hero { padding: 4.5rem 0 7.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.05; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--soft); }
.hero .lead { color: rgba(255, 255, 255, .78); font-style: italic; font-size: 1.12rem; max-width: 32rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; }
.hero-badges div { display: flex; flex-direction: column; }
.hero-badges strong { font-family: var(--display); font-size: 1.6rem; color: #fff; }
.hero-badges span { font-size: .82rem; color: var(--soft); }
.hero-car { position: relative; }
.hero-car .hero-svg { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); animation: float 6s ease-in-out infinite; }
.hero-car .tag {
    position: absolute; background: #fff; color: var(--text); border-radius: 12px;
    padding: .6rem .85rem; box-shadow: var(--shadow-lg); font-size: .82rem; display: flex; gap: .55rem; align-items: center;
}
.hero-car .tag i { font-size: 1.2rem; color: var(--accent); }
.hero-car .tag strong { display: block; font-family: var(--display); color: var(--navy); font-size: .95rem; }
.hero-car .tag.t1 { top: 4%; left: 2%; animation: float 5s ease-in-out infinite .5s; }
.hero-car .tag.t2 { bottom: 4%; right: 0; animation: float 5.5s ease-in-out infinite 1s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-car { display: none; }
    .hero { padding: 3rem 0 7rem; }
}

/* ---------- Search card ------------------------------------------------ */

.search-card {
    position: relative; z-index: 5;
    margin-top: -5rem;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 0 1.5rem 1.5rem;
}
.search-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; }
.search-tabs button {
    background: none; border: 0; padding: 1rem 1.1rem .9rem;
    font-family: var(--display); font-weight: 700; color: var(--muted); font-size: .95rem;
    border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.search-tabs button.active { color: var(--navy); border-color: var(--navy); }
.search-grid { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: .85rem; align-items: end; }
.search-extra { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; flex-wrap: wrap; gap: .75rem; }
.search-extra .quick { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
@media (max-width: 1020px) { .search-grid { grid-template-columns: repeat(2, 1fr); } .search-grid .btn { grid-column: 1 / -1; } }
@media (max-width: 560px) { .search-grid { grid-template-columns: 1fr; } }

/* ---------- Forms ------------------------------------------------------ */

.field label, .label {
    display: block; font-weight: 600; font-size: .82rem; color: var(--text); margin-bottom: .35rem;
}
.control, .field select, .field input, .field textarea {
    width: 100%; height: 46px; padding: 0 .85rem;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; padding: .7rem .85rem; resize: vertical; min-height: 110px; }
.field select, select.control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2352585c' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .85rem center; padding-right: 2.2rem;
}
.control:focus, .field select:focus, .field input:focus, .field textarea:focus {
    outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(47, 111, 168, .2);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field .err { display: none; color: var(--danger); font-size: .78rem; margin-top: .25rem; font-weight: 600; }
.field.invalid .err { display: block; }
.input-icon { position: relative; }
.input-icon i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--bovine); }
.input-icon .control { padding-left: 2.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.check { display: flex; gap: .55rem; align-items: center; font-size: .9rem; cursor: pointer; padding: .2rem 0; }
.check input { width: 17px; height: 17px; accent-color: var(--navy); }
input[type=range] { width: 100%; accent-color: var(--navy); }

/* ---------- Chips & badges --------------------------------------------- */

.chip {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .35rem .75rem; border-radius: 999px;
    background: #fff; border: 1px solid var(--border);
    font-size: .82rem; font-weight: 600; color: var(--text);
    transition: all .15s;
}
button.chip:hover, a.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .x { opacity: .6; }
.badge {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .22rem .55rem; border-radius: 6px;
    font-size: .7rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
    background: var(--navy); color: #fff;
}
.badge.good { background: var(--good-bg); color: var(--good); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.blue { background: var(--azul-nevoa); color: var(--accent-ink); }
.badge.slate { background: #eceef0; color: var(--bovine); }
.badge.dark { background: rgba(28, 30, 32, .78); color: #fff; backdrop-filter: blur(4px); }

/* ---------- Sections --------------------------------------------------- */

.section { padding: 4.5rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0; }
.section-head p { margin: .35rem 0 0; color: var(--muted); font-style: italic; }
.eyebrow { display: inline-block; font-family: var(--display); font-weight: 700; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .5rem; }
.ial-panel .eyebrow { color: var(--soft); }
.link-arrow { font-family: var(--display); font-weight: 700; font-size: .92rem; display: inline-flex; gap: .35rem; align-items: center; }
.link-arrow:hover i { transform: translateX(3px); }
.link-arrow i { transition: transform .15s; }
.bg-white { background: #fff; }

/* ---------- Body type tiles -------------------------------------------- */

.body-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: .85rem; }
.body-tile {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.1rem .75rem .9rem; text-align: center; transition: all .2s;
}
.body-tile:hover { border-color: var(--navy); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--navy); }
.body-tile svg { height: 54px; margin: 0 auto .5rem; }
.body-tile strong { display: block; font-family: var(--display); color: var(--navy); }
.body-tile span { font-size: .8rem; color: var(--muted); }
@media (max-width: 900px) { .body-tiles { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Car cards -------------------------------------------------- */

.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.25rem; }
.car-card {
    background: #fff; border-radius: var(--radius); border: 1px solid var(--border);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    position: relative;
}
.car-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c9ced2; }
.car-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e9ecef; }
.car-media svg { width: 100%; height: 100%; transition: transform .5s; }
.car-card:hover .car-media svg { transform: scale(1.04); }
.car-media .badges { position: absolute; top: .7rem; left: .7rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.car-media .photos { position: absolute; bottom: .7rem; left: .7rem; }
.fav-btn {
    position: absolute; top: .6rem; right: .6rem; z-index: 2;
    width: 36px; height: 36px; border-radius: 50%; border: 0;
    background: rgba(255, 255, 255, .92); color: var(--navy);
    display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: transform .15s;
}
.fav-btn:hover { transform: scale(1.1); }
.fav-btn.on { color: #d6336c; }
.fav-btn.on i::before { content: "\f415"; } /* bi-heart-fill */
.car-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.car-title { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--navy); line-height: 1.25; margin: 0; }
.car-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.car-variant { font-size: .85rem; color: var(--muted); margin-top: -.35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.specs { display: flex; flex-wrap: wrap; gap: .35rem; }
.specs span { font-size: .76rem; font-weight: 600; background: var(--bg); color: var(--bovine); padding: .2rem .5rem; border-radius: 6px; display: inline-flex; gap: .25rem; align-items: center; }
.car-foot { display: flex; justify-content: space-between; align-items: end; margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--hairline); gap: .5rem; }
.price { font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--navy); letter-spacing: -.02em; line-height: 1; }
.price-sub { font-size: .78rem; color: var(--muted); margin-top: .25rem; }
.loc { font-size: .78rem; color: var(--muted); text-align: right; display: flex; align-items: center; gap: .2rem; }
.compare-toggle { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 600; color: var(--muted); cursor: pointer; user-select: none; }
.compare-toggle input { accent-color: var(--navy); }

/* list view */
.car-grid.list { grid-template-columns: 1fr; }
.car-grid.list .car-card { flex-direction: row; }
.car-grid.list .car-media { width: 340px; flex-shrink: 0; aspect-ratio: auto; min-height: 210px; }
@media (max-width: 700px) {
    .car-grid.list .car-card { flex-direction: column; }
    .car-grid.list .car-media { width: 100%; aspect-ratio: 16 / 10; min-height: 0; }
}

/* horizontal scroller */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem .25rem 1rem; margin: 0 -.25rem; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .scroller { grid-auto-columns: calc((100% - 3.75rem) / 4); } }
.scroller-nav { display: flex; gap: .5rem; }

/* ---------- Makes ------------------------------------------------------ */

.makes { display: grid; grid-template-columns: repeat(8, 1fr); gap: .75rem; }
.make-tile {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1rem .5rem; text-align: center; transition: all .2s;
}
.make-tile:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.monogram {
    width: 52px; height: 52px; margin: 0 auto .55rem; border-radius: 50%;
    display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.05rem;
    color: #fff; background: linear-gradient(145deg, var(--bovine-800) 0%, var(--azul-marinho) 100%);
    letter-spacing: -.02em;
}
.make-tile strong { display: block; font-family: var(--display); font-size: .88rem; color: var(--navy); }
.make-tile span { font-size: .76rem; color: var(--muted); }
@media (max-width: 1020px) { .makes { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Feature / value blocks ------------------------------------- */

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.value {
    background: #fff; border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--border);
}
.value .ico {
    width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
    background: var(--azul-nevoa); color: var(--navy); font-size: 1.35rem; margin-bottom: 1rem;
}
.value h3 { font-size: 1.05rem; }
.value p { margin: 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 1020px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

.band { border-radius: 20px; padding: 3rem; display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; }
.band p { color: rgba(255, 255, 255, .8); }
.band .mini-calc { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--radius); padding: 1.5rem; }
.band .mini-calc label { color: var(--soft); font-size: .82rem; display: flex; justify-content: space-between; font-weight: 600; }
.band .mini-calc label b { color: #fff; font-family: var(--display); }
.band .mini-calc input[type=range] { accent-color: #fff; margin: .4rem 0 1rem; }
.band .mini-result { display: flex; justify-content: space-between; align-items: end; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 1rem; }
.band .mini-result strong { font-family: var(--display); font-size: 2rem; color: #fff; line-height: 1; }
@media (max-width: 900px) { .band { grid-template-columns: 1fr; padding: 2rem 1.5rem; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.step { background: #fff; border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--border); position: relative; }
.step::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: #e3e7ec; position: absolute; top: .8rem; right: 1.2rem; line-height: 1;
}
.step h3 { font-size: 1.08rem; margin-top: .5rem; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }
.step i { font-size: 1.6rem; color: var(--accent); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* dealer cards */
.dealer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.dealer-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column; transition: all .2s; }
.dealer-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.dealer-cover { height: 92px; position: relative; }
.dealer-cover::before, .dealer-cover::after { width: 220px; height: 220px; right: -80px; bottom: -150px; }
.dealer-cover::after { width: 140px; height: 140px; right: -30px; bottom: -100px; }
.dealer-logo {
    position: absolute; left: 1.1rem; bottom: -26px; width: 56px; height: 56px; border-radius: 14px;
    background: #fff; display: grid; place-items: center; box-shadow: var(--shadow);
    font-family: var(--display); font-weight: 800; color: var(--navy); font-size: 1.1rem; z-index: 2;
}
.dealer-body { padding: 2.1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.dealer-body h3 { font-size: 1.05rem; margin: 0; }
.stars { color: #e3a008; font-size: .82rem; display: inline-flex; gap: 1px; align-items: center; }
.stars b { color: var(--text); margin-left: .35rem; font-family: var(--display); }
.dealer-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hairline); margin-top: auto; padding-top: .75rem; text-align: center; }
.dealer-stats strong { display: block; font-family: var(--display); color: var(--navy); }
.dealer-stats span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* articles */
.articles { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.25rem; }
.article { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); display: flex; flex-direction: column; transition: all .2s; }
.article:hover { box-shadow: var(--shadow); }
.article .art { aspect-ratio: 16 / 9; overflow: hidden; }
.article .art svg { width: 100%; height: 100%; }
.article .a-body { padding: 1.1rem 1.2rem 1.3rem; }
.article h3 { font-size: 1.08rem; margin: .4rem 0; }
.article p { color: var(--muted); font-size: .9rem; margin: 0; }
.article.big h3 { font-size: 1.4rem; }
@media (max-width: 900px) { .articles { grid-template-columns: 1fr; } }

/* app cta */
.app-cta { border-radius: 20px; padding: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.store-btns { display: flex; gap: .75rem; flex-wrap: wrap; }
.store-btn { display: flex; align-items: center; gap: .6rem; background: #000; color: #fff; padding: .55rem 1.1rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); }
.store-btn:hover { color: #fff; background: #111; }
.store-btn i { font-size: 1.6rem; }
.store-btn small { display: block; font-size: .66rem; opacity: .75; }
.store-btn b { font-family: var(--display); font-size: .98rem; line-height: 1; }

/* ---------- Footer ----------------------------------------------------- */

.site-footer { background: var(--navy-dark); color: var(--soft); padding: 4rem 0 0; margin-top: 4rem; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--soft); }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: var(--soft); }
.socials { display: flex; gap: .5rem; margin-top: 1.25rem; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(183, 189, 193, .3); }
.socials a:hover { background: rgba(255, 255, 255, .08); }
.footer-bottom { border-top: 1px solid rgba(183, 189, 193, .15); margin-top: 3rem; padding: 1.25rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .8rem; }
.powered { display: flex; align-items: center; gap: .6rem; }
.powered img { height: 22px; opacity: .9; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Page header (inner pages) ---------------------------------- */

.page-hero { padding: 2.75rem 0 3rem; }
.page-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: .4rem; }
.page-hero p { color: rgba(255, 255, 255, .78); font-style: italic; margin: 0; max-width: 40rem; }
.crumbs { font-size: .82rem; color: var(--soft); margin-bottom: .9rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.crumbs a { color: var(--soft); }
.crumbs a:hover { color: #fff; }
.crumbs.dark { color: var(--muted); }
.crumbs.dark a { color: var(--muted); }
.crumbs.dark a:hover { color: var(--navy); }

/* ---------- Listings layout -------------------------------------------- */

.listing-layout { display: grid; grid-template-columns: 290px 1fr; gap: 1.75rem; align-items: start; padding: 2rem 0; }
.filters { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; }
.filters-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--hairline); position: sticky; top: 0; background: #fff; z-index: 2; }
.filters-head h3 { margin: 0; font-size: 1.05rem; }
.filters-head button { background: none; border: 0; color: var(--accent-ink); font-weight: 700; font-size: .84rem; }
.f-group { padding: 1rem 1.2rem; border-bottom: 1px solid var(--hairline); }
.f-group:last-child { border-bottom: 0; }
.f-group > .label { margin-bottom: .6rem; display: flex; justify-content: space-between; }
.f-group .chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.f-group .range-vals { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); font-weight: 600; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg); padding: 4px; border-radius: 10px; gap: 4px; }
.seg button { border: 0; background: transparent; padding: .5rem; border-radius: 7px; font-weight: 700; font-size: .84rem; color: var(--muted); font-family: var(--display); }
.seg button.active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.results-bar h2 { font-size: 1.35rem; margin: 0; }
.results-tools { display: flex; gap: .6rem; align-items: center; }
.results-tools select { height: 40px; width: auto; }
.view-toggle { display: flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.view-toggle button { border: 0; background: #fff; width: 40px; height: 38px; color: var(--muted); }
.view-toggle button.active { background: var(--navy); color: #fff; }
.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.1rem; }
.empty { text-align: center; padding: 4rem 1rem; background: #fff; border-radius: var(--radius); border: 1px dashed var(--border); }
.empty i { font-size: 2.6rem; color: var(--soft); }
.pager { display: flex; justify-content: center; gap: .35rem; margin-top: 2rem; }
.pager button { min-width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: #fff; font-weight: 700; color: var(--text); }
.pager button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager button:disabled { opacity: .4; cursor: default; }
.filters-open { display: none; }
@media (max-width: 980px) {
    .listing-layout { grid-template-columns: 1fr; }
    .filters { display: none; position: fixed; inset: 0; top: 0; max-height: none; border-radius: 0; z-index: 90; }
    .filters.open { display: block; }
    .filters-open { display: inline-flex; }
    .filters .close-filters { display: inline-grid !important; }
}
.close-filters { display: none !important; }

/* ---------- Vehicle detail --------------------------------------------- */

.detail-layout { display: grid; grid-template-columns: 1fr 380px; gap: 1.75rem; align-items: start; padding: 1.5rem 0 2rem; }
.gallery { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.gallery-main { position: relative; aspect-ratio: 16 / 9.4; background: #e9ecef; }
.gallery-main svg { width: 100%; height: 100%; }
.gallery-main .g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--navy); box-shadow: var(--shadow); font-size: 1.1rem; }
.gallery-main .g-prev { left: 1rem; }
.gallery-main .g-next { right: 1rem; }
.gallery-main .g-count { position: absolute; bottom: 1rem; right: 1rem; }
.gallery-main .badges { position: absolute; top: 1rem; left: 1rem; display: flex; gap: .4rem; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; padding: .75rem; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 10; background: #e9ecef; opacity: .7; transition: all .15s; }
.thumbs button.active, .thumbs button:hover { border-color: var(--navy); opacity: 1; }
.thumbs svg { width: 100%; height: 100%; }
.panel { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 1.5rem; }
.panel + .panel { margin-top: 1.25rem; }
.panel h3 { font-size: 1.15rem; }
.key-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.key-spec { background: var(--bg); border-radius: 12px; padding: .9rem; }
.key-spec i { color: var(--bovine); font-size: 1.2rem; }
.key-spec span { display: block; font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: .3rem; }
.key-spec strong { font-family: var(--display); color: var(--navy); font-size: 1rem; }
@media (max-width: 700px) { .key-specs { grid-template-columns: repeat(2, 1fr); } }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin: -.5rem 0 1.25rem; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: .85rem 1rem; font-family: var(--display); font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.active { color: var(--navy); border-color: var(--navy); }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem 1rem; list-style: none; padding: 0; margin: 0; }
.feature-list li { display: flex; gap: .45rem; align-items: center; font-size: .92rem; }
.feature-list i { color: var(--good); }
@media (max-width: 700px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table td { padding: .65rem .25rem; border-bottom: 1px solid var(--hairline); }
.spec-table td:first-child { color: var(--muted); width: 45%; }
.spec-table td:last-child { font-weight: 600; }
.spec-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
@media (max-width: 700px) { .spec-cols { grid-template-columns: 1fr; } }
.sticky-col { position: sticky; top: 92px; }
.price-panel .price { font-size: 2.1rem; }
.price-panel h1 { font-size: 1.5rem; margin-bottom: .2rem; }
.insight { margin: 1.1rem 0; }
.insight-bar { position: relative; height: 10px; border-radius: 10px; background: linear-gradient(90deg, #12805c 0%, #6fbf73 35%, #e3a008 65%, #d9534f 100%); margin: .6rem 0 .35rem; }
.insight-bar .pin { position: absolute; top: 50%; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--navy); transform: translate(-50%, -50%); box-shadow: var(--shadow); }
.insight-labels { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); font-weight: 600; }
.dealer-mini { display: flex; gap: .85rem; align-items: center; }
.dealer-mini .dealer-logo { position: static; box-shadow: none; background: var(--bg); width: 52px; height: 52px; }
.dealer-mini h4 { margin: 0; font-size: 1rem; }
.divider { height: 1px; background: var(--hairline); margin: 1.1rem 0; }
.btn-stack { display: grid; gap: .6rem; }
.detail-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.calc-out { background: var(--bg); border-radius: 12px; padding: 1rem 1.1rem; display: grid; gap: .4rem; font-size: .9rem; }
.calc-out div { display: flex; justify-content: space-between; }
.calc-out .total { border-top: 1px solid var(--border); padding-top: .55rem; margin-top: .2rem; font-family: var(--display); font-weight: 800; color: var(--navy); font-size: 1.15rem; }
.range-field { margin-bottom: 1rem; }
.range-field .label { display: flex; justify-content: space-between; }
.range-field .label b { color: var(--navy); font-family: var(--display); }
@media (max-width: 1020px) { .detail-layout { grid-template-columns: 1fr; } .sticky-col { position: static; } }

/* ---------- Wizard (sell) ---------------------------------------------- */

.wizard { max-width: 860px; margin: -2.5rem auto 0; position: relative; z-index: 3; }
.wizard-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1.25rem; }
.wizard-steps div { background: #fff; border-radius: 12px; padding: .85rem 1rem; border: 1px solid var(--border); display: flex; gap: .7rem; align-items: center; font-weight: 600; color: var(--muted); font-size: .9rem; }
.wizard-steps div b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--muted); font-family: var(--display); flex-shrink: 0; }
.wizard-steps div.active { border-color: var(--navy); color: var(--navy); box-shadow: var(--shadow); }
.wizard-steps div.active b, .wizard-steps div.done b { background: var(--navy); color: #fff; }
.wizard-steps div.done { color: var(--navy); }
.wizard .pane { display: none; }
.wizard .pane.active { display: block; animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wizard-actions { display: flex; justify-content: space-between; margin-top: 1.5rem; gap: .75rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; }
@media (max-width: 700px) { .grid-3, .form-row { grid-template-columns: 1fr; } .wizard-steps span { display: none; } }
.option-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.option-card { position: relative; }
.option-card input { position: absolute; opacity: 0; }
.option-card label { display: block; border: 2px solid var(--border); border-radius: 12px; padding: 1rem; cursor: pointer; transition: all .15s; height: 100%; }
.option-card label i { font-size: 1.4rem; color: var(--bovine); }
.option-card label strong { display: block; font-family: var(--display); color: var(--navy); margin-top: .35rem; }
.option-card label span { font-size: .8rem; color: var(--muted); }
.option-card input:checked + label { border-color: var(--navy); background: var(--bovine-50); }
.option-card input:checked + label i { color: var(--navy); }
.option-card input:focus-visible + label { box-shadow: 0 0 0 3px rgba(47, 111, 168, .2); }
@media (max-width: 700px) { .option-cards { grid-template-columns: 1fr; } }
.valuation { text-align: center; padding: 1rem 0; }
.valuation .gauge { width: 260px; margin: 0 auto; }
.valuation .val-range { font-family: var(--display); font-weight: 800; font-size: 2.2rem; color: var(--navy); letter-spacing: -.02em; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; text-align: left; }
.plan { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; background: #fff; position: relative; }
.plan.featured { border: 2px solid var(--navy); box-shadow: var(--shadow); }
.plan.featured .badge { position: absolute; top: -11px; left: 1.3rem; }
.plan h4 { font-size: 1.05rem; margin: 0; }
.plan .p-price { font-family: var(--display); font-weight: 800; font-size: 1.7rem; color: var(--navy); margin: .4rem 0 .6rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1rem; font-size: .88rem; display: grid; gap: .35rem; }
.plan li i { color: var(--good); margin-right: .35rem; }
@media (max-width: 800px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Finance page ----------------------------------------------- */

.fin-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: start; }
.donut-wrap { display: flex; gap: 1.5rem; align-items: center; }
.donut-wrap svg { width: 170px; height: 170px; flex-shrink: 0; }
.legend { display: grid; gap: .5rem; font-size: .9rem; }
.legend span { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: .45rem; vertical-align: -1px; }
.big-out { font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: var(--navy); letter-spacing: -.03em; line-height: 1; }
.bank-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.bank { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1rem; text-align: center; }
.bank strong { font-family: var(--display); color: var(--navy); display: block; }
.bank span { font-size: .8rem; color: var(--muted); }
@media (max-width: 900px) { .fin-grid { grid-template-columns: 1fr; } .bank-row { grid-template-columns: 1fr 1fr; } .donut-wrap { flex-direction: column; } }

/* ---------- Overlay: modal, drawer, toast, compare --------------------- */

.overlay { position: fixed; inset: 0; background: rgba(28, 30, 32, .55); backdrop-filter: blur(3px); z-index: 100; display: none; align-items: center; justify-content: center; padding: 1rem; }
.overlay.open { display: flex; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 960px; max-height: calc(100vh - 2rem); overflow: auto; box-shadow: var(--shadow-lg); position: relative; animation: pop .25s ease; }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close { position: absolute; top: 1rem; right: 1rem; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--navy); font-size: 1.1rem; box-shadow: var(--shadow-sm); }
.modal-head { padding: 1.4rem 1.5rem 0; }
.modal-body { padding: 1.4rem 1.5rem 1.5rem; }

/* Dealer login = the IDMS split sign-in, miniaturised */
.login-split { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 520px; }
.login-split .ial-panel { padding: 2.5rem; display: flex; flex-direction: column; justify-content: space-between; border-radius: 18px 0 0 18px; }
.login-split .ial-panel h2 { font-size: 2rem; line-height: 1.1; }
.login-split .ial-panel .lead { color: rgba(255, 255, 255, .78); font-style: italic; }
.login-split .ial-panel img { height: 34px; width: auto; }
.login-form { padding: 2.5rem; background: var(--bg); border-radius: 0 18px 18px 0; display: flex; flex-direction: column; justify-content: center; }
.login-form h3 { font-size: 1.7rem; margin-bottom: .2rem; }
.login-form .sub { color: var(--muted); font-style: italic; margin-bottom: 1.4rem; }
@media (max-width: 760px) { .login-split { grid-template-columns: 1fr; } .login-split .ial-panel { display: none; } .login-form { border-radius: 18px; } }

.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; z-index: 101; transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--border); }
.drawer-head h3 { margin: 0; font-size: 1.15rem; }
.drawer-body { padding: 1rem 1.4rem; overflow: auto; flex: 1; display: grid; gap: .75rem; align-content: start; }
.mini-car { display: grid; grid-template-columns: 110px 1fr auto; gap: .8rem; align-items: center; padding: .5rem; border-radius: 12px; border: 1px solid var(--border); }
.mini-car .m-img { border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 10; }
.mini-car .m-img svg { width: 100%; height: 100%; }
.mini-car strong { font-family: var(--display); color: var(--navy); font-size: .92rem; display: block; line-height: 1.2; }
.mini-car span { font-size: .8rem; color: var(--muted); }
.mini-car button { border: 0; background: none; color: var(--muted); font-size: 1.1rem; }
.mini-car button:hover { color: var(--danger); }

.compare-bar { position: fixed; left: 50%; bottom: 1rem; transform: translate(-50%, 150%); z-index: 80; background: var(--navy-dark); color: #fff; border-radius: 16px; padding: .7rem .7rem .7rem 1.2rem; display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow-lg); transition: transform .3s ease; max-width: calc(100% - 2rem); }
.compare-bar.show { transform: translate(-50%, 0); }
.compare-bar .slots { display: flex; gap: .5rem; }
.compare-bar .slot { width: 74px; height: 46px; border-radius: 8px; overflow: hidden; border: 1px dashed rgba(255, 255, 255, .3); position: relative; }
.compare-bar .slot svg { width: 100%; height: 100%; }
.compare-bar .label-c { font-family: var(--display); font-weight: 700; font-size: .9rem; white-space: nowrap; }
@media (max-width: 560px) { .compare-bar .label-c { display: none; } .compare-bar .slot { width: 56px; } }
.compare-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.compare-table th, .compare-table td { padding: .7rem .8rem; border-bottom: 1px solid var(--hairline); text-align: left; vertical-align: top; }
.compare-table th { color: var(--muted); font-weight: 600; width: 160px; }
.compare-table td.best { color: var(--good); font-weight: 700; }
.compare-table .c-img { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: .5rem; }
.compare-table .c-img svg { width: 100%; height: 100%; }

.toasts { position: fixed; top: 1rem; right: 1rem; z-index: 200; display: grid; gap: .5rem; }
.toast { background: #fff; border-left: 4px solid var(--good); border-radius: 10px; padding: .8rem 1rem; box-shadow: var(--shadow-lg); display: flex; gap: .6rem; align-items: center; min-width: 280px; max-width: 380px; animation: slideIn .3s ease; font-size: .92rem; }
.toast i { font-size: 1.2rem; color: var(--good); }
.toast.info { border-color: var(--accent); }
.toast.info i { color: var(--accent); }
.toast.err { border-color: var(--danger); }
.toast.err i { color: var(--danger); }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

.demo-ribbon { position: fixed; left: 1rem; bottom: 1rem; z-index: 70; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: .4rem .85rem; font-size: .75rem; color: var(--muted); box-shadow: var(--shadow); display: flex; align-items: center; gap: .4rem; }
.demo-ribbon b { color: var(--navy); font-family: var(--display); }
@media (max-width: 700px) { .demo-ribbon { display: none; } }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (min-width: 981px) { #applyWrap { display: none; } }
@media print { .site-header, .site-footer, .compare-bar, .demo-ribbon, .toasts, #contact, #finance { display: none !important; } }

/* fixes: dark panel variant + grid children must be allowed to shrink on phones */
.panel.ial-panel { background: linear-gradient(145deg, var(--bovine-900) 0%, var(--bovine-800) 50%, var(--azul-marinho) 100%); }
.body-tiles > *, .makes > *, .search-grid > *, .values > *, .steps > *, .form-row > *, .grid-3 > *, .fin-grid > *, .detail-layout > *, .listing-layout > *, .hero-grid > * { min-width: 0; }
.body-tile svg { width: 100%; max-width: 120px; }
html, body { overflow-x: hidden; }
@media (max-width: 560px) {
    .body-tiles { grid-template-columns: repeat(2, 1fr); }
    .makes { grid-template-columns: repeat(3, 1fr); }
    .search-tabs button { padding: .9rem .7rem .8rem; }
    .band, .app-cta { padding: 1.75rem 1.25rem; }
    .section { padding: 3rem 0; }
    .container { padding: 0 16px; }
    .search-card { padding: 0 1rem 1rem; }
}
