/* =====================================================================
   Narxi — "Showroom noir"
   Dark-first instrument-panel look, warm amber as the single accent.
   Motion only ever animates transform/opacity (compositor-friendly);
   .lite (weak device / save-data / reduced motion) removes ambient effects.
   ===================================================================== */

:root {
  color-scheme: dark;
  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --bg: #0b0d10;
  --bg-2: #10141a;
  --surface: #151a21;
  --surface-2: #1c232c;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f3f0ea;
  --text-2: #b9b5ac;
  --muted: #8d8a82;
  --accent: #f0a93b;
  --accent-ink: #1a1203;
  --accent-text: #f0a93b;
  --accent-soft: rgba(240, 169, 59, .14);
  --cool: #7fb3ff;

  --z-great: #2fbf8a;
  --z-good: #8fd19e;
  --z-fair: var(--accent);
  --z-high: #f08a3b;
  --z-over: #e5584a;

  --ok: #4fd09a;
  --warn: #f0a93b;
  --bad: #ef6b5e;
  --bz-hi: #8b95a3; --bz-mid: #3c444f; --bz-lo: #12151a;
  --face-hi: #28313c; --face-lo: #10141a; --groove: #0a0c10;
  --ndl-hi: #ffffff; --ndl-mid: #d9dde3; --ndl-lo: #8b929d;

  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 60px -28px rgba(0, 0, 0, .7);
  --r-card: 20px;
  --r-ctl: 14px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 64px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #faf8f4;
  --bg-2: #f2eee6;
  --surface: #ffffff;
  --surface-2: #f7f4ee;
  --line: rgba(20, 18, 14, .10);
  --line-2: rgba(20, 18, 14, .20);
  --text: #15130f;
  --text-2: #4b473f;
  --muted: #6b675e;
  --accent: #e39a22;
  --accent-ink: #1a1203;
  --accent-text: #8f5607;
  --accent-soft: rgba(227, 154, 34, .16);
  --cool: #2c6fd6;
  --shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 22px 50px -30px rgba(40, 30, 10, .35);
  --ok: #17835a;
  --warn: #9a5f08;
  --bad: #c0392b;
  --bz-hi: #ffffff; --bz-mid: #cfd5de; --bz-lo: #8b94a2;
  --face-hi: #ffffff; --face-lo: #e3e8ef; --groove: #d3d9e2;
  --ndl-hi: #5a6270; --ndl-mid: #2a303a; --ndl-lo: #12151b;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
html.lite { scroll-behavior: auto; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img, svg { max-width: 100%; }
.tabular { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1220px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
html.lite .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
.header-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-mark { width: 30px; height: 30px; color: var(--accent); }
.logo-mark .lm-needle { color: var(--text); transform-origin: 16px 22px; }
.logo:hover .lm-needle { animation: needle-wiggle .9s var(--ease); }
@keyframes needle-wiggle { 0% { transform: rotate(0) } 40% { transform: rotate(38deg) } 100% { transform: rotate(0) } }
.logo-word { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.nav { display: none; gap: 28px; }
.nav a { text-decoration: none; color: var(--text-2); font-weight: 600; font-size: 14.5px; padding: 8px 2px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a:focus-visible { color: var(--text); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.header-tools { display: flex; align-items: center; gap: 10px; }
@media (min-width: 900px) { .nav { display: flex; } }

.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); gap: 2px; }
.seg button { min-height: 36px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font-weight: 700; font-size: 13px; letter-spacing: .04em; transition: background .2s, color .2s; }
.seg button[aria-pressed="true"], .seg button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); }
.seg button:not([aria-pressed="true"]):not([aria-checked="true"]):hover { background: var(--surface-2); color: var(--text); }
.seg-wide { display: flex; width: 100%; }
.seg-wide button { flex: 1; min-height: 44px; font-size: 14px; letter-spacing: 0; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); transition: background .2s, transform .2s; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.94); }
.icon-btn .ic-sun { display: none; }
:root[data-theme="light"] .icon-btn .ic-sun { display: block; }
:root[data-theme="light"] .icon-btn .ic-moon { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(28px, 6vw, 72px) 0 clamp(40px, 6vw, 80px); overflow: clip; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glow { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; will-change: transform; filter: blur(0); }
.g1 { left: -22vmax; top: -30vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%); animation: drift-a 26s ease-in-out infinite alternate; }
.g2 { right: -26vmax; top: -12vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--cool) 16%, transparent), transparent 70%); animation: drift-b 32s ease-in-out infinite alternate; }
html.lite .glow { animation: none; }
@keyframes drift-a { to { transform: translate3d(10vmax, 6vmax, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-8vmax, 9vmax, 0) scale(1.1); } }
.grid-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 52%;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; transform: perspective(520px) rotateX(58deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 8%, transparent 78%); mask-image: linear-gradient(to top, #000 8%, transparent 78%);
  opacity: .55;
}
.hero-in { display: grid; gap: 36px; align-items: center; }
@media (min-width: 980px) { .hero-in { grid-template-columns: minmax(0, 1fr) minmax(430px, 500px); gap: 56px; } }

