/* Velarno Automóveis. Palette, cool graphite with a deep green accent:
   ground #f1f3f2, band #e5e9e7, card #f9faf9, ink #141c1a, accent #1d5c49 (dark twin #8fd0b5).
   Every text pair is measured in tools/contrast.py. */
:root {
  --bg: #f1f3f2;
  --bg-2: #e5e9e7;
  --card: #f9faf9;
  --ink: #141c1a;
  --ink-2: #33403c;
  --muted: #56635f;
  --rule: #cdd4d1;
  --field: #7a8681;
  --accent: #1d5c49;
  --accent-h: #164a3b;
  --on-accent: #f1f5f3;
  --accent-soft: #dceae4;
  --dark: #121917;
  --dark-2: #1b2421;
  --on-dark: #e7ece9;
  --on-dark-m: #a9b5b0;
  --accent-d: #8fd0b5;
  --num-d: #d8c58f;
  --err: #9b2f2a;
  --neg: #8f3a2f;
  --shadow: 0 1px 2px rgba(20, 32, 28, .06), 0 8px 24px rgba(20, 32, 28, .07);
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --gutter: 16px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font);
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
main:focus { outline: none; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 880px) { :root { --gutter: 32px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); color: var(--ink); padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

/* Type */
.h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 650; margin: 0 0 12px; }
.h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); line-height: 1.2; letter-spacing: -.01em; font-weight: 650; margin: 0 0 18px; }
.h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 650; margin: 0 0 8px; letter-spacing: -.005em; }
.lede { font-size: 1.0625rem; color: var(--ink-2); margin: 0 0 24px; max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .9375rem; }
.fine { font-size: .875rem; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }
.eyebrow { font-size: .8125rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin: 0 0 10px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 3px 8px; border-radius: 999px; vertical-align: 1px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(241, 243, 242, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); padding-top: env(safe-area-inset-top, 0); }
.top__in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; margin-right: auto; }
.brand__mark { flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 750; letter-spacing: .14em; text-transform: uppercase; font-size: 1rem; }
.brand__sub { font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.top__badge { font-size: .8125rem; font-weight: 600; color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--rule); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.lang { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 0; background: var(--card); }
.lang a, .lang span { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 999px; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; }
.lang__cur { background: var(--ink); color: var(--bg); }
.lang__alt { color: var(--ink-2); }
@media (max-width: 559px) { .top__badge { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:focus-visible, .btn--primary:active { background: var(--accent-h); color: var(--on-accent); }
.btn--ghost { background: var(--card); color: var(--ink); border-color: var(--field); }
.btn--ghost:focus-visible, .btn--ghost:active { background: var(--bg-2); color: var(--ink); }
.btn--danger { background: var(--err); color: var(--card); }
.btn--danger:focus-visible, .btn--danger:active { background: #7f2622; color: var(--card); }
.btn--text { background: transparent; color: var(--accent); padding: 0 12px; text-decoration: underline; text-underline-offset: 3px; }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: .9375rem; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }

/* Cards and bands */
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
@media (min-width: 880px) { .card { padding: 24px; } }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.card__head .h3 { margin: 0; }
.band { padding-block: clamp(28px, 4vw, 56px); }

/* Photo frames */
.stage { border-radius: 20px; border: 1px solid var(--rule); overflow: hidden; background: var(--bg-2); }
.stage img { display: block; width: 100%; height: auto; }
.hero__media { display: flex; flex-direction: column; gap: 12px; }
.gallery { position: relative; }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 20px; border: 1px solid var(--rule); background: var(--bg-2); scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.gallery__slide img { display: block; width: 100%; height: auto; }
.gallery__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.gallery__btn { min-width: 44px; min-height: 44px; border-radius: 999px; border: 1px solid var(--field); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.gallery__btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.credits { margin-left: auto; font-size: .875rem; color: var(--muted); }
.credits summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; cursor: pointer; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.credits p { margin: 0 0 4px; max-width: 46ch; }
.credits[open] { flex-basis: 100%; margin-left: 0; }
@media (max-width: 879px) { .hero .quick { display: none; } }
.quick { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quick li { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.quick strong { font-size: .9375rem; font-weight: 700; line-height: 1.3; }
.quick span { font-size: .8125rem; color: var(--muted); }
@media (min-width: 560px) { .quick { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stage--sm { border-radius: 14px; }
.stage--prop { margin-bottom: 20px; }

/* Car page hero */
.hero { display: grid; gap: 20px; padding-top: 20px; }
@media (min-width: 880px) {
  .hero { grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr); gap: 28px; align-items: stretch; padding-top: 28px; }
  .hero__media { min-height: 100%; }
  .sticker { position: sticky; top: 88px; align-self: start; }
}
.sticker { background: var(--card); border: 1px solid var(--rule); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.sticker__title { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem); line-height: 1.08; letter-spacing: -.02em; font-weight: 700; margin: 0 0 8px; }
.sticker__sub { color: var(--ink-2); margin: 0 0 20px; }
.price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 16px 0; margin-bottom: 14px; }
.price__label { color: var(--muted); font-size: .9375rem; }
.price__value { font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.5rem); letter-spacing: -.02em; font-weight: 750; }
.teaser { margin: 0 0 18px; color: var(--ink-2); font-size: .9375rem; min-height: 1.5em; }

.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.specs > div { background: var(--card); padding: 16px; }
.specs dt { font-size: .8125rem; color: var(--muted); margin-bottom: 4px; }
.specs dd { margin: 0; font-weight: 650; font-size: 1.0625rem; }
@media (min-width: 880px) { .specs { grid-template-columns: repeat(4, minmax(0, 1fr)); } .specs > div { padding: 20px; } }

.split { display: grid; gap: 16px; padding-top: 0; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; gap: 24px; } }
.ticks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 3 6-6.6' fill='none' stroke='%231d5c49' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.pills { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { border: 1px solid var(--rule); background: var(--bg); border-radius: 999px; padding: 6px 12px; font-size: .9375rem; }

.sticky-cta { position: sticky; bottom: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0)); background: var(--card); border-top: 1px solid var(--rule); box-shadow: 0 -6px 20px rgba(20, 32, 28, .08); }
.sticky-cta__info { display: flex; flex-direction: column; line-height: 1.2; }
.sticky-cta__info strong { font-size: 1.125rem; }
.sticky-cta__info span { font-size: .8125rem; color: var(--muted); }
@media (min-width: 880px) { .sticky-cta { display: none; } }

/* Enquiry flow */
.flow { display: grid; gap: 20px; padding-block: 20px 48px; }
@media (min-width: 880px) { .flow { grid-template-columns: 340px minmax(0, 1fr); gap: 40px; padding-block: 36px 72px; align-items: start; } .flow__car { position: sticky; top: 88px; } }
.flow__car { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; }
.flow__car .stage { align-self: start; }
@media (min-width: 880px) { .flow__car { grid-template-columns: 1fr; } }
.flow__carname { font-weight: 700; margin: 0; line-height: 1.25; }
.flow__carinfo .muted { margin: 2px 0 4px; font-size: .875rem; }
.flow__price { font-weight: 750; font-size: 1.25rem; margin: 0; }
.flow__main { max-width: 640px; }
.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 24px; flex-wrap: wrap; }
.steps li { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--muted); font-weight: 600; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--bg-2); }
.steps li span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--card); border: 1px solid var(--rule); font-size: .8125rem; }
.steps li[aria-current="step"] { color: var(--ink); background: var(--accent-soft); }
@media (max-width: 559px) { .steps { gap: 6px; } .steps li { font-size: .8125rem; padding: 5px 10px 5px 5px; gap: 6px; } .steps li span { width: 22px; height: 22px; } }
.steps li[aria-current="step"] span, .steps li.is-done span { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.panel .h1:focus { outline: none; }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .choices legend, .fin__label { font-weight: 650; font-size: .9375rem; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--card); border: 1px solid var(--field); border-radius: 10px; padding: 12px 14px; min-height: 48px; }
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.hint { margin: 0; font-size: .875rem; color: var(--muted); }
.err { margin: 0; font-size: .875rem; color: var(--err); font-weight: 600; }
.err--block { background: #f6e9e7; border: 1px solid #e4c4bf; padding: 12px 14px; border-radius: 10px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.check label { font-size: .9375rem; line-height: 1.45; padding-block: 0; cursor: pointer; }
.check { min-height: 44px; }

.choices { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.choices legend { padding: 0; margin-bottom: 10px; width: 100%; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--field); background: var(--card); font-weight: 600; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.choice input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:checked + span::before { content: ""; flex: none; width: 14px; height: 14px; margin-right: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4l2.9 2.9 6.1-6.6' fill='none' stroke='%231d5c49' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.choice--sm input:checked + span::before { margin-right: 6px; }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice--sm span { min-height: 44px; min-width: 52px; justify-content: center; padding: 0 12px; }
.choices--row { align-items: center; }
.fin__unit { margin-left: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 4px; }
@media (max-width: 559px) { .actions .btn--primary { width: 100%; } .actions .btn--text { width: 100%; } }
.done-mark { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); margin-bottom: 16px; }

/* Proposal */
.staffbar { background: var(--dark-2); color: var(--on-dark); font-size: .875rem; padding: 10px 0; }
.prop { padding-block: 24px 56px; }
.prop__head { margin-bottom: 20px; }
.prop__hello { font-size: 1.125rem; color: var(--ink-2); margin: 0 0 4px; font-weight: 600; }
.prop__grid { display: grid; gap: 20px; }
.prop__main { display: grid; gap: 20px; align-content: start; }
.prop__side { display: grid; gap: 20px; align-content: start; }
@media (min-width: 880px) { .prop__grid { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 28px; align-items: start; } .prop__side { position: sticky; top: 88px; } }
.stage--prop { margin: 0; }
.extras { display: grid; gap: 10px; margin-top: 14px; }
.extra { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--rule); border-radius: 12px; background: var(--bg); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.extra:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.extra input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.extra__body { display: grid; gap: 2px; }
.extra__name { font-weight: 650; }
.extra__desc { font-size: .875rem; color: var(--muted); }
.extra:has(input:checked) .extra__desc { color: var(--ink-2); }
.extra__price { font-weight: 700; white-space: nowrap; }
.saved { min-height: 1.4em; margin: 10px 0 0; font-size: .875rem; color: var(--accent); font-weight: 600; }

.fin { display: grid; gap: 18px; margin-top: 10px; }
.fin__ctl { display: grid; gap: 8px; }
.fin__label { display: flex; justify-content: space-between; gap: 12px; }
.fin__label output { font-weight: 700; }
input[type="range"] { width: 100%; height: 44px; accent-color: var(--accent); margin: 0; }
.fin__out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0; padding: 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--rule); }
.fin__out dt { font-size: .8125rem; color: var(--muted); }
.fin__out dd { margin: 0; font-weight: 650; }
.fin__big { grid-column: 1 / -1; }
.fin__big dd { font-size: 1.75rem; font-weight: 750; letter-spacing: -.02em; }
@media (min-width: 560px) { .fin__out { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.sum { margin: 10px 0 12px; display: grid; gap: 8px; }
.sum > div { display: flex; justify-content: space-between; gap: 12px; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; font-weight: 650; }
.sum__total { border-top: 1px solid var(--rule); padding-top: 10px; margin-top: 4px; }
.sum__total dt { color: var(--ink); font-weight: 650; }
.sum__total dd { font-size: 1.375rem; font-weight: 750; }
.td .choices { margin-top: 14px; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.td .btn--block { margin-top: 18px; }
.td .err { margin-top: 10px; }
.td__done { display: grid; gap: 8px; justify-items: start; margin-top: 8px; }
.td__msg { margin: 0; padding: 14px 16px; background: var(--accent-soft); border-radius: 12px; font-weight: 600; color: var(--ink); width: 100%; }
.td__done .btn--text { padding-inline: 0; }
.notfound { padding-block: 64px; max-width: 640px; }

/* Ledger */
.led-head { display: grid; gap: 16px; padding-top: 28px; padding-bottom: 20px; }
@media (min-width: 880px) { .led-head { grid-template-columns: 1fr auto; align-items: end; padding-top: 40px; } }
.led-head .lede { margin-bottom: 0; }
.counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.counters > div { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 10px 16px; min-width: 104px; }
.counters dt { font-size: .8125rem; color: var(--muted); }
.counters dd { margin: 0; font-size: 1.75rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.15; }
.led { display: grid; gap: 20px; padding-bottom: 64px; }
@media (min-width: 1100px) { .led { grid-template-columns: minmax(0, 1fr) 440px; gap: 28px; align-items: start; } .led__side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; overscroll-behavior: contain; padding-bottom: 4px; } }
.led__list { display: grid; gap: 14px; align-content: start; }
.led__tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.led__side { display: grid; gap: 20px; align-content: start; }
[data-leads] { display: grid; gap: 14px; }

.lead { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: grid; gap: 14px; transition: border-color .3s ease, box-shadow .3s ease; }
.lead.is-q { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent), var(--shadow); }
.lead.just-q { animation: qpulse 1.6s ease-out 1; }
@keyframes qpulse { 0% { box-shadow: inset 4px 0 0 var(--accent), 0 0 0 0 rgba(29, 92, 73, .45); } 100% { box-shadow: inset 4px 0 0 var(--accent), 0 0 0 14px rgba(29, 92, 73, 0); } }
.lead__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.lead__name { font-size: 1.125rem; font-weight: 700; margin: 0; line-height: 1.25; }
.lead__meta { margin: 2px 0 0; font-size: .875rem; color: var(--muted); }
.score { text-align: right; flex: none; }
.score__n { display: block; font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.badge { display: inline-block; margin-top: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .03em; padding: 4px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.badge--q { background: var(--accent); color: var(--on-accent); }
.meter { position: relative; height: 8px; border-radius: 999px; background: var(--bg-2); overflow: visible; }
.meter__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--field); transition: width .5s cubic-bezier(.19, 1, .22, 1); }
.is-q .meter__fill { background: var(--accent); }
.meter__line { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--ink); border-radius: 2px; }
.meter__cap { display: flex; justify-content: flex-end; font-size: .75rem; color: var(--muted); margin-top: -6px; }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.reasons li { display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: baseline; }
.pts { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent); }
.pts--neg { color: var(--neg); }
.facts { margin: 0; display: grid; grid-template-columns: 1fr; gap: 8px; padding: 12px 14px; background: var(--bg); border-radius: 10px; font-size: .9375rem; }
@media (min-width: 560px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts dt { font-size: .75rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.stages { display: flex; flex-wrap: wrap; gap: 6px; }
.stages button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--field); background: var(--card); color: var(--ink); font: inherit; font-size: .875rem; font-weight: 650; cursor: pointer; }
.stages button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.lead__foot { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.lead__foot a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.stage-label { font-size: .75rem; color: var(--muted); font-weight: 600; margin: 0 0 6px; }

.rules__list { display: grid; gap: 8px; margin: 14px 0 6px; }
.rule { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rule label { font-size: .9375rem; }
.rule--line { border-top: 1px solid var(--rule); padding-top: 10px; margin-top: 4px; }
.rule--line label { font-weight: 700; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--field); border-radius: 999px; background: var(--card); flex: none; }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; font: inherit; font-size: 1.25rem; color: var(--ink); cursor: pointer; border-radius: 999px; }
.stepper input { width: 44px; text-align: center; border: 0; background: transparent; font: inherit; font-weight: 750; font-size: 1rem; color: var(--ink); min-height: 44px; padding: 0; }

