/* Broker Black design system v3: "the private office".
   White in the light, ink in the dark, never beige. Two type voices:
   Fraunces (a soft, editorial serif at light weights) for headlines and
   numbers, Inter for everything you read or click. The only color on the
   site is the metal in the wordmark (white, silver, gold); every other
   accent is silver or pure contrast (ink on white, white on ink). Rounded
   surfaces, hairline rules, photography does the talking. Prose always
   fills its container: no character caps, no truncation. */
:root {
  --bg: #ffffff;
  --bg-2: #f4f4f6;
  --panel: #ffffff;
  --panel-glass: rgba(255, 255, 255, .86);
  --line: rgba(10, 10, 12, .1);
  --line-strong: rgba(10, 10, 12, .26);
  --fg: #111214;
  --dim: #66686d;
  --acc: #111214;
  --acc-ink: #ffffff;
  --gold: #7c7f87;        /* "metal" accent on surfaces: silver, never gold or beige */
  --gold-2: #e6e7eb;      /* light silver fill (save pills) */
  --silver: #9a9ca3;
  --input-bg: #ffffff;
  --shadow: 0 12px 40px rgba(10, 10, 12, .08);
  --scrim: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .72) 100%);
  --logo-a: #111214;
  --logo-b: #8b8d94;
  --logo-c: #a4852f;      /* the one gold on the site: the wordmark sweep */
  --good: #2f7d4f;
  --warn: #b5541f;
  --r: 14px;
  --r-btn: 10px;
  --display: 'Fraunces', 'Iowan Old Style', 'Palatino', Georgia, serif;
  --body: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
  /* Legacy aliases: the earlier templates reference these names. */
  --asphalt: var(--bg);
  --asphalt-2: var(--bg-2);
  --white: var(--fg);
  --gray: var(--dim);
  --red: var(--acc);
  --red-hot: var(--gold);
  --yellow: var(--gold);
  --condensed: var(--body);
  --serif: var(--display);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0c0c0d;
  --bg-2: #111113;
  --panel: #161618;
  --panel-glass: rgba(14, 14, 16, .86);
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .3);
  --fg: #f1f1f3;
  --dim: #9c9da3;
  --acc: #f1f1f3;
  --acc-ink: #0c0c0d;
  --gold: #b9bbc2;
  --gold-2: #2a2b30;
  --silver: #c4c5ca;
  --input-bg: #0f0f11;
  --shadow: 0 16px 48px rgba(0, 0, 0, .5);
  --scrim: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .78) 100%);
  --logo-a: #ffffff;
  --logo-b: #b9b9b9;
  --logo-c: #d4b56a;
  --good: #7fc79a;
  --warn: #e0a05a;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0c0d;
    --bg-2: #111113;
    --panel: #161618;
    --panel-glass: rgba(14, 14, 16, .86);
    --line: rgba(255, 255, 255, .12);
    --line-strong: rgba(255, 255, 255, .3);
    --fg: #f1f1f3;
    --dim: #9c9da3;
    --acc: #f1f1f3;
    --acc-ink: #0c0c0d;
    --gold: #b9bbc2;
    --gold-2: #2a2b30;
    --silver: #c4c5ca;
    --input-bg: #0f0f11;
    --shadow: 0 16px 48px rgba(0, 0, 0, .5);
    --scrim: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .78) 100%);
    --logo-a: #ffffff;
    --logo-b: #b9b9b9;
    --logo-c: #d4b56a;
    --good: #7fc79a;
    --warn: #e0a05a;
    color-scheme: dark;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}
