/* ==========================================================================
   Views
   ========================================================================== */

/* ---------- Home: hero ---------- */
.hero { position: relative; padding-top: 8px; overflow: hidden; }
.hero-grid { display: grid; gap: 4px; }
.hero-stage {
  position: relative; aspect-ratio: 1 / 0.86; margin-inline: calc(var(--gutter) * -1);
  display: grid; place-items: center; touch-action: pan-y;
}
/* Livery block: a racing-green parallelogram behind the tire with two volt
   stripes on its leading edge. It bleeds off the right edge of the page
   (the hero clips it) so the tire sits on the car's flank, not in a box. */
.hero-livery {
  position: absolute; z-index: 0; pointer-events: none;
  top: 14%; bottom: 16%; left: 30%; right: -50vw;
  transform: skewX(var(--slant));
  background: linear-gradient(100deg, var(--livery-2), var(--livery) 55%);
}
.hero-livery::before, .hero-livery::after { content: ""; position: absolute; top: 0; bottom: 0; background: var(--volt); }
.hero-livery::before { left: -34px; width: 18px; }
.hero-livery::after { left: -50px; width: 6px; }
.hero-floor {
  position: absolute; inset: 8% 0 0 0; pointer-events: none;
  background:
    radial-gradient(60% 34% at 50% 86%, color-mix(in srgb, var(--ink) 9%, transparent), transparent 70%),
    radial-gradient(60% 55% at 50% 45%, var(--stage-hi), transparent 72%);
}
.tire3d-fallback { position: absolute; inset: 12% 18% 10%; display: grid; place-items: center; transition: opacity 0.6s ease; }
.tire3d-fallback svg { width: 100%; height: 100%; }
/* max-width: none lets the hero canvas bleed past its stage (tire3d.js opts.bleed sets the width) */
.tire3d-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; opacity: 0; transition: opacity 0.8s ease; cursor: grab; }
.is-3d > .tire3d-canvas { opacity: 1; }
/* The placeholder clears quickly so the roll-in enters an empty stage, not a ghost tire */
.is-3d > .tire3d-fallback { opacity: 0; transition-duration: 0.2s; }
.is-dragging .tire3d-canvas { cursor: grabbing; }

/* Live tags float around the tire like spec callouts */
.hero-tags { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.htag {
  position: absolute; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: var(--pill); font-size: var(--fs-xs); white-space: nowrap;
  background: color-mix(in srgb, var(--panel) 88%, transparent); color: var(--panel-ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: var(--shadow-2); border: 1px solid var(--panel-line);
  animation: tagIn 0.6s var(--ease-out) both;
}
.htag b { color: var(--mint); font-weight: 650; }
.htag .live-dot { width: 6px; height: 6px; }
/* Tags sit in the corners so they never cross the wheel */
.htag.t1 { left: max(var(--gutter), 4%); top: 4%; animation-delay: 1.2s; }
.htag.t2 { right: max(var(--gutter), 4%); top: 4%; animation-delay: 1.4s; }
.htag.t3 { right: max(var(--gutter), 4%); bottom: 12%; animation-delay: 1.6s; }
@keyframes tagIn { from { opacity: 0; transform: translateY(6px) scale(0.96); } }
.hero-caption {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; display: flex; flex-wrap: wrap; gap: 4px 12px;
  font-size: var(--fs-xs); color: var(--muted); justify-content: center;
}
.hero-caption .size-code { color: var(--ink-2); }
.hc-hint { display: inline-flex; align-items: center; gap: 4px; }

.hero-copy { display: grid; gap: 18px; padding-bottom: 8px; container-type: inline-size; }
.hero-title { margin-top: 4px; font-size: clamp(2.4rem, 13vw, 4rem); }
.hero-title span { display: block; text-wrap: balance; }
/* Hero copy is two headline lines and one lede line at every width.
   Each line is nowrap and sized to the column: the longest headline line is
   about 6.1em, the lede about 16.3em (cap at 100/16.9 cqi, with a margin). */
.hero-title span { white-space: nowrap; }
.hero-lede { max-width: none; white-space: nowrap; font-size: min(clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem), 5.9cqi); }
@media (min-width: 980px) { .hero-title { font-size: min(4.4rem, 13cqi); } }
.inline-zip {
  border: 0; background: none; padding: 4px 2px; margin: -4px 0; font: inherit; color: var(--ink); font-weight: 650;
  text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 4px; cursor: pointer;
}
.inline-zip.on-panel { color: var(--panel-ink); }

/* Search console */
.console { padding: 14px; display: grid; gap: 14px; border-radius: var(--r-xl); box-shadow: var(--shadow-2); }
.console .seg { width: 100%; }
.console .seg button { flex: 1; justify-content: center; padding: 0 10px; }
.console-pane { display: grid; gap: 12px; }
.console-form { display: grid; gap: 12px; }
.vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vgrid .field > label { font-size: var(--fs-xs); }
.garage-quick { display: grid; gap: 6px; }
.size-row { display: grid; gap: 10px; }
.size-row.two { grid-template-columns: 1fr 1fr; }
.console-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.console-unsure p { color: var(--panel-muted); }
.scan-intro { display: flex; gap: 14px; align-items: center; }
.scan-intro p { color: var(--panel-muted); font-size: var(--fs-s); }
.scan-glyph { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--panel-2); color: var(--mint); border: 1px solid var(--panel-line); }

