/* 00-tokens.css */
/* Dark design (spec 2026-11-21 § 5, mockup brand/redesign-2026-11-18 v3/v5). Colours live only here. */
:root {
  color-scheme: dark; /* native controls (selects, date pickers, scrollbars) in their dark look */
  --bg: #0f1012;
  --tile: #17181b;
  --tile-2: #1f2024;
  --tile-line: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .14);
  --field-line: rgba(255, 255, 255, .4); /* 3:1 on --bg and --tile (WCAG 1.4.11): the border is the field's only edge */
  --text: #f2f1ee;
  --text-soft: #dddcd8;
  --muted: #a3a29e;
  --accent: #ff7500;
  --accent-hover: #ff8a26;
  --on-accent: #111111;
  --glow: rgba(255, 117, 0, .34);
  --glow-soft: rgba(255, 117, 0, .14);
  --glow-warm: rgba(255, 170, 95, .5);
  --glow-none: rgba(255, 117, 0, 0);
  --shade: rgba(0, 0, 0, .7);
  --hover-tint: rgba(255, 255, 255, .08);
  --error: #ff6b5b;
  --graphite: #4c4c4c;

  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: clamp(64px, 10vw, 120px);
  --gutter: clamp(16px, 4vw, 72px);
  --max: 1240px;

  --t-display: clamp(1.9rem, 3.6vw, 3.25rem);
  --t-h2: clamp(1.6rem, 2.9vw, 2.6rem);
  --t-body: 1rem;
  --t-mono: .75rem;

  --f-sans: "Archivo", system-ui, sans-serif;
  --f-wide: "Archivo", "Archivo Wide Fallback", system-ui, sans-serif; /* text set at font-stretch: 125% */
  --f-ui: "Jost", system-ui, sans-serif;
  /* Small capitals (kickers, labels of lists): Jost like the menu; the dark design has no monospace face. */
  --f-mono: "Jost", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 01-fonts.css */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Until Archivo arrives, wide headings use Arial stretched to about Archivo's 125% width, so lines break
   the same and nothing jumps when the real font swaps in (live check 2026-11-22: CLS 0.12 on a slow phone). Tuned by
   measurement, not by the raw width ratio (1.267 left 0.08): 119-124% keep CLS <= 0.01 on 390 and 1440 px; 122% is the middle. */
@font-face {
  font-family: "Archivo Wide Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"), local("Roboto");
  size-adjust: 122%;
}

/* 02-base.css */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; width: 100%; }
img, iframe { max-width: 100%; height: auto; }
/* Wide uppercase Archivo, as in the mockup (v3.css .hero__title, .h2). */
h1, h2, h3 {
  margin: 0;
  font-family: var(--f-wide);
  font-stretch: 125%;
  font-weight: 400;
  letter-spacing: .005em;
  text-transform: uppercase;
  line-height: 1.1;
}
h1 { font-size: var(--t-display); }
/* Other text set wide: same width-matched fallback as the headings. */
:where(.turn__info b, .why__h, .tile-cta__name, .car-card__title, .quick__line, .lead-form__legend, .notfound__code) { font-family: var(--f-wide); }
h2 { font-size: var(--t-h2); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 var(--s2); }
a { color: inherit; overflow-wrap: anywhere; }
dt { font-weight: 600; min-width: 9rem; }
dd { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; } /* orange on the dark ground is > 3:1 (WCAG 1.4.11) */
:is(input, select, textarea):focus { border-color: var(--accent); }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.kicker {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker--dot { display: flex; align-items: center; gap: var(--s1); }
.kicker--dot::before { content: ""; width: 10px; height: 10px; background: var(--accent); flex: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--s1) var(--s2);
  background: var(--accent);
  color: var(--on-accent);
}
.skip-link:focus { left: var(--s2); top: var(--s2); }

main { max-width: var(--max); margin-inline: auto; padding: var(--s2) var(--gutter); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .button:hover { transform: none; }
}

/* 03-buttons.css */
/* Pills (mockup v3.css .pill): orange for the main action, ghost for the second one. .button is the same pill,
   kept for the forms and pages that already use it. */
.pill, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--s3);
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: 500 .95rem/1.2 var(--f-ui);
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease);
}
.pill:hover, .button:hover { background: var(--accent-hover); }
.pill:active, .button:active { transform: scale(.97); }
.pill--ghost, .button--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.pill--ghost:hover, .button--ghost:hover { background: var(--hover-tint); }
.button--dark { background: var(--tile-2); color: var(--text); border-color: var(--line); }
.button--dark:hover { background: var(--tile); }
.button:disabled, .pill:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.link-arrow:hover { color: var(--accent); }

/* 10-header.css */
/* Poster header (mockup v5.css .ph). Breakpoint 860px: the menu collapses into a panel (nav.js), phone layout. */
.site-header { position: relative; z-index: 40; }
.site-header__bar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: var(--max);
  margin-inline: auto;
  padding: 22px var(--gutter) 0;
}
.site-header__logo { display: inline-flex; align-items: center; min-height: 44px; }
.site-header__logo img { display: block; width: auto; height: 78px; }
.site-nav__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 clamp(16px, 4vw, 56px); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .14em;
  font: 500 .78rem/1.2 var(--f-ui);
  color: var(--text-soft);
  transition: color .2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.site-header__actions { position: absolute; right: var(--gutter); top: 36px; display: flex; align-items: center; gap: var(--s1); }