.feed { background: var(--dark); color: var(--on-dark); border-radius: var(--radius); padding: 20px; }
@media (min-width: 880px) { .feed { padding: 24px; } }
.feed .h3 { color: var(--on-dark); }
.feed__lede { color: var(--on-dark-m); font-size: .9375rem; margin: 0 0 10px; }
.feed__tags { color: var(--on-dark-m); font-size: .8125rem; margin: 0 0 14px; padding: 8px 10px; border: 1px solid #2c3833; border-radius: 8px; }
.feed__empty { color: var(--on-dark-m); font-size: .9375rem; margin: 0; padding: 18px; border: 1px dashed #34423c; border-radius: 10px; text-align: center; }
.ev { background: var(--dark-2); border: 1px solid #2c3833; border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.ev.is-new { animation: evin .6s cubic-bezier(.19, 1, .22, 1) 1; }
@keyframes evin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ev__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ev__name { font-family: var(--mono); font-weight: 700; color: var(--accent-d); font-size: .9375rem; }
.ev__meta { color: var(--on-dark-m); font-size: .8125rem; }
.ev__status { margin: 8px 0 10px; font-size: .8125rem; color: var(--on-dark); display: flex; gap: 8px; align-items: flex-start; }
.ev__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--num-d); margin-top: 6px; }
.ev--blocked .ev__dot { background: var(--on-dark-m); }
.ev__tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.ev__tabs button, .ev__copy { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid #3a4842; background: transparent; color: var(--on-dark); font: inherit; font-size: .8125rem; font-weight: 650; cursor: pointer; }
.ev__tabs button[aria-pressed="true"] { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }
.ev__copy { margin-left: auto; }
.ev pre { margin: 0; font-family: var(--mono); font-size: .78125rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; color: var(--on-dark); background: var(--dark); border-radius: 8px; padding: 12px; max-height: 340px; overflow: auto; }
.ev .k { color: var(--accent-d); }
.ev .s { color: var(--on-dark); }
.ev .n { color: var(--num-d); }
@media (max-width: 559px) { .feed { padding: 16px 14px; } .ev { padding: 12px 10px; } .ev pre { padding: 10px; font-size: .75rem; } }
.ev__excl { margin: 8px 0 0; font-size: .8125rem; color: var(--on-dark-m); }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0)); transform: translateX(-50%); z-index: 40; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 650; font-size: .9375rem; box-shadow: 0 10px 30px rgba(20, 32, 28, .25); max-width: calc(100% - 32px); text-align: center; }
.toast.show { animation: tin .35s cubic-bezier(.19, 1, .22, 1) 1; }
@keyframes tin { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Privacy */
.prose { max-width: 760px; padding-block: 36px 64px; }
.prose p { max-width: 68ch; }
.prose .h3 { margin-top: 28px; }

/* Footer */
.foot { border-top: 1px solid var(--rule); background: var(--bg-2); padding: 24px 0 calc(24px + env(safe-area-inset-bottom, 0)); }
.foot__in { display: grid; gap: 8px; }
@media (min-width: 880px) { .foot__in { grid-template-columns: 1fr auto; align-items: center; } }
.foot__brand { margin: 0; font-size: .875rem; color: var(--ink-2); }
.foot__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; font-size: .875rem; }
.foot__links a, .foot__links .linkbtn { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-size: .875rem; }
.page-car .foot { padding-bottom: 96px; }
@media (min-width: 880px) { .page-car .foot { padding-bottom: 24px; } }