@media (min-width: 720px) {
  .vgrid { grid-template-columns: repeat(4, 1fr); }
  .console { padding: 18px; }
}
@media (min-width: 980px) {
  .hero-livery { top: 12%; bottom: 14%; left: 24%; }
  .hero-livery::before { left: -44px; width: 22px; }
  .hero-livery::after { left: -64px; width: 8px; }
  .hero { padding-top: 24px; }
  .hero-grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); align-items: center; gap: 24px; }
  .hero-copy { order: -1; padding-block: 24px 48px; }
  .hero-stage { margin: 0 calc(var(--gutter) * -1) 0 -40px; aspect-ratio: 1 / 1.02; }
  .htag.t1 { left: 4%; top: 8%; }
  .htag.t2 { right: 2%; top: 8%; }
  .htag.t3 { left: 4%; right: auto; bottom: 12%; }
  .vgrid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1180px) { .vgrid { grid-template-columns: repeat(4, 1fr); } }

/* Promises */
.promises { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 55%, transparent); }
.promise-grid { display: grid; grid-template-columns: 1fr 1fr; }
.promise { padding: 22px 16px 22px 0; display: grid; gap: 6px; align-content: start; }
.promise .i { color: var(--vana); }
.promise p { color: var(--muted); font-size: var(--fs-s); }
.promise:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.promise:nth-child(even) { padding-left: 16px; }
.promise:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .promise-grid { grid-template-columns: repeat(4, 1fr); }
  .promise { padding: 30px 24px; border: 0 !important; }
  .promise + .promise { border-left: 1px solid var(--line) !important; }
  .promise:first-child { padding-left: 0; }
}

/* Advisor band */
.advisor-band { display: grid; gap: 28px; padding: 26px 20px; overflow: hidden; box-shadow: var(--shadow-2); }
.ab-copy { display: grid; gap: 14px; justify-items: start; }
.ab-copy .muted { max-width: 46ch; }
.ab-glyph { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--panel-2); color: var(--mint); border: 1px solid var(--panel-line); }
.ab-demo { display: grid; gap: 10px; align-content: center; }
.bubble { padding: 12px 14px; border-radius: 18px; font-size: var(--fs-s); line-height: 1.5; max-width: 46ch; }
.bubble.user { justify-self: end; background: var(--panel-3); border-bottom-right-radius: 6px; }
.bubble.ai { background: var(--panel-2); border: 1px solid var(--panel-line); border-bottom-left-radius: 6px; }
.bubble.ai p + p { margin-top: 8px; }
.bubble .src { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--panel-muted); margin-top: 10px; }
.bubble .src .i { color: var(--mint); }
@media (min-width: 900px) { .advisor-band { grid-template-columns: 1.05fr 1fr; padding: 44px; gap: 48px; } }

/* Categories */
.section-tight { padding-bottom: 8px; }
/* A rail inside the container that bleeds into the side gutters: the first card
   lines up with the heading, cards scroll edge to edge, and a partial next card
   always peeks so it's clear there is more. Vertical padding keeps the hover
   lift and shadow from being clipped by the scroll box. */
.cat-scroller {
  --rail-gap: 14px;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(250px, 74%); gap: var(--rail-gap);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: -10px calc(var(--gutter) * -1) -6px;
  padding: 10px var(--gutter) 24px;
  scroll-padding-inline: var(--gutter);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
}
.cat-scroller::-webkit-scrollbar { display: none; }
.cat-scroller:focus-visible { outline-offset: -4px; border-radius: var(--r-l); }
@media (min-width: 620px) { .cat-scroller { grid-auto-columns: calc((100% - 2 * var(--rail-gap)) / 2.6); } }
@media (min-width: 900px) { .cat-scroller { grid-auto-columns: calc((100% - 3 * var(--rail-gap)) / 3.6); } }
@media (min-width: 1100px) { .cat-scroller { grid-auto-columns: calc((100% - 4 * var(--rail-gap)) / 4.6); } }

/* Previous / next for mouse users (touch and trackpads swipe) */
.rail-ctl { display: none; gap: 8px; flex: none; }
@media (hover: hover) and (pointer: fine) { .rail-ctl { display: flex; } }
.rail-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--paper-2); color: var(--ink);
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}
.rail-btn:hover:not(:disabled) { background: var(--ink); color: var(--studio); border-color: var(--ink); }
.rail-btn:disabled { opacity: 0.35; cursor: default; }
/* Each tile wears its compound colour: in the tread grooves, the flag and the
   hover border. The tread rolls a little on hover; the tile itself stays put. */
.cat-tile {
  scroll-snap-align: start; display: grid; text-decoration: none; border-radius: var(--r-l); overflow: hidden;
  background: var(--paper); border: 1.5px solid var(--line); box-shadow: var(--shadow-1);
  transition: border-color 0.2s var(--ease);
}
.cat-tile:hover { border-color: var(--cc); }
.cat-tread { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 4px solid var(--cc); }
.cat-tread svg { width: 100%; height: 100%; transition: transform 0.6s var(--ease-out); }
.cat-tile:hover .cat-tread svg { transform: translateY(-8%) scale(1.08); }
.cat-meta { display: grid; gap: 3px; padding: 14px 16px 16px; }
.cat-meta .h4 { display: flex; align-items: center; gap: 8px; }

/* Steps */
.steps { list-style: none; display: grid; gap: 0; margin-top: 24px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li p { grid-column: 2; color: var(--muted); font-size: var(--fs-s); margin-top: 4px; }
/* Race-number roundel: volt disc, ink italic numeral. Only for real sequences. */
.step-n {
  grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--volt); color: var(--volt-ink); box-shadow: inset 0 0 0 2px var(--volt-ink);
  font-weight: 820; font-style: italic; font-stretch: var(--wide); font-size: var(--fs-m); line-height: 1;
  padding-right: 0.08em;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .steps li { grid-template-columns: 1fr; border-top: 2px solid var(--ink); padding-top: 20px; row-gap: 10px; }
  .steps li p { grid-column: 1; }
  .step-n { grid-row: auto; }
}

