/* Car pages (carros/*) — builds on tokens.css + styles.css.
   Mobile-first; desktop gets its own layouts at ≥ 1024px.
   Motion: transform/opacity only, except the one-time line-art draw-in
   (stroke-dashoffset on a small SVG), mirroring the logo intro. */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- hero ---------- */
.car-hero {
  position: relative;
  padding: calc(18px + env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 48px max(var(--gutter), env(safe-area-inset-left));
  background: radial-gradient(120% 70% at 70% 30%, var(--color-steel) 0%, var(--color-primary) 40%, var(--color-dark-deep) 80%);
  color: var(--color-on-dark);
  overflow: hidden;
}
.car-top { display: flex; align-items: center; gap: 16px; }
.car-brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--color-on-dark); text-decoration: none; }
.car-brand:hover { color: var(--color-on-dark); }
.car-brand-sym { width: 58px; }
.car-brand-name { font-family: var(--font-label); font-weight: 600; font-size: .6875rem; letter-spacing: .32em; text-transform: uppercase; color: rgba(255, 255, 255, .72); padding-top: 3px; }
.car-nav { display: none; }

.car-hero-grid { display: grid; gap: 28px; margin-top: 36px; }
.car-title {
  margin-top: 12px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.75rem, 13vw, 4rem);
  line-height: 1; letter-spacing: -.035em;
}
.car-title .hl { color: var(--color-accent-light); }
.car-sub { margin-top: 16px; font-size: 1.0625rem; color: rgba(255, 255, 255, .78); max-width: 40ch; }

/* version switch (shared by hero, simulator, specs) */
.vswitch {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  margin-top: 24px; padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  isolation: isolate;
}
.vswitch button {
  all: unset;
  position: relative; z-index: 1;
  min-height: 44px; padding: 0 10px;
  display: grid; place-items: center;
  border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: .875rem; line-height: 1.2; text-align: center;
  color: rgba(255, 255, 255, .72);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .3s ease;
}
.vswitch button[aria-pressed="true"] { color: var(--color-primary); }
.vswitch button:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.vswitch-pill {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--color-bg);
  transition: transform .4s var(--ease-out);
}
.vswitch[data-v="premium"] .vswitch-pill { transform: translateX(100%); }
.vswitch--sm { max-width: 320px; margin-top: 0; }
.vswitch--light { background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-border); }
.vswitch--light button { color: var(--text-muted); }
.vswitch--light button[aria-pressed="true"] { color: var(--color-on-primary); }
.vswitch--light .vswitch-pill { background: var(--color-primary); }

