/* ==========================================================================
   Authentic Veículos · João Pessoa-PB
   Conceito: "Tá na foto, tá no salão."
   - A página tem a cor do piso do salão (claro). As fotos da loja continuam nela.
   - A logo é a placa preta com a marca laranja que todo carro usa lá dentro.
   - Fotos em pé (3:4), como a loja publica. Um raio só: 12 px.
   - Laranja: o botão principal, a faixa de atendimento, a faixa que corre e a tinta de spray (um trecho por
     tela, no máximo: é o destaque da frase, não enfeite solto).
   - Uma família de letra (Mona Sans): larga e média nos títulos, normal no texto.
   - Movimento: a abertura (a placa encaixa no letreiro e a loja acende), a cena "dá para conferir", o revelar ao
     rolar (data-rev), os números que contam no bloco do Hugo, a faixa que corre e o toque nos botões.
     Tudo para com "movimento reduzido".
   Direção completa em docs/direcao.md. Dados da loja: objeto SITE no main.js.
   ========================================================================== */

@font-face { font-family: "Mona Sans"; font-weight: 400; font-display: swap; src: url(/fonts/mona-400.woff2) format("woff2"); }
@font-face { font-family: "Mona Sans"; font-weight: 600; font-display: swap; src: url(/fonts/mona-600.woff2) format("woff2"); }
@font-face { font-family: "Mona Larga"; font-weight: 500; font-display: swap; src: url(/fonts/mona-larga-500.woff2) format("woff2"); }

:root {
  --piso: #E9E6DF;          /* o piso do salão: fundo da página */
  --piso-2: #DDD9D0;        /* rejunte: fundo de foto carregando */
  --papel: #FBFAF7;         /* superfícies sobre o piso */
  --grafite: #1A1A1C;       /* a placa e a parede da loja */
  --texto: #1A1A1C;
  --suave: #55534E;         /* 6:1 sobre o piso */
  --linha: #CFCBC2;
  --marca: #F0652A;         /* laranja da logo; texto grafite por cima (5,4:1) */
  --marca-forte: #E2561C;
  --sobre-marca: #1A1A1C;
  --claro: #F4F2EC;         /* texto sobre o grafite */
  --claro-suave: #B9B5AC;
  --wa: #0E7A40;
  --ok: #1B7A45;

  --fonte: "Mona Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --larga: "Mona Larga", "Mona Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --raio: 12px;
  --raio-botao: 10px;
  --topo: 60px;
  --largura: 1240px;
  --borda: clamp(16px, 4.4vw, 48px);
  --lado: max(var(--borda), calc((100% - var(--largura)) / 2));
  --secao: clamp(60px, 9.5vw, 116px);
  --sai: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topo) + 8px); scrollbar-color: var(--grafite) var(--piso); accent-color: var(--marca); }
body { margin: 0; background: var(--piso); color: var(--texto); font: 400 1rem/1.55 var(--fonte); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, address, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
::selection { background: var(--marca); color: var(--sobre-marca); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
p { text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; }
.pular-link { position: absolute; left: 12px; top: -80px; z-index: 200; padding: 12px 16px; border-radius: var(--raio-botao); background: var(--grafite); color: var(--claro); }
.pular-link:focus { top: 12px; }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i--cheio { stroke: none; }

h1, h2 { font-family: var(--larga); font-weight: 500; letter-spacing: -0.035em; line-height: 1.03; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 10.6vw, 5.25rem); }
h2 { font-size: clamp(1.75rem, 6.6vw, 3rem); line-height: 1.07; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }

/* ---------- botões: o laranja é só do botão principal ---------- */
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: var(--raio-botao); background: var(--marca); color: var(--sobre-marca); font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; transition: background-color 0.2s var(--sai), color 0.2s var(--sai), transform 0.16s var(--sai); }
.botao:active { transform: scale(0.97); }
.botao--grande { min-height: 58px; padding-inline: 28px; font-size: 1.0625rem; }
.botao--linha { background: none; color: var(--grafite); box-shadow: inset 0 0 0 1.5px var(--grafite); }
@media (hover: hover) {
  .botao:hover { background: var(--marca-forte); }
  .botao--linha:hover { background: var(--grafite); color: var(--claro); }
}