.eyebrow { font-weight: 800; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 5.6vw, 3.9rem); line-height: 1.08; letter-spacing: -.035em; margin: 14px 0 18px; text-wrap: balance; }
.lead { color: var(--text-2); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 54ch; text-wrap: pretty; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips li, .chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 13.5px; font-weight: 600; }
.chips li b { color: var(--text); font-weight: 800; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: pulse 2.4s infinite; }
html.lite .chip-dot { animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- console ---------- */
.console {
  position: relative; background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 88%, var(--bg)));
  border: 1px solid var(--line-2); border-radius: 26px; padding: 20px; box-shadow: var(--shadow);
}
.console::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 60% at 50% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%); }
.console > * { position: relative; }
.console-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.console-head h2 { font-family: var(--font-display); font-weight: 500; font-size: 15px; letter-spacing: -.01em; color: var(--text-2); }
.car-tabs { display: flex; gap: 6px; align-items: center; }
.car-tabs button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text-2); font-weight: 700; font-size: 13px; transition: background .2s, color .2s, border-color .2s; }
.car-tabs button[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.car-tabs .tab-add { border-style: dashed; }
.car-tabs .tab-add:hover { color: var(--text); border-color: var(--line-2); }
.car-tabs .ic { width: 16px; height: 16px; }
.tab-x { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; margin-right: -6px; }
.tab-x:hover { background: var(--surface-2); }

.dial-wrap { position: relative; width: min(100%, 320px); aspect-ratio: 1; margin: 6px auto 0; container-type: inline-size; }
.dial { width: 100%; height: 100%; display: block; overflow: visible; }
.dial .tick { stroke: var(--line-2); stroke-width: 1.5; stroke-linecap: round; }
.dial .tick.major { stroke: var(--muted); stroke-width: 2; }
.dial .zone { fill: none; stroke-width: 12; stroke-linecap: butt; opacity: .28; transition: opacity .5s var(--ease); }
.dial.live .zone { opacity: .9; }
.dial .user-pin { opacity: 0; transition: opacity .3s; }
.dial.has-user .user-pin { opacity: 1; }
.dial .tick-hi { stroke: #fff; stroke-opacity: .55; stroke-width: 2; stroke-linecap: round; }
.dial .ndl-base { fill: url(#dl-ndl); }
.dial .ndl-lit { fill: #fff; fill-opacity: .35; }
.dial .ndl-sh-p { fill: #000; fill-opacity: .26; }
.dial .zfx { fill: none; opacity: .28; transition: opacity .5s var(--ease); }
.dial.live .zfx { opacity: .9; }
.dial-wrap { transform-origin: 50% 50%; transition: transform .35s var(--ease); will-change: transform; }
html.lite .dial-wrap { transition: none; transform: none !important; }
/* the reading is sized from the dial itself (cqw) so it always sits inside the face, below the hub */
.dial-read { position: absolute; left: 0; right: 0; top: 61.5%; transform: none; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 12%; pointer-events: none; }
.dial-cap { font-size: clamp(9px, 3.3cqw, 11px); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dial-val { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 8.4cqw, 1.95rem); letter-spacing: -.03em; line-height: 1.12; margin-top: 3px; white-space: nowrap; color: var(--text); }
.dial-sub { margin-top: 5px; font-size: clamp(10px, 3.2cqw, 11.5px); white-space: nowrap; color: var(--text-2); font-weight: 600; margin-top: 2px; min-height: 1.4em; }
.dial-status { position: absolute; left: 50%; bottom: -3%; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); white-space: nowrap; }
.dial-demo { text-align: center; font-size: 12.5px; color: var(--muted); min-height: 1.4em; margin-top: 2px; }
.dial-wrap.loading .dial-val { opacity: .35; }
.dial-wrap.loading .dial { animation: breathe 1.2s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; } }

/* ---------- form ---------- */
.fields { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-top: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.f-brand, .f-model, .f-tr, .f-price, .f-cta { grid-column: 1 / -1; }
@media (min-width: 520px) { .f-brand, .f-model { grid-column: auto; } }
.field > label, .field > .lbl { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field > label em { font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; }
.inp {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--r-ctl);
  background: var(--bg-2); border: 1.5px solid var(--line-2); color: var(--text);
  font-size: 16px; /* >=16px stops iOS zoom-on-focus */ outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.inp::placeholder { color: var(--muted); }
.inp:hover:not(:disabled) { border-color: color-mix(in srgb, var(--text) 30%, transparent); }
.inp:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
.inp:disabled { opacity: .5; cursor: not-allowed; }
.cb, .sel, .inp-prefix { position: relative; }
.cb .inp { padding-right: 40px; }
.cb-chev, .sel .ic { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; transition: transform .25s var(--ease); }
.cb:has(input[aria-expanded="true"]) .cb-chev { transform: translateY(-50%) rotate(180deg); }
.sel select { padding-right: 40px; cursor: pointer; }
.inp-prefix > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.inp-prefix .inp { padding-left: 30px; }
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 2px 0 0; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--fill, 20%), var(--line-2) var(--fill, 20%)); }
.range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-2); }
.range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--text); border: 4px solid var(--accent); box-shadow: 0 2px 10px rgba(0,0,0,.4); transition: transform .15s; }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--text); border: 4px solid var(--accent); }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
.range:disabled { opacity: .4; cursor: not-allowed; }