/* stage: official photo */
.car-stage {
  position: relative;
  margin: 0 calc(var(--gutter) * -1);
  overflow: hidden;
  background: var(--color-dark-deep);
}
.car-stage img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.car-stage figcaption, .blueprint figcaption, .tp figcaption {
  font-size: .6875rem; color: var(--text-muted);
}
.car-stage figcaption { position: absolute; right: 12px; bottom: 8px; color: rgba(255, 255, 255, .6); }
.photo-in { animation: photo-in 1.1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes photo-in { from { transform: scale(1.06); } }

/* colours */
.paint { margin-top: 28px; padding: 18px 18px 14px; border-radius: 24px; background: radial-gradient(80% 70% at 50% 60%, #fff 0%, var(--color-surface) 75%); box-shadow: inset 0 0 0 1px var(--color-border); }
.paint-stage { display: grid; place-items: center; min-height: 190px; }
.paint-car { width: 100%; max-width: 440px; height: auto; filter: drop-shadow(0 18px 18px rgba(6, 19, 43, .22)); }
.paint-car.swap { animation: paint-swap .45s var(--ease-out); }
@keyframes paint-swap { from { opacity: 0; transform: translate3d(14px, 0, 0); } }
.paint .colors-label { color: var(--text-muted); }
.paint .colors-label strong { color: var(--text-heading); }
.interiors { margin-top: 20px; }
.interiors .colors-label { color: var(--text-muted); margin-bottom: 10px; }
.interiors .colors-label strong { color: var(--text-heading); }
.int-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.int { margin: 0; }
.int img { display: block; width: 100%; height: auto; aspect-ratio: 800 / 509; object-fit: cover; border-radius: 16px; }
.int figcaption { margin-top: 8px; font-size: .875rem; font-weight: 700; color: var(--text-heading); }
.interiors[data-active="dmi"] .c-premium, .interiors[data-active="premium"] .c-dmi { display: none; }
.interiors .int { animation: mode-swap .4s var(--ease-out); }

.colors { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 0 6px; }
.colors-label { font-size: .875rem; }
.colors-label strong { font-weight: 700; }
.colors-list { display: flex; gap: 2px; }
.swatch {
  all: unset;
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.swatch::before {
  content: ""; position: absolute; inset: 9px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(10, 31, 68, .18), inset 0 -6px 10px rgba(0, 0, 0, .2);
}
.swatch::after {
  content: ""; position: absolute; inset: 4px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--color-link);
  opacity: 0;
  transform: scale(.85);
  transition: opacity .25s ease, transform .3s var(--ease-out);
}
.swatch[aria-pressed="true"]::after { opacity: 1; transform: none; }
.swatch:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 0; }

.car-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  margin: 0;
  border-radius: 20px; overflow: hidden;
  gap: 1px; background: rgba(255, 255, 255, .12);
}
.stat { padding: 16px 16px 14px; background: var(--color-dark-deep); }
.stat dt { font-family: var(--font-label); font-weight: 600; font-size: .625rem; letter-spacing: .2em; text-transform: uppercase; color: var(--color-accent-label); }
.stat dd { margin: 6px 0 0; display: flex; align-items: baseline; gap: 4px; }
.stat dd span { font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -.02em; }
.stat dd .stat-text { font-size: 1.25rem; line-height: 1.15; }
.stat dd small { font-size: .875rem; font-weight: 600; color: rgba(255, 255, 255, .65); }
.stat-swap { animation: stat-swap .45s var(--ease-out); }
@keyframes stat-swap { from { opacity: .2; transform: translate3d(0, 6px, 0); } }

.car-actions { display: grid; gap: 6px; }
.car-actions .btn { width: 100%; }

/* ---------- how it works (DM-i modes) ---------- */
.modes { margin-top: 32px; padding: 18px; border-radius: 24px; background: var(--color-surface); }
.modes-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px 4px; }
.modes-tabs::-webkit-scrollbar { display: none; }
.modes-tabs button {
  all: unset;
  flex: none;
  min-height: 44px; padding: 0 18px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-weight: 700; font-size: .9375rem;
  color: var(--text-heading);
  background: var(--color-bg);
  box-shadow: inset 0 0 0 1px var(--color-border);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .14s var(--ease-out);
}
.modes-tabs button:active { transform: scale(.97); }
.modes-tabs button[aria-selected="true"] { background: var(--color-primary); color: var(--color-on-primary); box-shadow: none; }
.modes-tabs button:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.modes-body { display: grid; gap: 18px; margin-top: 18px; }
.flow { width: 100%; max-width: 420px; height: auto; margin: 0 auto; display: block; }
.fl { fill: none; stroke: var(--color-border); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 8; transition: opacity .3s ease; }
.fd { fill: var(--color-accent); opacity: 0; }
.fn { opacity: .32; transition: opacity .35s ease; }
.fn rect, .fn > circle:first-child { fill: var(--color-primary); }
.fn-ico { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fn-txt { fill: #fff; font-family: var(--font-body); font-weight: 800; font-size: 17px; text-anchor: middle; }
/* active paths per mode */
.modes[data-mode="city"]   .fn-bat, .modes[data-mode="city"]   .fn-wheel,
.modes[data-mode="road"]   .fn-bat, .modes[data-mode="road"]   .fn-eng, .modes[data-mode="road"] .fn-wheel,
.modes[data-mode="charge"] .fn-plug, .modes[data-mode="charge"] .fn-bat,
.modes[data-mode="vtol"]   .fn-plug, .modes[data-mode="vtol"]   .fn-bat { opacity: 1; }
.modes[data-mode="city"] .fl-bat, .modes[data-mode="road"] .fl-bat, .modes[data-mode="road"] .fl-eng,
.modes[data-mode="charge"] .fl-plug, .modes[data-mode="vtol"] .fl-plug { stroke: var(--color-accent); stroke-dasharray: none; opacity: .35; }
.modes[data-mode="city"] .fd-bat, .modes[data-mode="road"] .fd-bat, .modes[data-mode="road"] .fd-eng,
.modes[data-mode="charge"] .fd-plug, .modes[data-mode="vtol"] .fd-plug { animation: flow-dot 1.2s linear infinite; }
.fd:nth-child(3n+2) { animation-delay: .4s !important; }
.fd:nth-child(3n) { animation-delay: .8s !important; }
.modes[data-mode="vtol"] .fd-plug:nth-child(3n+1) { animation-delay: .8s !important; }
.modes[data-mode="vtol"] .fd-plug:nth-child(3n) { animation-delay: 0s !important; }
@keyframes flow-dot { 0%, 100% { opacity: 0; } 30% { opacity: 1; } 60% { opacity: 0; } }
.mode-label { font-family: var(--font-label); font-weight: 600; font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--color-link); }
.mode-title { margin-top: 8px; font-size: 1.375rem; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: var(--text-heading); }
.mode-text { margin-top: 8px; color: var(--text-muted); }
.mode-swap { animation: mode-swap .4s var(--ease-out); }
@keyframes mode-swap { from { opacity: 0; transform: translate3d(0, 8px, 0); } }

/* ---------- simulator ---------- */
.sim { margin-top: 32px; padding: 24px 20px; border-radius: 24px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.sim-label { display: block; margin-top: 24px; font-family: var(--font-label); font-weight: 600; font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--color-accent-label); }
.sim-value { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.sim-value output { font-weight: 800; font-size: 3.5rem; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sim-value span { font-weight: 700; color: rgba(255, 255, 255, .65); }
.sim-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px; margin: 10px 0 6px;
  background: transparent; cursor: pointer;
}
.sim-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); }
.sim-range::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); }
.sim-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 30px; height: 30px; margin-top: -12px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 4px rgba(59, 123, 255, .45), 0 4px 12px rgba(0, 0, 0, .35);
}
.sim-range::-moz-range-thumb { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(59, 123, 255, .45); }
.sim-range:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; border-radius: 8px; }
.sim-bar { position: relative; height: 14px; margin-top: 22px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.sim-bar-hy, .sim-bar-ev { position: absolute; inset: 0; border-radius: 999px; transform-origin: left center; transition: transform .35s var(--ease-out); }
.sim-bar-hy { background: repeating-linear-gradient(-45deg, rgba(157, 187, 255, .45) 0 6px, rgba(157, 187, 255, .15) 6px 12px); transform: scaleX(var(--km, .2)); }
.sim-bar-ev { background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light)); transform: scaleX(var(--ev, .2)); }
.sim-mark { position: absolute; inset: -12px 0; pointer-events: none; transform: translateX(calc(var(--range, .495) * 100%)); transition: transform .45s var(--ease-out); }
.sim-mark i { position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: #fff; border-radius: 1px; }
.sim-mark b { position: absolute; left: 0; bottom: calc(100% + 4px); transform: translateX(-50%); white-space: nowrap; font-size: .75rem; font-weight: 700; color: var(--color-on-dark); }
.sim-scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: .75rem; color: rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; }
.sim-result { margin-top: 22px; font-size: 1.25rem; font-weight: 700; line-height: 1.4; }
.sim-note { margin-top: 10px; font-size: .8125rem; line-height: 1.55; color: rgba(255, 255, 255, .6); }
.sim .btn { margin-top: 22px; width: 100%; }