/* aberto ou fechado agora (calculado no fuso da loja) */
.status { display: inline-flex; align-items: center; justify-self: start; gap: 9px; padding: 6px 14px 6px 11px; border-radius: 999px; background: rgba(196, 52, 36, 0.11); color: #9E2416; line-height: 1.3; }
.status i { position: relative; width: 9px; height: 9px; flex: none; border-radius: 50%; background: #D23B2A; }
.status i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #D23B2A; opacity: 0; }
.status b { font-weight: 600; }
.status--aberto { background: rgba(27, 122, 69, 0.13); color: #125C33; }
.status--aberto i { background: #1E9B55; }
.status--aberto i::after { border-color: #1E9B55; }
.status--espera { visibility: hidden; }

/* ---------- topo ---------- */
.topo { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--topo); display: flex; align-items: center; gap: 20px; padding-inline: var(--lado); background: var(--piso); color: var(--texto); border-bottom: 1px solid transparent; transition: background-color 0.25s var(--sai), border-color 0.25s var(--sai), color 0.25s var(--sai); }
.topo--rolou { border-bottom-color: var(--linha); }
.topo__marca { flex: none; width: 112px; transition: opacity 0.25s var(--sai), transform 0.25s var(--sai); }
.topo__marca svg { width: 100%; height: auto; }
.topo__abrir { margin-left: auto; width: 48px; height: 48px; display: grid; place-content: center; gap: 7px; border-radius: 50%; }
.topo__abrir i { display: block; width: 24px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.25s var(--sai); }
.menu-aberto .topo__abrir i:first-of-type { transform: translateY(4.5px) rotate(45deg); }
.menu-aberto .topo__abrir i:last-of-type { transform: translateY(-4.5px) rotate(-45deg); }
.topo__status { display: none; }

@media (max-width: 899px) {
  /* no celular a capa começa atrás do topo: a faixa da loja já mostra a logo, então a placa só entra depois */
  .topo:not(.topo--rolou) { background: transparent; color: #fff; }
  .topo:not(.topo--rolou) .topo__abrir { background: rgba(22, 22, 23, 0.5); }
  .topo:not(.topo--marca) .topo__marca { opacity: 0; transform: translateY(-6px); pointer-events: none; }
  .topo__menu { position: fixed; inset: 0; z-index: -1; display: grid; align-content: center; gap: 2px; padding: calc(var(--topo) + 16px) var(--borda) 40px; background: var(--grafite); color: var(--claro); opacity: 0; visibility: hidden; transition: opacity 0.22s var(--sai), visibility 0s 0.22s; }
  .topo__menu a { padding: 11px 0; font-family: var(--larga); font-weight: 500; font-size: 1.75rem; letter-spacing: -0.035em; line-height: 1.15; text-decoration: none; }
  .topo__menu .topo__menu-wa { margin-top: 20px; padding: 0 22px; min-height: 56px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--raio-botao); background: var(--marca); color: var(--sobre-marca); font-family: var(--fonte); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0; }
  .menu-aberto .topo { background: transparent; color: #fff; border-bottom-color: transparent; }
  .menu-aberto .topo .topo__abrir { background: none; }
  .menu-aberto .topo .topo__marca { opacity: 1; transform: none; pointer-events: auto; }
  .menu-aberto .topo__menu { opacity: 1; visibility: visible; transition: opacity 0.22s var(--sai); }
  .menu-aberto body { overflow: hidden; }
}
@media (min-width: 900px) {
  .topo__abrir { display: none; }
  .topo__status { display: inline-flex; margin-left: auto; font-size: 0.9375rem; }
  .topo__menu { order: 2; display: flex; align-items: center; gap: 28px; }
  .topo__menu a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
  .topo__menu .topo__menu-wa { padding: 0 18px; border-radius: var(--raio-botao); box-shadow: inset 0 0 0 1.5px var(--grafite); transition: background-color 0.2s var(--sai), color 0.2s var(--sai); }
  @media (hover: hover) {
    .topo__menu a:hover { text-decoration: underline; }
    .topo__menu .topo__menu-wa:hover { background: var(--grafite); color: var(--claro); text-decoration: none; }
  }
}

/* ---------- 1. capa ---------- */
.hero { position: relative; display: grid; align-content: start; min-height: 100svh; }
.hero__foto { position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 72svh; overflow: hidden; background: var(--piso); }
.hero__foto picture { display: contents; }
/* a foto se dissolve no piso da página: o chão do salão vira o chão do site */
.hero__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; -webkit-mask-image: linear-gradient(#000 84%, transparent 99.5%); mask-image: linear-gradient(#000 84%, transparent 99.5%); }
.hero__texto { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 14px; margin-top: -22px; padding: 0 var(--borda) 44px; }
.hero h1 span { display: block; }
.l { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.l > span { display: block; }
.l--pintada { overflow: visible; }
/* a tinta de spray laranja atrás de uma frase (os filtros estão no sprite do HTML) */
.hero__spray, .pintado { position: relative; isolation: isolate; display: inline-block; color: var(--sobre-marca); }
.hero__spray { justify-self: start; margin: 2px 0 0 2px; padding: 7px 18px 8px; font-family: var(--larga); font-weight: 500; font-size: clamp(1.125rem, 5.2vw, 1.625rem); letter-spacing: -0.035em; line-height: 1.2; rotate: -1.8deg; }
.pintado { padding: 0 0.2em 0.04em; margin-left: -0.06em; }
.spray { position: absolute; z-index: -1; left: -6%; top: -26%; width: 116%; max-width: none; height: 152%; overflow: visible; pointer-events: none; }
.spray__nevoa { opacity: 0.55; }
.hero__sub { max-width: 34ch; margin-top: 4px; font-size: 1.0625rem; color: var(--suave); }
.hero .botao--grande { position: relative; overflow: hidden; width: 100%; margin-top: 6px; }
.hero__provas { display: grid; gap: 0; margin-top: 6px; color: var(--suave); }
.hero__provas { justify-items: start; }
.hero__provas .status { margin: 4px 0 2px; }
.hero__provas a { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 900px) {
  /* no computador a fachada ocupa o lado direito e se dissolve no piso, para o lado do texto */
  .hero { display: block; padding-top: var(--topo); }
  .hero__foto { position: absolute; inset: var(--topo) 0 0 auto; width: 62%; aspect-ratio: auto; max-height: none; }
  .hero__foto img { object-position: 64% 50%; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%); mask-image: linear-gradient(to right, transparent 0, #000 30%); }
  .hero__texto { z-index: 1; width: 50%; min-height: calc(100svh - var(--topo)); align-content: center; margin: 0; gap: 20px; padding: 48px 56px 72px max(var(--borda), calc((100vw - var(--largura)) / 2)); }
  .hero h1 { font-size: clamp(2.75rem, 5.4vw, 5.25rem); }
  .hero__sub { max-width: 30ch; font-size: 1.25rem; }
  .hero .botao--grande { width: auto; }
}

/* ---------- 2. onde fica e quando abre ---------- */
.loja { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: var(--secao) var(--lado); }
.loja__endereco { font-size: clamp(2rem, 8.9vw, 4.75rem); }
.loja__endereco span { display: block; }
.loja__onde { max-width: 40ch; margin: 16px 0 20px; color: var(--suave); font-size: 1.0625rem; }
.horas { margin: 16px 0 24px; border-top: 1px solid var(--linha); max-width: 460px; }
.horas div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--linha); }
.horas dd { color: var(--suave); }
.horas .hoje dt, .horas .hoje dd { font-weight: 600; color: var(--texto); }
.loja .status { margin-bottom: 2px; }
.loja__mapa { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 18px; background: var(--piso-2); box-shadow: 0 0 0 1px var(--linha); }
.loja__mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 900px) {
  .loja { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 72px; }
  .loja__mapa { aspect-ratio: 5 / 4; }
}

/* ---------- 3. estoque ---------- */
.cabeca { display: grid; gap: 12px; max-width: 62ch; margin-bottom: 24px; }
.cabeca p { color: var(--suave); font-size: 1.0625rem; }
.estoque { padding: clamp(36px, 6vw, 84px) var(--lado) var(--secao); }
.filtros { display: grid; gap: 10px; margin-bottom: 22px; }
.filtros__tipos { display: flex; gap: 8px; margin-inline: calc(var(--borda) * -1); padding: 2px var(--borda); overflow-x: auto; scrollbar-width: none; }
.filtros__tipos::-webkit-scrollbar { display: none; }
.filtros__tipos button { flex: none; min-height: 44px; padding: 0 17px; border-radius: 999px; background: var(--papel); box-shadow: inset 0 0 0 1px var(--linha); font-weight: 600; white-space: nowrap; transition: background-color 0.2s var(--sai), color 0.2s var(--sai), transform 0.16s var(--sai); }
.filtros__tipos button:active { transform: scale(0.97); }
.filtros__tipos button[aria-pressed="true"] { background: var(--grafite); color: var(--claro); box-shadow: none; }
.filtros__linha { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
@media (max-width: 359px) { .filtros__linha { grid-template-columns: minmax(0, 1fr); } .ordem select { width: 100%; max-width: none; } }
.busca { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 14px; border-radius: var(--raio-botao); background: var(--papel); box-shadow: inset 0 0 0 1px var(--linha); color: var(--suave); }
.busca:focus-within { box-shadow: inset 0 0 0 2px var(--grafite); }
.busca input { flex: 1; min-width: 0; height: 46px; border: 0; background: none; outline: none; color: var(--texto); }
.busca input::placeholder { color: var(--suave); opacity: 1; }
.ordem select { min-height: 48px; max-width: 46vw; padding: 0 38px 0 14px; border: 0; border-radius: var(--raio-botao); background: var(--papel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; box-shadow: inset 0 0 0 1px var(--linha); -webkit-appearance: none; appearance: none; font-weight: 600; cursor: pointer; }

.grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; }
/* antes de o estoque ser desenhado a lista guarda o lugar: as fotos de baixo não carregam à toa */
.grade:empty { min-height: 2600px; }
.carro { min-width: 0; }
.carro__link { display: grid; align-content: start; gap: 2px; height: 100%; text-decoration: none; transition: transform 0.3s var(--sai); }
.carro__foto { display: block; margin-bottom: 11px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--raio); background: var(--piso-2); }
.carro__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--sai); }
.carro__nome { font-size: 1rem; font-weight: 600; line-height: 1.25; letter-spacing: 0; }
.carro__versao { color: var(--suave); line-height: 1.35; }
.carro__preco { margin-top: 7px; font-family: var(--larga); font-weight: 500; font-size: 1.1875rem; letter-spacing: -0.03em; line-height: 1.2; }
.carro__preco--consulta { font-family: var(--fonte); font-weight: 400; font-size: 1rem; letter-spacing: 0; color: var(--suave); }
.carro__selo { display: flex; align-items: center; gap: 6px; margin-top: 2px; color: var(--suave); line-height: 1.35; }
.carro__selo .i { color: var(--ok); width: 1.05em; height: 1.05em; }
.carro--destaque { grid-column: 1 / -1; }
.carro--destaque .carro__foto { aspect-ratio: 4 / 5; }
.carro--destaque .carro__nome { font-family: var(--larga); font-weight: 500; font-size: 1.625rem; letter-spacing: -0.035em; line-height: 1.1; }
.carro--destaque .carro__versao { font-size: 1.0625rem; }
.carro--destaque .carro__preco { font-size: 1.625rem; }
@media (hover: hover) {
  .carro__link:hover { transform: translateY(-2px); }
  .carro__link:hover .carro__foto img { transform: scale(1.03); }
}
@media (min-width: 700px) {
  .grade { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; }
  .carro--destaque { grid-column: span 2; grid-row: span 2; }
  .carro--destaque .carro__link { grid-template-rows: minmax(0, 1fr); grid-auto-rows: auto; }
  .carro--destaque .carro__foto { aspect-ratio: auto; min-height: 420px; }
}
@media (min-width: 1100px) { .grade { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 22px; } }

.vazio { padding: 28px 0; color: var(--suave); }
.vazio button { font-weight: 600; color: var(--texto); text-decoration: underline; text-underline-offset: 0.22em; min-height: 44px; }
.vendidos { margin-top: 56px; }
.vendidos h3 { margin-bottom: 16px; }
.vendidos ul { display: flex; gap: 12px; margin-inline: calc(var(--borda) * -1); padding-inline: var(--borda); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.vendidos ul::-webkit-scrollbar { display: none; }
.vendidos li { flex: none; width: 136px; scroll-snap-align: start; scroll-margin-left: var(--borda); display: grid; gap: 2px; }
.vendidos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--raio); margin-bottom: 8px; background: var(--piso-2); }
.vendidos b { font-weight: 600; line-height: 1.25; }
.vendidos i { font-style: normal; color: var(--suave); }
.procura { margin-top: 44px; max-width: 52ch; color: var(--suave); }
.procura a { display: inline-flex; align-items: center; min-height: 44px; color: var(--texto); font-weight: 600; }

/* ---------- 4. autêntico é o que dá para conferir ---------- */
.prova { padding-block: var(--secao) 0; }
.prova .cabeca { margin-inline: var(--lado); margin-bottom: 28px; }
/* versão parada (sem JS ou com movimento reduzido): quatro fotos com a legenda embaixo */
.prova__passos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; padding-inline: var(--lado); }
.prova__foto { display: block; overflow: hidden; border-radius: var(--raio); background: var(--piso-2); }
.prova__foto img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.prova__passos p { display: grid; gap: 2px; margin-top: 11px; }
.prova__passos strong { font-family: var(--larga); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.03em; line-height: 1.15; }
.prova__passos p span { color: var(--suave); }
.prova__marcas { display: none; }
.prova__fim { padding: 32px var(--lado) var(--secao); }
@media (min-width: 800px) { .prova__passos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }

/* cena de rolagem: a tela para e as fotos do anúncio passam uma a uma, cada qual com o fato que ela prova */
.com-cena .prova__cena { height: calc(4 * 70svh + 100svh); }
.com-cena .prova__palco { position: sticky; top: 0; height: 100svh; padding: calc(var(--topo) + 14px) var(--lado) 22px; }
.com-cena .prova__passos { position: relative; display: block; height: 100%; padding: 0; }
.com-cena .prova__passos li { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 18px; opacity: 0; visibility: hidden; transition: opacity 0.5s var(--sai), visibility 0s 0.5s; }
.com-cena .prova__passos li.on { opacity: 1; visibility: visible; transition: opacity 0.5s var(--sai); }
.com-cena .prova__foto { min-height: 0; }
.com-cena .prova__foto img { height: 100%; aspect-ratio: auto; transform: scale(1.06); transition: transform 1.4s var(--sai); }
.com-cena .prova__passos li.on .prova__foto img { transform: none; }
.com-cena .prova__passos p { margin: 0 0 38px; padding-right: 64px; gap: 6px; }
.com-cena .prova__passos strong { font-size: clamp(2.25rem, 10.4vw, 4.75rem); letter-spacing: -0.04em; line-height: 1; }
.com-cena .prova__passos p span { font-size: 1.0625rem; max-width: 30ch; }
/* as listras da logo marcam em qual foto a pessoa está */
.com-cena .prova__marcas { position: absolute; left: var(--lado); bottom: 24px; display: flex; gap: 6px; padding-left: 4px; }
.prova__marcas i { width: 8px; height: 24px; background: var(--linha); transform: skewX(-11.7deg); transition: background-color 0.3s var(--sai); }
.prova__marcas i.on { background: var(--marca); }
@media (min-width: 900px) {
  .com-cena .prova__palco { display: grid; align-content: center; padding-block: calc(var(--topo) + 20px) 28px; }
  .com-cena .prova__passos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; height: auto; padding-top: clamp(150px, 23svh, 230px); }
  .com-cena .prova__passos li { position: static; display: block; opacity: 1; visibility: visible; }
  .com-cena .prova__foto { opacity: 0.36; transform: scale(0.955); transform-origin: 50% 100%; transition: opacity 0.5s var(--sai), transform 0.7s var(--sai); }
  .com-cena .prova__foto img { height: auto; aspect-ratio: 3 / 4; max-height: calc(100svh - var(--topo) - 330px); transform: none; }
  .com-cena .prova__passos li.on .prova__foto { opacity: 1; transform: none; }
  .com-cena .prova__passos p { position: absolute; left: 0; top: 0; width: min(100%, 780px); margin: 0; padding: 0; gap: 12px; opacity: 0; transform: translateY(10px); transition: opacity 0.4s var(--sai), transform 0.5s var(--sai); pointer-events: none; }
  .com-cena .prova__passos li.on p { opacity: 1; transform: none; }
  .com-cena .prova__passos p span { font-size: 1.25rem; max-width: none; }
  .com-cena .prova__marcas { left: auto; right: var(--lado); bottom: auto; top: calc(var(--topo) + 44px); }
}

