/* Fonts, kept on our own site (Inter and Outfit, SIL Open Font License), so nothing loads from Google. Latin set only. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/fonts/outfit-latin.woff2") format("woff2"); }
/* ==========================================================================
   COE Electric — design system v2
   Light-first, Apple-style: big type, glass chrome, soft depth, honest motion.
   Motion rules: only transform + opacity are animated, ease-out for entrances,
   ease-in-out for things already on screen, press = scale(.97), hover only on
   fine pointers, and every animation has a reduced-motion alternative.
   ========================================================================== */
:root {
  --bg: #fbfbfd; --bg2: #f5f5f7; --surface: #ffffff; --surface2: #f0f2f4;
  --text: #1d1d1f; --text2: #3b3b40; --muted: #6a6a70;
  --line: rgba(0,0,0,.09); --line2: rgba(0,0,0,.16);
  --accent: #00806e; --blue: #1a9bd7; --green: #0cd99c;
  --grad: linear-gradient(135deg, #22b0e8 0%, #0cd99c 100%);
  --ink: #0a0d10; --ink2: #12171b; --ink-text: #f5f5f7; --ink-muted: #a1a9b0;
  --glass: rgba(251,251,253,.74); --glass-line: rgba(0,0,0,.08);
  --shadow-s: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  --shadow-m: 0 2px 6px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.08);
  --shadow-l: 0 8px 24px rgba(0,0,0,.08), 0 32px 80px rgba(0,0,0,.14);
  --warn: #b45309; --bad: #c2410c;
  --r-s: 12px; --r-m: 20px; --r-l: 28px; --r-xl: 36px;
  --ease-out: cubic-bezier(.23,1,.32,1);
  --ease-ios: cubic-bezier(.32,.72,0,1);
  --ease-io: cubic-bezier(.77,0,.175,1);
  --font-d: "Outfit", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --nav-h: 60px; --gutter: clamp(20px, 5vw, 56px); --max: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07090b; --bg2: #0c1013; --surface: #12171b; --surface2: #1a2025;
    --text: #f5f5f7; --text2: #d2d6da; --muted: #98a1a9;
    --line: rgba(255,255,255,.1); --line2: rgba(255,255,255,.2);
    --accent: #2ee6b0; --glass: rgba(10,13,16,.7); --glass-line: rgba(255,255,255,.1);
    --shadow-s: 0 1px 2px rgba(0,0,0,.4); --shadow-m: 0 12px 32px rgba(0,0,0,.45); --shadow-l: 0 32px 80px rgba(0,0,0,.6);
    --warn: #f59e0b; --bad: #fb923c; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07090b; --bg2: #0c1013; --surface: #12171b; --surface2: #1a2025;
  --text: #f5f5f7; --text2: #d2d6da; --muted: #98a1a9;
  --line: rgba(255,255,255,.1); --line2: rgba(255,255,255,.2);
  --accent: #2ee6b0; --glass: rgba(10,13,16,.7); --glass-line: rgba(255,255,255,.1);
  --shadow-s: 0 1px 2px rgba(0,0,0,.4); --shadow-m: 0 12px 32px rgba(0,0,0,.45); --shadow-l: 0 32px 80px rgba(0,0,0,.6);
  --warn: #f59e0b; --bad: #fb923c; color-scheme: dark;
}

/* ---------- reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 clamp(16px, 1.05vw + 12px, 17.5px)/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--text); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; transition: top .2s var(--ease-out); }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
hr.rule { border: 0; height: 1px; background: var(--line); margin: 0; }

/* ---------- type ---------- */
.display { font-size: clamp(2.7rem, 7.4vw, 5.6rem); line-height: 1.01; letter-spacing: -0.045em; font-weight: 700; }
.h1 { font-size: clamp(2.3rem, 5.8vw, 4.2rem); line-height: 1.04; letter-spacing: -0.04em; }
.h2 { font-size: clamp(1.85rem, 4.2vw, 3.1rem); line-height: 1.07; letter-spacing: -0.032em; }
.h3 { font-size: clamp(1.1rem, 1.5vw + .6rem, 1.4rem); line-height: 1.22; letter-spacing: -0.018em; font-weight: 650; }
.lede { font-size: clamp(1.05rem, 1.2vw + .7rem, 1.3rem); line-height: 1.5; color: var(--muted); letter-spacing: -0.005em; max-width: 36em; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.fine { font-size: .82rem; color: var(--muted); line-height: 1.5; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.btn { --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--h); padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .97rem; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .12s ease-out, background-color .2s ease, border-color .2s ease, box-shadow .25s ease, color .2s ease; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--grad); color: #04130f; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 6px 20px rgba(12,217,156,.28); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line2); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 1.04rem; }
.btn-sm { --h: 38px; padding: 0 16px; font-size: .88rem; }
.btn-block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 30px rgba(12,217,156,.4); }
  .btn-ghost:hover { border-color: var(--text); }
  .btn-dark:hover { opacity: .88; }
}
.on-dark .btn-ghost, .btn-ghost.on-dark { background: rgba(255,255,255,.08); color: var(--ink-text); border-color: rgba(255,255,255,.22); }
.textlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--accent); }
.textlink span { transition: transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .textlink:hover span { transform: translateX(4px); } }

/* ---------- navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--nav-h); }
.nav::before { content: ""; position: absolute; inset: 0; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); border-bottom: 1px solid transparent; transition: border-color .25s ease; }
.nav.scrolled::before { border-bottom-color: var(--glass-line); }
.nav-bar { position: relative; height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -0.02em; font-size: 1.04rem; flex: none; }
.brand img { width: 40px; height: auto; }
.nav-links { display: none; align-items: center; gap: 2px; margin-inline: auto; }
.nav-links > a, .dd > button { background: none; border: 0; color: var(--text2); text-decoration: none; font-size: .92rem; font-weight: 500; padding: 8px 13px; border-radius: 999px; transition: color .2s ease, background-color .2s ease; display: inline-flex; align-items: center; gap: 5px; }
.nav-links > a[aria-current="page"], .dd > button[aria-expanded="true"] { color: var(--text); }
@media (hover: hover) and (pointer: fine) { .nav-links > a:hover, .dd > button:hover { color: var(--text); background: var(--line); } }
.dd { position: relative; }
.dd > button svg { width: 12px; height: 12px; transition: transform .25s var(--ease-out); }
.dd > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd-panel { position: absolute; top: calc(100% + 10px); left: 50%; width: 300px; padding: 8px; border-radius: 20px; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); border: 1px solid var(--glass-line); box-shadow: var(--shadow-l); opacity: 0; visibility: hidden; transform: translate(-50%, -6px) scale(.97); transform-origin: 50% 0; transition: opacity .18s ease-out, transform .22s var(--ease-out), visibility 0s .22s; }
.dd.open .dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: 0s; }
.dd-panel a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--text); }
.dd-panel a b { font-weight: 600; font-size: .95rem; }
.dd-panel a span { font-size: .82rem; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .dd-panel a:hover { background: var(--line); } }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: transparent; border: 0; color: var(--text); transition: background-color .2s ease, transform .12s ease-out; }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--line); } }
.nav-cta { display: none; }
.menu-btn span { display: block; width: 18px; height: 1.8px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease-out); }
.menu-btn { position: relative; flex-direction: column; gap: 5px; align-items: center; justify-content: center; display: flex; }
.nav.open .menu-btn span:first-child { transform: translateY(3.4px) rotate(45deg); }
.nav.open .menu-btn span:last-child { transform: translateY(-3.4px) rotate(-45deg); }
@media (min-width: 981px) { .nav-links { display: flex; } .nav-cta { display: inline-flex; } .menu-btn { display: none; } .nav-actions { margin-left: 0; } }

/* full-screen menu (phones, tablets) */
.sheetmenu { position: fixed; inset: 0; z-index: 55; padding: calc(var(--nav-h) + 12px) var(--gutter) 28px; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s ease-out, transform .35s var(--ease-out), visibility 0s .35s; display: flex; flex-direction: column; gap: 8px; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .sheetmenu { background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px); } }
.nav.open ~ .sheetmenu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sheetmenu a.m-link { font-size: clamp(1.4rem, min(6.5vw, 4.2vh), 2.3rem); letter-spacing: -0.035em; font-weight: 700; color: var(--text); text-decoration: none; padding: 5px 0; opacity: 0; transform: translateY(14px); transition: opacity .4s var(--ease-out), transform .45s var(--ease-out); transition-delay: 0s; }
.nav.open ~ .sheetmenu a.m-link { opacity: 1; transform: none; transition-delay: calc(60ms + var(--i, 0) * 35ms); }
.sheetmenu .m-sub { margin-top: 14px; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 650; color: var(--muted); }
.sheetmenu .m-cta { margin-top: auto; padding-top: 22px; display: grid; gap: 10px; }
@media (min-width: 981px) { .sheetmenu { display: none; } }
body.menu-open { overflow: hidden; }