.cb-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; max-height: min(46vh, 340px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-ctl); padding: 6px; box-shadow: 0 24px 50px -16px rgba(0,0,0,.65);
  transform-origin: top; animation: pop .16s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.cb-group { padding: 10px 10px 4px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cb-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 10px; cursor: pointer; font-weight: 600; }
.cb-opt[aria-selected="true"], .cb-opt:hover { background: var(--accent-soft); color: var(--text); }
.cb-opt small { color: var(--muted); font-weight: 600; font-size: 12px; white-space: nowrap; }
.cb-empty { padding: 14px; color: var(--muted); font-size: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 14px; border: 1.5px solid transparent; font-weight: 800; font-size: 15px; letter-spacing: .01em; transition: transform .2s var(--ease), box-shadow .2s, background .2s, opacity .2s; }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 34px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn.primary:active:not(:disabled) { transform: translateY(0) scale(.985); }
.btn.primary:disabled { background: var(--surface-2); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn.ghost:hover { background: var(--surface-2); }
.f-cta { margin-top: 4px; }
.console-note { margin-top: 10px; min-height: 1.4em; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- hero entrance: transform-only, content is painted immediately (keeps LCP fast) ---------- */
html.js .rise { animation: rise .9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { transform: translateY(18px); } }
html.lite .rise { animation: none; }

/* ---------- reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(16px); }
html.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease) var(--d, 0s), transform .7s var(--ease) var(--d, 0s); }
html.lite.js .reveal, html.lite.js .reveal.in { opacity: 1; transform: none; transition: none; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 9vw, 112px) 0; content-visibility: auto; contain-intrinsic-size: auto 620px; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3.6vw, 2.5rem); letter-spacing: -.03em; line-height: 1.12; margin: 10px 0 12px; text-wrap: balance; }

/* ---------- report ---------- */
.report { padding: 24px 0 8px; scroll-margin-top: var(--header-h); }
.report-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.rep-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 4.4vw, 3rem); letter-spacing: -.035em; line-height: 1.1; margin: 8px 0 0; }
.rep-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .rep-grid { grid-template-columns: 1fr 1fr; } .verdict-card, .duel-card, .compare-card, .comps-card, .forsale-card, .why-card { grid-column: 1 / -1; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); min-width: 0; }
.card header { margin-bottom: 16px; }
.card h3 { font-family: var(--font-display); font-weight: 500; font-size: 16px; letter-spacing: -.01em; }
.card .sub { color: var(--muted); font-size: 13.5px; margin-top: 3px; }