/* ---------- a faixa que corre (a faixa da loja) ---------- */
main { overflow-x: clip; }
.faixa { margin: 0 -4%; padding: 13px 0; background: var(--marca); color: var(--sobre-marca); overflow: hidden; rotate: -1.6deg; }
.faixa__trilho { display: flex; width: max-content; }
.faixa span { display: inline-flex; align-items: center; gap: 18px; padding-right: 18px; font-family: var(--larga); font-weight: 500; font-size: clamp(0.9375rem, 2vw, 1.25rem); letter-spacing: -0.01em; text-transform: uppercase; white-space: nowrap; }
.faixa i { width: 26px; height: 13px; flex: none; transform: skewX(-24deg); background: repeating-linear-gradient(90deg, var(--sobre-marca) 0 4px, transparent 4px 8px); }

/* ---------- Hugo: escuro como a placa ---------- */
.hugo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; padding: var(--secao) var(--lado); background: var(--grafite); color: var(--claro); }
.hugo__foto { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 18px; background: #2A2A2D; }
.hugo__foto picture { display: contents; }
.hugo__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hugo__sobre { color: var(--marca); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.hugo h2 { margin-top: 12px; font-size: clamp(2.375rem, 10.4vw, 4.75rem); line-height: 1.04; }
.hugo h2 .l { padding-bottom: 0.16em; margin-bottom: -0.16em; }
.hugo__fala { max-width: 46ch; margin-top: 20px; color: var(--claro-suave); font-size: 1.0625rem; }
.hugo__numeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 28px 0 30px; padding-top: 22px; border-top: 1px solid rgba(244, 242, 236, 0.18); }
.hugo__numeros dt { font-family: var(--larga); font-weight: 500; font-size: clamp(0.9375rem, 4vw, 1.375rem); letter-spacing: -0.03em; line-height: 1.1; }
.hugo__numeros dt b { display: block; font-weight: 500; font-size: clamp(2.375rem, 11vw, 4.5rem); letter-spacing: -0.055em; line-height: 0.95; color: var(--marca); }
.hugo__numeros dd { margin-top: 8px; color: var(--claro-suave); font-size: 0.875rem; line-height: 1.35; }
.hugo .botao--grande { width: 100%; }
.hugo .botao .i { width: 24px; height: 24px; }
@media (min-width: 900px) {
  .hugo { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: 80px; }
  .hugo .botao--grande { width: auto; }
  .hugo__numeros { gap: 32px; max-width: 640px; }
}

/* ---------- 5. como pagar ---------- */
.pagar { padding: var(--secao) var(--lado); }
.pagar .cabeca { max-width: none; margin-bottom: 32px; }
.pagar h2 { max-width: 19ch; }
.pagar__grade { display: grid; gap: 40px; }
.simulador { display: grid; gap: 18px; padding: 24px 20px 22px; border-radius: 16px; background: var(--papel); }
.campo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; min-width: 0; }
.campo > span:first-child { font-weight: 600; }
.campo__caixa { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 14px; border-radius: var(--raio-botao); background: var(--piso); box-shadow: inset 0 0 0 1px var(--linha); transition: box-shadow 0.15s var(--sai); }
.campo__caixa:focus-within { box-shadow: inset 0 0 0 2px var(--grafite); }
.campo__caixa i { font-style: normal; color: var(--suave); }
.campo__caixa input { flex: 1; width: 100%; min-width: 0; height: 50px; border: 0; background: none; outline: none; font-size: 1.0625rem; }
.campo__caixa input::placeholder { color: var(--suave); opacity: 1; }
.prazos legend { margin-bottom: 7px; padding: 0; font-weight: 600; }
.prazos__lista { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 6px; }
.prazos__lista label { position: relative; display: block; }
.prazos__lista input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.prazos__lista span { display: grid; place-items: center; min-height: 48px; border-radius: var(--raio-botao); background: var(--piso); box-shadow: inset 0 0 0 1px var(--linha); transition: background-color 0.2s var(--sai), color 0.2s var(--sai); }
.prazos__lista input:checked + span { background: var(--grafite); color: var(--claro); box-shadow: none; font-weight: 600; }
.prazos__lista input:focus-visible + span { outline: 2px solid var(--grafite); outline-offset: 2px; }
.simulador__resultado { display: grid; gap: 2px; padding-top: 4px; }
.simulador__resultado span { color: var(--suave); }
.simulador__resultado strong { font-family: var(--larga); font-weight: 500; font-size: clamp(1.875rem, 8vw, 2.625rem); letter-spacing: -0.04em; line-height: 1.05; }
.simulador__nota { color: var(--suave); font-size: 0.875rem; line-height: 1.5; }
.formas__lista { border-top: 1px solid var(--linha); }
.formas__lista div { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--linha); }
.formas__lista dt { font-weight: 600; }
.formas__lista dd { color: var(--suave); }
.troca { display: grid; gap: 16px; margin-top: 40px; }
.troca .campo__caixa { background: var(--papel); }
.troca__dupla { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 10px; }
.troca__acoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.troca__acoes .botao { padding-inline: 10px; }
@media (min-width: 900px) {
  .pagar__grade { grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); align-items: start; gap: 80px; }
  .simulador { padding: 32px 30px 30px; }
}