/* ---------- sections ---------- */
main { display: block; }
.section { padding-block: clamp(64px, 10vw, 132px); position: relative; }
.section.alt { background: var(--bg2); }
.section.tight { padding-block: clamp(48px, 7vw, 88px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 60px); max-width: 780px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head .lede { margin-top: 2px; }
.on-dark { background: var(--ink); color: var(--ink-text); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--ink-text); }
.on-dark .lede, .on-dark p { color: var(--ink-muted); }
.on-dark .kicker { color: #4eeab9; }

/* ---------- reveal on scroll ---------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-scale { transform: translateY(24px) scale(.96); }
.js .rv-scale.in { transform: none; }

/* ---------- hero (home) ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(28px, 5vw, 64px)); padding-bottom: clamp(56px, 8vw, 96px); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 90%; z-index: -1; background: radial-gradient(60% 60% at 18% 20%, rgba(34,176,232,.18), transparent 70%), radial-gradient(50% 55% at 85% 10%, rgba(12,217,156,.16), transparent 70%); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s); font-size: .85rem; font-weight: 550; color: var(--text2); text-decoration: none; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(12,217,156,.2); }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero-copy .display { max-width: 12em; font-size: clamp(2.6rem, 5.4vw, 4.5rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { list-style: disc; padding-left: 1.25em; display: grid; gap: 8px; margin-top: 6px; }
.hero-points li { display: list-item; font-size: .96rem; font-weight: 500; color: var(--text2); }
.hero-points li::marker { color: var(--accent); }
.hero-points .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s); color: var(--accent); flex: none; }
.hero-points .ic svg { width: 15px; height: 15px; }
.hero-media { position: relative; justify-self: center; width: min(100%, 520px); aspect-ratio: 5 / 5.6; }
.media-main { position: absolute; inset: 0 0 0 12%; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-l); background: var(--ink); }
.media-main img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; translate: 0 var(--py, 0px); will-change: translate; }
.media-sub { position: absolute; left: 0; bottom: 6%; width: 38%; aspect-ratio: 3 / 4; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-l); border: 5px solid var(--bg); background: var(--ink); translate: 0 var(--py, 0px); will-change: translate; }
.media-sub img { width: 100%; height: 100%; object-fit: cover; }
.float-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 11px 16px 11px 12px; border-radius: 18px; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border: 1px solid var(--glass-line); box-shadow: var(--shadow-m); font-size: .84rem; line-height: 1.25; translate: 0 var(--py, 0px); }
.float-chip b { display: block; font-size: .95rem; letter-spacing: -0.01em; }
.float-chip span { color: var(--muted); font-size: .78rem; }
.float-chip .ic { width: 34px; height: 34px; border-radius: 11px; background: var(--grad); color: #04130f; display: grid; place-items: center; flex: none; }
.float-chip .ic svg { width: 18px; height: 18px; }
.chip-a { top: 9%; right: -2%; }
.chip-b { bottom: 4%; right: 4%; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); } .hero-media { width: 100%; } }
@media (max-width: 560px) { .chip-a { right: 0; } .float-chip { padding: 9px 13px 9px 10px; } }

/* proof bar */
.proof { padding-block: 0 clamp(8px, 2vw, 24px); }
.proof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.proof-grid > div { background: var(--surface); padding: clamp(16px, 2.4vw, 26px); display: grid; gap: 4px; }
.proof-grid b { font-size: clamp(1.25rem, 2.4vw, 1.7rem); letter-spacing: -0.03em; }
.proof-grid span { color: var(--muted); font-size: .88rem; line-height: 1.35; }
@media (min-width: 800px) { .proof-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 800px) { .proof-grid.proof-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 799px) { .proof-grid.proof-3 { grid-template-columns: 1fr; } }

/* ---------- stock ---------- */
.stock-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 26px; }
.search { position: relative; flex: 1 1 260px; max-width: 420px; }
.search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 50px; padding: 0 18px 0 46px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); color: var(--text); font-size: 1rem; }
.search input::placeholder { color: var(--muted); }
.search input:focus-visible { outline-offset: 2px; }
.stock-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.car { position: relative; display: grid; border-radius: var(--r-l); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s); cursor: pointer; text-align: left; color: inherit; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.car:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .car:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); } }
.car-photo { position: relative; aspect-ratio: 4 / 3; background: var(--surface2); overflow: hidden; }
.car-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .car:hover .car-photo img { transform: scale(1.05); } }
.car-tag { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: .78rem; font-weight: 650; border: 1px solid var(--glass-line); }
.car-body { padding: 18px 20px 22px; display: grid; gap: 6px; }
.car-name { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.02em; }
.car-trim { color: var(--muted); font-size: .9rem; }
.car-price { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; margin-top: 6px; }
.car-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.stat-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--bg2); font-size: .82rem; font-weight: 550; color: var(--text2); }
.stat-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.stat-pill.ok i { background: #f5a524; }
.stat-pill.low i { background: #ef6a3a; }
.empty-note { padding: 36px; text-align: center; color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--r-l); }
.coming { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); background: var(--ink); color: var(--ink-text); min-height: clamp(360px, 46vw, 460px); display: grid; align-items: end; padding: clamp(28px, 5vw, 56px); }
.coming img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; opacity: .75; }
.coming::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(6,9,11,.92) 0%, rgba(6,9,11,.55) 55%, rgba(6,9,11,.15) 100%); }
.coming > div { display: grid; gap: 16px; justify-items: start; max-width: 520px; }
.coming h3 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3rem); letter-spacing: -0.04em; line-height: 1.04; }
.coming p { color: rgba(255,255,255,.82); font-size: 1.05rem; }
@media (max-width: 700px) { .coming::after { background: linear-gradient(180deg, rgba(6,9,11,.2) 0%, rgba(6,9,11,.92) 78%); } }