.site-header__menu {
  display: none; /* the button carries `hidden`; nav.js removes it, and only then the phone rules below show it */
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--hover-tint);
  color: var(--text);
  cursor: pointer;
}
.site-header__burger, .site-header__burger::before { display: block; width: 18px; height: 1.5px; background: var(--text); }
.site-header__burger { transform: translateY(-3px); }
.site-header__burger::before { content: ""; transform: translateY(6px); }
.site-header__menu[aria-expanded="true"] { background: var(--line); }

@media (max-width: 860px) {
  .site-header__bar { flex-direction: row; flex-wrap: wrap; justify-content: space-between; padding-top: 12px; }
  .site-header__logo img { height: 58px; }
  .site-header__actions { position: static; }
  .site-header__menu:not([hidden]) { display: inline-grid; }
  /* Without JS the nav stays visible, stacked under the bar. */
  .site-nav { order: 3; flex-basis: 100%; }
  .site-nav.is-collapsible {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    padding: var(--s2) var(--gutter);
    border-bottom: 1px solid var(--line);
    background: var(--tile);
  }
  .site-nav.is-collapsible.is-open { display: block; }
  .site-nav.is-collapsible .site-nav__list { flex-direction: column; align-items: flex-start; }
  .site-nav.is-collapsible a { width: 100%; font-size: .9rem; }
}

@media (max-width: 380px) {
  .site-header__apply { padding: 0 var(--s2); }
}
/* "Apply for financing" (2026-11-25) is long: on 320px phones it would push Apply and Menu onto a second row. */
@media (max-width: 359px) {
  .site-header__apply { padding: 0 12px; font-size: .84rem; }
}

/* 11-footer.css */
/* Footer (mockup v3.css .ft): four columns on desktop, two on a tablet, one on a phone. */
.site-footer { border-top: 1px solid var(--tile-line); color: var(--text-soft); font-size: .92rem; }
.site-footer__inner {
  display: grid;
  grid-template-columns: auto repeat(3, 1fr);
  gap: 28px;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 64px) var(--gutter);
}
.site-footer p { margin: 0; }
.site-footer__badge { display: block; width: auto; height: 84px; }
.site-footer__slogan { margin-top: var(--s1) !important; color: var(--muted); font-size: .8rem; }
.site-footer__h { margin-bottom: var(--s1) !important; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer a, .site-footer .link-button { color: inherit; }
.site-footer__col a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer .open-status { margin-top: 6px !important; color: var(--accent); }
.site-footer .open-status[data-open="no"] { color: var(--muted); }
.site-footer__bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s1) var(--s3); color: var(--muted); font-size: .82rem; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 var(--s3); list-style: none; margin: 0; padding: 0; }
.site-footer__links a, .site-footer__links .link-button { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 900px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* 20-card.css */
/* Car grid and the car tile (mockup v3.css .tile; spec 2026-11-21 § 3): text top left, the cut-out bottom right in
   a warm glow, "View details" at the bottom. Without a cut-out yet the tile shows the first photo (.is-photo). */
.car-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.car-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: var(--tile);
  box-shadow: inset 0 0 0 1px var(--tile-line);
  transition: background-color .3s;
}
.car-card:hover { background: var(--tile-2); }
.car-card::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -30%;
  width: 75%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow-soft), var(--glow-none));
  pointer-events: none;
}
.car-card__link {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-height: 260px;
  padding: 24px 26px;
  color: inherit;
  text-decoration: none;
}
.car-card__media { position: static; }
.car-card__photo {
  position: absolute;
  z-index: -1;
  right: -6%;
  bottom: -8%;
  width: 62%;
  height: auto;
  filter: drop-shadow(0 10px 12px var(--shade));
  transition: transform .6s var(--ease);
}
.car-card__link:hover .car-card__photo { transform: translateX(-10px); }
.car-card.is-photo .car-card__photo { right: 16px; bottom: 16px; width: 48%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; filter: none; }
.car-card__photo--empty { position: static; z-index: auto; width: auto; color: var(--muted); font-size: .85rem; filter: none; }
.car-card__meta { order: 1; margin: 0; }
.car-card__title {
  order: 2;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 400;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.car-card .price { order: 3; }
.car-card__go { order: 4; align-self: flex-start; margin-top: auto; padding-top: var(--s2); font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.car-card__payment { position: relative; z-index: 1; margin: 0; padding: 0 26px 20px; color: var(--muted); font-size: .9rem; }

.badge {
  display: inline-block;
  padding: calc(var(--s1) * .75) var(--s1);
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}
.badge--sold { background: var(--text); color: var(--bg); }
.badge--reserved { background: var(--accent); color: var(--on-accent); }
.car-card__media .badge { position: absolute; top: 20px; right: 20px; z-index: 2; }

.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: calc(var(--s1) / 2) var(--s1); }
.price__amount {
  font-size: 1.6rem;
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.price__suffix, .price__note { font-size: .875rem; color: var(--muted); }
.price__fees { flex-basis: 100%; font-size: .875rem; color: var(--muted); }
.price__fees ul { margin: 0; padding-left: var(--s3); }

@media (prefers-reduced-motion: reduce) {
  .car-card, .car-card__photo { transition: none; }
  .car-card__link:hover .car-card__photo { transform: none; }
}

/* 30-home.css */
/* Home page (dark design, spec 2026-11-21): hero with the carousel, then the blocks from home.yaml. */

/* Full-bleed main: sections bring their own .wrap. */
.main--bleed { max-width: none; padding: 0; }

/* Hero with the carousel (mockup v3.css .hero, v5.css .turn; spec 2026-11-21 § 2). */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: clamp(28px, 3.4vw, 48px) var(--gutter) 0;
  text-align: center;
  background: radial-gradient(70% 40% at 50% 80%, var(--glow-soft), var(--glow-none) 70%);
}
.hero__title {
  max-width: 22ch;
  margin-bottom: 18px;
  font-size: var(--t-display);
  line-height: 1.08;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.hero__sub { max-width: 46ch; margin: 0 0 26px; color: var(--muted); }

.turn { position: relative; width: min(52vw, 700px); margin: clamp(12px, 2vw, 28px) auto 0; padding-bottom: clamp(28px, 4vw, 48px); }
.turn::before {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  top: 48%;
  height: 46%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow-warm), var(--glow-soft) 55%, var(--glow-none));
  pointer-events: none;
}
.turn__track { position: relative; aspect-ratio: 16 / 10; margin: 0; padding: 0; list-style: none; touch-action: pan-y; }
.turn__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform-origin: 50% 92%;
  cursor: pointer;
  transition: transform .8s var(--ease), opacity .8s, filter .8s;
}
.turn__slide img { width: auto; height: auto; max-width: 100%; max-height: 100%; filter: drop-shadow(0 12px 12px var(--shade)); }
.turn__slide[data-pos="0"] { z-index: 3; cursor: default; }
.turn__slide[data-pos="1"] { z-index: 2; transform: translateX(72%) scale(.42); opacity: .55; filter: brightness(.55) saturate(.7); }
.turn__slide[data-pos="-1"] { z-index: 2; transform: translateX(-72%) scale(.42); opacity: .55; filter: brightness(.55) saturate(.7); }
.turn__slide[data-pos="2"] { z-index: 1; transform: translateX(112%) scale(.28); opacity: 0; }
.turn__slide[data-pos="-2"] { z-index: 1; transform: translateX(-112%) scale(.28); opacity: 0; }
.turn__slide[data-pos="3"], .turn__slide[data-pos="-3"] { opacity: 0; visibility: hidden; }
/* Far slides are invisible (opacity 0): they must not catch clicks meant for the arrows or the neighbours. */
.turn__slide[data-pos="2"], .turn__slide[data-pos="-2"], .turn__slide[data-pos="3"], .turn__slide[data-pos="-3"] { pointer-events: none; }
/* Without JS only the car in the light is shown. */
.turn:not(.is-ready) .turn__slide:not([data-pos="0"]) { visibility: hidden; }
.turn__btn {
  position: absolute;
  z-index: 4;
  top: 40%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--hover-tint);
  color: var(--text);
  cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.turn__btn:hover { background: var(--line); }
