:root {
  --ink: #171c22;
  --muted: #66717b;
  --paper: #f5f5f2;
  --white: #fff;
  --line: #d9ddd9;
  --a: #ff5a43;
  --b: #1f6e91;
  --grid: rgba(26, 47, 58, 0.075);
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button { color: inherit; }
.skip-link { position: fixed; z-index: 1010; left: 16px; top: 12px; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--b); outline-offset: 3px; }

.topbar { height: 60px; padding-inline: max(clamp(16px, 4vw, 64px), calc((100vw - 1400px) / 2)); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: rgba(245,245,242,.94); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; width: max-content; color: var(--ink); text-decoration: none; }
.brand-mark { display: block; width: 188px; height: auto; }
.brand > span { display: none; }
.topbar p { margin: 0; color: var(--muted); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.icon-button { justify-self: end; width: 40px; height: 40px; border: 1px solid var(--line); background: transparent; border-radius: 50%; cursor: pointer; font-weight: 750; }

main { padding: clamp(24px, 4vw, 46px) clamp(16px, 4vw, 64px) 72px; }
.compare-shell { max-width: 1400px; margin: 0 auto; }
.intro-row { margin-bottom: 22px; }
.eyebrow { margin: 0 0 7px; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 800; color: #bf3828; }
h1, h2 { margin: 0; letter-spacing: -.045em; line-height: 1; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); }

.picker-row { display: grid; grid-template-columns: 1fr 52px 1fr; align-items: center; gap: 12px; margin-bottom: 16px; }
.car-card { min-height: 82px; width: 100%; border: 1px solid var(--line); border-radius: 14px; background: var(--white); display: grid; grid-template-columns: auto 84px 1fr auto; align-items: center; gap: 12px; padding: 9px 14px; text-align: left; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.car-card:hover { border-color: #aeb5b6; box-shadow: 0 8px 24px rgba(29,36,42,.07); transform: translateY(-1px); }
.car-card:focus-visible { outline: 3px solid rgba(31,110,145,.22); outline-offset: 2px; }
.car-card .number { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: .72rem; font-weight: 850; color: #fff; }
.car-a .number { background: #bf3828; }.car-b .number { background: var(--b); }
.car-card strong, .car-card small { display: block; }.car-card strong { font-size: 1rem; }.car-card small { color: var(--muted); margin-top: 3px; font-size: .78rem; }
.selected-car-thumb { width: 84px; height: 58px; display: grid; place-items: center; overflow: hidden; }
.selected-car-thumb img { width: 100%; height: 100%; object-fit: contain; }
.change-car { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .76rem; font-weight: 780; }
.change-car b { color: var(--ink); font-size: 1rem; }
.swap-button { border: 1px solid var(--line); background: var(--white); border-radius: 50%; width: 44px; height: 44px; cursor: pointer; font-size: 1.25rem; transition: transform .16s ease, border-color .16s ease; }
.swap-button:hover { transform: rotate(180deg); border-color: var(--ink); }

.stage-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--white); box-shadow: 0 22px 60px rgba(29,36,42,.07); }
.comparison-nav { display: grid; gap: 9px; padding: 12px 18px 15px; border-bottom: 1px solid var(--line); }
.comparison-nav > span { color: var(--muted); font-size: .76rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.nav-actions { display: grid; grid-template-columns: 42px minmax(0, 1fr); grid-template-rows: repeat(2, 45px); gap: 6px 12px; align-items: stretch; }
.lights-button { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 99px; background: transparent; cursor: pointer; color: var(--muted); font-size: .78rem; font-weight: 750; }
.lights-button i { width: 13px; height: 13px; border: 2px solid currentColor; border-radius: 50%; position: relative; }
.lights-button i::after { content: ""; position: absolute; width: 5px; height: 2px; left: 2px; bottom: -5px; border-radius: 2px; background: currentColor; }
.lights-button[aria-pressed="true"] { color: #705000; border-color: #e7c75c; background: #fff5bf; }
.lights-button:disabled { opacity: .48; cursor: not-allowed; }
.grid-button { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 99px; background: transparent; cursor: pointer; color: var(--muted); font-size: .78rem; font-weight: 750; }
.grid-button i { width: 14px; height: 14px; border: 1px solid currentColor; background: linear-gradient(90deg, transparent 47%, currentColor 47% 53%, transparent 53%), linear-gradient(transparent 47%, currentColor 47% 53%, transparent 53%); opacity: .8; }
.grid-button[aria-pressed="false"] { background: #f1f2ef; color: var(--ink); }
.nav-actions .lights-button, .nav-actions .grid-button { min-width: 42px; min-height: 38px; padding: 0; justify-content: center; border-radius: 10px; }
.nav-actions .lights-button { grid-column: 1; grid-row: 1; }
.nav-actions .grid-button { grid-column: 1; grid-row: 2; }
.nav-actions .lights-button span, .nav-actions .grid-button span { display: none; }
.view-tabs { grid-column: 2; grid-row: 1 / span 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.view-tabs button { display: flex; min-height: 96px; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border: 1px solid var(--line); background: #fff; padding: 7px 6px; border-radius: 11px; cursor: pointer; font-weight: 750; font-size: .86rem; line-height: 1.1; }
.view-tabs button:focus-visible { outline: 3px solid rgba(31,110,145,.5); outline-offset: 2px; }
.view-tabs .view-art-frame { position: relative; width: 180px; max-width: 100%; height: 48px; flex: none; }
.view-tabs .view-art { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.view-tabs .view-name { white-space: nowrap; }
.view-tabs button[aria-selected="true"] { border: 2px solid var(--b); background: #eaf5fa; color: var(--b); }
.view-tabs button:disabled { cursor: wait; opacity: .58; }

.vehicle-stage { height: clamp(310px, 36vw, 440px); position: relative; overflow: hidden; background-color: #fafaf8; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 40px 40px; isolation: isolate; }
.vehicle-stage.no-grid { background-image: none; }
.vehicle-stage::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(250,250,248,.88), rgba(250,250,248,.15) 45%, transparent); pointer-events: none; z-index: 1; }
.view-frame { position: absolute; inset: 0; z-index: 2; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s linear; }
.view-frame.active { z-index: 3; opacity: 1; visibility: visible; }
.vehicle-layer { position: absolute; inset: 0; pointer-events: none; transition: opacity .25s ease; }
.vehicle-layer img { position: absolute; z-index: 1; max-width: none; user-select: none; }
.pre-arrival .view-frame.active .vehicle-layer, .pre-arrival .vehicle-tag, .pre-arrival .dimension-guides { visibility: hidden; }
.arrival .view-frame[data-frame="side"].active .layer-a { animation: car-arrive 1.6s cubic-bezier(.3,.45,.5,1) both; }
.arrival .view-frame[data-frame="side"].active .layer-b { animation: car-arrive 1.65s 1.7s cubic-bezier(.3,.45,.5,1) both; }
.arrival .view-frame[data-frame="side"].active .layer-a.is-front { animation: car-arrive 1.6s cubic-bezier(.3,.45,.5,1) both; }
.arrival .view-frame[data-frame="side"].active .layer-b.is-front { animation: car-arrive 1.65s 1.7s cubic-bezier(.3,.45,.5,1) both; }
.manual-reveal .view-frame.active .vehicle-layer.is-front { animation: reveal-car-behind 1.4s ease-in-out both; }
.hold-reveal .view-frame.active .vehicle-layer.is-front { opacity: .22; }
.switching-front .view-frame.active .vehicle-layer.is-front { animation: bring-car-forward .5s ease both; }
.arrival .vehicle-tag { animation: reveal-detail .35s 3.47s ease both; }
.arrival .dimension-guides { animation: reveal-detail .45s 3.55s ease both; }
.wheel { position: absolute; z-index: 2; display: block; border-radius: 50%; overflow: hidden; pointer-events: none; transform-origin: center center; visibility: hidden; }
.wheel-rotor { display: block; width: 100%; height: 100%; border-radius: 50%; background-repeat: no-repeat; transform-origin: center center; }
.arrival .view-frame.active .wheel { visibility: visible; }
.exhaust { --puff-size: 20px; position: absolute; z-index: 6; width: var(--puff-size); height: var(--puff-size); border-radius: 50%; opacity: 0; pointer-events: none; background: radial-gradient(circle, rgba(54,61,64,.64), rgba(92,100,103,.34) 48%, transparent 74%); filter: blur(1.2px); }
.arrival .view-frame.active .exhaust.side { animation: exhaust-side .95s var(--puff-delay) ease-out both; }
.arrival .view-frame.active .exhaust.rear { animation: exhaust-rear .95s var(--puff-delay) ease-out both; }
.lamp { position: absolute; z-index: 2; transform: translate(-50%, -50%); border-radius: 50%; opacity: 0; mix-blend-mode: screen; pointer-events: none; transition: opacity .25s ease, filter .25s ease; }
.lights-on .lamp { opacity: .92; }
.arrival .view-frame.active .layer-a .lamp.tail { animation: brake-on-stop 1.6s ease-out both; }
.arrival .view-frame.active .layer-b .lamp.tail { animation: brake-on-stop 1.65s 1.7s ease-out both; }
.flash-headlights .view-frame.active .lamp.head { animation: headlight-double-flash .9s ease both; }
.lamp.head { background: radial-gradient(ellipse, rgba(255,255,246,1) 0 18%, rgba(255,238,160,.92) 28%, rgba(255,218,94,.38) 55%, transparent 75%); filter: drop-shadow(0 0 9px rgba(255,225,125,.9)); }
.lamp.tail { background: radial-gradient(ellipse, rgba(255,108,72,1) 0 18%, rgba(241,29,18,.88) 32%, rgba(218,0,0,.32) 58%, transparent 76%); filter: drop-shadow(0 0 8px rgba(244,35,20,.72)); }
.vehicle-tag { position: absolute; z-index: 7; padding: 6px 10px; border-radius: 99px; color: #fff; font-size: .72rem; font-weight: 800; line-height: 1; white-space: nowrap; box-shadow: 0 3px 12px rgba(0,0,0,.13); }
.tag-a { background: var(--a); }.tag-b { background: var(--b); }
.ground-line { position: absolute; left: 4%; right: 4%; bottom: 12%; height: 2px; background: var(--ink); z-index: 4; }
.ground-line::before { content: "GROUND"; position: absolute; right: 0; top: 8px; font-size: .62rem; letter-spacing: .14em; color: var(--muted); }
.vehicle-stage[data-view="front"] .ground-line::before, .vehicle-stage[data-view="rear"] .ground-line::before { display: none; }
.scale-key { position: absolute; z-index: 5; left: 22px; top: 20px; font-size: .7rem; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.scale-key span { display: inline-block; height: 8px; border-left: 1px solid var(--muted); border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted); }
.dimension-guides { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.dimension-guide { position: absolute; color: var(--a); }
.dimension-guide.b { color: var(--b); }
.dimension-guide::before, .dimension-guide::after { content: ""; position: absolute; background: currentColor; }
.dimension-guide span { position: absolute; display: block; padding: 3px 5px; border-radius: 4px; background: rgba(255,255,255,.96); font-size: .7rem; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.height-guide { width: 1px; border-left: 1px solid currentColor; }
.height-guide::before, .height-guide::after { left: -5px; width: 9px; height: 1px; }
.height-guide::before { top: 0; }.height-guide::after { bottom: 0; }
.height-guide.a span { left: 7px; top: 2px; }.height-guide.b span { right: 7px; top: 2px; }
.width-guide { height: 1px; border-top: 1px solid currentColor; }
.width-guide::before, .width-guide::after { top: -5px; width: 1px; height: 9px; }
.width-guide::before { left: 0; }.width-guide::after { right: 0; }
.width-guide span { top: 3px; left: 50%; transform: translateX(-50%); }
.vehicle-tag { display: none; }
.comparison-detail { max-width: 1280px; margin: 42px auto 90px; padding: 0 24px; color: #27313b; }
.popular-comparisons { max-width: 1280px; margin: 42px auto 90px; padding: 0 24px; color: #27313b; }
.popular-comparisons h2 { margin: 8px 0 16px; font-size: clamp(1.35rem, 2vw, 2rem); }
.popular-comparisons p { max-width: 850px; line-height: 1.65; color: #5e6973; }
.comparison-detail h2 { margin: 8px 0 16px; font-size: clamp(1.35rem, 2vw, 2rem); }
.comparison-detail p { max-width: 850px; line-height: 1.65; color: #5e6973; }
.comparison-detail h3 { margin: 30px 0 12px; }
.share-gallery { margin-top: 24px; border-top: 1px solid #d9dddc; border-bottom: 1px solid #d9dddc; padding: 16px 0; }
.share-gallery > h3 { margin: 0 0 8px; }
.share-gallery > p { margin: 0 0 18px; }
.share-gallery-grid { display: grid; gap: 16px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.share-gallery-grid figure { margin: 0; }.share-gallery-grid figure:first-child { grid-column: 1 / -1; }.share-gallery-grid img { display: block; width: 100%; height: auto; border: 1px solid #e1e4e3; border-radius: 12px; }.share-gallery-grid figcaption { margin-top: 6px; color: #5e6973; font-size: .85rem; }
.related-comparisons { display: flex; flex-wrap: wrap; gap: 8px; }.related-comparisons a { border: 1px solid #d9dddc; border-radius: 100px; padding: 8px 12px; color: #1f6e91; text-decoration: none; font-size: .85rem; }.related-comparisons a:hover { border-color: #1f6e91; background: #eef6f8; }
@media (max-width: 700px) { .share-gallery-grid { grid-template-columns: 1fr; } }

.stage-footer { min-height: 88px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 18px; padding: 10px 18px; border-top: 1px solid var(--line); }
.stage-actions { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.align-control { display: flex; align-items: center; gap: 4px; }.align-control[hidden] { display: none; }
.align-title { color: var(--muted); font-size: .76rem; margin-right: 4px; }
.align-control button { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; padding: 8px 11px; font-size: .78rem; font-weight: 750; }.align-control button.active { background: #e9ece9; }
.align-control button:focus-visible { outline: 3px solid rgba(31,110,145,.25); outline-offset: 2px; }
.align-icon { display: block; width: 44px; height: 26px; flex: 0 0 44px; object-fit: contain; }
.peek-button { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #cbd5d8; border-radius: 9px; background: #fff; color: var(--ink); padding: 7px 11px; cursor: pointer; font: inherit; font-size: .78rem; font-weight: 750; white-space: nowrap; }
.peek-button:hover, .peek-button:focus-visible { border-color: var(--b); background: #f0f8fa; }
.peek-button.is-suggested { border-color: var(--b); background: #e4f2f6; color: var(--b); box-shadow: 0 0 0 3px rgba(31,110,145,.12); }
.peek-button[aria-pressed="true"] { border-color: var(--b); background: #dceef4; color: var(--b); }
.peek-button[hidden] { display: none; }
.peek-icon { font-size: 1rem; line-height: 1; }
.stack-button { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #cbd5d8; border-radius: 9px; background: #fff; color: var(--ink); padding: 7px 11px; cursor: pointer; font: inherit; font-size: .78rem; font-weight: 750; white-space: nowrap; }
.stack-button:hover, .stack-button:focus-visible { border-color: var(--a); background: #fff4f1; }
.stack-button[hidden] { display: none; }
.stack-icon { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #eef0ed; font-size: .9rem; line-height: 1; }
.stage-footer p { margin: 0; color: var(--muted); font-size: .76rem; text-align: right; }
.alignment-note { grid-column: 1; color: var(--ink) !important; text-align: left !important; }.alignment-note strong { font-weight: 800; }
#viewNote { grid-column: 2; }
.comparison-summary { margin: 22px 0 0; padding: 22px clamp(18px, 3vw, 34px); border-left: 4px solid var(--a); border-radius: 0 12px 12px 0; background: #fff; font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 750; line-height: 1.35; letter-spacing: -.02em; }

.specs { display: grid; grid-template-columns: .65fr 2.35fr; gap: clamp(30px, 6vw, 90px); padding: 60px 0 10px; }
.spec-heading { min-width: 0; }
.spec-legend { display: grid; gap: 7px; margin-top: 20px; font-size: .8rem; line-height: 1.3; }
.spec-legend > span { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.spec-legend b { flex: 0 0 auto; font-variant-numeric: tabular-nums; font-size: .7rem; }
.spec-legend-a { color: #bf3828; }
.spec-legend-b { color: var(--b); }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.spec-grid article { padding: 14px 14px 10px; border-right: 1px solid var(--line); }.spec-grid article:last-child { border-right: 0; }
.spec-grid span { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 20px; }
.spec-grid strong { display: block; font-size: clamp(1.15rem, 2vw, 1.8rem); line-height: 1.3; }.spec-grid i { font-style: normal; }.spec-grid em { font-size: .65rem; font-style: normal; margin-left: 4px; color: var(--muted); font-weight: 650; }
.spec-grid strong { font-variant-numeric: tabular-nums; }
.spec-grid strong:first-of-type { color: #bf3828; }
.spec-grid strong:nth-of-type(2) { color: var(--b); }
.spec-grid small { display: inline-block; margin-top: 12px; padding: 4px 7px; border-radius: 4px; background: #e7eaeb; color: var(--ink); font-weight: 750; }

#infoDialog { width: min(520px, calc(100% - 32px)); border: 0; border-radius: 18px; padding: 34px; box-shadow: 0 30px 100px rgba(0,0,0,.25); }
#infoDialog::backdrop { background: rgba(19,24,29,.55); }
#infoDialog > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
#infoDialog h2 { font-size: 2rem; margin-bottom: 20px; }
#infoDialog #closeInfo { position: absolute; top: 14px; right: 14px; border: 0; background: #eee; width: 40px; height: 40px; border-radius: 50%; font-size: 1.25rem; cursor: pointer; }

.vehicle-picker { width: min(860px, calc(100% - 32px)); max-height: min(820px, calc(100vh - 32px)); border: 0; border-radius: 22px; padding: 0; background: var(--white); color: var(--ink); box-shadow: 0 30px 110px rgba(10,18,24,.35); overflow: hidden; }
.vehicle-picker::backdrop { background: rgba(19,24,29,.62); backdrop-filter: blur(4px); }
.vehicle-picker-inner { padding: 26px; overflow: auto; max-height: min(820px, calc(100vh - 32px)); }
.vehicle-picker-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.vehicle-picker-header h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.picker-close { flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer; font-size: 1.35rem; line-height: 1; }
.vehicle-search { min-height: 58px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border: 2px solid var(--ink); border-radius: 14px; padding: 0 16px; background: #fff; }
.vehicle-search:focus-within { box-shadow: 0 0 0 4px rgba(31,110,145,.12); }
.vehicle-search > span { font-size: 1.65rem; line-height: 1; transform: rotate(-20deg); color: var(--muted); }
.vehicle-search input { min-width: 0; border: 0; outline: 0; background: transparent; font-size: 1rem; color: var(--ink); }
.vehicle-search input::placeholder { color: #81898f; }
.vehicle-search kbd { padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--muted); font-size: .65rem; font-family: inherit; }
.make-filters { display: flex; gap: 8px; margin: 16px 0 22px; overflow-x: auto; scrollbar-width: none; }
.make-filters::-webkit-scrollbar { display: none; }
.make-filters button { flex: 0 0 auto; min-height: 38px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; background: #fff; cursor: pointer; color: var(--muted); font-size: .8rem; font-weight: 760; }
.make-filters button.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.picker-results-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.picker-results-heading h3 { margin: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .11em; }
.picker-results-heading span { color: var(--muted); font-size: .76rem; }
.vehicle-results { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.vehicle-result { min-height: 112px; display: grid; grid-template-columns: 122px minmax(0,1fr); align-items: center; gap: 13px; padding: 9px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.vehicle-result:hover { border-color: #aeb5b6; background: #fbfbf9; transform: translateY(-1px); }
.vehicle-result:focus-visible { outline: 3px solid rgba(31,110,145,.22); outline-offset: 1px; }
.result-image { width: 122px; height: 92px; display: grid; place-items: center; border-radius: 10px; overflow: hidden; background: #f8f8f6; }
.result-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.result-copy { min-width: 0; }
.result-make { display: block; margin-bottom: 3px; color: var(--muted); font-size: .66rem; font-weight: 820; letter-spacing: .1em; text-transform: uppercase; }
.result-copy strong { display: block; font-size: .98rem; line-height: 1.2; }
.result-copy small { display: block; margin-top: 5px; color: var(--muted); font-size: .72rem; line-height: 1.35; }
.result-state { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 4px 7px; border-radius: 99px; background: #eaf3ed; color: #22633b; font-size: .64rem; font-weight: 800; }
.result-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2f8c53; }
.vehicle-result.is-pending .result-state { background: #f0f1ef; color: var(--muted); }
.vehicle-result.is-pending .result-state::before { background: #a7ada9; }
.vehicle-result[aria-selected="true"] { border-color: var(--a); box-shadow: inset 0 0 0 1px var(--a); }
.picker-status { min-height: 20px; margin: 12px 2px 0; color: #8a4e00; font-size: .78rem; font-weight: 680; }
.picker-empty { grid-column: 1 / -1; padding: 42px 20px; border: 1px dashed var(--line); border-radius: 14px; text-align: center; color: var(--muted); }

.analytics-banner[hidden] { display: none; }
.analytics-banner { position: fixed; z-index: 1000; right: 16px; bottom: 16px; width: min(390px, calc(100vw - 32px)); padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 16px 45px rgba(23, 28, 34, .18); }
.analytics-banner p { margin: 0 0 14px; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.analytics-banner strong { color: var(--ink); }
.analytics-actions { display: flex; gap: 8px; justify-content: flex-end; }
.analytics-actions button, .analytics-settings { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f4f4f1; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.analytics-actions button[data-analytics-choice="granted"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.analytics-settings { margin-top: 12px; }
.analytics-actions button:focus-visible, .analytics-settings:focus-visible { outline: 3px solid var(--b); outline-offset: 2px; }

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding: 24px clamp(16px, 4vw, 64px); border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.site-footer a { color: var(--ink); }
.legal-page { max-width: 800px; margin: 0 auto; padding: 48px 20px 88px; line-height: 1.65; }
.legal-page h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
.legal-page h2 { margin-top: 32px; font-size: 1.3rem; line-height: 1.3; }
.legal-page p, .legal-page li { color: #37414a; }
.legal-page a { color: #175b7b; }

@media (max-width: 1050px) {
  .car-card { grid-template-columns: auto 72px 1fr auto; }
  .selected-car-thumb { width: 72px; }
  .change-car { font-size: 0; }
}

@media (max-width: 760px) {
  .topbar { height: 48px; padding-inline: 16px; grid-template-columns: 1fr auto; }.topbar p { display: none; }
  .topbar .brand { min-height: 44px; }.topbar .brand-mark { width: 148px; }
  .topbar .icon-button { position: relative; width: 36px; height: 36px; }
  .topbar .icon-button::after { content: ""; position: absolute; inset: -4px; }
  main { padding-top: 22px; }.intro-row { margin-bottom: 18px; }
  .picker-row { grid-template-columns: 1fr; gap: 6px; margin-bottom: 12px; }.car-card { min-height: 66px; grid-template-columns: auto 58px minmax(0,1fr) auto; gap: 8px; padding: 7px 10px; }.car-card .number { width: 32px; height: 32px; }.selected-car-thumb { width: 58px; height: 44px; }.car-card strong { line-height: 1.15; }.car-card small { line-height: 1.2; }.change-car { font-size: 0; }.change-car b { font-size: 1rem; }.swap-button { display: none; }
  .comparison-nav { padding: 10px; }.comparison-nav > span { margin-left: 4px; }.nav-actions { grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: repeat(2, 38px); gap: 6px 8px; }.nav-actions .lights-button, .nav-actions .grid-button { min-width: 38px; }.view-tabs { width: 100%; gap: 5px; }.view-tabs button { min-height: 82px; gap: 7px; padding-inline: 3px; font-size: .78rem; }.view-tabs .view-art-frame { width: 90px; height: 39px; }
  .vehicle-stage { height: 300px; }.vehicle-stage[data-view="side"] { height: 220px; }.dimension-guide span { font-size: .57rem; padding: 2px 3px; }.scale-key { left: 12px; top: 12px; }
  .stage-footer { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 10px 12px; }.stage-actions { width: 100%; justify-content: space-between; }.align-control { flex: 1 1 100%; justify-content: space-between; }.align-title { margin-right: auto; }.align-control button { padding-inline: 6px; gap: 4px; }.stage-footer p { text-align: left; margin: 2px 0; }
  .alignment-note { flex: 1 1 100%; }.specs { display: block; padding-top: 44px; }.spec-legend { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 12px; }.spec-grid { grid-template-columns: repeat(2, 1fr); margin-top: 20px; }.spec-grid article:nth-child(2) { border-right: 0; }.spec-grid article { border-bottom: 1px solid var(--line); }
  .vehicle-picker { width: 100%; max-width: none; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .vehicle-picker-inner { max-height: 100dvh; min-height: 100dvh; padding: 20px 14px; }
  .vehicle-search { min-height: 54px; padding-inline: 12px; }.vehicle-search kbd { display: none; }
  .vehicle-results { grid-template-columns: 1fr; }.vehicle-result { grid-template-columns: 108px minmax(0,1fr); min-height: 100px; }.result-image { width: 108px; height: 80px; }
}

@media (max-width: 380px) {
  .view-tabs .view-art-frame { width: 74px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) { .view-frame, .swap-button { transition: none; } }

@keyframes car-arrive {
  0% { transform: translate3d(-105%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
@keyframes reveal-car-behind {
  0%, 100% { opacity: 1; }
  50% { opacity: .28; }
}
@keyframes bring-car-forward { from { opacity: .35; } to { opacity: 1; } }
@keyframes reveal-detail { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes exhaust-side { 0% { opacity: 0; transform: translate(0, 0) scale(.45); } 28% { opacity: .68; } 100% { opacity: 0; transform: translate(-38px, -12px) scale(1.75); } }
@keyframes exhaust-rear { 0% { opacity: 0; transform: translate(0, 0) scale(.45); } 28% { opacity: .6; } 100% { opacity: 0; transform: translate(-10px, 30px) scale(1.7); } }
@keyframes brake-on-stop {
  0%, 48% { opacity: 0; }
  58%, 92% { opacity: .98; }
  100% { opacity: 0; }
}
@keyframes headlight-double-flash {
  0%, 12%, 38%, 55%, 82%, 100% { opacity: 0; }
  20%, 31%, 64%, 75% { opacity: .96; }
}

@media (prefers-reduced-motion: reduce) {
  .pre-arrival .view-frame.active .vehicle-layer, .pre-arrival .vehicle-tag, .pre-arrival .dimension-guides { visibility: visible; }
  .arrival .view-frame.active .vehicle-layer, .arrival .vehicle-tag, .arrival .dimension-guides, .arrival .exhaust, .arrival .lamp, .flash-headlights .lamp, .manual-reveal .view-frame.active .vehicle-layer, .switching-front .view-frame.active .vehicle-layer { animation: none; }
  .manual-reveal .view-frame.active .vehicle-layer.is-front { opacity: .28; }
  .vehicle-layer { transition: none; }
  .arrival .view-frame.active .wheel { visibility: hidden; }
}

/* Direct manipulation shares the accepted car, lamp and square wheel layers. */
.vehicle-stage[data-view="side"] { touch-action: pan-y pinch-zoom; cursor: grab; }
.vehicle-stage.is-dragging { cursor: grabbing; }
.roll-hint { position: absolute; z-index: 8; width: 56px; height: 66px; pointer-events: none; visibility: hidden; }
.roll-hand { display: block; width: 100%; height: 100%; fill: #fff; stroke: #171c22; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(23,28,34,.25)); }
.roll-hint::before { content: ""; position: absolute; width: 27px; height: 27px; left: 9px; top: -7px; border: 2px solid rgba(255,255,255,.8); background: rgba(23,28,34,.12); border-radius: 50%; }
.demonstrating-roll .roll-hint { visibility: visible; }
.roll-controls { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; margin-block: 6px; }
.roll-controls > span { margin-right: 6px; font-size: .76rem; color: var(--muted); }
.roll-controls button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 11px; border: 1px solid #cbd5d8; border-radius: 9px; background: #fff; font-size: .76rem; font-weight: 750; cursor: pointer; }
.roll-controls button:hover:enabled { border-color: var(--b); background: #f0f8fa; }
.roll-controls button:disabled { opacity: .45; cursor: default; }
.roll-controls svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.roll-controls[hidden], .roll-hint[hidden] { display: none; }
.cars-displaced .view-frame[data-frame="side"] .wheel { visibility: visible; }
.touch-headlights .lamp.head { opacity: .96; }
@media (max-width: 600px) {
  .roll-controls { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cars-displaced .view-frame[data-frame="side"] .wheel { visibility: hidden; }
  .touch-headlights .lamp.head { transition: none; }
  .demonstrating-roll .roll-hint { visibility: hidden; }
}

/* Shared comparison controls: view, alignment, overlap, then status. */
.comparison-nav { display: block; padding: 8px 12px; }
.comparison-nav > span { display: none; }
.nav-actions { display: block; }
.view-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.view-tabs button { min-height: 64px; height: 64px; padding: 4px 8px; gap: 2px; border-radius: 8px; font-size: 12px; }
.view-tabs .view-art-frame { width: 92px; max-width: 100%; height: 32px; }
.stage-utilities { position: absolute; top: 4px; right: 8px; z-index: 9; display: flex; align-items: center; gap: 0; }
.stage-utilities .lights-button, .stage-utilities .grid-button { width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; border: 0; border-radius: 8px; background: transparent; }
.stage-utilities button span { display: none; }
.stage-utilities .lights-button[aria-pressed="true"] { background: #fff5bf; }
.stage-utilities .grid-button[aria-pressed="false"] { background: #e9eeeb; }
.stage-utilities button:hover { background: #e9eeeb; }
.stage-footer { display: block; min-height: 0; padding: 16px; }
.stage-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: center; }
.align-control { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 4px; }
.align-control[hidden] { display: none; }
.align-title { margin: 0 12px 0 0; }
.align-control button { justify-content: center; padding: 6px 8px; gap: 4px; font-weight: 650; }
.overlap-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.overlap-actions button { justify-content: center; min-width: 0; min-height: 44px; border: 0; background: #f5f6f3; border-radius: 8px; padding: 8px 12px; font-weight: 550; white-space: normal; line-height: 1.3; }
.stage-footer .alignment-note { margin: 12px 0 0; color: var(--muted) !important; font-size: 12px; line-height: 1.5; text-align: left; }
.alignment-note strong { font-weight: 500; }
.stage-calibration { margin: 10px 16px 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
@media (max-width: 900px) {
  .stage-actions { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 420px) {
  .comparison-nav { padding: 8px; }
  .view-tabs { gap: 4px; }
  .view-tabs .view-art-frame { width: 80px; }
  .stage-footer { padding: 12px; }
  .align-control { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .align-title { grid-column: 1 / -1; margin: 0 0 4px; }
  .align-control button { padding: 4px; flex-direction: column; gap: 0; }
  .overlap-actions button { padding: 8px 6px; }
}

.overlap-actions .action-icon { display: block; width: 18px; height: 18px; flex: 0 0 18px; opacity: .7; }
