/* =====================================================================
   Autren Motors · components
   The building blocks the website is made from. Every value comes from
   tokens.css. Kit-only layout lives in kit.css, not here.
   ===================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-md);
  line-height: var(--lh-md);
  font-weight: var(--w-regular);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }
/* Hidden means hidden, whatever display a component sets. */
[hidden] { display: none !important; }
.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; }
.tnum { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico--sm { width: 16px; height: 16px; }
.ico--lg { width: 24px; height: 24px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.h1 { font-size: var(--text-3xl); line-height: var(--lh-3xl); font-weight: var(--w-bold); letter-spacing: -0.035em; text-wrap: balance; }
.h2 { font-size: var(--text-2xl); line-height: var(--lh-2xl); font-weight: var(--w-bold); letter-spacing: -0.03em; text-wrap: balance; }
.h3 { font-size: var(--text-xl); line-height: var(--lh-xl); font-weight: var(--w-bold); letter-spacing: -0.02em; text-wrap: balance; }
.lead { font-size: var(--text-lg); line-height: var(--lh-lg); text-wrap: pretty; }
.body { font-size: var(--text-md); line-height: var(--lh-md); text-wrap: pretty; max-width: 62ch; }
.small { font-size: var(--text-sm); line-height: var(--lh-sm); }
.label { font-size: 12px; line-height: 16px; font-weight: var(--w-semibold); letter-spacing: 0.06em; text-transform: uppercase; }
/* Carsa-style highlight: one phrase per page at most, white on emerald. */
.mark { background: var(--emerald); color: var(--white); padding: 0 0.18em; border-radius: 0.14em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Section heading: title, one line of support, and an optional action on the right. */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); margin-bottom: var(--space-10); }
.section-head__text { display: grid; gap: var(--space-3); max-width: 640px; }
.section-head__text p { font-size: var(--text-md); line-height: var(--lh-md); }
@media (max-width: 640px) { .section-head { flex-direction: column; align-items: flex-start; margin-bottom: var(--space-8); } }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--white); --btn-fg: var(--black); --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: var(--control-h); padding: 0 var(--space-6);
  border: 1px solid var(--btn-bd); border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: var(--text-sm); line-height: 1; font-weight: var(--w-semibold); white-space: nowrap;
  text-decoration: none; user-select: none;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn .ico { width: 18px; height: 18px; }
.btn--primary { --btn-bg: var(--emerald); --btn-fg: var(--white); --btn-bd: var(--emerald); }
.btn--ink { --btn-bg: var(--black); --btn-fg: var(--white); --btn-bd: var(--black); }
.btn--white { --btn-bg: var(--white); --btn-fg: var(--black); --btn-bd: var(--white); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: var(--line-on-dark); }
.btn--sm { height: var(--control-h-sm); padding: 0 var(--space-4); }
.btn--block { display: flex; width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { --btn-bd: var(--black); }
  .btn--primary:hover { --btn-bg: var(--emerald-hover); --btn-bd: var(--emerald-hover); }
  .btn--ink:hover { --btn-bg: var(--emerald); --btn-bd: var(--emerald); }
  .btn--white:hover { --btn-bg: var(--white); --btn-bd: var(--white); box-shadow: inset 0 0 0 1px var(--black); }
  .btn--outline-light:hover { --btn-bd: var(--white); }
}
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; --btn-bg: var(--fill); --btn-bd: transparent; --btn-fg: var(--black); }
/* Loading: the label stays for width, a spinner sits on top. */
.btn.is-loading { position: relative; color: transparent; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
  border: 2px solid var(--btn-fg); border-right-color: transparent; border-radius: 50%;
  animation: spin 700ms linear infinite;
}
.btn.is-loading .ico { opacity: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: var(--tap); height: var(--tap); padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: var(--white); color: var(--black);
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.icon-btn:active:not(:disabled) { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover:not(:disabled) { background: var(--black); border-color: var(--black); color: var(--white); } }
.icon-btn:disabled { cursor: not-allowed; opacity: 0.35; }
.icon-btn .count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 var(--space-1);
  display: grid; place-items: center; border-radius: var(--r-pill);
  background: var(--emerald); color: var(--white); box-shadow: 0 0 0 2px var(--white);
  font-size: 12px; line-height: 1; font-weight: var(--w-bold); font-variant-numeric: tabular-nums;
}
.icon-btn .count:empty, .icon-btn .count[data-count="0"] { display: none; }

.text-link {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap);
  font-size: var(--text-sm); font-weight: var(--w-semibold);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--line-strong);
  transition: text-decoration-color var(--dur-fast) var(--ease-out);
}
button.text-link { padding: 0; border: 0; background: none; color: inherit; }
.text-link .ico { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { text-decoration-color: currentColor; }
  .text-link:hover .ico { transform: translateX(3px); }
}

/* ---------- Announcement bar ---------- */
/* Emerald: free sourcing is the offer, so it leads the page (Abdullah, 30 Oct 2026). */
.announce { background: var(--emerald); color: var(--white); }
.announce__row { display: flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 40px; padding-block: var(--space-2); font-size: var(--text-xs); line-height: var(--lh-xs); font-weight: var(--w-semibold); text-align: center; }
.announce__row a { display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, 0.6); }
.announce__row a:hover { text-decoration-color: var(--white); }

/* =====================================================================
   Navigation
   One component that lays itself out from its own width (container
   queries), so the same markup is the desktop bar and the phone bar.
   Every section opens its own panel, like the Thames Cars bar (Abdullah,
   11 Nov 2026), on Autren's black.
   ===================================================================== */
.nav-host { container: nav / inline-size; position: sticky; top: 0; z-index: var(--z-sticky); }
/* Side padding follows the bar's own width, so a phone-sized bar gets phone-sized padding. */
/* The bar is black on every page and stays black on scroll (Abdullah, 30 Oct 2026: no white nav).
   Its menus and the phone sheet are white cards under it. */
.nav { --nav-h: 64px; --gutter: clamp(16px, 4cqi, 40px); position: relative; color: var(--black); }
.nav__bar { position: relative; height: var(--nav-h); background: var(--black); color: var(--white); box-shadow: 0 1px 0 var(--line-on-dark); transition: box-shadow var(--dur) var(--ease-out); }
.nav__row { position: relative; display: flex; align-items: center; gap: var(--space-4); height: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.nav__logo { position: relative; display: block; flex: none; height: 32px; aspect-ratio: 1010 / 267; }
.nav__logo img { width: 100%; height: 100%; }

.nav__links { display: none; }
.nav__util { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.nav__util .icon-btn { background: transparent; border-color: var(--line-on-dark); color: var(--white); }
.nav__util .icon-btn .count { box-shadow: 0 0 0 2px var(--black); }
@media (hover: hover) and (pointer: fine) {
  .nav__util .icon-btn:hover { background: var(--fill-on-dark); border-color: var(--line-on-dark); color: var(--white); }
}
.nav__cta, .nav__phone { display: none; }

/* Burger: three bars that become a cross. */
.nav__burger { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); padding: 0; border: 1px solid var(--line-on-dark); border-radius: 50%; background: transparent; color: var(--white); transition: background-color var(--dur-fast) var(--ease-out); }
.nav__burger[aria-expanded="true"] { background: var(--fill-on-dark); }
.nav__burger span { position: relative; display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: background-color var(--dur) var(--ease-out); }
.nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--dur) var(--ease-out); }
.nav__burger span::before { transform: translateY(-6px); }
.nav__burger span::after { transform: translateY(6px); }
.nav__burger[aria-expanded="true"] span { background: transparent; }
.nav__burger[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span::after { transform: rotate(-45deg); }

/* Dim behind open menus. It sits inside the host, under the bar. */
.nav__dim { position: fixed; inset: 0; z-index: -1; background: var(--dim); opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease-out), visibility var(--dur); }
.nav.is-menu-open .nav__dim { opacity: 1; visibility: visible; }

/* ---------- Panel contents, shared by the desktop panels and the phone sheet ---------- */
/* A column: a small label, then plain links. */
.nav-col { display: grid; gap: var(--space-2); align-content: start; min-width: 0; }
.nav-col .label { margin-bottom: var(--space-1); }
.nav-col li a, .nav-more { display: flex; align-items: center; gap: var(--space-2); min-height: 36px; font-size: var(--text-sm); line-height: var(--lh-sm); font-weight: var(--w-medium); }
.nav-col li a:hover, .nav-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-more { justify-self: start; font-weight: var(--w-semibold); }
.nav-more .ico { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.nav-more:hover .ico { transform: translateX(3px); }
.nav-col .count-text { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: var(--w-regular); }
.nav-col__two { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-6); }

/* Popular questions: each one is a link to its answer, between hairlines. */
.nav-qs li + li { border-top: 1px solid var(--line); }
.nav-col .nav-qs a { min-height: var(--tap); padding-block: var(--space-2); }

/* How it works, in three numbered lines. */
.nav-steps { display: grid; gap: var(--space-4); counter-reset: step; }
.nav-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0 var(--space-3); counter-increment: step; }
.nav-steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--black); font-size: var(--text-xs); line-height: 1; font-weight: var(--w-bold); }
.nav-steps b { font-size: var(--text-sm); line-height: var(--lh-sm); font-weight: var(--w-bold); }
.nav-steps span { font-size: var(--text-xs); line-height: var(--lh-xs); }

/* A card: one route, with an icon, a bold line and a short reason. Soft grey, or the tint for the sourcing and
   part-exchange routes; never solid green. The whole card is the link. */
.nav-cards { display: grid; gap: var(--space-3); align-content: start; }
.nav-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px var(--space-4); align-content: start; padding: var(--space-5); border-radius: var(--r-card); background: var(--soft); transition: box-shadow var(--dur-fast) var(--ease-out); }
.nav-card--tint { background: var(--tint); }
.nav-card__icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); }
.nav-card--tint .nav-card__icon { background: var(--emerald); color: var(--white); }
.nav-card b { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-md); line-height: 24px; font-weight: var(--w-bold); letter-spacing: -0.01em; }
.nav-card b .ico { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.nav-card > span:not(.nav-card__icon) { font-size: var(--text-xs); line-height: var(--lh-xs); }
@media (hover: hover) and (pointer: fine) {
  .nav-card:hover { box-shadow: inset 0 0 0 1px var(--black); }
  .nav-card:hover b .ico { transform: translateX(3px); }
}
/* Tall: the icon sits on top (the two ways to sell). */
.nav-card--tall { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); padding: var(--space-6); }
.nav-card--tall .nav-card__icon { grid-row: auto; margin-bottom: var(--space-3); }
.nav-card--tall > span:not(.nav-card__icon) { font-size: var(--text-sm); line-height: var(--lh-sm); }
/* Black: the five checks. */
.nav-card--black { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); padding: var(--space-6); background: var(--black); color: var(--white); }
.nav-card--black b { align-items: flex-start; justify-content: space-between; font-size: var(--text-lg); line-height: var(--lh-lg); text-wrap: balance; }
.nav-card--black b .ico { flex: none; height: var(--lh-lg); }
.nav-card__ticks { display: grid; gap: var(--space-2); font-size: var(--text-xs); line-height: var(--lh-xs); font-weight: var(--w-medium); }
.nav-card__ticks li { display: flex; align-items: center; gap: var(--space-2); }
.nav-card__ticks .ico { width: 18px; height: 18px; padding: 4px; border-radius: 50%; background: var(--emerald); stroke-width: 3; }
@media (hover: hover) and (pointer: fine) { .nav-card--black:hover { box-shadow: none; } }

/* Viewings: how to see a car, and how to reach us. */
.nav-visit p:not(.label) { font-size: var(--text-sm); line-height: var(--lh-sm); }
.nav-visit .nav-visit__lead { margin-bottom: var(--space-1); font-size: var(--text-lg); line-height: var(--lh-lg); font-weight: var(--w-bold); letter-spacing: -0.01em; text-wrap: balance; }
.nav-visit p a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.nav-visit p a:hover { text-decoration-color: currentColor; }
.nav-visit .nav-more { margin-top: var(--space-1); }

/* Car sourcing panel: where to start. A soft bar with a chip per popular make and the one button. */
.nav-start { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); margin-top: var(--space-8); padding: var(--space-5); border-radius: var(--r-card); background: var(--tint); }
.nav-start__makes { display: grid; gap: var(--space-3); min-width: 0; }
.nav-start .btn { flex: none; }
.nav-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.nav-chips a { display: inline-flex; align-items: center; gap: var(--space-2); height: 36px; padding: 0 var(--space-3); border-radius: var(--r-chip); background: var(--white); font-size: var(--text-sm); line-height: 1; font-weight: var(--w-medium); white-space: nowrap; transition: box-shadow var(--dur-fast) var(--ease-out); }
.nav-chips a:hover { box-shadow: inset 0 0 0 1px var(--black); }
@media (pointer: coarse) { .nav-chips a { height: var(--tap); } }
.nav-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--line); font-size: var(--text-sm); line-height: var(--lh-sm); font-weight: var(--w-medium); }

/* ---------- Phone and tablet: menu sheet ----------
   Search, four shortcuts and big rows. Rows with a chevron slide their own page in from the right. */
.nav__drawer {
  position: fixed; left: 0; right: 0; top: var(--drawer-top, 64px); height: var(--drawer-h, calc(100dvh - 64px));
  display: flex; flex-direction: column; background: var(--white); overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
}
.nav.is-drawer-open .nav__drawer { opacity: 1; visibility: visible; transform: none; }

.drawer { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.drawer__view {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: var(--space-6);
  padding: var(--space-5) var(--gutter) var(--space-8); overflow-y: auto; overscroll-behavior: contain;
  background: var(--white); visibility: hidden; transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-slow) var(--ease-out), visibility var(--dur-slow);
}
/* The main view sits underneath and drifts left while a page slides over it. The script marks the view on show. */
.drawer__view[data-view-name="main"] { transform: translateX(-24%); opacity: 0; }
.drawer[data-view="main"] .drawer__view[data-view-name="main"], .drawer__view.is-active { transform: none; opacity: 1; visibility: visible; }

