/* ==========================================================================
   ELYRA AUTOMOTIVE - Dealership Template
   --------------------------------------------------------------------------
   1. Tokens            9. Spotlight
   2. Base             10. About
   3. Utilities        11. Services
   4. Buttons & forms  12. Finance
   5. Header           13. Sell / Valuation
   6. Hero showroom    14. Reviews, FAQ
   7. Marques          15. Contact, Footer
   8. Collection       16. Dialogs, Toasts, Motion, Responsive
   ========================================================================== */

/* 1. TOKENS --------------------------------------------------------------- */
:root {
  --sky-1: #b3effc;
  --sky-2: #d6f6fc;
  --sky-3: #f1fbfd;
  --floor-1: #f4f5f6;
  --floor-2: #eceef0;
  --band: #e3e5e7;

  --paper: #ffffff;
  --mist: #f3f5f6;
  --mist-2: #e9ecee;
  --ink: #111316;
  --ink-2: #2a2f35;
  --text: #3d434a;
  --muted: #7a828a;
  --muted-2: #a8afb5;
  --line: rgba(17, 19, 22, .09);
  --line-2: rgba(17, 19, 22, .16);

  --accent: #0fb2d3;
  --accent-deep: #0a7d96;
  --accent-soft: #d8f5fb;
  --danger: #e5484d;
  --star: #f5b301;

  --night: #0c0e10;
  --night-2: #15181b;

  --display: "Inter Tight", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --container: 1320px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --header-h: 76px;
  --radius: 20px;
  --radius-sm: 12px;

  --shadow-card: 0 1px 2px rgba(17, 19, 22, .04), 0 14px 34px -16px rgba(17, 19, 22, .14);
  --shadow-hover: 0 2px 4px rgba(17, 19, 22, .04), 0 26px 50px -20px rgba(17, 19, 22, .22);
  --shadow-lg: 0 2px 6px rgba(17, 19, 22, .04), 0 40px 80px -30px rgba(17, 19, 22, .25);

  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-drive: cubic-bezier(.16, .84, .3, 1);
  --ease-launch: cubic-bezier(.55, 0, .8, .25);
}

/* 2. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) - 1px);
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
}
html.has-dialog { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* some mobile browsers ignore overflow-x on body, so clip the page sections too (clip keeps sticky working) */
main, .footer { overflow-x: clip; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, figure, blockquote, fieldset { margin: 0; }
svg { width: 1em; height: 1em; flex-shrink: 0; fill: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ink); color: var(--sky-1); }