/* ---------- dimensions ---------- */
.blueprint { margin: 32px calc(var(--gutter) * -1) 0; }
.bp-frame { position: relative; background: #e9ebee; }
.bp-frame img { display: block; width: 100%; height: auto; }
.bp-dims { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.blueprint figcaption { padding: 8px var(--gutter) 0; }
.dim path { fill: none; stroke: var(--color-primary); stroke-width: 2.5; }
.dim-txt { display: none; }
.dim-txt-sm rect { fill: var(--color-primary); }
.dim-txt-sm rect.alt { fill: var(--color-surface); }
.dim-txt-sm text { fill: #fff; font-family: var(--font-body); font-weight: 800; font-size: 40px; text-anchor: middle; }
.dim-txt-sm text.alt { fill: var(--color-primary); font-size: 33px; font-weight: 700; }
.dim-txt rect { fill: var(--color-primary); }
.dim-txt rect.alt { fill: var(--color-surface); }
.dim-txt text { fill: #fff; font-family: var(--font-body); font-weight: 800; font-size: 30px; text-anchor: middle; }
.dim-txt text.alt { fill: var(--color-primary); font-size: 24px; font-weight: 700; }
.dim-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.dim-cards li { padding: 18px; border-radius: 18px; background: var(--color-bg); box-shadow: inset 0 0 0 1px var(--color-border); }
.dim-k { display: block; font-family: var(--font-label); font-weight: 600; font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--color-link); }
.dim-v { display: block; margin-top: 6px; font-weight: 800; font-size: 1.75rem; line-height: 1.1; letter-spacing: -.02em; color: var(--text-heading); }
.dim-v small { font-size: .875rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0; }

/* ---------- tech ---------- */
.tech-photos { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
.tp { position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: var(--color-surface); }
.tp img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1080 / 470; }
.tp--main img { aspect-ratio: 1400 / 734; }
.tp figcaption { position: absolute; left: 12px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(6, 19, 43, .72); color: #fff; font-weight: 700; font-size: .75rem; }
.tech { display: grid; gap: 12px; margin-top: 32px; }
.tech li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start; padding: 18px; border-radius: 18px; background: var(--color-surface); }
.tech-ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--color-primary); color: var(--color-on-dark); }
.tech strong { font-size: 1.0625rem; font-weight: 800; color: var(--text-heading); line-height: 1.3; }
.tech span:not(.tech-ico) { margin-top: 2px; font-size: .9375rem; color: var(--text-muted); }

/* ---------- safety ---------- */
.safety-photo { margin: 32px 0 0; border-radius: 20px; overflow: hidden; }
.safety-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 470; object-fit: cover; }
.safety { display: grid; gap: 10px; margin-top: 32px; }
.safety li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.safety strong { font-weight: 700; line-height: 1.35; }
.safety span { flex: none; font-family: var(--font-label); font-weight: 600; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--color-accent-label); }