.drawer__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.dtile { display: grid; align-content: start; gap: 2px; min-height: 104px; padding: var(--space-4); border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.dtile .ico { width: 24px; height: 24px; margin-bottom: auto; padding-bottom: 0; }
.dtile b { margin-top: var(--space-4); font-size: var(--text-sm); line-height: var(--lh-sm); font-weight: var(--w-bold); }
.dtile span { font-size: var(--text-xs); line-height: var(--lh-xs); }
.dtile:active { transform: scale(0.98); }
.dtile:hover { box-shadow: inset 0 0 0 1px var(--black); }
.dtile--accent { background: var(--emerald); color: var(--white); box-shadow: none; }
.dtile--accent:hover { box-shadow: none; background: var(--emerald-hover); }

.drawer__list > li + li { border-top: 1px solid var(--line); }
.drawer__list a, .drawer__list button {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); width: 100%; min-height: 52px; padding: 0;
  border: 0; background: none; text-align: left; font-size: var(--text-lg); line-height: var(--lh-lg); font-weight: var(--w-bold); letter-spacing: -0.01em;
}
.drawer__list .ico { transition: transform var(--dur) var(--ease-out); }
.drawer__list a:active .ico, .drawer__list button:active .ico { transform: translateX(3px); }
.drawer__list--sm a { min-height: 52px; font-size: var(--text-md); font-weight: var(--w-semibold); letter-spacing: 0; }
.drawer__list--ruled { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.drawer__list--qs a { min-height: 48px; padding-block: var(--space-2); font-size: var(--text-sm); line-height: var(--lh-sm); font-weight: var(--w-medium); }
.drawer__list em { font-style: normal; font-weight: var(--w-regular); font-variant-numeric: tabular-nums; }
.drawer__back { display: inline-flex; align-items: center; gap: var(--space-1); align-self: flex-start; min-height: var(--tap); margin: calc(var(--space-2) * -1) 0 calc(var(--space-4) * -1) calc(var(--space-2) * -1); padding: 0 var(--space-3) 0 var(--space-1); border: 0; border-radius: var(--r-pill); background: none; font-size: var(--text-sm); font-weight: var(--w-semibold); }
.drawer__back:hover { background: var(--fill); }
.drawer__title { font-size: var(--text-xl); line-height: var(--lh-xl); font-weight: var(--w-bold); letter-spacing: -0.02em; }
.drawer__group { display: grid; gap: var(--space-3); }
.drawer__group .label { margin-bottom: calc(var(--space-1) * -1); }
.drawer__cards { display: grid; gap: var(--space-2); }
.drawer__view > .btn { flex: none; }

.nav__drawer-foot { display: grid; gap: var(--space-2); padding: var(--space-3) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--white); }
.nav__drawer-foot p { font-size: var(--text-xs); line-height: var(--lh-xs); text-align: center; }
.nav__drawer-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }

/* ---------- Desktop: one row. Hover, a tap on the chevron, or the keyboard opens a panel ---------- */
@container nav (min-width: 1080px) {
  .nav { --nav-h: 80px; }
  .nav__logo { height: 38px; }
  .nav__burger, .nav__drawer { display: none; }
  .nav__cta { display: inline-flex; }
  .nav__phone { display: inline-grid; }
  .nav__links { display: flex; align-items: stretch; align-self: stretch; justify-content: center; flex: 1; min-width: 0; }
  /* Each item is as tall as the bar, so the pointer never leaves it on the way down to its panel. */
  .nav__item { position: static; display: flex; align-items: center; padding-inline: 2px; }
  .nav__item--contact { display: none; }
  .nav__link {
    display: inline-flex; align-items: center; height: var(--tap); padding: 0 var(--space-3);
    border-radius: var(--r-pill); font-size: var(--text-sm); font-weight: var(--w-semibold); white-space: nowrap;
    transition: background-color var(--dur-fast) var(--ease-out);
  }
  /* The label and its chevron read as one pill: the label is the link, the chevron is the button. */
  .nav__item[data-panel] > .nav__link { padding-right: var(--space-1); border-radius: var(--r-pill) 0 0 var(--r-pill); }
  .nav__toggle {
    display: inline-grid; place-items: center; width: var(--space-8); height: var(--tap); padding: 0 var(--space-2) 0 0;
    border: 0; border-radius: 0 var(--r-pill) var(--r-pill) 0; background: transparent; color: inherit;
    transition: background-color var(--dur-fast) var(--ease-out);
  }
  .nav__toggle .ico { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
  .nav__item:hover > :is(.nav__link, .nav__toggle), .nav__item.is-open > :is(.nav__link, .nav__toggle) { background: var(--fill-on-dark); }
  .nav__item.is-open > .nav__toggle .ico { transform: rotate(180deg); }
  .nav__link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }

  .nav-panel {
    position: absolute; top: 100%; left: var(--gutter); right: var(--gutter); z-index: var(--z-dropdown);
    max-height: calc(100dvh - 140px); overflow: auto;
    padding: var(--space-8); border-radius: 0 0 var(--r-panel) var(--r-panel);
    background: var(--white); color: var(--black); box-shadow: var(--shadow-menu);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
  }
  .nav__item.is-open > .nav-panel { opacity: 1; visibility: visible; transform: none; }
  /* Without the script, hover and keyboard focus still open a panel. */
  .nav:not([data-ready]) .nav__item:is(:hover, :focus-within) > .nav-panel { opacity: 1; visibility: visible; transform: none; }

  .nav-cols { display: grid; gap: var(--space-8); }
  .nav-cols--cars { grid-template-columns: 1fr 1fr 1fr 1.7fr; }
  .nav-cols--sourcing { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-16); }
  .nav-cols--sell { grid-template-columns: 1fr 1fr 1.4fr; column-gap: var(--space-3); }
  .nav-cols--sell .nav-col { margin-left: var(--space-8); }
  .nav-cols--about { grid-template-columns: 1fr 1.25fr 1.25fr; gap: var(--space-12); }
}
@container nav (min-width: 1160px) { .nav__item--contact { display: flex; } }
@container nav (min-width: 1240px) {
  .nav__logo { height: 44px; }
  .nav__item { padding-inline: var(--space-1); }
}
/* Touch screens wide enough for the desktop bar (a tablet on its side): the chevron is the way in, so it gets a full-size target. */
@media (pointer: coarse) { .nav__toggle { width: var(--tap); padding-right: var(--space-3); } }

/* Scrolled: a soft shadow lifts the bar off the page. */
.nav.is-scrolled .nav__bar { box-shadow: 0 1px 0 var(--line-on-dark), 0 8px 24px -12px rgba(0, 0, 0, 0.4); }

/* =====================================================================
   Chips and badges
   ===================================================================== */
.chip { display: inline-flex; align-items: center; gap: var(--space-1); height: 28px; padding: 0 var(--space-2); border-radius: var(--r-chip); background: var(--fill); font-size: var(--text-xs); line-height: 1; font-weight: var(--w-medium); white-space: nowrap; font-variant-numeric: tabular-nums; }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 var(--space-3); border-radius: var(--r-pill); font-size: var(--text-xs); line-height: 1; font-weight: var(--w-semibold); white-space: nowrap; }
.badge .ico { width: 14px; height: 14px; }
.badge--offer { background: var(--emerald); color: var(--white); }
.badge--new { background: var(--black); color: var(--white); }
.badge--plain { background: var(--white); color: var(--black); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }

/* AutoTrader's price indicator, in AutoTrader's own navy and greens so buyers recognise it.
   The one place colours outside the brand are allowed. "Higher price" is never shown. */
.at-rating { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 var(--space-3) 0 var(--space-2); border: 1px solid #D9D9D8; border-radius: var(--r-pill); background: #F6F5F4; color: #0C1233; font-size: var(--text-xs); line-height: 1; font-weight: var(--w-semibold); white-space: nowrap; }
.at-mark { flex: none; width: 16px; height: 12px; fill: #0C1233; }
.at-rating--great { border-color: #6ACD86; background: #EBFAEF; }
.at-rating--good { border-color: #005C29; background: #EBFAEF; }

/* =====================================================================
   Car card
   The whole card is one link (name, specs and price are its name).
   The save button sits on top of it, outside the link.
   ===================================================================== */
.car { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white); overflow: hidden; transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.car__link { display: flex; flex-direction: column; flex: 1; color: inherit; border-radius: inherit; }
.car__link:focus-visible { box-shadow: inset 0 0 0 2px var(--emerald); }
.car__photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--photo-well); }
.car__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.car__badges { position: absolute; top: var(--space-3); left: var(--space-3); right: 64px; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.car__count { position: absolute; right: var(--space-3); bottom: var(--space-3); display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 var(--space-3); border-radius: var(--r-pill); background: rgba(0, 0, 0, 0.72); color: var(--white); font-size: var(--text-xs); line-height: 1; font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; }
.car__count .ico { width: 14px; height: 14px; }
.car__nophoto { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: var(--space-3); font-size: var(--text-xs); line-height: var(--lh-xs); font-weight: var(--w-semibold); }
.car__nophoto img { width: 48px; height: auto; }

.car__save { position: absolute; top: var(--space-3); right: var(--space-3); z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--white); color: var(--black); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); transition: transform var(--dur-press) var(--ease-out); }
.car__save::before { content: ""; position: absolute; inset: -4px; }
.car__save .ico { width: 20px; height: 20px; transition: fill var(--dur-fast) var(--ease-out), stroke var(--dur-fast) var(--ease-out); }
.car__save:active { transform: scale(0.9); }
.car__save[aria-pressed="true"] .ico { fill: var(--emerald); stroke: var(--emerald); }
.car__save.is-popping .ico { animation: pop 320ms var(--ease-out); }
@keyframes pop { 40% { transform: scale(1.25); } }

.car__body { display: flex; flex-direction: column; flex: 1; padding: var(--space-5); }
.car__title { font-size: var(--text-lg); line-height: var(--lh-lg); font-weight: var(--w-bold); letter-spacing: -0.015em; }
.car__variant { overflow: hidden; font-size: var(--text-sm); line-height: var(--lh-sm); white-space: nowrap; text-overflow: ellipsis; }
.car__specs { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-4); }
.car__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-top: auto; padding-top: var(--space-6); }
.car__price { display: grid; gap: 2px; }
.car__price strong { font-size: var(--text-price); line-height: var(--lh-price); font-weight: var(--w-bold); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.car__price s, .car__price span { font-size: var(--text-xs); line-height: var(--lh-xs); font-variant-numeric: tabular-nums; }
.car__price s { text-decoration-thickness: 1px; }
.car__cta { display: flex; align-items: center; justify-content: center; gap: var(--space-2); height: var(--control-h); margin-top: var(--space-5); border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: var(--text-sm); font-weight: var(--w-semibold); transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.car__cta .ico { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .car:hover { border-color: var(--line-strong); box-shadow: var(--shadow-hover); }
  .car:hover .car__photo img { transform: scale(1.03); }
  .car:hover .car__cta { background: var(--emerald); color: var(--white); box-shadow: none; }
  .car:hover .car__cta .ico { transform: translateX(3px); }
}
.car__link:active .car__cta { transform: scale(0.98); }

/* Reserved: still clickable, the CTA says what happens next. */
.car--reserved .car__photo::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.35); }

/* Loading: matches the card's own layout so nothing jumps. */
.car--skeleton { pointer-events: none; }
.car--skeleton .car__photo { background: var(--fill-hover); }
.sk { display: block; border-radius: 6px; background: var(--fill-hover); animation: pulse 1.4s var(--ease-in-out) infinite; }
.car--skeleton .car__photo { animation: pulse 1.4s var(--ease-in-out) infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }

/* Sourcing tile: closes a row of cars. The one emerald object in a grid. */
.source-tile { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; padding: var(--space-6); border-radius: var(--r-card); background: var(--emerald); color: var(--white); }
.source-tile__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--white); color: var(--emerald); }
.source-tile h3 { font-size: var(--text-xl); line-height: var(--lh-xl); font-weight: var(--w-bold); letter-spacing: -0.02em; text-wrap: balance; }
.source-tile p { font-size: var(--text-sm); line-height: var(--lh-sm); }
.source-tile ul { display: grid; gap: var(--space-2); font-size: var(--text-sm); line-height: var(--lh-sm); font-weight: var(--w-medium); }
.source-tile li { display: flex; align-items: center; gap: var(--space-2); }
.source-tile li .ico { width: 16px; height: 16px; }
.source-tile .btn { margin-top: auto; }

/* Wide card: one car given the room to sell itself.
   Photo and story side by side, then a full-width bar for price and actions,
   so the buttons always have room and the photo is never cropped. */
.car-wide { container: carwide / inline-size; border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; background: var(--white); transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out); }
.car-wide__inner { display: grid; grid-template-columns: minmax(0, 1fr); }
.car-wide__photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--photo-well); }
.car-wide__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.car-wide__body { display: flex; flex-direction: column; padding: var(--space-6) var(--space-5); }
.car-wide__title { display: grid; gap: var(--space-2); }
.car-wide__title h3 { font-size: var(--text-feature-title); line-height: 1.12; font-weight: var(--w-bold); letter-spacing: -0.025em; text-wrap: balance; }
.car-wide__title p { font-size: var(--text-sm); line-height: var(--lh-sm); }
.car-wide__body > .body { margin-top: var(--space-4); max-width: 46ch; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5) var(--space-6); margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 40px 1fr; gap: 0 var(--space-3); align-items: center; }
.fact .ico { grid-row: span 2; display: block; width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--fill); }
.fact dt { font-size: var(--text-xs); line-height: var(--lh-xs); }
.fact dd { margin: 0; font-size: var(--text-sm); line-height: var(--lh-sm); font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; }