.turn__btn:active { transform: scale(.94); }
.turn__btn--prev { left: calc(50% - 50vw + var(--gutter)); }
.turn__btn--next { right: calc(50% - 50vw + var(--gutter)); }
.turn:not(.is-ready) .turn__btn { display: none; }
.turn__info { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px; margin: 14px 0 0; font-size: .95rem; color: var(--muted); }
.turn__info b { color: var(--text); font-weight: 400; font-stretch: 125%; text-transform: uppercase; overflow-wrap: anywhere; }
.turn__info a { color: var(--text); text-underline-offset: 3px; }
.turn__dots { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px; min-height: 48px; margin-top: 10px; }
.turn__dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.turn__dots button::before { content: ""; display: block; width: 8px; height: 8px; margin: auto; border-radius: 50%; background: var(--muted); opacity: .5; transition: width .3s, opacity .3s; }
.turn__dots button[aria-current="true"]::before { width: 22px; border-radius: 4px; background: var(--accent); opacity: 1; }

@media (max-width: 760px) {
  .turn { width: min(92vw, 520px); }
  .turn__btn { top: 34%; width: 44px; height: 44px; }
  /* Name, price line and link each on their own line: the same height in the fallback font and in Archivo, and for
     every car, so nothing below jumps (live check 2026-11-22). */
  .turn__info { flex-direction: column; flex-wrap: nowrap; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .turn__slide, .turn__dots button::before { transition: none; }
}

/* Shared frame of the home blocks under the hero. */
.call, .lot, .why, .fin5, .reviews { width: calc(100% - 2 * var(--gutter)); max-width: var(--max); margin: 0 auto clamp(72px, 9vw, 128px); }
.lot h2, .why h2, .fin5 h2, .reviews h2, .call h2 { font-size: var(--t-h2); line-height: 1.12; overflow-wrap: anywhere; }

/* Get a call back (mockup v5.css .lead): intro on the left, the form on the right. */
.call {
  display: grid;
  grid-template-columns: 1fr 2.1fr;
  grid-template-rows: auto 1fr;
  gap: var(--s2) clamp(24px, 4vw, 64px);
  align-items: start;
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: 8px;
  background: radial-gradient(60% 120% at 0% 0%, var(--glow-soft), var(--glow-none) 60%), var(--tile);
  box-shadow: inset 0 0 0 1px var(--tile-line);
}
.call > h2, .call > p:not(.lead-form__alt) { grid-column: 1; }
.call > p:not(.lead-form__alt) { margin: 0; color: var(--muted); max-width: 32ch; }
.call > form, .call > .lead-form__success { grid-column: 2; grid-row: 1 / span 2; }
.call > .lead-form__alt { grid-column: 2; margin: 0; color: var(--muted); font-size: .9rem; }
.call > .lead-form__alt a { color: var(--text); text-underline-offset: 3px; }
.call .lead-form { max-width: none; }
@media (min-width: 1101px) {
  .call .lead-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* In stock now (mockup v3.css .lot): two tiles a row on a tablet, three on a desktop. */
.lot__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s1) var(--s3); margin-bottom: clamp(24px, 3vw, 40px); }
.lot__all { white-space: nowrap; }
.lot__all::after { content: "\00a0\2192" / ""; }
.lot__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.lot__cell { min-width: 0; }
.tile-cta {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  height: 100%;
  min-height: 230px;
  padding: 24px 26px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  transition: background-color .3s;
}
.tile-cta:hover { background: var(--accent-hover); }
.tile-cta__name { font-size: 1.15rem; font-stretch: 125%; text-transform: uppercase; }
.tile-cta__text { max-width: 30ch; font-size: .95rem; }
.tile-cta__go { align-self: flex-start; margin-top: auto; padding: 10px 20px; border-radius: 999px; background: var(--on-accent); color: var(--text); font: 500 .9rem/1.2 var(--f-ui); }