/* Consent banner */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0)); }
.consent__in { max-width: 920px; margin: 0 auto; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; box-shadow: 0 18px 50px rgba(20, 32, 28, .22); padding: 18px; display: grid; gap: 14px; }
@media (min-width: 720px) { .consent__in { grid-template-columns: 1fr auto; align-items: center; padding: 18px 22px; } }
.consent__title { font-size: 1rem; margin: 0 0 4px; }
.consent__text p { margin: 0; font-size: .9375rem; color: var(--ink-2); }
.consent__text .consent__now { margin-top: 6px; font-size: .8125rem; color: var(--muted); }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent__actions .btn { min-width: 120px; }

/* Header showroom link */
.top__3d { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--dark); color: var(--on-dark); font-size: .875rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.top__3d:focus-visible, .top__3d:active { color: var(--on-dark); background: var(--dark-2); }
.top__3d-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-d); box-shadow: 0 0 0 0 rgba(143, 208, 181, .6); animation: dot 2.4s ease-out infinite; }
@keyframes dot { 0% { box-shadow: 0 0 0 0 rgba(143, 208, 181, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(143, 208, 181, 0); } }
.top__3d-short { display: none; }
@media (max-width: 480px) { .top__3d { padding: 0 11px; gap: 6px; font-size: .8125rem; } .top__3d-long { display: none; } .top__3d-short { display: inline; } .top__in { gap: 6px; } .brand { gap: 8px; } }
@media (max-width: 360px) { .brand__sub { letter-spacing: .12em; } }

/* Showroom banner on the car page */
.sr-banner { display: grid; grid-template-columns: 1fr; overflow: hidden; border-radius: 20px; background: var(--dark); color: var(--on-dark); text-decoration: none; margin-top: 8px; position: relative; isolation: isolate; }
.sr-banner:focus-visible { outline-offset: 4px; }
.sr-banner__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--dark-2); }
.sr-banner__media img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform .9s cubic-bezier(.19, 1, .22, 1); }
.sr-banner__text { display: grid; gap: 6px; padding: 20px; align-content: center; }
.sr-banner__eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-d); }
.sr-banner__title { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2rem); font-weight: 750; letter-spacing: -.02em; line-height: 1.1; color: var(--on-dark); }
.sr-banner__sub { color: var(--on-dark-m); font-size: .9375rem; max-width: 40ch; }
.sr-banner__go { justify-self: start; margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--accent-d); color: var(--dark); font-weight: 750; }
@media (min-width: 880px) { .sr-banner { grid-template-columns: 1.1fr 1fr; } .sr-banner__media { aspect-ratio: auto; min-height: 260px; } .sr-banner__text { padding: 32px; } }