/* ---------- specs ---------- */
.specs { margin-top: 32px; }
.specs-switch { margin-bottom: 18px; }
.specs-head { display: none; }
.spec-group { border-top: 1px solid var(--color-border); }
.spec-group:last-of-type { border-bottom: 1px solid var(--color-border); }
.spec-group summary {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px;
  font-weight: 800; font-size: 1.125rem; color: var(--text-heading);
  cursor: pointer; list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.spec-group summary::-webkit-details-marker { display: none; }
.spec-group summary::after {
  content: ""; flex: none;
  width: 10px; height: 10px; margin-right: 6px;
  border-right: 2px solid var(--color-primary); border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .3s var(--ease-out);
}
.spec-group[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.spec-group summary:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: 6px; }
.spec-group[open] table { animation: mode-swap .35s var(--ease-out); }
.spec-group table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.spec-group th, .spec-group td { padding: 11px 0; text-align: left; vertical-align: top; border-top: 1px solid rgba(220, 227, 238, .6); font-size: .9375rem; line-height: 1.45; }
.spec-group tbody tr:first-child th, .spec-group tbody tr:first-child td { border-top: 0; }
.spec-group th { font-weight: 500; color: var(--text-muted); padding-right: 16px; width: 52%; }
.spec-group td { font-weight: 700; color: var(--text-heading); }
.spec-group tr.diff th::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--color-accent); }
.specs[data-active="dmi"] .c-premium,
.specs[data-active="premium"] .c-dmi { display: none; }
.specs-note { margin-top: 14px; font-size: .8125rem; color: var(--text-muted); }

/* ---------- warranty band ---------- */
.warranty {
  display: grid; gap: 1px;
  background: rgba(255, 255, 255, .12);
}
.w-item { display: grid; padding: 36px max(var(--gutter), env(safe-area-inset-left)); background: var(--color-primary); color: var(--color-on-dark); }
.w-k { font-family: var(--font-label); font-weight: 600; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--color-accent-label); }
.w-v { margin-top: 8px; font-weight: 800; font-size: 3rem; line-height: 1; letter-spacing: -.03em; }
.w-s { margin-top: 6px; color: rgba(255, 255, 255, .7); }