/* Price plus HST. That's it. (mockup v3.css .why) */
.why { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.why__intro p { margin: 16px 0 0; color: var(--muted); max-width: 34ch; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; margin: 0; padding: 0; }
.why__item { display: flex; flex-direction: column; gap: 8px; min-height: 150px; padding: 22px; border-radius: 6px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--tile-line); color: var(--muted); font-size: .95rem; }
.why__h { color: var(--text); font-size: .95rem; font-stretch: 125%; text-transform: uppercase; }

/* Financing (mockup v5.css .fin5) */
.fin5 { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.fin5__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.fin5__text, .fin5__note { margin: 0; color: var(--muted); max-width: 40ch; }
.fin5__note { font-size: .88rem; }
.fin5__steps { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; margin: 0; padding: 0; }
.fin5__steps::before { content: ""; position: absolute; inset: -20% 0; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, var(--glow-soft), var(--glow-none)); }
.fin5__steps li { display: flex; flex-direction: column; gap: 8px; min-height: 130px; padding: 22px; border-radius: 6px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--tile-line); }
.fin5__steps .is-last { background: var(--accent); box-shadow: none; }
.fin5__steps .is-last .why__h, .fin5__steps .is-last .fin5__n { color: var(--on-accent); }
.fin5__n { order: 2; margin-top: auto; color: var(--muted); font-size: .82rem; }

/* Customer reviews (mockup v3.css .rev) */
.reviews .wrap { padding: 0; max-width: none; }
.reviews h2 { margin-bottom: var(--s2); }
.reviews__intro { margin: 0 0 clamp(24px, 3vw, 40px); color: var(--muted); }
.reviews [data-reviews-list], .reviews__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0 0 var(--s3); padding: 0; }
.reviews [data-reviews-list] > li, .reviews__card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 6px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--tile-line); }
.reviews__card p { margin: 0; }
.reviews__text { flex: 1; }
.reviews__stars { color: var(--accent); letter-spacing: 3px; }
.reviews__by { color: var(--muted); font-size: .88rem; }
.reviews__via { color: var(--muted); }
.reviews__summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s2); margin: 0 0 var(--s3); }
.reviews__score { font-size: var(--t-h2); line-height: 1; }
.reviews__count, .reviews__source { color: var(--muted); }
.reviews__source { margin-top: var(--s3); font-size: .875rem; }