b, strong { font-weight: 600; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
a { color: inherit; }
img { max-width: 100%; }
::selection { background: var(--gold-2); color: var(--fg); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
/* App pages (shop, vehicle, garage) grow with the browser. */
.wrap-wide { max-width: min(96vw, 1760px); }
@media (max-width: 640px) { .wrap, .wrap-wide { padding: 0 18px; } }

/* ---------- Type ---------- */
h1, h2, h3 { font-weight: 300; text-transform: none !important; letter-spacing: -0.02em; }
h1 { font-family: var(--display); font-size: clamp(38px, 5vw, 66px); line-height: 1.04; font-variation-settings: 'opsz' 96; }
h2 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 46px); line-height: 1.08; margin-bottom: 16px; font-variation-settings: 'opsz' 72; }
h3 { font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: -0.01em; }
h1 .redline, h2 .redline, .redline, h1 em, h2 em { font-style: normal; font-weight: 500; color: var(--fg); }
h1 .stroke { color: var(--dim); }
.h1-page { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.05; }
.kicker { font-family: var(--body); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); font-size: 12px; margin-bottom: 18px; }
.lead, .hero p.lead { margin-top: 22px; font-size: 19px; color: var(--dim); line-height: 1.6; }
.hero p.lead strong { color: var(--fg); font-weight: 500; }
.section-sub { color: var(--dim); font-size: 18px; line-height: 1.65; }
.hero-ctas { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.num, .tabular { font-variant-numeric: tabular-nums; }

/* ---------- Buttons: rounded, sentence case, contrast is the accent ---------- */
.btn, .dbtn, .dbtn-outline, .btn-outline {
  display: inline-block; box-sizing: border-box; text-align: center; text-decoration: none; cursor: pointer;
  font-family: var(--body); font-weight: 500; font-size: 14px; letter-spacing: 0; line-height: 1.2;
  padding: 14px 24px; border-radius: var(--r-btn); border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover, .dbtn:hover { transform: translateY(-1px); }
.btn-red, .dbtn { background: var(--acc); color: var(--acc-ink); }
.btn-red:hover, .dbtn:hover { box-shadow: var(--shadow); }
.btn-ghost, .dbtn-outline, .btn-outline { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn-ghost:hover, .dbtn-outline:hover, .btn-outline:hover { border-color: var(--fg); }
.dbtn-outline.on { border-color: var(--fg); background: var(--bg-2); }
.btn-full { display: block; width: 100%; }
.btn-left { text-align: left; }
.dbtn[disabled], .btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* ---------- Wordmark: THE BROKER BLACK in tracked capitals, white to silver to gold, always moving ---------- */
.logo {
  font-family: 'Jost', 'Futura', 'Avenir Next', 'Helvetica Neue', sans-serif; font-weight: 400; font-size: 15px; letter-spacing: 0.32em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  background: linear-gradient(100deg, var(--logo-a) 0%, var(--logo-a) 30%, var(--logo-b) 48%, var(--logo-c) 62%, var(--logo-b) 76%, var(--logo-a) 100%);
  background-size: 320% 100%; background-position: 0% 50%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: logoSheen 9s ease-in-out infinite;
}
.logo em { font-style: normal; }
@keyframes logoSheen { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@media (prefers-reduced-motion: reduce) { .logo { animation: none; background-position: 60% 50%; } }

/* ---------- Nav ---------- */
nav { position: sticky; top: 0; z-index: 50; background: var(--panel-glass); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--dim); text-decoration: none; font-family: var(--body); font-weight: 500; font-size: 14px; transition: color .18s; white-space: nowrap; padding: 10px 0; }
.nav-links a:hover { color: var(--fg); }
.nav-links a.cta { background: var(--acc); color: var(--acc-ink); padding: 10px 16px; border-radius: var(--r-btn); }
.nav-links a.cta:hover { color: var(--acc-ink); box-shadow: var(--shadow); }
.nav-pitcrew { background: transparent; color: var(--fg) !important; cursor: pointer; border: 1px solid var(--line-strong); border-radius: var(--r-btn); font-family: var(--body); font-weight: 500; font-size: 13.5px; padding: 9px 14px; display: inline-block; transition: border-color .2s; }
.nav-pitcrew span { display: inline-block; }
.nav-pitcrew:hover { border-color: var(--fg); }
/* theme toggle (injected by theme.js) */
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--fg); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: border-color .18s, transform .3s; }
.theme-toggle:hover { border-color: var(--fg); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .ic-moon { display: none; }
[data-theme="dark"] .theme-toggle .ic-moon { display: block; }
[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .ic-moon { display: block; } :root:not([data-theme="light"]) .theme-toggle .ic-sun { display: none; } }
/* Tablet widths: tighter row, the secondary links step out before anything overflows. */
@media (max-width: 1180px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13px; }
  .nav-links a.cta { padding: 9px 12px; }
}
@media (max-width: 980px) {
  .nav-links a[href="/brands"], .nav-links a[href="/cities"], .nav-links a[href="/learn"] { display: none; }
}
/* Phones: wordmark, CTA, toggle and a Menu button stay in the bar; the links open as a sheet under it. */
.nav-menu { display: none; }
@media (max-width: 720px) {
  .nav-inner { height: 60px; gap: 8px; }
  .logo { font-size: 12px; letter-spacing: 0.26em; flex: 0 0 auto; }
  .nav-menu { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-btn); background: transparent; color: var(--fg); font-family: var(--body); font-weight: 500; font-size: 13px; cursor: pointer; flex: 0 0 auto; margin-left: auto; }
  .nav-links { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 18px 14px; background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  nav.open .nav-links { display: flex; }
  .nav-links a, .nav-links .nav-pitcrew, .nav-links a[href="/brands"], .nav-links a[href="/cities"], .nav-links a[href="/learn"], .nav-links a:not(.cta):not(.keep) { display: block; font-size: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); border-radius: 0; text-align: left; margin: 0; }
  .nav-links .nav-pitcrew { border: 0; border-bottom: 1px solid var(--line); }
  .nav-links a.cta { margin-top: 10px; border: 0; border-radius: var(--r-btn); padding: 12px 16px; text-align: center; }
  .theme-toggle { width: 40px; height: 40px; }
}