/* 3. UTILITIES ------------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(4.5rem, 10vw, 8.5rem) 0; position: relative; }
.section--mist { background: var(--mist); }
.section--sky { background: linear-gradient(180deg, var(--sky-2) 0%, var(--sky-3) 42%, var(--paper) 100%); }
.section--sky-top { background: linear-gradient(180deg, var(--paper) 0%, var(--sky-3) 38%, var(--sky-2) 100%); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: -60px; left: 1rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 10px;
  transition: top .3s var(--ease);
}
.skip:focus { top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-deep); margin: 0 0 1.1rem;
}
.eyebrow--light { color: var(--sky-1); }

.title {
  font-size: clamp(2.1rem, 4.3vw, 3.7rem);
  font-weight: 700; line-height: 1.03; letter-spacing: -.038em;
  color: var(--ink); margin: 0 0 1.4rem;
  text-wrap: balance;
}
.title--light { color: #fff; }
.outline {
  color: #fff;
  -webkit-text-stroke: 1.4px rgba(17, 19, 22, .5);
  paint-order: stroke fill;
}
.section--mist .outline { color: var(--mist); }
.title .outline { display: block; }
.outline--light { color: var(--night); -webkit-text-stroke-color: rgba(255, 255, 255, .62); }

.lead { font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.68; color: var(--text); max-width: 36rem; }
.lead--light { color: rgba(255, 255, 255, .66); }
.fine { font-size: .74rem; line-height: 1.55; color: var(--muted); margin: .9rem 0 0; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head .title { margin-bottom: 0; max-width: 46rem; }
.section-head__aside {
  font-family: var(--mono); font-size: .76rem; line-height: 1.7; letter-spacing: .02em;
  color: var(--muted); text-align: right; margin: 0; flex-shrink: 0;
}
.section-head__aside strong { color: var(--ink); font-weight: 500; }

/* stock badge: big count | hairline | label + live "updated" line */
.stock { display: flex; align-items: center; gap: 1.2rem; margin: 0; flex-shrink: 0; }
.stock__count {
  font-size: clamp(2.6rem, 4vw, 3.4rem); font-weight: 700; line-height: .9; letter-spacing: -.05em;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.stock__text { display: flex; flex-direction: column; gap: .45rem; padding: .15rem 0 .15rem 1.2rem; border-left: 1px solid var(--line-2); }
.stock__label { font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.stock__meta { display: inline-flex; align-items: center; gap: .55rem; font-size: .8rem; color: var(--muted); }
.stock__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: stock-pulse 2.4s ease-out infinite; }
@keyframes stock-pulse {
  0% { box-shadow: 0 0 0 0 rgba(15, 178, 211, .45); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(15, 178, 211, 0); }
}

.link-arrow {
  position: relative; display: inline-flex; align-items: center; gap: .9rem;
  font-weight: 600; font-size: .92rem; color: var(--ink); padding-bottom: .5rem;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: currentColor; transform-origin: left; transition: transform .5s var(--ease);
}
.link-arrow svg { width: 1.15em; height: 1.15em; transition: transform .45s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow:hover::after { transform: scaleX(.6); }
.link-arrow--light { color: #fff; }

/* 4. BUTTONS & FORMS ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  height: 50px; padding: 0 1.55rem; border-radius: 999px;
  font-size: .92rem; font-weight: 600; letter-spacing: -.005em; white-space: nowrap;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.btn svg { width: 1.1em; height: 1.1em; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); box-shadow: 0 10px 24px -10px rgba(17, 19, 22, .55); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: #fff; border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--sky-1); }
.btn--sm { height: 40px; padding: 0 1.15rem; font-size: .84rem; }
.btn--block { width: 100%; }

.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  display: inline-grid; place-items: center; color: var(--ink);
  transition: background .3s, color .3s;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: rgba(17, 19, 22, .06); }
.icon-btn--ring { border: 1px solid var(--line-2); }

.round-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2);
  display: inline-grid; place-items: center; color: var(--ink); background: #fff;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover { border-color: var(--ink); }
.round-btn--ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.round-btn--ink:hover { background: var(--ink-2); }

.input {
  width: 100%; height: 50px; padding: 0 1rem;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font-size: .95rem;
  transition: border-color .25s, box-shadow .25s;
}
textarea.input { height: auto; padding: .85rem 1rem; resize: vertical; min-height: 96px; }
.input::placeholder { color: var(--muted-2); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(15, 178, 211, .16); }
.input--dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #fff; }
.input--dark::placeholder { color: rgba(255, 255, 255, .4); }
.input--dark:focus { border-color: #fff; }

.select { position: relative; display: inline-flex; align-items: center; }
.select select {
  appearance: none; -webkit-appearance: none;
  height: 44px; padding: 0 2.6rem 0 1.1rem;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: #fff; color: var(--ink); font-size: .86rem; font-weight: 500; cursor: pointer;
  transition: border-color .25s, box-shadow .25s;
}
.select select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(15, 178, 211, .16); }
.select svg { position: absolute; right: 1rem; width: 16px; height: 16px; pointer-events: none; color: var(--muted); }
.select--block { display: flex; width: 100%; }
.select--block select { width: 100%; height: 50px; border-radius: var(--radius-sm); font-size: .95rem; font-weight: 400; }

.field { display: flex; flex-direction: column; min-width: 0; border: 0; padding: 0; }
.field--full { grid-column: 1 / -1; }
.field__label { display: block; font-size: .78rem; font-weight: 600; color: var(--ink); margin-bottom: .45rem; padding: 0; }
.field__label em { font-style: normal; font-weight: 400; color: var(--muted); }
.field__error { display: none; font-size: .74rem; color: var(--danger); margin-top: .35rem; }
.field.is-invalid .field__error, .field__error--consent.is-shown { display: block; }
.field.is-invalid .input, .field.is-invalid select { border-color: var(--danger); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.segmented {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px;
  padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .75);
  border: 1px solid var(--line);
}
.segmented button {
  height: 40px; border-radius: 999px; font-size: .86rem; font-weight: 500; color: var(--text);
  transition: background .3s, color .3s;
}
.segmented button:hover { color: var(--ink); background: rgba(17, 19, 22, .04); }
.segmented button[aria-checked="true"] { background: var(--ink); color: #fff; }
.segmented--block { width: 100%; }

.range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px;
  background: linear-gradient(to right, var(--ink) var(--fill, 20%), rgba(17, 19, 22, .12) var(--fill, 20%));
  cursor: pointer;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ink); box-shadow: 0 4px 10px rgba(17, 19, 22, .18);
  transition: transform .2s;
}
.range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ink); box-shadow: 0 4px 10px rgba(17, 19, 22, .18);
}
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
.range:focus-visible { outline-offset: 8px; }

.check { display: flex; align-items: flex-start; gap: .7rem; margin: 1.15rem 0 .35rem; font-size: .84rem; color: var(--text); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2);
  display: grid; place-items: center; flex-shrink: 0; margin-top: 1px;
  transition: background .25s, border-color .25s;
}
.check__box svg { width: 13px; height: 13px; color: #fff; opacity: 0; transition: opacity .2s; }
.check input:checked + .check__box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .check__box svg { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.field__error--consent { margin: 0 0 .8rem; }
.booking .btn--block, .valuation__form .btn--block { margin-top: 1rem; }

/* 5. HEADER --------------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, .93);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header__left { display: flex; align-items: center; gap: 1.5rem; }
.logo { font-size: 1.42rem; font-weight: 800; letter-spacing: -.05em; color: var(--ink); line-height: 1; }
.logo span { color: var(--accent); }

.burger { width: 34px; height: 34px; display: grid; align-content: center; justify-items: start; gap: 5px; padding-left: 5px; }
.burger span { display: block; height: 1.6px; width: 20px; background: var(--ink); border-radius: 2px; transition: width .35s var(--ease); }
.burger span:last-child { width: 13px; }
.burger:hover span:last-child { width: 20px; }

.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2.3rem); font-size: .88rem; font-weight: 500; color: var(--ink); }
.nav a { position: relative; padding: .4rem 0; opacity: .78; transition: opacity .3s; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--ink);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav a:hover, .nav a[aria-current="true"] { opacity: 1; }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.header__right { display: flex; align-items: center; gap: .35rem; }
.header__cta { margin-left: .6rem; }

.currency { position: relative; }
.currency__btn {
  display: inline-flex; align-items: center; gap: .35rem; height: 42px; padding: 0 .7rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .06em; color: var(--ink); border-radius: 999px;
  transition: background .3s;
}
.currency__btn:hover { background: rgba(17, 19, 22, .06); }
.currency__btn svg { width: 14px; height: 14px; transition: transform .3s; }
.currency__sep { color: var(--muted-2); }
.currency.is-open .currency__btn svg { transform: rotate(180deg); }
.currency__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; padding: .4rem;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
}
.currency.is-open .currency__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.currency__menu button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .65rem .8rem; border-radius: 10px; font-size: .84rem; font-weight: 700; color: var(--ink); text-align: left;
}
.currency__menu button span { font-weight: 400; color: var(--muted); font-size: .78rem; }
.currency__menu button:hover { background: var(--mist); }
.currency__menu button[aria-checked="true"] { background: var(--accent-soft); }

.garage-btn svg { fill: none; }
.garage-btn.has-items svg { fill: var(--danger); color: var(--danger); }
.garage-btn__count {
  position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--ink); color: #fff;
  font-size: .62rem; font-weight: 700; line-height: 17px; text-align: center;
}
.garage-btn__count.is-bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* 6. HERO SHOWROOM -------------------------------------------------------- */
.hero {
  --horizon: 57%;
  --band-h: clamp(118px, 21vh, 200px);
  --car-w: min(64vw, 1100px, calc((75svh - 260px) * 3.4));
  --car-bottom: calc(var(--band-h) + clamp(14px, 4.2vh, 46px));
  position: relative; isolation: isolate; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 640px; max-height: 1080px;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 32%, #eefafd 50%, #f9fdfe var(--horizon));
  outline: none;
}
.hero__floor {
  position: absolute; left: 0; right: 0; top: var(--horizon); bottom: 0; z-index: -1;
  background: linear-gradient(180deg, #f6f7f8 0%, var(--floor-1) 18%, var(--floor-2) 100%);
}
.hero__floor::before {
  content: ""; position: absolute; left: 50%; top: -1px; width: 70vw; height: 40%; transform: translateX(-50%);
  background: radial-gradient(50% 100% at 50% 0%, rgba(255, 255, 255, .9), transparent 70%);
}
.hero__band {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--band-h); z-index: -1;
  background: linear-gradient(180deg, #e7e8ea 0%, var(--band) 30%, #dfe1e3 100%);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .7);
}
.hero__ghost {
  position: absolute; left: 0; right: 0; top: 31%; z-index: -1; margin: 0;
  display: flex; justify-content: center; /* stays centred even when wider than the screen */
  white-space: nowrap; pointer-events: none;
  font-size: clamp(7rem, 23vw, 24rem); font-weight: 800; line-height: .8; letter-spacing: -.06em;
}
.hero__ghost span {
  display: inline-block; padding: 0 .12em; color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95) 10%, rgba(255, 255, 255, 0) 88%);
  -webkit-background-clip: text; background-clip: text;
}

.hero__inner {
  position: relative; height: 100%;
  display: grid;
  grid-template-columns: 64px minmax(0, clamp(0px, 13vw, 230px)) minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr var(--band-h);
  grid-template-areas:
    "brand gap head  price"
    "nav   gap .     ."
    "nav   gap specs specs";
  padding-top: calc(var(--header-h) + clamp(22px, 6.5vh, 78px));
}
.hero__inner > :not(.hero__stage) { position: relative; z-index: 1; }

/* stage + cars */
.hero__stage { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__car {
  position: absolute; left: 50%; bottom: var(--car-bottom); width: var(--car-w);
  margin: 0 0 0 calc(var(--car-w) / -2);
  opacity: 0; transform: translateX(55%);
  transition: transform 1.25s var(--ease-drive), opacity .7s var(--ease);
  will-change: transform, opacity;
}
.hero__car > img:first-child { position: relative; z-index: 1; width: 100%; height: auto; }
.hero__car::after {
  content: ""; position: absolute; left: 3%; right: 3%; bottom: -3.5%; height: 13%; z-index: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(14, 22, 30, .42), rgba(14, 22, 30, .12) 55%, transparent 76%);
}
.hero__reflect {
  position: absolute; left: 0; top: 100%; width: 100%; height: auto;
  transform: scaleY(-1); opacity: .12; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 17%);
  mask-image: linear-gradient(to top, #000 0%, transparent 17%);
}
.hero__car.from-left { transform: translateX(-55%); }
.hero__car.is-active { opacity: 1; transform: none; }
.hero__car.to-left, .hero__car.to-right {
  opacity: 0; filter: blur(1.5px);
  transition: transform 1s var(--ease-launch), opacity .55s .3s var(--ease), filter .4s;
}
.hero__car.to-left { transform: translateX(-62%); }
.hero__car.to-right { transform: translateX(62%); }
.hero__car.no-anim { transition: none !important; }

/* text blocks */
.hero__brand { grid-area: brand; padding-top: .25rem; }
.hero__brand svg { width: 42px; height: 42px; color: var(--ink); opacity: .82; }
.hero__head { grid-area: head; }
.hero__head::after {
  content: ""; position: absolute; left: clamp(2.2rem, 4vw, 3.6rem); top: calc(100% + 14px);
  width: 1px; height: clamp(34px, 12vh, 140px);
  background: linear-gradient(180deg, rgba(17, 19, 22, .5), rgba(17, 19, 22, .08));
  transform-origin: top; transition: transform .7s var(--ease) .2s;
}
.hero.is-swapping .hero__head::after { transform: scaleY(0); transition-delay: 0s; transition-duration: .3s; }
.hero__eyebrow {
  font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-deep); margin: 0 0 .7rem;
}
.hero__eyebrow > span { display: inline-block; }
.hero__title {
  font-size: clamp(2.3rem, 3.5vw, 3.5rem); font-weight: 700; line-height: 1.02; letter-spacing: -.035em;
  color: var(--ink);
}
.hero .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title [data-swap] { display: inline-block; }
.hero__trim {
  color: #fff; -webkit-text-stroke: 1.5px rgba(17, 19, 22, .32); paint-order: stroke fill;
}
.hero__price { grid-area: price; text-align: right; padding-top: 1.55rem; }
.hero__price strong { display: inline-block; font-size: clamp(1.25rem, 1.9vw, 1.85rem); font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.hero__loc { display: inline-block; font-size: .84rem; font-weight: 500; color: var(--text); margin-top: .1rem; }

.hero__nav {
  grid-area: nav; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: clamp(14px, 3.4vh, 38px); padding-bottom: calc(var(--band-h) * .3);
}
.hero__prev { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); border-radius: 50%; transition: background .3s, transform .3s var(--ease); }
.hero__prev svg { width: 22px; height: 22px; }
.hero__prev:hover { background: rgba(17, 19, 22, .06); transform: translateY(-2px); }
.hero__next {
  position: relative; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff;
  transition: transform .4s var(--ease), background .3s;
}
.hero__next > svg:last-child { width: 22px; height: 22px; transition: transform .4s var(--ease); }
.hero__next:hover { background: var(--ink-2); }
.hero__next:hover > svg:last-child { transform: translateY(2px); }
.hero__ring { position: absolute; inset: -7px; width: calc(100% + 14px); height: calc(100% + 14px); transform: rotate(-90deg); pointer-events: none; }
.hero__ring circle { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 176; stroke-dashoffset: 176; opacity: .55; }
.hero.is-playing .hero__ring circle { animation: ring var(--slide-ms, 8000ms) linear forwards; }
.hero.is-paused .hero__ring circle { animation-play-state: paused; }
@keyframes ring { to { stroke-dashoffset: 0; } }
.hero__count { font-family: var(--mono); font-size: .8rem; font-weight: 500; color: var(--ink); margin: 0; }
.hero__total { color: var(--muted-2); }

.hero__specs {
  grid-area: specs; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding-bottom: calc(var(--band-h) * .08);
}
.hero__specs dl { display: flex; gap: clamp(2rem, 5vw, 5rem); }
.hero__specs dl > div { display: flex; flex-direction: column-reverse; overflow: hidden; }
.hero__specs dd { font-size: clamp(1.15rem, 1.6vw, 1.5rem); font-weight: 700; letter-spacing: -.02em; color: var(--ink); line-height: 1.2; }
.hero__specs dt { font-size: .78rem; color: var(--muted); margin-top: .2rem; }
.hero__details { min-width: 11.5rem; justify-content: space-between; }

/* swap + intro motion */
.hero [data-swap] { transition: transform .5s var(--ease), opacity .45s var(--ease); transition-delay: var(--d, 0s); }
.hero.is-swapping [data-swap] { opacity: 0; transform: translateY(55%); transition-duration: .3s, .25s; transition-timing-function: var(--ease-io); }
html.js .hero:not(.is-ready) [data-swap] { opacity: 0; transform: translateY(70%); }
.hero__title .line:nth-child(2) [data-swap] { --d: .05s; }
.hero__price .line:nth-child(2) [data-swap] { --d: .05s; }
.hero__specs div:nth-child(2) [data-swap] { --d: .06s; }
.hero__specs div:nth-child(3) [data-swap] { --d: .12s; }
.hero__ghost [data-swap] { --d: .08s; }
.hero:not(.is-ready) .hero__ghost [data-swap], .hero.is-swapping .hero__ghost [data-swap] { transform: translateY(12%); }

/* 7. MARQUES -------------------------------------------------------------- */
.brands { padding: 2.4rem 0 2.6rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.brands__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.brands__note { font-family: var(--mono); font-size: .7rem; color: var(--muted); margin: 0; letter-spacing: .04em; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marque {
  display: flex; align-items: center; gap: .85rem; padding: .85rem clamp(1.4rem, 2.6vw, 2.4rem);
  color: #8b9298; font-weight: 600; font-size: .95rem; letter-spacing: -.01em; white-space: nowrap;
  border-radius: 999px; transition: color .3s, background .3s;
}
.marque svg { width: 34px; height: 34px; transition: transform .4s var(--ease); }
.marque:hover { color: var(--ink); background: var(--mist); }
.marque:hover svg { transform: scale(1.08); }

/* 8. COLLECTION ----------------------------------------------------------- */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .5rem; margin-bottom: 1rem; background: #fff; border-radius: 999px; box-shadow: var(--shadow-card);
}
.chips { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  height: 40px; padding: 0 1.1rem; border-radius: 999px; font-size: .86rem; font-weight: 500;
  color: var(--text); white-space: nowrap; transition: background .3s, color .3s;
}
.chip:hover { background: var(--mist); color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; }
.toolbar__right { display: flex; gap: .5rem; }
.toolbar__right select { border-color: var(--line); background: var(--mist); }

.results-line {
  display: flex; align-items: center; gap: 1rem; min-height: 32px; margin: 0 0 1.2rem .4rem;
  font-family: var(--mono); font-size: .74rem; color: var(--muted); letter-spacing: .02em;
}
.results-line__clear {
  display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 999px;
  background: var(--ink); color: #fff; font-family: var(--mono); font-size: .68rem;
}
.results-line__clear svg { width: 12px; height: 12px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 282px), 1fr)); gap: clamp(1rem, 1.6vw, 1.4rem); }