/* ---------- journey (scroll scene) ---------- */
.journey { position: relative; height: 230vh; background: var(--ink); color: var(--ink-text); }
.journey-stick { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; padding-top: var(--nav-h); overflow: hidden; }
.journey-stick::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 78% 50%, rgba(34,176,232,.2), transparent 70%), radial-gradient(40% 40% at 10% 100%, rgba(12,217,156,.14), transparent 70%); }
.journey-grid { position: relative; display: grid; gap: clamp(20px, 5vw, 80px); align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
.j-steps { display: grid; gap: 28px; }
.j-head .h2 { color: #fff; }
.j-list { list-style: none; display: grid; gap: 6px; position: relative; padding-left: 28px; }
.j-list::before { content: ""; position: absolute; left: 7px; top: var(--dc, 28px); bottom: var(--lb, 10px); width: 2px; background: rgba(255,255,255,.14); border-radius: 2px; }
.j-list::after { content: ""; position: absolute; left: 7px; top: var(--dc, 28px); bottom: var(--lb, 10px); width: 2px; background: var(--grad); border-radius: 2px; transform-origin: 0 0; transform: scaleY(var(--dp, 0)); }
.j-list::before, .j-list::after { z-index: 0; }
.j-item { position: relative; z-index: 1; padding: 12px 0; }
.j-item > * { opacity: .38; transition: opacity .5s var(--ease-out); }
.j-item::before { content: ""; position: absolute; left: -28px; top: 20px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 2px solid rgba(255,255,255,.3); transition: background-color .4s ease, border-color .4s ease, transform .5s var(--ease-out); }
.j-item.on > * { opacity: 1; }
.j-item.on::before { background: var(--green); border-color: var(--green); transform: scale(1.15); }
.j-item h3 { color: #fff; font-size: clamp(1.25rem, 2.6vw, 1.8rem); letter-spacing: -0.03em; }
.j-item p { color: var(--ink-muted); margin-top: 6px; max-width: 34ch; font-size: 1rem; }
.j-cta { margin-top: 6px; }
.j-road { position: relative; height: min(68vh, 560px); border-radius: var(--r-xl); overflow: hidden; border: 1px solid rgba(255,255,255,.14); background: #060a0d; box-shadow: 0 40px 100px rgba(0,0,0,.5); }
.j-road img, .j-road video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.j-road.wide { height: auto; aspect-ratio: 4 / 3; background: #1c1f22; }
.journey-grid.wide { grid-template-columns: minmax(0, 1fr) minmax(0, 580px); }
.journey.short { height: 210vh; }
.j-road::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,10,13,.5), transparent 24%, transparent 76%, rgba(6,10,13,.55)); }
@media (max-width: 860px) {
  .journey { height: 250vh; }
  .journey-grid { grid-template-columns: 1fr; gap: 18px; }
  .j-road { order: -1; height: clamp(150px, 28svh, 250px); border-radius: var(--r-l); }
  .j-road.wide { height: clamp(150px, 28svh, 250px); aspect-ratio: auto; }
  .journey-stick { align-items: start; padding-top: calc(var(--nav-h) + 14px); }
  .j-steps { gap: 14px; }
  .j-item { padding: 8px 0; } .j-item p { font-size: .95rem; }
  .j-item:not(.cur) p { display: none; }
  .j-head .h2 { font-size: clamp(1.5rem, 7vw, 1.9rem); }
  .j-item h3 { font-size: 1.15rem; }
  .j-steps { gap: 10px; }
  .j-head .kicker { display: none; }
  .j-list { --dc: 21px; } .j-item::before { top: 13px; }
}
@media (max-width: 759px) { .journey-stick { padding-bottom: 96px; } }

/* ---------- bento ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tile { --mx: 50%; --my: 0%; position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: space-between; gap: 22px; min-height: 260px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s); color: var(--text); text-decoration: none; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.tile:active { transform: scale(.985); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(34,176,232,.14), transparent 60%); opacity: 0; transition: opacity .4s ease; }
@media (hover: hover) and (pointer: fine) { .tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); } .tile:hover::before { opacity: 1; } }
.tile h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); letter-spacing: -0.03em; line-height: 1.1; }
.tile p { color: var(--muted); font-size: .96rem; margin-top: 8px; max-width: 34ch; }
.tile .go { display: inline-flex; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--accent); }
.tile .go span { transition: transform .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tile:hover .go span { transform: translateX(5px); } }
.tile-img { color: #fff; border-color: transparent; background: var(--ink); align-content: end; }
.tile-img > img, .tile-img > video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.tile-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,9,11,.15) 0%, rgba(6,9,11,.6) 50%, rgba(6,9,11,.93) 100%); }
@media (hover: hover) and (pointer: fine) { .tile-img:hover > img, .tile-img:hover > video { transform: scale(1.05); } }
.tile-img h3 { color: #fff; } .tile-img p { color: rgba(255,255,255,.84); } .tile-img .go { color: #5ff0c4; } .tile-img .kicker { color: #5ff0c4; }
.t-a { grid-column: span 6; } .t-b, .t-c, .t-d, .t-e { grid-column: span 6; } .t-f { grid-column: span 6; }
@media (min-width: 760px) { .t-a { grid-column: span 4; min-height: 360px; } .t-b { grid-column: span 2; min-height: 360px; } .t-c, .t-d { grid-column: span 3; min-height: 340px; } .t-e { grid-column: span 3; } .t-f { grid-column: span 3; } }
@media (min-width: 760px) { .t-wide { grid-column: span 6; } }
.tile-battery { background: var(--ink); color: var(--ink-text); border-color: transparent; }
.tile-battery h3 { color: #fff; } .tile-battery p { color: var(--ink-muted); } .tile-battery .go { color: #5ff0c4; }
.tile-battery .tile-row { display: grid; gap: 22px; align-items: center; }
@media (min-width: 560px) { .tile-battery .tile-row { grid-template-columns: 1fr auto; } }
.ring { --p: 94; position: relative; width: clamp(130px, 18vw, 168px); aspect-ratio: 1; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; stroke-linecap: round; }
.ring .tr { stroke: rgba(255,255,255,.12); }
.ring .fg { stroke: url(#ringGrad); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--v, 0)); transition: stroke-dashoffset 1.6s var(--ease-out); }
.ring b { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -0.04em; color: #fff; line-height: 1; }
.ring b small { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; margin-top: 6px; }
.tile-sell { background: var(--grad); color: #04130f; border-color: transparent; }
.tile-sell h3, .tile-sell p, .tile-sell .go { color: #04130f; }
.tile-sell p { opacity: .8; }
.mini-calc { display: grid; gap: 8px; }
.mini-calc .row { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 14px; border-radius: 14px; background: var(--bg2); font-size: .9rem; }
.mini-calc .row b { font-size: 1.35rem; letter-spacing: -0.03em; }
.mini-calc .row span { color: var(--muted); }

/* ---------- about ---------- */
.about { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.about-copy { display: grid; gap: 18px; justify-items: start; }
.cert { display: block; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-m); background: #fff; transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .cert:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-l); } }
.cert-cap { margin-top: 12px; font-size: .85rem; color: var(--muted); text-align: center; }

/* ---------- reviews ---------- */
.reviews.no-reviews { display: none; }
.review-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 30px; }
.review-summary { display: flex; align-items: center; gap: 12px; }
.review-avg { font-size: 3rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.stars { color: #f5a524; letter-spacing: 2px; }
.review-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.review { padding: 26px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.review p { font-size: 1.02rem; color: var(--text2); }
.review small { color: var(--muted); }
.review-form { margin-top: 28px; display: none; padding: 28px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); max-width: 560px; }
.review-form.show { display: block; }

/* ---------- accordion / faq ---------- */
.acc { display: grid; gap: 10px; max-width: 840px; }
.acc-item { border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.acc-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; text-align: left; padding: 20px 22px; background: none; border: 0; font-size: 1.04rem; font-weight: 600; letter-spacing: -0.015em; min-height: 60px; }
.acc-q svg { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform .35s var(--ease-out); }
.acc-item.open .acc-q svg { transform: rotate(45deg); color: var(--accent); }
.acc-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out); }
.acc-item.open .acc-a { grid-template-rows: 1fr; }
.acc-a > div { overflow: hidden; }
.acc-a p, .acc-a .acc-in { padding: 0 22px 22px; color: var(--muted); line-height: 1.65; }
.acc-cat { margin: 28px 0 4px; font-size: .78rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.acc-cat:first-child { margin-top: 0; }

/* ---------- final CTA + contact ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--ink-text); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/images/photos/driving-640.webp") 50% 55% / cover no-repeat; opacity: .35; translate: 0 var(--py, 0px); }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 50% 100%, rgba(12,217,156,.22), transparent 70%), linear-gradient(180deg, rgba(10,13,16,.7), rgba(10,13,16,.9)); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; justify-items: center; padding-block: clamp(72px, 11vw, 140px); }
.cta-inner .display { color: #fff; max-width: 12em; }
.cta-inner p { color: rgba(255,255,255,.8); max-width: 34em; font-size: 1.12rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.contact-tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); width: 100%; max-width: 860px; margin-top: 18px; }
.contact-tile { position: relative; display: grid; gap: 4px; text-align: left; padding: 20px 22px; border-radius: var(--r-m); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #fff; text-decoration: none; transition: background-color .25s ease, transform .12s ease-out; }
.contact-tile:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .contact-tile:hover { background: rgba(255,255,255,.14); } }
.contact-tile b { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #5ff0c4; }
.contact-tile span { font-size: 1.02rem; word-break: break-word; }
.copy-btn { position: absolute; right: 14px; top: 14px; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px; padding: 4px 11px; font-size: .75rem; font-weight: 600; }
.review-link { color: rgba(255,255,255,.7); font-size: .92rem; }
.review-link a { color: #5ff0c4; }

/* ---------- footer ---------- */
.footer { background: var(--bg2); border-top: 1px solid var(--line); padding-block: clamp(44px, 6vw, 72px) 28px; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; display: grid; gap: 14px; max-width: 360px; }
.footer-brand img { width: 74px; }
.footer h4 { font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 650; margin-bottom: 14px; }
.footer-col { display: grid; gap: 4px; align-content: start; }
.footer-col a { color: var(--text2); text-decoration: none; padding: 5px 0; font-size: .96rem; }
@media (hover: hover) and (pointer: fine) { .footer-col a:hover { color: var(--accent); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); } .footer-brand { grid-column: auto; } }
.footer-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line2); color: var(--text); }
.social svg { width: 18px; height: 18px; }