/* Garage teaser */
.garage-teaser { display: grid; gap: 24px; padding: 24px; overflow: hidden; align-items: center; }
.garage-teaser > div:first-child { display: grid; gap: 12px; justify-items: start; }
.garage-teaser .muted { max-width: 48ch; }
.gt-art { position: relative; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 16 / 9; }
.gt-art svg { width: 100%; height: 100%; }
.gt-gauge { position: absolute; right: 16px; bottom: 16px; display: grid; padding: 12px 16px; border-radius: var(--r-m); background: var(--panel); color: var(--panel-ink); border: 1px solid var(--panel-line); }
.gt-gauge b { font-stretch: var(--wide); font-style: italic; font-size: 1.6rem; color: var(--mint); line-height: 1.1; }
.gt-gauge span { font-size: var(--fs-xs); color: var(--panel-muted); }
@media (min-width: 900px) { .garage-teaser { grid-template-columns: 1fr 1fr; padding: 40px; } }

/* ---------- Shop ---------- */
.shop { padding-top: 24px; }
.shop-head { display: grid; gap: 10px; }
.cat-title { display: flex; align-items: center; gap: 0.32em; }
.cat-title .cc-flag { width: 0.9em; height: 0.34em; border-radius: 3px; }
.shop-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.shop-toolbar { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.shop-toolbar [data-count] { margin-right: auto; }
.sort .select { width: auto; height: 40px; border-radius: var(--pill); font-size: var(--fs-s); padding-left: 16px; }
@media (max-width: 559px) {
  .shop-toolbar { flex-wrap: wrap; row-gap: 10px; }
  .shop-toolbar [data-count] { order: 3; flex-basis: 100%; margin: 0; }
  .sort { margin-left: auto; }
}
.filter-btn { position: relative; }
.fcount { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: var(--pill); background: var(--vana); color: var(--vana-ink); font-size: 11px; font-weight: 700; }
.shop-body { display: grid; gap: 24px; }
.shop-filters { display: none; }
.fgroup { border: 0; margin: 0; padding: 0 0 18px; display: grid; gap: 10px; }
.fgroup + .fgroup { border-top: 1px solid var(--line); padding-top: 16px; }
.fgroup legend { font-weight: 620; font-size: var(--fs-s); margin-bottom: 10px; padding: 0; }
.fgroup .chip { min-height: 34px; padding: 0 12px; font-size: var(--fs-xs); }
.fchecks { display: grid; gap: 12px; }
.sheet-filters { display: grid; }
.sheet-actions { position: sticky; bottom: -24px; padding: 14px 0 0; background: var(--paper); }
@media (min-width: 980px) {
  .shop-body { grid-template-columns: 260px 1fr; align-items: start; }
  .shop-filters { display: block; position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; padding-right: 8px; scrollbar-width: thin; }
  .filter-btn { display: none; }
}
@media (min-width: 980px) and (max-width: 1179px) { .shop-results .grid-cards.cols-3 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Product page ---------- */
.pdp { padding-top: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); }
.pdp-grid { display: grid; gap: 24px; }
.pdp-media { display: grid; gap: 12px; align-content: start; }
.viewer {
  position: relative; aspect-ratio: 1; border-radius: var(--r-xl); overflow: hidden;
  background: radial-gradient(70% 55% at 50% 42%, var(--stage-hi), var(--stage-lo));
  border: 1px solid var(--line);
}
.viewer::after { content: ""; position: absolute; left: 15%; right: 15%; bottom: 8%; height: 8%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ink) 16%, transparent), transparent); pointer-events: none; }
.viewer-pane { position: absolute; inset: 0; }
.viewer-pane[data-pane="tread"] svg { width: 100%; height: 100%; }
.viewer-pane[data-pane="side"] { padding: 12%; }
.viewer-pane .tire3d-fallback { inset: 10%; }
.viewer-tag { position: absolute; left: 14px; top: 14px; z-index: 2; }
.viewer-hint { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--muted); background: color-mix(in srgb, var(--paper) 80%, transparent); padding: 6px 10px; border-radius: var(--pill); }
.viewer-seg { justify-self: center; }

.pdp-buy { display: grid; gap: 14px; align-content: start; }
.pdp-brand { font-weight: 600; color: var(--muted); }
.pdp-type { display: flex; align-items: center; gap: 8px; }
.pdp-buy .h1 { margin-top: -6px; }
.rating-link { text-decoration: none; justify-self: start; }
.pdp-blurb { color: var(--ink-2); max-width: 52ch; }
.size-pick { display: grid; gap: 8px; }
.size-pick .chip { font-size: var(--fs-s); }

.buybox { display: grid; gap: 16px; box-shadow: var(--shadow-2); }
.bb-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.bb-cut { text-align: right; color: var(--panel-muted); }
.bb-eta { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-s); }
.bb-eta .i { color: var(--mint); flex: none; margin-top: 1px; }
.bb-eta b { color: var(--panel-ink); }
.bb-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bb-opts { display: grid; gap: 12px; }
.bb-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.bb-actions .btn-ghost { width: 48px; padding: 0; }
.bb-actions .btn-ghost[aria-pressed="true"] { background: var(--mint); color: var(--mint-ink); border-color: var(--mint); }
.bb-rebate { display: flex; gap: 8px; align-items: center; font-size: var(--fs-s); color: var(--mint); }
.bb-price-match { margin-top: -8px; }

