:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #5f6b7d;
  --line: #e2e8f0;
  --brand: #1d4ed8;
  --brand-2: #0ea5e9;
  --accent: #16a34a;
  --accent-ink: #b45309;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.07);

  /* Coloured studio wall behind every car illustration. */
  --wall-a: #c9ddff;
  --wall-b: #e7efff;
  --wall-c: #f7faff;
  --wall-glow: rgba(255, 255, 255, 0.9);
  --wall-floor: rgba(29, 78, 216, 0.18);

  /* Car illustration tones. */
  --car-line: rgba(15, 23, 42, 0.42);
  --car-glass: #43536b;
  --car-glass-hi: rgba(255, 255, 255, 0.55);
  --car-tyre: #1f2937;
  --car-rim: #e2e8f0;
  --car-hub: #64748b;
  --car-well: rgba(15, 23, 42, 0.28);
  --car-shadow: rgba(30, 64, 175, 0.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif;
  background: radial-gradient(1200px 600px at 50% -200px, #e8efff 0%, var(--bg) 55%) no-repeat, var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ------------------------------- top bar ------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.logo span { color: var(--brand); }
.logo em {
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  margin-left: 4px;
}

.top-actions { display: flex; align-items: center; gap: 10px; }

.badge {
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  white-space: nowrap;
}

.lang-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  font-family: inherit;
}
.lang-btn:hover { border-color: var(--brand); color: var(--brand); }

/* -------------------------------- hero -------------------------------- */

.hero {
  padding: 40px 0 26px;
}

.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  background: linear-gradient(120deg, #0f172a 10%, #1d4ed8 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 560px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.02rem;
}

/* -------------------------------- cards -------------------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.controls { margin-bottom: 18px; }

.control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.field select,
.field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--ink);
  background: #fbfcfe;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.field select:focus,
.field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
  background: #fff;
}

.controls-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.meta { font-size: 0.82rem; color: var(--muted); }

.btn {
  border: 0;
  border-radius: 10px;
  padding: 11px 22px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(29, 78, 216, 0.3); }
.btn:active { transform: translateY(0); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.buying-assistance-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 18px;
  padding: 14px;
  border: 1px solid rgba(29, 78, 216, 0.18);
  border-radius: 12px;
  background: rgba(29, 78, 216, 0.05);
}

.buying-assistance-bar > div {
  display: grid;
  gap: 4px;
}

.buying-assistance-bar strong { font-size: 0.9rem; }
.buying-assistance-bar span { color: var(--muted); font-size: 0.78rem; }

.assistance-dealer-field {
  grid-column: 1 / -1;
}

.assistance-dealer-field > a {
  width: fit-content;
  color: var(--brand);
  font-size: 0.78rem;
}

.assistance-dealer-field .assistance-dealer-phone {
  font-weight: 600;
}

.assistance-dealer-field .assistance-dealer-browse {
  width: fit-content;
  text-align: left;
}

.assistance-dealer-field small,
.assistance-dealer-address,
.assistance-dealer-empty {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .buying-assistance-bar { align-items: stretch; flex-direction: column; }
}

.result-card h2 { font-size: 0.95rem; margin: 0; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand);
  background: rgba(29, 78, 216, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.breakdown {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.84rem;
  color: var(--muted);
}
.row strong { color: var(--ink); font-weight: 600; text-align: right; }
.row:last-child { border-bottom: 0; }

.big {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.sub { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

/* ------------------------------ compare ------------------------------- */

.compare-card { margin-bottom: 18px; }
.compare-card h2 { font-size: 1rem; margin: 0; }

.compare-controls { max-width: 320px; margin-bottom: 14px; }

.legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.legend span { display: flex; align-items: center; gap: 7px; }

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.dot-a { background: #1d4ed8; }
.dot-b { background: #16a34a; }

#chart { width: 100%; height: 300px; display: block; }

.result-line {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}

/* -------------------------------- why --------------------------------- */

.why { margin-bottom: 40px; }
.why h2 { font-size: 1rem; margin: 0 0 10px; }
.why ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ------------------------------- footer ------------------------------- */

footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 22px 0;
}
footer p { margin: 0; font-size: 0.8rem; color: var(--muted); line-height: 1.6; }
footer .fine { margin-top: 6px; font-size: 0.72rem; color: #64748b; }

/* ------------------------------ responsive ----------------------------- */

@media (max-width: 560px) {
  .hero { padding-top: 30px; }
  .badge { display: none; }
  .big { font-size: 1.35rem; }
  #chart { height: 240px; }
}

/* ==========================================================================
   React UI — hero, gallery, comparison
   ========================================================================== */

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: center;
}

.hero-grid-single { grid-template-columns: minmax(0, 1fr); }

.eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(29, 78, 216, 0.08);
  border: 1px solid rgba(29, 78, 216, 0.16);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.chip {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 10px;
}

.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.kpi-label {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.kpi-value {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 3px;
  color: var(--ink);
}

.hero-card {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(160deg, #e8efff, #f8fafc);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.hero-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
}

/* Flat car illustration on a coloured wall. */
.car-art {
  --car-paint: #2563eb;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(120% 72% at 50% 6%, var(--wall-glow), transparent 62%),
    radial-gradient(90% 46% at 50% 102%, var(--wall-floor), transparent 72%),
    linear-gradient(168deg, var(--wall-a), var(--wall-b) 55%, var(--wall-c));
}

.car-art svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Real photo wrapper. The gradient behind it is the vector fallback. */
.car-photo {
  position: relative;
}

.car-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

/* Manufacturer banners are often ultra-wide; show the whole car. */
.car-photo.official-photo img {
  object-fit: contain;
  object-position: center;
  padding: 0;
}

.img-note {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.62rem;
  font-weight: 600;
  color: #334155;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 3px 9px;
}

.hero-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--line);
}

.hero-caption strong {
  display: block;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.hero-caption > div > span {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 2px;
}

.hero-caption .pill { flex: none; }

/* ------------------------------- gallery -------------------------------- */

.gallery-card { margin-bottom: 18px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  min-width: 86px;
}

.search {
  flex: 1 1 240px;
  max-width: 340px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--ink);
  background: #fbfcfe;
  font-family: inherit;
  outline: none;
}

.search:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
  background: #fff;
}

.chip-btn {
  font-family: inherit;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
}

.chip-btn:hover {
  border-color: #cbd5e1;
  color: var(--ink);
}

.chip-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 6px 14px rgba(29, 78, 216, 0.22);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.car-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.car-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.car-card.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
}

.car-card-media {
  position: relative;
  background: #eef2f9;
}

.car-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.car-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.64rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  padding: 3px 9px;
}

.car-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 13px 13px;
  flex: 1;
}

.car-brand {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.car-name {
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.car-specs {
  margin: 0;
  font-size: 0.73rem;
  color: var(--muted);
  line-height: 1.4;
}

.car-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.car-price {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.77rem;
  border-radius: 8px;
  box-shadow: none;
}

.btn-sm:hover { box-shadow: 0 6px 14px rgba(29, 78, 216, 0.22); }

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  margin: 0;
}

/* ------------------------------ comparison ------------------------------ */

.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.compare-car {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  min-width: 0;
}

.compare-car .car-art {
  width: 104px;
  height: 66px;
  border-radius: 8px;
  flex: none;
}

.compare-car strong {
  display: block;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
}

.compare-car span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
}

.vs {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px;
}

/* ------------------------------ responsive ------------------------------ */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 560px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (max-width: 620px) {
  .compare-grid { grid-template-columns: 1fr; }
  .vs { justify-self: center; }
  .compare-car .car-art { width: 88px; height: 58px; }
  .filter-label { min-width: 100%; }
  .search { max-width: none; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ==========================================================================
   Colour picker, theme toggle and consent
   ========================================================================== */

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.theme-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.theme-btn:focus-visible,
.lang-btn:focus-visible,
.link-btn:focus-visible,
.paint-swatch:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ------------------------------ colour picker --------------------------- */

.paint-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
}

.paint-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.paint-swatches {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.paint-swatch {
  width: 21px;
  height: 21px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  cursor: default;
}

.paint-swatch.active {
  box-shadow: 0 0 0 2px var(--brand);
}

.paint-note {
  margin-left: auto;
  font-size: 0.66rem;
  color: var(--muted);
}

/* -------------------------------- consent -------------------------------- */

.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--card);
  border-top: 1px solid var(--line);
  box-shadow: 0 -14px 40px rgba(15, 23, 42, 0.18);
}

.consent-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
}

.consent-copy { flex: 1 1 440px; min-width: 0; }

.consent-copy h2 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.consent-copy p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

.consent-details { margin-top: 6px !important; font-size: 0.76rem !important; }

.consent-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn-ghost:hover {
  color: var(--brand);
  border-color: var(--brand);
  box-shadow: none;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
}

body:not(.has-consent) { padding-bottom: 160px; }

/* -------------------------------- dark theme ----------------------------- */

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --card: #131c2e;
  --ink: #e6edf7;
  --muted: #94a3b8;
  --line: #26344d;
  --brand: #60a5fa;
  --brand-2: #38bdf8;
  --accent: #4ade80;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

  --wall-a: #1a2d52;
  --wall-b: #121f38;
  --wall-c: #0c1626;
  --wall-glow: rgba(96, 165, 250, 0.2);
  --wall-floor: rgba(0, 0, 0, 0.42);

  --car-line: rgba(226, 232, 240, 0.38);
  --car-glass: #8fa6c4;
  --car-glass-hi: rgba(255, 255, 255, 0.5);
  --car-tyre: #0a1120;
  --car-rim: #9aa8bd;
  --car-hub: #4a5a75;
  --car-well: rgba(0, 0, 0, 0.45);
  --car-shadow: rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] body {
  background: radial-gradient(1200px 600px at 50% -200px, #17233b 0%, var(--bg) 55%) no-repeat, var(--bg);
}

html[data-theme="dark"] .topbar { background: rgba(11, 18, 32, 0.85); }

html[data-theme="dark"] .badge,
html[data-theme="dark"] .lang-btn,
html[data-theme="dark"] .theme-btn,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .kpi,
html[data-theme="dark"] .vs,
html[data-theme="dark"] .btn-ghost {
  background: #17233b;
  color: var(--ink);
}

html[data-theme="dark"] .hero h1 {
  background: linear-gradient(120deg, #e6edf7 10%, #60a5fa 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="dark"] .eyebrow {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.26);
}

html[data-theme="dark"] .pill { background: rgba(96, 165, 250, 0.16); }

html[data-theme="dark"] .field select,
html[data-theme="dark"] .field input,
html[data-theme="dark"] .search {
  background: #0f1a2b;
  border-color: var(--line);
  color: var(--ink);
}

html[data-theme="dark"] .field select:focus,
html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .search:focus {
  background: #131f33;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

html[data-theme="dark"] .hero-card {
  background: linear-gradient(160deg, #17233b, #0f1a2b);
}

html[data-theme="dark"] .img-note {
  background: rgba(15, 23, 42, 0.88);
  color: #cbd5e1;
}

html[data-theme="dark"] .hero-caption,
html[data-theme="dark"] .paint-row {
  background: rgba(15, 23, 42, 0.95);
}

html[data-theme="dark"] .paint-swatch { border-color: var(--card); }

html[data-theme="dark"] .car-card,
html[data-theme="dark"] .car-card-media,
html[data-theme="dark"] .compare-car,
html[data-theme="dark"] .chip-btn,
html[data-theme="dark"] .result-line,
html[data-theme="dark"] footer {
  background: #0f1a2b;
}

html[data-theme="dark"] .chip-btn:hover {
  border-color: #3b4d6b;
  color: var(--ink);
}

html[data-theme="dark"] .chip-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #0b1220;
}

html[data-theme="dark"] .btn:not(.btn-ghost),
html[data-theme="dark"] .car-badge {
  color: #0b1220;
}

html[data-theme="dark"] .dot-a { background: #60a5fa; }
html[data-theme="dark"] .dot-b { background: #4ade80; }
html[data-theme="dark"] footer .fine { color: var(--muted); }

html[data-theme="dark"] .consent {
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.5);
}

@media (max-width: 620px) {
  .paint-note { margin-left: 0; }
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1 1 auto; }
  body:not(.has-consent) { padding-bottom: 230px; }
}

/* ---------------------------- layout + ad rail --------------------------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.content { min-width: 0; }

.rail { display: none; }

@media (min-width: 1080px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }
  /* Keep the selected car's specs docked in view while the page scrolls. */
  .rail {
    display: block;
    position: sticky;
    top: 84px;
  }
}

.rail .ad-slot { margin: 16px 0 0; }

.quick-facts { padding: 18px; }

.quick-facts h2 {
  margin: 0;
  font-size: 0.92rem;
}

.quick-facts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
}

.quick-facts-close {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.quick-facts-close:hover,
.quick-facts-close:focus-visible {
  background: var(--bg);
  color: var(--ink);
}

.quick-facts-car {
  margin: -4px 0 8px;
  font-size: 0.72rem;
  color: var(--muted);
}

.quick-facts-reopen {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.quick-facts-reopen:hover,
.quick-facts-reopen:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
}

.rail-note {
  margin: 10px 2px 0;
  font-size: 0.7rem;
  color: var(--muted);
}

/* Docked selected-car card for screens where the rail is hidden. */
.selected-car-bar { display: none; }

@media (max-width: 1079px) {
  .selected-car-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    align-items: center;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: var(--card);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.16);
  }
  body.has-selected-car-bar .site-footer { margin-bottom: 62px; }
}