.car-wide__foot { display: grid; gap: var(--space-5); padding: var(--space-5); border-top: 1px solid var(--line); }
.car-wide__price { display: grid; gap: var(--space-1); }
.car-wide__amount { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.car-wide__amount strong { font-size: var(--text-feature-price); line-height: 1.1; font-weight: var(--w-bold); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.car-wide__note { font-size: var(--text-xs); line-height: var(--lh-xs); }
/* Phones: full-width buttons, the main action first. */
.car-wide__actions { display: grid; gap: var(--space-2); }
.car-wide__actions .btn--primary { order: -1; }
@container carwide (min-width: 600px) {
  .car-wide__body { padding: var(--space-8); }
  .car-wide__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding: var(--space-6) var(--space-8); }
  .car-wide__actions { display: flex; }
  .car-wide__actions .btn--primary { order: 0; }
}
@media (hover: hover) and (pointer: fine) {
  .car-wide:hover { border-color: var(--line-strong); box-shadow: var(--shadow-hover); }
  .car-wide:hover .car-wide__photo img { transform: scale(1.02); }
}
/* Side by side only when the text column has room; narrower, it stacks so the photo is never cropped. */
@container carwide (min-width: 1000px) {
  .car-wide__inner { grid-template-columns: 1.55fr 1fr; grid-template-rows: 1fr auto; }
  .car-wide__photo { grid-row: 1 / 3; }
  .car-wide__body { padding: var(--space-10) var(--space-10) var(--space-8); }
  .car-wide__body .facts { margin-top: auto; }
  /* Price and actions close the text column, so the column fills the photo's height with no gap. */
  .car-wide__foot { display: grid; gap: var(--space-5); padding: 0 var(--space-10) var(--space-10); border-top: 0; }
  .car-wide__actions { display: flex; }
  .car-wide__actions .btn { flex: 1; height: 52px; font-size: var(--text-md); }
}

/* =====================================================================
   Rail (carousel): native scroll with snap, arrows and dots on top.
   ===================================================================== */
/* Never more than 3 cars in view: bigger photos, shorter cards. */
.rail { --rail-gap: var(--space-6); --rail-cols: 3; }
.rail__track {
  display: grid; grid-auto-flow: column; gap: var(--rail-gap);
  grid-auto-columns: calc((100% - (var(--rail-cols) - 1) * var(--rail-gap)) / var(--rail-cols));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding: 2px; margin: -2px;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; }
.rail__controls { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-6); }
.rail__dots { display: flex; align-items: center; gap: 6px; }
.rail__dots button { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: var(--r-pill); background: var(--line-strong); transition: width var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out); }
.rail__dots button::before { content: ""; position: absolute; inset: -10px -4px; }
.rail__dots button[aria-current="true"] { width: 24px; background: var(--black); }
.rail__arrows { display: flex; gap: var(--space-2); }
@media (max-width: 860px) { .rail { --rail-cols: 2.15; --rail-gap: var(--space-4); } }
@media (max-width: 560px) { .rail { --rail-cols: 1.12; } .rail__dots { display: none; } }

/* =====================================================================
   Form controls
   ===================================================================== */
.field { display: grid; gap: var(--space-2); min-width: 0; }
.field > span { font-size: var(--text-xs); line-height: var(--lh-xs); font-weight: var(--w-semibold); }
.select, .input {
  width: 100%; height: var(--control-h); padding: 0 var(--space-4);
  border: 1px solid var(--line-strong); border-radius: var(--r-input); background-color: var(--white);
  font-size: 16px; font-weight: var(--w-medium); color: var(--black);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.select {
  appearance: none; -webkit-appearance: none; padding-right: var(--space-10); cursor: pointer; text-overflow: ellipsis; white-space: nowrap;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.input::placeholder { color: var(--black); opacity: 1; font-weight: var(--w-regular); }
.select:hover:not(:disabled), .input:hover:not(:disabled) { border-color: var(--black); }
.select:focus-visible, .input:focus-visible { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.25); }
.select:disabled, .input:disabled { cursor: not-allowed; background-color: var(--fill); border-color: transparent; }
.field.is-error .select, .field.is-error .input { border-color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }
.field__error { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); line-height: var(--lh-xs); font-weight: var(--w-semibold); }
.field__error .ico { width: 16px; height: 16px; }

.input-search { position: relative; display: block; }
.input-search .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.input-search .input { padding-left: 48px; }

/* Segmented control: a white thumb on a quiet track. */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--space-1); padding: var(--space-1); border-radius: var(--r-pill); background: var(--fill); }
.seg button { height: 40px; padding: 0 var(--space-4); border: 0; border-radius: var(--r-pill); background: transparent; font-size: var(--text-sm); font-weight: var(--w-semibold); white-space: nowrap; transition: background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.seg button:hover:not([aria-pressed="true"]) { background: var(--fill); }
.seg button[aria-pressed="true"] { background: var(--white); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--line); }
.seg--icons button { display: grid; place-items: center; width: 44px; padding: 0; }

/* Toggle chips: pick any number. Selected is solid black. */
.tchips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tchip { display: inline-flex; align-items: center; gap: var(--space-2); height: var(--control-h-sm); padding: 0 var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--white); font-size: var(--text-sm); font-weight: var(--w-medium); white-space: nowrap; transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.tchip:hover { border-color: var(--black); }
.tchip[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: var(--white); }
.tchip .ico { width: 16px; height: 16px; }

/* Checkbox row with a count on the right. */
.check { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: var(--space-3); min-height: var(--tap); font-size: var(--text-sm); cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; display: grid; place-items: center;
  border: 1.5px solid var(--line-strong); border-radius: 6px; background: var(--white); cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.check:hover input { border-color: var(--black); }
.check input:checked { background: var(--black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--black); }
.check input:focus-visible { box-shadow: var(--focus-ring); }
.check em { font-style: normal; font-variant-numeric: tabular-nums; }

/* =====================================================================
   Search panel (hero)
   ===================================================================== */
.search-panel { display: grid; gap: var(--space-4); padding: var(--space-8); border-radius: var(--r-panel); background: var(--white); color: var(--black); }
.search-panel h2 { font-size: var(--text-lg); line-height: var(--lh-lg); font-weight: var(--w-bold); letter-spacing: -0.01em; }
.search-panel__pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.search-panel .btn { margin-top: var(--space-2); }
.search-panel .text-link { justify-self: center; }
@media (max-width: 480px) { .search-panel { padding: var(--space-6) var(--space-5); } }

/* Dark: over a black or photo hero. Glass once there's a photo behind it. */
.search-panel--dark { background: rgba(0, 0, 0, 0.55); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2); }
.search-panel--dark .select {
  border-color: rgba(255, 255, 255, 0.24); background-color: rgba(255, 255, 255, 0.06); color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.search-panel--dark .select option { color: var(--black); background: var(--white); }
.search-panel--dark .input { border-color: rgba(255, 255, 255, 0.24); background-color: rgba(255, 255, 255, 0.06); color: var(--white); }
.search-panel--dark .input::placeholder { color: var(--white); }
.search-panel--dark .input:hover:not(:disabled) { border-color: var(--white); }
.search-panel--dark .select:hover:not(:disabled) { border-color: var(--white); }
.search-panel--dark .select:disabled { background-color: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.10); }
.search-panel--dark .seg { background: rgba(255, 255, 255, 0.10); }
.search-panel--dark .seg button { color: var(--white); }
.search-panel--dark .seg button:hover:not([aria-pressed="true"]) { background: rgba(255, 255, 255, 0.08); }
.search-panel--dark .seg button[aria-pressed="true"] { background: var(--white); color: var(--black); box-shadow: none; }
.search-panel--dark .text-link { text-decoration-color: rgba(255, 255, 255, 0.5); }
.search-panel--dark .text-link:hover { text-decoration-color: var(--white); }

/* =====================================================================
   Shop by budget: a slider on the left, the cars it buys in a box on the right
   (Abdullah, 30 Oct 2026). Rows are in the HTML; the slider only hides them.
   ===================================================================== */
.budget-finder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: var(--space-16); }
.budget-finder__control { display: grid; gap: var(--space-8); }
.budget-finder__dial { display: grid; }
.budget-finder__label { font-size: var(--text-md); line-height: var(--lh-md); font-weight: var(--w-semibold); }
.budget-finder__amount { font-size: clamp(48px, 6vw, 72px); line-height: 1; font-weight: var(--w-bold); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.budget-finder__scale { display: flex; justify-content: space-between; font-size: var(--text-xs); line-height: var(--lh-xs); font-weight: var(--w-medium); font-variant-numeric: tabular-nums; }

/* The slider: an emerald fill up to a white thumb. --pct is set from the value. */
.range { --pct: 50%; display: block; width: 100%; height: var(--tap); margin: var(--space-4) 0 var(--space-1); background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--emerald) var(--pct), rgba(0, 0, 0, 0.12) var(--pct)); }
.range::-moz-range-track { height: 8px; border-radius: var(--r-pill); background: rgba(0, 0, 0, 0.12); }
.range::-moz-range-progress { height: 8px; border-radius: var(--r-pill); background: var(--emerald); }
.range::-webkit-slider-thumb { width: 32px; height: 32px; margin-top: -12px; border: 3px solid var(--emerald); border-radius: 50%; background: var(--white); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); -webkit-appearance: none; appearance: none; transition: transform var(--dur-fast) var(--ease-out); }
.range::-moz-range-thumb { width: 26px; height: 26px; border: 3px solid var(--emerald); border-radius: 50%; background: var(--white); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); transition: transform var(--dur-fast) var(--ease-out); }
.range:active::-webkit-slider-thumb { transform: scale(1.1); }
.range:active::-moz-range-thumb { transform: scale(1.1); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: var(--focus-ring); }
.range:focus-visible::-moz-range-thumb { box-shadow: var(--focus-ring); }

/* The box: the count, up to three cars (dearest first), and one button. */
.budget-finder__box { display: grid; gap: var(--space-4); padding: var(--space-8); border-radius: var(--r-panel); background: var(--white); box-shadow: 0 24px 48px -24px rgba(4, 120, 87, 0.28); }
.budget-finder__count { font-size: var(--text-lg); line-height: var(--lh-lg); font-variant-numeric: tabular-nums; }
.budget-finder__count b { font-weight: var(--w-bold); }
.budget-finder__list li:not([hidden]) ~ li:not([hidden]) { border-top: 1px solid var(--line); }
.budget-finder__list li:not([hidden]) { animation: row-in var(--dur-slow) var(--ease-out); }
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } }
.brow { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-2); margin-inline: calc(var(--space-2) * -1); border-radius: var(--r-card); transition: background-color var(--dur-fast) var(--ease-out); }
.brow img { width: 96px; height: 72px; border-radius: var(--r-input); object-fit: cover; background: var(--photo-well); }
.brow__name { display: grid; min-width: 0; }
.brow__name b { font-size: var(--text-md); line-height: var(--lh-sm); font-weight: var(--w-bold); }
.brow__name span { overflow: hidden; font-size: var(--text-xs); line-height: var(--lh-xs); white-space: nowrap; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.brow__price strong { font-size: var(--text-lg); line-height: var(--lh-lg); font-weight: var(--w-bold); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.brow__tag { display: inline-flex; align-items: center; height: 28px; padding: 0 var(--space-3); border-radius: var(--r-pill); background: var(--fill); font-size: var(--text-xs); font-weight: var(--w-semibold); }
@media (hover: hover) and (pointer: fine) { .brow:hover { background: var(--fill); } }
.budget-finder .tchips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.budget-finder .tchip { justify-content: center; padding: 0 var(--space-2); font-variant-numeric: tabular-nums; }
.budget-finder__empty { padding: var(--space-4) 0; font-size: var(--text-md); line-height: var(--lh-md); }
.budget-finder__empty b { display: block; font-weight: var(--w-bold); }
.budget-finder__box .btn { margin-top: var(--space-2); }
@media (max-width: 900px) { .budget-finder { grid-template-columns: 1fr; gap: var(--space-10); } }
@media (max-width: 480px) {
  .budget-finder__box { padding: var(--space-5); }
  .brow { grid-template-columns: 72px minmax(0, 1fr) auto; gap: var(--space-3); }
  .brow img { width: 72px; height: 54px; }
  .brow__price strong { font-size: var(--text-md); }
}

/* =====================================================================
   Promo cards (two up, Carsa's "two ways to save")
   ===================================================================== */
.promos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--space-6); }
.promo { --promo-pad: var(--space-10); position: relative; display: flex; flex-direction: column; gap: var(--space-4); min-height: 320px; padding: var(--promo-pad); border-radius: var(--r-panel); overflow: hidden; }
.promo--emerald { background: var(--emerald); color: var(--white); }
.promo--black { background: var(--black); color: var(--white); }
.promo--white { background: var(--white); color: var(--black); box-shadow: inset 0 0 0 1px var(--line); }
.promo--tint { background: var(--tint); color: var(--black); }
.promo--fill { background: var(--soft); color: var(--black); }
.promo__big { margin-bottom: var(--space-2); font-size: var(--text-display); line-height: 0.92; font-weight: var(--w-bold); letter-spacing: -0.045em; }
.promo h3:not(.promo__big), .promo__line { font-size: var(--text-xl); line-height: var(--lh-xl); font-weight: var(--w-bold); letter-spacing: -0.02em; text-wrap: balance; }
.promo p:not(.promo__big, .promo__line) { max-width: 44ch; font-size: var(--text-md); line-height: var(--lh-md); text-wrap: pretty; }
.promo--short { min-height: 0; padding-bottom: var(--space-12); }
.promo__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; padding-top: var(--space-4); }
/* A side-on studio photo along the bottom of the card. The filter lifts the studio's pale grey to white, and multiply
   then shows the card colour through it, so the car sits on the card rather than in a box. */
.promo--car { padding-bottom: 0; }
.promo__car { display: block; width: calc(100% + var(--promo-pad) * 2); max-width: none; height: auto; aspect-ratio: 2 / 1; margin: var(--space-2) calc(var(--promo-pad) * -1) 0; object-fit: cover; object-position: 50% 71%; filter: brightness(1.07) contrast(1.1); mix-blend-mode: multiply; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%); mask-image: linear-gradient(to bottom, transparent, #000 20%); }
.promo__car--generated { object-position: 50% 60%; filter: none; mix-blend-mode: normal; -webkit-mask-image: none; mask-image: none; }
.promo__note { padding-top: var(--space-4); border-top: 1px solid var(--line-on-dark); font-size: var(--text-xs); line-height: var(--lh-xs); }
.promo--white .promo__note { border-color: var(--line); }
@media (max-width: 560px) { .promo { --promo-pad: var(--space-6); min-height: 0; padding-block: var(--space-8); } .promo--car { padding-bottom: 0; } }

/* =====================================================================
   Trust strip
   ===================================================================== */
.trust { background: var(--black); color: var(--white); }
.trust__row { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-5) var(--space-6); }
.trust__item + .trust__item { box-shadow: -1px 0 0 var(--line-on-dark); }
.trust__item:first-child { padding-left: 0; }
.trust__item .ico { width: 24px; height: 24px; color: var(--white); }
.trust__item > a { display: flex; align-items: center; gap: var(--space-3); }
.trust__item > a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.trust__item b { display: block; font-size: var(--text-sm); line-height: var(--lh-sm); font-weight: var(--w-semibold); }
.trust__item div span { display: block; font-size: var(--text-xs); line-height: var(--lh-xs); }
.trust__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--emerald); }
.trust__icon .ico { width: 20px; height: 20px; }
@media (max-width: 960px) {
  .trust__row { grid-template-columns: 1fr 1fr; }
  .trust__item:nth-child(odd) { padding-left: 0; box-shadow: none; }
  .trust__item:nth-child(n + 3) { border-top: 1px solid var(--line-on-dark); }
}
@media (max-width: 560px) {
  .trust__row { grid-template-columns: 1fr; }
  .trust__item { padding-inline: 0; box-shadow: none !important; }
  .trust__item + .trust__item { border-top: 1px solid var(--line-on-dark); }
}

