/*
 * megdon — « la cour ». Direction set on November 10, 2026, replacing the white and royal blue of the first pages.
 * The world is the used-car lot: asphalt, painted lane lines, and the fluorescent sticker where the dealer writes the
 * price on the windshield. Palette: asphalt ink, concrete white and one loud colour, sticker yellow, used only as a fill
 * (prices, the main button, highlights) with ink text on it, never as text on white.
 * Type: Archivo with its width axis, expanded and heavy for headings like a dealer's sign, normal width for text, and
 * JetBrains Mono for figures (km, counts, labels), like an odometer.
 * Motifs: every price is a tilted windshield sticker; counts are odometer wheels; dashed lane lines between sections.
 * Signature: two lanes of real listings drive past in the hero, in opposite directions.
 * No build step. Fonts are self-hosted in /fonts (SIL OFL, licences beside them).
 */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-var.woff2?v=1") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-var.woff2?v=1") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --asphalt: #101216; --asphalt-2: #191c22; --asphalt-3: #262a32;
  --paper: #f3f2ee; --paper-2: #e8e6df; --surface: #ffffff;
  --ink: #101216; --ink-2: #3b4049; --muted: #646973;
  --line: rgb(16 18 22 / .12); --line-2: rgb(16 18 22 / .26);
  --sticker: #ffd60a; --sticker-2: #f2c200; --on-sticker: #101216;
  --go: #23a55a; --warn: #9a4a00;
  --display: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, "Courier New", monospace;
  --radius: 14px; --radius-s: 10px;
  --header-h: 64px;
  --shadow: 0 1px 0 rgb(16 18 22 / .04), 0 22px 44px -28px rgb(16 18 22 / .5);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}
/* Re-points the tokens: any block can go dark without its own colours. */
.tone-asphalt {
  --ink: #f3f2ee; --ink-2: #c8cad0; --muted: #9a9ea8; --surface: var(--asphalt-2);
  --line: rgb(243 242 238 / .14); --line-2: rgb(243 242 238 / .3);
  background: var(--asphalt); color: var(--ink);
}
.tone-sticker {
  --ink: #101216; --ink-2: #2e2a18; --muted: #5a4f1e; --line: rgb(16 18 22 / .16); --line-2: rgb(16 18 22 / .34);
  background: var(--sticker); color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink); overflow-x: clip;
  font: 400 16px/1.55 var(--display); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--sticker-2); text-decoration-thickness: 3px; }
h1, h2, h3 { font-family: var(--display); font-stretch: 112%; letter-spacing: -.02em; line-height: 1.05; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); font-weight: 820; margin: 0 0 .4em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); font-weight: 800; margin: 1.6em 0 .7em; }
p { margin: 0 0 .7em; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.page { padding-top: 24px; padding-bottom: 64px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--sticker); border-radius: 4px; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round; }

/* ---------- The sticker: every price ---------- */
.sticker, .card .price, .buybox .price {
  display: inline-block; margin: 0; padding: .34em .52em .3em; border-radius: 5px;
  background: var(--sticker); color: var(--on-sticker);
  font: 820 1.25rem/1 var(--display); font-stretch: 108%; letter-spacing: -.01em; white-space: nowrap;
  font-variant-numeric: tabular-nums; rotate: -2deg;
  box-shadow: 0 1px 0 rgb(16 18 22 / .12), 0 6px 14px -8px rgb(16 18 22 / .6);
}
.is-ask .price { background: var(--paper-2); color: var(--ink-2); font-size: .9rem; font-weight: 700; rotate: 0deg; box-shadow: none; }