.conf { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; margin-bottom: 22px; }
.conf-meter { display: flex; gap: 5px; }
.conf-meter i { width: 30px; height: 8px; border-radius: 4px; background: var(--line-2); transition: background .4s var(--ease); }
.conf-meter i.on.high { background: var(--ok); } .conf-meter i.on.medium { background: var(--warn); } .conf-meter i.on.low { background: var(--bad); }
.conf-label { font-weight: 800; }
.conf-label.high { color: var(--ok); } .conf-label.medium { color: var(--warn); } .conf-label.low { color: var(--bad); }
.conf-expl { grid-column: 1 / -1; color: var(--text-2); font-size: 14.5px; }

.band { position: relative; height: 56px; margin: 6px 0 10px; }
.band-track { position: absolute; left: 0; right: 0; top: 24px; height: 10px; border-radius: 6px; overflow: hidden; display: flex; }
.band-track i { display: block; height: 100%; }
.band-pin { position: absolute; top: 8px; width: 0; transform: translateX(-50%); will-change: left; transition: left .8s var(--ease); display: flex; flex-direction: column; align-items: center; }
.band-pin::before { content: attr(data-label); position: absolute; bottom: calc(100% + 2px); font-size: 11.5px; font-weight: 800; white-space: nowrap; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2); padding: 2px 8px; border-radius: 8px; }
.band-pin::after { content: ""; width: 3px; height: 34px; border-radius: 2px; background: var(--text); margin-top: 2px; }
.band-pin.user::after { background: var(--accent); width: 4px; }
.band-pin.user::before { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.band-pin.hidden { opacity: 0; }
.band-ends { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.verdict-text { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 700; margin-top: 14px; text-wrap: balance; }
.verdict-text.great, .verdict-text.good { color: var(--z-great); } .verdict-text.high { color: var(--z-high); } .verdict-text.over { color: var(--z-over); }
.notes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.notes li { padding: 6px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 700; }

.compare-cols { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .compare-cols { grid-template-columns: 1fr auto 1fr; align-items: stretch; } }
.cmp-car { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.cmp-car.a { border-top: 3px solid var(--accent); } .cmp-car.b { border-top: 3px solid var(--cool); }
.cmp-name { font-weight: 800; } .cmp-spec { color: var(--muted); font-size: 13px; margin-top: 2px; }
.cmp-price { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 4vw, 2.1rem); letter-spacing: -.03em; margin: 10px 0 2px; }
.cmp-range { color: var(--text-2); font-size: 13.5px; }
.cmp-delta { display: grid; place-items: center; text-align: center; padding: 6px 4px; }
.cmp-delta b { font-family: var(--font-display); font-size: 1.2rem; display: block; }
.cmp-delta span { font-size: 12px; color: var(--muted); font-weight: 700; }

.chart { position: relative; min-height: 220px; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .gridline { stroke: var(--line); stroke-width: 1; }
.chart .axis-t { fill: var(--muted); font-size: 11.5px; font-weight: 600; font-family: var(--font-body); }
.chart .band-a { fill: var(--accent); opacity: .16; } .chart .band-b { fill: var(--cool); opacity: .16; }
.chart .ln-a { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart .ln-b { fill: none; stroke: var(--cool); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart .dot-a { fill: var(--accent); stroke: var(--surface); stroke-width: 2; } .chart .dot-b { fill: var(--cool); stroke: var(--surface); stroke-width: 2; }
.chart .dot-low { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; }
.chart .you-line { stroke: var(--text); stroke-width: 1.5; stroke-dasharray: 4 5; opacity: .6; }
.chart .you-dot { fill: var(--text); stroke: var(--accent); stroke-width: 4; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease) .15s forwards; }
html.lite .chart .draw { animation: none; stroke-dashoffset: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.tip { position: absolute; pointer-events: none; z-index: 5; transform: translate(-50%, -112%); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 8px 11px; font-size: 12.5px; white-space: nowrap; opacity: 0; transition: opacity .12s; box-shadow: 0 12px 30px -10px rgba(0,0,0,.6); }
.tip.show { opacity: 1; } .tip b { display: block; font-size: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 7px; vertical-align: middle; }
.chart-empty { display: grid; place-items: center; min-height: 160px; color: var(--muted); text-align: center; font-size: 14px; padding: 0 12px; }

.comp-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.comp { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; transition: transform .25s var(--ease), border-color .25s; }
.comp:hover { transform: translateY(-3px); border-color: var(--line-2); }
.comp .tag { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.comp .spec { font-weight: 700; margin-top: 6px; } .comp .meta { color: var(--muted); font-size: 13px; }
.comp .price { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -.03em; margin-top: 8px; }
.city-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.city-chips button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text-2); font-weight: 700; font-size: 13px; }
.city-chips button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.fs-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; padding: 14px 4px; border-top: 1px solid var(--line); text-decoration: none; transition: background .2s; border-radius: 10px; }
.fs-row:first-child { border-top: 0; }
a.fs-row:hover { background: var(--surface-2); }
.fs-main { font-weight: 700; } .fs-sub { color: var(--muted); font-size: 13px; }
.fs-price { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; text-align: right; display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.fs-price .ic { width: 16px; height: 16px; color: var(--muted); }

.why-card { padding: 0; }
.why-card summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px clamp(18px, 3vw, 28px); cursor: pointer; font-family: var(--font-display); font-weight: 500; min-height: 64px; }
.why-card summary::-webkit-details-marker { display: none; }
.why-card summary .ic { transition: transform .3s var(--ease); }
.why-card details[open] summary .ic { transform: rotate(180deg); }
.why-body { padding: 0 clamp(18px, 3vw, 28px) 24px; color: var(--text-2); font-size: 15px; max-width: 78ch; }
.why-body ul { margin: 12px 0 0; display: grid; gap: 8px; } .why-body li { padding-left: 18px; position: relative; }
.why-body li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.why-body b { color: var(--text); }

/* ---------- popular ---------- */
.pop-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.pop { position: relative; text-align: left; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.pop:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: var(--shadow); }
.pop .b { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pop .m { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; letter-spacing: -.03em; margin: 4px 0 14px; }
.pop .p { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; letter-spacing: -.035em; color: var(--accent-text); }
.pop .r { color: var(--text-2); font-size: 13.5px; margin-top: 2px; }
.pop .n { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.pop .go { color: var(--accent-text); font-weight: 800; transform: translateX(0); transition: transform .25s var(--ease); }
.pop:hover .go { transform: translateX(4px); }

.stats-band { background: var(--bg-2); border-block: 1px solid var(--line); padding: clamp(32px, 6vw, 56px) 0; }
.stats-in { display: grid; gap: 20px 12px; grid-template-columns: repeat(3, 1fr); text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 5vw, 3rem); letter-spacing: -.04em; color: var(--text); }
.stat span { color: var(--muted); font-size: 13.5px; font-weight: 700; }

.steps { display: grid; gap: 14px; counter-reset: s; grid-template-columns: 1fr; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px; counter-increment: s; }
.step::after { content: "0" counter(s); position: absolute; right: 22px; top: 18px; font-family: var(--font-display); font-weight: 600; font-size: 2.2rem; color: var(--line-2); }
.step-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 18px; }
.step h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 15px; }

.trust-in { display: grid; gap: 36px; }
@media (min-width: 900px) { .trust-in { grid-template-columns: 1fr 1.1fr; align-items: start; } .trust-in .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 24px); } }
.trust-list { display: grid; gap: 14px; }
.trust-list li { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; }
.trust-list .ic { width: 28px; height: 28px; color: var(--accent-text); margin-top: 2px; }
.trust-list h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; margin-bottom: 6px; } .trust-list p { color: var(--text-2); font-size: 15px; }