.selected-car-main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 4px 6px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.selected-car-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.selected-car-main strong,
.selected-car-detail {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.selected-car-main strong { font-size: 0.88rem; }

.selected-car-detail {
  font-size: 0.72rem;
  color: var(--muted);
}

.selected-car-close {
  flex: none;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------------------------------- ads ---------------------------------- */

.ad-slot { margin: 18px 0; }

.ad-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.ad-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.08);
  overflow: hidden;
}

.ad-box[data-live="1"] {
  border-color: transparent;
  background: none;
}

.ad-rectangle .ad-box { min-height: 280px; }
.ad-rail .ad-box { min-height: 600px; }

.ad-infeed {
  grid-column: 1 / -1;
  margin: 0;
}

.ad-infeed .ad-box { min-height: 120px; }

.ad-note {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ------------------------------- car detail ------------------------------ */

.car-detail {
  margin: 18px 0;
  padding: 22px;
}

.car-detail h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.detail-intro {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}

.detail-col h3,
.car-detail > h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.detail-rows { border-top: 1px solid var(--line); }

.detail-total {
  margin-top: 10px;
  text-align: right;
  font-size: 1.15rem;
  font-weight: 800;
}

.detail-note {
  margin: 8px 0 0;
  text-align: right;
  font-size: 0.76rem;
  color: var(--muted);
}

.emi-head,
.emi-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}

.emi-head {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.emi-row strong { font-weight: 700; }

.alt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.alt-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
}

.alt-card .car-art {
  width: 100%;
  height: 96px;
}

.alt-card span { display: block; padding: 8px 10px; }
.alt-card strong { display: block; font-size: 0.85rem; }

.alt-card em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
}

.alt-card:hover { border-color: var(--brand); }

.faq details {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
}

.faq p {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ------------------------------- foot links ------------------------------ */

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
}

.foot-links a {
  font-size: 0.8rem;
  color: var(--brand);
  text-decoration: none;
}

.foot-links a:hover { text-decoration: underline; }

/* --------------------------- consent preferences ------------------------- */

.consent {
  max-height: 88vh;
  overflow-y: auto;
}

.consent-panel {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.78rem;
  cursor: pointer;
}

.consent-row input {
  margin-top: 3px;
  accent-color: var(--brand);
}

.consent-row strong {
  display: block;
  font-size: 0.8rem;
}

.consent-row em {
  display: block;
  font-style: normal;
  font-size: 0.74rem;
  color: var(--muted);
}

.consent-panel .btn {
  justify-self: start;
  margin-top: 2px;
}

/* ------------------------------- dark extras ----------------------------- */

