/* ==========================================================================
   RS Car Place — concept
   Concepção, design, código e redação: ARC — Agência Rodrigo Chiomento
   https://agenciarc.design
   © 2026 ARC — Agência Rodrigo Chiomento. Todos os direitos reservados.
   Não pode ser copiado, adaptado ou usado como base para outro projeto sem
   autorização por escrito. Detalhes em /#/direitos
   --------------------------------------------------------------------------
   Palette: white ground, ink, RS red. One dark chapter (showroom), one red block (CTA).
   Type: Archivo (variable width) — expanded caps for display, normal for body;
         Instrument Serif italic as the single accent voice.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-2: #f3f3f4;
  --ink: #0c0c0d;
  --ink-2: #4b4b52;
  --ink-3: #8a8a93;
  --line: #e4e4e7;
  --red: #e31e24;
  --red-2: #b8141a;
  --dark: #0e0e10;
  --dark-2: #17171a;
  --on-dark: #f4f4f5;
  --on-dark-2: #9a9aa2;
  --line-dark: #2a2a2e;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;

  --gutter: clamp(20px, 4vw, 64px);
  --nav-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- motifs ---------- */
.slash {
  display: inline-block; width: 12px; height: 8px; background: var(--red);
  transform: skewX(-26deg); vertical-align: middle; margin: 0 .5em;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 12px; height: 8px; background: var(--red); transform: skewX(-26deg); }
.on-dark .eyebrow { color: var(--on-dark-2); }

.display {
  font-stretch: 125%;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.035em;
  line-height: .94;
  text-wrap: balance;
}
.display em { font-family: var(--serif); font-style: italic; font-weight: 400; font-stretch: 100%; text-transform: none; letter-spacing: -.01em; }
.display em.red { color: var(--red); }

.h2 { font-size: clamp(2rem, 4.4vw, 4.2rem); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-2); max-width: 34em; }
.on-dark .lead { color: var(--on-dark-2); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--ink); border-radius: var(--radius);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: var(--ink); color: #fff; }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-2); border-color: var(--red-2); }
.btn--light { border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--ghost { border-color: var(--line); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--block { width: 100%; justify-content: center; }

.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: clamp(72px, 9vw, 140px); padding-bottom: clamp(72px, 9vw, 140px); }
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px; margin-bottom: clamp(36px, 5vw, 72px); }
.section-head .eyebrow { margin-bottom: 18px; }
.on-dark { background: var(--dark); color: var(--on-dark); }

/* ---------- logo ---------- */
.logo {
  display: inline-grid; grid-template-columns: auto auto; grid-template-rows: auto auto;
  align-items: end; column-gap: 3px; line-height: 1; color: var(--ink);
}
.logo__slash { grid-column: 1; grid-row: 1; width: 13px; height: 9px; background: var(--red); transform: skewX(-28deg); margin-bottom: 11px; }
.logo__rs { grid-column: 2; grid-row: 1; font-size: 30px; font-weight: 900; font-style: italic; font-stretch: 118%; letter-spacing: -.06em; }
.logo__sub { grid-column: 2; grid-row: 2; font-size: 7.5px; font-weight: 600; font-style: italic; letter-spacing: .34em; margin-top: 3px; padding-left: 4px; }
.logo--lg .logo__rs { font-size: 64px; }
.logo--lg .logo__sub { font-size: 15px; margin-top: 6px; }
.logo--lg .logo__slash { width: 26px; height: 18px; margin-bottom: 26px; }
.logo--light { color: #fff; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background .4s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.92); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 40px; padding: 0 var(--gutter); }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a {
  position: relative; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 6px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--red);
  transition: right .4s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { right: 0; }