/* ---------- Buttons: keys that lift ---------- */
button, .btn {
  --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-edge: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 20px; border: 2px solid var(--btn-edge); border-radius: var(--radius-s);
  background: var(--btn-bg); color: var(--btn-fg); font: 750 1rem/1.1 var(--display); font-stretch: 104%;
  text-decoration: none; cursor: pointer; box-shadow: 0 0 0 var(--btn-edge);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
}
button:hover, .btn:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--btn-edge); text-decoration: none; }
button:active, .btn:active { transform: none; box-shadow: 0 0 0 var(--btn-edge); }
.primary, .btn-sticker { --btn-bg: var(--sticker); --btn-fg: var(--on-sticker); --btn-edge: var(--on-sticker); }
.tone-asphalt .btn-sticker:hover { box-shadow: 4px 4px 0 #f3f2ee; }
.wide { width: 100%; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font: 880 1.6rem/1 var(--display); font-stretch: 125%; letter-spacing: -.045em; }
.logo:hover { text-decoration: none; }
.logo-tag { width: 15px; height: 21px; border-radius: 3px 3px 4px 4px; rotate: -14deg; flex: none;
  background: radial-gradient(circle at 50% 5px, var(--asphalt) 0 2.2px, transparent 2.6px), var(--sticker); }
.top-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.top-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 0; }
.top-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sticker); text-decoration-thickness: 3px; }
.top-nav .btn { color: var(--on-sticker); padding: 8px 16px; min-height: 40px; font-size: .92rem; }
.top-nav .btn:hover { text-decoration: none; color: var(--on-sticker); box-shadow: 4px 4px 0 #f3f2ee; }
@media (max-width: 760px) { .top-nav .opt { display: none; } .logo { font-size: 1.4rem; } }

/* ---------- Footer ---------- */
.foot { position: relative; overflow: hidden; padding: 0; }
.foot-grid { margin-top: 56px; }
.foot-grid { display: grid; gap: 32px 56px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.foot p { color: var(--ink-2); max-width: 60ch; }
.foot strong { color: var(--ink); }
.foot nav ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.foot nav li { padding: 4px 0; break-inside: avoid; }
.foot nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.foot nav a:hover { text-decoration: underline; text-decoration-color: var(--sticker); text-decoration-thickness: 3px; }
.foot-label { font: 500 .74rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
/* Scoped as .foot .foot-mark, or « .foot p » would win and paint it in text colour. */
.foot .foot-mark { max-width: none; margin: 48px 0 -.2em; padding: 0 clamp(8px, 2vw, 24px); white-space: nowrap; user-select: none;
  font: 900 clamp(4.5rem, 19.5vw, 19rem)/.8 var(--display); font-stretch: 125%; letter-spacing: -.06em;
  color: var(--asphalt-3); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* Lane line: the dashed road marking that divides sections. */
.road { height: 6px; background: repeating-linear-gradient(90deg, var(--sticker) 0 48px, transparent 48px 96px); }

/* ---------- Forms ---------- */
label { display: flex; flex-direction: column; gap: 5px; font-size: .82rem; font-weight: 650; color: var(--muted); }
input, select {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius-s); min-height: 46px; padding: 9px 12px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
input:hover, select:hover { border-color: var(--ink-2); }
input:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgb(255 214 10 / .55); }
input::placeholder { color: #8b8f98; }
select { appearance: none; padding-right: 36px; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23101216' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; }
select:disabled { background-color: var(--paper); color: var(--muted); cursor: not-allowed; }

/* ================= Home ================= */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 72px) 0 0; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgb(243 242 238 / .07) 1px, transparent 1.2px); background-size: 22px 22px; }
.hero > * { position: relative; }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0 0 clamp(18px, 2.4vw, 28px);
  font: 500 .76rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.kicker b { color: var(--ink); font-weight: 600; }
.live { display: inline-flex; align-items: center; gap: 9px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--go); animation: live 2.4s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgb(35 165 90 / .6); } 70%, 100% { box-shadow: 0 0 0 9px rgb(35 165 90 / 0); } }

.hero-title {
  isolation: isolate; margin: 0 0 clamp(18px, 2.4vw, 28px); color: var(--ink);
  font-size: max(2.5rem, min(8.6vw, 13.6vh, 8.2rem)); font-weight: 860; font-stretch: 114%;
  line-height: .9; letter-spacing: -.035em;
}
.hero-title .line { display: block; white-space: nowrap; overflow: clip; padding-block: .06em .1em; margin-block: -.06em -.1em; }
.hero-title.is-settled .line { overflow: visible; }
.hero-title .line-in { display: inline-block; animation: rise 1.1s var(--ease) both; }
.hero-title .line:nth-child(2) .line-in { animation-delay: .08s; }
.hero-title .line:nth-child(3) .line-in { animation-delay: .16s; }
.hero-title .line:nth-child(2) { padding-left: .8em; }
@keyframes rise { from { transform: translateY(108%) rotate(3deg); transform-origin: left top; } }
/* Phones: the widest line, « Les cours à autos », is about 10 em; the second line's indent shrinks. */
@media (max-width: 600px) { .hero-title { font-size: 9vw; } .hero-title .line:nth-child(2) { padding-left: .4em; } }
.hl { position: relative; z-index: 0; background: none; color: var(--on-sticker); padding: 0 .04em; }
.hl::before { content: ""; position: absolute; z-index: -1; inset: .16em -.1em .03em -.12em;
  border-radius: .06em .14em .07em .12em / .12em .2em .1em .16em; background: var(--sticker);
  transform: scaleX(0) rotate(-1.4deg); transform-origin: left center; animation: swipe .8s var(--ease-in-out) .9s forwards; }