.assure { list-style: none; display: grid; gap: 10px; font-size: var(--fs-s); color: var(--ink-2); padding: 4px 2px; }
.assure li { display: flex; gap: 10px; align-items: center; }
.assure .i { color: var(--vana); flex: none; }

.pdp-section { padding-top: clamp(40px, 6vw, 72px); }
.pdp-section > .h2 { margin-bottom: 18px; }
.pdp-two { display: grid; gap: 40px; }
.pdp-two .h2 { margin-bottom: 18px; }
.features { list-style: none; display: grid; gap: 8px; margin-top: 22px; font-size: var(--fs-s); }
.features li { display: flex; gap: 8px; align-items: center; }
.features .i { color: var(--vana); }
.spec-list { display: grid; margin: 0; }
.spec-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-s); }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; text-align: right; font-weight: 520; }

.size-table { border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background: var(--paper); }
.st-head, .st-row { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 0.8fr; gap: 10px; align-items: center; padding: 12px 16px; font-size: var(--fs-s); }
.st-head { color: var(--muted); font-size: var(--fs-xs); background: var(--studio-2); }
.st-row { text-decoration: none; border-top: 1px solid var(--line); }
.st-row:hover { background: var(--studio-hi); }
.st-row.is-current { box-shadow: inset 3px 0 0 var(--vana); background: var(--vana-soft); }
.st-row .stock { font-size: var(--fs-xs); }
@media (max-width: 560px) { .st-head, .st-row { grid-template-columns: 1.5fr 1fr 1fr; } .st-head span:last-child, .st-row span:last-child { display: none; } }

.reviews { display: grid; gap: 14px; }
.review { display: grid; gap: 8px; }
.review p { font-size: var(--fs-s); color: var(--ink-2); }
.review .tag { margin-left: 6px; vertical-align: middle; height: 22px; }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, 1fr); } }

.buybar {
  position: fixed; z-index: 43; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--paper) 92%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.buybar > div { display: grid; }
.buybar .price { font-size: 1.25rem; }
body:has(.buybar) .compare-tray { display: none; }

@media (min-width: 980px) {
  .pdp-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .pdp-media { position: sticky; top: calc(var(--header-h) + 16px); }
  .pdp-two { grid-template-columns: 1fr 1fr; gap: 56px; }
  .buybar { display: none; }
}

/* ---------- Advisor ---------- */
.advisor { padding-top: 24px; }
.adv-head { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.adv-head .ab-glyph { background: var(--panel); }
.adv-grid { display: grid; gap: 20px; }
.adv-chat { display: flex; flex-direction: column; min-height: 340px; padding: 16px; box-shadow: var(--shadow-2); }
.chat-log { list-style: none; display: grid; gap: 14px; flex: 1; align-content: start; padding-bottom: 16px; }
.msg { display: flex; gap: 10px; align-items: flex-end; }
.msg:last-child { animation: viewIn 0.35s var(--ease-out) both; }
.msg.user { justify-content: flex-end; }
.msg-glyph { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--panel-2); color: var(--mint); border: 1px solid var(--panel-line); }
.msg .bubble { max-width: min(62ch, 100%); }
.msg.ai .bubble { flex: 1; max-width: 100%; }
.chat-input { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--panel-line); }
.ask-form { display: flex; gap: 8px; }
.ask-form .input { flex: 1; }
.ask-form .btn { padding: 0 18px; }

.picks { display: grid; gap: 12px; margin-top: 12px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.pick { background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--r-l); padding: 16px; display: grid; gap: 12px; align-content: start; }
.pick-head { display: flex; justify-content: space-between; align-items: center; }
.pick-role { font-weight: 650; font-stretch: var(--semi); font-size: var(--fs-s); }
.pick:first-child .pick-role { color: var(--mint); }
.pick-match { font-size: var(--fs-xs); font-weight: 650; }
.pick-main { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; }
.pick-main .h3 { font-size: 1.05rem; }
.pick-why, .pick-cons { list-style: none; display: grid; gap: 6px; font-size: var(--fs-s); }
.pick-why li, .pick-cons li { display: flex; gap: 8px; align-items: flex-start; }
.pick-why .i { color: var(--mint); flex: none; margin-top: 3px; }
.pick-cons { color: var(--panel-muted); }
.pick-cons .i { flex: none; margin-top: 3px; }
.pick-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.adv-side { display: grid; gap: 16px; align-content: start; }
.ctx-list { display: grid; gap: 8px; margin: 12px 0 16px; }
.ctx-list > div { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-s); }
.ctx-list dt { color: var(--muted); }
.ctx-list dd { margin: 0; text-align: right; font-weight: 560; }
.ground { list-style: none; display: grid; gap: 8px; font-size: var(--fs-xs); color: var(--ink-2); padding-top: 14px; border-top: 1px solid var(--line); }
.ground li { display: flex; gap: 8px; align-items: center; }
.ground .i { color: var(--vana); flex: none; }
.adv-progress { list-style: none; display: grid; gap: 2px; counter-reset: q; }
.adv-progress li { counter-increment: q; display: flex; gap: 10px; align-items: center; font-size: var(--fs-xs); color: var(--muted); padding: 6px 0; }
.adv-progress li::before { content: counter(q); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); font-weight: 650; flex: none; }
.adv-progress li.now { color: var(--ink); }
.adv-progress li.now::before { border-color: var(--ink); }
.adv-progress li.done::before { content: "✓"; background: var(--vana); color: var(--vana-ink); border-color: var(--vana); }
@media (max-width: 979px) { .adv-progress { display: none; } }
@media (min-width: 980px) {
  .adv-grid { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .adv-chat { padding: 24px; min-height: 420px; }
  .adv-side { position: sticky; top: calc(var(--header-h) + 16px); }
}

/* ---------- Compare ---------- */
.compare { padding-top: 24px; }
.cmp-scroll { overflow-x: auto; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-1); }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; min-width: calc(150px + var(--cols) * 170px); font-size: var(--fs-s); }
.cmp th, .cmp td { padding: 12px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.cmp thead th { vertical-align: top; background: var(--paper); }
.cmp tbody th { font-weight: 520; color: var(--muted); white-space: nowrap; }
.cmp th:first-child { position: sticky; left: 0; z-index: 1; background: var(--paper); width: 150px; box-shadow: 1px 0 0 var(--line); }
.cmp tr:last-child td, .cmp tr:last-child th { border-bottom: 0; }
.cmp-head { position: relative; display: grid; gap: 4px; justify-items: start; }
.cmp-art { width: 96px; display: block; }
.cmp-name { font-weight: 650; font-stretch: 108%; text-decoration: none; }
.cmp-x { position: absolute; right: -6px; top: -6px; width: 32px; height: 32px; }
.cmp td.is-best { background: var(--vana-soft); font-weight: 600; }
.best-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--vana); margin-left: 8px; vertical-align: middle; }
.mini-bar { display: inline-block; width: 60px; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; vertical-align: middle; margin-right: 8px; }
.mini-bar span { display: block; height: 100%; background: var(--vana); border-radius: inherit; }