/* Find your next car (mockup v5.css .outro5, .quick) */
.outro {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(32px, 4vw, 56px) var(--gutter) clamp(72px, 10vw, 140px);
  text-align: center;
  background: radial-gradient(60% 50% at 50% 70%, var(--glow-soft), var(--glow-none) 70%);
}
.outro__title { font-size: var(--t-display); line-height: 1.08; overflow-wrap: anywhere; }
.quick { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: clamp(16px, 2vw, 28px); }
.quick__line { position: relative; margin: 0; font-stretch: 125%; text-transform: uppercase; font-size: clamp(1.25rem, 2.6vw, 2.3rem); line-height: 1.3; }
.quick__line > span:first-child { margin-right: .3em; color: var(--muted); }
.quick__pick { position: relative; display: inline-block; margin: 0 .2em; white-space: nowrap; }
.quick__pick::after { content: ""; position: absolute; right: .12em; top: 50%; width: .3em; height: .3em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.quick__pick select {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0 .7em .06em 0;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-stretch: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  color: var(--text);
  background: linear-gradient(var(--accent), var(--accent)) left 100% / 100% 3px no-repeat;
  cursor: pointer;
}
.quick__pick select:hover { background-size: 100% 6px; }
.quick__pick select:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.quick__pick option { text-transform: none; color: var(--text); background: var(--tile); }
.quick__measure { position: absolute; left: 0; top: 0; visibility: hidden; white-space: pre; pointer-events: none; }
.quick__res { margin: 0; color: var(--muted); }
.quick__res strong { color: var(--text); font-weight: 500; }
.quick__btns { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 22px; }
.quick__alt { padding: 10px 0; color: var(--text); text-underline-offset: 4px; }

@media (max-width: 1100px) {
  .call { grid-template-columns: 1fr; grid-template-rows: none; }
  .call > form, .call > .lead-form__success, .call > .lead-form__alt { grid-column: 1; grid-row: auto; }
}
@media (max-width: 1000px) {
  .fin5, .why { grid-template-columns: 1fr; }
  .lot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews [data-reviews-list], .reviews__list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lot__grid { grid-template-columns: 1fr; }
  .why__grid li, .fin5__steps li { min-height: 0; padding: 18px; }
}

/* 40-car.css */
/* Car page: gallery, sticky aside, specs, options, phone call/apply bar. */
.car { padding-top: var(--s3); }

.car__top { display: grid; gap: var(--s3); align-items: start; }
.car__gallery { min-width: 0; }

/* Gallery: slides swipe on a scroll-snap strip; photos are never cropped (portrait interiors). */
.gallery__slides {
  position: relative;
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 6px;
  background: var(--tile);
}
.gallery__slides::-webkit-scrollbar { display: none; }
.gallery__slides:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.gallery__slides > li { flex: 0 0 100%; scroll-snap-align: start; }
.gallery__slides img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--tile); }
.gallery__count { margin: var(--s1) 0 0; }
.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: var(--s1);
  margin: var(--s2) 0 0;
  padding: 0;
  list-style: none;
}
.gallery__thumbs a { display: block; overflow: hidden; border: 1px solid var(--tile-line); border-radius: 4px; background: var(--tile); }
.gallery__thumbs a[aria-current] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.gallery__thumbs img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Aside */
.car__aside { display: grid; gap: var(--s2); align-content: start; min-width: 0; }
.car__meta { margin: 0; }
.car__aside h1 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.car__aside .badge { justify-self: start; }
.car__aside .price { margin-top: var(--s1); }
.car__aside .price__amount { font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: 1; }
.car__actions { display: grid; gap: var(--s1); margin-top: var(--s2); }
.car__actions .button { width: 100%; }
.car__actions .link-arrow { justify-self: start; }
.car__actions .link-arrow::after { content: "\00a0\2192" / ""; }

/* Details */
.car__details { display: grid; gap: var(--s5); max-width: 56rem; padding-block: var(--s5); }
.car__details h2, .car__details [data-lead-slot] h2 { font-size: var(--t-h2); margin-bottom: var(--s3); }
.specs dl { display: grid; margin: 0; border-top: 1px solid var(--line); }
.specs dl > div {
  display: grid;
  grid-template-columns: minmax(7rem, 1fr) 2fr;
  gap: var(--s2);
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--line);
}
.specs dt { min-width: 0; font-weight: 400; color: var(--muted); }
.specs dd { margin: 0; font-size: .9375rem; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: var(--s1); margin: 0; padding: 0; list-style: none; }
.tags li { padding: 6px var(--s2); border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--text-soft); }
.car__top--no-photos .car__details { padding-top: 0; }
#test-drive, .calculator-section { scroll-margin-top: var(--s3); }

.similar { padding-block: var(--s5) var(--s6); border-top: 1px solid var(--line); }
.similar h2 { font-size: var(--t-h2); margin-bottom: var(--s4); overflow-wrap: anywhere; }

/* Phone-only fixed bar */
.car-bar { display: none; }

/* Below 1100px (the menu breakpoint) the gallery is full width with the aside under it; from 1100px two columns and the aside sticks. */
@media (min-width: 1100px) {
  .car__top { column-gap: var(--s4); }
  /* The aside spans gallery and details rows, so it stays beside the whole article. */
  .car__top {
    grid-template-columns: 7fr 5fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: "gallery aside" "details aside";
  }
  .car__top--no-photos { grid-template-rows: 1fr; grid-template-areas: "details aside"; }
  .car__gallery { grid-area: gallery; }
  .car__details { grid-area: details; }
  .car__aside { grid-area: aside; position: sticky; top: var(--s3); }
}

@media (max-width: 767px) {
  .gallery__thumbs { display: none; }
  .gallery__slides { margin-inline: calc(var(--gutter) * -1); }
  .car__details { gap: var(--s4); padding-block: var(--s4); }
  .specs dl > div { grid-template-columns: 1fr 1fr; }
  .car__actions .button--ghost[href^="tel:"] { display: none; } /* the fixed bar carries Call */
  .car-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    gap: var(--s1);
    min-height: 72px;
    align-items: center;
    padding: var(--s1) var(--gutter);
    background: var(--tile);
    border-top: 1px solid var(--line);
  }
  .car-bar .button { flex: 1; padding-inline: var(--s2); }
  .car-bar .button--ghost { flex: 0 0 auto; }
  html:has(.has-car-bar) { scroll-padding-bottom: calc(72px + var(--s2)); }
  .has-car-bar .site-footer { padding-bottom: calc(var(--s5) + 72px); }
}

