/* shopping.css — inventory-first AZ Student Car Guide UI */
:root {
  /* Default-dark public shopping palette: graphite base, plum elevation,
     cyan focus, and a restrained magenta action color. */
  --page: #100e17;
  --surface-header: #181425;
  --surface-1: #191625;
  --surface-2: #211a2e;
  --surface-3: #2a2038;
  --ink: #f5f0ff;
  --ink-soft: #c9bfd9;
  --navy: #f7f2ff;
  --navy-2: #e3d9f2;
  --blue: #b33fd0;
  --blue-dark: #8f2daa;
  --aqua: #6bd8e7;
  --sand: var(--surface-2);
  --paper: var(--surface-1);
  --line: rgba(233, 222, 255, .16);
  --line-strong: rgba(233, 222, 255, .34);
  --success: #79d8ae;
  --warn: #f2c879;
  --danger: #ff9f9f;
  --focus-ring: #6bd8e7;
  --shadow: 0 18px 46px rgba(0, 0, 0, .34);
  --shadow-sm: 0 7px 22px rgba(0, 0, 0, .28);
  --radius: 16px;
  --radius-sm: 10px;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fbfcfd;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--blue-dark); }
button, input, select { font: inherit; }
button, .button { cursor: pointer; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 100;
  transform: translateY(-150%);
  padding: .65rem .9rem;
  border-radius: 8px;
  color: #fff;
  background: var(--surface-3);
}
.skip-link:focus { transform: none; }
/* Dual-layer focus ring: the dark outline carries >=3:1 on white surfaces and
   the white halo carries >=3:1 on the dark hero/footer panels (WCAG 1.4.11). */
:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 2px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .85); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.shell { width: min(calc(100% - 2rem), var(--shell)); margin-inline: auto; }
.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--surface-header);
}
.site-header__inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--navy);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.015em;
  white-space: nowrap;
}
.brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  font-size: .84rem;
}
.site-nav { display: flex; align-items: center; gap: 1.2rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 650; }
.site-nav a:hover { color: var(--blue); }

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .7rem 1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 750;
  line-height: 1.1;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button--primary { color: #fff; background: var(--blue); box-shadow: 0 8px 20px rgba(179, 63, 208, .28); }
.button--primary:hover { color: #fff; background: var(--blue-dark); }
/* .site-nav a is more specific than .button--primary; keep action text white. */
.site-nav .button--primary { color: #fff; }
.button--secondary { color: var(--navy); border-color: var(--line-strong); background: #fff; }
.button--quiet { min-height: 44px; padding: .45rem .7rem; color: var(--blue-dark); background: transparent; }
.button--block { width: 100%; }
/* Focus halo must WIN the box-shadow cascade against the buttons' decorative
   drop shadows (equal-specificity later rules would otherwise erase it on the
   dark hero/support panels — WCAG 1.4.11). */
.button:focus-visible { box-shadow: 0 0 0 6px rgba(255, 255, 255, .85), 0 8px 20px rgba(23, 105, 170, .22); }
/* Booking CTA subtext: the primary action carries a one-line truthful scope
   ("free 20-minute call") so the label never overpromises the Calendly event. */
.button .button__sub { display: block; width: 100%; font-size: .68rem; font-weight: 550; opacity: .88; line-height: 1.25; }
.action-stack .button { flex-direction: column; text-align: center; }

.eyebrow {
  margin: 0 0 .6rem;
  color: var(--aqua);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.section-heading { margin: 0 0 .45rem; color: var(--navy); font-size: clamp(1.65rem, 3vw, 2.4rem); line-height: 1.12; letter-spacing: -.035em; }
.section-copy { max-width: 700px; margin: 0; color: var(--ink-soft); }

.landing-hero {
  overflow: hidden;
  padding: clamp(3.8rem, 8vw, 7rem) 0 clamp(4rem, 8vw, 6.8rem);
  color: #fff;
  background:
    radial-gradient(circle at 84% 18%, rgba(75, 195, 181, .25), transparent 28%),
    radial-gradient(circle at 14% 85%, rgba(65, 138, 197, .28), transparent 32%),
    linear-gradient(135deg, #0b2035 0%, #123c60 72%, #165477 100%);
}
.landing-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.landing-hero h1 { max-width: 760px; margin: 0; font-size: clamp(2.45rem, 6.5vw, 5.2rem); line-height: .98; letter-spacing: -.055em; text-wrap: balance; }
.landing-hero__lead { max-width: 660px; margin: 1.25rem 0 0; color: #d6e6f2; font-size: clamp(1.05rem, 2vw, 1.28rem); }
.zip-card { padding: 1.4rem; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; background: rgba(255,255,255,.10); box-shadow: 0 24px 55px rgba(0,0,0,.18); backdrop-filter: blur(12px); }
.zip-card h2 { margin: 0 0 .35rem; font-size: 1.12rem; }
.zip-card p { margin: 0 0 1rem; color: #d8e6ef; font-size: .9rem; }
.zip-form { display: grid; gap: .75rem; }
.zip-form label { font-size: .82rem; font-weight: 800; }
.zip-form__row { display: grid; grid-template-columns: 1fr auto; gap: .65rem; }
.zip-form input { min-height: 50px; width: 100%; padding: .75rem .9rem; border: 1px solid rgba(255,255,255,.45); border-radius: 10px; color: var(--ink); background: #fff; }
.form-error { min-height: 1.25rem; margin: .2rem 0 0; color: #ffd8c2 !important; font-size: .82rem !important; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin-top: 1.25rem; color: #c7dbe8; font-size: .82rem; }
.hero-proof span::before { content: "✓"; margin-right: .35rem; color: #77d9ce; font-weight: 900; }

.trust-strip { border-bottom: 1px solid var(--line); background: #fff; }
.trust-strip__inner { min-height: 76px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.trust-item { padding: .55rem 1.2rem; border-right: 1px solid var(--line); }
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; color: var(--navy); font-size: .9rem; }
.trust-item span { color: var(--ink-soft); font-size: .78rem; }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--white { background: var(--surface-1); }
.section--sand { background: var(--surface-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.inventory-freshness { color: var(--success); font-size: .8rem; font-weight: 750; white-space: nowrap; }
.preview-grid, .results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.7rem; }
.how-card { padding: 1.35rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.how-card__number { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 1rem; border-radius: 50%; color: #fff; background: var(--blue); font-weight: 850; }
.how-card h3 { margin: 0 0 .35rem; color: var(--navy); font-size: 1.03rem; }
.how-card p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.support-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 22px; color: #fff; background: var(--navy); }
.support-panel h2 { margin: 0 0 .45rem; font-size: clamp(1.5rem, 3vw, 2.15rem); }
.support-panel p { max-width: 680px; margin: 0; color: #cfe0eb; }
.support-panel .support-disclosure { margin-top: .8rem; color: #b9cfdd; font-size: .78rem; }

.results-hero { padding: 2rem 0 1.25rem; border-bottom: 1px solid var(--line); background: var(--surface-1); }
.results-hero__row { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.results-hero h1 { margin: 0; color: var(--navy); font-size: clamp(1.85rem, 4vw, 3rem); letter-spacing: -.04em; }
.results-hero p { margin: .35rem 0 0; color: var(--ink-soft); }
.feed-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .65rem; border-radius: 999px; color: var(--success); background: #e9f6f2; font-size: .77rem; font-weight: 800; white-space: nowrap; }
.feed-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.feed-badge--degraded { color: var(--warn); background: #fff3df; }

.results-shell { display: grid; grid-template-columns: 286px minmax(0, 1fr); gap: 1.4rem; padding-block: 1.4rem 4rem; align-items: start; }
.filter-panel { position: sticky; top: 1rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.filter-panel > summary { display: none; }
.filter-content { padding: 1.05rem; }
.filter-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: .85rem; }
.filter-title h2 { margin: 0; font-size: 1rem; }
.filter-group { padding: .9rem 0; border-top: 1px solid var(--line); }
.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.filter-group h3 { margin: 0 0 .65rem; color: var(--navy); font-size: .77rem; letter-spacing: .07em; text-transform: uppercase; }
.form-grid { display: grid; gap: .7rem; }
.form-field { display: grid; gap: .32rem; }
.form-field label { color: #3a4859; font-size: .78rem; font-weight: 750; }
.form-field small { color: var(--ink-soft); font-size: .7rem; }
.control {
  width: 100%;
  min-height: 44px;
  padding: .6rem .7rem;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
}
.control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,105,170,.13); outline: none; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.filter-apply { display: none; margin-top: .8rem; }

.results-main { min-width: 0; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.results-count { margin: 0; color: var(--ink-soft); font-size: .88rem; }
.location-note { margin: 0 0 .85rem; padding: .7rem .85rem; border: 1px solid #f0d5a5; border-radius: 10px; color: #784915; background: #fff7e8; font-size: .82rem; }
.results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.results-progress { display: flex; justify-content: center; padding: 1.25rem 0 0; }
.results-progress .button { min-width: min(100%, 260px); min-height: 44px; }
.results-complete { margin: 0; padding: .75rem 1rem; color: var(--ink-soft); font-weight: 800; text-align: center; }
.results-complete:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.vehicle-card { overflow: hidden; display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.vehicle-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.vehicle-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(145deg, #dfe8ef, #f5f7f8); }
.vehicle-card__media img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-card__media.is-missing img { display: none; }
.photo-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: .5rem; color: var(--ink-soft); font-size: .78rem; font-weight: 750; line-height: 1.2; overflow-wrap: anywhere; text-align: center; }
.photo-fallback[hidden] { display: none !important; }
.detail-collection-note { margin: 1rem 0 0; padding: .65rem .8rem; border: 1px solid #f0d5a5; border-radius: 10px; color: #784915; background: #fff7e8; font-size: .78rem; }
.vehicle-card__fresh { position: absolute; top: .65rem; left: .65rem; padding: .3rem .5rem; border-radius: 999px; color: #fff; background: rgba(14,38,63,.82); backdrop-filter: blur(5px); font-size: .67rem; font-weight: 800; }
.vehicle-card__fresh-compact { display: none; }
.vehicle-card__fresh[data-tier="delayed"] { background: rgba(120, 70, 16, .9); }
.vehicle-card__count { position: absolute; bottom: .65rem; left: .65rem; padding: .3rem .5rem; border-radius: 999px; color: #fff; background: rgba(14,38,63,.82); backdrop-filter: blur(5px); font-size: .67rem; font-weight: 800; }
.vehicle-card__body { display: flex; flex: 1; flex-direction: column; padding: .9rem; }
.vehicle-card__title { margin: 0; color: var(--navy); font-size: .98rem; line-height: 1.25; }
.vehicle-card__trim { min-height: 1.1rem; margin: .18rem 0 .75rem; color: var(--ink-soft); font-size: .75rem; }
.vehicle-card__numbers { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .65rem; }
.vehicle-card__number { padding: .55rem; border-radius: 9px; background: #f3f6f8; }
.vehicle-card__number span { display: block; color: var(--ink-soft); font-size: .64rem; text-transform: uppercase; letter-spacing: .05em; }
.vehicle-card__number strong { display: block; color: var(--navy); font-size: .93rem; }
.vehicle-card__meta { display: grid; gap: .22rem; margin: 0 0 .75rem; color: var(--ink-soft); font-size: .73rem; }
.vehicle-card__body .button { margin-top: auto; }
.payment-caption { margin: .55rem 0 0; color: var(--ink-soft); font-size: .67rem; line-height: 1.35; }

.state-panel { grid-column: 1 / -1; padding: 2.5rem 1.5rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; background: #fff; }
.state-panel h2 { margin: 0 0 .4rem; color: var(--navy); font-size: 1.2rem; }
.state-panel p { max-width: 560px; margin: 0 auto .9rem; color: var(--ink-soft); }
.skeleton { min-height: 310px; overflow: hidden; border-radius: var(--radius); background: linear-gradient(90deg, #edf1f3 25%, #f8fafb 37%, #edf1f3 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.detail-shell { padding-block: 1.2rem 4rem; }
.back-link { display: inline-flex; margin-bottom: 1rem; color: var(--blue-dark); text-decoration: none; font-size: .85rem; font-weight: 750; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 1.5rem; align-items: start; }
.detail-layout > * { min-width: 0; }
.detail-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.gallery { width: 100%; min-width: 0; max-width: 100%; overflow: hidden; }
.gallery__main { position: relative; width: 100%; min-width: 0; max-width: 100%; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: #edf2f5; touch-action: pan-y pinch-zoom; }
.gallery__main > img { position: absolute; inset: 0; display: block; width: 100%; min-width: 0; max-width: 100%; height: 100%; min-height: 0; max-height: 100%; object-fit: cover; }
.gallery__nav { position: absolute; z-index: 2; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255,255,255,.72); border-radius: 999px; color: #fff; background: rgba(8,31,49,.74); box-shadow: 0 4px 16px rgba(8,31,49,.25); font-size: 2rem; line-height: 1; cursor: pointer; transform: translateY(-50%); }
.gallery__nav:hover { background: rgba(8,31,49,.9); }
.gallery__nav:focus-visible, .gallery__tray-control:focus-visible, .gallery__dot:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; box-shadow: 0 0 0 5px var(--navy); }
.gallery__nav--prev { left: .75rem; }
.gallery__nav--next { right: .75rem; }

.gallery__count { margin: .6rem .75rem 0; color: var(--ink-soft); font-size: .75rem; font-weight: 700; }
.gallery__pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .12rem; max-width: 100%; padding: .15rem .75rem .25rem; }
.gallery__dot { position: relative; display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 999px; background: transparent; cursor: pointer; }
.gallery__dot span { width: 8px; height: 8px; border-radius: 999px; background: var(--ink-soft); transition: width .15s ease, background-color .15s ease; }
.gallery__dot[aria-current="true"] span { width: 18px; background: var(--blue); }
.gallery__tray { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: .25rem; width: 100%; min-width: 0; max-width: 100%; padding: .3rem .5rem .75rem; }
.gallery__tray--single { grid-template-columns: minmax(0, 1fr); }
.gallery__tray-control { display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--navy); background: #fff; font-size: 1.55rem; line-height: 1; cursor: pointer; }
.gallery__tray-control:hover { border-color: var(--blue); color: var(--blue-dark); }
.gallery__thumbs { display: flex; gap: .55rem; width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scroll-behavior: smooth; scrollbar-width: thin; padding: .45rem; }
.gallery__thumb { flex: 0 0 76px; width: 76px; height: 52px; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 7px; background: #eef2f4; }
.gallery__thumb[aria-current="true"] { border-color: var(--blue); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb { position: relative; }
.gallery__thumb .photo-fallback { font-size: .62rem; }
.detail-info { padding: 1.25rem; }
.detail-info h1 { margin: 0; color: var(--navy); font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.05; letter-spacing: -.04em; }
.detail-sub { margin: .45rem 0 1rem; color: var(--ink-soft); }
.detail-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .55rem 1.25rem; padding: 1rem 0; border-block: 1px solid var(--line); }
.detail-price { color: var(--navy); font-size: 1.6rem; font-weight: 850; }
.detail-payment { color: var(--success); font-size: 1.2rem; font-weight: 850; }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1rem; }
.spec { padding: .7rem; border-radius: 9px; background: #f4f7f8; }
.spec span { display: block; color: var(--ink-soft); font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; }
.spec strong { display: block; margin-top: .1rem; font-size: .85rem; }
.detail-sidebar { display: grid; gap: 1rem; position: sticky; top: 1rem; }
.payment-box, .trust-box { padding: 1.1rem; }
.payment-box h2, .trust-box h2 { margin: 0 0 .75rem; color: var(--navy); font-size: 1.05rem; }
.breakdown { margin: .9rem 0; border-top: 1px solid var(--line); }
.breakdown__row { display: flex; justify-content: space-between; gap: 1rem; padding: .48rem 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: .78rem; }
.breakdown__row strong { color: var(--ink); text-align: right; }
.breakdown__row--total { color: var(--navy); font-size: .9rem; font-weight: 800; }
.disclosure { color: var(--ink-soft); font-size: .72rem; line-height: 1.45; }
.trust-list { display: grid; gap: .72rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.trust-list li { padding-left: 1.3rem; color: var(--ink-soft); font-size: .78rem; }
.trust-list li::before { content: "✓"; float: left; margin-left: -1.3rem; color: var(--success); font-weight: 900; }
.action-stack { display: grid; gap: .55rem; }

.site-footer { padding: 2.2rem 0; border-top: 1px solid var(--line); color: var(--ink-soft); background: #fff; font-size: .76rem; }
.footer-row { display: flex; justify-content: space-between; gap: 1.5rem; }
.footer-row p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: var(--ink-soft); }

/* Default-dark parent and showroom treatment. The declarations are grouped here
   so the existing inventory-first layout remains stable while all white-paper
   surfaces become a deliberate graphite/plum hierarchy. */
body { color: var(--ink); background: var(--page); }
a { color: var(--aqua); }
.site-header { box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.brand { color: var(--navy); }
.brand__icon { width: 24px; height: 24px; flex: 0 0 auto; color: var(--aqua); }
.site-nav a { color: var(--ink-soft); }
.site-nav a:hover { color: var(--aqua); }
.button--secondary { color: var(--ink); border-color: var(--line-strong); background: var(--surface-3); }
.button--quiet { color: var(--aqua); }
.button:focus-visible { box-shadow: 0 0 0 3px var(--page), 0 0 0 6px var(--focus-ring), 0 8px 20px rgba(179, 63, 208, .28); }
.landing-hero { background: radial-gradient(circle at 84% 18%, rgba(107, 216, 231, .18), transparent 28%), radial-gradient(circle at 14% 85%, rgba(179, 63, 208, .25), transparent 32%), linear-gradient(135deg, #141020 0%, #241733 72%, #352043 100%); }
.landing-hero__lead, .zip-card p, .hero-proof { color: var(--ink-soft); }
.zip-card { border-color: var(--line-strong); background: rgba(42, 32, 56, .86); box-shadow: var(--shadow); }
.zip-form input, .control { color: var(--ink); border-color: var(--line-strong); background: #13101d; }
.zip-form input::placeholder, .control::placeholder { color: #a99eb9; }
.trust-strip { border-color: var(--line); background: var(--surface-2); }
.trust-item { border-color: var(--line); }
.how-card, .filter-panel, .vehicle-card, .detail-card, .state-panel { border-color: var(--line); background: var(--surface-2); box-shadow: var(--shadow-sm); }
.how-card__number { color: #fff; background: var(--blue); }
.results-shell, .detail-shell { background: var(--page); }
.feed-badge { color: var(--success); background: rgba(121, 216, 174, .13); }
.feed-badge--degraded { color: var(--warn); background: rgba(242, 200, 121, .13); }
.filter-group { border-color: var(--line); }
.form-field label { color: var(--ink-soft); }
.location-note, .detail-collection-note { border-color: rgba(242, 200, 121, .42); color: var(--warn); background: rgba(242, 200, 121, .10); }
.vehicle-card__media { background: linear-gradient(145deg, #302440, #181321); }
.vehicle-card__number, .spec { background: var(--surface-3); }
.vehicle-card__fresh, .vehicle-card__count { background: rgba(16, 14, 23, .86); }
.skeleton { background: linear-gradient(90deg, #211a2e 25%, #352846 37%, #211a2e 63%); background-size: 400% 100%; }
.support-panel { background: linear-gradient(135deg, #2a1938, #17111f); box-shadow: var(--shadow); }
.support-panel p, .support-panel .support-disclosure { color: var(--ink-soft); }
.site-footer { border-color: var(--line); color: var(--ink-soft); background: #12101a; }
.gallery__main, .gallery__thumb { background: var(--surface-3); }
.gallery__tray-control { border-color: var(--line-strong); color: var(--ink); background: var(--surface-3); }

@media (max-width: 980px) {
  .results-grid, .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-hero__grid { grid-template-columns: 1fr; }
  .zip-card { max-width: 560px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; grid-template-columns: 1fr 1fr; }
}

@media (min-width: 761px) {
  .filter-panel:not([open]) .filter-content { display: block; }
}

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 1.25rem), var(--shell)); }
  .site-header__inner { min-height: 62px; }
  .brand { font-size: .9rem; }
  .brand__mark { width: 30px; height: 30px; }
  .site-nav a:not(.button) { display: none; }
  .site-nav .button { min-height: 44px; padding: .55rem .72rem; font-size: .78rem; }
  .landing-hero { padding-block: 3rem 3.5rem; }
  .landing-hero h1 { font-size: clamp(2.25rem, 12vw, 3.65rem); }
  .zip-form__row { grid-template-columns: 1fr; }
  .zip-form__row .button { width: 100%; }
  .trust-strip__inner { grid-template-columns: 1fr; padding-block: .45rem; }
  .trust-item, .trust-item:first-child { padding: .65rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .section-head, .results-hero__row { align-items: start; flex-direction: column; }
  .how-grid { grid-template-columns: 1fr; }
  .support-panel { grid-template-columns: 1fr; }
  .support-panel .button { width: 100%; }
  .results-shell { grid-template-columns: 1fr; padding-top: .75rem; }
  .filter-panel { position: static; }
  .filter-panel > summary { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1rem; font-weight: 800; cursor: pointer; }
  .filter-panel:not([open]) .filter-content { display: none; }
  .filter-apply { display: inline-flex; }
  .results-grid, .preview-grid { grid-template-columns: 1fr; }
  .vehicle-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); }
  .vehicle-card__media { aspect-ratio: auto; min-height: 100%; }
  .vehicle-card__media img { object-fit: contain; }
  /* Keep the per-card freshness signal on mobile (brief card hierarchy item);
     drop the photo-count pill instead — count is repeated on the detail page. */
  .vehicle-card__count { display: none; }
  .vehicle-card__fresh { top: .4rem; left: .4rem; max-width: calc(100% - .8rem); padding: .24rem .4rem; font-size: .7rem; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
  .vehicle-card__fresh-full { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .vehicle-card__fresh-compact { display: inline; }
  .payment-caption { font-size: .72rem; }
  .gallery__main img { object-fit: contain; }
  .gallery__pagination { flex-wrap: nowrap; justify-content: flex-start; gap: 0; overflow-x: auto; scrollbar-width: none; padding-inline: .25rem; }
  .gallery__pagination::-webkit-scrollbar { display: none; }
  .gallery__nav--prev { left: .5rem; }
  .gallery__nav--next { right: .5rem; }
  .gallery__tray { padding-inline: .35rem; }
  .detail-sidebar { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-row { flex-direction: column; }
}

@media (max-width: 420px) {
  .vehicle-card { grid-template-columns: 112px minmax(0, 1fr); }
  .vehicle-card__body { padding: .75rem; }
  .vehicle-card__meta { font-size: .68rem; }
}

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