/* =====================================================================
   Listing: one row of filter pills over full-width results.
   A dealer's stock, not a marketplace, so no sidebar.
   ===================================================================== */
.browse { position: relative; }
.filterbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-4); padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); }
.filterbar__pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.filterbar__sort .select { width: 224px; height: var(--control-h-sm); border-radius: var(--r-pill); }

.fpill { position: relative; }
.fpill__btn { display: inline-flex; align-items: center; gap: var(--space-2); height: var(--control-h-sm); padding: 0 var(--space-3) 0 var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--white); font-size: var(--text-sm); font-weight: var(--w-semibold); white-space: nowrap; transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.fpill__btn .ico { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.fpill[data-filter="more"] .fpill__btn { padding: 0 var(--space-4) 0 var(--space-3); }
.fpill__btn:hover { border-color: var(--black); }
.fpill.is-open .fpill__btn { border-color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }
.fpill.is-open .fpill__btn .ico:last-child { transform: rotate(180deg); }
.fpill[data-filter="more"].is-open .fpill__btn .ico { transform: none; }
.fpill.is-active .fpill__btn { background: var(--black); border-color: var(--black); color: var(--white); box-shadow: none; }

.fpop {
  position: absolute; top: calc(100% + var(--space-2)); left: 0; z-index: var(--z-dropdown);
  display: grid; gap: var(--space-4); width: 320px; padding: var(--space-5);
  border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow-menu);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transform-origin: top left;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
}
.fpop--right { left: auto; right: 0; transform-origin: top right; }
.fpill.is-open .fpop { opacity: 1; visibility: visible; transform: none; }
.fpop__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.fpop__head b { font-size: var(--text-md); line-height: var(--lh-md); font-weight: var(--w-bold); }
.fpop__head .icon-btn { display: none; }
.fpop__body { display: grid; gap: var(--space-3); max-height: 320px; overflow-y: auto; }
.fpop__body .check + .check { margin-top: calc(var(--space-2) * -1); }
.fpop__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.fpop__clear { min-height: var(--tap); padding: 0; border: 0; background: none; font-size: var(--text-sm); font-weight: var(--w-semibold); text-decoration: underline; text-underline-offset: 4px; }
.fpop-dim { display: none; }

.browse__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); padding-block: var(--space-5) var(--space-6); }
.browse__meta [data-count] { margin-right: var(--space-2); font-size: var(--text-lg); line-height: var(--lh-lg); font-weight: var(--w-bold); font-variant-numeric: tabular-nums; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.active-filters .text-link { min-height: 36px; margin-left: var(--space-2); }
.active-chip { display: inline-flex; align-items: center; gap: var(--space-1); height: 36px; padding: 0 var(--space-1) 0 var(--space-4); border-radius: var(--r-pill); background: var(--fill); font-size: var(--text-xs); font-weight: var(--w-semibold); }
.active-chip button { position: relative; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; transition: background-color var(--dur-fast) var(--ease-out); }
.active-chip button::before { content: ""; position: absolute; inset: -8px; }
.active-chip button:hover { background: var(--fill-hover); }
.active-chip .ico { width: 14px; height: 14px; }
/* Up to 3 per row, never 4: each card is at least a third of the row (and 300px), so wide screens stop at 3. */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(300px, calc((100% - 2 * var(--space-6)) / 3)), 1fr)); gap: var(--space-6); }
.car-grid[hidden] { display: none; }

/* Phones and tablets: the pills scroll sideways and each one opens a sheet from the bottom.
   (Up to 900px, so the row never wraps onto a second line.) Keep in step with `sheets` in ui.js. */
@media (max-width: 900px) {
  .filterbar { display: grid; }
  .filterbar__pills { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter); scrollbar-width: none; }
  .filterbar__pills::-webkit-scrollbar { display: none; }
  .filterbar__sort .select { width: 100%; }
  .fpop {
    position: fixed; inset: auto 0 0; z-index: var(--z-sheet); width: auto; max-height: 85dvh; overflow-y: auto;
    padding: var(--space-5) var(--gutter) calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
    border-radius: var(--r-panel) var(--r-panel) 0 0; transform: translateY(100%);
    transition: transform 420ms cubic-bezier(0.32, 0.72, 0, 1), visibility 420ms;
    opacity: 1;
  }
  .fpop--right { left: 0; right: 0; }
  .fpop__head .icon-btn { display: inline-grid; }
  .fpop__body { max-height: none; }
  .fpop__foot .btn { flex: 1; height: var(--control-h); }
  .fpop-dim { display: block; position: fixed; inset: 0; z-index: var(--z-overlay); background: var(--dim); opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease-out), visibility var(--dur); }
  .browse.is-pop-open .fpop-dim { opacity: 1; visibility: visible; }
}

/* =====================================================================
   Cars page: a short head, then the listing. The filter row stays pinned under
   the nav while the results scroll, on a white band the full width of the window.
   ===================================================================== */
.listing-page { overflow-x: clip; }
/* The listing's head is a masthead too: black from edge to edge (the shadow paints past the wrap, the clip keeps
   it to the head's own height), the page's name, one line, and the search on the dark side. */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-6) var(--space-10); padding-block: var(--space-12); background: var(--black); color: var(--white); box-shadow: 0 0 0 100vmax var(--black); clip-path: inset(0 -100vmax); }
.page-head__text { display: grid; gap: var(--space-4); max-width: 640px; }
.page-head h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.06; font-weight: var(--w-bold); letter-spacing: -0.035em; text-wrap: balance; }
.page-head__text p { max-width: 52ch; font-size: var(--text-lg); line-height: var(--lh-lg); text-wrap: pretty; }
.page-head__search { flex: 0 1 400px; }
.page-head__search .input { border-radius: var(--r-pill); border-color: rgba(255, 255, 255, 0.32); background-color: rgba(255, 255, 255, 0.08); color: var(--white); }
.page-head__search .input::placeholder { color: var(--white); }
.page-head__search .input:hover:not(:disabled) { border-color: var(--white); }

.browse--page { padding-bottom: var(--space-16); }
.browse--page .filterbar { position: sticky; top: 64px; z-index: 5; padding-block: var(--space-3); border-bottom: 0; }
.browse--page .filterbar::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background: var(--white); box-shadow: 0 1px 0 var(--line); }
@media (min-width: 1080px) { .browse--page .filterbar { top: 80px; } }
/* A phone sheet lives inside the row, so the row lifts above the dim while one is open. */
.browse--page.is-pop-open .filterbar { z-index: var(--z-sheet); }
.browse--page .filterbar { display: flex; }
.browse--page .filterbar__pills { flex: 1; min-width: 0; }

/* Saved: a toggle at the end of the row, with the saved count. */
.fpill__btn--toggle { margin-left: auto; padding: 0 var(--space-3); }
.fpill__btn--toggle[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: var(--white); }
.fpill__btn--toggle[aria-pressed="true"] .ico { fill: var(--white); }
.fpill__num { min-width: 22px; height: 22px; padding: 0 var(--space-2); border-radius: var(--r-pill); background: var(--emerald); color: var(--white); font-size: 12px; line-height: 22px; font-weight: var(--w-bold); text-align: center; font-variant-numeric: tabular-nums; }
.fpill__num:empty { display: none; }

.browse__sort { margin-left: auto; }
.browse__sort .select { width: auto; height: var(--control-h-sm); border-radius: var(--r-pill); font-size: var(--text-sm); font-weight: var(--w-semibold); }

@media (max-width: 640px) {
  .page-head { gap: var(--space-5); padding-block: var(--space-6) var(--space-5); }
  .page-head__text p { font-size: var(--text-sm); line-height: var(--lh-sm); }
  .page-head__search { flex-basis: 100%; }
  .browse--page { padding-bottom: var(--space-12); }
  /* Count and sort share the first line; the chips get their own. */
  .browse--page .active-filters { order: 1; flex-basis: 100%; }
  .browse--page .active-filters:empty { display: none; }
}

/* =====================================================================
   Empty state
   ===================================================================== */
.empty { display: grid; justify-items: center; gap: var(--space-3); padding: var(--space-12) var(--space-6); border: 1px dashed var(--line-strong); border-radius: var(--r-card); text-align: center; }
.empty__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--space-2); border-radius: 50%; background: var(--fill); }
.empty h3 { font-size: var(--text-lg); line-height: var(--lh-lg); font-weight: var(--w-bold); }
.empty p { max-width: 44ch; font-size: var(--text-sm); line-height: var(--lh-sm); }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-top: var(--space-3); }

/* =====================================================================
   Footer
   ===================================================================== */
/* Footer (reworked 30 Oct 2026): how to reach us, every route in, then the legal line. */
.footer { background: var(--black); color: var(--white); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; gap: var(--space-12); padding-block: var(--space-16) var(--space-12); border-bottom: 1px solid var(--line-on-dark); }
.footer__brand { display: grid; gap: var(--space-5); align-content: start; }
.footer__logo { justify-self: start; }
.footer__logo img { width: 200px; height: auto; }
.footer__brand p { max-width: 38ch; font-size: var(--text-md); line-height: var(--lh-md); }
.footer .footer__ways { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-4) var(--space-8); }
.footer__ways li { min-width: 0; }
.footer__way { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 44px; font-size: var(--text-md); line-height: var(--lh-md); }
.footer__way-icon { display: grid; place-items: center; flex: none; width: 20px; height: 20px; }
.footer__way-icon .ico { width: 20px; height: 20px; }
.footer__way > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.footer__way:hover { text-decoration: underline; text-underline-offset: 4px; }
.example-note { margin-bottom: var(--space-6); }

.footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-10); padding-block: var(--space-12); }
.footer__label { margin-bottom: var(--space-3); font-size: var(--text-md); line-height: var(--lh-md); font-weight: var(--w-bold); }
.footer ul { display: grid; gap: 2px; }
.footer__grid a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 36px; font-size: var(--text-sm); }
.footer__grid a span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill); background: var(--fill-on-dark); font-size: 12px; font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; }
.footer__grid a .ico { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.footer__all { font-weight: var(--w-semibold); }
@media (hover: hover) and (pointer: fine) {
  .footer__grid a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .footer__grid a:hover .ico { transform: translateX(3px); }
}

.footer__base { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-8); padding-block: var(--space-6); border-top: 1px solid var(--line-on-dark); font-size: var(--text-xs); line-height: var(--lh-xs); }
.footer__base nav { display: flex; flex-wrap: wrap; gap: var(--space-6); }
.footer__base a { display: inline-flex; align-items: center; min-height: 36px; }
.footer__base a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__up { gap: var(--space-2); margin-left: auto; font-weight: var(--w-semibold); }
.footer__up .ico { width: 16px; height: 16px; transform: rotate(180deg); }
@media (max-width: 1000px) {
  .footer__top { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .footer .footer__ways { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .footer .footer__ways { flex-direction: column; align-items: flex-start; justify-content: flex-start; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8) var(--space-6); }
}
@media (max-width: 480px) {
  .footer__top { padding-block: var(--space-12) var(--space-8); }
  .footer__grid { padding-block: var(--space-8); }
  .footer__base { gap: var(--space-2) var(--space-6); }
  .footer__base p { flex-basis: 100%; }
  .footer__up { margin-left: 0; }
}

/* =====================================================================
   Toast
   ===================================================================== */
.toast { position: fixed; left: 50%; bottom: var(--space-6); z-index: var(--z-toast); display: flex; align-items: center; gap: var(--space-4); max-width: calc(100vw - 32px); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-5); border-radius: var(--r-pill); background: var(--black); color: var(--white); box-shadow: var(--shadow-menu); font-size: var(--text-sm); font-weight: var(--w-semibold); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur); }
.toast.is-shown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .ico { color: var(--white); }

/* =====================================================================
   Page sections (home and beyond). One vertical rhythm per page.
   ===================================================================== */
.section { padding-block: var(--section-y); }
.section--flush { padding-top: 0; }
/* Two plain white sections in a row share one gap, not two. */
.section:not([class*="section--"]) + .section:not([class*="section--"]) { padding-top: 0; }
.section--black { background: var(--black); color: var(--white); }
.section--emerald { background: var(--emerald); color: var(--white); }
/* Soft brand tint: a quiet change of ground between sections, like Carsa's pastel bands. */
.section--tint { background: var(--tint); }
.section-head--center { justify-content: center; align-items: center; text-align: center; }

/* =====================================================================
   Content pages (about, warranty, FAQs, contact, legal)
   ===================================================================== */
/* ---------- Masthead: the top of every inner page ----------
   Black, straight on from the black bar, so every page opens the way the home page does (Abdullah, 11 Nov 2026:
   "we want consistency"). The page's name in white, one line, then ticks, buttons or jump links. Beside the
   words: a studio photo, or the page's own form. Shorter than the home hero, which stays the loudest. */
.masthead { background: var(--black); color: var(--white); }
.masthead__inner { display: grid; align-items: center; gap: var(--space-10) var(--space-16); padding-block: var(--space-16); }
.masthead__text { display: grid; justify-items: start; align-content: start; gap: var(--space-5); min-width: 0; max-width: 720px; }
.masthead__title { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.06; font-weight: var(--w-bold); letter-spacing: -0.035em; text-wrap: balance; }
.masthead__lead { max-width: 46ch; font-size: var(--text-lg); line-height: var(--lh-lg); text-wrap: pretty; }
.masthead__meta { font-size: var(--text-sm); line-height: var(--lh-sm); }
.masthead__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.masthead .ticks { margin-top: var(--space-1); }
.masthead .jump { justify-content: flex-start; }
.masthead--center .masthead__text { justify-items: center; margin-inline: auto; text-align: center; }
.masthead--center .jump, .masthead--center .masthead__actions { justify-content: center; }
.masthead--split .masthead__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.masthead__media { overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r-panel); background: var(--photo-well); }
.masthead__media img { width: 100%; height: 100%; object-fit: cover; }
/* On black: quiet buttons are outlined in white, links underline in white. Only the words' own buttons: a form
   beside them sits in a white card and keeps the normal ones. */
.masthead__text .btn:not(.btn--primary, .btn--white) { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: var(--line-on-dark); }
@media (hover: hover) and (pointer: fine) { .masthead__text .btn:not(.btn--primary, .btn--white):hover { --btn-bg: var(--fill-on-dark); --btn-bd: var(--white); } }
.masthead__text .text-link { text-decoration-color: rgba(255, 255, 255, 0.5); }
.masthead__text .text-link:hover { text-decoration-color: var(--white); }

/* Beside a step form (sell, part-exchange, car sourcing): the words on the left, the form in
   a white card on the right, like the search panel beside the home headline. */