/* ---------- floating helpers ---------- */
.mbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: flex; gap: 8px; padding: 8px; border-radius: 30px; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); border: 1px solid var(--glass-line); box-shadow: var(--shadow-l); transform: translateY(140%); opacity: 0; transition: transform .5s var(--ease-out), opacity .3s ease-out; }
.mbar.show { transform: none; opacity: 1; }
.mbar .btn { flex: 1; --h: 48px; padding: 0 12px; }
.mbar .btn-call { flex: 0 0 auto; }
@media (min-width: 760px) { .mbar { display: none; } }
body.menu-open .mbar, body.sheet-open .mbar, body.cookie-on .mbar, body.scene-on .mbar { transform: translateY(140%); opacity: 0; }
.totop { position: fixed; right: 18px; bottom: 22px; z-index: 45; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--glass-line); background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); display: grid; place-items: center; color: var(--text); box-shadow: var(--shadow-m); opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .25s ease-out, transform .35s var(--ease-out); }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop svg { width: 18px; height: 18px; }
@media (max-width: 759px) { .totop { display: none; } }
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.cookie { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90; max-width: 720px; margin-inline: auto; display: none; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 22px; background: var(--bg); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); border: 1px solid var(--glass-line); box-shadow: var(--shadow-l); font-size: .88rem; color: var(--text2); transform: translateY(24px); opacity: 0; }
.cookie.show { display: grid; animation: cookieIn .5s var(--ease-out) forwards; }
@keyframes cookieIn { to { transform: none; opacity: 1; } }
.cookie-actions { display: flex; gap: 8px; }
@media (min-width: 640px) { .cookie { grid-template-columns: 1fr auto; } }

/* ---------- first-screen entrance: short, starts at first paint, never waits for a script ---------- */
.rise { animation: rise .5s var(--ease-out) backwards; animation-delay: calc(var(--d, 0) * 45ms); }
@keyframes rise { from { transform: translateY(14px); } } /* movement only: the text is readable from the first paint, even if animations are paused */

/* ==========================================================================
   Inner pages
   ========================================================================== */
.pagehead { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--nav-h) + clamp(40px, 7vw, 88px)) 0 clamp(36px, 6vw, 72px); }
.pagehead::before { content: ""; position: absolute; inset: -30% -10% auto; height: 120%; z-index: -1; background: radial-gradient(50% 55% at 12% 10%, rgba(34,176,232,.15), transparent 70%), radial-gradient(45% 50% at 90% 0%, rgba(12,217,156,.13), transparent 70%); }
.pagehead .wrap { display: grid; gap: 18px; justify-items: start; }
.pagehead .h1 { max-width: 14em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: .84rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--text); } }
.pagehead.photo { color: #fff; background: var(--ink); }
.pagehead.photo .h1, .pagehead.photo .lede { color: #fff; } .pagehead.photo .lede { opacity: .86; }
.pagehead.photo .crumbs, .pagehead.photo .crumbs a { color: rgba(255,255,255,.7); }
.pagehead.photo > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.pagehead.photo::before { z-index: -1; inset: 0; height: auto; background: linear-gradient(180deg, rgba(6,9,11,.55), rgba(6,9,11,.85)); }

.prose { display: grid; gap: 18px; max-width: 720px; font-size: 1.06rem; line-height: 1.7; color: var(--text2); }
.prose h2 { font-size: 1.7rem; letter-spacing: -0.03em; margin-top: 22px; color: var(--text); }
.prose h3 { font-size: 1.2rem; letter-spacing: -0.02em; margin-top: 8px; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 8px; }
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split.flip > :first-child { order: 2; } }
.photo-frame { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-l); background: var(--ink); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.wf-banner img { aspect-ratio: 16 / 5; }
@media (max-width: 700px) { .wf-banner img { aspect-ratio: 16 / 9; } }

/* steps */
.steps { list-style: none; display: grid; gap: 0; position: relative; counter-reset: s; max-width: 820px; }
.step { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding-bottom: 34px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 25px; top: 54px; bottom: 2px; width: 2px; background: var(--line); border-radius: 2px; }
.step::after { content: ""; position: absolute; left: 25px; top: 54px; bottom: 2px; width: 2px; background: var(--grad); border-radius: 2px; transform-origin: 0 0; transform: scaleY(var(--fill, 0)); }
.step:last-child::before, .step:last-child::after { display: none; }
.step .n { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.15rem; background: var(--surface); border: 1px solid var(--line2); box-shadow: 0 0 0 6px var(--bg); transition: background-color .5s ease, color .5s ease, border-color .5s ease; }
.section.alt .step .n { box-shadow: 0 0 0 6px var(--bg2); }
.step.done .n { background: var(--grad); color: #04130f; border-color: transparent; }
.step h3 { font-size: 1.3rem; letter-spacing: -0.025em; padding-top: 11px; }
.step p { color: var(--muted); margin-top: 6px; max-width: 54ch; }
.no-js .step::after, html:not(.js) .step::after { transform: none; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { padding: 26px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.card h3 { font-size: 1.12rem; letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: .96rem; }
.card .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--bg2); color: var(--accent); }
.card .ic svg { width: 22px; height: 22px; }
.bands { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.band { padding: 26px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; }
.band b { font-size: 2.2rem; letter-spacing: -0.045em; line-height: 1; }
.band.g b { color: #0a9d73; } .band.o b { color: #c27b0c; } .band.r b { color: var(--bad); }
.band h3 { font-size: 1.05rem; } .band p { color: var(--muted); font-size: .94rem; }
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text2); }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304130f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat, var(--grad); }

/* forms */
.form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-m); }
.form .row2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .form .row2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field label, .lbl { font-size: .86rem; font-weight: 600; color: var(--text2); }
.field input, .field select, .field textarea, .input { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line2); background: var(--bg); color: var(--text); font-size: 1rem; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-msg { font-size: .9rem; color: var(--muted); min-height: 1.3em; }