/* ---------- Specials strip (injected by specials.js, under the nav): a quiet ticker of offers ---------- */
.offer-strip-wrap { position: relative; border-bottom: 1px solid var(--line); background: var(--bg); }
.offer-strip { display: flex; align-items: stretch; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 44px; scrollbar-width: none; padding: 0 44px; }
.offer-strip::-webkit-scrollbar { display: none; }
.offer-mini { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; padding: 9px 22px 9px 0; margin-right: 22px; border-right: 1px solid var(--line); scroll-snap-align: start; min-width: 250px; transition: opacity .18s; }
.offer-mini:last-child { border-right: 0; }
.offer-mini:hover .om-t { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.om-img { width: 54px; height: 36px; object-fit: cover; border-radius: 4px; flex: 0 0 auto; background: var(--bg-2); }
.om-copy { display: flex; flex-direction: column; line-height: 1.3; }
.om-tag { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 500; }
.om-t { font-size: 13.5px; font-weight: 500; white-space: nowrap; color: var(--fg); }
.strip-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--panel-glass); backdrop-filter: blur(6px); color: var(--fg); cursor: pointer; font-size: 14px; line-height: 1; z-index: 2; display: flex; align-items: center; justify-content: center; transition: border-color .18s; }
.strip-arrow:hover { border-color: var(--fg); }
.strip-arrow.left { left: 8px; } .strip-arrow.right { right: 8px; }
@media (max-width: 640px) { .strip-arrow { display: none; } .offer-strip { padding: 0 18px; scroll-padding-inline: 18px; } .offer-mini { min-width: 230px; margin-right: 16px; padding-right: 16px; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 72px; background: var(--bg); overflow: hidden; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
section.dark { background: var(--bg-2); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head h2 { margin: 0; }
.sec-head .more { font-weight: 500; font-size: 14px; color: var(--dim); text-decoration: none; white-space: nowrap; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.sec-head .more:hover { color: var(--fg); border-color: var(--fg); }

/* Safari paints a transformed child (the hover zoom) outside a rounded overflow:hidden box; a mask keeps it clipped. */
.deal-card, .action-tile, .tile, .gal-frame, .hero-photo, .conc-photo { -webkit-mask-image: -webkit-radial-gradient(#fff, #000); transform: translateZ(0); }
/* Editorial photo cards (the "deals" grid) */
.deal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 18px; }
.deal-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 460px; border-radius: var(--r); overflow: hidden; background: var(--bg-2); color: #fff; text-decoration: none; isolation: isolate; }
.deal-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.16, 1, .3, 1); z-index: -1; }
.deal-card::before { content: ''; position: absolute; inset: 0; background: var(--scrim); z-index: 0; }
.deal-card:hover img { transform: scale(1.04); }
.deal-card .dc-body { position: relative; z-index: 1; padding: 26px 26px 24px; }
.deal-card .dc-tag { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .78); font-weight: 500; }
.deal-card .dc-title { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.1; margin: 6px 0 4px; letter-spacing: -0.01em; }
.deal-card .dc-pay { font-family: var(--display); font-weight: 300; font-size: 24px; margin-top: 2px; }
.deal-card .dc-pay small { font-family: var(--body); font-size: 13px; color: rgba(255, 255, 255, .8); }
.deal-card .dc-terms { font-size: 12.5px; color: rgba(255, 255, 255, .78); margin-top: 4px; line-height: 1.45; }
.deal-card .dc-cta { display: inline-block; margin-top: 14px; padding: 10px 16px; border: 1px solid rgba(255, 255, 255, .7); border-radius: var(--r-btn); color: #fff; font-size: 13.5px; font-weight: 500; background: rgba(0, 0, 0, .18); backdrop-filter: blur(6px); }
.deal-card:hover .dc-cta { background: #fff; color: #141414; border-color: #fff; }
@media (max-width: 640px) { .deal-card { min-height: 380px; } }

/* Six-tile action grid (Shop new, Lease, Finance, Delivery, Test drive, Trade) */
.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.action-tile { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--bg-2); color: #fff; text-decoration: none; isolation: isolate; }
.action-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.16, 1, .3, 1); z-index: -1; }
.action-tile::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, .45) 70%, rgba(0, 0, 0, .8) 100%); }
.action-tile:hover img { transform: scale(1.04); }
.action-tile .at-copy { position: absolute; left: 22px; right: 22px; bottom: 18px; display: flex; flex-direction: column; gap: 6px; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.action-tile .at-label { display: flex; align-items: center; justify-content: space-between; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.action-tile .at-kicker { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .8); font-weight: 500; line-height: 1.4; }
.action-tile .at-label svg { width: 20px; height: 20px; flex: 0 0 auto; transition: transform .25s; }
.action-tile:hover .at-label svg { transform: translateX(4px); }

/* Bars: vehicle finder, trade, payment configurator (inline forms in a panel) */
.bar { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); }
.bar-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.bar-title { font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: -0.01em; }
.bar-note { color: var(--dim); font-size: 13.5px; }
.bar-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.bar-row .field { margin: 0; }
.bar-row label { display: block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 500; margin-bottom: 6px; }
.bar-row input, .bar-row select { width: 100%; background: var(--input-bg); border: 1px solid var(--line-strong); border-radius: var(--r-btn); color: var(--fg); font-family: var(--body); font-size: 15px; padding: 12px 12px; outline: none; -webkit-appearance: none; appearance: none; }
.bar-row select { padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.bar-row input:focus, .bar-row select:focus { border-color: var(--fg); }
.bar-row .btn, .bar-row .dbtn { width: 100%; padding: 13px 16px; }
.bar-stack { display: grid; gap: 16px; }
.bar-result { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.bar-result .big { font-family: var(--display); font-weight: 300; font-size: 34px; font-variant-numeric: tabular-nums; }
.bar-result .fine { color: var(--dim); font-size: 13px; }


/* ---------- Full-bleed showcase grid (home): edge to edge, three across, one gutter ---------- */
.bleed { width: auto; padding: 0 0 20px; }
.bleed-fine { padding: 0 20px; }
.bleed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0 20px; margin-bottom: 20px; }
.bleed-grid > .deal-card { min-height: 0; aspect-ratio: 1 / 1.12; border-radius: 6px; }
.bleed-grid > .deal-card .dc-body { padding: 26px 28px 28px; }
.bleed-grid > .deal-card .dc-title { font-size: clamp(26px, 2.3vw, 36px); }
.bleed-grid > .action-tile { aspect-ratio: 16 / 9; border-radius: 6px; }
.bleed-grid > .action-tile .at-copy { left: 28px; right: 28px; bottom: 26px; }
.bleed-grid > .action-tile .at-label { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: -0.01em; }
.bleed-grid > .action-tile::before { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .45) 58%, rgba(0, 0, 0, .82) 100%); }
.deal-card .dc-tag, .action-tile .at-kicker { letter-spacing: .15em; color: rgba(255, 255, 255, .8); }
.bleed-grid > .action-tile .at-label svg { width: 22px; height: 22px; }
.bleed-grid .dc-cta { border-radius: 6px; }
.bleed-head { padding: 0 20px; margin: 26px 0 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bleed-head h2 { margin: 0; font-size: clamp(24px, 2.4vw, 32px); }
.bleed-head .more { font-weight: 500; font-size: 14px; color: var(--dim); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.bleed-head .more:hover { color: var(--fg); border-color: var(--fg); }
@media (max-width: 1100px) {
  .bleed-grid { gap: 14px; padding: 0 14px; margin-bottom: 14px; }
  .bleed-head, .bleed-fine { padding: 0 14px; }
  .bleed-grid > .deal-card { aspect-ratio: 1 / 1.25; }
  .bleed-grid > .deal-card .dc-body { padding: 22px; }
  .bleed-grid > .deal-card .dc-pay { font-size: 21px; }
  .bleed-grid > .deal-card .dc-terms { font-size: 12px; }
  .bleed-grid > .deal-card .dc-cta { margin-top: 10px; padding: 9px 14px; }
  .bleed-grid > .action-tile .at-label { font-size: 22px; align-items: flex-end; }
  .bleed-grid > .action-tile .at-kicker { font-size: 11px; letter-spacing: .1em; }
  .bleed-grid > .action-tile .at-copy { left: 20px; right: 20px; bottom: 16px; }
}
@media (max-width: 900px) {
  /* Tablets: two across; the offer rows swipe so a row never breaks 2 + 1. */
  .bleed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bleed-grid.offers { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .bleed-grid.offers::-webkit-scrollbar { display: none; }
  .bleed-grid.offers > .deal-card { flex: 0 0 46%; scroll-snap-align: start; }
}
@media (max-width: 900px) { .bleed-grid > .deal-card { aspect-ratio: 1 / 1.2; } .bleed-grid > .deal-card .dc-title { font-size: 24px; } .bleed-grid > .action-tile .at-label { font-size: 18px; } }
@media (max-width: 640px) {
  .bleed { padding-bottom: 12px; }
  .bleed-grid { grid-template-columns: 1fr; gap: 12px; padding: 0 12px; margin-bottom: 12px; }
  .bleed-grid.offers { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .bleed-grid.offers::-webkit-scrollbar { display: none; }
  .bleed-grid.offers > .deal-card { flex: 0 0 84%; scroll-snap-align: start; aspect-ratio: 4 / 5; }
  .bleed-grid > .action-tile { aspect-ratio: 16 / 10; }
  .bleed-head, .bleed-fine { padding: 0 12px; }
}

/* Stat band */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 28px; }
.stat { background: var(--panel); padding: 26px 24px; }
.stat .big { font-family: var(--display); font-weight: 300; font-size: 38px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat p { color: var(--dim); margin-top: 10px; font-size: 14.5px; line-height: 1.5; }

/* Number cards (the four factors) */
.grid4 { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.factor { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; }
.factor .num { font-family: var(--display); font-weight: 300; font-size: 30px; color: var(--dim); line-height: 1; }
.factor h3 { font-size: 18px; margin: 14px 0 8px; }
.factor p { color: var(--dim); font-size: 14.5px; }

.dealer-strip { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 72px 0; }
.dealer-strip p { color: var(--dim); font-size: 18px; }
.dealer-strip .btn { margin-top: 28px; }
.checklist { margin-top: 28px; display: grid; gap: 12px; }
.checklist li { list-style: none; font-size: 16px; padding-left: 26px; position: relative; }
.checklist li::before { content: ''; position: absolute; left: 0; top: 11px; width: 12px; height: 1px; background: var(--fg); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 44px 0 60px; color: var(--dim); font-size: 14px; background: var(--bg); }
footer .foot-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer a { color: var(--dim); }
.disclaimer { margin-top: 22px; font-size: 12.5px; line-height: 1.75; }
footer .disclaimer { columns: 3 340px; column-gap: 52px; text-align: justify; }
footer .disclaimer ~ .disclaimer { columns: auto; text-align: left; }

/* ---------- Forms / panels ---------- */
.calc-shell { max-width: 900px; margin: 0 auto; padding: 60px 28px 120px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 36px 34px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--body); font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; font-size: 11.5px; color: var(--dim); margin-bottom: 7px; }
.field label .req { color: var(--dim); }
.field input, .field select, .field textarea { width: 100%; background: var(--input-bg); border: 1px solid var(--line-strong); border-radius: var(--r-btn); color: var(--fg); font-family: var(--body); font-size: 16px; padding: 13px 14px; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--fg); }
.field input.err { border-color: var(--warn); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }
.form-error { display: none; border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: var(--r-btn); color: var(--fg); padding: 12px 16px; margin-bottom: 18px; }

/* Result (trade-in / calculators) */
.result { display: none; text-align: center; padding: 30px 0 8px; }
.result .r-label { font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); font-size: 12px; }
.result .r-rate { font-family: var(--display); font-weight: 300; font-size: clamp(56px, 8vw, 96px); line-height: 1; color: var(--fg); margin: 10px 0 4px; font-variant-numeric: tabular-nums; }
.result .r-payment { font-family: var(--display); font-weight: 300; font-size: 30px; margin-top: 16px; }
.result .r-meta { margin-top: 18px; display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; color: var(--dim); font-size: 13.5px; }
.result .r-meta b { color: var(--fg); font-weight: 500; }
.result .again { margin-top: 30px; }
.breakdown { max-width: 480px; margin: 30px auto 0; text-align: left; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 18px 22px; }
.bd-title { font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); font-size: 11.5px; margin-bottom: 10px; }
.bd-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14.5px; color: var(--dim); border-bottom: 1px solid var(--line); }
.bd-row b { color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums; }
.bd-total { border-top: 1px solid var(--fg); border-bottom: 0; margin-top: 6px; padding-top: 10px; }
.bd-total span { color: var(--fg); font-weight: 500; }