.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  animation: cardIn .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(22px); } }
.card__media {
  position: relative; aspect-ratio: 16 / 10.5; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-2) 0%, #eefafd 54%, #f6f7f8 54.5%, var(--floor-2) 100%);
}
.card__media::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 9%; height: 9%;
  background: radial-gradient(closest-side, rgba(14, 22, 30, .3), transparent);
}
.card__media img {
  position: absolute; left: 6%; bottom: 12%; z-index: 1; width: 88%; height: 74%;
  object-fit: contain; object-position: center bottom;
  transition: transform .8s var(--ease);
}
.card__badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--mono); font-size: .62rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  padding: .36rem .62rem; border-radius: 999px; background: #fff; color: var(--ink);
  box-shadow: 0 4px 12px -4px rgba(17, 19, 22, .2); pointer-events: none;
}
.card__badge--reserved { background: var(--ink); color: #fff; }
.card__badge--reduced { background: var(--accent); color: var(--ink); }
.card__save {
  position: absolute; top: 10px; right: 10px; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .88); color: var(--ink);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.card__save svg { width: 18px; height: 18px; fill: none; transition: fill .3s; }
.card__save:hover { transform: scale(1.08); }
.card__save[aria-pressed="true"] { color: var(--danger); }
.card__save[aria-pressed="true"] svg { fill: var(--danger); }
.card__save.is-pop svg { animation: bump .45s var(--ease); }
.card__body { display: flex; flex-direction: column; gap: .5rem; flex: 1; padding: 1rem 1.2rem 1.15rem; }
.card__top {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.card__logo { width: 26px; height: 26px; color: var(--ink); }
.card__title { font-size: 1.12rem; letter-spacing: -.025em; line-height: 1.22; }
.card__link { display: block; text-align: left; font-weight: 700; color: var(--ink); }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card__link:focus-visible { outline: none; }
.card__link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; }
.card__trim { display: block; margin-top: .1rem; font-size: .88rem; font-weight: 500; letter-spacing: -.01em; color: var(--muted); }
.card__specs { display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .8rem; color: var(--text); }
.card__specs li { display: inline-flex; align-items: center; gap: .3rem; }
.card__specs svg { width: 14px; height: 14px; color: var(--muted-2); }
.card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: auto; padding-top: .85rem; border-top: 1px solid var(--line);
}
.card__price { margin: 0; font-size: 1.12rem; font-weight: 700; letter-spacing: -.025em; color: var(--ink); line-height: 1.25; }
.card__loc { display: block; font-size: .72rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.card__go {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mist); color: var(--ink); transition: background .35s, color .35s, transform .35s var(--ease);
}
.card__go svg { width: 18px; height: 18px; }
@media (hover: hover) {
  .card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
  .card:hover .card__media img { transform: translateX(-2.5%) scale(1.04); }
  .card:hover .card__go { background: var(--ink); color: #fff; transform: rotate(-45deg); }
}

.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) 1.5rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card);
}
.empty__logo { width: 64px; height: 64px; color: var(--ink); opacity: .85; margin-bottom: 1.4rem; }
.empty h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.03em; margin-bottom: .7rem; }
.empty p { max-width: 30rem; color: var(--text); }
.empty .outline { color: #fff; }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: .6rem; }

/* 9. SPOTLIGHT ------------------------------------------------------------ */
.spotlight {
  --halo: rgba(255, 122, 0, .32);
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(4.5rem, 8vw, 6.5rem) 0;
  background: radial-gradient(110% 90% at 72% 45%, #1e252b 0%, #111417 52%, var(--night) 100%);
  color: rgba(255, 255, 255, .7);
}
.spotlight__ticker {
  position: absolute; top: 50%; left: 0; z-index: -1; display: flex; white-space: nowrap;
  transform: translateY(-50%); pointer-events: none;
  font-size: clamp(5rem, 12vw, 11rem); font-weight: 800; letter-spacing: -.04em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .045);
  animation: ticker 70s linear infinite;
}
@keyframes ticker { to { transform: translate(-50%, -50%); } }
.spotlight__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.spotlight .title { margin-bottom: 1.2rem; }

.spec-bars { display: grid; gap: .85rem; margin: 1.7rem 0 1.8rem; max-width: 30rem; }
.spec-bars__row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; row-gap: .45rem; }
.spec-bars dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.spec-bars dd { font-size: .9rem; color: rgba(255, 255, 255, .6); }
.spec-bars dd b { font-size: 1.35rem; font-weight: 700; color: #fff; letter-spacing: -.02em; margin-right: .15rem; }
.spec-bars .bar { grid-column: 1 / -1; height: 2px; background: rgba(255, 255, 255, .1); border-radius: 2px; overflow: hidden; }
.spec-bars .bar i {
  display: block; height: 100%; width: calc(var(--v) * 100%);
  background: linear-gradient(90deg, var(--sky-1), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .2s;
}
.spec-bars.is-visible .bar i, html:not(.js) .spec-bars .bar i { transform: scaleX(1); }
.spec-bars__row:nth-child(2) .bar i { transition-delay: .3s; }
.spec-bars__row:nth-child(3) .bar i { transition-delay: .4s; }
.spec-bars__row:nth-child(4) .bar i { transition-delay: .5s; }

.paint { margin-bottom: 1.9rem; }
.paint__label { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: .9rem; }
.paint__label strong { color: #fff; font-weight: 500; }
.paint__swatches { display: flex; flex-wrap: wrap; gap: .75rem; }
.swatch {
  width: 32px; height: 32px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .55), transparent 45%), var(--c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.swatch:hover { transform: scale(1.1); }
.swatch[aria-checked="true"] { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 0 0 3px var(--night), 0 0 0 4.5px #fff; }

.spotlight__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.spotlight__price span { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.spotlight__price strong { font-size: 1.6rem; font-weight: 700; color: #fff; letter-spacing: -.03em; }

.spotlight__stage { position: relative; width: 112%; aspect-ratio: 1100 / 487; margin-right: -12%; }
.spotlight__halo {
  position: absolute; left: 8%; right: 8%; top: -18%; bottom: -12%;
  background: radial-gradient(closest-side, var(--halo), transparent 72%);
  filter: blur(24px); transition: background .6s;
}
.spotlight__car {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain;
  filter: var(--paint, none); transition: filter .7s var(--ease), transform 1.2s var(--ease);
}
.spotlight__floor {
  position: absolute; left: 4%; right: 4%; bottom: -6%; height: 16%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .75), transparent);
}
.spotlight__stage::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -2%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
}
html.js .spotlight__car { transform: translateX(14%); opacity: 0; transition: filter .7s var(--ease), transform 1.4s var(--ease-drive), opacity .9s var(--ease); }
html.js .spotlight__stage.is-visible .spotlight__car { transform: none; opacity: 1; }

/* 10. ABOUT --------------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about__media { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 1rem; padding-bottom: 2rem; }
.about__img { overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.about__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about__img:hover img { transform: scale(1.04); }
.about__img--main { grid-row: 1 / 3; aspect-ratio: 3 / 4; }
.about__img--top { aspect-ratio: 4 / 3.3; align-self: end; }
.about__img--bottom { aspect-ratio: 4 / 3.3; }
.about__badge {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  display: flex; align-items: center; gap: .9rem; padding: .95rem 1.3rem;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); white-space: nowrap;
}
.about__badge strong { font-size: 2.3rem; font-weight: 800; letter-spacing: -.05em; color: var(--ink); line-height: 1; }
.about__badge span { font-size: .8rem; line-height: 1.35; color: var(--text); }
.checks { display: grid; gap: .8rem; margin: 1.6rem 0 2.4rem; }
.checks li { display: flex; gap: .8rem; align-items: flex-start; font-size: .95rem; color: var(--ink); }
.checks svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); margin-top: 1px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 800; letter-spacing: -.045em; color: var(--ink); line-height: 1.1; }
.stats dd small { font-size: .5em; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.stats dt { font-size: .78rem; color: var(--muted); margin-top: .25rem; }

/* 11. SERVICES ------------------------------------------------------------ */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 1.6vw, 1.4rem); }
.service {
  position: relative; display: flex; flex-direction: column; padding: clamp(1.5rem, 2.4vw, 2rem);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.service::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--sky-1), var(--accent)); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.service__num { position: absolute; top: 1.6rem; right: 1.7rem; font-family: var(--mono); font-size: .72rem; color: var(--muted-2); }