/* ---------- 6. quem atende: a única região inteira na cor da marca ---------- */
.atende { display: grid; gap: 12px; padding: var(--secao) var(--lado); background: var(--marca); color: var(--sobre-marca); }
.atende p { color: #40200D; font-size: 1.0625rem; }
.atende__lista { display: grid; gap: 12px; margin-top: 22px; }
.atende__pessoa { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 16px; min-height: 92px; padding: 18px 22px; border-radius: 14px; background: var(--grafite); color: var(--claro); text-decoration: none; transition: transform 0.16s var(--sai), background-color 0.2s var(--sai); }
.atende__pessoa:active { transform: scale(0.97); }
.atende__pessoa b { font-family: var(--larga); font-weight: 500; font-size: 1.625rem; letter-spacing: -0.035em; line-height: 1.15; }
.atende__pessoa small { grid-column: 1; font-size: 1rem; color: var(--claro-suave); }
.atende__pessoa svg { grid-column: 2; grid-row: 1 / span 2; width: 34px; height: 34px; color: var(--marca); }
@media (hover: hover) { .atende__pessoa:hover { background: #000; } }
@media (min-width: 700px) { .atende__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; } }

/* ---------- 7. dúvidas ---------- */
.duvidas { padding: var(--secao) var(--lado); }
.duvidas h2 { margin-bottom: 28px; }
.duvidas__lista { max-width: 860px; border-top: 1px solid var(--linha); }
.duvidas details { border-bottom: 1px solid var(--linha); }
.duvidas summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 60px; padding: 16px 0; font-weight: 600; cursor: pointer; list-style: none; }
.duvidas summary::-webkit-details-marker { display: none; }
.duvidas summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform 0.25s var(--sai); }
.duvidas details[open] summary::after { transform: translateY(3px) rotate(225deg); }
.duvidas details p { max-width: 65ch; padding: 0 0 22px; color: var(--suave); }