/* 50-catalog.css */
/* Inventory page: head, filters column (sticky from 1100px, a toggled panel below), results grid, and the
   .filters__* controls that the finder reuses (51-finder.css). */

.catalog__head { display: grid; gap: var(--s2); padding-block: var(--s4) var(--s4); }
.catalog__count { margin: 0; }
.catalog__head h1 { overflow-wrap: anywhere; }

.catalog { display: grid; gap: var(--s3); grid-template-columns: minmax(0, 1fr); align-items: start; padding-bottom: var(--s5); }
.catalog:not(.has-filters) .catalog__filters { display: none; }
.catalog__results { min-width: 0; }

/* Cards: 3 columns beside the filters, 2 on tablets, 1 on phones. */
.catalog__results .car-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1099px) { .catalog__results .car-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .catalog__results .car-grid { grid-template-columns: minmax(0, 1fr); } }

/* Filters form */
.filters { display: grid; gap: var(--s2); }
.filters__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.filters__group legend, .filters__field > label {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}
.filters__group legend { display: block; width: 100%; padding: var(--s2) 0 0; margin-bottom: var(--s1); border-top: 1px solid var(--line); }
.filters__field { display: grid; gap: var(--s1); margin: 0; }
.filters__field input, .filters__field select {
  min-height: 48px;
  padding: 0 14px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--field-line);
  border-radius: 6px;
  transition: border-color .2s, box-shadow .2s;
}
.filters__field :is(input, select):hover { border-color: var(--muted); }
.filters__field :is(input, select):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.filters__check { display: flex; align-items: center; gap: var(--s1); min-height: 44px; }
.filters__check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }
.filters__check label { flex: 1; align-self: stretch; display: flex; align-items: center; cursor: pointer; }
.filters__hint { font-size: .875rem; color: var(--muted); margin: 0; }
.filters__count, .finder__count { margin: 0; font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.filters__none { margin: 0 0 var(--s3); padding: var(--s3); border-radius: 6px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--tile-line); }
.filters .button { width: 100%; }
.catalog__bar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s3); }
.catalog__bar .filters__count { margin: 0; }
.catalog__sort { flex: 0 1 16rem; min-width: 0; }

/* Estimated payment on a card; only rendered when credit terms are confirmed. */
.car-card__payment { margin: 0; font-size: .875rem; color: var(--muted); }

/* Toggle: only below 1100px. */
.filters-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0 var(--s2);
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--tile);
  border: 1px solid var(--field-line);
  border-radius: 6px;
  cursor: pointer;
}
.filters-toggle::after { content: "+" / ""; font-size: 1.25rem; line-height: 1; }
.filters-toggle[aria-expanded="true"]::after { content: "\2212" / ""; }

@media (max-width: 1099px) {
  .catalog__filters { position: relative; z-index: 5; }
  .filters:not(.is-open) { display: none; }
  .filters.is-open {
    margin-top: var(--s1);
    padding: var(--s2);
    border-radius: 6px;
    background: var(--tile);
    border: 1px solid var(--line);
    box-shadow: 0 var(--s2) var(--s3) var(--shade);
  }
}

@media (min-width: 1100px) {
  .filters-toggle { display: none; }
  .catalog.has-filters { grid-template-columns: 18rem minmax(0, 1fr); gap: var(--s5); }
  /* The filters column scrolls with the page: a sticky column with its own scroll box cut the last
     fields off mid-height whenever the filters were taller than the window. */
}

/* 51-finder.css */
/* "Find my car": one column, steps as questions, options as bordered tiles, results as the catalog grid. */

.finder-head { display: grid; gap: var(--s2); padding-block: var(--s4); }
.finder-head__intro { margin: 0; max-width: 36rem; color: var(--muted); }

.finder { max-width: 36rem; padding-bottom: var(--s5); }
.finder__progress { margin: 0 0 var(--s3); }
.finder__step { border: 0; margin: 0 0 var(--s3); padding: 0; min-width: 0; }
.finder__step > h2, .finder__step > legend {
  display: block;
  padding: 0;
  margin: 0 0 var(--s3);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 400;
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: 1.12;
}
.finder__step .filters__field { margin-bottom: var(--s2); }
.finder__step .filters__group legend { padding-top: 0; margin-bottom: var(--s2); border-top: 0; }
.finder__step .filters__hint { margin-top: var(--s2); }

/* Option tiles: radio and checkbox rows. Checked = accent border + ringed orange marker. */
.finder .filters__check {
  gap: var(--s2);
  min-height: 52px;
  margin-bottom: var(--s1);
  padding: 0 var(--s2);
  border-radius: 6px;
  background: var(--tile);
  border: 2px solid var(--tile-line);
}
.finder .filters__check:has(input:checked) { border-color: var(--accent); }
.finder .filters__check input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--muted);
  border-radius: 0;
  background: var(--bg);
}
.finder .filters__check input[type="radio"] { border-radius: 50%; }
/* Checked also changes shape, not only colour: a heavy light ring around the orange centre (WCAG 1.4.1). */
.finder .filters__check input:checked { background: var(--accent); border: 5px solid var(--text); }
.finder .filters__check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.finder__error { margin: 0 0 var(--s2); color: var(--error); font-weight: 600; }
.finder__nav { display: flex; gap: var(--s2); }
.finder__nav .button { flex: 1; min-width: 0; white-space: normal; text-align: center; }
.finder__nav .button:first-child:not([hidden]) { background: transparent; color: var(--text); border-color: var(--line); }