.masthead--flow .masthead__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "text flow"; align-items: start; gap: var(--space-8) var(--space-16); }
.masthead--flow .masthead__text { grid-area: text; padding-top: var(--space-6); }
.masthead--flow .flow { grid-area: flow; border-color: transparent; color: var(--black); }
/* The words sit level with the middle of the form. How it works is the page's next section, not part of the top. */
@media (min-width: 901px) { .masthead--flow .masthead__text { align-self: center; padding-top: 0; } }

@media (max-width: 900px) {
  .masthead__inner { gap: var(--space-8); padding-block: var(--space-10); }
  .masthead--split .masthead__inner { grid-template-columns: minmax(0, 1fr); }
  /* Phones and tablets: only the words stay on black. The form is the page, on white, then how it works. */
  .masthead--flow { background: var(--white); color: var(--black); }
  .masthead--flow .masthead__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "flow"; gap: var(--space-8); padding-block: 0 var(--space-12); }
  .masthead--flow .masthead__text { max-width: none; padding-block: var(--space-10); background: var(--black); color: var(--white); box-shadow: 0 0 0 100vmax var(--black); clip-path: inset(0 -100vmax); }
  .masthead--flow .flow { border-color: var(--line); }
  /* The form already ends the top of the page: the next section follows it closely. */
  .masthead--flow + .section { padding-top: var(--space-2); }
}
@media (max-width: 560px) {
  .masthead__inner { padding-block: var(--space-8); }
  .masthead__text { gap: var(--space-4); }
  .masthead__lead { font-size: var(--text-md); line-height: var(--lh-md); }
  .masthead--flow .masthead__text { padding-block: var(--space-8); }
  .masthead--flow .flow { border: 0; padding-top: 0; }
}
/* Heading on the left, the content on the right (how we work, the five checks, company details). */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: var(--space-10) var(--space-16); }
.split__text { display: grid; justify-items: start; gap: var(--space-6); }
.split__text p { max-width: 40ch; font-size: var(--text-lg); line-height: var(--lh-lg); }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Short points under a line, two across: no cards, no icons, just a heading and a sentence. */
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8) var(--space-10); }
.points--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.points li { display: grid; align-content: start; gap: var(--space-2); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.section--black .points li { border-color: var(--line-on-dark); }
.points h3 { font-size: var(--text-lg); line-height: var(--lh-lg); font-weight: var(--w-bold); letter-spacing: -0.01em; }
.points p { font-size: var(--text-md); line-height: var(--lh-md); }
@media (max-width: 1100px) { .points--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .points, .points--four { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } }
.small-note { margin-top: var(--space-8); font-size: var(--text-sm); line-height: var(--lh-sm); }
.small-note a { font-weight: var(--w-semibold); text-decoration: underline; text-underline-offset: 3px; }

/* A real sequence, numbered (the five checks). */
.numbered { display: grid; counter-reset: step; }
.numbered li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px var(--space-4); padding-block: var(--space-4); border-bottom: 1px solid var(--line); counter-increment: step; }
.section--black .numbered li { border-color: var(--line-on-dark); }
.numbered li:first-child { padding-top: 0; }
.numbered li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; font-size: var(--text-sm); font-weight: var(--w-bold); }
.numbered b { font-size: var(--text-lg); line-height: var(--lh-lg); }
.numbered span { font-size: var(--text-md); line-height: var(--lh-md); }
.numbered a { font-weight: var(--w-semibold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* A soft tint panel with one message and one action (the warranty). */
.panel { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--space-8); padding: var(--space-12); border-radius: var(--r-panel); background: var(--tint); }
.panel__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--emerald); color: var(--white); }
.panel__icon .ico { width: 28px; height: 28px; }
.panel__text { display: grid; justify-items: start; gap: var(--space-4); }
.panel__text p { max-width: 58ch; font-size: var(--text-lg); line-height: var(--lh-lg); }
.panel__text .btn { margin-top: var(--space-2); }
@media (max-width: 640px) {
  .panel { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); padding: var(--space-8) var(--space-6); }
  .panel__icon { width: 56px; height: 56px; }
  /* A long label (an email address) wraps inside its button instead of pushing the page sideways. */
  .panel__text .btn { max-width: 100%; height: auto; min-height: var(--control-h); padding: var(--space-2) var(--space-5); white-space: normal; text-align: center; }
}

/* FAQs: jump links under the heading. */
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-top: var(--space-2); }
.faq-group { scroll-margin-top: 64px; }

/* Contact: ways to reach us beside the message form. */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: var(--space-10) var(--space-16); }
.ways { display: grid; border-top: 1px solid var(--line); }
.ways li { border-bottom: 1px solid var(--line); }
.way { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: var(--space-4); min-height: 88px; padding-block: var(--space-4); }
.way__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--fill); transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.way__text { display: grid; gap: 2px; font-size: var(--text-sm); line-height: var(--lh-sm); }
.way__text b { font-size: var(--text-lg); line-height: var(--lh-lg); }
.way__go .ico { width: 20px; height: 20px; transition: transform var(--dur) var(--ease-out); }
.way:hover .way__icon { background: var(--black); color: var(--white); }
.way:hover .way__go .ico { transform: translateX(3px); }
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); } }

/* Legal pages: one readable column. */
.prose { display: grid; gap: var(--space-4); max-width: 68ch; font-size: var(--text-md); line-height: var(--lh-md); }
.prose h2 { margin-top: var(--space-8); font-size: var(--text-xl); line-height: var(--lh-xl); font-weight: var(--w-bold); letter-spacing: -0.02em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { display: grid; gap: var(--space-3); padding-left: var(--space-6); list-style: disc; }
.prose a { font-weight: var(--w-semibold); text-decoration: underline; text-underline-offset: 3px; }

/* The closing panel straight after a coloured band needs its own space above. */
.spec-list--single { grid-template-columns: minmax(0, 1fr); }
.section--tint .budget { justify-items: center; text-align: center; border-color: transparent; }
/* Phones: budgets two by two (the last one across the row), without the arrow circles. */
@media (max-width: 560px) {
  .budgets { grid-template-columns: 1fr 1fr; gap: var(--space-2); }
  .budget { padding: var(--space-4) var(--space-3); }
  .budget__go { display: none; }
  .budget:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Questions, centred under one heading. */
.faq-block { display: grid; justify-items: center; gap: var(--space-10); }
.faq-block > .h2 { text-align: center; }
.faq-block .faq { width: 100%; max-width: 760px; }
.faq-block__more { font-size: var(--text-md); line-height: var(--lh-md); text-align: center; }
.spec-list dd a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.faq-block__next { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-6); margin-top: calc(var(--space-4) * -1); }
.faq-block__more a { font-weight: var(--w-semibold); text-decoration: underline; text-underline-offset: 4px; }

/* The one dark block: a heading and three ticks beside a two-question start. */
/* ---------- Car sourcing: how it works in three steps (home) ----------
   Abdullah, 30 Oct 2026: "bigger, step by step… a nice 1 2 3 that is animated". Each step has a small picture of
   that moment. The words never move; only the line, the numbers and the pictures play, once each time the block
   scrolls into view. Without the script, or with reduced motion, everything shows in its finished state. */
.how-block .wrap { display: grid; gap: var(--space-16); }
.how-block__head { display: grid; justify-items: center; gap: var(--space-4); text-align: center; }
.how-block__head h2 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; font-weight: var(--w-bold); letter-spacing: -0.04em; text-wrap: balance; }
.how-block__head p { max-width: 44ch; font-size: var(--text-lg); line-height: var(--lh-lg); text-wrap: balance; }

.how { --num: 56px; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3) var(--space-8); }
/* The line joining the numbers, drawn left to right. */
.how::before, .how::after { content: ""; position: absolute; top: calc(var(--num) / 2 - 1px); left: calc(100% / 6); right: calc(100% / 6); height: 2px; border-radius: 2px; }
.how::before { background: var(--line-on-dark); }
.how::after { background: var(--emerald); transform-origin: left; }
/* The steps share row tracks (subgrid), so the pictures line up even where a line of text wraps. */
.how__step { position: relative; display: grid; grid-row: span 4; grid-template-rows: subgrid; justify-items: center; text-align: center; }
.how__num { position: relative; z-index: 1; display: grid; place-items: center; width: var(--num); height: var(--num); margin-bottom: var(--space-3); border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 8px var(--black); font-size: var(--text-lg); font-weight: var(--w-bold); font-variant-numeric: tabular-nums; transition: background-color var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.how__step h3 { font-size: var(--text-xl); line-height: var(--lh-xl); font-weight: var(--w-bold); letter-spacing: -0.02em; }
.how__step > p { max-width: 30ch; font-size: var(--text-md); line-height: var(--lh-md); text-wrap: balance; }

/* The pictures: one small card per step, all the same height. */
.how__demo { align-self: stretch; display: grid; align-content: center; gap: var(--space-2); width: 100%; max-width: 380px; min-height: 236px; margin-top: var(--space-4); padding: var(--space-5); border-radius: var(--r-card); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); text-align: left; }
.how__demo .ico { flex: none; width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: var(--emerald); color: var(--white); stroke-width: 3; }
.how__field { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); height: 44px; padding: 0 var(--space-4); border-radius: var(--r-input); background: rgba(255, 255, 255, 0.08); line-height: 44px; }
.how__field small { font-size: var(--text-xs); font-weight: var(--w-medium); }
.how__field b { font-size: var(--text-sm); font-weight: var(--w-semibold); }
.how__sent { display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin-top: var(--space-1); font-size: var(--text-sm); font-weight: var(--w-semibold); }
.how__demo--checks li { display: flex; align-items: center; gap: var(--space-3); min-height: 32px; font-size: var(--text-sm); line-height: var(--lh-sm); font-weight: var(--w-medium); }
/* Step 3: the whole studio shot, Autren wall and all, edge to edge in the card (Abdullah, 30 Oct 2026: "bigger and better scaled"). */
.how__demo--ready { align-content: start; gap: 0; padding: 0; overflow: hidden; }
.how__demo--ready img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--photo-well); }
.how__ready { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) var(--space-5); }
.how__ready b { font-size: var(--text-md); font-weight: var(--w-bold); }
.how__ready span { display: inline-flex; align-items: center; gap: var(--space-2); height: 32px; padding: 0 var(--space-3) 0 var(--space-1); border-radius: var(--r-pill); background: var(--white); color: var(--black); font-size: var(--text-xs); font-weight: var(--w-semibold); }
.how__ready .ico { width: 24px; height: 24px; padding: 5px; stroke-width: 2.5; }

/* The start: make, model and budget, then the button, in one glass row. Each car picked shows as a chip under it. */
.how-block__start { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); width: min(100%, 1080px); justify-self: center; padding: var(--space-3); }
.how-block__picks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); min-height: 40px; padding: 0 var(--space-2) var(--space-1); }
.how-block__picks p { font-size: var(--text-sm); line-height: var(--lh-sm); }
.how-block__picks p[hidden] { display: none; }
.how-block__start .input { height: 52px; }
.how-block__start .btn { height: 52px; margin-top: 0; padding-inline: var(--space-8); font-size: var(--text-md); }
.how-block__start .how-block__add { padding-inline: var(--space-5); }

/* ----- The animation: armed by the script only when the block starts off screen. ----- */
.how-block.is-armed .how::after { transform: scaleX(0); }
.how-block.is-armed .how__num { background: var(--black); box-shadow: 0 0 0 8px var(--black), inset 0 0 0 2px var(--line-on-dark); }
.how-block.is-armed .how__demo--ask > *, .how-block.is-armed .how__demo--checks .ico, .how-block.is-armed .how__demo--ready > * { opacity: 0; transform: translateY(8px); }
.how-block.is-armed .how__demo--checks li { opacity: 0.4; }
.how-block.is-armed .how__step { transform: translateY(16px); }

.how-block.is-armed :is(.how__num, .how__step, .how__demo > *, .how__demo .ico, .how__demo--checks li) { transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out), background-color var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out); }
.how-block.is-armed .how::after { transition: transform 1600ms var(--ease-in-out) 200ms; }
.how-block.is-in .how::after { transform: scaleX(1); }
.how-block.is-in .how__step { transform: none; transition-duration: 600ms; }
.how-block.is-in .how__step:nth-child(2) { transition-delay: 80ms; }
.how-block.is-in .how__step:nth-child(3) { transition-delay: 160ms; }
.how-block.is-in .how__num { background: var(--emerald); box-shadow: 0 0 0 8px var(--black); animation: num-pop 420ms var(--ease-out) both; }
.how-block.is-in .how__step:nth-child(1) .how__num { transition-delay: 200ms; animation-delay: 200ms; }
.how-block.is-in .how__step:nth-child(2) .how__num { transition-delay: 1000ms; animation-delay: 1000ms; }
.how-block.is-in .how__step:nth-child(3) .how__num { transition-delay: 1800ms; animation-delay: 1800ms; }
@keyframes num-pop { 50% { transform: scale(1.12); } }
/* Step 1: the three answers arrive, then "sent". */
.how-block.is-in .how__demo--ask > * { opacity: 1; transform: none; }
.how-block.is-in .how__demo--ask > :nth-child(1) { transition-delay: 300ms; }
.how-block.is-in .how__demo--ask > :nth-child(2) { transition-delay: 480ms; }
.how-block.is-in .how__demo--ask > :nth-child(3) { transition-delay: 660ms; }
.how-block.is-in .how__demo--ask > :nth-child(4) { transition-delay: 900ms; }
/* Step 2: the five checks tick one by one. */
.how-block.is-in .how__demo--checks li, .how-block.is-in .how__demo--checks .ico { opacity: 1; transform: none; }
.how-block.is-in .how__demo--checks li:nth-child(1), .how-block.is-in .how__demo--checks li:nth-child(1) .ico { transition-delay: 1100ms; }
.how-block.is-in .how__demo--checks li:nth-child(2), .how-block.is-in .how__demo--checks li:nth-child(2) .ico { transition-delay: 1250ms; }
.how-block.is-in .how__demo--checks li:nth-child(3), .how-block.is-in .how__demo--checks li:nth-child(3) .ico { transition-delay: 1400ms; }
.how-block.is-in .how__demo--checks li:nth-child(4), .how-block.is-in .how__demo--checks li:nth-child(4) .ico { transition-delay: 1550ms; }
.how-block.is-in .how__demo--checks li:nth-child(5), .how-block.is-in .how__demo--checks li:nth-child(5) .ico { transition-delay: 1700ms; }
/* Step 3: the car arrives, ready to view. */
.how-block.is-in .how__demo--ready > * { opacity: 1; transform: none; }
.how-block.is-in .how__demo--ready > :nth-child(1) { transition-delay: 1900ms; }
.how-block.is-in .how__demo--ready > :nth-child(2) { transition-delay: 2100ms; }