.service__icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.6rem;
  background: linear-gradient(160deg, var(--sky-1), var(--sky-3)); color: var(--ink);
  transition: background .4s, color .4s;
}
.service__icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 1.15rem; letter-spacing: -.02em; margin-bottom: .6rem; }
.service p { font-size: .92rem; color: var(--text); margin-bottom: 1.4rem; }
.service__link { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; font-size: .86rem; font-weight: 600; color: var(--ink); }
.service__link svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.service__link:hover svg { transform: translate(2px, -2px); }
@media (hover: hover) {
  .service:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
  .service:hover::before { transform: scaleX(1); }
  .service:hover .service__icon { background: var(--ink); color: #fff; }
}

/* 12. FINANCE ------------------------------------------------------------- */
.finance__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.calc { display: grid; gap: 1.55rem; margin-top: 2.2rem; max-width: 560px; }
.calc__label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: .6rem; }
.calc__label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .75rem; }
.calc__label-row .calc__label { margin: 0; }
.calc__label-row output { font-family: var(--mono); font-size: .78rem; color: var(--text); }
.calc__cur { color: var(--muted); font-weight: 500; }
.calc__row--inline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.calc__row--inline .calc__label { margin: 0; }
.input-suffix { position: relative; width: 130px; }
.input-suffix .input { padding-right: 2.2rem; text-align: right; -moz-appearance: textfield; }
.input-suffix .input::-webkit-outer-spin-button, .input-suffix .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input-suffix span { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .9rem; }