/* ---------- rodapé ---------- */
.rodape { display: grid; gap: 30px; padding: 60px var(--lado) calc(36px + env(safe-area-inset-bottom)); background: var(--grafite); color: var(--claro); }
.rodape__placa { width: 196px; height: auto; }
.rodape__colunas { display: grid; gap: 20px; color: #CAC6BD; line-height: 1.6; }
.rodape__links { display: grid; gap: 2px; }
.rodape__links a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--claro); text-decoration: none; }
.rodape__links .i--cheio { fill: currentColor; }
.rodape__fim { color: #A6A299; font-size: 0.875rem; }
.credito { justify-self: start; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 0.875rem; color: #A6A299; text-decoration: none; transition: color 0.2s var(--sai); }
.credito__marca { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em; color: var(--claro); }
.credito__marca svg { width: 20px; height: 18px; }
@media (hover: hover) {
  .rodape__links a:hover { text-decoration: underline; }
  .credito:hover { color: var(--claro); }
}
@media (min-width: 800px) {
  .rodape__colunas { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto; gap: 56px; }
}

/* ---------- WhatsApp flutuante ---------- */
.wa-flutuante { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 8px 20px -8px rgba(9, 60, 32, 0.7); transition: transform 0.16s var(--sai); }
.wa-flutuante svg { width: 30px; height: 30px; }
.wa-flutuante::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); opacity: 0; pointer-events: none; }
.progresso { position: fixed; inset: 0 0 auto; z-index: 60; height: 3px; background: var(--marca); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.wa-flutuante:active { transform: scale(0.94); }

/* ---------- ficha do veículo ---------- */
.aberta-ficha, .aberta-ficha body { overflow: hidden; }
.ficha { position: fixed; inset: 0; z-index: 60; background: var(--piso); animation: ficha-entra 0.28s var(--sai); }
.ficha.fechando { animation: ficha-sai 0.22s var(--sai) forwards; }
@keyframes ficha-entra { from { opacity: 0; transform: translateY(18px); } }
@keyframes ficha-sai { to { opacity: 0; transform: translateY(14px); } }
.ficha__painel { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; height: 100vh; height: 100dvh; }
.ficha__topo { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; height: 56px; padding-inline: max(4px, calc(var(--lado) - 12px)); border-bottom: 1px solid var(--linha); }
.ficha__topo h2 { overflow: hidden; font: 600 1rem/1.2 var(--fonte); letter-spacing: 0; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.ficha__icone { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; }
.ficha__icone .i { width: 24px; height: 24px; }
.ficha__rolagem { overflow-y: auto; overscroll-behavior: contain; scrollbar-color: var(--grafite) var(--piso); }
.ficha__grade { display: grid; grid-template-columns: minmax(0, 1fr); }
.ficha__midia { min-width: 0; }
.gal { position: relative; }
.gal__trilho { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gal__trilho::-webkit-scrollbar { display: none; }
.gal__slide { flex: none; display: grid; width: 100%; aspect-ratio: 3 / 4; max-height: 74svh; scroll-snap-align: center; scroll-snap-stop: always; background: var(--piso-2); cursor: zoom-in; }
.gal__slide img { width: 100%; height: 100%; object-fit: contain; }
.gal__conta { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: rgba(22, 22, 23, 0.8); color: #fff; font-size: 0.875rem; pointer-events: none; }
.gal__conta .i { width: 15px; height: 15px; }
.gal__seta { display: none; }
.gal__mini { display: flex; gap: 6px; padding: 8px var(--borda) 4px; overflow-x: auto; scrollbar-width: none; }
.gal__mini::-webkit-scrollbar { display: none; }
.gal__mini button { flex: none; width: 54px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 8px; opacity: 0.5; transition: opacity 0.2s var(--sai); }
.gal__mini button.on { opacity: 1; box-shadow: 0 0 0 2px var(--grafite); }
.gal__mini img { width: 100%; height: 100%; object-fit: cover; }
.ficha__info { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px var(--borda) 4px; }
.ficha__marca { color: var(--suave); }
.ficha__info h3 { margin-top: -14px; font-family: var(--larga); font-weight: 500; font-size: clamp(1.875rem, 8.2vw, 2.75rem); letter-spacing: -0.04em; line-height: 1.04; }
.ficha__versao { margin-top: -10px; color: var(--suave); font-size: 1.0625rem; }
.ficha__preco strong { display: block; font-family: var(--larga); font-weight: 500; font-size: clamp(2rem, 9.4vw, 3rem); letter-spacing: -0.04em; line-height: 1; }
.ficha__preco strong.consulta { font-size: 1.5rem; letter-spacing: -0.03em; }
.ficha__preco small { display: block; margin-top: 8px; color: var(--suave); font-size: 0.875rem; }
.ficha__chaves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; border-top: 1px solid var(--linha); }
.ficha__chaves li { display: grid; padding: 11px 0; border-bottom: 1px solid var(--linha); }
.ficha__chaves small { color: var(--suave); font-size: 0.875rem; }
.ficha__chaves b { font-weight: 600; }
/* "tá na foto": cada fato leva à foto que prova */
.provas { display: grid; gap: 10px; }
.provas h4 { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 600; }
.provas ul { display: flex; flex-wrap: wrap; gap: 8px; }
.provas button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 15px; border-radius: 999px; background: var(--papel); box-shadow: inset 0 0 0 1px var(--linha); font-weight: 600; transition: background-color 0.2s var(--sai), color 0.2s var(--sai), transform 0.16s var(--sai); }
.provas button:active { transform: scale(0.97); }
.provas button.on { background: var(--grafite); color: var(--claro); box-shadow: none; }
.ficha__cta { display: grid; gap: 10px; }
.ficha__cta2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ficha__cta2:has(> :only-child) { grid-template-columns: 1fr; }
.ficha__secao { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 30px var(--borda) 0; }
.ficha__secao h4 { font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.anuncio p { max-width: 60ch; font-size: 1.0625rem; }
.anuncio a { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }
.opcionais { display: grid; gap: 9px 20px; }
.opcionais li { display: flex; align-items: flex-start; gap: 10px; }
.opcionais .i { margin-top: 3px; color: var(--ok); }
.tecnica div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--linha); }
.tecnica div:first-child { border-top: 1px solid var(--linha); }
.tecnica dt { color: var(--suave); }
.tecnica dd { font-weight: 600; text-align: right; }
.semelhantes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
.semelhantes button { display: grid; gap: 2px; width: 100%; text-align: left; }
.semelhantes img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--raio); margin-bottom: 9px; background: var(--piso-2); }
.semelhantes b { font-weight: 600; line-height: 1.25; }
.semelhantes small { font-size: 1rem; color: var(--suave); }
.ficha__fim { height: 40px; }
.ficha__barra { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px var(--lado) calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linha); background: var(--piso); }
.ficha__barra div { min-width: 0; }
.ficha__barra small { display: block; overflow: hidden; color: var(--suave); font-size: 0.875rem; text-overflow: ellipsis; white-space: nowrap; }
.ficha__barra b { font-family: var(--larga); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.03em; white-space: nowrap; }
.ficha__barra b.consulta { font-family: var(--fonte); font-weight: 600; font-size: 1rem; letter-spacing: 0; }
.ficha__barra .botao { flex: none; }
@media (min-width: 560px) { .opcionais { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 700px) { .semelhantes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 900px) {
  .ficha__grade { grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); align-items: start; gap: 56px; padding: 32px var(--lado) 0; }
  .ficha__midia { position: sticky; top: 24px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .gal { order: 2; }
  .gal__trilho { border-radius: var(--raio); }
  .gal__slide { max-height: min(78vh, 860px); }
  .gal__mini { order: 1; flex-direction: column; max-height: min(78vh, 860px); padding: 2px; overflow-y: auto; }
  .gal__mini button { width: 60px; }
  .gal__seta { position: absolute; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; background: var(--piso); color: var(--texto); transition: transform 0.16s var(--sai); }
  .gal__seta--esq { left: 12px; }
  .gal__seta--dir { right: 12px; }
  .gal__seta:active { transform: scale(0.94); }
  .ficha__info { padding: 0 0 8px; }
  .ficha__secao { padding-inline: var(--lado); }
  .ficha__duas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 56px; align-items: start; }
  .ficha__duas .ficha__secao:first-child { padding-right: 0; }
  .ficha__duas .ficha__secao:last-child { padding-left: 0; }
  .ficha__duas .ficha__secao:only-child { grid-column: 1 / -1; padding-inline: var(--lado); }
  .ficha__barra { display: none; }
  .ficha__fim { height: 72px; }
}