@media (max-width: 900px) {
  /* Stacked: the line runs down the left, through the numbers. */
  .how { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); }
  .how::before, .how::after { top: calc(var(--num) / 2); bottom: calc(var(--num) / 2); left: calc(var(--num) / 2 - 1px); right: auto; width: 2px; height: auto; }
  .how::after { transform-origin: top; }
  .how-block.is-armed .how::after { transform: scaleY(0); }
  .how-block.is-in .how::after { transform: scaleY(1); }
  .how__step { grid-row: auto; grid-template-columns: var(--num) minmax(0, 1fr); grid-template-rows: none; justify-items: start; column-gap: var(--space-5); row-gap: var(--space-1); text-align: left; }
  .how__num { grid-row: span 3; margin-bottom: 0; }
  .how__step > :not(.how__num) { grid-column: 2; }
  .how__demo { max-width: none; min-height: 0; margin-top: var(--space-3); }
  .how-block__start { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .how-block__start .input-money, .how-block__start .btn--primary { grid-column: 1 / -1; }
  /* Stacked, the chips sit under the pickers they came from, above the button. */
  .how-block__picks { order: 1; padding-block: 0; }
  .how-block__start .btn--primary { order: 2; }
}
@media (max-width: 480px) { .how { --num: 44px; } .how-block__start { gap: var(--space-2); padding: var(--space-4); } .how-block__start .how-block__add { padding-inline: var(--space-4); } .how-block__head h2 { font-size: 40px; } }

/* ---------- Hero: Thames-style text left, search right, showroom behind both ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--black); color: var(--white); }
.hero__photo { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.38) 48%, rgba(0,0,0,.18)), linear-gradient(0deg, var(--black), transparent 48%); pointer-events: none; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) 400px; align-items: center; gap: var(--space-16); min-height: clamp(600px, calc(100svh - 230px), 760px); padding-block: var(--space-20); }
.hero__text { display: grid; gap: var(--space-6); max-width: 700px; }
/* We're a dealer first (Abdullah, 30 Oct 2026): "Reliable used cars." then "Properly looked after." on its own line,
   all white, nothing under it ("remove the ugly green", "I do not like more text"). Sized from the screen so the
   second line (about 9.6× the font size wide) never splits: beside the search from 768px, full width on phones. */
.hero h1 { font-size: clamp(30px, 4.4vw, 64px); line-height: 1.06; font-weight: var(--w-bold); letter-spacing: -0.035em; }
.hero h1 span { white-space: nowrap; }
@media (max-width: 767px) { .hero h1 { font-size: min(36px, 8.8vw); } }
.hero__search { width: 100%; gap: var(--space-4); padding: var(--space-8); }
.hero__search .select { height: 52px; border-color: rgba(255, 255, 255, 0.48); background-color: rgba(0, 0, 0, 0.35); font-weight: var(--w-medium); }
.hero__search .btn { height: 52px; margin-top: var(--space-1); font-size: var(--text-md); }
.hero__search .text-link { min-height: 44px; font-size: var(--text-sm); }
.hero__trust .trust__row { border-top: 1px solid var(--line-on-dark); }
.hero__trust .trust__item { padding-block: var(--space-6); }
/* Outlined like the nav's heart and burger, not emerald discs: the hero's only green is the Search button. */
.hero__trust .trust__icon { background: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32); }
@media (min-width: 768px) and (max-width: 1023px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-8); }
  .hero__search { padding: var(--space-6); }
}
@media (max-width: 767px) {
  .hero__photo { position: relative; inset: auto; display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-position: 80% 50%; -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent); mask-image: linear-gradient(180deg, #000 65%, transparent); }
  .hero::after { display: none; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); min-height: 0; margin-top: calc(var(--space-10) * -1); padding-block: 0 var(--space-8); }
  .hero__text { gap: var(--space-4); }
  .hero__search { padding: var(--space-5); }
}
@media (max-width: 560px) {
  .hero__trust .trust__row { grid-template-columns: 1fr 1fr; gap: 0 var(--space-4); }
  .hero__trust .trust__item { flex-direction: column; align-items: flex-start; gap: var(--space-2); padding-block: var(--space-5); border-top: 0 !important; }
  .hero__trust .trust__item:nth-child(n + 3) { border-top: 1px solid var(--line-on-dark) !important; }
  .hero__trust .trust__icon { width: 36px; height: 36px; }
  .hero__trust .trust__icon .ico { width: 18px; height: 18px; }
}

/* ---------- Home: sell your car. Words on the left, the sell form's first screen on the right ---------- */
/* A soft grey panel (the tint's quiet partner), so it sits apart from the tint band under it. */
.section--follow { padding-top: 0; }
.sellband { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: center; gap: var(--space-10) var(--space-16); padding: var(--space-16); border-radius: var(--r-panel); background: var(--soft); }
.sellband__text { display: grid; justify-items: start; gap: var(--space-5); }
.sellband__title { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.06; font-weight: var(--w-bold); letter-spacing: -0.035em; }
.sellband__text .ticks { margin-top: var(--space-3); }
.sellband--tint { background: var(--tint); }
.sellband__form { display: grid; gap: var(--space-5); padding: var(--space-8); border-radius: var(--r-panel); background: var(--white); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.2); }
@media (max-width: 900px) { .sellband { grid-template-columns: minmax(0, 1fr); padding: var(--space-10); } }
@media (max-width: 560px) {
  .sellband { gap: var(--space-8); padding: var(--space-8) var(--space-5) var(--space-5); }
  .sellband__form { padding: var(--space-6) var(--space-5); border-radius: var(--r-card); }
}

/* ---------- A sequence on one line: numbered stops joined by a hairline (the home page's 1 · 2 · 3, at rest) ---------- */
.track { --stop: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-10); counter-reset: step; }
.track li { position: relative; display: grid; align-content: start; gap: var(--space-2); padding-top: calc(var(--stop) + var(--space-6)); counter-increment: step; }
.track li::before { content: counter(step); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: var(--stop); height: var(--stop); border-radius: 50%; background: var(--black); color: var(--white); font-size: var(--text-md); line-height: 1; font-weight: var(--w-bold); }
.track li:not(:last-child)::after { content: ''; position: absolute; top: calc(var(--stop) / 2); left: calc(var(--stop) + var(--space-4)); right: calc(var(--space-6) * -1); height: 1px; background: var(--line-strong); }
.track b { font-size: var(--text-lg); line-height: var(--lh-lg); font-weight: var(--w-bold); letter-spacing: -0.01em; text-wrap: balance; }
.track span { max-width: 40ch; font-size: var(--text-md); line-height: var(--lh-md); text-wrap: pretty; }
.track a { font-weight: var(--w-semibold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
/* In a menu panel: smaller stops and type. */
.track--sm { --stop: 36px; gap: var(--space-6); margin-top: var(--space-2); }
.track--sm li { gap: 2px; padding-top: calc(var(--stop) + var(--space-4)); }
.track--sm li::before { font-size: var(--text-sm); }
.track--sm li:not(:last-child)::after { left: calc(var(--stop) + var(--space-3)); right: calc(var(--space-3) * -1); }
.track--sm b { font-size: var(--text-md); line-height: var(--lh-md); }
.track--sm span { font-size: var(--text-sm); line-height: var(--lh-sm); }
/* Narrow screens: the stops run down the page, joined by the same line. */
@media (max-width: 760px) {
  .track:not(.track--sm) { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .track:not(.track--sm) li { padding-top: 0; padding-left: calc(var(--stop) + var(--space-5)); min-height: var(--stop); }
  .track:not(.track--sm) li:not(:last-child)::after { top: calc(var(--stop) + var(--space-2)); bottom: calc(var(--space-6) * -1); left: calc(var(--stop) / 2); right: auto; width: 1px; height: auto; }
}

/* ---------- Two ways to do something, side by side: a title, one line, the steps, one button ---------- */
.routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.route { display: grid; grid-template-rows: auto 1fr auto; gap: var(--space-8); padding: var(--space-8); border-radius: var(--r-panel); background: var(--soft); }
.route__head { display: grid; gap: var(--space-2); }
.route__title { font-size: clamp(28px, 2.5vw, 34px); line-height: 1.1; font-weight: var(--w-bold); letter-spacing: -0.03em; }
.route__line { font-size: var(--text-md); line-height: var(--lh-md); font-weight: var(--w-semibold); }
/* Numbered stops joined by one line down the card: a line of words each, nothing else. */
.route__steps { align-self: start; display: grid; gap: var(--space-5); counter-reset: step; }
.route__steps li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: var(--space-4); min-height: 28px; font-size: var(--text-md); line-height: var(--lh-sm); font-weight: var(--w-semibold); counter-increment: step; }
.route__steps li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--black); color: var(--white); font-size: var(--text-xs); font-weight: var(--w-bold); }
.route__steps li:not(:last-child)::after { content: ''; position: absolute; left: 13px; top: calc(50% + 14px); width: 2px; height: calc(100% - 28px + var(--space-5)); background: var(--black); }
.route__steps a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.route .btn { justify-self: start; }
@media (max-width: 1023px) { .routes { grid-template-columns: minmax(0, 1fr); } .route { padding: var(--space-10); } }
@media (max-width: 560px) { .route { gap: var(--space-6); padding: var(--space-8) var(--space-6); } .route .btn { justify-self: stretch; } }

/* ---------- Two outlined cards, each a short list (what to bring, what helps your price) ---------- */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); margin-top: var(--space-6); }
.listcard { display: grid; align-content: start; gap: var(--space-6); padding: var(--space-10); border-radius: var(--r-panel); box-shadow: inset 0 0 0 1px var(--line); }
.listcard h3 { font-size: var(--text-xl); line-height: var(--lh-xl); font-weight: var(--w-bold); letter-spacing: -0.02em; }
.listcard ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-8); font-size: var(--text-md); line-height: 24px; font-weight: var(--w-medium); }
.listcard li { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: var(--space-3); }
.listcard .ico { width: 20px; height: 20px; margin-top: 2px; stroke-width: 2.5; }
@media (max-width: 900px) { .duo { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .listcard { padding: var(--space-8) var(--space-6); }
  .listcard ul { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
}

/* ---------- Us beside the other ways to sell: a table with our column lifted as a white card ---------- */
.versus-block { display: grid; justify-items: center; gap: var(--space-12); }
.versus { --col: 184px; --lift: var(--space-4); position: relative; width: 100%; max-width: 960px; }
.versus::before { content: ''; position: absolute; top: calc(var(--lift) * -1); bottom: calc(var(--lift) * -1); right: calc(var(--col) * 2); width: var(--col); border-radius: var(--r-panel); background: var(--white); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.2); }
.versus table { position: relative; width: 100%; border-collapse: collapse; table-layout: fixed; }
.versus th, .versus td { padding: var(--space-5) var(--space-3); text-align: center; vertical-align: middle; }
.versus thead th { width: var(--col); padding-top: var(--space-2); vertical-align: bottom; font-size: var(--text-sm); line-height: var(--lh-sm); font-weight: var(--w-bold); }
.versus thead img { display: block; width: 28px; height: auto; margin: 0 auto var(--space-2); }
.versus tbody tr { border-top: 1px solid var(--line); }
.versus tbody th { padding-left: 0; text-align: left; font-size: var(--text-md); line-height: 24px; font-weight: var(--w-semibold); text-wrap: balance; }
.versus__mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--fill-hover); vertical-align: middle; }
.versus__mark .ico { width: 16px; height: 16px; stroke-width: 2.5; }
.versus__mark.is-yes { background: none; box-shadow: inset 0 0 0 1.5px var(--black); }
.versus td:nth-child(2) .versus__mark.is-yes { background: var(--emerald); color: var(--white); box-shadow: none; }
.versus__short { display: none; }
.versus__note { font-size: var(--text-sm); line-height: var(--lh-sm); text-align: center; }
@media (max-width: 900px) { .versus { --col: 136px; } }
@media (max-width: 640px) {
  .versus-block { gap: var(--space-10); }
  .versus { --col: 68px; --lift: var(--space-3); }
  .versus::before { border-radius: var(--r-card); }
  .versus th, .versus td { padding: var(--space-4) var(--space-1); }
  .versus thead th { font-size: var(--text-xs); line-height: var(--lh-xs); }
  .versus tbody th { padding-right: var(--space-3); font-size: var(--text-sm); line-height: var(--lh-sm); }
  .versus__mark { width: 28px; height: 28px; }
  .versus__full { display: none; }
  .versus__short { display: inline; }
}
@media (max-width: 380px) { .versus { --col: 58px; } .versus tbody th { text-wrap: wrap; } }

/* ---------- The second ask on the sell page: a black panel with the reg box on one line ---------- */
.regband { display: grid; justify-items: center; gap: var(--space-10); padding: var(--space-20) var(--space-10); border-radius: var(--r-panel); background: var(--black); color: var(--white); }
.regband__title { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.06; font-weight: var(--w-bold); letter-spacing: -0.035em; text-align: center; text-wrap: balance; }
.regband__form { --h: 64px; display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 220px) auto; align-items: start; gap: var(--space-3); width: 100%; max-width: max-content; }
.regband__form .plate { height: var(--h); border-color: var(--white); }
.regband__form .plate .plate__input { font-size: 26px; }
.regband__form .field > .input { height: var(--h); font-size: var(--text-lg); font-weight: var(--w-semibold); }
/* The button lines up with the boxes, under the labels' line. */
.regband__form .btn { height: var(--h); margin-top: calc(var(--lh-xs) + var(--space-2)); padding-inline: var(--space-8); font-size: var(--text-md); }
@media (max-width: 760px) {
  .regband { gap: var(--space-8); padding: var(--space-12) var(--space-5); }
  .regband__form { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); max-width: 420px; }
  .regband__form .btn { margin-top: var(--space-2); }
}

/* ---------- Two columns: a heading block beside its content ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-16); align-items: start; }
.split__head { display: grid; gap: var(--space-4); align-content: start; }
.split__head p { max-width: 40ch; font-size: var(--text-md); line-height: var(--lh-md); }
.split__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: var(--space-8); } }

/* ---------- Steps: a real sequence, so numbers are allowed ---------- */
.steps { display: grid; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: var(--space-1) var(--space-5); padding-block: var(--space-6); border-top: 1px solid var(--line-on-dark); }
.step:last-child { border-bottom: 1px solid var(--line-on-dark); }
.step__num { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--white); font-size: var(--text-md); font-weight: var(--w-bold); font-variant-numeric: tabular-nums; }
.step b { align-self: end; font-size: var(--text-lg); line-height: var(--lh-lg); font-weight: var(--w-bold); letter-spacing: -0.01em; }
.step span { font-size: var(--text-sm); line-height: var(--lh-sm); }