@keyframes swipe { to { transform: scaleX(1) rotate(-1.4deg); } }
.hero-lead { max-width: 60ch; font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); color: var(--ink-2); margin-bottom: clamp(22px, 3vw, 34px); }
.hero-lead b { color: var(--ink); }

/* The finder: one bar with the four questions buyers ask first. */
.finder {
  --ink: #101216; --ink-2: #3b4049; --muted: #646973; --line: rgb(16 18 22 / .12); --line-2: rgb(16 18 22 / .26); --surface: #fff;
  display: grid; grid-template-columns: minmax(0, 2.1fr) repeat(3, minmax(0, 1fr)) auto; align-items: stretch;
  padding: 8px; border-radius: 18px; background: #fff; color: var(--ink);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .8), 0 0 0 1px rgb(255 255 255 / .08);
}
.finder .field { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 16px; min-width: 0;
  border-radius: 12px; transition: background-color .2s; }
.finder .field + .field { border-left: 1px solid var(--line); }
.finder .field:focus-within { background: #fff7cc; }
.finder label { font: 600 .68rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.finder input, .finder select { border: 0; padding: 4px 0; min-height: 34px; font-size: 1.08rem; font-weight: 600;
  background-color: transparent; box-shadow: none; border-radius: 0; }
.finder select { background-position: right 2px center; padding-right: 22px; }
.finder input:focus, .finder select:focus { box-shadow: none; }
.finder button { min-height: 64px; padding: 0 28px; font-size: 1.08rem; border-radius: 12px; margin-left: 8px; }
.finder button:hover { box-shadow: 4px 4px 0 var(--asphalt); }
.popular { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0 0; font-size: .9rem; color: var(--muted); }
.popular a { display: inline-flex; min-height: 34px; align-items: center; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .88rem;
  transition: background-color .2s, color .2s, border-color .2s; }
.popular a:hover { background: var(--sticker); border-color: var(--sticker); color: var(--on-sticker); }
@media (max-width: 1000px) {
  .finder { grid-template-columns: 1fr 1fr; gap: 0; }
  .finder .f-q { grid-column: 1 / -1; }
  .finder .field + .field { border-left: 0; }
  .finder .field { border-bottom: 1px solid var(--line); border-radius: 0; }
  .finder .field:nth-child(3) { border-left: 1px solid var(--line); }
  .finder .field:nth-child(4) { grid-column: 1 / -1; }
  .finder button { grid-column: 1 / -1; margin: 8px 0 0; }
}
@media (max-width: 600px) { .finder .field { padding: 8px 12px; } .finder input, .finder select { font-size: 1rem; } }

/* Lanes: real listings driving past, two directions, a dashed line between. */
.lanes { padding: clamp(36px, 5vw, 64px) 0 clamp(36px, 5vw, 56px); }
.lane { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.lane::-webkit-scrollbar { display: none; }
.lane.is-running { overflow: hidden; }
.lane-track { display: flex; width: max-content; }
.lane-group { display: flex; gap: 16px; margin: 0; padding: 0 16px 0 0; list-style: none; }
.lane.is-running .lane-track { animation: drive var(--dur, 90s) linear infinite; }
.lane.is-reverse.is-running .lane-track { animation-direction: reverse; }
.lanes:hover .lane-track, .lanes:focus-within .lane-track, .is-offscreen .lane-track { animation-play-state: paused; }
@keyframes drive { to { transform: translateX(-50%); } }
.lane-line { height: 4px; margin: 18px 0; background: repeating-linear-gradient(90deg, rgb(243 242 238 / .42) 0 44px, transparent 44px 88px); }
.shot { position: relative; display: block; width: clamp(240px, 21vw, 300px); aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 12px; background: var(--asphalt-3); color: #fff; text-decoration: none; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale .7s var(--ease); }
.shot:hover img, .shot:focus-visible img { scale: 1.06; }
.shot::after { content: ""; position: absolute; inset: 42% 0 0; background: linear-gradient(transparent, rgb(6 7 9 / .85)); pointer-events: none; }
.shot .sticker { position: absolute; z-index: 1; top: 12px; left: 12px; font-size: 1.05rem; }
.shot-name { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; }
.shot-name b { display: block; font: 760 1.02rem/1.15 var(--display); font-stretch: 106%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot-name small { display: block; font: 500 .74rem/1.4 var(--mono); color: #d3d5da; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot:hover { text-decoration: none; }
.shot:focus-visible { outline-offset: -2px; }

/* The count, on odometer wheels. */
.odo-band { padding: clamp(52px, 7vw, 96px) 0; border-bottom: 1px solid var(--line); }
.odo-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px 64px; align-items: end; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 18px;
  font: 500 .76rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.eyebrow::after { content: ""; flex: 1; min-width: 40px; height: 1px; background: var(--line-2); }
.odo { display: flex; align-items: center; gap: .05em; margin: 0; font: 600 clamp(3.2rem, 1.4rem + 8vw, 8.6rem)/1 var(--mono); }
.wheel { position: relative; display: block; width: .74em; height: 1.1em; overflow: hidden; border-radius: .09em;
  background: var(--asphalt); color: #f3f2ee;
  box-shadow: inset 0 .1em .14em rgb(0 0 0 / .6), inset 0 -.1em .14em rgb(0 0 0 / .6); }
.wheel::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgb(0 0 0 / .45), transparent 32%, transparent 68%, rgb(0 0 0 / .45)); }
.wheel:last-child { background: var(--sticker); color: var(--on-sticker); }
.reel { display: flex; flex-direction: column; align-items: center; transform: translateY(calc(var(--n) * -1.1em));
  transition: transform 2.2s var(--ease); }
.reel span { display: block; height: 1.1em; line-height: 1.1em; }
.odo .sep { width: .22em; }
.js .odo:not(.is-in) .reel { transform: none; }
.odo .wheel:nth-child(2) .reel { transition-delay: .08s; } .odo .wheel:nth-child(3) .reel { transition-delay: .16s; }
.odo .wheel:nth-child(4) .reel { transition-delay: .24s; } .odo .wheel:nth-child(5) .reel { transition-delay: .32s; }
.odo .wheel:nth-child(6) .reel { transition-delay: .4s; } .odo .wheel:nth-child(7) .reel { transition-delay: .48s; }
.n0 { --n: 0; } .n1 { --n: 1; } .n2 { --n: 2; } .n3 { --n: 3; } .n4 { --n: 4; }
.n5 { --n: 5; } .n6 { --n: 6; } .n7 { --n: 7; } .n8 { --n: 8; } .n9 { --n: 9; }
.odo-cap { margin: 18px 0 0; font: 700 clamp(1.15rem, 1rem + .6vw, 1.5rem)/1.25 var(--display); font-stretch: 106%; }
.odo-facts { display: grid; gap: 0; margin: 0; border-top: 2px solid var(--ink); }
.odo-facts div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.odo-facts dt { font: 500 .74rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.odo-facts dd { margin: 0; font-weight: 600; }
@media (max-width: 900px) { .odo-grid { grid-template-columns: 1fr; } }

/* Sections */
.sec { padding: clamp(56px, 8vw, 112px) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 14px 48px; align-items: end; margin-bottom: clamp(24px, 3.4vw, 44px); }
.sec-head .eyebrow { grid-column: 1 / -1; margin: 0; }
.sec-title { margin: 0; font-size: clamp(2.3rem, 1.2rem + 4.4vw, 5.2rem); font-weight: 860; font-stretch: 116%; line-height: .9; letter-spacing: -.035em; }
.sec-lead { margin: 0; color: var(--ink-2); }
.sec-lead a { font-weight: 650; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; } }

/* By body type: a list, with the photo of one of its cars trailing the cursor. */
.index { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.index a { position: relative; isolation: isolate; display: grid; align-items: center; gap: 12px 28px;
  grid-template-columns: 3rem minmax(0, 1fr) auto 112px 2.4rem;
  padding: clamp(14px, 1.8vw, 22px) clamp(4px, 1vw, 14px); border-bottom: 1px solid var(--line-2);
  color: var(--ink); text-decoration: none; }
.index a::before { content: ""; position: absolute; inset: -1px 0 0; z-index: -1; background: var(--sticker);
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.index a:hover::before, .index a:focus-visible::before { transform: scaleY(1); transform-origin: top; }
.index a:hover, .index a:focus-visible { color: var(--on-sticker); }
.index a:focus-visible { outline-offset: -3px; box-shadow: none; }
.index-num { font: 500 .8rem/1 var(--mono); color: var(--muted); }
.index a:hover .index-num { color: var(--on-sticker); }
.index-name { font: 850 clamp(1.8rem, 1rem + 3.2vw, 3.8rem)/1 var(--display); font-stretch: 118%; letter-spacing: -.03em;
  transition: translate .6s var(--ease); }
.index a:hover .index-name { translate: 14px 0; }
.index-n { font: 500 .95rem/1 var(--mono); white-space: nowrap; }
.index-thumb { width: 112px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--paper-2); }
.index-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.index-go { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1.5px solid currentColor;
  transition: rotate .5s var(--ease); }
.index a:hover .index-go { rotate: -45deg; }
@media (hover: hover) and (pointer: fine) {
  .js .index a { grid-template-columns: 3rem minmax(0, 1fr) auto 2.4rem; }
  .js .index-thumb { display: none; }
}
@media (max-width: 700px) {
  .index a, .js .index a { grid-template-columns: minmax(0, 1fr) 96px; gap: 4px 16px; }
  .index-num, .index-go { display: none; }
  .index-n { grid-row: 2; font-size: .82rem; color: var(--muted); }
  .index-thumb { grid-row: 1 / 3; grid-column: 2; width: 96px; }
}
.index-preview { position: fixed; left: 0; top: 0; z-index: 40; width: clamp(260px, 22vw, 340px); aspect-ratio: 4 / 3;
  pointer-events: none; opacity: 0; scale: .6; transition: opacity .3s ease, scale .5s var(--ease);
  filter: drop-shadow(8px 8px 0 var(--ink)); }
.index-preview.is-on { opacity: 1; scale: 1; }
.index-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 14px;
  border: 2px solid var(--ink); background: var(--asphalt-3); clip-path: inset(100% 0 0 0 round 14px); transition: clip-path .5s var(--ease); }
.index-preview img.is-active { clip-path: inset(0 0 0 0 round 14px); }

/* By budget: four tickets on sticker yellow. */
.budgets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.budgets a { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 190px; height: 100%;
  padding: 22px 22px 20px; border: 2px solid var(--ink); border-radius: var(--radius);
  background: var(--asphalt); color: #f3f2ee; text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.budgets li:nth-child(odd) a { rotate: -.6deg; } .budgets li:nth-child(even) a { rotate: .5deg; }
.budgets a:hover, .budgets a:focus-visible { transform: translate(-4px, -4px); box-shadow: 7px 7px 0 var(--ink); }
.budget-label { font: 850 clamp(1.8rem, 1.1rem + 2vw, 3rem)/1 var(--display); font-stretch: 112%; letter-spacing: -.03em; white-space: nowrap; }
.budget-label small { display: block; margin-bottom: 8px; font: 600 .8rem/1.2 var(--mono); letter-spacing: 0; color: #c8cad0; white-space: normal; }
.budget-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.budget-n { font: 500 .86rem/1.2 var(--mono); color: var(--sticker); }
@media (max-width: 960px) { .budgets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .budgets { grid-template-columns: 1fr; } .budgets a { min-height: 120px; } }

/* By make: a sign board of names. */
.makes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 2px; }
.makes li { display: inline-flex; align-items: baseline; }
.makes li + li::before { content: "/"; margin: 0 .3em 0 .1em; color: var(--line-2); font: 300 1.6rem/1 var(--display); }
.makes a { display: inline-flex; align-items: flex-start; gap: 5px; padding: 2px 8px; border-radius: 8px; text-decoration: none;
  color: var(--ink); font: 820 1.3rem/1.15 var(--display); font-stretch: 112%; letter-spacing: -.02em; transition: background-color .2s; }
.makes .t1 a { font-size: clamp(2rem, 1.1rem + 3.2vw, 4rem); font-weight: 880; letter-spacing: -.035em; }
.makes .t2 a { font-size: clamp(1.5rem, 1rem + 1.7vw, 2.5rem); }
.makes sup { font: 500 .72rem/1 var(--mono); color: var(--muted); letter-spacing: 0; padding-top: .45em; }
.makes a:hover, .makes a:focus-visible { background: var(--sticker); color: var(--on-sticker); }
.makes a:hover sup { color: var(--on-sticker); }
.more-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-weight: 700; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.steps li { padding: 26px 28px 6px 0; }
.steps li + li { border-left: 1px solid var(--line-2); padding-left: 28px; }
.step-n { display: block; font: 500 .8rem/1 var(--mono); color: var(--muted); margin-bottom: 26px; }
.step-title { margin: 0 0 10px; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 850; font-stretch: 114%; }
.steps p { color: var(--ink-2); max-width: 38ch; }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
  .steps li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-2); }
  .steps li { padding-right: 0; }
  .step-n { margin-bottom: 12px; }
}

/* Scroll reveal (only with JS, so content never hides without it). */
.js .reveal { opacity: 0; translate: 0 32px; }
.js .reveal.is-in { opacity: 1; translate: none; }
.reveal { transition: opacity .9s var(--ease), translate .9s var(--ease); }

/* ================= Cards: a row in results, a tile in grids ================= */
.rows { display: grid; gap: 14px; }
.card { position: relative; display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); text-decoration: none;
  transition: border-color .2s, box-shadow .35s var(--ease), translate .35s var(--ease); }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); translate: 0 -2px; text-decoration: none; }