/* ---------- fotos em tela cheia ---------- */
.tela { position: fixed; inset: 0; z-index: 80; background: #0D0D0E; color: #fff; }
.tela__trilho { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tela__trilho::-webkit-scrollbar { display: none; }
.tela__trilho > div { flex: none; display: grid; place-items: center; width: 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.tela__trilho img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.tela__conta { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; background: rgba(13, 13, 14, 0.7); }
.tela__fechar, .tela__seta { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.tela__fechar { top: 10px; right: 10px; }
.tela__seta { top: 50%; margin-top: -24px; display: none; }
.tela__seta--esq { left: 14px; }
.tela__seta--dir { right: 14px; }
@media (hover: hover) and (min-width: 900px) { .tela--varias .tela__seta { display: grid; } }

/* ---------- com quem falar ---------- */
.quem { width: 100%; max-width: 100%; margin: auto 0 0; padding: 22px var(--borda) calc(22px + env(safe-area-inset-bottom)); border: 0; border-radius: 20px 20px 0 0; background: var(--piso); color: var(--texto); }
.quem::backdrop { background: rgba(22, 22, 23, 0.6); }
.quem[open] { animation: quem-sobe 0.28s var(--sai); }
@keyframes quem-sobe { from { opacity: 0; transform: translateY(26px); } }
.quem__topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quem__topo h2 { font-size: 1.5rem; letter-spacing: -0.035em; }
.quem__topo button { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; border-radius: 50%; }
.quem__sobre { margin-top: 6px; color: var(--suave); }
.quem__lista { display: grid; gap: 10px; margin-top: 18px; }
.quem__lista a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 76px; padding: 14px 18px 14px 14px; border-radius: 14px; background: var(--grafite); color: var(--claro); text-decoration: none; transition: transform 0.16s var(--sai); }
.quem__lista a:active { transform: scale(0.97); }
.quem__inicial { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--marca); color: var(--sobre-marca); font-family: var(--larga); font-weight: 500; font-size: 1.25rem; }
.quem__lista b { display: block; font-size: 1.125rem; font-weight: 600; line-height: 1.25; }
.quem__lista small { display: block; font-size: 1rem; color: var(--claro-suave); }
.quem__lista svg { width: 28px; height: 28px; color: var(--marca); }
.quem__nota { margin-top: 16px; color: var(--suave); font-size: 0.875rem; }
@media (min-width: 700px) { .quem { width: 460px; margin: auto; padding: 26px; border-radius: 20px; } }

.aviso-flutuante { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 120; padding: 10px 16px; border-radius: 999px; background: var(--grafite); color: var(--claro); font-weight: 600; opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: opacity 0.2s var(--sai), transform 0.2s var(--sai); }
.aviso-flutuante.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- abertura: a placa se monta e pousa no letreiro da fachada ---------- */
.abertura { display: none; }
.com-abertura .abertura { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; animation: abertura-garantia 0.5s 4.4s forwards; }
.abertura__fundo { position: absolute; inset: 0; background: var(--grafite); }
.abertura__placa { position: relative; width: min(74vw, 430px); aspect-ratio: 640 / 204; will-change: transform, opacity; }
.ab { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ab-chapa { animation: ab-chapa 0.36s var(--sai) both; }
.ab-carro { animation: ab-varre 0.62s var(--sai) 0.2s both; }
.ab-nome { animation: ab-varre 0.56s var(--sai) 0.4s both; }
.ab-listras { animation: ab-listras 0.34s steps(6, end) 0.8s both; }
.ab-barra { animation: ab-varre 0.42s var(--sai) 1.02s both; }
.abertura__pular { position: absolute; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); min-height: 48px; padding: 0 18px; color: var(--claro-suave); font-weight: 600; }
@keyframes ab-chapa { from { opacity: 0; transform: scale(0.95); } }
@keyframes ab-varre { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ab-listras { from { clip-path: inset(0 78.7% 0 0); } to { clip-path: inset(0 66.06% 0 0); } }
@keyframes abertura-garantia { to { opacity: 0; visibility: hidden; } }
/* a capa por trás: a foto assenta e o texto sobe quando a placa pousa (em 4 s aparece de qualquer jeito) */
.com-abertura .hero__foto img { transform: scale(1.07); }
.com-abertura .hero__foto { filter: brightness(0.26) saturate(0.55); animation: acende-garantia 0.6s 4.3s forwards; }
.com-abertura.acendeu .hero__foto { animation: acende 1.1s linear forwards; }
.com-abertura.pulou .hero__foto { filter: none; animation: none; }
@keyframes acende { 0% { filter: brightness(0.26) saturate(0.55); } 7% { filter: brightness(1.3) saturate(1.1); } 15% { filter: brightness(0.5) saturate(0.8); } 27% { filter: brightness(1.18) saturate(1.05); } 40% { filter: brightness(0.86) saturate(1); } 100% { filter: brightness(1) saturate(1); } }
@keyframes acende-garantia { to { filter: none; } }
.com-abertura .hero__texto > * { opacity: 0; transform: translateY(16px); animation: hero-sobe 0.7s var(--sai) 4s forwards; }
.com-abertura.abrindo .hero__foto img { transform: none; transition: transform 0.95s cubic-bezier(0.62, 0.02, 0.2, 1); }
/* outro nome de animação de propósito: com o mesmo nome o navegador continua a contagem da de garantia */
.com-abertura.abrindo .hero__texto > * { animation: hero-chega 0.75s var(--sai) 0.95s forwards; }
.com-abertura.abrindo .hero__texto > :nth-child(2) { animation-delay: 1.03s; }
.com-abertura.abrindo .hero__texto > :nth-child(3) { animation-delay: 1.11s; }
.com-abertura.abrindo .hero__texto > :nth-child(4) { animation-delay: 1.19s; }
.com-abertura.abrindo .hero__texto > :nth-child(5) { animation-delay: 1.27s; }
.com-abertura.pulou .hero__foto img { transform: none; transition: none; }
.com-abertura.pulou .hero__texto > * { opacity: 1; transform: none; animation: none; }
@keyframes hero-sobe { to { opacity: 1; transform: none; } }
@keyframes hero-chega { to { opacity: 1; transform: none; } }

/* ---------- movimento: só para quem não pediu "movimento reduzido" ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* status: aberto pulsa em verde, fechado respira em vermelho */
  .status i::after { animation: status-onda 2.8s var(--sai) infinite; }
  .status--aberto i::after { animation-duration: 1.9s; }
  .status:not(.status--aberto) i { animation: status-respira 2.8s ease-in-out infinite; }
  @keyframes status-onda { from { scale: 1; opacity: 0.85; } to { scale: 3.4; opacity: 0; } }
  @keyframes status-respira { 50% { opacity: 0.45; } }

  /* a tinta é passada da esquerda para a direita */
  .spray { clip-path: inset(-30% 106% -30% -8%); }
  .sem-abertura .hero__spray .spray, .com-abertura.pulou .hero__spray .spray { animation: pinta 0.8s 0.5s cubic-bezier(0.3, 0.55, 0.25, 1) forwards; }
  .com-abertura .hero__spray .spray { animation: pinta 0.8s 4.4s cubic-bezier(0.3, 0.55, 0.25, 1) forwards; }
  .com-abertura.abrindo .hero__spray .spray { animation: pinta-depois 0.8s 1.7s cubic-bezier(0.3, 0.55, 0.25, 1) forwards; }
  .pintado .spray { transition: clip-path 0.85s 0.75s cubic-bezier(0.3, 0.55, 0.25, 1); }
  .rev-ok .pintado .spray, html:not(.anima) .pintado .spray { clip-path: inset(-30% -8% -30% -8%); }
  @keyframes pinta { to { clip-path: inset(-30% -8% -30% -8%); } }
  @keyframes pinta-depois { to { clip-path: inset(-30% -8% -30% -8%); } }

  /* capa sem abertura: o título sobe linha por linha */
  .sem-abertura .hero h1 .l > span { animation: linha 0.9s var(--sai) both; }
  .sem-abertura .hero h1 .l:nth-child(2) > span { animation-delay: 0.1s; }
  .sem-abertura .hero__sub, .sem-abertura .hero .botao--grande, .sem-abertura .hero__provas { animation: sobe 0.8s 0.35s var(--sai) both; }
  .sem-abertura .hero .botao--grande { animation-delay: 0.45s; }
  .sem-abertura .hero__provas { animation-delay: 0.55s; }
  @keyframes linha { from { transform: translateY(112%); } }
  @keyframes sobe { from { opacity: 0; translate: 0 18px; } }

  /* um brilho passa pelo botão principal da capa */
  .hero .botao--grande::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 62%); translate: -120% 0; animation: brilho 5s 2.6s var(--sai) infinite; pointer-events: none; }
  @keyframes brilho { 0%, 64% { translate: -120% 0; } 100% { translate: 120% 0; } }

  .faixa__trilho { animation: corre 30s linear infinite; }
  @keyframes corre { to { transform: translateX(-50%); } }
  .wa-flutuante::after { animation: wa-onda 2.8s 1.5s var(--sai) infinite; }
  @keyframes wa-onda { from { scale: 1; opacity: 0.8; } to { scale: 1.75; opacity: 0; } }

  /* revelar ao rolar (a classe "anima" entra pelo main.js; sem ela nada fica escondido) */
  .anima [data-rev] { opacity: 0; translate: 0 30px; transition: opacity 0.8s var(--sai), translate 0.95s var(--sai); }
  .anima [data-rev].rev-ok { opacity: 1; translate: 0 0; }
  .anima [data-rev="linhas"], .anima [data-rev="abre"], .anima [data-rev="lista"], .anima [data-rev="horas"], .anima [data-rev="numeros"] { opacity: 1; translate: none; }
  .anima [data-rev="linhas"] .l > span { transform: translateY(112%); transition: transform 0.95s var(--sai); }
  .anima [data-rev="linhas"] .l:nth-child(2) > span { transition-delay: 0.09s; }
  .anima [data-rev="linhas"] .l:nth-child(3) > span { transition-delay: 0.18s; }
  .anima [data-rev="linhas"].rev-ok .l > span { transform: none; }
  .anima [data-rev="abre"] { clip-path: inset(14% 10% 14% 10% round 18px); transition: clip-path 1.2s var(--sai); }
  .anima [data-rev="abre"].rev-ok { clip-path: inset(0 0 0 0 round 18px); }
  .anima [data-rev="abre"] img { scale: 1.18; transition: scale 1.6s var(--sai); }
  .anima [data-rev="abre"].rev-ok img { scale: 1; }
  .anima [data-rev="lista"] > *, .anima [data-rev="horas"] > *, .anima [data-rev="numeros"] > * { opacity: 0; translate: 0 22px; transition: opacity 0.7s var(--sai), translate 0.85s var(--sai), transform 0.16s var(--sai), background-color 0.2s var(--sai); }
  .anima [data-rev="numeros"] > * { translate: 0 30px; }
  .anima [data-rev].rev-ok > * { opacity: 1; translate: 0 0; }
  .anima [data-rev] > :nth-child(2) { transition-delay: 0.07s, 0.07s, 0s, 0s; }
  .anima [data-rev] > :nth-child(3) { transition-delay: 0.14s, 0.14s, 0s, 0s; }
  .anima [data-rev] > :nth-child(4) { transition-delay: 0.21s, 0.21s, 0s, 0s; }
  .anima [data-rev] > :nth-child(5) { transition-delay: 0.28s, 0.28s, 0s, 0s; }
  .anima [data-rev] > :nth-child(6) { transition-delay: 0.35s, 0.35s, 0s, 0s; }
  .anima [data-rev] > :nth-child(n+7) { transition-delay: 0.42s, 0.42s, 0s, 0s; }

  /* movimento ligado à rolagem, onde o navegador já sabe fazer */
  @supports (animation-timeline: view()) {
    .progresso { animation: progresso linear both; animation-timeline: scroll(root); }
    @keyframes progresso { to { transform: scaleX(1); } }
    /* a fachada anda mais devagar que a página */
    .hero__foto img { animation: capa-anda linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes capa-anda { to { translate: 0 8%; scale: 1.07; } }
    /* os cards do estoque chegam de baixo quando entram na tela */
    .grade > li { animation: card-chega linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    @keyframes card-chega { from { opacity: 0; translate: 0 46px; scale: 0.95; } }
    .hugo__foto img { animation: hugo-anda linear both; animation-timeline: view(); }
    @keyframes hugo-anda { from { translate: 0 -5%; } to { translate: 0 5%; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