/* ---------- Checkout ---------- */
.checkout { padding-top: 24px; }
.co-head { display: grid; gap: 6px; margin-bottom: 20px; }
.co-grid { display: grid; gap: 18px; }
.co-main { display: grid; gap: 14px; }
.co-step { display: grid; gap: 16px; }
.co-h { display: flex; align-items: center; gap: 12px; font-size: var(--fs-l); font-stretch: 110%; }
.co-h .step-n { width: 30px; height: 30px; font-size: var(--fs-xs); }
.ci-list { display: grid; }
.ci { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.ci:first-child { border-top: 0; padding-top: 0; }
.ci-art { display: block; }
.ci-body { display: grid; gap: 5px; align-content: start; }
.ci-name { font-weight: 650; text-decoration: none; font-stretch: 106%; }
.ci-side { grid-column: 2; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ci-side .price { margin-left: auto; }
@media (min-width: 640px) {
  .ci { grid-template-columns: 88px 1fr auto; }
  .ci-side { grid-column: 3; flex-direction: column; align-items: flex-end; }
  .ci-side .price { margin-left: 0; }
}

.delivery-modes { display: grid; gap: 8px; }
.delivery-modes button {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px; border-radius: var(--r-m);
  border: 1.5px solid var(--line-2); background: var(--paper-2); transition: border-color 0.15s, background 0.15s;
}
.delivery-modes button > span:last-child { display: grid; }
.delivery-modes button[aria-selected="true"] { border-color: var(--vana); background: var(--vana-soft); }
.dm-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--studio-2); flex: none; }
.delivery-modes button[aria-selected="true"] .dm-ic { background: var(--vana); color: var(--vana-ink); }
@media (min-width: 720px) { .delivery-modes { grid-template-columns: repeat(3, 1fr); } .delivery-modes button { flex-direction: column; align-items: flex-start; } }
.dm-pane { display: grid; gap: 14px; margin-top: 4px; }
.dm-promise { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-s); padding: 12px 14px; border-radius: var(--r-m); background: var(--studio-2); }
.dm-promise .i { color: var(--vana); flex: none; margin-top: 2px; }