/* ---------- FAQ: native details, one question per row ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 76px; padding-block: var(--space-5); cursor: pointer; list-style: none; font-size: var(--text-lg); line-height: var(--lh-lg); font-weight: var(--w-bold); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { box-shadow: none; outline: 2px solid var(--emerald); outline-offset: 4px; border-radius: 4px; }
.faq__icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.faq__icon .ico { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
.faq summary:hover .faq__icon { box-shadow: inset 0 0 0 1px var(--black); }
.faq details[open] .faq__icon { background: var(--black); color: var(--white); box-shadow: none; }
.faq details[open] .faq__icon .ico { transform: rotate(45deg); }
.faq details p { max-width: 62ch; padding-bottom: var(--space-6); padding-right: var(--space-12); font-size: var(--text-md); line-height: var(--lh-md); }

/* =====================================================================
   Car page: gallery and story on the left, a sticky buy box on the right.
   Phones: gallery edge to edge, then the buy box, then the story,
   with a price-and-book bar that appears once the buy box scrolls away.
   ===================================================================== */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); padding-block: var(--space-5); font-size: var(--text-xs); line-height: var(--lh-xs); font-weight: var(--w-medium); }
.crumbs a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.crumbs a:hover { text-decoration-color: currentColor; }
.crumbs .ico { width: 14px; height: 14px; }

.vdp { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); grid-template-areas: "gallery aside" "details aside"; gap: var(--space-12) var(--space-12); align-items: start; padding-bottom: var(--section-y); }
.vdp__gallery { grid-area: gallery; min-width: 0; }
.vdp__aside { grid-area: aside; position: sticky; top: 104px; }
.vdp__details { grid-area: details; display: grid; gap: var(--space-12); min-width: 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: var(--space-3); }
.gallery__main { position: relative; overflow: hidden; border-radius: var(--r-panel); background: var(--photo-well); }
.gallery__track { display: flex; aspect-ratio: 3 / 2; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { box-shadow: inset 0 0 0 3px var(--emerald); }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: start; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__count { position: absolute; left: var(--space-4); bottom: var(--space-4); display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 var(--space-3); border-radius: var(--r-pill); background: rgba(0, 0, 0, 0.72); color: var(--white); font-size: var(--text-xs); font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; pointer-events: none; }
.gallery__count .ico { width: 14px; height: 14px; }
.gallery__tools { position: absolute; top: var(--space-4); right: var(--space-4); display: flex; gap: var(--space-2); }
.gallery__badges { position: absolute; top: var(--space-4); left: var(--space-4); display: flex; gap: var(--space-2); }
.photo-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--white); color: var(--black); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); transition: transform var(--dur-press) var(--ease-out); }
.photo-btn:active { transform: scale(0.92); }
.photo-btn .ico { width: 20px; height: 20px; transition: fill var(--dur-fast) var(--ease-out), stroke var(--dur-fast) var(--ease-out); }
.photo-btn[aria-pressed="true"] .ico { fill: var(--emerald); stroke: var(--emerald); }
.photo-btn.is-popping .ico { animation: pop 320ms var(--ease-out); }
.gallery__nav { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; opacity: 0; transition: opacity var(--dur) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.gallery__nav--prev { left: var(--space-4); }
.gallery__nav--next { right: var(--space-4); }
.gallery__nav:disabled { opacity: 0 !important; pointer-events: none; }
.gallery__main:hover .gallery__nav, .gallery__nav:focus-visible { opacity: 1; }
@media (hover: none) { .gallery__nav { display: none; } }
.gallery__thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * var(--space-2)) / 5); gap: var(--space-2); overflow-x: auto; scrollbar-width: none; padding: 3px; margin: -3px; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb { aspect-ratio: 3 / 2; overflow: hidden; padding: 0; border: 0; border-radius: var(--r-input); background: var(--photo-well); transition: box-shadow var(--dur-fast) var(--ease-out); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.gallery__thumb:hover img { transform: scale(1.04); }
.gallery__thumb[aria-current="true"] { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--black); }

/* ---------- Buy box ---------- */
.buybox { display: grid; gap: var(--space-5); padding: var(--space-8); border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--white); }
.buybox__title { display: grid; gap: var(--space-2); }
.buybox__title h1 { font-size: var(--text-feature-title); line-height: 1.12; font-weight: var(--w-bold); letter-spacing: -0.025em; text-wrap: balance; }
.buybox__title h1 span { display: block; margin-top: var(--space-2); font-size: var(--text-sm); line-height: var(--lh-sm); font-weight: var(--w-regular); letter-spacing: 0; text-wrap: pretty; }
.buybox__specs { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.buybox__price { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.buybox__price strong { font-size: var(--text-feature-price); line-height: 1.1; font-weight: var(--w-bold); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
/* The earlier price sits on its own line under the price and its rating. */
.buybox__price s { order: 3; flex-basis: 100%; margin-top: calc(var(--space-2) * -1); font-size: var(--text-sm); line-height: var(--lh-sm); }
/* A reserved car: say so plainly, then offer the way on. */
.buybox__reserved { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-4); border-radius: var(--r-card); background: var(--fill); font-size: var(--text-sm); line-height: var(--lh-sm); }
.buybox__reserved .ico { width: 20px; height: 20px; margin-top: 1px; }
.buybox__actions { display: grid; gap: var(--space-2); }
.buybox__actions > .btn { height: 52px; font-size: var(--text-md); }
.buybox__pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.ticklist .ico { flex: none; width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: var(--emerald); color: var(--white); stroke-width: 3; }
.buybox__partex { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.buybox__partex > span:first-child { display: grid; font-size: var(--text-xs); line-height: var(--lh-xs); }
.buybox__partex b { font-size: var(--text-sm); line-height: var(--lh-sm); }
.buybox__partex .text-link { flex: none; white-space: nowrap; }

/* ---------- Story blocks under the gallery ---------- */
.vdp-block { display: grid; gap: var(--space-5); }
.vdp-block + .vdp-block { padding-top: var(--space-12); border-top: 1px solid var(--line); }
.vdp-block h2 { font-size: var(--text-xl); line-height: var(--lh-xl); font-weight: var(--w-bold); letter-spacing: -0.02em; }
.vdp-block > p { max-width: 62ch; font-size: var(--text-md); line-height: var(--lh-md); }
.vdp-block > p a { font-weight: var(--w-semibold); text-decoration: underline; text-underline-offset: 3px; }

.spec-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-8); }
.spec-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-3); border-bottom: 1px solid var(--line); font-size: var(--text-sm); line-height: var(--lh-sm); }
.spec-list dt { flex: none; }
.spec-list dd { margin: 0; font-weight: var(--w-semibold); text-align: right; font-variant-numeric: tabular-nums; }
/* Phones: two columns with the label over the value, so the list is half as long. */
@media (max-width: 640px) {
  .spec-list { column-gap: var(--space-6); }
  .spec-list > div { display: grid; gap: 2px; align-content: start; }
  .spec-list dd { text-align: left; }
}

.ticklist { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-8); }
.ticklist--single { grid-template-columns: 1fr; max-width: 64ch; }
.ticklist li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--text-sm); line-height: var(--lh-sm); }
.ticklist--single li { font-size: var(--text-md); line-height: var(--lh-md); }
.ticklist .ico { margin-top: 1px; }
.ticklist--single .ico { margin-top: 4px; }
@media (max-width: 640px) { .ticklist { grid-template-columns: 1fr; } }

/* =====================================================================
   Car sourcing: one question per screen, on a quiet white page.
   Big question, big tiles, a thin progress bar (research, 29 Oct 2026).
   ===================================================================== */

/* Ticks: three short facts, each with an emerald check. */
.ticks { display: grid; gap: var(--space-3); font-size: var(--text-sm); line-height: var(--lh-sm); font-weight: var(--w-semibold); }
.ticks li { display: flex; align-items: center; gap: var(--space-3); }
.ticks a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ticks .ico { width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--emerald); color: var(--white); stroke-width: 3; }

/* How it works, small: a numbered list between hairlines. */

.flow { display: grid; gap: var(--space-4); padding: var(--space-8) var(--space-10) var(--space-10); border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--white); scroll-margin-top: 104px; }
.flow__top { display: flex; align-items: center; min-height: var(--tap); }
.flow__back { display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--tap); margin-left: calc(var(--space-3) * -1); padding: 0 var(--space-3) 0 var(--space-2); border: 0; border-radius: var(--r-pill); background: none; font-size: var(--text-sm); font-weight: var(--w-semibold); transition: background-color var(--dur-fast) var(--ease-out); }
.flow__back:hover { background: var(--fill); }
.flow__back .ico { width: 18px; height: 18px; }
.flow__count { margin-left: auto; font-size: var(--text-sm); font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; }
.flow__bar { height: 4px; overflow: hidden; border-radius: var(--r-pill); background: var(--fill-hover); }
.flow__bar span { display: block; width: 20%; height: 100%; border-radius: inherit; background: var(--emerald); transition: width var(--dur-slow) var(--ease-out); }

.flow__form { display: grid; gap: var(--space-8); padding-top: var(--space-6); }
.flow__form[hidden] { display: none; }
.flow__step { display: grid; gap: var(--space-6); min-width: 0; }
.flow__q { font-size: clamp(28px, 2.8vw, 36px); line-height: 1.15; font-weight: var(--w-bold); letter-spacing: -0.025em; text-wrap: balance; }
.flow__q:focus { outline: none; box-shadow: none; }
.flow__help { margin-top: calc(var(--space-4) * -1); font-size: var(--text-md); line-height: var(--lh-md); }

/* Answer tiles: real radio buttons, big enough to tap without aiming. */
.flow__tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: var(--space-2); }
.flow__tiles--makes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flow__tiles--budget { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { position: relative; display: block; min-width: 0; }
.tile input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tile span { display: grid; place-items: center; align-content: center; gap: 2px; height: 100%; min-height: 60px; padding: var(--space-2) var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--white); font-size: var(--text-md); line-height: 1.2; font-weight: var(--w-semibold); text-align: center; transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.tile small { font-size: var(--text-xs); font-weight: var(--w-medium); }
.tile:hover span { border-color: var(--black); }
.tile input:checked + span { background: var(--black); border-color: var(--black); color: var(--white); }
.tile input:focus-visible + span { box-shadow: var(--focus-ring); }
.flow__tiles--budget .tile span { min-height: 76px; font-size: var(--text-lg); }

.flow fieldset { display: grid; gap: var(--space-3); min-width: 0; margin: 0; padding: 0; border: 0; }
.flow legend { padding: 0; margin-bottom: var(--space-3); font-size: var(--text-sm); line-height: var(--lh-sm); font-weight: var(--w-semibold); }
.flow .field > span { font-size: var(--text-sm); line-height: var(--lh-sm); }
.flow textarea.input { height: auto; min-height: 104px; padding-block: var(--space-3); resize: vertical; }
.flow__check { grid-template-columns: 20px 1fr; font-size: var(--text-md); }
.field__hint { font-size: var(--text-xs); line-height: var(--lh-xs); }
/* Chrome draws an arrow on inputs with suggestions; the list still opens as you type. */
.flow input::-webkit-calendar-picker-indicator { display: none !important; }
.input-money { position: relative; display: block; }
.input-money > span { position: absolute; left: var(--space-4); top: 50%; transform: translateY(-50%); font-weight: var(--w-semibold); pointer-events: none; }
.input-money .input { padding-left: 34px; }
.input--reg { text-transform: uppercase; font-weight: var(--w-bold); letter-spacing: 0.06em; }
/* Sell your car: the registration looks like a number plate. White and black, like a front plate. */
.plate { display: flex; height: 72px; overflow: hidden; border: 2px solid var(--black); border-radius: var(--r-input); background: var(--white); }
.plate__uk { display: grid; place-items: center; flex: none; width: 44px; background: var(--black); color: var(--white); font-size: var(--text-xs); font-weight: var(--w-bold); letter-spacing: 0.04em; }
.plate .plate__input { flex: 1; min-width: 0; height: 100%; border: 0; border-radius: 0; text-align: center; text-transform: uppercase; font-size: 30px; font-weight: var(--w-bold); letter-spacing: 0.08em; }
.plate .plate__input:focus-visible { box-shadow: none; outline: none; }
.plate:focus-within { box-shadow: var(--focus-ring); }
.flow__tiles--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* A short list of choices, one per row: the name on the left with a line under it. */
.flow .flow__tiles--rows { grid-template-columns: minmax(0, 1fr); }
.flow__tiles--rows .tile span { justify-items: start; min-height: 72px; padding: var(--space-3) var(--space-5); font-size: var(--text-lg); text-align: left; }
.tile--tall span { min-height: 112px; gap: var(--space-1); font-size: var(--text-lg); }
.flow__towards { padding: var(--space-3) var(--space-4); border-radius: var(--r-card); background: var(--fill); font-size: var(--text-sm); line-height: var(--lh-sm); font-weight: var(--w-semibold); }
.flow__towards:empty, .flow__step:has([value="Sell"]:checked, [value="Sale or return"]:checked) .flow__towards { display: none; }
/* Contact: the same panel as a step form, on one screen. */
.flow--single .flow__form { padding-top: 0; gap: var(--space-6); }
.flow--single .flow__q { font-size: var(--text-xl); line-height: var(--lh-xl); }

/* Last screen: what they asked for, each line with a way back to change it. */
.flow__summary { display: grid; padding: var(--space-1) var(--space-5); border-radius: var(--r-card); background: var(--fill); }
.flow__summary > div { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: baseline; gap: var(--space-3); padding-block: var(--space-2); font-size: var(--text-sm); line-height: var(--lh-sm); }
.flow__summary > div + div { border-top: 1px solid var(--line); }
.flow__summary dt { font-weight: var(--w-medium); }
.flow__summary dd { margin: 0; font-weight: var(--w-bold); overflow-wrap: anywhere; }
.flow__summary .text-link { min-height: 32px; font-size: var(--text-xs); }

.flow__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); }
.flow__foot .btn--primary { min-width: 220px; height: 52px; font-size: var(--text-md); }
.flow__note { flex-basis: 100%; font-size: var(--text-xs); line-height: var(--lh-xs); }