/* Similar cars */
.similar { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .similar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .similar { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sim__link { display: grid; height: 100%; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .25s cubic-bezier(.19, 1, .22, 1), border-color .2s ease; }
.sim__link:focus-visible { outline-offset: 3px; }
.sim__media { display: block; aspect-ratio: 16 / 9; background: var(--bg-2); overflow: hidden; }
.sim__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sim__media .photo-ph { aspect-ratio: 16 / 9; }
.credits--list { margin-top: 14px; margin-left: 0; }
.credits__list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: .8125rem; color: var(--muted); }
.prose .credits__list { font-size: .9375rem; }
.sim__body { display: grid; gap: 4px; padding: 14px 16px 16px; }
.sim__name { font-weight: 700; line-height: 1.25; }
.sim__meta { font-size: .875rem; color: var(--muted); }
.sim__price { font-weight: 750; font-size: 1.125rem; margin-top: 4px; }

/* Neutral photo card for listings whose photos have not arrived */
.photo-ph { display: grid; place-content: center; justify-items: center; gap: 10px; width: 100%; height: 100%; min-height: 100%; aspect-ratio: 4 / 3; color: var(--muted); font-size: .875rem; font-weight: 600; background: linear-gradient(160deg, #e9edeb 0%, #dde3e0 100%); }
.photo-ph--hero { border-radius: 20px; border: 1px solid var(--rule); }
.stage .photo-ph { aspect-ratio: 4 / 3; text-align: center; padding: 8px; }
.stage--sm .photo-ph { font-size: .6875rem; gap: 4px; line-height: 1.2; }
.stage--sm .photo-ph svg { width: 24px; height: 24px; }
.lead__car { margin: 4px 0 0; font-size: .875rem; font-weight: 650; color: var(--ink-2); }

/* ---------- Virtual showroom ---------- */
.vs { background: var(--dark-2); color: var(--on-dark); }
.page-showroom { background: var(--dark-2); }
.page-showroom .foot { background: var(--dark-2); border-top-color: #2c3833; }
.page-showroom .foot__brand { color: var(--on-dark-m); }
.page-showroom .foot__brand strong { color: var(--on-dark); }
.page-showroom .foot a, .page-showroom .foot .linkbtn { color: var(--accent-d); }
.vs__stage { position: relative; height: max(360px, 56svh); overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.vs__stage:active { cursor: grabbing; }
@media (min-width: 880px) { .vs__stage { height: clamp(520px, calc(100svh - 64px - 132px), 860px); } }
/* studio: lit back wall that rolls into a darker gloss floor, no hard horizon */
.vs__studio { position: absolute; inset: 0; background:
  radial-gradient(70% 62% at 50% 46%, #c4cbc9 0%, #a2aaa8 26%, #6f7876 54%, #3a4241 82%, #2a302f 100%);
  transition: filter .8s ease; }
/* ceiling falloff: the top of the wall darkens like a real hall, which also keeps the title legible */
.vs__studio::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 56%; background: linear-gradient(180deg, rgba(10, 15, 14, .72) 0%, rgba(10, 15, 14, .5) 30%, rgba(10, 15, 14, 0) 100%); }
.vs__studio::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 52%; background: linear-gradient(180deg, rgba(42, 48, 47, 0) 0%, rgba(42, 48, 47, .55) 38%, #1c2221 100%); }
.vs__stage.is-run .vs__studio { filter: brightness(.42) contrast(1.1); }
.vs__fx, .vs__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.vs__fx { z-index: 1; }
.vs__scene { position: absolute; z-index: 2; outline: none; }
.vs__scene:focus-visible { box-shadow: 0 0 0 3px var(--accent-d); border-radius: 12px; }
.vs__lines { z-index: 3; }
.vs__frame { position: absolute; inset: 0; opacity: 0; visibility: hidden; will-change: opacity, transform; }
.vs__frame img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; -webkit-user-drag: none; }
.vs__refl { transform: scaleY(-1); opacity: .2; filter: blur(1.2px);
  -webkit-mask-image: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, .9) 80.6%, transparent 80.7%);
  mask-image: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, .9) 80.6%, transparent 80.7%); }
.vs__stage.is-run .vs__refl { opacity: .14; }
.vs__car { transition: transform .25s ease-out; }
.vs__sweep { position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: linear-gradient(105deg, rgba(240, 246, 243, 0) 38%, rgba(240, 246, 243, .26) 49%, rgba(240, 246, 243, .05) 54%, rgba(240, 246, 243, 0) 62%);
  background-size: 260% 100%; background-position: 120% 0;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.vs__sweep.go { animation: vsweep 1.9s cubic-bezier(.45, 0, .2, 1) 1; }
@keyframes vsweep { 0% { opacity: 1; background-position: 120% 0; } 100% { opacity: 1; background-position: -20% 0; } }
.vs__wheel { position: absolute; height: auto; aspect-ratio: 1 / 1; inset: auto; will-change: transform; }
.vs__frame .vs__wheel { inset: auto; height: auto; }
/* hotspot: 44 px tap area, a 30 px ring with a small centre dot, placed beside the detail it opens */
.vs__hot { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: transparent; opacity: 0; transform: scale(var(--iz, 1)); transition: opacity .35s ease; pointer-events: none; }
.vs__hot::before, .vs__hot::after { transition: transform .45s cubic-bezier(.19, 1, .22, 1); }
.vs__frame:not(.is-current) .vs__hot::before { transform: scale(.6); }
.vs__hot::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 2px solid rgba(231, 236, 233, .95); background: radial-gradient(circle, var(--on-dark) 0 3px, rgba(10, 15, 14, .28) 3.5px); box-shadow: 0 1px 6px rgba(10, 15, 14, .55); }
.vs__hot::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 2px solid rgba(231, 236, 233, .7); animation: hot 2.2s ease-out infinite; }
@keyframes hot { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.vs__frame.is-current .vs__hot { opacity: 1; pointer-events: auto; }
.vs__stage.is-run .vs__hot { opacity: 0; pointer-events: none; }
.vs__vignette { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: radial-gradient(120% 95% at 50% 50%, rgba(10, 15, 14, 0) 60%, rgba(10, 15, 14, .45) 100%); transition: background .6s ease; }
.vs__stage.is-run .vs__vignette { background: radial-gradient(85% 70% at 50% 58%, rgba(10, 15, 14, 0) 45%, rgba(10, 15, 14, .8) 100%); }

.vs__head { position: absolute; z-index: 5; left: var(--gutter); top: 16px; right: 70px; pointer-events: none; }
.vs__eyebrow { margin: 0 0 4px; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-d); text-shadow: 0 1px 8px rgba(10, 15, 14, .6); }
.vs__name { margin: 0; font-size: clamp(1.5rem, 1.1rem + 2vw, 2.6rem); line-height: 1.05; letter-spacing: -.02em; font-weight: 800; color: var(--on-dark); text-shadow: 0 1px 14px rgba(10, 15, 14, .55); }
.vs__sub { margin: 6px 0 0; font-size: .875rem; color: var(--on-dark); font-weight: 600; text-shadow: 0 1px 8px rgba(10, 15, 14, .6); }
@media (min-width: 880px) { .vs__head { left: 32px; top: 26px; } }