/* Gate */
.gate { max-width: 520px; margin: 0 auto; text-align: center; }
.gate h1 { font-size: clamp(32px, 5vw, 52px); }
.gate p { color: var(--dim); margin: 18px 0 30px; font-size: 16px; }
.gate input { width: 100%; background: var(--input-bg); border: 1px solid var(--line-strong); border-radius: var(--r-btn); color: var(--fg); font-family: var(--display); text-align: center; letter-spacing: 0.3em; text-transform: uppercase; font-size: 22px; padding: 16px; outline: none; margin-bottom: 16px; }
.gate input:focus { border-color: var(--fg); }
.small-note { font-size: 12.5px; color: var(--dim); margin-top: 26px; line-height: 1.6; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.16, 1, .3, 1); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.car, .g-card, .spec, .addon, .chip, .hv-chip, .car-cta, .car-save { transition: transform .25s ease, border-color .25s ease, background .25s ease, color .25s ease; }
.car:hover, .g-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.car-img { position: relative; }
.car-img img, .g-img img { transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.car:hover .car-img img, .g-card:hover .g-img img { transform: scale(1.04); }
.sec-title { position: relative; padding-bottom: 8px; }
.sec-title::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--fg); transition: width .7s cubic-bezier(.16, 1, .3, 1); }
.reveal.in.sec-title::after, .sec-title.in::after { width: 60px; }