.card .ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.card .ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale .7s var(--ease); }
.card:hover .ph img { scale: 1.04; }
.nophoto { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center;
  font: 500 .78rem/1.3 var(--mono); color: var(--muted);
  background: repeating-linear-gradient(-45deg, var(--paper-2) 0 12px, #e2e0d8 12px 24px); }
.card .info { padding: 14px 18px 4px; min-width: 0; }
.card h3 { margin: 0; font-size: 1.14rem; font-weight: 780; font-stretch: 106%; letter-spacing: -.015em; line-height: 1.2; }
.card h3 .yr { color: var(--muted); font-weight: 650; }
.card .trim { margin: 3px 0 0; color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 12px 0; }
.facts li { padding: 3px 9px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); font: 500 .78rem/1.5 var(--mono); }
.card .seller { margin: 0 0 12px; color: var(--muted); font-size: .86rem; display: flex; gap: 6px; align-items: center; min-width: 0; }
.card .seller span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pricebox { padding: 4px 18px 16px; }
.tax { margin: 8px 0 0; color: var(--muted); font: 500 .72rem/1 var(--mono); }
@media (min-width: 720px) {
  .rows .card { grid-template-columns: 270px minmax(0, 1fr) auto; }
  .rows .card .ph { aspect-ratio: auto; min-height: 196px; }
  .rows .card .info { padding: 18px 20px; }
  .rows .pricebox { padding: 20px 22px; text-align: right; }
  .rows .card .price { font-size: 1.5rem; }
}
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid .card { grid-template-rows: auto 1fr; }
.grid .pricebox { position: absolute; top: 12px; left: 12px; padding: 0; }
.grid .tax { display: none; }

/* ================= Search ================= */
.search-head { padding: clamp(28px, 4vw, 44px) 0 clamp(22px, 3vw, 30px); border-bottom: 1px solid var(--line); }
.search-head .eyebrow { margin-bottom: 14px; }
.search-head h1 { margin: 0; font-size: clamp(1.9rem, 1.1rem + 3vw, 3.6rem); font-weight: 860; font-stretch: 116%; letter-spacing: -.035em; line-height: .95; }
.results { display: grid; gap: 24px; padding-top: 24px; }
@media (min-width: 980px) { .results { grid-template-columns: 300px minmax(0, 1fr); align-items: start; gap: 32px; } }
.filters { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
@media (min-width: 980px) { .filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; scrollbar-width: thin; } }
.filters summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; padding: 12px 18px;
  font: 800 1.05rem/1 var(--display); font-stretch: 110%; cursor: pointer; list-style: none; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid; border-bottom: 2px solid; rotate: 45deg; translate: 0 -3px; transition: rotate .3s var(--ease); }