/* chips / segmented */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); color: var(--text2); font-size: .9rem; font-weight: 550; display: inline-flex; align-items: center; gap: 8px; transition: transform .12s ease-out, background-color .2s ease, border-color .2s ease, color .2s ease; }
.chip:active { transform: scale(.96); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
@media (hover: hover) and (pointer: fine) { .chip:not(.on):hover { border-color: var(--text); } }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; background: #8795a1; }
.dot.ultra { background: #0cd99c; } .dot.rapid { background: #1a9bd7; } .dot.fast { background: #f5a524; } .dot.slow { background: #8795a1; }
.chip .dot { outline: 2px solid var(--surface); }

/* ---------- charger map ---------- */
.mapshell { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-l); background: var(--surface2); }
#chargeMap { height: clamp(460px, 74vh, 720px); width: 100%; }
.map-ui { position: absolute; z-index: 500; inset: 14px 14px auto 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; pointer-events: none; }
.map-ui > * { pointer-events: auto; }
.glass { background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border: 1px solid var(--glass-line); box-shadow: var(--shadow-m); }
.map-search { display: flex; gap: 8px; padding: 8px; border-radius: 30px; max-width: 520px; min-width: 0; }
.map-search input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--bg2); color: var(--text); font-size: 1rem; }
.map-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border-radius: 22px; width: fit-content; max-width: 100%; }
.map-note { display: none; padding: 10px 16px; border-radius: 16px; font-size: .88rem; max-width: 520px; }
.map-note.show { display: block; }
.map-stats { position: absolute; z-index: 500; left: 14px; right: 14px; bottom: 26px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border-radius: 22px; overflow: hidden; max-width: 560px; }
.map-stats > div { padding: 12px 16px; background: var(--glass); display: grid; }
.map-stats b { font-size: 1.25rem; letter-spacing: -0.03em; } .map-stats span { font-size: .76rem; color: var(--muted); }
@media (min-width: 700px) { .map-stats { grid-template-columns: repeat(4, 1fr); } }
.leaflet-container { font: inherit; background: var(--surface2); }
.leaflet-top.leaflet-right .leaflet-control-zoom { margin-top: 14px !important; margin-right: 14px !important; }
@media (max-width: 699px) { .leaflet-top.leaflet-right .leaflet-control-zoom { margin-top: 170px !important; } }
.ccl.leaflet-marker-icon { display: grid; }
.leaflet-bar { border: 1px solid var(--glass-line) !important; box-shadow: var(--shadow-m) !important; border-radius: 14px !important; overflow: hidden; }
.leaflet-bar a, .leaflet-bar a:hover { background: var(--glass); color: var(--text); border-color: var(--glass-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.leaflet-control-attribution { background: var(--glass) !important; color: var(--muted) !important; font-size: 10.5px; }
.leaflet-control-attribution a { color: var(--accent) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--text); box-shadow: var(--shadow-l); border-radius: 18px; }
.leaflet-popup-content { margin: 16px 18px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.ccl { display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #04130f; font: 700 12.5px var(--font); border: 2px solid rgba(255,255,255,.9); box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.pop { display: grid; gap: 5px; font-size: 13px; }
.pop-k { display: flex; align-items: center; gap: 7px; font: 650 11px var(--font); letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }
.pop-t { font-size: 15px; line-height: 1.25; } .pop-a, .pop-p { color: var(--muted); }
.pop-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tg { padding: 2px 9px; border-radius: 999px; background: var(--bg2); font-size: 11.5px; font-weight: 600; }
.pop-g { justify-self: start; margin-top: 4px; font-weight: 650; color: var(--accent) !important; text-decoration: none; }
.tiles-osm.tiles-dark .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9) saturate(.55); }
.sp-table { display: grid; gap: 12px; }
.sp-row { display: grid; gap: 8px 20px; padding: 20px 22px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); grid-template-columns: 1fr; align-items: center; }
.sp-row p { grid-column: 1 / -1; color: var(--muted); font-size: .92rem; }
.sp-name { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.sp-name span { color: var(--muted); font-size: .88rem; }
.sp-v span { display: block; font-size: .75rem; color: var(--muted); } .sp-v b { font-size: 1.2rem; letter-spacing: -0.02em; }
@media (min-width: 860px) { .sp-row { grid-template-columns: 1.3fr 1fr 2fr; } .sp-name { grid-column: auto; } .sp-row p { grid-column: auto; } }

/* ---------- calculator ---------- */
.calc { display: grid; gap: 22px; align-items: start; }
@media (min-width: 940px) { .calc { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } .calc-result { position: sticky; top: calc(var(--nav-h) + 20px); } }
.calc-inputs { display: grid; gap: 24px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.range-wrap { display: grid; gap: 10px; }
.calc-car { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-m); background: var(--bg2); border: 1px solid var(--line); }
.calc-car span { color: var(--muted); font-size: .88rem; }
.calc-car a { font-weight: 600; font-size: .9rem; min-height: 32px; display: inline-flex; align-items: center; }
.calc-month { margin-top: 22px; }
.range-top { display: flex; justify-content: space-between; align-items: baseline; }
.range-top b { font-size: 1.4rem; letter-spacing: -0.03em; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; cursor: pointer; --pct: 50%; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, #1a9bd7, #0cd99c) 0 / var(--pct) 100% no-repeat, var(--line2); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line2); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 6px; background: linear-gradient(90deg, #1a9bd7, #0cd99c); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.3), 0 4px 12px rgba(0,0,0,.2); transition: transform .12s ease-out; }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.3), 0 4px 12px rgba(0,0,0,.2); }
.calc-result { display: grid; gap: 18px; padding: clamp(24px, 3.2vw, 38px); border-radius: var(--r-xl); background: var(--ink); color: var(--ink-text); box-shadow: var(--shadow-l); isolation: isolate; overflow: hidden; position: relative; }
.calc-result::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 100% 0%, rgba(12,217,156,.22), transparent 70%), radial-gradient(60% 60% at 0% 100%, rgba(34,176,232,.18), transparent 70%); }
.calc-result .big { font-size: clamp(3.2rem, 9vw, 5.2rem); line-height: 1; letter-spacing: -0.055em; font-weight: 700; }
.calc-result .big.grad-text { display: inline-block; }
.calc-result .lbl { color: var(--ink-muted); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 650; }
.res-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.res-cell { padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); display: grid; gap: 2px; }
.res-cell b { font-size: 1.25rem; letter-spacing: -0.025em; } .res-cell span { font-size: .78rem; color: var(--ink-muted); }
.tick { animation: tick .35s var(--ease-out); }
@keyframes tick { from { opacity: .45; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.res-note { font-size: .92rem; color: rgba(255,255,255,.78); min-height: 2.8em; }
.compare { display: grid; gap: 8px; }
.cmp { display: grid; gap: 6px; }
.cmp-top { display: flex; justify-content: space-between; font-size: .86rem; color: var(--ink-muted); }
.cmp-top b { color: #fff; }
.cmp-bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.1); overflow: hidden; }
.cmp-bar i { display: block; height: 100%; width: 100%; background: var(--grad); border-radius: 8px; transform-origin: 0 50%; transform: scaleX(var(--w, .3)); transition: transform .6s var(--ease-out); }
.cmp-bar i.pet { background: #f59e0b; }
.fine-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* ---------- detail sheet (cars) ---------- */
.scrim { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.45); opacity: 0; visibility: hidden; transition: opacity .3s ease-out, visibility 0s .3s; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.scrim.show { opacity: 1; visibility: visible; transition-delay: 0s; }
.sheet { position: fixed; z-index: 101; left: 0; right: 0; bottom: 0; max-height: 94vh; max-height: 94dvh; display: grid; grid-template-rows: auto 1fr; border-radius: 28px 28px 0 0; background: var(--bg); box-shadow: var(--shadow-l); transform: translate3d(0, 105%, 0); visibility: hidden; will-change: transform; overscroll-behavior: contain; }
.sheet.open { visibility: visible; }
.sheet-grab { display: grid; place-items: center; height: 28px; cursor: grab; touch-action: none; }
.sheet-grab i { width: 40px; height: 5px; border-radius: 5px; background: var(--line2); }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px)); }
.sheet-x { position: absolute; right: 14px; top: 14px; z-index: 3; }
.sheet-x.icon-btn { background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
@media (min-width: 900px) {
  .sheet { left: 50%; right: auto; top: 50%; bottom: auto; width: min(1040px, calc(100vw - 64px)); max-height: 88vh; border-radius: 32px; transform: translate3d(-50%, -46%, 0) scale(.96); opacity: 0; transition: opacity .2s ease-out; }
  .sheet.open { opacity: 1; }
  .sheet-grab { display: none; }
  .sheet { grid-template-rows: 1fr; }
}
.d-grid { display: grid; gap: 24px; padding-top: 6px; }
@media (min-width: 900px) { .d-grid { grid-template-columns: 1.15fr 1fr; gap: 36px; padding-top: 32px; padding-inline: 8px; } }
.gal-main { aspect-ratio: 4 / 3; border-radius: var(--r-l); overflow: hidden; background: var(--surface2); }
.gal-main img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.gal-thumbs button { flex: none; width: 76px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--surface2); opacity: .7; transition: opacity .2s ease, border-color .2s ease; }
.gal-thumbs button.on { border-color: var(--blue); opacity: 1; }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.d-info { display: grid; gap: 14px; align-content: start; }
.d-info h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.04em; line-height: 1.05; }
.d-price { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.04em; }
.spec-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.spec-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .96rem; }
.spec-list dt { color: var(--muted); } .spec-list dd { margin: 0; font-weight: 600; text-align: right; }
.run-cost { padding: 18px 20px; border-radius: var(--r-m); background: var(--bg2); display: grid; gap: 4px; }
.run-cost b { font-size: 1.15rem; letter-spacing: -0.02em; } .run-cost span { color: var(--muted); font-size: .88rem; }
a.run-link { color: inherit; text-decoration: none; border: 1px solid var(--line); transition: border-color .15s ease-out, background-color .15s ease-out; }
a.run-link b::after { content: " \2192"; }
a.run-link:hover { border-color: var(--line2); }
a.run-link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ---------- blog ---------- */
.blog-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.post-card { display: grid; border-radius: var(--r-l); overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.post-card:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-l); } }
.post-card .ph { aspect-ratio: 16 / 10; background: var(--bg2); overflow: hidden; display: grid; place-items: center; }
.post-card .ph img { width: 100%; height: 100%; object-fit: cover; } .post-card .ph.none img { width: 70px; height: auto; opacity: .6; object-fit: contain; }
.post-card .pb { padding: 20px 22px 24px; display: grid; gap: 8px; }
.post-card h3 { font-size: 1.2rem; letter-spacing: -0.025em; } .post-card p { color: var(--muted); font-size: .94rem; } .post-card small { color: var(--muted); }
.article { max-width: 720px; margin-inline: auto; padding-top: calc(var(--nav-h) + 40px); padding-bottom: 80px; }
.article h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); letter-spacing: -0.04em; line-height: 1.06; margin: 12px 0; }
.article .meta { color: var(--muted); margin-bottom: 24px; }
.article figure { margin: 0 0 28px; border-radius: var(--r-l); overflow: hidden; } .article figure img { width: 100%; }
.article-body { font-size: 1.1rem; line-height: 1.75; color: var(--text2); display: grid; gap: 18px; }
.article-body h2 { font-size: 1.7rem; letter-spacing: -0.03em; margin-top: 18px; color: var(--text); }
.article-body img { border-radius: var(--r-m); } .article-body ul, .article-body ol { padding-left: 1.3em; display: grid; gap: 8px; }
.article-body blockquote { margin: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font-size: 1.15rem; }
.article-body figure { margin: 6px 0; } .article-body figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.post-cta { margin-top: 36px; padding: 28px; border-radius: var(--r-l); background: var(--ink); color: var(--ink-text); display: grid; gap: 12px; justify-items: start; }
.post-cta h3 { color: #fff; } .post-cta p { color: var(--ink-muted); }

/* legal */
.legal { max-width: 760px; margin-inline: auto; padding: calc(var(--nav-h) + 36px) var(--gutter) 90px; font-size: 1.02rem; color: var(--text2); }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.04em; margin: 14px 0 6px; }
.legal h2 { font-size: 1.35rem; letter-spacing: -0.02em; margin: 32px 0 8px; }
.legal p, .legal ul { margin-bottom: 12px; } .legal ul { padding-left: 1.3em; display: grid; gap: 8px; }
.legal-updated { color: var(--muted); font-size: .9rem; }
.legal-back { display: inline-block; color: var(--muted); text-decoration: none; font-size: .92rem; }