/* Sent: what they asked for, then what happens next. */
.flow.is-done .flow__top, .flow.is-done .flow__bar { display: none; }
.flow__done { display: grid; justify-items: start; gap: var(--space-4); padding-block: var(--space-2); }
.flow__done-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--emerald); color: var(--white); }
.flow__done-icon .ico { width: 28px; height: 28px; stroke-width: 2.5; }
.flow__done h2 { font-size: clamp(28px, 2.8vw, 36px); line-height: 1.15; font-weight: var(--w-bold); letter-spacing: -0.025em; }
.flow__done h2:focus { outline: none; box-shadow: none; }
.flow__done-lead { max-width: 40ch; font-size: var(--text-lg); line-height: var(--lh-lg); }
.flow__done-recap { padding: var(--space-3) var(--space-4); border-radius: var(--r-card); background: var(--fill); font-size: var(--text-sm); line-height: var(--lh-sm); font-weight: var(--w-semibold); }
/* Sending to the CRM: a failure keeps the answers and says what to do; success shows the search's reference. */
.flow__error { flex-basis: 100%; padding: var(--space-3) var(--space-4); border-radius: var(--r-card); background: var(--fill); font-size: var(--text-sm); line-height: var(--lh-sm); font-weight: var(--w-semibold); }
.flow__error[hidden] { display: none; }
.flow__error a { text-decoration: underline; text-underline-offset: 2px; }
.flow__done-ref { font-size: var(--text-sm); line-height: var(--lh-sm); }
.flow__done-ref strong { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
/* Hidden from people and screen readers; only bots fill it. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.flow__done h3 { margin-top: var(--space-2); font-size: var(--text-md); font-weight: var(--w-bold); }
.flow__next { display: grid; gap: var(--space-3); }
.flow__next li { display: grid; grid-template-columns: 28px 1fr; gap: var(--space-3); align-items: start; font-size: var(--text-md); line-height: var(--lh-md); }
.flow__next span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--black); font-size: var(--text-xs); font-weight: var(--w-bold); }
.flow__done-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-6); margin-top: var(--space-2); }

@media (max-width: 560px) {
  /* Phones: the questions are the page. No panel, the line under the intro is enough. */
  .flow { padding: var(--space-5) 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
  .flow__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow__tiles--makes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow__tiles--budget { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile span { min-height: 56px; font-size: var(--text-sm); }
  .flow__foot .btn--primary { flex: 1 1 100%; }
  .flow__foot .text-link { margin-inline: auto; }
  .flow__summary > div { grid-template-columns: 84px minmax(0, 1fr) auto; }
}

/* Why buy from us (11 Nov 2026): six reasons as tiles in mixed sizes. Two columns that stagger: a tall tile over a
   short one on the left, a short one over a tall one on the right, then two small ones. Tint, soft grey and
   outlined white alternate so no two neighbours match. One column on phones, in reading order. */
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.why__tile { --pad: var(--space-10); position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); min-width: 0; padding: var(--pad); border-radius: var(--r-panel); overflow: hidden; background: var(--soft); }
.why__tile h3 { font-size: var(--text-xl); line-height: var(--lh-xl); font-weight: var(--w-bold); letter-spacing: -0.02em; text-wrap: balance; }
.why__tile p { max-width: 38ch; font-size: var(--text-md); line-height: var(--lh-md); text-wrap: pretty; }
.why__tile .btn, .why__tile .text-link { margin-top: var(--space-3); }
.why__tile--tall h3 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -0.03em; }
.why__tile--checks { grid-area: 1 / 1 / 3 / 2; background: var(--tint); }
.why__tile--warranty { grid-area: 1 / 2 / 2 / 3; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.why__tile--partex { grid-area: 2 / 2 / 4 / 3; padding-bottom: 0; }
.why__tile--viewings { grid-area: 3 / 1 / 4 / 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-6); padding-left: 0; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.why__tile--pressure { background: var(--tint); }
.why__text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); min-width: 0; }
.why__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--space-2); border-radius: 50%; background: var(--tint); color: var(--emerald); }
.why__icon .ico { width: 26px; height: 26px; }
.why__tile--delivery .why__icon, .why__tile--pressure .why__icon { background: var(--white); }
/* The checks tile's picture is its number. */
.why__five { align-self: flex-end; margin-top: auto; padding-top: var(--space-4); font-size: clamp(180px, 19vw, 264px); line-height: 0.8; font-weight: var(--w-bold); letter-spacing: -0.06em; color: var(--emerald); }
.why__car { display: block; max-width: none; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 60%; }
.why__tile--partex .why__car { width: calc(100% + var(--pad) * 2); margin: auto calc(var(--pad) * -1) 0; }
/* The car drives in from the tile's left edge: its front two thirds show. */
.why__tile--viewings .why__car { order: -1; width: 180%; margin-left: -80%; aspect-ratio: 3 / 2; }
@media (max-width: 1023px) { .why__tile { --pad: var(--space-8); } .why__tile--viewings { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); padding-left: var(--pad); padding-bottom: 0; } .why__tile--viewings .why__car { order: 0; width: calc(100% + var(--pad) * 2); margin: 0 calc(var(--pad) * -1); aspect-ratio: 2 / 1; } }
@media (max-width: 760px) {
  .why { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .why__tile { --pad: var(--space-6); grid-area: auto; padding-block: var(--space-8); }
  .why__tile--partex, .why__tile--viewings { padding-bottom: 0; }
  .why__five { padding-top: 0; font-size: 128px; }
}

/* A tint panel with a short message on the left and one action on the right: a side route, quieter than the
   sourcing panel ("Not buying a car right now? Sell your car"). */
.aside-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6) var(--space-10); padding: var(--space-10) var(--space-12); border-radius: var(--r-panel); background: var(--tint); }
.aside-panel > div { display: grid; gap: var(--space-2); }
.aside-panel p { max-width: 52ch; font-size: var(--text-md); line-height: var(--lh-md); }
@media (max-width: 640px) { .aside-panel { padding: var(--space-8) var(--space-6); } .aside-panel .btn { width: 100%; } }

/* ---------- Compact call-to-action band ---------- */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6); padding-block: var(--space-12); }
.cta-band > div { display: grid; gap: var(--space-2); }
.cta-band p { font-size: var(--text-md); line-height: var(--lh-md); }

/* ---------- Phones: the car page reflows ---------- */
@media (max-width: 960px) {
  .vdp { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "aside" "details"; gap: var(--space-8); }
  .vdp__aside { position: static; }
  .buybox { padding: 0; border: 0; }
}
@media (max-width: 760px) {
  .crumbs { display: none; }
  .vdp__gallery { margin-inline: calc(var(--gutter) * -1); }
  .gallery__main { border-radius: 0; }
  .gallery__thumbs { display: none; }
}

/* Sticky price-and-book bar on phones, shown once the buy box is out of view. */
.buybar { display: none; }
@media (max-width: 960px) {
  .buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); background: var(--white); box-shadow: 0 -1px 0 var(--line), 0 -8px 24px -12px rgba(0, 0, 0, 0.18); transform: translateY(110%); visibility: hidden; transition: transform var(--dur-slow) var(--ease-out), visibility var(--dur-slow); }
  .buybar.is-shown { transform: none; visibility: visible; }
  .buybar__price { display: grid; margin-right: auto; min-width: 0; }
  .buybar__price small { overflow: hidden; font-size: var(--text-xs); line-height: var(--lh-xs); white-space: nowrap; text-overflow: ellipsis; }
  .buybar__price b { font-size: var(--text-lg); line-height: var(--lh-lg); font-weight: var(--w-bold); font-variant-numeric: tabular-nums; }
  body.has-buybar .footer { padding-bottom: 88px; }
}

/* =====================================================================
   Sheet: a native <dialog>. Centred card on desktop, bottom sheet on phones.
   ===================================================================== */
.sheet { width: min(560px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: var(--r-panel); background: var(--white); color: var(--black); box-shadow: var(--shadow-menu); overflow: hidden; }
.sheet::backdrop { background: var(--dim); }
.sheet[open] { display: flex; flex-direction: column; animation: sheet-in 260ms var(--ease-out); }
.sheet[open]::backdrop { animation: fade-in 200ms var(--ease-out); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes fade-in { from { opacity: 0; } }
.sheet__head { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-4) var(--space-4) var(--space-6); border-bottom: 1px solid var(--line); }
.sheet__head h2 { font-size: var(--text-lg); line-height: var(--lh-lg); font-weight: var(--w-bold); }
.sheet__head h2:focus { outline: none; box-shadow: none; }
.sheet__head .icon-btn { margin-left: auto; }
.sheet__head .sheet__back { margin: 0 calc(var(--space-2) * -1) 0 calc(var(--space-2) * -1); }
.sheet__step { display: grid; gap: var(--space-6); }
.sheet__when { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--line); }
.sheet__when span { display: grid; }
.sheet__when small { font-size: var(--text-xs); line-height: var(--lh-xs); }
.sheet__when b { font-size: var(--text-md); line-height: var(--lh-md); }
.sheet__when .text-link { min-height: 36px; }
.sheet__adds { display: flex; flex-wrap: wrap; gap: 0 var(--space-6); margin-top: calc(var(--space-2) * -1); }
.sheet__adds .text-link { text-decoration: none; }
.sheet__adds .text-link:hover { text-decoration: underline; }
/* The form lays its body and footer straight into the sheet, so only the body scrolls. */
.sheet__form { display: contents; }
.sheet__form[hidden] { display: none; }
.sheet__body { flex: 1; min-height: 0; display: grid; align-content: start; gap: var(--space-6); padding: var(--space-6); overflow-y: auto; overscroll-behavior: contain; }
.sheet__foot { display: grid; gap: var(--space-3); padding: var(--space-4) var(--space-6) calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.sheet__foot .btn { height: 52px; font-size: var(--text-md); }
.sheet__foot p { font-size: var(--text-xs); line-height: var(--lh-xs); text-align: center; }
.sheet__car { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border-radius: var(--r-card); background: var(--fill); }
.sheet__car img { width: 72px; height: 48px; border-radius: var(--r-chip); object-fit: cover; }
.sheet__car span { display: grid; font-size: var(--text-xs); line-height: var(--lh-xs); }
.sheet__car b { font-size: var(--text-sm); line-height: var(--lh-sm); }
.sheet fieldset { display: grid; gap: var(--space-3); min-width: 0; margin: 0; padding: 0; border: 0; }
.sheet legend { padding: 0; margin-bottom: var(--space-3); font-size: var(--text-sm); line-height: var(--lh-sm); font-weight: var(--w-bold); }
.sheet textarea.input { height: auto; min-height: 96px; padding-block: var(--space-3); resize: vertical; }
.sheet__done { display: grid; justify-items: center; gap: var(--space-3); padding: var(--space-12) var(--space-6); text-align: center; }
.sheet__done[hidden] { display: none; }
.sheet__done-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: var(--space-2); border-radius: 50%; background: var(--emerald); color: var(--white); }
.sheet__done-icon .ico { width: 32px; height: 32px; stroke-width: 2.5; }
.sheet__done h2 { font-size: var(--text-xl); line-height: var(--lh-xl); font-weight: var(--w-bold); }
.sheet__done h2:focus { outline: none; box-shadow: none; }
.sheet__done p { max-width: 38ch; font-size: var(--text-md); line-height: var(--lh-md); }
.sheet__done .btn { margin-top: var(--space-4); min-width: 160px; }
@media (max-width: 640px) {
  .sheet { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: var(--r-panel) var(--r-panel) 0 0; }
  .sheet[open] { animation: sheet-up 420ms cubic-bezier(0.32, 0.72, 0, 1); }
  @keyframes sheet-up { from { transform: translateY(100%); } }
}

/* Cars picked for a search: black chips (white on a black section), each with its own remove button. */
.picks { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.picks[hidden] { display: none; }
.pick { display: inline-flex; align-items: center; gap: var(--space-1); height: 40px; padding: 0 var(--space-1) 0 var(--space-4); border-radius: var(--r-pill); background: var(--black); color: var(--white); font-size: var(--text-sm); font-weight: var(--w-semibold); white-space: nowrap; animation: pick-in var(--dur) var(--ease-out); }
.pick button { position: relative; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; transition: background-color var(--dur-fast) var(--ease-out); }
.pick button::before { content: ""; position: absolute; inset: -6px; }
.pick button:hover { background: rgba(255, 255, 255, 0.18); }
.pick .ico { width: 16px; height: 16px; }
.picks--dark .pick { background: var(--white); color: var(--black); }
.picks--dark .pick button:hover { background: var(--fill-hover); }
@keyframes pick-in { from { opacity: 0; transform: scale(0.95); } }
/* Make and model side by side, inside a form. */
.picker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: var(--space-2); }
.picker--two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3); }
/* Text boxes with suggestions: Chrome's arrow stays hidden, the list still opens as you type or click. */
:is(.picker, .how-block__start) input::-webkit-calendar-picker-indicator { display: none !important; }
.choices--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choices--grid .choice span { min-width: 0; }
.sheet__done .flow__next { width: 100%; max-width: 400px; margin-block: var(--space-2); text-align: left; }
/* A popup with steps: the count under the title, a thin bar under the head, one question per screen. */
.sheet__title { display: grid; }
.sheet__title p { font-size: var(--text-xs); line-height: var(--lh-xs); font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; }
.sheet--steps .sheet__head { border-bottom: 0; }
.sheet__bar { flex: none; height: 3px; border-radius: 0; }
.sheet .flow__q { font-size: var(--text-xl); line-height: var(--lh-xl); }
.sheet .flow__help { font-size: var(--text-sm); line-height: var(--lh-sm); }
.sheet .flow__tiles--budget .tile span { min-height: 68px; }
.sheet__foot .text-link { justify-self: center; min-height: 36px; font-size: var(--text-sm); }
.sheet__foot p[hidden] { display: none; }

/* Choice chips: real radio buttons, styled as tiles. */
.choices { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.choices--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--space-6) * -1); padding: 3px var(--space-6); }
.choices--scroll::-webkit-scrollbar { display: none; }
.choices--fill > .choice { flex: 1; }
.choice { position: relative; flex: none; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span { display: grid; place-items: center; align-content: center; gap: 2px; min-width: 76px; min-height: var(--control-h); padding: var(--space-2) var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--r-input); background: var(--white); font-size: var(--text-sm); line-height: 1.2; font-weight: var(--w-semibold); text-align: center; white-space: nowrap; transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.choice small { font-size: var(--text-xs); font-weight: var(--w-medium); }
.choice:hover span { border-color: var(--black); }
.choice input:checked + span { background: var(--black); border-color: var(--black); color: var(--white); }
.choice input:focus-visible + span { box-shadow: var(--focus-ring); }