.filters[open] summary::after { rotate: 225deg; translate: 0 3px; }
.filters summary .count { margin-left: auto; padding: 3px 9px; border-radius: 999px; background: var(--sticker); font: 600 .75rem/1.2 var(--mono); }
.filters form { padding: 0 18px 18px; }
.filters fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 14px 0 16px; display: grid; gap: 8px; min-width: 0; }
.filters legend { float: left; width: 100%; padding: 0 0 10px; font: 600 .7rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.filters .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters label { font-size: .78rem; }
.filters .apply { width: 100%; margin-top: 6px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { position: relative; display: inline-flex; flex-direction: row; cursor: pointer; font-size: inherit; color: inherit; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.pill span { display: inline-flex; align-items: baseline; gap: 6px; min-height: 36px; align-items: center; padding: 6px 12px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
  font: 600 .88rem/1.1 var(--display); color: var(--ink); transition: background-color .15s, border-color .15s; }
.pill small { font: 500 .7rem/1 var(--mono); color: var(--muted); }
.pill:hover span { border-color: var(--ink); }
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: #f3f2ee; }
.pill input:checked + span small { color: var(--sticker); }
.pill input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--sticker); }
.list-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.list-head p { margin: 0; color: var(--muted); font: 500 .8rem/1.3 var(--mono); }
.sort { display: flex; align-items: center; gap: 10px; }
.sort label { flex-direction: row; align-items: center; white-space: nowrap; font: 600 .7rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.sort select { width: auto; min-height: 42px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.chip { display: inline-flex; gap: 8px; align-items: center; min-height: 36px; padding: 4px 8px 4px 14px; border-radius: 999px;
  background: var(--ink); color: #f3f2ee; font-weight: 600; font-size: .88rem; text-decoration: none; transition: background-color .2s; }
.chip .x { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgb(255 255 255 / .16); font-size: .95rem; line-height: 1; }
.chip:hover { background: var(--ink-2); text-decoration: none; }
.chip:hover .x { background: var(--sticker); color: var(--on-sticker); }
.clear { font-size: .9rem; font-weight: 650; }
.notice, .empty { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--sticker); border-radius: var(--radius-s); padding: 14px 16px; }
.empty { padding: 28px 24px; }
.pages { display: flex; gap: 16px; justify-content: center; align-items: center; margin-top: 32px; font: 500 .85rem/1 var(--mono); }

/* ================= Car ================= */
.crumbs { margin-bottom: 14px; font: 500 .78rem/1.4 var(--mono); color: var(--muted); }
.crumbs a { color: var(--ink-2); }
.car-head h1 { margin: 0; font-size: clamp(2rem, 1.2rem + 3vw, 3.8rem); font-weight: 860; font-stretch: 116%; letter-spacing: -.035em; line-height: .95; }
.car-head .trim { margin: 10px 0 0; color: var(--muted); font-size: 1.05rem; }
.car { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 980px) { .car { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } }
.gallery { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; aspect-ratio: 4 / 3;
  background: var(--asphalt); border-radius: var(--radius); }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: start; }
.gallery .nophoto { position: static; flex: 1; background: var(--asphalt-2); color: #9a9ea8; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.thumbs button { padding: 0; width: 80px; height: 60px; min-height: 0; overflow: hidden; border: 2px solid transparent; border-radius: 8px; background: var(--paper-2); }
.thumbs button:hover { transform: none; box-shadow: none; border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .more { color: var(--muted); font: 500 .8rem/1 var(--mono); }
.buybox { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
@media (min-width: 980px) { .buybox { position: sticky; top: calc(var(--header-h) + 16px); } }
.buybox .price { font-size: 2.3rem; padding: .3em .45em .26em; }
.buybox .facts { margin: 18px 0; }
.buybox .btn.primary { margin: 2px 0 14px; min-height: 56px; font-size: 1.05rem; }
.checked { font-size: .88rem; margin-bottom: 2px; }
.source { color: var(--muted); font-size: .84rem; }
.warn { color: var(--warn); font-weight: 700; }
.seller-box { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 6px; }
.seller-box h2 { margin: .8em 0 .5em; font: 600 .7rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
address { font-style: normal; margin-bottom: 12px; }
.panel { margin-top: 24px; padding: 6px 22px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel h2 { margin-top: .8em; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 36px; margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.specs .full { grid-column: 1 / -1; }
.specs dt { color: var(--muted); font: 500 .76rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.specs dd { margin: 0; font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.gone { padding: 22px; border: 1px solid var(--line); border-left: 6px solid var(--sticker); border-radius: var(--radius); background: var(--surface); }
.report { margin-top: 32px; font-size: .9rem; }

/* ================= Motion off ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important;
    animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .live::before, .lane.is-running .lane-track { animation: none !important; }
  .hl::before { transform: rotate(-1.4deg); }
  .hero-title .line { overflow: visible; }
}