/* ---------- final CTA ---------- */
.car-final {
  position: relative; overflow: hidden;
  padding: 80px max(var(--gutter), env(safe-area-inset-right)) 88px max(var(--gutter), env(safe-area-inset-left));
  text-align: center;
  background: radial-gradient(110% 80% at 50% 0%, var(--color-steel), var(--color-dark-deep) 70%);
  color: var(--color-on-dark);
  isolation: isolate;
}
.car-final-bg { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.car-final::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(6, 19, 43, .92) 0%, rgba(6, 19, 43, .7) 55%, rgba(6, 19, 43, .92) 100%); }
.car-final .h2 { color: var(--color-on-dark); max-width: 22ch; margin: 0 auto; }
.car-final .lead { color: rgba(255, 255, 255, .78); max-width: 46ch; margin: 16px auto 0; }
.car-final .btn { margin-top: 32px; }

/* ---------- ≥ 700px: tablet ---------- */
@media (min-width: 700px) {
  .car-hero { padding-top: calc(28px + env(safe-area-inset-top)); }
  .car-title { font-size: clamp(3.5rem, 9vw, 4.75rem); }
  .vswitch:not(.vswitch--sm) { max-width: 420px; }
  .car-stage { margin: 0; border-radius: 24px; }
  .blueprint { margin-left: 0; margin-right: 0; }
  .bp-frame { border-radius: 24px; overflow: hidden; }
  .blueprint figcaption { padding-left: 0; }
  .paint { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 24px; padding: 28px 32px; }
  .int-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .tech-photos { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
  .tp--main { grid-column: 1; grid-row: 1 / 3; }
  .tp--main img { height: 100%; }
  .car-stats { grid-template-columns: repeat(4, 1fr); }
  .car-actions { grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 20px; }
  .car-actions .btn { width: auto; }
  .modes-body { grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; }
  .sim .btn { width: auto; }
  .dim-txt { display: inline; }
  .dim-txt-sm { display: none; }
  .dim-cards { grid-template-columns: repeat(3, 1fr); }
  .tech { grid-template-columns: 1fr 1fr; }
  .safety { grid-template-columns: 1fr 1fr; }
  .warranty { grid-template-columns: 1fr 1fr; }
}

/* ---------- ≥ 1024px: desktop ---------- */
@media (min-width: 1024px) {
  .car-hero, .car-final {
    padding-left: max(var(--gutter), calc((100% - var(--maxw)) / 2));
    padding-right: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  }
  .car-hero { padding-top: 28px; padding-bottom: 80px; }
  .car-brand-sym { width: 72px; }
  .car-nav { display: flex; gap: 4px; margin-left: auto; }
  .car-nav + .nav-pill { margin-left: 12px; }
  .car-nav a {
    position: relative; display: inline-flex; align-items: center;
    min-height: 44px; padding: 0 16px;
    font-weight: 600; font-size: .9375rem;
    color: rgba(255, 255, 255, .74); text-decoration: none;
  }
  .car-nav a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 8px; height: 2px; background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
  .car-nav a:hover { color: var(--color-on-dark); }
  .car-nav a:hover::after { transform: scaleX(1); }

  .car-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-areas: "intro stage" "stats stage" "actions stage";
    grid-template-rows: auto auto 1fr;
    column-gap: 64px; row-gap: 32px;
    margin-top: 56px;
  }
  .car-intro { grid-area: intro; }
  .car-stage { grid-area: stage; align-self: center; }
  .car-stats { grid-area: stats; grid-template-columns: 1fr 1fr; }
  .car-actions { grid-area: actions; align-self: start; }
  .car-title { font-size: clamp(3.5rem, 4.6vw, 4.75rem); }

  .modes { padding: 32px; margin-top: 56px; }
  .modes-body { grid-template-columns: 1.1fr .9fr; gap: 56px; margin-top: 28px; }
  .mode-title { font-size: 1.75rem; }

  .sim { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; padding: 40px; margin-top: 56px; }
  .sim > * { grid-column: 1; }
  .sim .sim-result, .sim .sim-note, .sim .btn { grid-column: 2; }
  .sim .sim-result { grid-row: 1 / span 3; align-self: end; margin-top: 0; font-size: 1.75rem; letter-spacing: -.01em; }
  .sim .sim-note { grid-row: 4 / span 2; }
  .sim .btn { grid-row: 6 / span 2; align-self: start; justify-self: start; }

  .blueprint { margin-top: 56px; }
  .paint { margin-top: 56px; padding: 40px 56px; }
  .interiors { margin-top: 28px; }
  .tech-photos { margin-top: 56px; gap: 20px; }
  .safety-photo { margin-top: 56px; }
  .safety-photo img { aspect-ratio: 1200 / 400; }
  .dim-cards { grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 20px; }

  .tech { grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
  .tech li { grid-template-columns: 1fr; row-gap: 14px; padding: 24px; }
  .tech-ico { grid-row: auto; }

  .safety { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }

  /* specs: both versions side by side, active column highlighted */
  .specs { margin-top: 56px; }
  .specs[data-active] .c-premium, .specs[data-active] .c-dmi { display: table-cell; }
  .specs-head { display: grid; grid-template-columns: 40% 30% 30%; padding: 0 0 12px; font-family: var(--font-label); font-weight: 600; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); }
  .specs-head span { padding-left: 16px; }
  .spec-group th { width: 40%; }
  .spec-group td { width: 30%; padding-left: 16px; }
  .specs[data-active="dmi"] td.c-dmi, .specs[data-active="premium"] td.c-premium { background: rgba(59, 123, 255, .06); }
  .specs[data-active="dmi"] .specs-head .c-dmi, .specs[data-active="premium"] .specs-head .c-premium { color: var(--color-link); }

  .warranty { padding: 0; }
  .w-item { padding: 56px max(var(--gutter), calc((100vw - var(--maxw)) / 2)); }
  .w-item:last-child { padding-left: 56px; }
  .w-v { font-size: 4rem; }

  .car-final { padding-top: 120px; padding-bottom: 128px; }
}