.insts { display: grid; gap: 10px; }
.inst { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px; border-radius: var(--r-m); border: 1.5px solid var(--line-2); background: var(--paper-2); cursor: pointer; transition: border-color 0.15s; }
.inst:hover { border-color: var(--ink-2); }
.inst.is-on { border-color: var(--vana); box-shadow: 0 0 0 3px var(--vana-soft); }
.inst:has(input:focus-visible) { outline: 2px solid var(--vana); outline-offset: 2px; }
.inst-main { display: grid; gap: 4px; }
.inst-name { font-weight: 650; }
.inst-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--ink-2); }
.inst-meta span { display: inline-flex; align-items: center; gap: 3px; }
.inst-meta .i { color: var(--amber); }
.inst-caps { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.inst-caps .tag { height: 22px; font-size: 11px; }
.inst-side { display: grid; justify-items: end; align-content: start; gap: 2px; text-align: right; }
.inst-detail { display: grid; gap: 14px; padding: 16px; border-radius: var(--r-m); background: var(--studio-hi); border: 1px solid var(--line); }
.day-chip { flex-direction: column; min-height: 58px; min-width: 70px; justify-content: center; gap: 0; line-height: 1.2; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.times .chip { justify-content: center; }
.times .chip:disabled { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }
.hold { display: flex; gap: 8px; align-items: center; font-size: var(--fs-s); padding: 10px 12px; border-radius: var(--r-s); background: var(--panel); color: var(--panel-ink); }
.hold .i { color: var(--mint); flex: none; }
.hold b.num { color: var(--mint); }
.pickup { display: flex; gap: 14px; align-items: flex-start; }

.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-methods .chip { cursor: pointer; }
.pay-methods .chip:has(input:focus-visible) { outline: 2px solid var(--vana); outline-offset: 2px; }

.co-summary { align-self: start; }
.co-sum { display: grid; gap: 16px; box-shadow: var(--shadow-2); }
.sum-items { list-style: none; display: grid; gap: 10px; font-size: var(--fs-s); }
.sum-items li { display: flex; justify-content: space-between; gap: 12px; }
.shop-due { padding-top: 12px; border-top: 1px dashed var(--panel-line); }
.coupon { display: flex; gap: 8px; }
.coupon .input { height: 42px; font-size: var(--fs-s); }
.place { min-height: 54px; font-size: 1.05rem; }
/* Phones: the total and Pay stay in reach while filling the form */
.co-bar .btn { min-height: 44px; }
.checkout { padding-bottom: 72px; }
@media (min-width: 980px) { .checkout { padding-bottom: 0; } }
@media (min-width: 980px) {
  .co-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; }
  .co-summary { position: sticky; top: calc(var(--header-h) + 16px); }
}

/* ---------- Garage ---------- */
.garage { padding-top: 24px; }
.vehicles { display: grid; gap: 14px; }
@media (min-width: 900px) { .vehicles { grid-template-columns: repeat(2, 1fr); } }
.vcard { padding: 20px; display: grid; gap: 14px; align-content: start; }
.vcard.is-active { border-color: var(--vana); box-shadow: 0 0 0 1px var(--vana), var(--shadow-1); }
.vc-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.vc-top .tag-vana { margin-bottom: 8px; }
.vc-advice { color: var(--ink-2); }
.vc-facts { display: grid; gap: 8px; margin: 0; padding: 14px 0; border-block: 1px solid var(--line); }
.vc-facts > div { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-s); }
.vc-facts dt { color: var(--muted); }
.vc-facts dd { margin: 0; text-align: right; }
.vc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.gauge { position: relative; width: 104px; height: 104px; flex: none; }
.gauge svg { width: 100%; height: 100%; }
.gauge .g-val { stroke: var(--vana); }
.gauge.warn .g-val { stroke: var(--amber); }
.gauge.bad .g-val { stroke: var(--danger); }
.g-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.g-num b { font-stretch: var(--wide); font-size: 1.05rem; }
.g-num span { font-size: 10px; color: var(--muted); }
.gauge.empty { display: grid; place-items: center; border-radius: 50%; border: 1px dashed var(--line-2); font-size: 11px; color: var(--muted); text-align: center; padding: 14px; }

.orders { display: grid; gap: 10px; }
.order-row { display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; align-items: center; padding: 16px; text-decoration: none; }
.order-row > .i { display: none; }
.order-status { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 1 / -1; }
@media (min-width: 720px) { .order-row { grid-template-columns: 1fr auto auto; } .order-status { grid-column: auto; } .order-row > .i { display: block; } }
.remind { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; cursor: pointer; }
.remind > span:first-child { display: grid; gap: 2px; }
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool { display: grid; gap: 6px; justify-items: start; text-align: left; padding: 16px; border: 1px solid var(--line); cursor: pointer; transition: border-color 0.15s; }
.tool:hover { border-color: var(--ink-2); }
.tool .i { color: var(--vana); }
.howto { padding-left: 20px; display: grid; gap: 10px; }

/* ---------- Track ---------- */
.track { padding-top: 24px; }
.placed { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; box-shadow: var(--shadow-2); }
.placed .icon-circle { background: var(--mint); color: var(--mint-ink); border: 0; }
.placed .h2 { margin-bottom: 4px; }
.track > .h1 { margin-bottom: 20px; }
.track-grid { display: grid; gap: 16px; }
.track-main { display: grid; gap: 16px; align-content: start; }
.pieces { display: flex; align-items: center; gap: 0; overflow-x: auto; padding: 4px 0; }
.piece { display: grid; justify-items: center; gap: 4px; padding: 10px 12px; border-radius: var(--r-m); background: var(--studio-2); flex: none; }
.piece.moving { background: var(--vana-soft); color: var(--vana); }
.pieces .link { flex: 1; min-width: 14px; height: 2px; background: repeating-linear-gradient(90deg, var(--vana) 0 6px, transparent 6px 10px); }
.timeline { list-style: none; display: grid; }
.timeline li { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding-bottom: 18px; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline li.done:not(:last-child)::before { background: var(--vana); }
.tl-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--paper); }
.timeline li.done .tl-dot { background: var(--vana); border-color: var(--vana); }
.timeline li.now .tl-dot { border-color: var(--vana); box-shadow: 0 0 0 5px var(--vana-soft); }
.timeline li:not(.done):not(.now) b { color: var(--muted); font-weight: 520; }
.appt-when { display: flex; align-items: center; gap: 10px; font-size: var(--fs-l); }
.appt-when .i { color: var(--vana); }
.track-items { list-style: none; display: grid; gap: 12px; margin-top: 12px; font-size: var(--fs-s); }
.track-items li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; }
.track-side { display: grid; gap: 16px; align-content: start; }
.help-actions { display: grid; gap: 4px; }
.help-actions .h4 { margin-bottom: 8px; }
.act { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 10px; margin-inline: -10px; border-radius: var(--r-m); border: 0; background: transparent; text-decoration: none; }
.act:hover { background: var(--studio-2); }
.act > span { display: grid; }
.act .i { color: var(--vana); flex: none; }
.resched { display: grid; gap: 14px; }
.resched > div { display: grid; gap: 8px; }
@media (min-width: 980px) { .track-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; } }