/* wallbox product */
.product-row { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.product { border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: grid; }
.product .pimg { background: #f2f4f6; aspect-ratio: 4 / 3; display: grid; place-items: center; } .product .pimg img { max-height: 100%; width: 100%; object-fit: contain; }
.product .pbody { padding: 24px; display: grid; gap: 12px; align-content: start; }
.tm { font-size: .78rem; color: var(--muted); }

/* 404 */
.nf { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 40px) var(--gutter) 60px; }
.nf .big404 { font-size: clamp(6rem, 22vw, 12rem); font-weight: 700; letter-spacing: -0.07em; line-height: .9; }

/* ---------- accessibility + motion fallbacks ---------- */
@media (prefers-reduced-transparency: reduce) {
  :root { --glass: var(--bg); }
  .nav::before, .dd-panel, .float-chip, .mbar, .totop, .cookie, .glass, .sheetmenu, .scrim, .car-tag, .contact-tile, .leaflet-bar a { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(0,0,0,.35); --line2: rgba(0,0,0,.55); --muted: #4a4a4f; --glass: var(--bg); }
  :root[data-theme="dark"] { --line: rgba(255,255,255,.4); --line2: rgba(255,255,255,.6); --muted: #c4cbd1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv, .js .rv-scale { opacity: 1; transform: none; transition: none; }
  .rise { animation: none !important; opacity: 1 !important; }
  .media-main img, .media-sub, .float-chip, .cta-band::before { translate: 0 0 !important; }
  .j-road img { transform: none; }
  .journey { height: auto; } .journey-stick { position: static; height: auto; padding-block: 90px 60px; }
  .j-item > * { opacity: 1; }
  .car, .tile, .post-card, .cert, .btn, .chip { transition: none; }
  .sheetmenu a.m-link { transition: none; opacity: 1; transform: none; }
  .sheet { transition: opacity .2s ease !important; }
  .tick { animation: none; }
  .ring .fg, .cmp-bar i { transition: none; }
  .acc-a { transition: none; }
}
@media print { .nav, .mbar, .totop, .cookie, .progress { display: none !important; } }

.faq-split { display: grid; gap: 30px; }
@media (min-width: 960px) { .faq-split { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 64px; } .faq-split .section-head { position: sticky; top: calc(var(--nav-h) + 28px); align-self: start; margin-bottom: 0; } .faq-split .acc { max-width: none; } }

@media (min-width: 900px) { .d-grid > :first-child { position: sticky; top: 0; align-self: start; } }
.product .pimg { aspect-ratio: 1; background: #eef0f2; } .product .pimg img { height: 100%; }
@media (max-width: 759px) { .footer { padding-bottom: 104px; } }

.pagehead.photo > video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.pagehead .wrap.head-split { display: grid; gap: 32px; align-items: center; justify-items: stretch; }
.hs-copy { display: grid; gap: 18px; justify-items: start; }
.hs-media { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 9; background: #0b1114; box-shadow: var(--shadow-l); }
.hs-media video { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .pagehead .wrap.head-split { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
@media (max-width: 860px) { .j-road.wide { height: auto; aspect-ratio: 4 / 3; order: -1; } .journey-grid.wide { grid-template-columns: 1fr; } }
.kicker.on-dark { background: none; }

/* phones: keep buttons and CTAs clear of the Netlify badge in the bottom-right corner */
@media (max-width: 759px) {
  :root { --badge: 76px; }
  .mbar { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); right: auto; width: min(200px, calc(100% - 200px)); padding: 6px; }
  .mbar .btn { flex: 1; min-width: 0; padding: 0 14px; }
  .cookie { bottom: calc(var(--badge) + env(safe-area-inset-bottom, 0px)); }
  .footer { padding-bottom: calc(var(--badge) + 96px); }
  .sheet-body { padding-bottom: calc(var(--badge) + 32px + env(safe-area-inset-bottom, 0px)); }
  .sheetmenu { padding-bottom: calc(var(--badge) + 28px); }
  .journey-stick { padding-bottom: calc(var(--badge) + 96px); }
}

@media (max-width: 860px) and (max-height: 700px) { .j-road, .j-road.wide { height: clamp(120px, 20svh, 200px); } .j-item { padding: 5px 0; } .j-list { --dc: 18px; } .j-item::before { top: 10px; } }
@media (max-width: 759px) {
  .cookie { left: 12px; right: 12px; padding: 12px 14px; gap: 10px; font-size: .78rem; line-height: 1.4; border-radius: 18px; }
  .cookie .btn { --h: 38px; padding: 0 16px; font-size: .86rem; }
}
@media (max-width: 700px) {
  .mapshell { display: flex; flex-direction: column; }
  .map-ui { position: relative; inset: auto; padding: 12px; background: var(--surface2); order: -1; z-index: 2; }
  .map-ui .glass { box-shadow: none; border-color: var(--line); background: var(--surface); }
  .map-search { max-width: none; flex-wrap: wrap; }
  .map-search input { flex: 1 1 100%; }
  .map-search .btn { flex: 1 1 0; }
  .map-note { max-width: none; }
  #chargeMap { height: clamp(340px, 54svh, 520px); }
  .map-stats > div { padding: 8px 12px; } .map-stats b { font-size: 1.05rem; }
  .map-stats { bottom: 14px; left: 10px; right: 10px; }
}

/* headings: Outfit, a friendly geometric face that echoes the logo; body stays on the system font */
h1, h2, h3, h4, .h1, .h2, .h3, .display { font-family: var(--font-d); }
.display { letter-spacing: -0.035em; font-weight: 600; }
.h1 { letter-spacing: -0.03em; font-weight: 600; }
.h2 { letter-spacing: -0.025em; font-weight: 600; }
.h3, h3 { letter-spacing: -0.012em; font-weight: 600; }

/* ===== v2.1 additions: path picker, battery report card, stock filters ===== */
.paths { display: grid; gap: 16px; }
@media (min-width: 820px) { .paths { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.path { position: relative; display: grid; gap: 10px; align-content: start; padding: clamp(22px, 3vw, 30px); border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s ease; }
.path .pk { font-size: .78rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.path h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); letter-spacing: -0.03em; line-height: 1.1; }
.path p { color: var(--muted); max-width: 26em; }
.path .go { display: inline-flex; gap: 8px; align-items: center; margin-top: 8px; font-weight: 600; }
.path .go span { transition: transform .3s var(--ease-out); }
.path:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .path:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--line2); } .path:hover .go span { transform: translateX(4px); } }
.passport { display: grid; gap: 8px; width: 46% !important; aspect-ratio: auto !important; padding: 16px 16px 14px; background: var(--glass) !important; -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border: 1px solid var(--glass-line) !important; align-content: start; bottom: 8% !important; }
.passport .pp-top { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.passport .pp-top b { color: var(--accent); }
.passport .pp-pct { font: 700 clamp(2.4rem, 4.4vw, 3.2rem)/1 var(--font-d); letter-spacing: -0.05em; }
.passport .pp-pct small { font-size: .5em; }
.passport .pp-cells { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin-top: 6px; }
.passport .pp-cells i { height: 16px; border-radius: 4px; background: var(--line2); transform: scaleY(.35); transform-origin: 50% 100%; transition: transform .5s var(--ease-out); }
.passport .pp-cells i.f { background: var(--grad); }
.hero-media.in .passport .pp-cells i, .js .rise .passport .pp-cells i { transform: none; }
.passport p { font-size: .74rem; color: var(--muted); line-height: 1.35; }
.stock-filters { display: grid; gap: 10px; margin: 0 0 22px; }
@media (prefers-reduced-motion: reduce) { .passport .pp-cells i { transform: none; transition: none; } .path { transition: none; } }
[hidden] { display: none !important; }

/* ---------- Oct 2026: range checker, send-to-me forms, viewing requests ---------- */
.rc-v { display: grid; gap: 10px; margin-top: 14px; }
.rc-row { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); border-left: 4px solid var(--accent); }
.rc-row.ok { border-left-color: var(--warn); } .rc-row.low { border-left-color: var(--bad); }
.rc-row span { color: var(--muted); }
.rc-list { padding-left: 18px; display: grid; gap: 6px; color: var(--text2); }
.calc-out .form-actions { margin-top: 16px; }
.sent-box { padding: 18px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; }
.sent-box h3 { margin: 0; font-family: Outfit, system-ui, sans-serif; }
.sent-box ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--text2); }
.form-err { color: var(--bad); font-weight: 600; min-height: 1.2em; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.vw-form { display: grid; gap: 10px; margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.vw-form .row2 { gap: 10px; }
.d-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 8px; font-weight: 600; }
.bt-line { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--line); }
/* ---------- unslop pass (8 Nov 2026) ----------
   Busy buttons look busy, confirmations arrive with a small rise, numbers line up,
   nested corners follow inner = outer - padding (dd-panel, mbar, map-search). */
.btn:disabled, .btn[aria-busy="true"] { opacity: .62; cursor: progress; }
.sent-box { animation: coe-rise .42s var(--ease-out) both; }
@keyframes coe-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.car-price, .pp-pct, .proof-grid b, .mini-calc .row b, .stat-pill { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .sent-box { animation: none; } }

/* ===================== 16 Nov 2026 overhaul (Package E) ===================== */
/* forms outside a .form wrapper (car sheet, car page, wanted form) get the same two-column rows */
.vw-form .row2, .wanted-form .row2 { display: grid; gap: 10px; }
@media (min-width: 640px) { .vw-form .row2, .wanted-form .row2 { grid-template-columns: 1fr 1fr; } }
.vw-form [hidden] { display: none; }

/* W2: "tell us what you're after" inside the no-stock block */
.coming > div { max-width: 560px; }
.wanted-form { display: grid; gap: 12px; width: 100%; padding: 18px; border-radius: var(--r-l); background: rgba(10,13,16,.72); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.wanted-form > b { color: #fff; font-size: 1.05rem; }
.wanted-form .field label, .wanted-form .consent { color: rgba(255,255,255,.86); }
.wanted-form .field input { background: rgba(255,255,255,.96); color: #1d1d1f; border-color: transparent; }
.wanted-form .field input::placeholder { color: #6a6a70; }
.wanted-form .form-err { color: #ffb4a0; margin: 0; }
.wanted-form .btn { justify-self: start; }
.wanted-form .sent-box, .coming .sent-box { color: #fff; }
.wanted-form .sent-box h3 { color: #fff; } .wanted-form .sent-box p { color: rgba(255,255,255,.84); }
.consent { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; line-height: 1.45; cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green); }
.consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.coming { align-items: center; padding-block: clamp(28px, 5vw, 56px); }
.sold-block { margin-top: clamp(36px, 5vw, 56px); display: grid; gap: 18px; }
.car.is-sold .car-photo img { filter: grayscale(.55); opacity: .85; }
.car { text-decoration: none; }
.review-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* W9: visible focus on cards, tiles, the sheet's close button and gallery thumbnails */
.car:focus-visible, .tile:focus-visible, .path:focus-visible, .post-card:focus-visible, .cert:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: var(--r-l); }
.sheet-x:focus-visible, .gal-thumbs button:focus-visible, .acc-q:focus-visible, .chip:focus-visible, .copy-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.sent-box:focus { outline: none; }
/* W9: the gradient headline text was too pale on the light background (under 3:1); darker stops in light mode only */
:root:not([data-theme="dark"]) .grad-text { background-image: linear-gradient(135deg, #0a7fb6 0%, #00876a 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grad-text { background-image: var(--grad); } }

/* W6: phone polish */
@media (max-width: 759px) {
  /* touch targets at least 44px */
  .footer-col a { display: flex; align-items: center; min-height: 44px; padding: 0; }
  .footer-col { gap: 0; }
  .copy-btn { min-height: 36px; padding: 0 14px; top: 10px; right: 10px; }
  .copy-btn::after { content: ""; position: absolute; inset: -6px; }
  .textlink { min-height: 44px; }
  .btn-sm { --h: 44px; }
  .brand { min-height: 44px; min-width: 44px; }
  /* the cookie note: one compact strip at the very bottom instead of a third of the screen */
  .cookie { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); grid-template-columns: 1fr auto; padding: 8px 8px 8px 14px; gap: 8px; font-size: .72rem; line-height: 1.35; border-radius: 16px; }
  .cookie p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .cookie-actions { gap: 2px; }
  .cookie .btn { --h: 44px; padding: 0 14px; font-size: .84rem; }
  .cookie .btn-ghost { padding: 0 8px; border: 0; background: none; font-size: .76rem; font-weight: 500; color: var(--muted); }
  /* the "everything in one place" tiles: one swipeable row instead of five full-height cards */
  .bento { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .bento::-webkit-scrollbar { display: none; }
  .bento > .tile { flex: 0 0 82%; min-height: 340px; scroll-snap-align: start; }
  .bento .tile-battery .tile-row { grid-template-columns: 1fr; }
  .bento .ring { width: 96px; }
}
@media (prefers-reduced-motion: reduce) { .bento { scroll-behavior: auto; } }

/* ---------- each car: gallery, badges, share, battery dial, monthly cost, small animations (17 Nov) ---------- */
/* photo gallery: swipe between photos (scroll-snap), "3 / 12" counter, arrows on desktop, pinch or double-tap to zoom */
.gal-main { position: relative; }
.d-grid > * { min-width: 0; } /* stops the photo strip widening the column on phones */
.gal-track { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x pan-y; outline: none; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track:focus-visible { box-shadow: inset 0 0 0 3px var(--blue); }
.gal-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.gal-slide img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; transition: transform .35s var(--ease-out); -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.gal-track.zoomed { overflow: hidden; touch-action: none; }
@media (hover: hover) and (pointer: fine) { .gal-track { cursor: zoom-in; } .gal-track.zoomed { cursor: zoom-out; } }
.gal-count { position: absolute; right: 12px; bottom: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(8,12,14,.62); color: #fff; font-size: .8rem; font-weight: 600; letter-spacing: .01em; pointer-events: none; }
.gal-nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--glass-line); background: var(--glass); color: var(--text); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow-s); opacity: 0; transition: opacity .2s ease, transform .12s ease-out; }
.gal-nav svg { width: 20px; height: 20px; }
.gal-prev { left: 12px; } .gal-next { right: 12px; }
.gal-nav:active { transform: scale(.94); }
.gal-nav:disabled { opacity: 0 !important; pointer-events: none; }
.gal-main:hover .gal-nav, .gal-nav:focus-visible { opacity: 1; }
.gal-nav:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
@media (hover: none) { .gal-nav { display: none; } }
.gal-main > .car-tag { z-index: 1; pointer-events: none; }

/* badges on car cards: Sold (as before), Reserved, Just in */
.car-tag.tag-new { background: var(--grad); color: #04130f; border-color: transparent; }
.car-tag.tag-res { background: #f5a524; color: #1c1300; border-color: transparent; }

/* share button beside the price */
.d-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.share-btn { --h: 44px; }
.share-btn.did { border-color: var(--accent); color: var(--accent); }

/* battery health dial: fills to the score once it's on screen */
.bh-card { display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.bh-dial { position: relative; width: 84px; aspect-ratio: 1; flex: none; }
.bh-dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.bh-dial circle { fill: none; stroke-width: 4.5; stroke-linecap: round; }
.bh-dial .tr { stroke: var(--surface2); }
.bh-dial .fg { stroke: url(#bhGrad); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--v, 0)); transition: stroke-dashoffset 1.4s var(--ease-out); }
.js .bh-dial:not(.in) .fg { stroke-dashoffset: 100; }
.bh-card.ok .fg { stroke: #f5a524; } .bh-card.low .fg { stroke: #ef6a3a; }
.bh-dial b { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 28px; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.bh-dial b small { font-size: .62em; margin-left: 1px; color: var(--muted); }
.bh-text { display: grid; gap: 4px; min-width: 0; }
.bh-text > b { font-size: 1.02rem; letter-spacing: -0.01em; }
.bh-text .bt-line { margin: 0; padding: 0; border: 0; background: none; font-size: .9rem; color: var(--text2); }
.bh-text .bt-line b { font-weight: 550; }
.d-price, .gal-count, .bh-dial b { font-variant-numeric: tabular-nums; }

/* form send buttons turn into a tick once the enquiry has gone */
.btn.is-sent { opacity: 1; cursor: default; }
.btn.is-sent svg { animation: coe-pop .45s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes coe-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }

/* pages fade into each other, and a car's photo carries across from the card or sheet into its own page.
   Browsers without cross-document View Transitions simply load the page as before. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(root) { animation-duration: .18s; }
  html[data-page="car"] .gal-main { view-transition-name: car-photo; }
  ::view-transition-group(car-photo) { animation-duration: .3s; animation-timing-function: cubic-bezier(.23,1,.32,1); }
}

@media (prefers-reduced-motion: reduce) {
  .car:hover, .car:active, .car:hover .car-photo img { transform: none !important; }
  .car-photo img, .gal-slide img, .gal-nav, .bh-dial .fg { transition: none; }
  .gal-track { scroll-behavior: auto; }
  .btn.is-sent svg { animation: none; }
}

/* Delivery map (delivery-map.js) */
.dmap-card { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px; }
.dmap-form label { display: block; font-weight: 600; margin-bottom: 8px; }
.dmap-row { display: flex; gap: 8px; }
.dmap-row input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg); color: var(--text); font: inherit; text-transform: uppercase; }
.dmap-result { margin: 14px 0 0; color: var(--text2); line-height: 1.5; }
.dmap-result:empty { display: none; }
.dmap-result.ok, .dmap-result.far, .dmap-result.warn { padding: 12px 14px; border-radius: 14px; background: var(--surface2); border-left: 4px solid var(--accent); }
.dmap-result.far { border-left-color: #f5a524; }
.dmap-result.warn { border-left-color: var(--muted); }
.dmap-map { height: 380px; border-radius: 18px; overflow: hidden; background: var(--surface2); }
.dmap-map .leaflet-top.leaflet-right .leaflet-control-zoom { margin-top: 12px !important; }
.dmap-fail { padding: 20px; color: var(--muted); }
.dmap-tip { background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: none; font-weight: 600; }
.dmap-fine { margin-top: 12px; }
@media (max-width: 760px) { .dmap-card { grid-template-columns: 1fr; padding: 16px; } .dmap-map { height: 300px; } }

/* Product cards (Wallbox page): the picture never grows taller than 440px, and a card on its own sits picture-beside-text on wider screens. */
.product .pimg { max-height: 440px; }
.product .pimg img { max-height: 440px; width: auto; max-width: 100%; }
@media (min-width: 760px) {
  .product:only-child { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); }
  .product:only-child .pimg { aspect-ratio: auto; max-height: none; padding: 24px; }
  .product:only-child .pbody { align-content: center; padding: 32px; }
}

/* A text link under a step (How it works -> Delivery) */
.step-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; min-height: 44px; color: var(--accent); font-weight: 600; text-decoration: none; }
.step-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.step-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Top menu: 7 items since Warranty was added (18 Nov). Never wrap a label; tighter spacing on mid-size screens. */
.nav-links > a, .dd > button { white-space: nowrap; }
@media (min-width: 981px) and (max-width: 1180px) { .nav-links > a, .dd > button { padding-inline: 9px; } }

/* The wanted form's note is plain text now, not a tick box (18 Nov) */
p.consent { display: block; }

/* Warranty First banner, built on the page (was their 1920x600 picture) so the logo can be bigger (Fergus, 18 Nov). */
.wf-hero { text-align: center; color: #fff; padding: clamp(44px, 7vw, 84px) 20px; background: radial-gradient(55% 85% at 50% 0%, rgba(12,217,156,.20), transparent 70%), radial-gradient(35% 60% at 50% 35%, rgba(26,155,215,.14), transparent 70%), #0a0d0f; }
.photo-frame.wf-hero img.wf-logo { display: block; width: clamp(170px, 20vw, 230px); height: auto; aspect-ratio: auto; object-fit: contain; margin: 0 auto; }
.wf-rule { display: block; width: 46px; height: 2px; background: #0cd99c; margin: 20px auto 22px; border-radius: 2px; }
.wf-title { margin: 0; font-family: "Outfit", sans-serif; font-weight: 700; font-size: clamp(1.55rem, 3.6vw, 2.45rem); letter-spacing: -0.03em; line-height: 1.12; color: #fff; }
.wf-title span { color: #0cd99c; }
.wf-sub { margin: 12px 0 0; color: rgba(255,255,255,.72); font-size: .95rem; }

/* Facts row with two items (IMI removed, 18 Nov) */
@media (min-width: 800px) { .proof-grid.proof-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin-inline: auto; } }
@media (max-width: 799px) { .proof-grid.proof-2 { grid-template-columns: 1fr; } }

/* Four cards: 2 x 2, or a row of four on wide screens */
@media (min-width: 640px) { .cards.cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .cards.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