html[data-theme="dark"] .alt-card { background: #0f1a2b; }

html[data-theme="dark"] .ad-box {
  background: rgba(148, 163, 184, 0.06);
}

html[data-theme="dark"] .ad-box[data-live="1"] { background: none; }



/* ==========================================================================
   News ticker, navigation, filters, pagination, compare and state prices
   ========================================================================== */

/* ------------------------------- news ticker ---------------------------- */

.news-ticker {
  background: linear-gradient(90deg, #0f172a, #1e3a8a 55%, #0f172a);
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.ticker-tag {
  display: inline-block;
  flex: none;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  background: #64748b;
  color: #fff;
}

.tag-launch { background: #f59e0b; color: #1f1300; }
.tag-offer { background: #22c55e; color: #06230f; }
.tag-price { background: #22c55e; color: #06230f; }
.tag-ev { background: #38bdf8; color: #052033; }
.tag-event { background: #c084fc; color: #1b0630; }
.tag-news { background: #64748b; color: #fff; }

.ticker-title {
  flex: 1;
  min-width: 0;
  color: #f1f5f9;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-title:hover { text-decoration: underline; }

.ticker-nav { display: flex; gap: 8px; flex: none; }

/* 48px hit area keeps these controls inside the WCAG/Lighthouse tap-target size. */
.ticker-nav button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.ticker-nav button:hover { background: rgba(255, 255, 255, 0.2); }

/* -------------------------------- main nav ------------------------------ */

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  margin-right: 6px;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.main-nav a:hover { color: var(--brand); background: rgba(29, 78, 216, 0.07); }

/* ------------------------------- hero search ---------------------------- */

.hero-search {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin: 0 0 16px;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  outline: none;
}

.hero-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.hero-search .btn { white-space: nowrap; }

/* -------------------------------- news list ----------------------------- */

.news-card { margin-bottom: 18px; }
.news-meta { display: flex; gap: 6px; flex-wrap: wrap; }

.ai-pill {
  background: linear-gradient(120deg, #7c3aed, #2563eb);
  border-color: transparent;
  color: #fff;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.news-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.news-item:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.news-item .ticker-tag { align-self: flex-start; }
.news-item strong { font-size: 0.85rem; line-height: 1.35; }
.news-item em { font-style: normal; font-size: 0.78rem; color: var(--muted); }
.news-src { margin-top: auto; font-size: 0.7rem; color: var(--muted); }

/* ------------------------------ gallery filters ------------------------- */

.gallery-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

.filters-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.filters-toggle:hover { border-color: var(--brand); color: var(--brand); }
.filters-toggle.open {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(29, 78, 216, 0.06);
}

.filters-toggle-label { flex: 1; text-align: left; }

.filters-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.filters-caret { font-size: 1rem; line-height: 1; }

.filters-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filters .filter-row { gap: 6px; }
.filters .filter-row .filter-label { flex-basis: 100%; min-width: 0; }
.filters .search { flex: none; width: 100%; max-width: none; }
.filters .chip-btn { padding: 5px 9px; font-size: 0.74rem; }

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-field select,
.sort-field select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
}

.filter-field select:focus,
.sort-field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.filter-clear { align-self: flex-start; }

.gallery-main { min-width: 0; }

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.gallery-toolbar .result-line {
  margin: 0;
  padding: 6px 0;
  border: 0;
  background: none;
  font-size: 0.78rem;
  color: var(--muted);
}

.sort-field {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--muted);
}

.sort-field select { width: auto; min-width: 150px; }

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(29, 78, 216, 0.25);
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.08);
  color: var(--brand);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.active-chip span { font-size: 0.9rem; line-height: 1; }
.active-chip:hover { background: rgba(29, 78, 216, 0.14); }

/* ---------------------------- compare on cards -------------------------- */

.compare-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.compare-toggle input {
  width: 12px;
  height: 12px;
  margin: 0;
  accent-color: var(--brand);
}

.compare-toggle.checked {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.compare-toggle input:disabled { cursor: not-allowed; }

/* ------------------------------- pagination ----------------------------- */

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.page-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.page-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ------------------------------ compare tray ---------------------------- */

.compare-tray {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: rgba(15, 23, 42, 0.96);
  color: #e2e8f0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.25);
}

.compare-tray-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.compare-tray-count { font-size: 0.78rem; font-weight: 700; }

.compare-tray-cars {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 6px;
}

.compare-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.76rem;
}

.compare-chip button {
  padding: 0;
  border: 0;
  background: none;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
}

.compare-tray-actions { display: flex; gap: 6px; }
.compare-tray .btn-ghost { color: #e2e8f0; border-color: rgba(255, 255, 255, 0.28); }
.compare-tray .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* ------------------------------ compare modal --------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(3px);
}

.modal-panel {
  position: relative;
  width: min(880px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 18px 20px 20px;
  border-radius: 18px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.modal-head h2 { margin: 0; font-size: 1.1rem; }

.modal-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.compare-table-wrap { overflow-x: auto; }

.compare-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.compare-table th,
.compare-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th { border-bottom: 2px solid var(--line); }
.compare-table thead th span {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.compare-table thead th strong { display: block; margin: 1px 0 4px; font-size: 0.95rem; }
.compare-table tbody th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.compare-table tbody tr:hover { background: rgba(29, 78, 216, 0.04); }
.compare-art { width: 100%; max-width: 150px; aspect-ratio: 16 / 10; border-radius: 8px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* ----------------------------- state price table ------------------------ */

.state-price { margin-top: 22px; }
.state-price h3 { margin: 0; font-size: 1rem; }

.state-price-scroll {
  max-height: 340px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.state-price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.state-price-table th,
.state-price-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.state-price-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--card);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.state-price-table tbody th { font-weight: 600; }
.state-price-table tr.active { background: rgba(29, 78, 216, 0.08); }
.state-price-table tr.active th { color: var(--brand); }

/* ---------------------------- dark + responsive ------------------------- */

html[data-theme="dark"] .news-item,
html[data-theme="dark"] .filters,
html[data-theme="dark"] .filters-toggle,
html[data-theme="dark"] .page-btn,
html[data-theme="dark"] .hero-search input,
html[data-theme="dark"] .filter-field select,
html[data-theme="dark"] .sort-field select {
  background: #0f1a2b;
}

html[data-theme="dark"] .modal-close { background: #1e293b; }

html[data-theme="dark"] .active-chip {
  background: rgba(96, 165, 250, 0.14);
  border-color: rgba(96, 165, 250, 0.3);
  color: #93c5fd;
}

html[data-theme="dark"] .compare-toggle { background: rgba(15, 26, 43, 0.88); }
html[data-theme="dark"] .compare-toggle.checked { background: var(--brand); color: #0b1220; }
html[data-theme="dark"] .state-price-table thead th { background: #131c2e; }

@media (max-width: 980px) {
  .gallery-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    align-items: start;
  }
  .filters-body .filter-row { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .modal { padding: 10px; }
  .hero-search { flex-direction: column; }
}

.gallery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.car-onroad {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.car-onroad strong {
  color: var(--ink);
  font-weight: 700;
}

html[data-theme="dark"] .car-onroad strong { color: var(--ink); }

#gallery,
#compare,
#news,
#tools,
#launches,
#dealers,
#muhurat,
#offers,
#loans,
#alerts { scroll-margin-top: 80px; }

/* ==========================================================================
   Launch spotlight
   ========================================================================== */

.launch-spotlight {
  position: relative;
  margin: 22px 0;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background:
    radial-gradient(900px 340px at 0% 0%, rgba(245, 158, 11, 0.16), transparent 60%),
    radial-gradient(700px 300px at 100% 0%, rgba(29, 78, 216, 0.12), transparent 62%),
    var(--card);
  box-shadow: var(--shadow);
}

.launch-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.launch-head h2 {
  margin: 4px 0 4px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.launch-head p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.launch-eyebrow {
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.3);
}

.launch-count { white-space: nowrap; }

.launch-main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 22px;
  align-items: start;
}

.launch-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #eef2f9;
  border: 1px solid var(--line);
}

.launch-img {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.launch-media .img-note {
  top: auto;
  bottom: 10px;
  left: 10px;
}

.launch-ribbon {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-radius: 999px;
  padding: 4px 10px;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3);
}

.launch-360-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

.launch-360-btn:hover { background: #fff; }

.launch-copy h3 {
  margin: 2px 0 8px;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

.launch-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.launch-price-row strong { font-size: 1.25rem; letter-spacing: -0.02em; }
.launch-price-row span { color: var(--muted); font-size: 0.78rem; }
.launch-price-row .launch-date {
  margin-left: auto;
  color: #b45309;
  font-weight: 700;
}

.launch-meta { margin: 0 0 12px; color: var(--muted); font-size: 0.82rem; }

.launch-copy h4 {
  margin: 0 0 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.feature-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px 14px;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.8rem;
  color: var(--ink);
  line-height: 1.4;
}

.feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}

.launch-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.launch-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 2px 4px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  scrollbar-width: thin;
}

.launch-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  width: 250px;
  padding: 6px;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.launch-chip:hover { border-color: #cbd5e1; }
.launch-chip.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.launch-chip-img {
  flex: 0 0 74px;
  width: 74px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
}

.launch-chip span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.launch-chip strong {
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.launch-chip em { font-style: normal; font-size: 0.7rem; color: var(--muted); }

/* --------------------- auto-sliding launch banner ------------------------ */

.launch-banner {
  position: relative;
  margin: 18px 0 22px;
  padding: 20px 20px 24px;
  border-radius: 22px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  background:
    radial-gradient(900px 360px at 0% 0%, rgba(245, 158, 11, 0.2), transparent 60%),
    radial-gradient(820px 380px at 100% 0%, rgba(56, 189, 248, 0.18), transparent 62%),
    linear-gradient(135deg, #0b1220 0%, #111d33 55%, #0b1220 100%);
  color: #f8fafc;
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.3);
  overflow: hidden;
}

.launch-banner-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.launch-banner-head h2 {
  margin: 4px 0 4px;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
  color: #f8fafc;
}

.launch-banner-head p {
  margin: 0;
  max-width: 62ch;
  color: #cbd5e1;
  font-size: 0.86rem;
}

.launch-banner .launch-eyebrow {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.42);
}

.launch-banner .launch-count {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.34);
}

.launch-banner-stage {
  position: relative;
  overflow: hidden;
}

.launch-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 22px;
  align-items: center;
  animation: launchSlideIn 0.55s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

.launch-slide.from-left {
  animation-name: launchSlideInLeft;
}

@keyframes launchSlideIn {
  from { transform: translateX(38px); }
  to { transform: translateX(0); }
}

@keyframes launchSlideInLeft {
  from { transform: translateX(-38px); }
  to { transform: translateX(0); }
}

.launch-slide-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: radial-gradient(circle at 50% 58%, #1e293b 0%, #0f1a2b 62%, #0b1220 100%);
}

.launch-banner-img {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.launch-slide-media .launch-ribbon {
  top: 12px;
  left: 12px;
  font-size: 0.68rem;
  padding: 5px 11px;
}

.launch-slide-count {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #e2e8f0;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 999px;
  padding: 4px 9px;
  backdrop-filter: blur(4px);
}

.launch-slide-copy .car-brand {
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.launch-slide-copy h3 {
  margin: 2px 0 8px;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  color: #f8fafc;
}

.launch-banner .launch-price-row strong { color: #ffffff; }
.launch-banner .launch-price-row span { color: #cbd5e1; }
.launch-banner .launch-price-row .launch-date { color: #fcd34d; }
.launch-banner .launch-meta { color: #cbd5e1; }

.launch-banner-points {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
}

.launch-banner-points li {
  position: relative;
  padding-left: 18px;
  color: #e2e8f0;
  font-size: 0.79rem;
  line-height: 1.4;
}

.launch-banner-points li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #4ade80;
  font-weight: 800;
}

.launch-banner .link-btn { color: #93c5fd; }
.launch-banner .btn-ghost {
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  border-color: rgba(255, 255, 255, 0.7);
}

.launch-banner-note {
  margin: 10px 0 0;
  color: #94a3b8;
  font-size: 0.72rem;
  line-height: 1.45;
}

.launch-banner-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.launch-arrow,
.launch-pause {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.36);
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
  font-family: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.launch-pause { font-size: 0.66rem; letter-spacing: 0.04em; }

.launch-arrow:hover,
.launch-pause:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(226, 232, 240, 0.6);
}

.launch-arrow:focus-visible,
.launch-pause:focus-visible,
.launch-dot:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

.launch-dots {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: none;
}

.launch-dots::-webkit-scrollbar { display: none; }

.launch-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.36);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.launch-dot:hover { background: rgba(226, 232, 240, 0.7); }

.launch-dot.active {
  width: 24px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.launch-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(148, 163, 184, 0.18);
}

.launch-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  animation: launchProgress 6s linear forwards;
}

@keyframes launchProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

html[data-theme="dark"] .launch-banner {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .launch-slide-media { border-color: rgba(148, 163, 184, 0.34); }

@media (max-width: 980px) {
  .launch-slide { grid-template-columns: 1fr; gap: 16px; }
  .launch-banner-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .launch-banner { padding: 14px 14px 20px; border-radius: 16px; }
  .launch-banner-head h2 { font-size: 1.2rem; }
  .launch-banner-head p { font-size: 0.8rem; }
  .launch-slide-copy h3 { font-size: 1.3rem; }
  .launch-banner-points { grid-template-columns: 1fr; }
  .launch-banner-controls { gap: 6px; }
  .launch-arrow,
  .launch-pause { width: 30px; height: 30px; }
  .launch-arrow { font-size: 1.05rem; }
  .launch-pause { font-size: 0.6rem; }
  .launch-dot { width: 6px; height: 6px; }
  .launch-dot.active { width: 18px; }
  .launch-banner .launch-actions { gap: 8px; }
  .launch-banner .launch-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .launch-slide,
  .launch-slide.from-left { animation: none; }
  .launch-progress span { animation: none; transform: scaleX(1); }
  .launch-dot { transition: none; }
}

/* ==========================================================================
   360 photo walkaround
   ========================================================================== */

.car360 { display: grid; gap: 8px; }

.car360-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #eef2f9;
  border: 1px solid var(--line);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.car360-stage.dragging { cursor: grabbing; }

.car360-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.car360.compact .car360-stage { aspect-ratio: 16 / 9; }

.car360-tabs { display: flex; flex-wrap: wrap; gap: 6px; }

.car360-tab {
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  cursor: pointer;
}

.car360-tab:hover { color: var(--ink); background: rgba(148, 163, 184, 0.16); }
.car360-tab.active { color: #fff; background: var(--brand); border-color: var(--brand); }

/* OEM 360° frames are transparent PNG cut-outs — show the whole car. */
.car360.official-frames .car360-stage {
  background: radial-gradient(circle at 50% 62%, #ffffff 0%, #eef2f9 62%, #e2e8f2 100%);
}
.car360.official-frames .car360-stage img { object-fit: contain; }

.car360-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 0.66rem;
  font-weight: 800;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  padding: 3px 9px;
}

.car360-color {
  position: absolute;
  top: 34px;
  left: 10px;
  z-index: 2;
  font-size: 0.64rem;
  font-weight: 700;
  color: #334155;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 3px 9px;
}

.car360-note {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.car360-hint {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 0.64rem;
  font-weight: 600;
  color: #334155;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 3px 9px;
}

.car360-controls {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(8px);
}

.car360-controls button {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.car360-controls button:hover { background: #fff; }
.car360-controls button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.car360-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0 2px;
}

.car360-dots { display: flex; justify-content: center; gap: 6px; }

.car360-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
}

.car360-dots button.active { background: var(--brand); transform: scale(1.25); }

.car360-empty { display: grid; gap: 8px; }
.car360-empty p { margin: 0; font-size: 0.78rem; color: var(--muted); }

.car360-modal { width: min(960px, 100%); }

/* -------------------------- media tabs & lightbox ------------------------ */

.car-media { display: grid; gap: 10px; margin: 0 0 18px; }
.car-media.spotlight { margin: 0; }

.media-tabs { display: flex; flex-wrap: wrap; gap: 6px; }

.car-media.spotlight .media-tabs {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.media-tab {
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 5px 11px;
  cursor: pointer;
}

.media-tab:hover { color: var(--ink); background: rgba(148, 163, 184, 0.16); }
.media-tab.active { color: #fff; background: var(--brand); border-color: var(--brand); }

.media-hero {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #eef2f9;
  cursor: zoom-in;
}

.media-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-hero img.official-photo { object-fit: contain; background: #eef2f9; }

.media-count {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.media-thumb {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #eef2f9;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb:hover { border-color: var(--brand); }

.media-360 { max-width: 720px; }

.lightbox-panel { width: min(1080px, 100%); }

.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  background: #0b1220;
  border-radius: 12px;
  overflow: hidden;
}

.lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  font-size: 1.5rem;
  line-height: 1;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.lightbox-nav.prev { left: 10px; }
.lightbox-nav.next { right: 10px; }

.lightbox-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}

.lightbox-meta .img-note { position: static; }

.lightbox-thumbs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }

.lightbox-thumbs button {
  flex: 0 0 auto;
  width: 76px;
  height: 54px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #eef2f9;
  cursor: pointer;
}

.lightbox-thumbs button.active { border-color: var(--brand); }
.lightbox-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================================================
   Lead / registration modal
   ========================================================================== */

.lead-modal { width: min(640px, 100%); }

.lead-form { display: grid; gap: 12px; }

.lead-intro { margin: 0; font-size: 0.86rem; color: var(--muted); }

.lead-summary {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(29, 78, 216, 0.06);
  border: 1px solid rgba(29, 78, 216, 0.14);
  font-size: 0.8rem;
}

.lead-summary span { color: var(--muted); }
.lead-summary em { font-style: normal; font-size: 0.72rem; color: var(--muted); }

.lead-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.lead-grid .field { margin: 0; }

.field-hint {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.google-signin { display: grid; gap: 8px; justify-items: center; }

.google-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.google-divider::before,
.google-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.google-button { min-height: 40px; }
.google-button > div { display: inline-block; }

.google-note {
  max-width: 420px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
  text-align: center;
}

.google-signed {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(22, 163, 74, 0.28);
  border-radius: 10px;
  background: rgba(22, 163, 74, 0.08);
  font-size: 0.8rem;
}

.google-signed-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.google-signed-text { display: grid; gap: 1px; min-width: 0; }
.google-signed-text strong { color: #15803d; }
.google-signed-text em {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.google-signed .link-btn { margin-left: auto; flex: none; }

.lead-form textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.86rem;
  color: var(--ink);
  background: #fbfcfe;
  resize: vertical;
}

.lead-brands { display: grid; gap: 6px; }
.brand-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.consent-check input { margin-top: 3px; }
.consent-check a { color: var(--brand); }

.form-error {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.lead-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.lead-success {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 6px 0;
}

.lead-success h3 { margin: 0; font-size: 1.15rem; }
.lead-success p { margin: 0; font-size: 0.86rem; color: var(--muted); }

.lead-success-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  background: #15803d;
}

.ref-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px dashed var(--brand);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

.ref-box strong {
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--brand);
}

.lead-code { font-size: 0.82rem; }

/* ==========================================================================
   Showroom offers
   ========================================================================== */

.muhurat-card { margin-bottom: 18px; }

.muhurat-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.muhurat-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 72px;
  text-align: left;
  text-decoration: none;
}

.muhurat-link strong { font-size: 0.86rem; }
.muhurat-link span { color: var(--muted); font-size: 0.74rem; }

.muhurat-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.offers-card { margin-bottom: 18px; }

.offers-controls { display: flex; flex-wrap: wrap; gap: 6px; }

.offer-disclaimer {
  margin: 0 0 14px;
  font-size: 0.74rem;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(100, 116, 139, 0.08);
  border: 1px solid var(--line);
}

.offer-fallback {
  margin: -6px 0 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-ink, #b45309);
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.offer-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: transform 0.15s, box-shadow 0.15s;
}

.offer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.offer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.offer-type {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
  border-radius: 999px;
  padding: 3px 8px;
}

.offer-top strong { font-size: 0.95rem; letter-spacing: -0.01em; }

.offer-card h3 { margin: 2px 0 0; font-size: 0.95rem; }
.offer-card p { margin: 0; font-size: 0.78rem; color: var(--muted); line-height: 1.45; }

.offer-showroom {
  display: grid;
  gap: 1px;
  padding-top: 6px;
  font-size: 0.74rem;
}

.offer-showroom strong { font-size: 0.76rem; }
.offer-showroom span { color: var(--muted); }

.offer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.offers-more { margin-top: 12px; }

/* ==========================================================================
   Loans
   ========================================================================== */

.loans-card { margin-bottom: 18px; }

.loan-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: rgba(29, 78, 216, 0.06);
  border: 1px solid rgba(29, 78, 216, 0.12);
  font-size: 0.78rem;
  color: var(--muted);
}

.loan-summary strong { color: var(--ink); }

.loans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.loan-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.loan-card.preferred {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.loan-head {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 9px;
}

.loan-logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.loan-head strong { display: block; font-size: 0.85rem; }
.loan-head em { font-style: normal; font-size: 0.68rem; color: var(--muted); }

.loan-rate {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.loan-emi {
  display: grid;
  gap: 1px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(100, 116, 139, 0.07);
}

.loan-emi span { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.loan-emi strong { font-size: 1.05rem; }
.loan-emi em { font-style: normal; font-size: 0.68rem; color: var(--muted); }

.loan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
}

.loan-features li {
  position: relative;
  padding-left: 16px;
  font-size: 0.74rem;
  color: var(--muted);
}

.loan-features li::before {
  content: "\2022";
  position: absolute;
  left: 2px;
  color: var(--brand);
  font-weight: 800;
}

.loan-card .btn { margin-top: auto; }

/* ==========================================================================
   Alerts + referral
   ========================================================================== */

.alerts-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 20px;
  align-items: center;
  margin: 18px 0;
  padding: 24px;
  border-radius: 20px;
  color: #e6edf7;
  background:
    radial-gradient(700px 260px at 0% 0%, rgba(56, 189, 248, 0.22), transparent 62%),
    linear-gradient(135deg, #0f172a, #1e293b);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
}

.alerts-card h2 { margin: 4px 0 8px; font-size: 1.35rem; color: #f8fafc; }
.alerts-card p { margin: 0 0 10px; color: #cbd5e1; font-size: 0.86rem; }
.alerts-card .launch-eyebrow {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.3);
}

.alerts-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4px 16px;
}

.alerts-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.8rem;
  color: #dbeafe;
}

.alerts-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #4ade80;
  font-weight: 800;
}

.alerts-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.alerts-note { font-size: 0.7rem; color: #94a3b8; }

.alerts-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.alerts-badge {
  display: grid;
  gap: 1px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.alerts-badge strong { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: #7dd3fc; }
.alerts-badge em { font-style: normal; font-size: 0.78rem; color: #f8fafc; }
.alerts-badge span { font-size: 0.66rem; color: #94a3b8; }

.referral-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  margin-bottom: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(29, 78, 216, 0.05);
}

.referral-bar h2 { margin: 0 0 3px; font-size: 0.98rem; }
.referral-bar p { margin: 0; font-size: 0.78rem; color: var(--muted); max-width: 640px; }

.referral-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

.ref-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px dashed var(--brand);
}

.ref-code strong { font-size: 0.86rem; letter-spacing: 0.1em; color: var(--brand); }

/* Gallery card extras + car detail extras */

.new-badge {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 6px 14px rgba(239, 68, 68, 0.28);
}

.selected-badge { top: auto; bottom: 8px; }

.card-360-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  font-family: inherit;
  font-size: 0.66rem;
  font-weight: 700;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  cursor: pointer;
}

.card-360-btn:hover { background: #fff; }

.detail-launch {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: var(--muted);
}

.launch-pill {
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.detail-360 { margin: 0 0 18px; max-width: 720px; }
.detail-features { margin-bottom: 20px; }

/* ---------------------------- new dark rules ---------------------------- */

html[data-theme="dark"] .launch-spotlight {
  border-color: rgba(245, 158, 11, 0.28);
  background:
    radial-gradient(900px 340px at 0% 0%, rgba(245, 158, 11, 0.12), transparent 60%),
    radial-gradient(700px 300px at 100% 0%, rgba(96, 165, 250, 0.12), transparent 62%),
    var(--card);
}

html[data-theme="dark"] .launch-chip,
html[data-theme="dark"] .offer-card,
html[data-theme="dark"] .loan-card {
  background: #0f1a2b;
}

html[data-theme="dark"] .launch-360-btn,
html[data-theme="dark"] .card-360-btn,
html[data-theme="dark"] .car360-controls button {
  background: rgba(15, 26, 43, 0.92);
  color: #e6edf7;
}

html[data-theme="dark"] .launch-360-btn:hover,
html[data-theme="dark"] .card-360-btn:hover,
html[data-theme="dark"] .car360-controls button:hover { background: #1e293b; }

html[data-theme="dark"] .car360-hint,
html[data-theme="dark"] .car360-color,
html[data-theme="dark"] .launch-media .img-note {
  color: #e6edf7;
  background: rgba(15, 26, 43, 0.9);
}
html[data-theme="dark"] .car360-tab {
  border-color: rgba(148, 163, 184, 0.3);
}
html[data-theme="dark"] .car360-tab:hover { color: #e6edf7; }
html[data-theme="dark"] .car360-note { color: #94a3b8; }

html[data-theme="dark"] .lead-form textarea { background: #0f1a2b; }
html[data-theme="dark"] .google-signed-text strong { color: #4ade80; }
html[data-theme="dark"] .lead-summary { background: rgba(96, 165, 250, 0.1); }
html[data-theme="dark"] .loan-summary { background: rgba(96, 165, 250, 0.1); }
html[data-theme="dark"] .loan-emi { background: rgba(148, 163, 184, 0.12); }
html[data-theme="dark"] .offer-disclaimer { background: rgba(148, 163, 184, 0.1); }
html[data-theme="dark"] .referral-bar { background: rgba(96, 165, 250, 0.08); }
html[data-theme="dark"] .car360-stage,
html[data-theme="dark"] .launch-media,
html[data-theme="dark"] .car-card-media { background: #0f1a2b; }

html[data-theme="dark"] .car-media.spotlight .media-tabs {
  background: rgba(15, 26, 43, 0.88);
  border-color: rgba(148, 163, 184, 0.3);
}
html[data-theme="dark"] .media-tab:hover { color: #e6edf7; }
html[data-theme="dark"] .media-hero,
html[data-theme="dark"] .media-thumb,
html[data-theme="dark"] .lightbox-thumbs button { background: #0f1a2b; }
html[data-theme="dark"] .media-hero img.official-photo { background: #0f1a2b; }
html[data-theme="dark"] .car360.official-frames .car360-stage {
  background: radial-gradient(circle at 50% 62%, #1e293b 0%, #0f1a2b 62%, #0b1220 100%);
}
html[data-theme="dark"] .media-count,
html[data-theme="dark"] .lightbox-nav {
  color: #e6edf7;
  background: rgba(15, 26, 43, 0.92);
  border-color: rgba(148, 163, 184, 0.3);
}

@media (max-width: 980px) {
  .launch-main { grid-template-columns: 1fr; }
  .alerts-card { grid-template-columns: 1fr; }
  .alerts-badges { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .launch-spotlight { padding: 16px; }
  .launch-copy h3 { font-size: 1.25rem; }
  .launch-price-row .launch-date { margin-left: 0; }
  .launch-chip { width: 220px; }
  .offers-grid,
  .loans-grid { grid-template-columns: 1fr; }
  .referral-bar { align-items: flex-start; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .car-media.spotlight .media-tabs { top: auto; bottom: 8px; }
  .car-media.spotlight .media-tabs .media-tab { padding: 4px 8px; font-size: 0.68rem; }
  .lightbox-stage img { max-height: 56vh; }
}

/* ==========================================================================
   Carwow-inspired discovery: CarCost Score, best picks, deals, car finder
   ========================================================================== */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* --------------------------------- score --------------------------------- */

.score-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #16a34a);
  border-radius: 10px;
  padding: 4px 9px;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.28);
}

.score-badge strong { font-size: 1rem; font-weight: 800; }
.score-badge span { font-size: 0.62rem; font-weight: 700; opacity: 0.85; }
.score-badge.compact { padding: 3px 7px; border-radius: 8px; }
.score-badge.compact strong { font-size: 0.82rem; }

.car-score-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 6px;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.score-panel {
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.06), rgba(14, 165, 233, 0.06));
}

.score-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.score-head h3 { margin: 0; font-size: 1rem; }
.score-verdict { margin: 2px 0 0; color: var(--muted); font-size: 0.8rem; }

.score-number {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: #0f766e;
}
.score-number strong { font-size: 1.7rem; line-height: 1; }
.score-number span { font-size: 0.75rem; font-weight: 700; color: var(--muted); }

.score-meter {
  height: 7px;
  margin: 10px 0 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.24);
  overflow: hidden;
}
.score-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #16a34a);
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pros-cons h4 { margin: 0 0 6px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.pros-cons .pros h4 { color: #15803d; }
.pros-cons .cons h4 { color: #b45309; }
.pros-cons ul { margin: 0; padding-left: 18px; font-size: 0.82rem; color: var(--muted); }
.pros-cons li { margin: 3px 0; }

/* ------------------------------- best picks ------------------------------ */

.best-picks { margin-top: 18px; }
.picks-tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.picks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.pick-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.pick-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pick-media { position: relative; background: #eef2f9; }
.pick-img { width: 100%; aspect-ratio: 16 / 10; }
.pick-media .score-badge { position: absolute; right: 8px; bottom: 8px; }
.pick-media .new-badge { position: absolute; top: 8px; left: 8px; }
.pick-body { padding: 10px 12px 12px; }
.pick-body h3 { margin: 1px 0 3px; font-size: 1rem; }
.pick-body p { margin: 0 0 8px; font-size: 0.74rem; color: var(--muted); }
.pick-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pick-foot strong { font-size: 0.9rem; }

/* --------------------------------- deals --------------------------------- */

.deals-strip { margin-top: 18px; }
.deals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.deal-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(160deg, rgba(14, 165, 233, 0.08), var(--card) 60%);
}
.deal-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  padding: 3px 8px;
}
.deal-value { display: block; margin: 8px 0 2px; font-size: 1.25rem; color: #0f766e; }
.deal-card h3 { margin: 0 0 4px; font-size: 0.92rem; }
.deal-card p { margin: 0 0 10px; font-size: 0.76rem; color: var(--muted); }

/* ------------------------------- car finder ------------------------------ */

.finder-panel { max-width: 760px; width: calc(100% - 32px); }
.finder-sub { margin: 0 0 12px; color: var(--muted); font-size: 0.86rem; }
.finder-progress {
  height: 5px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.24);
  overflow: hidden;
}
.finder-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width 0.2s ease;
}
.finder-step { font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.finder-q { margin: 4px 0 12px; font-size: 1.2rem; }
.finder-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.finder-option {
  font-family: inherit;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.finder-option:hover { border-color: var(--brand); background: rgba(29, 78, 216, 0.05); }
.finder-option.active { border-color: var(--brand); background: rgba(29, 78, 216, 0.1); }
.finder-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
}
.finder-actions .btn:only-child { margin-left: auto; }
.finder-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.finder-results-head h3 { margin: 0; }
.finder-results { display: grid; gap: 10px; }
.finder-result {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: var(--card);
}
.finder-img { width: 150px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #eef2f9; }
.finder-result-body h4 { margin: 1px 0 3px; font-size: 1.02rem; }
.finder-result-body p { margin: 0 0 4px; font-size: 0.76rem; color: var(--muted); }
.finder-why { font-size: 0.76rem; color: var(--muted); }
.finder-why strong { color: var(--ink); }
.finder-result-body .btn { margin-top: 6px; }

/* ----------------------------- dark theme -------------------------------- */

html[data-theme="dark"] .score-panel {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.14), rgba(14, 165, 233, 0.12));
  border-color: rgba(148, 163, 184, 0.28);
}
html[data-theme="dark"] .score-number { color: #34d399; }
html[data-theme="dark"] .score-meter { background: rgba(148, 163, 184, 0.2); }
html[data-theme="dark"] .pick-card,
html[data-theme="dark"] .deal-card,
html[data-theme="dark"] .finder-option,
html[data-theme="dark"] .finder-result { background: #0f1a2b; border-color: rgba(148, 163, 184, 0.26); }
html[data-theme="dark"] .pick-media,
html[data-theme="dark"] .finder-img { background: #0b1220; }
html[data-theme="dark"] .finder-option { color: #e6edf7; }
html[data-theme="dark"] .finder-option:hover,
html[data-theme="dark"] .finder-option.active { background: rgba(96, 165, 250, 0.16); }
html[data-theme="dark"] .deal-value { color: #34d399; }
html[data-theme="dark"] .pros-cons .pros h4 { color: #4ade80; }
html[data-theme="dark"] .pros-cons .cons h4 { color: #fbbf24; }

/* ------------------------------ responsive ------------------------------- */

@media (max-width: 980px) {
  .picks-grid,
  .deals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .picks-tabs { justify-content: flex-start; }
  .picks-grid,
  .deals-grid,
  .pros-cons,
  .finder-options { grid-template-columns: 1fr; }
  .finder-result { grid-template-columns: 1fr; }
  .finder-img { width: 100%; }
  .finder-result .score-badge { position: absolute; top: 10px; right: 10px; }
  .finder-actions { flex-wrap: wrap; }
}

/* ---------------------- Carwow-style browse section ---------------------- */
.browse-card { padding: 20px; }
.browse-head h2 { margin: 0 0 4px; font-size: 1.35rem; }
.browse-head p { margin: 0 0 14px; color: var(--muted); font-size: 0.92rem; }
.browse-tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.browse-tab { border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 8px 14px; border-radius: 999px; font: inherit; font-size: 0.9rem; cursor: pointer; }
.browse-tab:hover { border-color: var(--accent); }
.browse-tab.active { background: #15803d; border-color: #15803d; color: #fff; }
html[data-theme="dark"] .browse-tab.active { background: var(--accent); border-color: var(--accent); color: #052e16; }
.browse-panel h3 { margin: 0 0 8px; font-size: 1rem; }
.browse-panel-sub { margin: 0 0 12px; color: var(--muted); font-size: 0.9rem; }
.browse-group + .browse-group { margin-top: 18px; }
.browse-grid { display: grid; gap: 10px; }
.browse-grid-budget { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.browse-grid-fuel { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.browse-grid-type { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.browse-grid-brand { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.browse-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.browse-tile:hover, .browse-tile:focus-visible { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08); outline: none; }
.browse-tile-title { font-weight: 650; font-size: 0.95rem; }
.browse-tile-hint { color: var(--muted); font-size: 0.8rem; line-height: 1.25; }
.browse-count { color: var(--muted); font-size: 0.78rem; margin-top: 2px; }
.browse-tile-brand { flex-direction: row; align-items: center; gap: 10px; }
.browse-monogram { display: inline-flex; width: 30px; height: 30px; border-radius: 8px; align-items: center; justify-content: center; background: var(--bg); border: 1px solid var(--line); font-weight: 700; color: var(--muted); flex: 0 0 auto; }
.browse-tile-brand .browse-count { margin-left: auto; margin-top: 0; }
.browse-tile-brand .browse-tile-title { flex: 1 1 auto; }
@media (max-width: 640px) {
  .browse-grid-budget, .browse-grid-fuel { grid-template-columns: repeat(2, 1fr); }
  .browse-grid-type, .browse-grid-brand { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Dealer finder
   ========================================================================== */

.dealers-card, .astro-card { margin-bottom: 18px; }

.dealer-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}

.dealer-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.dealer-field input,
.dealer-field select {
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  min-width: 200px;
}

.dealer-field input:focus,
.dealer-field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.dealer-form-actions { display: flex; gap: 8px; }

.dealer-result-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  padding: 10px 0 12px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.dealer-result-head strong { color: var(--ink); font-size: 0.9rem; }

.dealer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.dealer-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dealer-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.dealer-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.dealer-brand {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand);
  background: rgba(29, 78, 216, 0.08);
  padding: 2px 8px;
  border-radius: 999px;
}

.dealer-type {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: #0f766e;
  background: rgba(15, 118, 110, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
}

.dealer-type.service {
  color: #b45309;
  background: rgba(180, 83, 9, 0.1);
}

html[data-theme="dark"] .dealer-type { color: #5eead4; }
html[data-theme="dark"] .dealer-type.service { color: #fbbf24; }

.dealer-pin {
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.dealer-card h3 { margin: 0; font-size: 0.98rem; line-height: 1.3; }
.dealer-address { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.dealer-city { margin: 0; font-size: 0.78rem; color: var(--muted); }

.dealer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

.dealer-actions .btn { font-size: 0.76rem; padding: 6px 10px; }

.dealer-empty {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.dealer-empty p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.dealer-empty-text { color: var(--muted); font-size: 0.88rem; margin: 0; padding: 8px 0; }

.dealer-coverage {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

.dealer-coverage p { margin: 4px 0 0; line-height: 1.5; }

.dealer-geo-note {
  margin: -6px 0 12px;
  font-size: 0.78rem;
  color: #b91c1c;
}

html[data-theme="dark"] .dealer-geo-note { color: #fca5a5; }

.dealer-cities {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.dealer-cities-label {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.dealer-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.dealer-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 5px 11px;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.dealer-chip:hover { border-color: var(--accent); }

.dealer-chip.active {
  background: #15803d;
  border-color: #15803d;
  color: #fff;
}

.dealer-chip em { font-style: normal; font-size: 0.68rem; opacity: 0.75; }

.dealer-chip.active em { opacity: 1; }

html[data-theme="dark"] .dealer-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #052e16;
}

.dealer-actions + .dealer-actions { margin-top: 0; padding-top: 0; }

.dealer-phone {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  align-self: center;
  padding: 6px 2px;
}

.dealer-phone:hover { text-decoration: underline; }

.dealer-enquire { font-weight: 700; }

.dealer-more-wrap { display: flex; justify-content: center; margin-top: 12px; }

/* ==========================================================================
   Astrology colour guide
   ========================================================================== */

.astro-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}

.astro-hint {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
  max-width: 340px;
  line-height: 1.45;
}

.astro-prompt {
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.astro-body { display: grid; gap: 16px; }

.astro-sign {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.06), rgba(14, 165, 233, 0.03));
}

.astro-sign h3 { margin: 2px 0; font-size: 1.4rem; }
.astro-range { color: var(--muted); font-size: 0.8rem; }

.astro-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.astro-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 14px 0 0;
}

.astro-facts div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}

.astro-facts dt {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.astro-facts dd { margin: 2px 0 0; font-size: 0.86rem; font-weight: 600; }

.astro-colours { margin-top: 14px; }

.astro-colour-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

.astro-colour {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
}

.astro-colour i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.2);
  display: inline-block;
}

.astro-suggest h3,
.astro-muhurat h3 { margin: 0 0 10px; font-size: 1rem; }

.astro-paints {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.astro-paint {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.astro-paint:hover,
.astro-paint:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
  outline: none;
}

.astro-paint i {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  flex: 0 0 auto;
}

.astro-paint strong { display: block; font-size: 0.86rem; }

.astro-paint em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
}

.astro-dates { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.astro-dates li {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(110px, 1fr) auto auto;
  gap: 8px 14px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-size: 0.8rem;
}

.astro-dates li.is-lucky {
  border-color: var(--accent);
  background: rgba(22, 163, 74, 0.06);
}

.astro-date { font-weight: 650; }

.astro-day {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.astro-lucky-badge {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #14532d;
  background: #bbf7d0;
  border-radius: 999px;
  padding: 1px 7px;
}

.astro-meta { color: var(--muted); font-size: 0.74rem; }

.astro-sources {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.astro-sources .muhurat-links { margin-top: 8px; }

html[data-theme="dark"] .dealer-brand {
  background: rgba(96, 165, 250, 0.14);
  color: #93c5fd;
}

html[data-theme="dark"] .dealer-card { background: rgba(255, 255, 255, 0.03); }

html[data-theme="dark"] .astro-sign {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(14, 165, 233, 0.04));
}

html[data-theme="dark"] .astro-lucky-badge { color: #052e16; background: var(--accent); }
html[data-theme="dark"] .astro-dates li.is-lucky { background: rgba(22, 163, 74, 0.14); }

@media (max-width: 640px) {
  .dealer-field,
  .dealer-field input,
  .dealer-field select { min-width: 0; width: 100%; }
  .dealer-form-actions { width: 100%; }
  .dealer-form-actions .btn { flex: 1 1 auto; }
  .dealer-grid { grid-template-columns: 1fr; }
  .astro-dates li { grid-template-columns: 1fr 1fr; }
  .astro-meta { grid-column: span 2; }
}

/* -------------------------- affordability finder ------------------------ */

.afford-card { display: flex; flex-direction: column; gap: 16px; }

.afford-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.afford-controls .field { max-width: 240px; }

.afford-input {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.afford-input span { color: var(--muted); font-weight: 700; }

.afford-input input {
  width: 100%;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  outline: none;
}

.afford-presets { display: flex; flex-wrap: wrap; gap: 6px; }

.afford-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(29, 78, 216, 0.04);
}

.afford-label {
  display: block;
  margin-bottom: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.afford-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.afford-item .btn { align-self: flex-start; margin-top: 6px; }

html[data-theme="dark"] .afford-input { background: #0f1a2b; }
html[data-theme="dark"] .afford-summary { background: rgba(96, 165, 250, 0.08); }

@media (max-width: 560px) {
  .afford-controls .field { max-width: none; width: 100%; }
  .afford-grid { grid-template-columns: 1fr; }
}

/* ------------------------------- carcarbon ------------------------------- */

.green-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: #fff;
  background: linear-gradient(135deg, #15803d, #0ea5e9);
  border-radius: 10px;
  padding: 4px 9px;
  line-height: 1;
  font-size: 0.7rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.22);
}

.green-badge strong { font-size: 0.82rem; }
.green-badge span { opacity: 0.88; }
.green-badge.compact { padding: 3px 7px; border-radius: 8px; }

.score-numbers {
  display: flex;
  align-items: center;
  gap: 16px;
}

.score-stat { text-align: right; }

.score-stat > span {
  display: block;
  margin-bottom: 2px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.score-stat.green .score-number { color: #15803d; }

.score-carbon-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 0.76rem;
  color: var(--muted);
}

.pick-green {
  display: block;
  margin-top: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #15803d;
}

.carbon-card { display: flex; flex-direction: column; gap: 18px; }

.carbon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.carbon-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

.carbon-h3 { margin: 0; font-size: 1rem; }
.carbon-sub { margin: 0; color: var(--muted); font-size: 0.84rem; line-height: 1.45; }

.carbon-scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.carbon-score {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.carbon-score.green {
  border-color: rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.07);
}

.carbon-score strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.1;
  color: #0f766e;
}

.carbon-score.green strong { color: #15803d; }

.carbon-score small {
  margin-left: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
}

.carbon-rows { display: flex; flex-direction: column; gap: 6px; }

.carbon-rows > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--muted);
}

.carbon-rows strong { color: var(--ink); font-size: 0.92rem; }

.carbon-rows .carbon-total {
  padding-top: 7px;
  border-top: 1px dashed var(--line);
  color: var(--ink);
  font-weight: 700;
}

.carbon-rows .carbon-total strong { font-size: 1.05rem; color: #0f766e; }

.carbon-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.carbon-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.carbon-compare { display: flex; flex-direction: column; gap: 8px; }

.carbon-compare-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 62px;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

.carbon-compare-row strong {
  text-align: right;
  color: var(--ink);
  font-size: 0.8rem;
}

.carbon-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.carbon-bar span { display: block; height: 100%; border-radius: inherit; }
.carbon-bar span.ev { background: linear-gradient(90deg, #0ea5e9, #22c55e); }
.carbon-bar span.petrol { background: linear-gradient(90deg, #f59e0b, #ef4444); }

.carbon-result {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(22, 163, 74, 0.1);
  color: #166534;
  font-weight: 800;
  font-size: 0.9rem;
}

.carbon-result.muted {
  background: rgba(148, 163, 184, 0.14);
  color: var(--muted);
}

.carbon-log-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 10px;
}

.carbon-log-form .field { margin: 0; }

.carbon-log-total {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.carbon-log-total > div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.carbon-log-total strong {
  display: block;
  font-size: 1.2rem;
  color: #0f766e;
}

.carbon-log-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow: auto;
}

.carbon-log-list li {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 0.78rem;
}

.carbon-log-month { font-weight: 700; color: var(--ink); }
.carbon-log-fuel { color: var(--muted); }
.carbon-log-list strong { font-size: 0.8rem; }
.carbon-log-list .link-btn { font-size: 0.72rem; }

.carbon-list-title {
  margin: 2px 0 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.carbon-offset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.carbon-offset-item {
  padding: 14px;
  border: 1px solid rgba(22, 163, 74, 0.3);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(22, 163, 74, 0.1), rgba(14, 165, 233, 0.08));
}

.carbon-offset-icon {
  font-size: 1.4rem;
  line-height: 1;
  color: #15803d;
}

.carbon-offset-item strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 0.92rem;
}

.carbon-offset-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

html[data-theme="dark"] .carbon-block,
html[data-theme="dark"] .carbon-score,
html[data-theme="dark"] .carbon-log-total > div,
html[data-theme="dark"] .carbon-log-list li { background: #0f1a2b; }

html[data-theme="dark"] .carbon-score.green { background: rgba(22, 163, 74, 0.14); }
html[data-theme="dark"] .carbon-result { background: rgba(22, 163, 74, 0.18); color: #86efac; }
html[data-theme="dark"] .carbon-offset-item {
  background: linear-gradient(160deg, rgba(22, 163, 74, 0.16), rgba(14, 165, 233, 0.12));
}

@media (max-width: 860px) {
  .carbon-grid { grid-template-columns: 1fr; }
  .carbon-log-form { grid-template-columns: 1fr 1fr; }
  .carbon-log-form .btn { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .score-head { align-items: flex-start; }
  .score-numbers { gap: 10px; }
  .carbon-scores,
  .carbon-pair,
  .carbon-log-form,
  .carbon-log-total,
  .carbon-offset-grid { grid-template-columns: 1fr; }
  .carbon-compare-row { grid-template-columns: 76px minmax(0, 1fr) 54px; }
  .carbon-log-list li { grid-template-columns: 1fr auto; }
  .carbon-log-month,
  .carbon-log-fuel { grid-column: 1; }
  .carbon-log-list strong { grid-column: 2; grid-row: 1; }
  .carbon-log-list .link-btn { grid-column: 2; grid-row: 2; justify-self: end; }
}

/* -------------------------------- car tools ------------------------------ */

.tool-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 18px;
}

.tax-card,
.trip-card,
.swap-card,
.autoalert-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.autoalert-card { margin-bottom: 18px; }

.tax-controls,
.trip-controls,
.swap-controls,
.alert-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

.alert-form .btn,
.tax-controls .btn,
.trip-controls .btn { align-self: end; }

.tax-summary,
.trip-summary,
.swap-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

.tax-summary > div,
.trip-summary > div,
.swap-summary > div { display: flex; flex-direction: column; gap: 2px; }

.tax-effective { color: var(--muted); font-size: 0.78rem; }

.tax-breakdown,
.trip-breakdown,
.swap-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tax-row,
.trip-row,
.swap-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}

.tax-row strong,
.trip-row strong,
.swap-row strong { color: var(--ink); }

.tax-total,
.trip-total,
.swap-total {
  border-bottom: 0;
  padding-top: 10px;
  font-weight: 800;
  color: var(--ink);
}

.tax-total strong,
.trip-total strong,
.swap-total strong { font-size: 1.05rem; color: #0f766e; }

.tax-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.tax-table,
.swap-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.tax-table-head,
.tax-table-row,
.swap-table-head,
.swap-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  padding: 9px 12px;
  font-size: 0.82rem;
  align-items: center;
}

.tax-table-head,
.swap-table-head {
  background: #f1f5f9;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tax-table-row + .tax-table-row,
.swap-table-row + .swap-table-row { border-top: 1px solid var(--line); }

.tax-table-row span:last-child,
.tax-table-row strong,
.swap-table-row span:last-child,
.swap-table-row strong { text-align: right; }

.tax-table-row.active { background: rgba(22, 163, 74, 0.09); }
.tax-table-row.active strong { color: #15803d; }

.swap-table-row.active { background: rgba(37, 99, 235, 0.08); }
.swap-table-row.active strong { color: var(--brand); }

.trip-routes { display: flex; flex-wrap: wrap; gap: 8px; }

.trip-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.trip-check input { width: auto; margin: 0; }

.trip-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  flex: 1;
}

.trip-kpis > div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.trip-kpis span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.trip-kpis strong { display: block; margin-top: 2px; font-size: 0.92rem; }

.swap-verdict {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
  font-weight: 800;
  font-size: 0.9rem;
}

.swap-verdict.good { background: rgba(22, 163, 74, 0.1); color: #166534; }

.alert-watch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.alert-watch-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.alert-watch-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.alert-watch-head h3 { margin: 2px 0 0; font-size: 1rem; }

.alert-watch-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.alert-watch-rows > div {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.alert-watch-rows span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.alert-watch-rows strong { display: block; margin-top: 2px; font-size: 0.9rem; }

.alert-status {
  margin: 0;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.13);
  color: #92400e;
  font-size: 0.78rem;
  font-weight: 700;
}

.alert-status.good { background: rgba(22, 163, 74, 0.1); color: #166534; }

.alert-price-note { margin: 0; color: var(--muted); font-size: 0.74rem; }

.alert-news { display: flex; flex-direction: column; gap: 4px; }

.alert-news-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.alert-news a {
  color: var(--brand);
  font-size: 0.78rem;
  line-height: 1.35;
  text-decoration: none;
}

.alert-news a:hover { text-decoration: underline; }

.alert-suggest,
.alert-news-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alert-suggest-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.alert-suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.alert-suggest-item strong { display: block; font-size: 0.86rem; }
.alert-suggest-item span { color: var(--muted); font-size: 0.76rem; }

.alert-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alert-news-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.alert-news-list a {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.alert-news-list a:hover { color: var(--brand); }
.alert-news-list span { color: var(--muted); font-size: 0.72rem; }

html[data-theme="dark"] .tax-summary,
html[data-theme="dark"] .trip-summary,
html[data-theme="dark"] .swap-summary,
html[data-theme="dark"] .alert-watch-card { background: #0f1a2b; }

html[data-theme="dark"] .tax-table,
html[data-theme="dark"] .swap-table,
html[data-theme="dark"] .trip-kpis > div,
html[data-theme="dark"] .alert-watch-rows > div,
html[data-theme="dark"] .alert-suggest-item,
html[data-theme="dark"] .alert-news-list li { background: #0f1a2b; }

html[data-theme="dark"] .tax-table-head,
html[data-theme="dark"] .swap-table-head { background: #132238; }

html[data-theme="dark"] .trip-check { background: #0f1a2b; }

html[data-theme="dark"] .swap-verdict { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
html[data-theme="dark"] .swap-verdict.good { background: rgba(22, 163, 74, 0.18); color: #86efac; }
html[data-theme="dark"] .alert-status { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
html[data-theme="dark"] .alert-status.good { background: rgba(22, 163, 74, 0.18); color: #86efac; }

@media (max-width: 720px) {
  .trip-kpis { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .tax-summary,
  .trip-summary,
  .swap-summary { flex-direction: column; align-items: flex-start; }
  .alert-watch-rows { grid-template-columns: 1fr; }
  .alert-suggest-list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Redesign 2026 — warm editorial palette, dark teal hero, discovery-first
   Appended layer: overrides earlier tokens and adds new component styles.
   ========================================================================== */

:root {
  --bg: #f6f3ec;
  --card: #fffdf8;
  --ink: #12211d;
  --muted: #5d6b64;
  --line: #e4ddd0;
  --brand: #0c6b5d;
  --brand-2: #149b86;
  --accent: #c2410c;
  --accent-2: #f59e0b;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(18, 33, 29, 0.08);
  --hero-ink: #f3fbf7;
  --hero-muted: #a8c9bf;
  --good: #15803d;
}

html { scroll-padding-top: 132px; }

body {
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(20, 155, 134, 0.1), transparent 60%),
    radial-gradient(700px 380px at 90% 0%, rgba(245, 158, 11, 0.1), transparent 55%),
    var(--bg);
}

/* ------------------------------- top bar --------------------------------- */

.topbar {
  background: rgba(246, 243, 236, 0.92);
  border-bottom: 1px solid var(--line);
}

.topbar-inner { height: 68px; gap: 18px; }

.topbar-tag {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.topbar-search {
  flex: 0 1 320px;
  margin-left: auto;
}

.topbar-search input {
  width: 100%;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.topbar-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(12, 107, 93, 0.12);
}

.badge,
.lang-btn,
.chip { background: var(--card); }

.topbar-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px 10px;
}

.main-nav {
  display: flex;
  gap: 2px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar { display: none; }

.main-nav a {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--brand);
  background: rgba(12, 107, 93, 0.08);
}

.topbar-cta { display: flex; align-items: center; gap: 8px; flex: none; }

.topbar-link {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.topbar-link:hover { border-color: var(--brand); color: var(--brand); }

.topbar-link-accent {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.topbar-link-accent:hover { background: #0a5a4e; color: #fff; }

/* --------------------------------- buttons ------------------------------- */

.btn {
  border-radius: 999px;
  background: linear-gradient(135deg, #0c6b5d, #149b86);
  box-shadow: 0 10px 22px rgba(12, 107, 93, 0.22);
}

.btn:hover { box-shadow: 0 14px 28px rgba(12, 107, 93, 0.28); }

.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover { color: var(--brand); border-color: var(--brand); }

.btn-sm { padding: 7px 13px; font-size: 0.76rem; border-radius: 999px; }

.field select,
.field input { background: var(--card); }

/* --------------------------------- hero ---------------------------------- */

.hero {
  position: relative;
  margin: 6px 0 22px;
  padding: clamp(26px, 4vw, 52px);
  border-radius: 28px;
  color: var(--hero-ink);
  background:
    radial-gradient(700px 360px at 88% 0%, rgba(20, 155, 134, 0.45), transparent 62%),
    radial-gradient(520px 320px at 8% 100%, rgba(245, 158, 11, 0.22), transparent 60%),
    linear-gradient(135deg, #0a2a26 0%, #0d3a33 48%, #0a2b28 100%);
  box-shadow: 0 24px 60px rgba(8, 32, 28, 0.28);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -140px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
}

.hero-grid-single { grid-template-columns: minmax(0, 1fr); }

.hero h1 {
  margin: 12px 0 14px;
  max-width: 15ch;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
  background: none;
  -webkit-text-fill-color: #f6fffb;
  color: #f6fffb;
}

.hero p {
  max-width: 46ch;
  margin: 0 0 18px;
  color: var(--hero-muted);
  font-size: 1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(12, 107, 93, 0.18);
  background: rgba(12, 107, 93, 0.07);
  color: var(--brand);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.hero-eyebrow {
  color: #7ee0cb;
  border-color: rgba(126, 224, 203, 0.35);
  background: rgba(126, 224, 203, 0.1);
}

.hero-motto {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 560px;
  margin: 15px 0 2px;
}

.hero-motto-line {
  flex: 1 1 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126, 224, 203, 0.5));
}

.hero-motto-line:last-child {
  background: linear-gradient(90deg, rgba(126, 224, 203, 0.5), transparent);
}

.hero-motto-text {
  flex: none;
  color: #fbe3b3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.95rem, 1.7vw, 1.12rem);
  font-style: italic;
  letter-spacing: 0.01em;
  text-align: center;
}

.hero .hero-search { max-width: 560px; margin-bottom: 14px; }

.hero .hero-search input {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.hero .hero-search input::placeholder { color: rgba(255, 255, 255, 0.55); }

.hero .hero-search input:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: #7ee0cb;
  box-shadow: 0 0 0 3px rgba(126, 224, 203, 0.18);
}

.hero .hero-search .btn {
  background: #f6fffb;
  color: #0a2a26;
  box-shadow: none;
}

.hero .btn {
  background: #f6fffb;
  color: #0a2a26;
  box-shadow: none;
}

.hero .btn:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22); }

.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #eafff9;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 14px 0 16px;
}

.hero-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--hero-muted);
  font: inherit;
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.hero-link:hover { color: #fff; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.74rem;
  color: var(--hero-muted);
}

.hero-trust span::before {
  content: "\2713";
  color: #7ee0cb;
  margin-right: 6px;
  font-weight: 800;
}

.hero .kpis { margin-top: 18px; }

.hero .kpi {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero .kpi span { color: var(--hero-muted); }
.hero .kpi strong { color: #fff; }

.hero .hero-card {
  background: var(--card);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
}

.hero-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.hero-card-badges .pill {
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
}

/* ---------------------------- cost snapshot ------------------------------ */

.cost-snapshot {
  position: relative;
  z-index: 1;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  color: #eafff9;
}

.snapshot-kicker {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7ee0cb;
}

.cost-snapshot h2 {
  margin: 8px 0 6px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.cost-snapshot p {
  margin: 0;
  color: var(--hero-muted);
  font-size: 0.82rem;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.snapshot-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.snapshot-stat span { font-size: 0.68rem; color: var(--hero-muted); }
.snapshot-stat strong { font-size: 1.05rem; letter-spacing: -0.02em; color: #fff; }

.snapshot-stat em {
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7ee0cb;
}

.snapshot-wide { grid-column: 1 / -1; }
.snapshot-note { font-size: 0.7rem !important; line-height: 1.5; }

.snapshot-cta {
  width: 100%;
  margin-top: 14px;
  background: #f6fffb;
  color: #0a2a26;
  box-shadow: none;
}

/* ------------------------------- deal score ------------------------------ */

.dealscore {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 10px;
  background: #0c6b5d;
  color: #fff;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(12, 107, 93, 0.24);
}

.dealscore strong { font-size: 1.05rem; }

.dealscore span {
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.86;
}

.dealscore.compact { padding: 4px 7px; border-radius: 8px; }
.dealscore.compact strong { font-size: 0.9rem; }

.dealscore.tier-0 { background: #b91c1c; }
.dealscore.tier-1 { background: #c2410c; }
.dealscore.tier-2 { background: #b45309; }
.dealscore.tier-3 { background: #0c6b5d; }
.dealscore.tier-4 { background: #15803d; }

.deal-board { margin-bottom: 18px; }

.deal-board .deal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.deal-board .db-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(12, 107, 93, 0.05), transparent 62%),
    var(--card);
}

.deal-board .db-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.deal-board .db-rank {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.deal-board .db-card h3 { margin: 0; font-size: 1rem; letter-spacing: -0.01em; }
.deal-board .db-meta { margin: 0; font-size: 0.72rem; color: var(--muted); }

.deal-board .db-price { display: flex; align-items: baseline; gap: 6px; }
.deal-board .db-price strong { font-size: 1.2rem; letter-spacing: -0.03em; }
.deal-board .db-price span { font-size: 0.66rem; color: var(--muted); }

.deal-board .db-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 7px;
  border-top: 1px dashed var(--line);
  font-size: 0.76rem;
  color: var(--muted);
}

.deal-board .db-row strong { font-size: 0.8rem; color: var(--ink); }

.deal-board .db-gap {
  margin: 2px 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}

.deal-board .db-gap.good { color: var(--good); }

.deal-board .db-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.deal-board .db-label {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(12, 107, 93, 0.1);
  color: var(--brand);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deal-board .db-label.label-0 { background: rgba(185, 28, 28, 0.1); color: #b91c1c; }
.deal-board .db-label.label-1 { background: rgba(194, 65, 12, 0.1); color: #c2410c; }
.deal-board .db-label.label-2 { background: rgba(180, 83, 9, 0.12); color: #b45309; }
.deal-board .db-label.label-3 { background: rgba(12, 107, 93, 0.1); color: var(--brand); }
.deal-board .db-label.label-4 { background: rgba(21, 128, 61, 0.1); color: var(--good); }

.deal-board .db-foot-note { margin: 14px 0 0; font-size: 0.7rem; color: var(--muted); }

/* ------------------------------- own vs cab ------------------------------ */

.owncab-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}

.owncab-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(12, 107, 93, 0.05);
}

.owncab-cab { background: rgba(245, 158, 11, 0.09); }

.owncab-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.owncab-value { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.04em; }
.owncab-unit { font-size: 0.7rem; color: var(--muted); }

.owncab-bar {
  height: 8px;
  margin: 10px 0 6px;
  border-radius: 999px;
  background: rgba(18, 33, 29, 0.09);
  overflow: hidden;
}

.owncab-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.owncab-cab .owncab-bar i {
  background: linear-gradient(90deg, #d97706, #f59e0b);
}

.owncab-detail { font-size: 0.7rem; color: var(--muted); }

.owncab-vs {
  align-self: center;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--muted);
}

.owncab-verdict {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
}

.owncab-verdict.good { background: rgba(21, 128, 61, 0.1); color: var(--good); }
.owncab-verdict.warn { background: rgba(194, 65, 12, 0.1); color: var(--accent); }

.owncab-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  margin-top: 10px;
  font-size: 0.7rem;
  color: var(--muted);
}

/* ------------------------------ budget ladder ---------------------------- */

.ladder-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.ladder-base,
.ladder-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  text-align: left;
}

.ladder-base {
  border-style: dashed;
  background: rgba(12, 107, 93, 0.05);
}

.ladder-card {
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.ladder-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.ladder-step {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.ladder-base .ladder-step { color: var(--muted); }

.ladder-base strong,
.ladder-card strong { font-size: 0.86rem; }

.ladder-price { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.02em; }
.ladder-meta { font-size: 0.68rem; color: var(--muted); }
.ladder-score { margin-top: auto; font-size: 0.64rem; font-weight: 700; color: var(--good); }
.ladder-note { margin: 12px 0 0; font-size: 0.7rem; color: var(--muted); }

/* --------------------------- ownership timeline -------------------------- */

.timeline-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 4px 0;
  overflow-x: auto;
}

.timeline-col {
  flex: 1 0 58px;
  min-width: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.timeline-total { font-size: 0.64rem; font-weight: 700; color: var(--muted); white-space: nowrap; }

.timeline-bar {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.timeline-stack {
  width: 70%;
  max-width: 42px;
  min-height: 6px;
  display: flex;
  flex-direction: column-reverse;
  border-radius: 8px 8px 4px 4px;
  overflow: hidden;
}

.seg { display: block; flex-basis: 0; flex-shrink: 1; width: 100%; }

.seg-dep { background: #0c6b5d; }
.seg-fuel { background: #f59e0b; }
.seg-ins { background: #2f7fbf; }
.seg-maint { background: #b8a88f; }

.timeline-year { font-size: 0.68rem; color: var(--muted); }
.timeline-worth { font-size: 0.62rem; font-weight: 700; color: var(--brand); white-space: nowrap; }

.timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
  font-size: 0.7rem;
  color: var(--muted);
}

.timeline-legend span { display: inline-flex; align-items: center; gap: 6px; }
.timeline-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.timeline-legend .seg-dep { background: #0c6b5d; }
.timeline-legend .seg-fuel { background: #f59e0b; }
.timeline-legend .seg-ins { background: #2f7fbf; }
.timeline-legend .seg-maint { background: #b8a88f; }

.timeline-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 14px 0 8px;
}

.timeline-foot div { display: flex; flex-direction: column; gap: 2px; }

.timeline-foot span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.timeline-foot strong { font-size: 1.1rem; letter-spacing: -0.02em; }

/* ------------------------------ quote checker ---------------------------- */

.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 22px;
}

.quote-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.quote-form .field { flex: 1 1 220px; }

.quote-result {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(12, 107, 93, 0.05);
}

.quote-result.high { background: rgba(185, 28, 28, 0.07); border-color: rgba(185, 28, 28, 0.25); }
.quote-result.low { background: rgba(21, 128, 61, 0.07); border-color: rgba(21, 128, 61, 0.25); }

.quote-result-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.quote-result-line strong { font-size: 1.05rem; color: var(--ink); }
.quote-result p { margin: 6px 0 0; font-size: 0.84rem; font-weight: 600; }
.quote-hint { font-size: 0.74rem !important; font-weight: 400 !important; color: var(--muted); }

.quote-side { display: flex; flex-direction: column; gap: 14px; }

.quote-breakdown {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.quote-tips {
  padding: 12px 14px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.09);
}

.quote-tips strong { font-size: 0.8rem; }

.quote-tips ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 0.76rem;
  color: var(--muted);
}

/* ------------------------------- how it works ---------------------------- */

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.how-step {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(12, 107, 93, 0.05), transparent 65%),
    var(--card);
}

.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

.how-step h3 { margin: 10px 0 6px; font-size: 0.98rem; }
.how-step p { margin: 0; font-size: 0.8rem; color: var(--muted); }

/* ---------------------------------- FAQ ---------------------------------- */

.faq-list { display: grid; gap: 8px; }

.faq-item {
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 0;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.1rem;
  color: var(--brand);
}

.faq-item[open] summary::after { content: "\2013"; }

.faq-item p {
  max-width: 75ch;
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* --------------------------------- footer -------------------------------- */

.site-footer {
  margin-top: 36px;
  padding: 28px 0 22px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(12, 107, 93, 0.04), transparent 40%),
    var(--card);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 26px;
  margin: 24px 0;
}

.footer-brand p {
  max-width: 34ch;
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-note { font-size: 0.7rem !important; }

.footer-grid nav { display: flex; flex-direction: column; gap: 7px; }

.footer-grid h3 {
  margin: 0 0 4px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-grid a,
.footer-grid .link-btn {
  font-size: 0.8rem;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
}

.footer-grid a:hover,
.footer-grid .link-btn:hover { color: var(--brand); text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  max-width: 80ch;
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

/* ------------------------------ dark theme ------------------------------- */

html[data-theme="dark"] {
  --bg: #0a1512;
  --card: #10211c;
  --ink: #e9f5ef;
  --muted: #9db3aa;
  --line: #22362f;
  --brand: #5eead4;
  --brand-2: #34d399;
  --accent: #fbbf24;
  --accent-2: #f59e0b;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  --hero-ink: #eafff9;
  --hero-muted: #9fc3b8;
  --good: #86efac;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(52, 211, 153, 0.08), transparent 60%),
    radial-gradient(700px 380px at 90% 0%, rgba(251, 191, 36, 0.06), transparent 55%),
    var(--bg);
}

html[data-theme="dark"] .topbar { background: rgba(10, 21, 18, 0.92); }

html[data-theme="dark"] .hero {
  background:
    radial-gradient(700px 360px at 88% 0%, rgba(52, 211, 153, 0.28), transparent 62%),
    radial-gradient(520px 320px at 8% 100%, rgba(251, 191, 36, 0.12), transparent 60%),
    linear-gradient(135deg, #06110f 0%, #0a2a24 52%, #071713 100%);
}

html[data-theme="dark"] .deal-board .db-card,
html[data-theme="dark"] .how-step,
html[data-theme="dark"] .ladder-base {
  background:
    linear-gradient(180deg, rgba(94, 234, 212, 0.06), transparent 62%),
    var(--card);
}

html[data-theme="dark"] .deal-board .db-label.label-3 { color: var(--brand); }
html[data-theme="dark"] .owncab-bar { background: rgba(255, 255, 255, 0.1); }
html[data-theme="dark"] .timeline-year,
html[data-theme="dark"] .timeline-total { color: var(--muted); }

/* ------------------------------- responsive ------------------------------ */

@media (max-width: 1024px) {
  .topbar-tag { display: none; }
  .deal-board .deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ladder-track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .topbar-search { flex: 1 1 auto; }
  .quote-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .owncab-grid { grid-template-columns: 1fr; }
  .owncab-vs { display: none; }
  .ladder-track {
    display: flex;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .ladder-base,
  .ladder-card { flex: 0 0 160px; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 104px; }
  .topbar-inner { height: 60px; }
  .topbar-search { display: none; }
  .topbar-cta { display: none; }
  .topbar-sub { padding-bottom: 8px; }
  .hero { padding: 22px 18px; border-radius: 20px; }
  .hero-motto { gap: 8px; margin-top: 12px; }
  .hero-motto-text { font-size: 0.88rem; }
  .deal-board .deal-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .timeline-bar { height: 120px; }
  .timeline-col { flex-basis: 46px; min-width: 46px; }
  .hero-trust { gap: 4px 10px; font-size: 0.68rem; }
}

@media (max-width: 420px) {
  .snapshot-grid { grid-template-columns: 1fr; }
  .snapshot-wide { grid-column: auto; }
  .hero .kpis { grid-template-columns: 1fr 1fr; }
}


/* ------------------------ hero quick-view sheets ------------------------ */

.hero-sheet {
  width: min(960px, 100%);
  padding-top: 0;
}

.sheet-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -20px 16px;
  padding: 12px 20px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.sheet-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-sheet .card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-sheet .section-head { margin-top: 0; }

.hero-browse-search { margin: 14px 0 16px; }

.hero-browse-search input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
}

.hero-browse-search input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
}

.hero-browse-list {
  display: grid;
  gap: 10px;
}

.hero-browse-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.hero-browse-img {
  width: 104px;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
}

.hero-browse-body h3 {
  margin: 1px 0 2px;
  font-size: 0.98rem;
}

.hero-browse-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-browse-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}

.hero-browse-side > span {
  font-weight: 700;
  font-size: 0.92rem;
}

.hero-browse-side small {
  display: block;
  font-weight: 500;
  font-size: 0.66rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-browse-more {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.sheet-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
}

.sheet-tab {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.sheet-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

html[data-theme="dark"] .sheet-tab.active { color: #0b1220; }

html[data-theme="dark"] .hero-browse-search input,
html[data-theme="dark"] .hero-browse-row {
  background: #0f1a2b;
  color: var(--ink);
}

@media (max-width: 640px) {
  .hero-sheet {
    padding: 0 14px 16px;
    border-radius: 14px;
  }
  .sheet-bar {
    margin: 0 -14px 14px;
    padding: 10px 14px;
  }
  .hero-browse-row { grid-template-columns: 84px minmax(0, 1fr); }
  .hero-browse-img { width: 84px; }
  .hero-browse-side {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
  .hero-browse-side small {
    display: inline;
    margin-left: 6px;
  }
}

/* ==========================================================================
   Best-selling models board + AI advisor
   ========================================================================== */

.best-sellers { margin-top: 18px; }

.bs-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.bs-podium-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(20, 155, 134, 0.08), var(--card) 62%);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.bs-podium-card:hover,
.bs-podium-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
  outline: none;
}

.bs-podium-card.bs-rank-1 {
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.16), var(--card) 64%);
  border-color: rgba(245, 158, 11, 0.4);
}

.bs-medal {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.bs-rank-1 .bs-medal { color: #b45309; }

.bs-podium-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  margin: 4px 0 6px;
}

.bs-podium-card .car-brand {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.bs-podium-card strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.bs-podium-units {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 2px;
}

.bs-yoy {
  margin-top: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.bs-yoy.down {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.bs-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.bs-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1.4fr) minmax(90px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 2px;
  border-top: 1px dashed var(--line);
}

.bs-row:first-child { border-top: 0; }

.bs-pos {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
}

.bs-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bs-name strong {
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bs-name span {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bs-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.bs-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.bs-figure {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}

.bs-figure strong { font-size: 0.84rem; }

.bs-figure small {
  font-size: 0.68rem;
  font-weight: 700;
  color: #15803d;
}

.bs-figure small.down { color: #b91c1c; }

.bs-note {
  margin: 14px 0 0;
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--muted);
}

/* --------------------------------- AI advisor ---------------------------- */

.ai-studio { margin-top: 18px; }

.ai-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.6fr);
  gap: 18px;
  margin-top: 4px;
}

.ai-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 107, 93, 0.035);
}

.ai-privacy {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--muted);
}

.ai-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.ai-best {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.09), var(--card) 58%);
}

.ai-best-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.ai-best-img {
  width: 100%;
  aspect-ratio: 16 / 11;
}

.ai-match {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(120deg, #7c3aed, #2563eb);
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.ai-best-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ai-best-body .eyebrow { margin-bottom: 8px; }

.ai-best-body h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.ai-figures {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 8px 0 10px;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

.ai-figures span {
  display: flex;
  flex-direction: column;
  font-size: 0.68rem;
  color: var(--muted);
}

.ai-figures strong {
  font-size: 0.98rem;
  color: var(--ink);
}

.ai-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
}

.ai-chip {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brand);
  background: rgba(20, 155, 134, 0.08);
  border: 1px solid rgba(20, 155, 134, 0.18);
  padding: 3px 9px;
  border-radius: 999px;
}

.ai-watch {
  margin: 10px 0 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.ai-watch strong { color: var(--accent); }

.ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ai-next {
  margin: 10px 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
}

.ai-next strong { color: var(--ink); }

.ai-confidence {
  margin: 8px 0 0;
  font-size: 0.7rem;
  color: var(--muted);
}

.ai-alt {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.ai-alt-img {
  width: 92px;
  aspect-ratio: 16 / 11;
  border-radius: 8px;
  overflow: hidden;
}

.ai-alt-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ai-alt-match {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}

.ai-alt-body strong { font-size: 0.86rem; }

.ai-alt-body > span:last-child {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-colour {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.ai-colour-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.ai-colour-head h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.ai-colour-head p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.ai-colour-body {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(180px, 1fr);
  gap: 16px;
  margin-top: 14px;
}

.ai-colour-preview {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
}

.ai-colour-art {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.ai-colour-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
}

.ai-colour-meta strong { font-size: 0.92rem; }

.ai-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-tag {
  font-size: 0.66rem;
  font-weight: 600;
  color: #0f766e;
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.18);
  padding: 2px 8px;
  border-radius: 999px;
}

.ai-colour-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 107, 93, 0.035);
}

.ai-take {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}

.ai-take strong { color: var(--ink); }

.ai-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.ai-swatch {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--muted);
  font: inherit;
  font-size: 0.66rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ai-swatch:hover { border-color: var(--brand); }

.ai-swatch.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.25);
  color: var(--ink);
}

.ai-swatch-art {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
}

.ai-swatch span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* dark theme */

html[data-theme="dark"] .ai-form,
html[data-theme="dark"] .ai-colour-side {
  background: rgba(94, 234, 212, 0.05);
}

html[data-theme="dark"] .bs-yoy {
  background: rgba(74, 222, 128, 0.16);
  color: #86efac;
}

html[data-theme="dark"] .bs-yoy.down {
  background: rgba(248, 113, 113, 0.16);
  color: #fca5a5;
}

html[data-theme="dark"] .bs-figure small { color: #86efac; }
html[data-theme="dark"] .bs-figure small.down { color: #fca5a5; }

html[data-theme="dark"] .bs-track { background: rgba(255, 255, 255, 0.12); }

html[data-theme="dark"] .ai-chip {
  color: var(--brand);
  background: rgba(94, 234, 212, 0.12);
  border-color: rgba(94, 234, 212, 0.26);
}

html[data-theme="dark"] .ai-watch strong { color: #fcd34d; }

html[data-theme="dark"] .ai-tag {
  color: #5eead4;
  background: rgba(45, 212, 191, 0.14);
  border-color: rgba(45, 212, 191, 0.28);
}

html[data-theme="dark"] .ai-swatch.active {
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.4);
}

/* car names, images and rows double as "take me to the hero" actions */

.bs-name-btn,
.ai-best-media-btn,
.ai-best-name,
.ai-alt-body-btn,
.car-card-pick,
.car-name-btn,
.car-brand-btn {
  font: inherit;
  color: inherit;
  text-align: left;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 8px;
}

.bs-name-btn:hover strong,
.ai-best-name:hover,
.ai-alt-body-btn:hover strong,
.car-name-btn:hover,
.car-brand-btn:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bs-name-btn:focus-visible,
.ai-best-media-btn:focus-visible,
.ai-best-name:focus-visible,
.ai-alt-body-btn:focus-visible,
.car-card-pick:focus-visible,
.car-name-btn:focus-visible,
.car-brand-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.ai-best-media-btn {
  display: block;
  width: 100%;
  align-self: start;
  outline-offset: -3px;
}

.ai-best-name,
.car-name-btn {
  display: inline;
}

.ai-alt-body-btn {
  width: 100%;
}

.car-card-pick {
  display: block;
  width: 100%;
}

.car-brand-btn {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

/* badges are labels, not controls: let clicks reach the card image behind them */
.car-card-media .car-badge {
  pointer-events: none;
}

/* responsive */

@media (max-width: 860px) {
  .ai-grid { grid-template-columns: minmax(0, 1fr); }
  .ai-best { grid-template-columns: minmax(0, 1fr); }
  .ai-colour-body { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .bs-podium { grid-template-columns: minmax(0, 1fr); }
  .bs-row {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 8px;
  }
  .bs-track { display: none; }
  .bs-row .btn { grid-column: 2 / -1; justify-self: start; }
  .bs-figure { align-items: flex-end; }
  .ai-alt { grid-template-columns: 72px minmax(0, 1fr); }
  .ai-alt-img { width: 72px; }
  .ai-alt .btn { grid-column: 1 / -1; justify-self: start; }
  .ai-figures { gap: 8px 14px; }
}

/* ==========================================================================
   Real-Life Fit Test — speed breaker + passenger load
   ========================================================================== */

.fit-lab { margin-top: 18px; }

.fit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.9fr);
  gap: 18px;
  align-items: start;
  margin-top: 6px;
}

.fit-stage,
.fit-controls {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.fit-stage {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.07), var(--card) 60%);
}

.fit-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.fit-stage-head strong { font-size: 0.98rem; }

.fit-verdict {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.fit-verdict.fit-clear { background: rgba(22, 163, 74, 0.14); color: #15803d; }
.fit-verdict.fit-tight { background: rgba(217, 119, 6, 0.14); color: #b45309; }
.fit-verdict.fit-scrape { background: rgba(220, 38, 38, 0.14); color: #b91c1c; }

.fit-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

.fit-tab {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.fit-tab.active {
  border-color: var(--brand);
  background: rgba(29, 78, 216, 0.1);
  color: var(--brand);
}

.fit-scene {
  display: block;
  width: 100%;
  height: auto;
  margin: 6px 0;
}

.fit-svg-label { font-size: 13px; font-weight: 800; }

.fit-car { animation: fit-approach 3.2s ease-in-out infinite alternate; }

@keyframes fit-approach {
  from { transform: translateX(0); }
  to { transform: translateX(28px); }
}

@media (prefers-reduced-motion: reduce) {
  .fit-car { animation: none; }
}

.fit-readout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.fit-readout span {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.fit-readout small { font-size: 0.66rem; color: var(--muted); }
.fit-readout strong { font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.fit-margin.fit-clear { color: #15803d; }
.fit-margin.fit-tight { color: #b45309; }
.fit-margin.fit-scrape { color: #b91c1c; }

.fit-controls { display: flex; flex-direction: column; gap: 12px; }

.fit-field { display: grid; gap: 6px; font-size: 0.8rem; font-weight: 600; }
.fit-field > span { display: flex; justify-content: space-between; gap: 8px; }
.fit-field b { color: var(--brand); font-variant-numeric: tabular-nums; }
.fit-field select,
.fit-field input[type="range"] { width: 100%; }

.fit-field select {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
}

.fit-field input[type="range"] { accent-color: var(--brand); }

.fit-testing {
  margin: 0;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(29, 78, 216, 0.07);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
}

.fit-presets { display: flex; flex-wrap: wrap; gap: 6px; }

.fit-preset {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font: inherit;
  font-size: 0.74rem;
  cursor: pointer;
}

.fit-preset.active,
.fit-preset:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(29, 78, 216, 0.07);
}

.fit-note { margin: 0; color: var(--muted); font-size: 0.72rem; line-height: 1.5; }
.fit-actions { display: flex; flex-wrap: wrap; gap: 8px; }

html[data-theme="dark"] .fit-stage {
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.1), var(--card) 60%);
}

html[data-theme="dark"] .fit-field select,
html[data-theme="dark"] .fit-preset,
html[data-theme="dark"] .fit-tab {
  background: #111c30;
  color: var(--ink);
}

@media (max-width: 860px) {
  .fit-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .fit-readout { grid-template-columns: minmax(0, 1fr); }
  .fit-actions .btn { flex: 1 1 140px; }
}

/* ==========================================================================
   Life-fit shortlist quiz
   ========================================================================== */

.life-fit { margin-top: 18px; }

.lf-fields {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.lf-field { display: grid; align-content: start; gap: 6px; font-size: 0.78rem; font-weight: 600; }
.lf-field > span { display: flex; justify-content: space-between; gap: 6px; }
.lf-field b { color: var(--brand); font-variant-numeric: tabular-nums; }

.lf-field select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
}

.lf-field input[type="range"] { width: 100%; accent-color: var(--brand); }
.lf-options { display: flex; flex-wrap: wrap; gap: 6px; }

.lf-option {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.lf-option.active {
  border-color: var(--brand);
  background: rgba(29, 78, 216, 0.1);
  color: var(--brand);
}

.lf-results-title { margin: 18px 0 10px; font-size: 1rem; }

.lf-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.lf-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(20, 155, 134, 0.08), var(--card) 62%);
}

.lf-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.lf-card-head > div { display: grid; gap: 2px; min-width: 0; }
.lf-card-head strong { font-size: 0.94rem; }
.lf-card-head .car-brand { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.lf-badge {
  flex: none;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.lf-badge.lf-clear { background: rgba(22, 163, 74, 0.14); color: #15803d; }
.lf-badge.lf-tight { background: rgba(217, 119, 6, 0.14); color: #b45309; }
.lf-badge.lf-scrape { background: rgba(220, 38, 38, 0.14); color: #b91c1c; }

.lf-img { width: 100%; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; }

.lf-figures { display: grid; gap: 4px; font-size: 0.78rem; }
.lf-figures span { display: flex; justify-content: space-between; gap: 8px; }
.lf-figures small { color: var(--muted); }
.lf-figures strong { font-variant-numeric: tabular-nums; }
.lf-card .btn { margin-top: auto; align-self: flex-start; }

.lf-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

html[data-theme="dark"] .lf-field select,
html[data-theme="dark"] .lf-option {
  background: #111c30;
  color: var(--ink);
}

@media (max-width: 900px) {
  .lf-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lf-results { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .lf-fields { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------- shortlist, fit extras, methodology ---------------- */

.lifefit-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  white-space: nowrap;
  background: rgba(29, 78, 216, 0.07);
  color: var(--brand);
}
.lifefit-badge.lf-clear { color: #15803d; border-color: rgba(22, 163, 74, .35); background: rgba(22, 163, 74, .1); }
.lifefit-badge.lf-tight { color: #b45309; border-color: rgba(217, 119, 6, .35); background: rgba(217, 119, 6, .1); }
.lifefit-badge.lf-scrape { color: #b91c1c; border-color: rgba(220, 38, 38, .35); background: rgba(220, 38, 38, .1); }

.shortlist-btn,
.shortlist-top-btn {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  color: var(--ink);
  font-family: inherit;
  font-size: .74rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s;
}
.shortlist-btn { padding: 6px 9px; }
.shortlist-btn:hover,
.shortlist-top-btn:hover { border-color: var(--brand); color: var(--brand); }
.shortlist-btn.saved,
.shortlist-top-btn { color: #be123c; border-color: rgba(190, 18, 60, .35); background: rgba(190, 18, 60, .07); }
.shortlist-top-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; }
.shortlist-top-btn span { font-size: .74rem; }

.shortlist-panel { width: min(680px, 100%); }
.shortlist-list { display: grid; gap: 8px; }
.shortlist-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.shortlist-img { width: 84px; height: 54px; object-fit: cover; border-radius: 8px; }
.shortlist-item .car-brand { display: block; font-size: .72rem; color: var(--muted); }
.shortlist-item strong { display: block; font-size: .9rem; }
.shortlist-item a { color: var(--brand); font-size: .76rem; font-weight: 700; text-decoration: none; }
.shortlist-item a:hover { text-decoration: underline; }

.fit-compare {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: .78rem;
}
.fit-compare span { font-weight: 800; }
.fit-compare.lf-clear span { color: #15803d; }
.fit-compare.lf-tight span { color: #b45309; }
.fit-compare.lf-scrape span { color: #b91c1c; }

.fit-specs { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.fit-specs-toggle {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: var(--card);
  color: var(--ink);
  font-family: inherit;
  font-size: .78rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.fit-specs-toggle:hover { color: var(--brand); }
.fit-specs-body { display: grid; gap: 8px; padding: 0 12px 12px; }
.fit-specs-body .fit-note { margin: 0 0 4px; }
.fit-qr-panel { width: min(420px, 100%); text-align: center; }
.fit-qr-img { width: 240px; max-width: 100%; image-rendering: pixelated; }

.lf-score {
  display: inline-block;
  margin: 6px 0 2px;
  font-size: .72rem;
  font-weight: 800;
  color: var(--brand);
}
.lf-detail-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--brand);
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
}
.lf-detail-link:hover { text-decoration: underline; }

.method-card { margin-top: 18px; }
.method-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.method-head h2 { font-size: 1.15rem; margin: 0; }
.method-card p { color: var(--muted); font-size: .88rem; line-height: 1.6; }
.method-card a { color: var(--brand); font-size: .84rem; font-weight: 700; text-decoration: none; }
.method-card a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .shortlist-top-btn span { display: none; }
  .shortlist-item { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .shortlist-item a { grid-column: 2 / -1; }
  .shortlist-img { width: 64px; height: 44px; }
  .method-head { flex-direction: column; align-items: flex-start; }
}

/* ---------------------- compact discovery layout ---------------------- */

/* The landing page carries a lot of tools. Keep the first screen focused and
   move secondary tools into labelled drawers instead of one endless scroll. */
.hero { padding: 28px 0 18px; }
main.wrap .content > section:not(.hero),
main.wrap .content > .card { margin-top: 14px; }

.content-fold {
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.content-fold > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.content-fold > summary::-webkit-details-marker { display: none; }
.content-fold > summary:hover { color: var(--brand); }

.fold-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.fold-title strong { font-size: 1.02rem; }
.fold-title span { color: var(--muted); font-size: .82rem; }

.fold-toggle {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(29, 78, 216, 0.1);
  color: var(--brand);
  font-weight: 800;
  font-size: 1.05rem;
}
.content-fold[open] .fold-toggle { transform: rotate(45deg); }

.fold-body {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
}
.fold-body > * { margin: 0 !important; }

html[data-theme="dark"] .content-fold { background: #111c2e; }
html[data-theme="dark"] .fold-toggle { background: rgba(96, 165, 250, 0.16); color: #93c5fd; }

.dealer-offer-modal textarea { min-height: 88px; resize: vertical; }
.dealer-offer-list { margin-top: 14px; display: grid; gap: 6px; font-size: .88rem; }
.dealer-offer-list p { margin: 0; color: var(--muted); }
.dealer-offer-list b { color: var(--ink); }

@media (max-width: 720px) {
  .hero { padding: 20px 0 14px; }
  .content-fold > summary { padding: 12px 14px; }
  .fold-body { padding: 0 14px 14px; }
  .fold-title { flex-direction: column; gap: 2px; }
}