.quote-card {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: #fff; border-radius: 26px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.quote-card__media {
  position: relative; aspect-ratio: 16 / 8.6; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 35%, #f4fbfd 58%, #f5f6f7 58.5%, var(--floor-2) 100%);
}
.quote-card__media::after {
  content: ""; position: absolute; left: 14%; right: 14%; bottom: 9%; height: 9%;
  background: radial-gradient(closest-side, rgba(14, 22, 30, .3), transparent);
}
.quote-card__media img {
  position: absolute; left: 8%; bottom: 11%; z-index: 1; width: 84%; height: 76%;
  object-fit: contain; object-position: center bottom;
  transition: opacity .35s, transform .6s var(--ease-drive);
}
.quote-card__media img.is-changing { opacity: 0; transform: translateX(-6%); }
.quote-card__body { padding: 1.6rem 1.8rem 1.8rem; }
.quote-card__car { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--ink); margin-bottom: 1.1rem; }
.quote-card__car svg { width: 24px; height: 24px; }
.quote-card__label { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .2rem; }
.quote-card__monthly { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 1.2rem; }
.quote-card__monthly strong { font-size: clamp(2.5rem, 4.2vw, 3.5rem); font-weight: 800; letter-spacing: -.05em; color: var(--ink); line-height: 1; }
.quote-card__monthly span { color: var(--muted); font-size: .92rem; }
.quote-card__rows { margin-bottom: 1.5rem; }
.quote-card__rows div { display: flex; justify-content: space-between; gap: 1rem; padding: .62rem 0; border-bottom: 1px dashed var(--line-2); font-size: .88rem; }
.quote-card__rows dt { color: var(--muted); }
.quote-card__rows dd { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* 13. SELL / VALUATION ---------------------------------------------------- */
.sell__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.steps { margin-top: 2rem; counter-reset: step; }
.steps li { display: flex; gap: 1.1rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps__num {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  border: 1px solid var(--line-2); font-family: var(--mono); font-size: .8rem; color: var(--ink);
}
.steps h3 { font-size: 1.02rem; letter-spacing: -.015em; margin-bottom: .2rem; }
.steps p { font-size: .9rem; color: var(--text); margin: 0; }

.valuation {
  position: relative; padding: clamp(1.4rem, 3vw, 2.3rem); border-radius: 26px;
  background: linear-gradient(165deg, var(--sky-1) 0%, var(--sky-3) 42%, #fff 75%);
  box-shadow: var(--shadow-lg); border: 1px solid #fff;
}
.valuation__title { font-size: 1.35rem; letter-spacing: -.025em; margin-bottom: 1.3rem; }
.valuation fieldset { margin: 1.1rem 0 .3rem; }
.valuation__result { text-align: center; padding: 1.5rem .5rem .5rem; outline: none; }
.valuation__result:not([hidden]) { animation: cardIn .6s var(--ease) both; }
.valuation__eyebrow { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 1rem; }
.valuation__car { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--ink); }
.valuation__car svg { width: 28px; height: 28px; }
.valuation__range { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .4rem .8rem; margin: 1rem 0 .4rem; }
.valuation__range strong { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -.045em; color: var(--ink); }
.valuation__range span { color: var(--muted); }
.valuation__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 1.6rem; }

/* 14. REVIEWS, FAQ -------------------------------------------------------- */
.reviews__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; margin: 1.4rem 0 2.2rem; }
.rating__score { font-size: 3.2rem; font-weight: 800; letter-spacing: -.05em; color: var(--ink); line-height: 1; }
.rating__stars { display: flex; gap: 2px; color: var(--star); }
.rating__stars svg { width: 19px; height: 19px; }
.rating__meta { flex-basis: 100%; font-size: .84rem; color: var(--muted); }
.reviews__nav { display: flex; gap: .6rem; }
.reviews__stage {
  position: relative; display: grid; padding: clamp(1.8rem, 4vw, 3.2rem);
  background: #fff; border-radius: 26px; box-shadow: var(--shadow-card);
}
.review {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .7s var(--ease), visibility 0s .7s;
}
.review.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: .1s, .1s, 0s; }
.review__quote { width: 40px; height: 40px; color: var(--accent); }
.review blockquote {
  margin: 1.2rem 0 2rem; font-size: clamp(1.18rem, 2vw, 1.55rem); line-height: 1.45; font-weight: 500;
  letter-spacing: -.018em; color: var(--ink);
}
.review figcaption { display: flex; align-items: center; gap: .9rem; }
.review figcaption > span:nth-child(2) { display: flex; flex-direction: column; font-size: .84rem; color: var(--muted); line-height: 1.4; }
.review figcaption strong { color: var(--ink); font-size: .95rem; }
.review__avatar {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(150deg, var(--sky-1), var(--accent)); color: var(--ink); font-weight: 700; font-size: .9rem;
}
.review__brand { width: 32px; height: 32px; margin-left: auto; color: var(--muted-2); }
.reviews__dots { grid-area: 2 / 1; display: flex; gap: .45rem; margin-top: 1.8rem; }
.reviews__dots button { width: 8px; height: 8px; border-radius: 999px; background: var(--line-2); transition: width .4s var(--ease), background .3s; }
.reviews__dots button[aria-selected="true"] { width: 26px; background: var(--ink); }