/* Tags on photos */
.drop-ribbon, .featured-flag, .pc-flag { position: absolute; z-index: 4; font-family: var(--body); font-weight: 500; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.drop-ribbon { top: 12px; left: 12px; background: var(--acc); color: var(--acc-ink); }
.featured-flag { top: 12px; right: 12px; background: var(--panel-glass); color: var(--fg); border: 1px solid var(--line); }
.pc-flag { bottom: 12px; left: 12px; background: var(--acc); color: var(--acc-ink); }
.car.dropped { border-color: var(--line-strong); }
.was-price { color: var(--dim); font-size: 14px; text-decoration: line-through; margin-left: 6px; }
@keyframes dropIn { 0% { opacity: 0; transform: translateY(-40px); } 100% { opacity: 1; transform: translateY(0); } }
.drop-in { animation: dropIn .5s cubic-bezier(.16, 1, .3, 1) both; }
.car.pc-pick { border-color: var(--line-strong); }

/* Photo placeholder */
.ph-tile { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: var(--bg-2); position: relative; }
.ph-tile .ph-logo { font-family: 'Jost', 'Futura', sans-serif; font-weight: 400; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--fg); }
.ph-tile .ph-logo em { font-style: normal; color: var(--dim); }
.ph-tile .ph-msg { font-weight: 500; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.gallery-main .ph-tile .ph-logo, .gal-frame .ph-tile .ph-logo { font-size: 24px; }

.spin { display: none; width: 16px; height: 16px; border: 2px solid var(--line-strong); border-top-color: var(--fg); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; margin-right: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