/* Results use the full width, not the 36rem form column. */
.finder:has(.finder__results:not([hidden])) { max-width: none; }
.finder__results { display: grid; gap: var(--s3); }
.finder__results > h2 { font-size: var(--t-h2); }
.finder__results > h3 { font-size: 1.2rem; margin-top: var(--s3); }
.finder__results .car-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.finder__results > .button { justify-self: start; }
@media (max-width: 1099px) { .finder__results .car-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .finder__results .car-grid { grid-template-columns: minmax(0, 1fr); } }

/* 60-forms.css */
.hp-field { display: none !important; } /* honeypot: never off-screen tricks, autofill would fill it */

.lead, [data-lead-slot] { padding-top: var(--s4); border-top: 1px solid var(--line); }
.lead h2, [data-lead-slot] h2 { font-size: var(--t-h2); margin-bottom: var(--s2); overflow-wrap: anywhere; }
.lead-form { max-width: 40rem; }
/* Two columns for the short fields (inputs and selects); textarea, file input and everything else span the row. */
@media (min-width: 768px) {
  .lead-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s3); max-width: 52rem; align-items: start; }
  .lead-form > * { grid-column: 1 / -1; }
  .lead-form > .lead-form__field:has(input:not([type="file"]), select) { grid-column: auto; }
  /* Steps of the financing application keep the same two-column grid inside the fieldset. */
  .lead-form__step { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s3); align-items: start; }
  .lead-form__step > * { grid-column: 1 / -1; }
  .lead-form__step > .lead-form__field:has(input:not([type="file"]), select) { grid-column: auto; }
}
.lead-form__field, .calculator__field { display: grid; gap: var(--s1); margin: 0 0 var(--s2); }
.calculator__field { max-width: 22rem; }
.lead-form label, .calculator__field label { font-weight: 500; }
.lead-form__field > label, .calculator__field label {
  font-family: var(--f-sans);
  font-size: .85rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-soft);
}
.lead-form__req { color: var(--accent); }
.lead-form__field input, .lead-form__field select, .lead-form__field textarea,
.calculator__field input, .calculator__field select {
  min-height: 48px;
  padding: 0 14px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--field-line);
  border-radius: 6px;
  transition: border-color .2s, box-shadow .2s;
}
.lead-form__field :is(input, select, textarea):hover, .calculator__field :is(input, select):hover { border-color: var(--muted); }
.lead-form__field :is(input, select, textarea):focus, .calculator__field :is(input, select):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.lead-form__field [aria-invalid="true"] { border-color: var(--error); }
.lead-form__field textarea { padding: var(--s1) var(--s2); }
.lead-form__field input[type="file"] { padding: calc(var(--s1) + 2px) 0; border: 0; min-width: 0; max-width: 100%; }
.lead-form__check { display: flex; gap: var(--s1); align-items: flex-start; margin: var(--s2) 0 var(--s1); }
.lead-form__check input { width: 20px; height: 20px; margin: var(--s1) 0 0; flex: none; accent-color: var(--accent); }
/* 44px target: the whole label is clickable and padded; the box lines up with the first text line. */
.lead-form__check label { flex: 1; min-height: 44px; padding-block: var(--s1); }
.lead-form__hint, .lead-form__note { font-size: .875rem; color: var(--muted); margin: 0; }
.lead-form__error, .lead-form__alert { color: var(--error); font-weight: 600; margin: 0; }
.lead-form__captcha { margin: var(--s2) 0; }
.lead-form__progress, .lead-form__trouble, .lead-form__unavailable { margin: 0 0 var(--s2); }
.lead-form__success { max-width: 40rem; margin-top: var(--s2); }
/* Send, and on the last step of the application Back next to it (lead-form.njk). */
.lead-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
@media (max-width: 767px) {
  .lead-form__actions:has([data-step-back-last]:not([hidden])) .button { flex: 1; }
}
.lead-form__car { margin: var(--s1) 0 var(--s2); }
.lead-form [data-lead-submit]:disabled { opacity: .5; cursor: not-allowed; }

.calculator__result { margin: var(--s2) 0; }
.calculator__row strong { font-size: 1.25rem; }
.calculator__disclaimer { font-size: .875rem; color: var(--muted); }

/* Financing application steps (lead-form.js shows one at a time; without JS all stay visible). */
.lead-form__step { border: 0; margin: 0 0 var(--s3); padding: 0; min-width: 0; }
.lead-form__legend { padding: 0; margin: 0 0 var(--s3); font-family: var(--f-sans); font-size: 1.2rem; font-weight: 400; font-stretch: 125%; text-transform: uppercase; line-height: 1.2; }
.lead-form__legend:focus { outline: none; }
.lead-form__legend:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lead-form__steps-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: 0 0 var(--s3); }
.lead-form__steps-nav[hidden] { display: none; }
.lead-form__step-count { margin: 0 0 0 auto; color: var(--muted); }
@media (max-width: 767px) {
  .lead-form__steps-nav .button { flex: 1; }
  .lead-form__step-count { order: -1; flex-basis: 100%; margin: 0; }
}
/* While stepping, consents, captcha and Back + Send appear on the last step only (lead-form.js adds the classes).
   The "form unavailable" notice is not in this list: when the captcha cannot load it shows on step 1. */