.faq__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.35rem 0; cursor: pointer; list-style: none;
  font-size: clamp(1rem, 1.4vw, 1.12rem); font-weight: 600; color: var(--ink); letter-spacing: -.015em;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary svg {
  width: 34px; height: 34px; padding: 8px; border-radius: 50%; border: 1px solid var(--line-2);
  transition: transform .4s var(--ease), background .3s, color .3s;
}
.faq__list details[open] summary svg { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.faq__body p { padding: 0 3rem 1.4rem 0; margin: 0; color: var(--text); max-width: 44rem; }
.faq__list details[open] .faq__body { animation: faqIn .5s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* 15. CONTACT, FOOTER ----------------------------------------------------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.contact__list { margin: 1.8rem 0 0; }
.contact__list li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact__list svg { width: 22px; height: 22px; color: var(--accent-deep); margin-top: 2px; }
.contact__list strong { display: block; color: var(--ink); font-weight: 600; }
.contact__list strong a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact__list span { font-size: .86rem; color: var(--muted); }

.map { position: relative; margin-top: 1.8rem; border-radius: var(--radius); overflow: hidden; aspect-ratio: 600 / 250; box-shadow: var(--shadow-card); }
.map__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__pin { position: absolute; left: 48%; top: 44%; width: 18px; height: 18px; transform: translate(-50%, -50%); }
.map__pin span, .map__pin::before { position: absolute; inset: 0; border-radius: 50%; }
.map__pin span { background: var(--ink); box-shadow: 0 0 0 5px #fff, 0 8px 18px rgba(17, 19, 22, .35); }
.map__pin::before { content: ""; background: var(--accent); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(4.5); opacity: 0; } }
.map__link {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .95rem; border-radius: 999px; background: #fff; box-shadow: var(--shadow-card);
  font-size: .8rem; font-weight: 600; color: var(--ink); transition: background .3s;
}
.map__link svg { width: 14px; height: 14px; }
.map__link:hover { background: var(--sky-1); }

.booking { padding: clamp(1.5rem, 3vw, 2.4rem); background: #fff; border-radius: 26px; box-shadow: var(--shadow-lg); }
.booking__head { margin-bottom: 1.4rem; }
.booking__head h3 { font-size: 1.35rem; letter-spacing: -.025em; margin-bottom: .25rem; }
.booking__head p { font-size: .88rem; color: var(--muted); margin: 0; }

.footer { background: var(--night); color: rgba(255, 255, 255, .6); padding: clamp(4rem, 8vw, 6rem) 0 2rem; font-size: .92rem; }
.footer__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__logo { font-size: clamp(4.2rem, 12vw, 10.5rem); font-weight: 800; letter-spacing: -.065em; line-height: .78; color: #fff; }
.footer__logo span { color: var(--accent); }
.newsletter { width: min(100%, 440px); }
.newsletter label { display: block; color: #fff; font-weight: 600; margin-bottom: .8rem; }
.newsletter__row { display: flex; gap: .5rem; }
.newsletter .input { border-radius: 999px; padding: 0 1.2rem; }
.newsletter.is-invalid .input { border-color: var(--danger); }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding: 3rem 0; }
.footer h4 { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; }
.footer__cols li { margin-bottom: .45rem; }
.footer__cols a, .footer__legal a, .footer__legal button { transition: color .3s; }
.footer__cols a:hover, .footer__legal a:hover, .footer__legal button:hover { color: #fff; }
.footer__cols p { margin-bottom: .9rem; }
.socials { display: flex; gap: .5rem; margin-top: 1.1rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .16); color: #fff; transition: background .3s, color .3s, border-color .3s;
}
.socials a:hover { background: #fff; color: var(--ink); border-color: #fff; }
.socials svg { width: 17px; height: 17px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; }
.credit { color: rgba(255, 255, 255, .38); font-size: .74rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer__legal button { font-size: .8rem; color: inherit; }

/* 16. DIALOGS ------------------------------------------------------------- */
.dlg {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: hidden; color: var(--text);
  background: rgba(8, 10, 12, 0); transition: background .35s var(--ease);
}
.dlg[open] { display: flex; }
.dlg::backdrop { background: transparent; }
.dlg.is-open { background: rgba(8, 10, 12, .5); }

/* menu */
.menu__panel {
  width: 100%; height: 100%; overflow-y: auto; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-3) 45%, #fff 100%);
  opacity: 0; transform: translateY(-2.5%); transition: opacity .4s var(--ease), transform .6s var(--ease);
}
.menu.is-open .menu__panel { opacity: 1; transform: none; }
.menu__top { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: var(--container); height: var(--header-h); margin: 0 auto; padding: 0 var(--gutter); flex-shrink: 0; }
.menu__body {
  flex: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center;
  width: 100%; max-width: var(--container); margin: 0 auto; padding: 2rem var(--gutter) 3rem;
}
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 1.2rem; padding: .25rem 0;
  font-size: clamp(2rem, 5.2vw, 4.3rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.12; color: var(--ink);
  transition: color .35s, -webkit-text-stroke-color .35s, transform .5s var(--ease);
  -webkit-text-stroke: 1.4px transparent; paint-order: stroke fill;
}
.menu__nav a span { font-family: var(--mono); font-size: .78rem; font-weight: 400; letter-spacing: .06em; color: var(--muted); -webkit-text-stroke: 0; }
.menu__nav a:hover { color: #fff; -webkit-text-stroke-color: rgba(17, 19, 22, .55); transform: translateX(8px); }
.menu.is-open .menu__nav a { animation: menuIn .7s var(--ease) both; }
.menu.is-open .menu__nav a:nth-child(2) { animation-delay: .04s; }
.menu.is-open .menu__nav a:nth-child(3) { animation-delay: .08s; }
.menu.is-open .menu__nav a:nth-child(4) { animation-delay: .12s; }
.menu.is-open .menu__nav a:nth-child(5) { animation-delay: .16s; }
.menu.is-open .menu__nav a:nth-child(6) { animation-delay: .2s; }
.menu.is-open .menu__nav a:nth-child(7) { animation-delay: .24s; }
@keyframes menuIn { from { opacity: 0; transform: translateY(24px); } }
.menu__brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 2rem; }
.menu__brands button {
  aspect-ratio: 1.5; display: grid; place-items: center; border-radius: 16px;
  background: rgba(255, 255, 255, .7); border: 1px solid #fff; color: var(--ink);
  transition: background .3s, transform .3s var(--ease);
}
.menu__brands button:hover { background: #fff; transform: translateY(-2px); }
.menu__brands svg { width: 46px; height: 46px; }
.menu__contact { display: grid; gap: .7rem; font-size: .92rem; color: var(--ink); }
.menu__contact a, .menu__contact span { display: inline-flex; align-items: center; gap: .7rem; }
.menu__contact svg { width: 18px; height: 18px; color: var(--accent-deep); }

/* search */
.search { align-items: flex-start; justify-content: center; }
.search__panel {
  width: min(720px, calc(100% - 2rem)); margin-top: 11vh; max-height: 76vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden;
  opacity: 0; transform: translateY(-14px) scale(.98); transition: opacity .3s var(--ease), transform .45s var(--ease);
}
.search.is-open .search__panel { opacity: 1; transform: none; }
.search__bar { display: flex; align-items: center; gap: .8rem; padding: .7rem .7rem .7rem 1.4rem; border-bottom: 1px solid var(--line); }
.search__bar > svg { width: 22px; height: 22px; color: var(--muted); }
.search__bar input { flex: 1; height: 50px; border: 0; outline: none; font-size: 1.12rem; color: var(--ink); background: transparent; }
.search__bar input::-webkit-search-cancel-button { display: none; }
.search__suggest { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; padding: 1rem 1.4rem 0; }
.search__suggest span { font-family: var(--mono); font-size: .7rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-right: .3rem; }
.search__suggest button { padding: .4rem .8rem; border-radius: 999px; background: var(--mist); font-size: .82rem; color: var(--ink); transition: background .3s; }
.search__suggest button:hover { background: var(--sky-2); }
.search__results { overflow-y: auto; padding: .8rem; }
.search__results li button {
  width: 100%; display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 1rem;
  padding: .6rem; border-radius: 14px; text-align: left; transition: background .25s;
}
.search__results li button:hover, .search__results li button:focus-visible { background: var(--mist); outline: none; }
.search__thumb { position: relative; height: 58px; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, var(--sky-2), #f3fbfd 55%, var(--floor-2) 55.5%); }
.search__thumb img { position: absolute; inset: 8% 6% 10%; width: 88%; height: 82%; object-fit: contain; object-position: bottom; }
.search__name { display: block; font-weight: 700; color: var(--ink); letter-spacing: -.015em; }
.search__meta { display: block; font-size: .8rem; color: var(--muted); }
.search__price { font-weight: 700; color: var(--ink); font-size: .92rem; }
.search__none { padding: 1.4rem; text-align: center; color: var(--muted); font-size: .92rem; }
.search__results mark { background: var(--accent-soft); color: inherit; border-radius: 3px; }

/* drawer */
.drawer { justify-content: flex-end; }
.drawer__panel {
  width: min(440px, 100%); height: 100%; display: flex; flex-direction: column; background: #fff;
  transform: translateX(100%); transition: transform .5s var(--ease);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.3rem; letter-spacing: -.025em; display: flex; align-items: center; gap: .6rem; }
.drawer__head h2 span { font-family: var(--mono); font-size: .72rem; font-weight: 500; padding: .2rem .55rem; border-radius: 999px; background: var(--mist); color: var(--ink); }
.drawer__list { flex: 1; overflow-y: auto; padding: .8rem 1rem; }
.drawer__list li { display: flex; align-items: center; gap: .4rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.drawer__list .search__name { font-size: .95rem; }
.drawer__open {
  flex: 1; min-width: 0; display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: .9rem;
  padding: .4rem; border-radius: 14px; text-align: left; transition: background .25s;
}
.drawer__open:hover { background: var(--mist); }
.drawer__remove { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: background .3s, color .3s; }
.drawer__remove:hover { background: var(--mist); color: var(--danger); }
.drawer__remove svg { width: 16px; height: 16px; }
.drawer__empty { display: none; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 2rem; text-align: center; color: var(--muted); }
.drawer__empty svg { width: 40px; height: 40px; fill: none; color: var(--muted-2); }
.drawer.is-empty .drawer__empty { display: flex; }
.drawer.is-empty .drawer__list, .drawer.is-empty .drawer__foot { display: none; }
.drawer__foot { padding: 1.2rem 1.4rem 1.4rem; border-top: 1px solid var(--line); }

/* vehicle modal */
.modal { align-items: center; justify-content: center; padding: 2vh 2vw; }
.modal__panel {
  position: relative; width: min(1180px, 100%); max-height: 96vh; overflow-y: auto;
  display: grid; grid-template-columns: 1.12fr 1fr;
  background: #fff; border-radius: 28px; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(20px) scale(.985); transition: opacity .35s var(--ease), transform .55s var(--ease);
}
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__close { position: absolute; top: 1rem; right: 1rem; z-index: 3; background: #fff; }
.modal__media {
  position: relative; min-height: 440px;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 34%, #f4fbfd 60%, #f5f6f7 60.5%, var(--floor-2) 100%);
}
.modal__media::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 17%; height: 7%;
  background: radial-gradient(closest-side, rgba(14, 22, 30, .32), transparent);
}
.modal__media img {
  position: absolute; left: 6%; right: 6%; bottom: 19%; z-index: 1; width: 88%; height: 58%;
  object-fit: contain; object-position: center bottom; transition: opacity .3s, transform .6s var(--ease-drive);
}
.modal__media img.is-changing { opacity: 0; transform: translateX(-5%); }
.modal__badge { position: absolute; top: 1.2rem; left: 1.2rem; z-index: 2; }
.modal__nav { position: absolute; left: 0; right: 0; bottom: 1.2rem; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 1rem; font-family: var(--mono); font-size: .78rem; color: var(--ink); }
.modal__body { padding: clamp(1.6rem, 3vw, 2.6rem); }
.modal__meta { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1rem; margin: 0 2.8rem .9rem 0; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.modal__meta svg { width: 30px; height: 30px; color: var(--ink); }
.modal__meta span + span::before { content: "·"; margin-right: 1rem; }
.modal__title { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.04em; line-height: 1.05; margin-bottom: 1rem; }
.modal__title .outline { display: block; }
.modal__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.modal__price strong { font-size: 1.7rem; font-weight: 800; letter-spacing: -.035em; color: var(--ink); }
.modal__price span { font-size: .86rem; color: var(--muted); }
.modal__price b { color: var(--ink); }
.modal__specs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.4rem; margin: .4rem 0 1.2rem; }
.modal__specs div { display: flex; flex-direction: column; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.modal__specs dt { display: flex; align-items: center; gap: .4rem; font-size: .74rem; color: var(--muted); }
.modal__specs dt svg { width: 14px; height: 14px; }
.modal__specs dd { font-size: .92rem; font-weight: 600; color: var(--ink); }
.modal__note { font-size: .92rem; color: var(--text); }
.modal__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.save-toggle svg { fill: none; }
.save-toggle[aria-pressed="true"] { border-color: var(--danger); color: var(--danger); }
.save-toggle[aria-pressed="true"] svg { fill: var(--danger); }

/* credits */
.modal--sm .modal__panel { display: block; width: min(820px, 100%); padding: clamp(1.6rem, 3vw, 2.6rem); }
.credits h2 { font-size: 1.6rem; letter-spacing: -.03em; margin: 0 3rem .8rem 0; }
.credits > p { font-size: .9rem; }
.credits__list { margin: 1.2rem 0; border-top: 1px solid var(--line); }
.credits__list li { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .8rem; }
.credits__list li span:first-child { color: var(--ink); font-weight: 600; }
.credits__list a, .credits .fine a { text-decoration: underline; text-underline-offset: 2px; color: var(--accent-deep); }

/* toasts */
.toasts {
  position: fixed; inset: auto auto 1.4rem 50%; z-index: 200; display: grid; gap: .5rem; transform: translateX(-50%);
  width: min(460px, calc(100% - 2rem)); margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; color: inherit; pointer-events: none;
}
.toasts:popover-open, .toasts:not([popover]) { display: grid; }
.toast {
  display: flex; align-items: flex-start; gap: .8rem; padding: .95rem 1.1rem; border-radius: 16px;
  background: var(--ink); color: #fff; font-size: .9rem; box-shadow: var(--shadow-lg);
  animation: toastIn .5s var(--ease) both; pointer-events: auto;
}
.toast svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--accent); color: var(--ink); margin-top: 1px; }
.toast.is-leaving { animation: toastOut .35s var(--ease-io) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* watermark */
.watermark {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem .5rem .7rem;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(12, 14, 16, .58); box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4);
  color: rgba(255, 255, 255, .72); font-size: .8rem; line-height: 1; letter-spacing: .01em; white-space: nowrap;
  pointer-events: none; user-select: none; -webkit-user-select: none;
}
.watermark svg { width: 1.05rem; height: 1.05rem; color: rgba(255, 255, 255, .85); }
.watermark strong { color: #fff; font-weight: 700; }
.footer { padding-bottom: 4.5rem; } /* keep the last footer line clear of the watermark */

/* reveal */
html.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
.services__grid .reveal:nth-child(3n + 2), .services__grid .reveal:nth-child(3n + 3) { transition-delay: .08s; }
.services__grid .reveal:nth-child(3n + 3) { transition-delay: .16s; }

/* RESPONSIVE -------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav { display: none; }
}

@media (max-width: 1024px) {
  .spotlight__inner, .about__grid, .finance__grid, .sell__grid, .reviews__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .spotlight__stage { width: 100%; margin: 0 auto; max-width: 760px; order: -1; }
  .quote-card { position: relative; top: 0; max-width: 620px; }
  .about__media { max-width: 640px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .menu__body { grid-template-columns: 1fr; align-items: start; gap: 2.4rem; }
  .modal__panel { grid-template-columns: 1fr; }
  .modal__media { min-height: 0; height: clamp(230px, 58vw, 470px); }
}

@media (max-width: 860px) {
  .header__cta { display: none; }
  .hero {
    height: auto; max-height: none; min-height: 0;
    background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 30%, #f6fcfd 60%);
  }
  .hero__floor, .hero__band { display: none; }
  /* ghost word sits just above the car's roof and shrinks so long names still fit */
  .hero__ghost {
    top: auto; bottom: calc(var(--car-y) + 12px + var(--car-w) * .28);
    font-size: min(32cqw, 45cqh, 190px, 96cqw / (var(--ghost-chars, 3) * .64 + .24));
  }
  /* the sky is near-white this low down, so tint the ghost instead of white-on-white */
  .hero__ghost span { background-image: linear-gradient(180deg, rgba(10, 125, 150, .24) 10%, rgba(10, 125, 150, .04) 90%); }
  /* exactly one screen tall: the car stage takes whatever height is left */
  .hero__inner {
    min-height: 100vh; min-height: 100svh;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto minmax(150px, 1fr) auto auto;
    grid-template-areas: "head brand" "price price" "stage stage" "specs specs" "nav nav";
    padding-top: calc(var(--header-h) + 22px); padding-bottom: 3.75rem; /* room for the watermark */
  }
  .hero__head::after { display: none; }
  .hero__price { text-align: left; padding-top: .9rem; display: flex; flex-direction: column; }
  .hero__stage {
    position: relative; inset: auto; grid-area: stage; z-index: 0; margin: .6rem 0 0;
    container-type: size;
    --car-w: min(100cqw + var(--gutter), 680px, (100cqh - 64px) * 3.4); /* shrink the car on short screens */
    --car-y: max(26px, (100cqh - var(--car-w) * .3 - 64px) * .4); /* lift it off the bottom on tall ones */
  }
  .hero__stage::before {
    content: ""; position: absolute; bottom: -1px; height: calc(var(--car-y) + var(--car-w) * .18 + 1px); left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); z-index: -1;
    background: linear-gradient(180deg, #f6f7f8, var(--floor-2));
  }
  .hero__car { bottom: var(--car-y); }
  .hero__specs {
    flex-direction: column; align-items: stretch; gap: 1.2rem; padding: 1.4rem 0 1rem;
  }
  .hero__specs::before {
    content: ""; position: absolute; top: 0; bottom: -400px; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); z-index: -1;
    background: var(--band);
  }
  .hero__specs dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .hero__details { align-self: flex-start; }
  .hero__inner > .hero__nav { z-index: 2; flex-direction: row; justify-content: flex-start; gap: .8rem; padding: .2rem 0 0; }
  .hero__count { margin-left: auto; order: 3; }
  .hero__next { width: 52px; height: 52px; }
  .hero__brand svg { width: 36px; height: 36px; }
  .watermark { right: auto; left: 50%; bottom: .75rem; transform: translateX(-50%); padding: .42rem .85rem .42rem .6rem; font-size: .74rem; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .section-head__aside { text-align: left; }
  .toolbar { border-radius: 22px; flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .chips { min-width: 0; }
  .toolbar__right { display: grid; grid-template-columns: 1fr 1fr; }
  .toolbar__right .select select { width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; }
}

/* short phones (e.g. iPhone SE): "Full details" and the arrows share a row so the hero still fits one screen */
@media (max-width: 860px) and (max-height: 700px) {
  .hero__inner {
    grid-template-rows: auto auto minmax(112px, 1fr) auto;
    grid-template-areas: "head brand" "price price" "stage stage" "specs specs";
    padding-top: calc(var(--header-h) + 12px); padding-bottom: 4.15rem; /* arrows sit lower here, keep them clear of the watermark */
  }
  .hero__stage { --car-w: min(100cqw + var(--gutter), 680px, (100cqh - 46px) * 3.4); } /* ghost tucks behind the roof, so less headroom needed */
  .hero__price { padding-top: .5rem; }
  .hero__ghost { bottom: calc(var(--car-y) + var(--car-w) * .22); } /* graze the roofline so it clears the location */
  .hero__specs { gap: .9rem; padding: 1.1rem 0 0; }
  .hero__details { min-width: 0; }
  .hero__inner > .hero__nav { grid-area: specs; align-self: end; justify-self: end; margin-bottom: -7px; padding: 0; }
  .hero__next { width: 46px; height: 46px; }
}

@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .header__left { gap: .8rem; }
  .currency__btn > span:first-child, .currency__sep { display: none; }
  .services__grid, .form-grid { grid-template-columns: 1fr; }
  .brands__head { display: none; }
  .about__badge { white-space: normal; width: max-content; max-width: 90%; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .newsletter__row { flex-direction: column; }
  .newsletter__row .btn { width: 100%; }
  .credits__list li { grid-template-columns: 1fr; gap: .1rem; }
  .modal { padding: 0; align-items: flex-end; }
  .modal__panel { max-height: 94vh; border-radius: 24px 24px 0 0; }
  .modal__specs { grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .search__results li button { grid-template-columns: 78px 1fr; }
  .search__price { grid-column: 2; }
  .faq__body p { padding-right: 0; }
  .review__brand { display: none; }
}

@media (max-width: 400px) {
  .hero__specs dl { gap: .6rem; }
  .hero__title { font-size: 2rem; }
  .toolbar__right { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .marquee { overflow-x: auto; }
  .marquee__track, .spotlight__ticker { animation: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