.vs__arrow { position: absolute; z-index: 6; top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; border: 1px solid rgba(20, 28, 26, .25); background: rgba(231, 236, 233, .78); color: var(--ink); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background-color .2s ease, transform .15s ease, opacity .3s ease; }
.vs__arrow--prev { left: 12px; }
.vs__arrow--next { right: 12px; }
.vs__arrow:active { transform: scale(.94); }
.vs__arrow:disabled { opacity: .35; cursor: default; transform: none; }
@media (max-width: 559px) { .vs__arrow { top: auto; bottom: 8px; margin-top: 0; } }
@media (min-width: 880px) { .vs__arrow--prev { left: 28px; } .vs__arrow--next { right: 28px; } .vs__arrow { width: 56px; height: 56px; margin-top: -28px; } }
.vs__stage.is-run .vs__arrow, .vs__stage.is-run .vs__hint { opacity: 0; pointer-events: none; }
.vs__hint { position: absolute; z-index: 5; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; padding: 6px 14px; border-radius: 999px; background: rgba(18, 25, 23, .62); color: var(--on-dark); font-size: .8125rem; white-space: nowrap; pointer-events: none; transition: opacity .6s ease; }
.vs__hint.is-gone, .vs__stage:not(.is-live) .vs__hint { opacity: 0; }
.vs__sound { position: absolute; z-index: 6; right: var(--gutter); top: 14px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(20, 28, 26, .25); background: rgba(231, 236, 233, .78); color: var(--ink); font: inherit; font-size: .8125rem; font-weight: 700; cursor: pointer; }
.vs__sound .vs__mute { display: none; }
.vs__sound.is-muted .vs__mute { display: inline; }
.vs__sound.is-muted .vs__wave { display: none; }
@media (min-width: 880px) { .vs__sound { right: 32px; top: 24px; } }
@media (max-width: 559px) { .vs__sound span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .vs__sound { padding: 0 12px; } }