/* ---------- Help ---------- */
.help { padding-top: 24px; }
.help-head { display: grid; gap: 14px; justify-items: start; }
.help-head .lede { max-width: 60ch; }
.model-credits { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: var(--fs-xs); max-width: 90ch; }
@media (min-width: 980px) { .model-credits { grid-template-columns: 1fr 1fr; column-gap: 32px; max-width: none; } }
.model-credits a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Size guide (sheet + help page) */
.size-guide { display: grid; gap: 18px; }
.sg-art { width: 100%; height: auto; border-radius: var(--r-m); background: #0F1213; }
.sg-parts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sg-parts li { display: grid; gap: 2px; padding: 12px; border-radius: var(--r-m); background: var(--studio-2); }
.sg-v { font-stretch: var(--wide); font-weight: 740; font-size: 1.4rem; line-height: 1.1; }
.sg-k { font-weight: 620; font-size: var(--fs-s); }
.sg-d { font-size: var(--fs-xs); color: var(--muted); }
.sg-where { display: grid; gap: 12px; }
.sg-where > div { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-s); }
.sg-where .i { color: var(--vana); flex: none; }
@media (min-width: 720px) { .sg-parts { grid-template-columns: repeat(6, 1fr); } .sg-where { grid-template-columns: 1fr 1fr; } }

/* Scan sheet */
.scan { display: grid; gap: 16px; }
.scan-drop {
  position: relative; display: flex; gap: 16px; align-items: center; padding: 22px; border-radius: var(--r-l);
  border: 1.5px dashed var(--panel-line); background: var(--panel-2); cursor: pointer; color: var(--panel-ink);
}
.scan-drop .i { color: var(--mint); flex: none; }
.scan-drop.light { border-color: var(--line-2); background: var(--paper-2); color: var(--ink); }
.scan-drop.light .i { color: var(--vana); }
.scan-drop:focus-within { outline: 2px solid var(--mint); outline-offset: 2px; }
.scan-frame { position: absolute; inset: 8px; pointer-events: none; }
.scan-frame i { position: absolute; width: 16px; height: 16px; border: 2px solid var(--mint); }
.scan-frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.scan-frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.scan-frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.scan-frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.scan-result { display: grid; gap: 12px; }
.scan-preview { position: relative; border-radius: var(--r-m); overflow: hidden; max-height: 220px; }
.scan-preview img { width: 100%; height: 220px; object-fit: cover; }
.scan-beam { position: absolute; left: 0; right: 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(143, 227, 176, 0.35), transparent); animation: beam 1.4s var(--ease) infinite; }
@keyframes beam { from { top: -40%; } to { top: 100%; } }

/* ==========================================================================
   Brands
   ========================================================================== */
.brand-wordmark { display: inline-block; font-family: var(--font); line-height: 1; color: var(--ink); white-space: nowrap; }
.panel .brand-wordmark { color: var(--panel-ink); }
.brands, .brand-page, .deals { padding-top: 24px; }

.brand-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .brand-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .brand-grid { grid-template-columns: repeat(4, 1fr); } }
.brand-card { display: grid; gap: 10px; align-content: start; padding: 0 0 18px; text-decoration: none; overflow: hidden; transition: border-color 0.15s, transform 0.2s var(--ease), box-shadow 0.2s; }
.brand-card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.bc-mark { display: grid; place-items: center; height: 116px; padding: 0 12px; background: radial-gradient(70% 80% at 50% 40%, var(--stage-hi), var(--stage-lo)); border-bottom: 1px solid var(--line); overflow: hidden; }
.bc-tags, .bc-line, .bc-facts, .brand-card > .fit-pill { margin-inline: 18px; }
.bc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-line { color: var(--ink-2); }
.bc-facts { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); }

.brand-hero { display: grid; padding: 0; overflow: hidden; }
.bh-mark { display: grid; place-items: center; align-content: center; gap: 16px; padding: 40px 20px; text-align: center; background: radial-gradient(70% 80% at 50% 45%, var(--stage-hi), var(--stage-lo)); border-bottom: 1px solid var(--line); overflow: hidden; }
.bh-copy { display: grid; gap: 18px; padding: 22px 20px 24px; align-content: center; }
.bh-facts { display: grid; margin: 0; }
.bh-facts > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: var(--fs-s); }
.bh-facts dt { color: var(--muted); }
.bh-facts dd { margin: 0; text-align: right; font-weight: 560; }
@media (min-width: 900px) {
  .brand-hero { grid-template-columns: 1.1fr 1fr; }
  .bh-mark { border-bottom: 0; border-right: 1px solid var(--line); padding: 56px 32px; }
  .bh-copy { padding: 32px; }
}

.brand-strip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.brand-strip::-webkit-scrollbar { display: none; }
.brand-chip {
  flex: none; display: grid; gap: 6px; justify-items: center; align-content: center; min-width: 150px; min-height: 84px; padding: 12px 18px;
  border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line); text-decoration: none; transition: border-color 0.15s, box-shadow 0.2s;
}
.brand-chip:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }
@media (min-width: 1000px) { .brand-strip { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; } .brand-chip { min-width: 0; } }

.tcard-brand-link { position: relative; z-index: 2; color: inherit; text-decoration: none; }
.tcard-brand-link:hover, .pdp-brand a:hover { text-decoration: underline; }
.pdp-brand a { color: inherit; text-decoration: none; }

/* ==========================================================================
   Deals
   ========================================================================== */