.faq-in { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 4px; cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--accent-text); transition: transform .3s var(--ease); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq .ans { padding: 0 4px 22px; color: var(--text-2); max-width: 70ch; }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 calc(40px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; color: var(--muted); font-size: 13px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; z-index: 90; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 14px; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.dlg { border: 1px solid var(--line-2); border-radius: 24px; background: var(--surface); color: var(--text); padding: 0; width: min(440px, calc(100% - 28px)); box-shadow: 0 40px 90px -20px rgba(0,0,0,.7); }
.dlg::backdrop { background: rgba(5, 6, 8, .72); }
.dlg-in { padding: 22px; display: grid; gap: 14px; } .dlg-in h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; }
.share-img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); }
.dlg-hint { font-size: 13px; color: var(--muted); } .dlg-actions { display: flex; gap: 10px; flex-wrap: wrap; } .dlg-actions .btn { flex: 1; min-width: 150px; }

@media (max-width: 480px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .dial-wrap { width: min(80%, 268px); }
  .console { padding: 16px; border-radius: 22px; }
  .conf-meter i { width: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media print { .site-header, .hero-bg, .console, .toast { display: none; } body { background: #fff; color: #000; } }

/* ---------- scene (isometric hero road + price duel) ---------- */
:root { --road: #262d38; --road-edge: rgba(255,255,255,.55); --lot: #1d242d; --lot-line: rgba(255,255,255,.4); --lot-curb: #2d3643; --lot-prop: #8d97a6; }
:root[data-theme="light"] { --road: #cdd3dc; --road-edge: #ffffff; --lot: #d9dee6; --lot-line: #ffffff; --lot-curb: #bcc4d0; --lot-prop: #7d8794; }
.sc-road { fill: var(--road); } .sc-edge { fill: none; stroke: var(--road-edge); stroke-width: 1.6; } .sc-dashes polygon { fill: var(--road-edge); }
.sc-lot { fill: var(--lot); } .sc-curb { fill: var(--lot-curb); }
.sc-bay { fill: none; stroke: var(--lot-line); stroke-width: 2; stroke-linecap: round; opacity: .8; } .sc-dash { fill: var(--lot-line); opacity: .55; }

.hero-road { position: relative; margin-top: 18px; max-width: 640px; aspect-ratio: 560 / 330; cursor: pointer;
  -webkit-mask-image: radial-gradient(ellipse 56% 56% at 50% 50%, #000 50%, transparent 100%); mask-image: radial-gradient(ellipse 56% 56% at 50% 50%, #000 50%, transparent 100%); }
.hero-road svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hero-road .beam, .duel-stage .beam { opacity: .9; }
.hero-road.go .hero-car { animation: drive-in 1.8s var(--ease) both; }
.hero-road.go .sc-dashes { animation: road-in 1.8s cubic-bezier(.12,.75,.2,1) both; }
.hero-road.go .beam { animation: fade-in .7s 1.1s both; }
.hero-road .bob { animation: bob 2.6s 1.8s ease-in-out infinite alternate; }
@keyframes drive-in { from { transform: translate3d(260px, -150px, 0); opacity: 0; } 18% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes road-in { from { transform: translate3d(var(--dx), var(--dy), 0); } to { transform: none; } }
@keyframes bob { to { transform: translate3d(0, -2px, 0); } }
@keyframes fade-in { from { opacity: 0; } }

.duel-body-pad { padding-top: 4px; }
.duel-stage { position: relative; aspect-ratio: 680 / 440; max-width: 760px; margin: 0 auto; }
.duel-stage svg { width: 100%; height: 100%; display: block; overflow: visible; }
.duel-stage.idle .duel-car { opacity: 0; }
.duel-stage.arriving .duel-a { animation: park-a 1.2s var(--ease) both; }
.duel-stage.arriving .duel-b { animation: park-b 1.2s .2s var(--ease) both; }
@keyframes park-a { from { transform: translate3d(220px, -127px, 0); opacity: 0; } 20% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes park-b { from { transform: translate3d(220px, -127px, 0); opacity: 0; } 20% { opacity: 1; } to { transform: none; opacity: 1; } }
.duel-stage.solo .duel-b, .duel-stage.solo .tag-mkt { display: none; }

.tag { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 108px; padding: 8px 14px 9px; text-align: center; pointer-events: none;
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 14px; box-shadow: 0 16px 30px -16px rgba(0,0,0,.45);
  opacity: 0; transform: translate(-50%, -100%) translateY(10px) scale(.92); transition: opacity .35s var(--ease), transform .5s var(--ease), border-color .3s; }
.tag::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; background: var(--surface); border-right: 1.5px solid; border-bottom: 1.5px solid; border-color: inherit; transform: translateX(-50%) rotate(45deg); }
.duel-stage.tags .tag { opacity: 1; transform: translate(-50%, -100%); }
.duel-stage.tags .tag-mkt { transition-delay: .12s; }
.tag-lbl { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tag-val { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 3.6vw, 1.4rem); letter-spacing: -.03em; line-height: 1.2; transition: color .3s; }
.tag-sub { font-size: 11.5px; font-weight: 600; color: var(--text-2); min-height: 1.25em; }
.tag-you { border-color: color-mix(in srgb, var(--accent) 75%, transparent); }
.tag-you .tag-val { color: var(--accent-text); }
.duel-stage.warn .tag-you { border-color: var(--bad); animation: tag-shake .55s .2s both; }
.duel-stage.warn .tag-you .tag-val { color: var(--bad); }
.duel-stage.fixing .tag-you .tag-val, .duel-stage.ok-after .tag-you .tag-val, .duel-stage.good .tag-you .tag-val, .duel-stage.fair .tag-you .tag-val { color: var(--ok); }
.duel-stage.fixing .tag-you, .duel-stage.ok-after .tag-you, .duel-stage.good .tag-you, .duel-stage.fair .tag-you { border-color: var(--ok); }
@keyframes tag-shake { 0%, 100% { transform: translate(-50%, -100%); } 20% { transform: translate(calc(-50% - 5px), -100%); } 40% { transform: translate(calc(-50% + 5px), -100%); } 60% { transform: translate(calc(-50% - 3px), -100%); } 80% { transform: translate(calc(-50% + 3px), -100%); } }
.warn-ic, .ok-ic { position: absolute; top: -13px; right: -13px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 15px; color: #fff; transform: scale(0); transition: transform .35s var(--ease); }
.warn-ic { background: var(--bad); } .ok-ic { background: var(--ok); }
.warn-ic::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--bad); animation: ping 1.3s ease-out infinite; z-index: -1; }
.ok-ic .ic { width: 15px; height: 15px; stroke: #fff; stroke-width: 3; }
.duel-stage.warn .warn-ic { transform: scale(1); }
.duel-stage.ok-after .ok-ic, .duel-stage.good .ok-ic, .duel-stage.fair .ok-ic { transform: scale(1); }
@keyframes ping { from { transform: scale(1); opacity: .55; } to { transform: scale(2.2); opacity: 0; } }
.duel-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.duel-cap { font-weight: 700; color: var(--text-2); min-height: 1.5em; flex: 1 1 240px; }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
html.lite .hero-road *, html.lite .duel-stage *, html.lite .tag { animation: none !important; transition: none !important; }
html.lite .hero-road .bob { animation: none; }
@media (prefers-reduced-motion: reduce) { .hero-road *, .duel-stage *, .tag { animation: none !important; } }

@media (max-width: 480px) {
  .tag { min-width: 88px; padding: 6px 10px 7px; border-radius: 12px; }
  .tag-lbl { font-size: 9.5px; letter-spacing: .06em; }
  .tag-val { font-size: 1rem; }
  .tag-sub { font-size: 10.5px; }
  .warn-ic, .ok-ic { width: 22px; height: 22px; top: -11px; right: -11px; font-size: 13px; }
}

/* real 3D car (hero3d.js): fades in over the SVG illustration once three.js and the model are ready */
.gl-wrap { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease); }
.gl-canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.gl-canvas:active { cursor: grabbing; }
.hero-road.gl { -webkit-mask-image: none; mask-image: none; }
.hero-road.gl .gl-wrap { opacity: 1; }
.hero-road.gl > svg { opacity: 0; transition: opacity .5s; }

/* until the 3D car is ready (or has failed) the hero shows only a soft ground shadow: no old car flashes and swaps */
.hero-road > svg { transition: opacity .5s; }
html.js .hero-road:not(.gl):not(.fallback) > svg { opacity: 0; }
.hero-road:not(.gl):not(.fallback)::before { content: ""; position: absolute; left: 16%; right: 16%; bottom: 24%; height: 13%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.2), transparent); animation: shadow-breathe 1.8s ease-in-out infinite alternate; }
.hero-road.gl::before, .hero-road.fallback::before { display: none; }
@keyframes shadow-breathe { from { opacity: .45; transform: scaleX(.92); } to { opacity: 1; transform: scaleX(1); } }
html.lite .hero-road::before { animation: none; }