.vs__speedo { position: absolute; z-index: 6; right: 4%; top: 15%; width: 220px; text-align: center; opacity: 0; transform: scale(.92); transform-origin: 100% 0; transition: opacity .35s ease, transform .5s cubic-bezier(.19, 1, .22, 1); pointer-events: none; }
.vs__speedo.is-on { opacity: 1; transform: none; }
@media (min-width: 880px) { .vs__speedo { width: 270px; top: 12%; } }
@media (max-width: 559px) { .vs__speedo { top: 22%; right: 3%; width: 150px; } .vs__speed { margin-top: -42px; } }
.vs__arc { display: block; width: 100%; height: auto; }
.vs__arc path { fill: none; stroke-width: 7; stroke-linecap: round; }
.vs__arc-bg { stroke: rgba(231, 236, 233, .16); }
.vs__arc-fg { stroke: var(--accent-d); filter: drop-shadow(0 0 6px rgba(143, 208, 181, .75)); }
.vs__speed { margin-top: -56px; display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.vs__speed span { font-size: clamp(2.6rem, 2rem + 3.6vw, 4.6rem); font-weight: 850; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--on-dark); text-shadow: 0 0 24px rgba(143, 208, 181, .45); }
.vs__speed small { font-size: .875rem; font-weight: 700; color: var(--on-dark-m); }
.vs__timer { min-height: 1.4em; margin-top: 2px; font-size: 1rem; font-weight: 700; color: var(--num-d); font-variant-numeric: tabular-nums; }
.vs__gear { position: absolute; right: 2px; top: 30%; min-width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(231, 236, 233, .3); border-radius: 8px; font-weight: 800; color: var(--on-dark); }
.vs__gear:empty { display: none; }
@media (max-width: 559px) { .vs__gear { right: auto; left: -40px; top: 34%; } }
.vs__gear.pop { animation: gearpop .3s ease-out 1; }
@keyframes gearpop { 0% { transform: scale(1.35); border-color: var(--accent-d); } 100% { transform: none; } }
.vs__result { position: absolute; z-index: 7; left: 50%; bottom: 18px; transform: translate(-50%, 8px); margin: 0; padding: 10px 18px; border-radius: 999px; background: rgba(18, 25, 23, .86); border: 1px solid #2c3833; color: var(--on-dark); font-weight: 750; white-space: nowrap; opacity: 0; transition: opacity .3s ease, transform .4s cubic-bezier(.19, 1, .22, 1); pointer-events: none; }
.vs__result.show { opacity: 1; transform: translate(-50%, 0); }

.vs__loader { position: absolute; inset: 0; z-index: 8; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; background: radial-gradient(70% 62% at 50% 46%, #c4cbc9 0%, #6f7876 60%, #2a302f 100%); }
.vs__ring { width: 96px; height: 96px; transform: rotate(-90deg); }
.vs__ring circle { fill: none; stroke-width: 5; }
.vs__ring-bg { stroke: rgba(20, 28, 26, .18); }
.vs__ring-fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .25s ease; }
.vs__pct { margin: -66px 0 34px; font-size: 1.25rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.vs__loadtxt { margin: 0; color: var(--ink); font-size: .9375rem; font-weight: 600; letter-spacing: .02em; }

.vs__detail { position: absolute; inset: 0; z-index: 9; background: rgba(10, 15, 14, 0); transition: background .4s ease; }
.vs__detail.is-open { background: rgba(10, 15, 14, .86); }
.vs__detail-fig { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; align-content: center; gap: 12px; padding: 56px 16px 24px; transform: scale(.18); opacity: 0; transition: transform .55s cubic-bezier(.19, 1, .22, 1), opacity .35s ease; }
.vs__detail.is-open .vs__detail-fig { transform: none; opacity: 1; }
.vs__detail-fig img { max-width: min(100%, 1100px); max-height: calc(100% - 76px); width: auto; height: auto; object-fit: contain; border-radius: 14px; background: radial-gradient(70% 62% at 50% 46%, #c4cbc9 0%, #6f7876 62%, #3a4241 100%); }
.vs__detail-fig figcaption { color: var(--on-dark); font-weight: 700; font-size: 1rem; text-align: center; }
.vs__close { position: absolute; right: 14px; top: 14px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #3a4842; background: rgba(18, 25, 23, .85); color: var(--on-dark); display: grid; place-items: center; cursor: pointer; }

.vs__bar { background: var(--dark-2); border-top: 1px solid #2c3833; }
.vs__bar-in { display: flex; flex-wrap: wrap; gap: 14px 28px; padding-block: 14px 18px; align-items: center; justify-content: space-between; }
@media (min-width: 880px) { .vs__bar-in { padding-block: 18px; } }
.vs__views { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.vs__dot { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; padding: 0; }
.vs__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #4a5853; transition: transform .25s ease, background-color .25s ease; }
.vs__dot[aria-pressed="true"]::before { background: var(--accent-d); transform: scale(1.4); }
.vs__view-name { margin-left: 8px; font-size: .875rem; color: var(--on-dark-m); font-weight: 600; min-width: 17ch; white-space: nowrap; }
@media (max-width: 559px) { .vs__views { width: 100%; } .vs__view-name { min-width: 0; } .vs__specs { width: 100%; } .vs__runs, .vs__buy { width: 100%; } }
.vs__specs { margin: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 6px 22px; justify-content: start; }
@media (min-width: 560px) { .vs__specs { grid-template-columns: repeat(4, auto); } }
.vs__specs dt { font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-m); white-space: nowrap; }
.vs__specs dd { margin: 0; font-size: 1.0625rem; font-weight: 750; color: var(--on-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vs__runs { display: flex; gap: 8px; flex-wrap: wrap; }
.vs__chip { min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--num-d); background: transparent; color: var(--num-d); font: inherit; font-size: .9375rem; font-weight: 750; cursor: pointer; transition: transform .15s ease, background-color .2s ease; }
.vs__hero { position: relative; overflow: hidden; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; background: linear-gradient(90deg, #8fd0b5, #d8f0e5); color: var(--dark); font: inherit; font-size: 1rem; font-weight: 850; cursor: pointer; animation: heroglow 2.8s ease-in-out infinite; transition: transform .15s ease; }
.vs__hero-glow { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(240, 246, 243, .7) 50%, transparent 70%); background-size: 250% 100%; animation: shine 3.2s ease-in-out infinite; mix-blend-mode: overlay; }
@keyframes heroglow { 0%, 100% { box-shadow: 0 0 0 0 rgba(143, 208, 181, .45), 0 10px 30px rgba(143, 208, 181, .2); } 50% { box-shadow: 0 0 0 8px rgba(143, 208, 181, 0), 0 10px 36px rgba(143, 208, 181, .35); } }
@keyframes shine { 0% { background-position: 120% 0; } 60%, 100% { background-position: -120% 0; } }
.vs__chip:active, .vs__hero:active { transform: scale(.96); }
.vs-reduced .vs__runs { display: none; }
.vs__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.vs__price { margin: 0; display: flex; flex-direction: column; line-height: 1.15; }
.vs__price span { font-size: .75rem; color: var(--on-dark-m); text-transform: uppercase; letter-spacing: .08em; }
.vs__price strong { font-size: 1.5rem; font-weight: 800; color: var(--on-dark); }
.vs__cta { min-height: 52px; padding: 0 26px; background: var(--on-dark); color: var(--dark); white-space: nowrap; }
.vs__cta:focus-visible, .vs__cta:active { background: var(--accent-d); color: var(--dark); }
.vs__back { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-d); font-size: .875rem; font-weight: 650; }
@media (max-width: 559px) { .vs__runs > * { flex: 1; } .vs__cta { flex: 1; } }
.vs__credits { color: var(--on-dark-m); padding-block: 8px 16px; }
.vs__credits summary { color: var(--accent-d); }
.vs__credits a { color: var(--accent-d); }
.vs__credits p { max-width: 90ch; }

/* Hover only where a real pointer can hover; touch gets focus and active states instead. */
@media (hover: hover) {
  .vs__arrow:hover, .vs__sound:hover { background: rgba(240, 246, 243, .95); }
  .vs__chip:hover { background: rgba(216, 197, 143, .12); }
  .vs__cta:hover { background: var(--accent-d); color: var(--dark); }
  .vs__dot:hover::before { background: #7d8c86; }
  .top__3d:hover { color: var(--on-dark); background: var(--dark-2); }
  .sr-banner:hover .sr-banner__media img { transform: scale(1.06); }
  .sim__link:hover { transform: translateY(-3px); border-color: var(--field); }
  .gallery__btn:hover { background: var(--bg-2); }
  .gallery__btn[aria-pressed="true"]:hover { background: var(--ink); }
  a:hover { color: var(--accent-h); }
  .brand:hover { color: var(--ink); }
  .lang__alt:hover { background: var(--bg-2); color: var(--ink); }
  .btn--primary:hover { background: var(--accent-h); color: var(--on-accent); }
  .btn--ghost:hover { background: var(--bg-2); color: var(--ink); }
  .btn--danger:hover { background: #7f2622; color: var(--card); }
  .btn--text:hover { color: var(--accent-h); }
  .choice input:hover + span { background: var(--bg-2); }
  .choice input:checked:hover + span { background: var(--accent-soft); }
  .extra:hover { border-color: var(--field); }
  .stages button:hover { background: var(--bg-2); }
  .stages button[aria-pressed="true"]:hover { background: var(--ink); }
  .stepper button:hover { background: var(--bg-2); }
}

/* In-page confirm for "Apagar tudo" */
.confirm { display: grid; gap: 10px; border-color: var(--err); }
.confirm__q { margin: 0; font-weight: 650; }
.confirm__q:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lead.just-q, .ev.is-new, .toast.show, .top__3d-dot, .vs__hero, .vs__hero-glow, .vs__sweep.go, .vs__hot::after { animation: none; }
  .meter__fill { transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