@media (prefers-reduced-motion: reduce) {
  .photo-in, .paint-car.swap { animation: none; }
  .fd { opacity: 0; }
}

/* ---------- catalog hub (carros/index.html) ---------- */
.hub-hero { padding-bottom: 56px; }
.hub-intro { margin-top: 40px; max-width: 680px; }
.hub { padding-top: 40px; }
.hub-grid { display: grid; gap: 16px; }
.hub-card {
  display: grid;
  border-radius: 24px; overflow: hidden;
  background: var(--color-bg);
  box-shadow: inset 0 0 0 1px var(--color-border), 0 18px 40px -26px rgba(6, 19, 43, .35);
  color: var(--text-body); text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--ease-out);
}
.hub-card:hover { color: var(--text-body); }
.hub-card:active { transform: scale(.985); }
.hub-card:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.hub-media {
  display: grid; place-items: center;
  padding: 28px 20px 8px;
  background: radial-gradient(70% 80% at 50% 70%, #fff 0%, var(--color-surface) 80%);
}
.hub-media img { width: 100%; max-width: 400px; height: auto; filter: drop-shadow(0 16px 16px rgba(6, 19, 43, .2)); transition: transform .5s var(--ease-out); }
.hub-body { display: grid; gap: 6px; padding: 20px 22px 22px; }
.hub-tag { font-family: var(--font-label); font-weight: 600; font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase; color: var(--color-link); }
.hub-name { font-weight: 800; font-size: 1.625rem; letter-spacing: -.02em; line-height: 1.15; color: var(--text-heading); }
.hub-stats { display: grid; gap: 4px; margin-top: 8px; font-size: .9375rem; color: var(--text-muted); }
.hub-stats b { color: var(--text-heading); }
.hub-cta {
  display: inline-flex; align-items: center; justify-content: space-between;
  min-height: 48px; margin-top: 14px; padding: 0 20px;
  border-radius: 999px;
  background: var(--color-primary); color: var(--color-on-primary);
  font-weight: 700;
}
.hub-cta .ico { transition: transform .25s var(--ease-out); }
.hub-help { display: grid; gap: 16px; margin-top: 28px; padding: 22px; border-radius: 20px; background: var(--color-bg); box-shadow: inset 0 0 0 1px var(--color-border); }
.hub-help p { color: var(--text-muted); }
.hub-help strong { color: var(--text-heading); }

@media (hover: hover) and (pointer: fine) {
  .hub-card:hover .hub-media img { transform: translate3d(8px, 0, 0) scale(1.03); }
  .hub-card:hover .hub-cta .ico { transform: translateX(4px); }
}
@media (min-width: 700px) {
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .hub-help { grid-template-columns: 1fr auto; align-items: center; padding: 24px 28px; }
}
@media (min-width: 1024px) {
  .hub-hero { padding-bottom: 72px; }
  .hub-intro { margin-top: 64px; }
  .hub { padding-top: 64px; }
  .hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .hub-help { margin-top: 40px; }
}