.deal-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.deal-grid > .empty { grid-column: 1 / -1; }
.deal { display: grid; gap: 14px; padding: 18px; align-content: start; grid-template-rows: auto auto 1fr auto; }
.deal-top { display: flex; justify-content: space-between; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.deal-kind { font-size: var(--fs-xs); font-weight: 650; color: var(--vana); }
.deal[data-kind="card"] .deal-kind { color: var(--ink-2); }
.deal-ends { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); color: var(--muted); }
.deal-ends.soon { color: var(--signal); font-weight: 600; }
.deal-body { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; }
.deal-art { display: block; }
.deal-glyph { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--volt); color: var(--volt-ink); }
.deal-amount { font-stretch: var(--wide); font-style: italic; font-weight: 820; font-size: 1.9rem; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.deal-amount span { font-size: var(--fs-s); font-style: normal; font-weight: 560; font-stretch: 100%; letter-spacing: 0; color: var(--muted); }
.deal-title { font-size: var(--fs-m); font-weight: 620; line-height: 1.3; margin: 6px 0; }
.deal-terms { font-size: var(--fs-xs); color: var(--muted); align-self: start; }
.deal-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.code-chip {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 6px 0 16px; border-radius: var(--pill);
  border: 1.5px dashed var(--vana); background: var(--vana-soft); color: var(--ink); font-stretch: var(--wide); font-weight: 720; letter-spacing: 0.06em;
}
.code-chip span { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: var(--pill); background: var(--vana); color: var(--vana-ink); font-size: var(--fs-xs); font-stretch: 100%; letter-spacing: 0; font-weight: 600; }

.deals-head { display: grid; gap: 8px; margin-bottom: 20px; }
.deals-head .lede { max-width: 62ch; }
.ending-soon { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 18px; border-radius: var(--r-l); text-decoration: none; box-shadow: var(--shadow-2); }
.ending-soon > span:nth-child(2) { display: grid; gap: 2px; flex: 1; min-width: 0; }
.es-clock { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--panel-2); color: var(--signal-panel); flex: none; }
.deal-filters { margin-bottom: 16px; }
.chip-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--pill); background: var(--line); font-size: 11px; font-weight: 700; }
.chip[aria-pressed="true"] .chip-count { background: color-mix(in srgb, var(--studio) 22%, transparent); }
.deals-extra { display: grid; gap: 14px; }
@media (min-width: 900px) { .deals-extra { grid-template-columns: 1.2fr 1fr; } }
.price-watch, .price-match { display: grid; gap: 12px; align-content: start; justify-items: start; }
.price-watch p .i { display: inline; vertical-align: -3px; color: var(--mint); }
.watch-form { display: flex; gap: 8px; width: 100%; max-width: 460px; }
.watch-form .input { flex: 1; min-width: 0; }
.deals-fine { margin-top: 24px; }

/* Savings and money-back rows */
.save { color: var(--vana); font-weight: 600; }
.breakdown .row.later { padding-top: 6px; }
.breakdown .row.later span:first-child { display: inline-flex; gap: 6px; align-items: center; color: var(--mint); }
.breakdown .row.later span:last-child { color: var(--mint); }
.breakdown.on-light .row.later span { color: var(--vana) !important; }
.bb-rebate a { color: var(--mint); }
.bb-rebate b { color: var(--panel-ink); }

/* Wordmarks fit their box: container query units divided by the mark's em width */
.bc-mark, .bh-mark, .brand-chip { container-type: inline-size; }
.bc-mark .brand-wordmark, .bh-mark .brand-wordmark, .brand-chip .brand-wordmark { font-size: min(var(--max), calc(84cqi / var(--em))) !important; }

/* ==========================================================================
   Shop header: 3D vehicle stage
   ========================================================================== */
.shop-head.has-car { display: grid; gap: 4px; align-items: center; }
.shop-head-text { display: grid; gap: 10px; }
.car-stage {
  position: relative; aspect-ratio: 2.3 / 1; margin-inline: calc(var(--gutter) * -1); overflow: hidden; touch-action: pan-y;
  background: radial-gradient(55% 62% at 50% 62%, var(--stage-hi), transparent 76%);
}
@media (min-width: 980px) {
  .shop-head.has-car { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; }
  .car-stage { margin: -8px calc(var(--gutter) * -1) -8px 0; aspect-ratio: 2.2 / 1; }
}
.car-svg { position: absolute; left: 9%; top: 16%; width: 82%; height: 74%; transition: opacity 0.5s ease; }
.car-stage.is-3d .car-svg { opacity: 0; }
.cs-body { fill: #AAB4B8; }
.cs-glass { fill: #3A4448; }
.cs-tire { fill: #16191A; }
.cs-rim { fill: #9AA5A9; }
.cs-hub { fill: var(--vana); }
.cs-shadow { fill: rgba(0, 0, 0, 0.16); }
.car3d-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; cursor: grab; opacity: 0; transition: opacity 0.4s ease; }
.car3d-canvas:active { cursor: grabbing; }
.car-stage.is-3d .car3d-canvas { opacity: 1; }
.car-tag {
  position: absolute; left: 0; top: 0; z-index: 2; display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px;
  border-radius: var(--pill); border: 1px solid var(--panel-line); box-shadow: var(--shadow-2);
  background: color-mix(in srgb, var(--panel) 92%, transparent); color: var(--panel-ink);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 11px; line-height: 1.25; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.35s ease;
}
/* leader line from the pill up to where the tire meets the ground */
.car-tag::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 11px; background: var(--mint); }
.car-tag::after { content: ""; position: absolute; left: calc(50% - 2.5px); bottom: calc(100% + 10px); width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }
.car-tag span { color: var(--panel-muted); }
.car-tag b { color: var(--mint); font-stretch: var(--semi); font-weight: 650; font-size: 12px; font-variant-numeric: tabular-nums; }
.car-tag.is-on { opacity: 1; }
.car-hint { position: absolute; right: max(var(--gutter), 10px); bottom: 6px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); color: var(--muted); pointer-events: none; }
@media (min-width: 980px) { .car-hint { right: 10px; } }