.nav__cta { height: 42px; }
.nav__burger { display: none; width: 40px; height: 40px; position: relative; margin-left: auto; }
.nav__burger span { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--ink); transition: transform .35s var(--ease), top .35s var(--ease); top: 14px; }
.nav__burger span + span { top: 24px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span + span { top: 19px; transform: rotate(-45deg); }
.nav__mobile { display: none; }

/* ---------- hero ---------- */
.hero { padding-top: var(--nav-h); }
.hero__grid {
  min-height: calc(100vh - var(--nav-h));
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
  padding: 24px 0;
}
.hero__copy { padding-bottom: 0; }
.hero__copy .eyebrow { margin-bottom: clamp(16px, 3vh, 40px); }
/* Flex em coluna: itens flex nao colapsam margem, entao as margens negativas
   que compensam o padding das linhas somam em vez de se anular. */
.hero__title { font-size: clamp(2.8rem, min(8.2vw, 15.5vh), 8.6rem); display: flex; flex-direction: column; }
/* A linha e mascara da animacao (overflow hidden), e o line-height .94 nao deixa
   folga para acentos em caixa alta. O padding abre espaco e a margem negativa
   devolve o espacamento visual entre as linhas. */
.hero__title .line { display: block; overflow: hidden; padding-top: .16em; margin-top: -.16em; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: block; }
.hero__lead { margin-top: clamp(16px, 3vh, 40px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 3.4vh, 32px); }
.hero__media {
  position: relative; justify-self: end;
  height: min(calc(100vh - var(--nav-h) - 48px), 920px); width: auto; max-width: 100%;
  aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--bg-2);
}
.hero__media img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 30%; }
.hero__media .stamp {
  position: absolute; left: 20px; bottom: 20px; padding: 10px 14px;
  background: rgba(12,12,13,.72); color: #fff; backdrop-filter: blur(8px);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  display: flex; gap: 10px; align-items: center; border-radius: var(--radius);
}
.hero__pillars {
  margin-top: clamp(16px, 3vh, 40px);
  display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line);
}
.pillar { padding: 28px 28px 28px 0; border-right: 1px solid var(--line); }
.pillar + .pillar { padding-left: 28px; }
.pillar:last-child { border-right: 0; }
.pillar h3 { font-size: 15px; font-weight: 700; letter-spacing: .02em; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pillar h3::before { content: ""; width: 12px; height: 8px; background: var(--red); transform: skewX(-26deg); flex: none; }
.pillar p { font-size: 15px; color: var(--ink-2); }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; margin-top: clamp(40px, 6vw, 96px); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span {
  font-stretch: 125%; font-weight: 700; text-transform: uppercase; letter-spacing: -.02em;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem); padding: 0 28px; display: inline-flex; align-items: center; gap: 28px; white-space: nowrap;
}
.marquee__track span::after { content: ""; width: 14px; height: 9px; background: var(--red); transform: skewX(-26deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- showcase (horizontal, dark) ---------- */
.show { overflow: hidden; height: 100vh; min-height: 640px; display: flex; flex-direction: column; }
.show__head { flex: none; padding-top: calc(var(--nav-h) + 28px); padding-bottom: 24px; display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.show__head .h2 { font-size: clamp(1.8rem, 3.4vw, 3.2rem); }
.show__count { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.show__track { flex: 1; display: flex; align-items: center; gap: clamp(24px, 3vw, 56px); padding: 0 var(--gutter) 32px; will-change: transform; }
.show__panel { flex: none; display: flex; gap: clamp(20px, 3vw, 44px); align-items: end; }
.show__panel figure { flex: none; height: min(58vh, 640px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--dark-2); }
.show__panel img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.show__panel:hover img { transform: scale(1.04); }
.show__copy { width: min(44vw, 540px); }
.show__idx { font-size: 12px; letter-spacing: .14em; color: var(--on-dark-2); font-variant-numeric: tabular-nums; margin-bottom: 16px; display: block; }
.show__brand { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); font-weight: 600; }
.show__model { font-size: clamp(1.8rem, 3.2vw, 3rem); margin: 8px 0 6px; }
.show__version { color: var(--on-dark-2); font-size: 14px; }
.show__tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.7vw, 1.5rem); margin-top: 16px; color: #fff; max-width: 22em; line-height: 1.3; }
.show__specs { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px 28px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.show__specs div { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); }
.show__specs strong { display: block; font-size: 18px; letter-spacing: -.01em; color: #fff; margin-top: 4px; font-stretch: 112%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.show__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 22px; }
.show__price { font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 700; font-stretch: 112%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.show__price small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); font-weight: 600; font-stretch: 100%; margin-bottom: 4px; }
.show__end { flex: none; width: min(38vw, 440px); align-self: end; display: flex; flex-direction: column; align-items: start; gap: 18px; padding-bottom: 8px; }
.show__end h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }

/* ---------- catalog ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .3s, background .3s, color .3s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.is-active::before { content: ""; width: 10px; height: 7px; background: var(--red); transform: skewX(-26deg); }
.chip small { color: var(--ink-3); font-weight: 500; }
.chip.is-active small { color: rgba(255,255,255,.6); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px) clamp(16px, 2vw, 28px); }
.card { display: block; }
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card__media img { transform: scale(1.045); }
.card__tag {
  position: absolute; top: 14px; left: 14px; padding: 7px 10px; background: #fff; color: var(--ink);
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-radius: var(--radius);
}
.card__tag--red { background: var(--red); color: #fff; }
.card__body { padding-top: 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: start; }
.card__title { grid-column: 1; }
.card__brand { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 4px; }
.card__title strong { font-size: 19px; font-weight: 700; letter-spacing: -.01em; font-stretch: 108%; line-height: 1.15; display: block; }
.card__price { grid-column: 2; grid-row: 1; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; padding-top: 18px; }
.card__meta { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.card__meta .dot { width: 3px; height: 3px; background: var(--ink-3); border-radius: 50%; }
.card.is-hidden { display: none; }

.catalog__more { margin-top: clamp(40px, 5vw, 64px); display: flex; justify-content: center; }

/* ---------- experience ---------- */
.exp__banner { position: relative; aspect-ratio: 21 / 9; overflow: hidden; border-radius: var(--radius); margin-bottom: clamp(40px, 5vw, 72px); background: var(--bg-2); }
.exp__banner img { width: 100%; height: 125%; object-fit: cover; object-position: 50% 60%; }
.exp__banner figcaption {
  position: absolute; left: 24px; bottom: 24px; color: #fff; font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.2vw, 2rem);
  text-shadow: 0 2px 24px rgba(0,0,0,.5);
}
.exp__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.exp__item figure { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); margin-bottom: 20px; }
.exp__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.exp__item:hover img { transform: scale(1.04); }
.exp__item h3 { font-size: 18px; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.exp__item h3::before { content: ""; width: 12px; height: 8px; background: var(--red); transform: skewX(-26deg); flex: none; }
.exp__item p { color: var(--ink-2); font-size: 15px; }

/* ---------- import (story) ---------- */
.story { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.story__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.story__media img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 40%; }
.story__copy .eyebrow { margin-bottom: 22px; }
.story__copy .lead { margin-top: 24px; }
.story__big { margin-top: 36px; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.story__big div { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.story__big strong { display: block; font-size: clamp(1.4rem, 2.2vw, 2rem); font-stretch: 118%; letter-spacing: -.02em; color: var(--ink); margin-top: 6px; font-variant-numeric: tabular-nums; }
.story__actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- provenance ---------- */
.prov { background: var(--bg-2); }
.prov__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.prov__copy { position: sticky; top: calc(var(--nav-h) + 32px); }
.prov__copy .eyebrow { margin-bottom: 22px; }
.prov__list { margin-top: 36px; border-top: 1px solid var(--line); }
.prov__list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.prov__list li i { width: 14px; height: 9px; background: var(--red); transform: skewX(-26deg); display: block; align-self: center; }
.prov__list h3 { font-size: 17px; margin-bottom: 4px; }
.prov__list p { font-size: 15px; color: var(--ink-2); }
.prov__mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.prov__mosaic figure { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: #ddd; }
.prov__mosaic figure:nth-child(2) { margin-top: 64px; }
.prov__mosaic figure:nth-child(3) { margin-top: -64px; }
.prov__mosaic img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA (red) ---------- */
.cta {
  background: var(--red); color: #fff;
  min-height: calc(100vh - var(--footer-h, 300px));
  display: flex; align-items: center;
  padding-top: clamp(40px, 6vh, 96px); padding-bottom: clamp(40px, 6vh, 96px);
}
.cta__grid { width: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.cta .eyebrow { color: rgba(255,255,255,.8); }
.cta .eyebrow::before { background: #fff; }
.cta .h2 { margin-top: 22px; }
.cta .lead { color: rgba(255,255,255,.85); margin-top: 24px; }
.cta__contacts { margin-top: 32px; display: flex; gap: 32px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.cta__contacts div { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; opacity: .8; }
.cta__contacts strong { display: block; font-size: 20px; font-stretch: 108%; letter-spacing: -.01em; margin-top: 4px; }
.form { background: #fff; color: var(--ink); padding: clamp(20px, 2.6vw, 36px); border-radius: var(--radius); display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); }
.form input, .form select {
  height: 46px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 14px; font: inherit; font-size: 15px; color: var(--ink); background: #fff;
  transition: border-color .3s;
}
.form input:focus, .form select:focus { outline: none; border-color: var(--ink); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form small { font-size: 12px; color: var(--ink-3); line-height: 1.5; }

/* ---------- footer ---------- */
.footer { background: var(--dark); color: var(--on-dark); }
.footer__inner { padding: clamp(40px, 5.5vh, 72px) var(--gutter) clamp(28px, 4vh, 48px); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__tag { margin-top: 24px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); font-weight: 600; }
.footer__col h4 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 14px; font-weight: 600; }
.footer__col p { font-size: 15px; line-height: 1.7; }
.footer__col a:hover { color: var(--red); }
/* O padding inferior maior reserva a faixa do botao flutuante do assistente,
   que e fixo no canto e cobriria o credito e o link de direitos. */
.footer__base { border-top: 1px solid var(--line-dark); padding: 18px var(--gutter) 96px; display: flex; justify-content: space-between; align-items: center; gap: 12px 28px; flex-wrap: wrap; font-size: 12px; color: var(--on-dark-2); letter-spacing: .04em; }

/* ---------- credito da autoria no rodape ---------- */
.footer__credit {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--on-dark-2); transition: color .3s;
}
.footer__credit:hover { color: #fff; }
.footer__credit .slash { margin: 0 2px; }
.footer__credit b { font-weight: 800; font-style: italic; letter-spacing: -.02em; color: #fff; font-size: 13px; }
.footer__credit em { font-style: normal; }
.footer__legal { text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
.footer__legal:hover { color: var(--red); }

/* ---------- pagina de direitos ---------- */
.legal { max-width: 62ch; display: grid; gap: clamp(28px, 4vw, 44px); }
.legal section { display: grid; gap: 12px; }
.legal h2 {
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.legal h2::before { content: ""; width: 12px; height: 8px; background: var(--red); transform: skewX(-26deg); flex: none; }
.legal p { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.legal strong { color: var(--ink); font-weight: 700; }
.legal ul { display: grid; gap: 8px; }
.legal li { display: flex; gap: 12px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.legal li::before { content: ""; width: 10px; height: 7px; background: var(--ink); opacity: .25; transform: skewX(-26deg); flex: none; margin-top: 9px; }
.legal__note {
  margin-top: clamp(12px, 2vw, 24px); padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.6; color: var(--ink-3);
}

/* ---------- estoque page ---------- */
.page { padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 96px)); }
.page__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px; margin-bottom: clamp(32px, 4vw, 56px); }
.page__head .eyebrow { margin-bottom: 18px; }
.page__title { font-size: clamp(2.6rem, 6.5vw, 6.4rem); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 48px); }
.sort { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.sort select { height: 38px; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; font: inherit; font-size: 13px; font-weight: 600; background: #fff; color: var(--ink); }
.empty { padding: 80px 0; text-align: center; color: var(--ink-3); }

/* ---------- vehicle page ---------- */
.veh { padding-top: calc(var(--nav-h) + 28px); }
.crumb { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--ink-3); margin-bottom: 28px; }
.crumb a { color: var(--ink); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.crumb a:hover { color: var(--red); }
.veh__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.veh__hero { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); cursor: zoom-in; }
.veh__hero img { width: 100%; height: 100%; object-fit: cover; }
.veh__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.veh__gallery figure { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); cursor: zoom-in; }
.veh__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.veh__gallery figure:hover img { transform: scale(1.04); }

.panel { position: sticky; top: calc(var(--nav-h) + 20px); }
.panel__brand { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.panel__model { font-size: clamp(2rem, 3.6vw, 3.4rem); margin-top: 8px; }
.panel__version { color: var(--ink-2); margin-top: 8px; font-size: 16px; }
.panel__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.panel__tags span { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.panel__tags span.red { background: var(--red); border-color: var(--red); color: #fff; }
.panel__price { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.panel__price strong { font-size: clamp(1.9rem, 2.8vw, 2.5rem); font-stretch: 112%; letter-spacing: -.025em; font-variant-numeric: tabular-nums; line-height: 1; }
.panel__price small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 8px; }
.panel__meta { text-align: right; font-size: 14px; color: var(--ink-2); line-height: 1.6; font-variant-numeric: tabular-nums; }
.stats { margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats div { padding: 16px 14px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats span { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.stats strong { display: block; margin-top: 6px; font-size: 18px; font-stretch: 110%; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.checks { margin-top: 24px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: baseline; font-size: 15px; }
.checks li::before { content: ""; width: 12px; height: 8px; background: var(--red); transform: skewX(-26deg); flex: none; position: relative; top: -1px; }
.panel__actions { margin-top: 28px; display: grid; gap: 10px; }
.panel__note { margin-top: 18px; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.panel__note a { text-decoration: underline; text-underline-offset: 3px; }

.veh__specs { margin-top: clamp(56px, 7vw, 112px); display: grid; grid-template-columns: minmax(0, .35fr) minmax(0, .65fr); gap: clamp(24px, 4vw, 64px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.veh__specs h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.veh__specs .eyebrow { margin-bottom: 16px; }
.speclist { columns: 2; column-gap: 40px; }
.speclist li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); display: flex; gap: 12px; }
.speclist li::before { content: ""; width: 10px; height: 7px; background: var(--ink); transform: skewX(-26deg); flex: none; margin-top: 8px; opacity: .25; }
.related { margin-top: clamp(56px, 7vw, 112px); }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: rgba(8,8,9,.96); width: 100vw; height: 100vh; max-width: none; max-height: none; inset: 0; }
.lightbox::backdrop { background: rgba(8,8,9,.96); }
.lightbox img { position: absolute; inset: 0; margin: auto; max-width: min(92vw, 1400px); max-height: 88vh; object-fit: contain; }
.lightbox__close, .lightbox__nav { position: absolute; z-index: 2; color: #fff; width: 56px; height: 56px; display: grid; place-items: center; font-size: 22px; border-radius: 50%; background: rgba(255,255,255,.08); transition: background .3s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--red); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 12px; letter-spacing: .14em; font-variant-numeric: tabular-nums; }

/* ---------- transitions ---------- */
/* opacity only: a transform here (even identity) would become the containing block for pinned sections */
.app > .view { animation: view-in .6s var(--ease); }
@keyframes view-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- short viewports (13" laptops) ---------- */
@media (max-height: 840px) and (min-width: 901px) {
  .cta { padding-top: 28px; padding-bottom: 28px; }
  .cta .h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); margin-top: 14px; }
  .cta .lead { font-size: 1rem; margin-top: 14px; }
  .cta__contacts { margin-top: 20px; }
  .cta__contacts strong { font-size: 17px; }
  .form { padding: 22px; gap: 10px; }
  .form input, .form select { height: 42px; font-size: 14px; }
  .form__row { gap: 10px; }
  .form small { font-size: 11.5px; }
  .footer__inner { padding: 32px var(--gutter) 24px; gap: 24px; }
  .logo--lg .logo__rs { font-size: 48px; }
  .logo--lg .logo__sub { font-size: 11px; margin-top: 4px; }
  .logo--lg .logo__slash { width: 20px; height: 14px; margin-bottom: 19px; }
  .footer__tag { margin-top: 16px; }
  .footer__col h4 { margin-bottom: 8px; }
  .footer__col p { font-size: 14px; line-height: 1.6; }
  .footer__base { padding: 14px var(--gutter); }
  .show__head { padding-top: calc(var(--nav-h) + 12px); padding-bottom: 16px; }
  .show__head .h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
  .show__panel figure { height: min(56vh, 640px); }
  .show__track { padding-bottom: 24px; }
}

@media (max-height: 720px) and (min-width: 901px) {
  .cta { padding-top: 16px; padding-bottom: 16px; }
  .cta .h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
  .form { padding: 18px; gap: 8px; }
  .form input, .form select { height: 40px; }
  .footer__inner { padding: 24px var(--gutter) 18px; }
  .footer__base { padding: 12px var(--gutter); }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__mobile { display: none; position: fixed; inset: var(--nav-h) 0 0 0; background: #fff; padding: 24px var(--gutter); flex-direction: column; gap: 4px; }
  .nav__mobile.is-open { display: flex; }
  .nav__mobile a { font-size: clamp(2rem, 8vw, 3rem); font-stretch: 118%; font-weight: 700; text-transform: uppercase; letter-spacing: -.03em; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; padding: 12px 0 0; gap: 28px; }
  .hero__title { font-size: clamp(2.6rem, 13.5vw, 4.6rem); }
  .hero__lead { font-size: 1rem; }
  .hero__media { justify-self: stretch; height: auto; width: 100%; aspect-ratio: 4 / 5; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .cta { min-height: 0; display: block; }
  .hero__pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .show { height: auto; min-height: 0; display: block; }
  .show__head { padding-top: clamp(56px, 8vw, 96px); padding-bottom: 32px; }
  .show__track { flex-direction: column; align-items: stretch; padding-bottom: clamp(56px, 8vw, 96px); gap: 56px; }
  .show__panel { flex-direction: column; align-items: stretch; }
  .show__panel figure { height: auto; width: 100%; }
  .show__copy, .show__end { width: auto; }
  .show__end { padding-top: 12px; }
  .exp__grid, .story, .prov__grid, .cta__grid { grid-template-columns: 1fr; }
  .exp__banner { aspect-ratio: 4 / 3; }
  .prov__copy { position: static; }
  .veh__grid { grid-template-columns: 1fr; }
  .panel { position: static; }
  .veh__specs { grid-template-columns: 1fr; }
  .speclist { columns: 1; }
  .section-head, .page__head { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .form__row { grid-template-columns: 1fr; }
  .show__specs { grid-template-columns: 1fr 1fr; }
  .story__big { grid-template-columns: 1fr 1fr; }
  .prov__mosaic figure:nth-child(2) { margin-top: 32px; }
  .prov__mosaic figure:nth-child(3) { margin-top: -32px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .app > .view { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ==========================================================================
   Assistente de estoque — widget de chat
   Mora fora do #app, entao sobrevive as trocas de rota da SPA.
   ========================================================================== */

.chat-launcher {
  position: fixed; right: clamp(16px, 2.5vw, 32px); bottom: clamp(16px, 2.5vw, 32px); z-index: 60;
  display: inline-flex; align-items: center; gap: 12px;
  height: 54px; padding: 0 22px;
  background: var(--red); color: #fff; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(227, 30, 36, .3);
  transition: background .3s var(--ease), transform .3s var(--ease), opacity .3s var(--ease);
}
.chat-launcher:hover { background: var(--red-2); transform: translateY(-2px); }
.chat-launcher i { width: 13px; height: 9px; background: #fff; transform: skewX(-26deg); flex: none; }
.chat-launcher.is-hidden { opacity: 0; pointer-events: none; transform: translateY(8px); }

.chat {
  position: fixed; right: clamp(16px, 2.5vw, 32px); bottom: clamp(16px, 2.5vw, 32px); z-index: 61;
  width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 64px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 24px 60px rgba(12, 12, 13, .22);
  opacity: 0; transform: translateY(12px) scale(.98); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.chat.is-open { opacity: 1; transform: none; pointer-events: auto; }

.chat__head {
  flex: none; display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.chat__head .logo__rs { font-size: 22px; }
.chat__head .logo__sub { font-size: 6px; }
.chat__head .logo__slash { width: 10px; height: 7px; margin-bottom: 8px; }
.chat__titles { display: grid; gap: 2px; margin-right: auto; }
.chat__titles strong { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.chat__titles span { font-size: 11.5px; color: var(--ink-3); }
.chat__close {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  color: var(--ink-2); font-size: 16px; transition: background .3s, color .3s;
}
.chat__close:hover { background: var(--bg-2); color: var(--ink); }

.chat__log {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 18px; display: flex; flex-direction: column; gap: 14px;
  scrollbar-width: thin;
}
.chat__msg { max-width: 88%; font-size: 14.5px; line-height: 1.55; }
.chat__msg p { margin: 0; }
.chat__msg p + p { margin-top: .6em; }
.chat__msg ul { margin: .5em 0 0; padding-left: 0; display: grid; gap: 4px; }
.chat__msg li { display: flex; gap: 9px; }
.chat__msg li::before { content: ""; width: 9px; height: 6px; background: var(--red); transform: skewX(-26deg); flex: none; margin-top: 8px; }
.chat__msg--bot { align-self: flex-start; color: var(--ink); }
.chat__msg--user {
  align-self: flex-end; background: var(--ink); color: #fff;
  padding: 10px 14px; border-radius: 14px 14px 4px 14px;
}
.chat__msg--error { color: var(--red-2); }

.chat__cards { display: grid; gap: 8px; margin-top: 12px; }
.chat__card {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px;
  padding: 8px; border: 1px solid var(--line); border-radius: 4px;
  transition: border-color .3s, background .3s;
}
.chat__card:hover { border-color: var(--ink); background: var(--bg-2); }
.chat__card img { width: 56px; height: 56px; object-fit: cover; border-radius: 3px; background: var(--bg-2); }
.chat__card b { display: block; font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.chat__card small { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.chat__card em {
  font-style: normal; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap;
}

.chat__typing { display: inline-flex; gap: 4px; align-self: flex-start; padding: 4px 0; }
.chat__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: chat-dot 1.2s infinite ease-in-out; }
.chat__typing i:nth-child(2) { animation-delay: .15s; }
.chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 14px; }
.chat__chips button {
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; font-weight: 500; color: var(--ink-2); text-align: left;
  transition: border-color .3s, color .3s;
}
.chat__chips button:hover { border-color: var(--ink); color: var(--ink); }

.chat__form { flex: none; border-top: 1px solid var(--line); padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.chat__form textarea {
  border: 0; resize: none; font: inherit; font-size: 14.5px; color: var(--ink); background: none;
  padding: 10px 4px; max-height: 110px; line-height: 1.45;
}
.chat__form textarea:focus { outline: none; }
.chat__form textarea::placeholder { color: var(--ink-3); }
.chat__send {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 16px; flex: none;
  transition: background .3s, opacity .3s;
}
.chat__send:hover { background: var(--red-2); }
.chat__send[disabled] { opacity: .35; cursor: not-allowed; }
.chat__note { grid-column: 1 / -1; font-size: 11px; color: var(--ink-3); padding: 0 4px 2px; }

@media (max-width: 600px) {
  .chat {
    right: 0; bottom: 0; width: 100vw; height: 100dvh; max-height: none;
    border: 0; border-radius: 0;
  }
  .chat-launcher { height: 50px; padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .chat__typing i { animation: none; }
}