.lead-form.is-stepping:not(.is-last) > :is(.lead-form__check, .lead-form__hint, .lead-form__error, .lead-form__captcha, .lead-form__trouble, .lead-form__actions) { display: none; }

/* 70-pages.css */
/* Content pages: page head, prose, contact details, apply frame, 404. Dark design (2026-11-21). */

.page-head { display: grid; gap: var(--s2); padding-block: var(--s5) var(--s4); }
.page-head h1 { font-size: var(--t-h2); overflow-wrap: anywhere; }
.page-head .kicker { margin: 0; }

.page { padding-bottom: var(--s4); }
.page__section { padding-bottom: var(--s5); }

.prose { max-width: 42rem; font-size: var(--t-body); }
.prose h2 { font-size: 1.25rem; margin: var(--s4) 0 var(--s2); }
.prose { color: var(--text-soft); }
.prose strong, .prose h2, .prose h3 { color: var(--text); }
.prose h3 { margin: var(--s3) 0 var(--s1); }
.prose p, .prose ul, .prose ol { margin: 0 0 var(--s2); }
.prose ul, .prose ol { padding-left: var(--s3); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* Contact details: label / value pairs. Footer overrides in 11-footer.css. */
.contact-details { display: grid; gap: var(--s1) var(--s2); margin: 0; }
.contact-details a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-details > div { display: flex; flex-wrap: wrap; gap: 0 var(--s2); }
.page__contact { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); }
.page__contact .contact-details > div { flex-direction: column; gap: var(--s1); padding-bottom: var(--s2); border-bottom: 1px solid var(--line); }
.page__contact dt {
  min-width: 0;
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  font-weight: 400;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 768px) { .page__contact .contact-details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); } }

/* Dealertrack Credit Online (2026-11-25): 720px keeps their one-column layout (their wide one is a 500px scroll box);
   page-tall so the page, not the frame, scrolls (they post no height: fixed with room). Desktop: text left, form right.
   Their form is white and cross-origin (no styling inside): invert + hue-rotate turns it dark and keeps the hues. */
.apply-credit__head { margin-bottom: var(--s3); }
.apply-frame__alt { font-size: .9rem; color: var(--text-soft); }
.apply-frame {
  display: block;
  width: 100%;
  max-width: 720px;
  height: 3000px; /* page-tall, no inner scroll: their one column is ~2560px on the applicant step (2026-11-25) */
  border: 0;
  filter: invert(.94) hue-rotate(180deg); /* .94: their white lands on the shade of --bg */
}
@media (min-width: 1200px) {
  .apply-credit { display: grid; grid-template-columns: minmax(0, 1fr) 720px; gap: var(--s4); align-items: start; }
  .apply-credit__head { position: sticky; top: var(--s4); margin-bottom: 0; }
  .apply-credit__head h2 { font-size: clamp(1.4rem, 1.9vw, 2rem); overflow-wrap: normal; }
}
@media (max-width: 720px) {
  .apply-frame { width: calc(100% + 2 * var(--gutter)); max-width: none; height: 3200px; margin-inline: calc(-1 * var(--gutter)); }
}
.apply-frame__top { margin: var(--s2) 0 0; font-size: .9rem; }

.notfound { display: grid; gap: var(--s2); justify-items: start; padding-bottom: var(--s6); }
.notfound__code {
  margin: 0;
  font-size: var(--t-display);
  font-stretch: 125%;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
}
.notfound__text { max-width: 42rem; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* 80-consent.css */
/* Cookie consent banner: fixed bottom panel. Hidden via [hidden] until consent.js finds no stored choice. */

.consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  display: grid;
  gap: var(--s1);
  padding: var(--s3) var(--gutter);
  background: var(--tile);
  border-top: 1px solid var(--line);
  box-shadow: 0 calc(-1 * var(--s2)) var(--s3) var(--shade);
}
.consent h2 { font-size: 1.15rem; }
.consent p { margin: 0; max-width: 56rem; }
.consent__actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s1); }
.consent .button { min-height: 44px; }

.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  min-height: 44px;
}

/* Footer gets room while the banner is open so the last content stays reachable. */
body:has(.consent:not([hidden])) .site-footer { padding-bottom: calc(var(--s5) + 13rem); }

/* Phones: compact banner; the fixed car call/apply bar steps aside until a choice is made. */
@media (max-width: 767px) {
  .consent { padding: var(--s2) var(--gutter); gap: var(--s1); }
  .consent h2 { font-size: 1.25rem; }
  .consent p { font-size: .875rem; line-height: 1.4; }
  .consent__actions { flex-wrap: nowrap; gap: var(--s1); margin-top: var(--s1); }
  .consent__actions .button { flex: 1; padding-inline: var(--s1); }
  body:has(.consent:not([hidden])) .car-bar { display: none; }
}
