:root {
  --fundo: #f5f7fb;
  --superficie: #ffffff;
  --superficie-2: #eef1f6;
  --borda: #e2e6ee;
  --texto: #0d1420;
  --texto-2: #5b6679;
  --primaria: #2457ff;
  --primaria-2: #1b45d6;
  --primaria-suave: #e8eeff;
  --acento: #7a5cff;
  --ok: #0f9d58;
  --ok-suave: #e2f6ec;
  --oferta: #e5484d;
  --oferta-suave: #fde9ea;
  --zap: #1fae5b;
  --raio: 18px;
  --sombra: 0 1px 2px rgba(13, 20, 32, .04), 0 10px 30px rgba(13, 20, 32, .07);
  --sombra-hover: 0 2px 4px rgba(13, 20, 32, .06), 0 18px 40px rgba(13, 20, 32, .12);
  --hero-1: #2457ff; --hero-2: #7a5cff; --hero-3: #00b3ff;
  color-scheme: light;
}
/* O site público é sempre claro (sem modo escuro automático). */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fundo); color: var(--texto);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr, .pular:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--superficie); padding: 8px 12px; border-radius: 10px; }

/* ── Topo ─────────────────────────────────────────────── */
.topo {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--fundo) 80%, transparent);
  backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.topo.rolou { border-bottom-color: var(--borda); box-shadow: 0 6px 20px rgba(13, 20, 32, .05); }
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; flex: none; }
.marca span:last-child { display: grid; line-height: 1.05; font-size: 15px; }
.marca b { font-weight: 600; font-size: 12px; color: var(--texto-2); }
.marca__icone { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff;
  background: linear-gradient(135deg, var(--hero-1), var(--hero-2)); box-shadow: 0 8px 18px color-mix(in srgb, var(--hero-1) 35%, transparent); }
.busca--topo { margin-left: auto; max-width: 360px; flex: 1; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .25s, transform .25s; }
.topo.rolou .busca--topo { opacity: 1; transform: none; pointer-events: auto; }

/* ── Busca ────────────────────────────────────────────── */
.busca { position: relative; display: flex; align-items: center; }
.busca > svg { position: absolute; left: 14px; color: var(--texto-2); pointer-events: none; }
.busca input {
  width: 100%; min-height: 44px; padding: 0 14px 0 42px; border-radius: 999px;
  border: 1px solid var(--borda); background: var(--superficie); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.busca input:focus { border-color: var(--primaria); box-shadow: 0 0 0 4px var(--primaria-suave); }
.busca--hero { margin-top: 22px; max-width: 640px; }
.busca--hero input { min-height: 58px; font-size: 16px; padding-right: 120px; box-shadow: var(--sombra); border-color: transparent; }
.busca--hero > svg { left: 18px; }
.busca--hero input { padding-left: 48px; }
.busca--hero .botao { position: absolute; right: 6px; min-height: 46px; border-radius: 999px; }

/* ── Hero com movimento ───────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 36px 16px 30px; isolation: isolate; }
.hero__fundo { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__fundo i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; will-change: transform; }
.hero__fundo i:nth-child(1) { width: 420px; height: 420px; background: var(--hero-1); top: -160px; left: -120px; animation: flutuar1 18s ease-in-out infinite; }
.hero__fundo i:nth-child(2) { width: 360px; height: 360px; background: var(--hero-2); top: -80px; right: -140px; animation: flutuar2 22s ease-in-out infinite; }
.hero__fundo i:nth-child(3) { width: 300px; height: 300px; background: var(--hero-3); bottom: -200px; left: 35%; opacity: .3; animation: flutuar3 26s ease-in-out infinite; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--fundo) 55%, transparent), var(--fundo) 92%); }
.hero__conteudo { max-width: 1200px; margin: 0 auto; }
.hero__selo { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; background: color-mix(in srgb, var(--superficie) 75%, transparent); border: 1px solid var(--borda);
  backdrop-filter: blur(8px); animation: subir .6s .05s both; }
.ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: radar 2s infinite; }
.hero h1 { font-size: clamp(30px, 7.5vw, 58px); font-weight: 850; max-width: 15ch; animation: subir .7s .1s both; }
.destaque { background: linear-gradient(100deg, var(--hero-1), var(--hero-2) 50%, var(--hero-3)); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: brilho 8s linear infinite; }
.hero__sub { margin: 12px 0 0; color: var(--texto-2); font-size: clamp(15px, 2.6vw, 18px); animation: subir .7s .18s both; }
.hero__sub strong { color: var(--texto); font-variant-numeric: tabular-nums; }
.busca--hero { animation: subir .7s .26s both; }
.marcas-rapidas { display: flex; gap: 8px; margin: 18px -16px 0; padding: 2px 16px 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; animation: subir .7s .34s both; }
.marcas-rapidas::-webkit-scrollbar { display: none; }
.marcas-rapidas button { flex: none; scroll-snap-align: start; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--borda);
  background: color-mix(in srgb, var(--superficie) 85%, transparent); cursor: pointer; font-size: 14px; font-weight: 600;
  transition: transform .15s, background .15s, border-color .15s, color .15s; }
.marcas-rapidas button small { color: var(--texto-2); font-weight: 500; margin-left: 4px; }
.marcas-rapidas button:hover { transform: translateY(-2px); border-color: var(--primaria); }
.marcas-rapidas button[aria-pressed="true"] { background: var(--primaria); border-color: var(--primaria); color: #fff; }
.marcas-rapidas button[aria-pressed="true"] small { color: rgba(255, 255, 255, .8); }

/* ── Botões ───────────────────────────────────────────── */
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 12px; border: 1px solid transparent; font-weight: 650; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform .12s, background .15s, border-color .15s, box-shadow .15s; }
.botao:active { transform: scale(.97); }
.botao--primario { background: var(--primaria); color: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--primaria) 30%, transparent); }
.botao--primario:hover { background: var(--primaria-2); }
.botao--fantasma { background: var(--superficie); border-color: var(--borda); }
.botao--fantasma:hover { border-color: color-mix(in srgb, var(--primaria) 50%, var(--borda)); }
.botao--cheio { width: 100%; }
.botao-texto { border: 0; background: none; color: var(--primaria); font-weight: 600; cursor: pointer; padding: 4px; }

/* ── Layout ───────────────────────────────────────────── */
/* ao descer até os carros, o topo fixo não cobre o início da lista */
#resultados { scroll-margin-top: 72px; }
.pagina { max-width: 1200px; margin: 0 auto; padding: 8px 16px 64px; display: grid; gap: 24px; }
@media (min-width: 1000px) { .pagina { grid-template-columns: 280px 1fr; align-items: start; } }

/* ── Filtros: gaveta no celular, coluna no desktop ────── */
.filtros { background: var(--superficie); display: flex; flex-direction: column; }
.filtros__cabeca { display: flex; align-items: center; gap: 8px; padding: 16px 18px; border-bottom: 1px solid var(--borda); }
.filtros__cabeca h2 { font-size: 17px; margin-right: auto; }
.fechar { border: 0; background: var(--superficie-2); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; }
.filtros__corpo { padding: 16px 18px; display: grid; gap: 18px; overflow-y: auto; }
.filtros__rodape { padding: 12px 18px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--borda); }
.f-campo { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.f-campo > span, .f-campo legend { font-size: 13px; font-weight: 700; padding: 0; margin-bottom: 0; }
.f-campo legend { margin-bottom: 8px; }
.f-campo select, .f-campo input {
  width: 100%; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--borda);
  background: var(--superficie-2); outline: none; appearance: none; -webkit-appearance: none;
}
.f-campo select { background-image: linear-gradient(45deg, transparent 50%, var(--texto-2) 50%), linear-gradient(135deg, var(--texto-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.f-campo select:focus, .f-campo input:focus { border-color: var(--primaria); box-shadow: 0 0 0 4px var(--primaria-suave); }
.f-duplo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.f-km { position: relative; }
.f-km input { padding-right: 42px; }
.f-km span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--texto-2); pointer-events: none; }
.f-atalhos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.f-atalhos button { border: 1px solid var(--borda); background: transparent; border-radius: 999px; padding: 5px 10px; font-size: 13px; cursor: pointer; }
.f-atalhos button:hover { border-color: var(--primaria); color: var(--primaria); }
.f-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.f-chips label { cursor: pointer; }
.f-chips input { position: absolute; opacity: 0; pointer-events: none; }
.f-chips span { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--borda); font-size: 13px; font-weight: 600; transition: all .15s; }
.f-chips input:checked + span { background: var(--primaria); border-color: var(--primaria); color: #fff; }
.f-chips input:focus-visible + span { box-shadow: 0 0 0 4px var(--primaria-suave); }

@media (max-width: 999px) {
  .filtros { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; max-height: 88dvh; border-radius: 22px 22px 0 0;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, .25); transform: translateY(105%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
  .filtros::before { content: ""; width: 40px; height: 4px; border-radius: 4px; background: var(--borda); margin: 8px auto 0; }
  body.filtros-abertos { overflow: hidden; }
  body.filtros-abertos .filtros { transform: none; }
  .veu { position: fixed; inset: 0; z-index: 40; background: rgba(5, 8, 14, .5); opacity: 0; pointer-events: none; transition: opacity .3s; }
  body.filtros-abertos .veu { opacity: 1; pointer-events: auto; }
}
@media (min-width: 1000px) {
  .filtros { position: sticky; top: 76px; max-height: calc(100vh - 92px); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra); overflow: hidden; }
  .fechar, .filtros__rodape, .veu, .botao--filtros { display: none !important; }
}

/* ── Barra de resultados ──────────────────────────────── */
.barra { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.barra h2 { font-size: 20px; font-variant-numeric: tabular-nums; }
.barra__acoes { display: flex; gap: 8px; }
.botao--filtros { min-height: 40px; padding: 0 14px; }
.contador { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--primaria); color: #fff; font-size: 12px; }
.ordem { min-width: 0; }
.ordem select { max-width: 100%; min-height: 40px; padding: 0 34px 0 12px; border-radius: 12px; border: 1px solid var(--borda); background-color: var(--superficie); appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--texto-2) 50%), linear-gradient(135deg, var(--texto-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.ativos { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ativos:empty { display: none; }
.ativos button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px; border: 0;
  background: var(--primaria-suave); color: var(--primaria); font-size: 13px; font-weight: 600; cursor: pointer; animation: surgir .25s both; }
.ativos button::after { content: "✕"; font-size: 11px; opacity: .7; }

/* ── Cards ────────────────────────────────────────────── */
.grade { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
@media (min-width: 560px) and (max-width: 999px) { .grade { grid-template-columns: repeat(2, 1fr); } }
.carro { position: relative; display: flex; flex-direction: column; background: var(--superficie); border: 1px solid var(--borda);
  border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s; }
/* entra ao aparecer na tela (só quando o JS está ativo; sem JS os cards aparecem normalmente) */
.carro.observado:not(.visivel), .revela.observado:not(.visivel) { opacity: 0; transform: translateY(26px) scale(.98); }
/* "backwards" (e não "both"): ao terminar, o card volta a aceitar a inclinação do hover */
.carro.visivel, .revela.visivel { animation: entrar .7s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 55ms); }
.carro::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) 0%, rgba(255, 255, 255, .18), transparent 45%); }
@media (hover: hover) {
  .carro:hover { --ty: -6px; box-shadow: var(--sombra-hover); border-color: color-mix(in srgb, var(--primaria) 30%, var(--borda)); }
  .carro:hover::after { opacity: 1; }
  .carro:hover .carro__foto img { transform: scale(1.07); }
}
.carro__foto { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background:
  radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--primaria) 14%, transparent), transparent 60%), var(--superficie-2); }
.carro__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .4s; opacity: 0; }
.carro__foto img.ok { opacity: 1; }
.carro__sem-foto { position: absolute; inset: 0; display: grid; place-items: center; color: color-mix(in srgb, var(--texto-2) 60%, transparent); }
.carro__sem-foto svg { width: 56px; height: 56px; stroke-width: 1.2; }
.selos { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.selo { padding: 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; backdrop-filter: blur(6px); }
.selo--novo { background: rgba(255, 255, 255, .92); color: #0d1420; }
.selo--baixou { background: var(--oferta); color: #fff; }
.selo--fipe { background: var(--ok); color: #fff; }
.selo--subiu { background: rgba(255, 255, 255, .92); color: var(--texto-2); }
.carro__antes { color: var(--texto-2); font-size: 12.5px; }
.carro__mudou { color: var(--texto-2); font-size: 12px; margin-top: -2px; }
.carro__fotos { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #fff; background: rgba(0, 0, 0, .55); padding: 3px 8px; border-radius: 999px; }
.carro__fotos svg { width: 14px; height: 14px; }
.carro__corpo { padding: 14px 16px 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; flex: 1; align-content: start; }
.carro__titulo { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.carro__titulo a { text-decoration: none; }
.carro__titulo a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.carro__versao { font-size: 13.5px; color: var(--texto-2); margin-top: -4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carro__dados { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.carro__dados span { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; background: var(--superficie-2); color: var(--texto-2); font-weight: 600; }
.carro__preco { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.carro__preco strong { font-size: 22px; font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.carro__preco s { color: var(--texto-2); font-size: 13px; }
.carro__loja { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--texto-2); margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--borda); }
.carro__loja svg { width: 15px; height: 15px; }
.carro__loja span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* dois botões do mesmo tamanho, sempre dentro do card (o card mede a própria largura) */
.carro { container-type: inline-size; }
.carro__acoes { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding-top: 10px; }
.carro__acoes .botao { min-width: 0; min-height: 42px; padding: 0 10px; gap: 6px; font-size: 14px; line-height: 1.1; }
.carro__acoes .botao > span, .carro__acoes .botao--fantasma { overflow: hidden; text-overflow: ellipsis; }
.botao--zap { background: var(--zap); color: #fff; padding: 0 14px; }
.botao--zap:hover { filter: brightness(1.06); }
.botao--zap svg { flex: none; width: 18px; height: 18px; }
/* card estreito: WhatsApp só com o ícone, "Ver detalhes" fica com mais espaço */
@container (max-width: 250px) {
  .carro__acoes { grid-template-columns: minmax(0, 1fr) 48px; }
  .carro__acoes .botao--zap { padding: 0; }
  .carro__acoes .botao--zap span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* esqueleto */
.carro--esqueleto { pointer-events: none; }
.carro--esqueleto .carro__foto, .carro--esqueleto .linha { background: linear-gradient(90deg, var(--superficie-2) 0%, color-mix(in srgb, var(--superficie-2) 50%, var(--superficie)) 50%, var(--superficie-2) 100%); background-size: 200% 100%; animation: brilho-esq 1.3s linear infinite; }
.linha { height: 14px; border-radius: 7px; }

.vazio { text-align: center; padding: 48px 16px; border: 1px dashed var(--borda); border-radius: var(--raio); color: var(--texto-2); }
.vazio svg { width: 44px; height: 44px; }
.vazio h3 { color: var(--texto); margin: 10px 0 4px; font-size: 18px; }
.vazio p { margin: 0 0 16px; }
.mais { display: flex; justify-content: center; margin-top: 22px; }
#sentinela { height: 1px; }

.rodape { max-width: 1200px; margin: 0 auto; padding: 24px 16px max(32px, env(safe-area-inset-bottom)); border-top: 1px solid var(--borda); color: var(--texto-2); font-size: 13px; }
.rodape p { margin: 0 0 6px; }
.rodape a { color: var(--texto-2); }

/* ── Barra de progresso da rolagem ────────────────────── */
.progresso-rolagem { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--hero-1), var(--hero-2), var(--hero-3)); pointer-events: none; }

/* ── Hero: grade animada e título cinético ────────────── */
.hero__grade { position: absolute; inset: -50% -10% 0; opacity: .35;
  background-image: linear-gradient(color-mix(in srgb, var(--texto) 7%, transparent) 1px, transparent 1px),
                    linear-gradient(90deg, color-mix(in srgb, var(--texto) 7%, transparent) 1px, transparent 1px);
  background-size: 44px 44px; transform: perspective(600px) rotateX(55deg); transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000 10%, transparent 75%); -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 75%);
  animation: grade-andar 6s linear infinite; }
@keyframes grade-andar { to { background-position: 0 44px, 0 0; } }
.cinetico.pronto { animation: none; }
.cinetico .palavra { display: inline-block; font-style: normal; animation: palavra .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--n) * 70ms + .1s); }
.cinetico .destaque .palavra { background: inherit; -webkit-background-clip: text; background-clip: text; }
@keyframes palavra { from { opacity: 0; transform: translateY(.6em) rotate(3deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* atalhos do topo */
.atalhos { display: flex; gap: 8px; margin: 18px -16px 0; padding: 2px 16px 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; animation: subir .7s .34s both; }
.atalhos::-webkit-scrollbar { display: none; }
.atalhos a { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--borda); background: color-mix(in srgb, var(--superficie) 80%, transparent); backdrop-filter: blur(8px);
  text-decoration: none; font-size: 14px; font-weight: 650; transition: transform .2s, border-color .2s, box-shadow .2s; }
.atalhos a:hover { transform: translateY(-2px); border-color: var(--primaria); box-shadow: 0 8px 20px color-mix(in srgb, var(--primaria) 20%, transparent); }

/* marcas com carros (paradas): rolam de lado no celular, quebram linha no computador */
.marcas { max-width: 1200px; margin: 24px auto 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 2px 0 6px; scroll-snap-type: x proximity; animation: subir .7s .4s both; }
.marcas::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .marcas { flex-wrap: wrap; overflow: visible; } }
.marca-chip { flex: none; scroll-snap-align: start; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--borda); background: var(--superficie);
  text-decoration: none; font-weight: 700; font-size: 14px; color: var(--texto); white-space: nowrap; transition: color .2s, border-color .2s, transform .2s; }
.marca-chip small { color: var(--texto-2); font-weight: 600; margin-left: 2px; }
.marca-chip:hover { color: var(--primaria); border-color: var(--primaria); transform: translateY(-2px); }

/* ── Destaques: abaixo da FIPE (carrossel horizontal) ─── */
.destaques { max-width: 1200px; margin: 8px auto 28px; padding: 0 16px; }
.destaques__cabeca { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.destaques__cabeca h2 { font-size: clamp(22px, 4.5vw, 30px); font-weight: 850; }
.sobretitulo { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ok); margin-bottom: 4px; }
.destaques__sub { margin: 4px 0 0; color: var(--texto-2); font-size: 14px; }
.destaques__acoes { display: flex; align-items: center; gap: 6px; flex: none; }
.trilho-seta { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--borda); background: var(--superficie); color: var(--texto);
  font-size: 22px; line-height: 1; cursor: pointer; transition: border-color .2s, color .2s, opacity .2s, transform .15s; }
.trilho-seta:hover:not(:disabled) { border-color: var(--primaria); color: var(--primaria); }
.trilho-seta:active:not(:disabled) { transform: scale(.94); }
.trilho-seta:disabled { opacity: .35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .trilho-seta { display: grid; place-items: center; } }
.trilho-moldura { position: relative; }
/* esmaece a borda direita para indicar que há mais carros */
.trilho-moldura::after { content: ""; position: absolute; top: 0; right: -16px; bottom: 18px; width: 48px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--fundo)); transition: opacity .3s; }
.trilho-moldura.no-fim::after { opacity: 0; }
.trilho-h { display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 290px); gap: 14px; overflow-x: auto; padding: 4px 16px 18px; margin: 0 -16px;
  scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; scroll-behavior: smooth; overscroll-behavior-x: contain; }
.trilho-h::-webkit-scrollbar { display: none; }
.trilho-h .carro { scroll-snap-align: start; }
@media (min-width: 1000px) { .trilho-h { grid-auto-columns: calc((100% - 32px - 42px) / 4); } }
.carro__economia { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; padding: 6px 10px; border-radius: 10px;
  background: var(--ok-suave); color: var(--ok); }
.carro__economia span { color: var(--texto-2); }
.carro__economia b { font-weight: 800; }

/* filtro "só abaixo da FIPE" */
.f-check { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 14px; cursor: pointer; padding: 10px 12px; border-radius: 12px; background: var(--ok-suave); color: var(--ok); }
.f-check input { width: 18px; height: 18px; accent-color: var(--ok); }

/* ── Bloco de SEO ─────────────────────────────────────── */
.seo-bloco { max-width: 1200px; margin: 0 auto 40px; padding: 28px 16px; border-top: 1px solid var(--borda); }
.seo-bloco h2 { font-size: 20px; margin-bottom: 10px; }
.seo-bloco p { color: var(--texto-2); max-width: 80ch; line-height: 1.7; margin: 0 0 20px; }
.seo-bloco__links { display: grid; gap: 20px; }
@media (min-width: 800px) { .seo-bloco__links { grid-template-columns: 1fr 1fr; } }
.seo-bloco h3 { font-size: 14px; margin-bottom: 10px; color: var(--texto-2); text-transform: uppercase; letter-spacing: .06em; }
.nuvem { display: flex; flex-wrap: wrap; gap: 6px; }
.nuvem a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--borda); text-decoration: none; font-size: 13.5px; transition: border-color .2s, color .2s; }
.nuvem a:hover { border-color: var(--primaria); color: var(--primaria); }
.nuvem small { color: var(--texto-2); }
.rodape__marca strong { display: block; color: var(--texto); font-size: 15px; margin-bottom: 4px; }

/* voltar ao topo */
.topo-voltar { position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 35; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--texto); color: var(--fundo); font-size: 20px; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: surgir .3s both; }

/* transição animada entre a lista e a página do carro (navegadores compatíveis) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* ═══ Página inicial: versão mais limpa e profissional ═══════════════════ */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* menu do topo: no computador ao lado da marca; no celular numa segunda linha que rola de lado */
.topo { flex-wrap: wrap; }
.topo__menu { display: flex; gap: 4px; order: 3; width: 100%; margin: 2px -16px -4px; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
.topo__menu::-webkit-scrollbar { display: none; }
.topo__menu a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; text-decoration: none; font-size: 14px;
  font-weight: 600; color: var(--texto-2); white-space: nowrap; transition: color .15s, background .15s; }
.topo__menu a:hover { color: var(--texto); background: var(--superficie-2); }
.topo__menu a.ativo { color: var(--primaria); background: var(--primaria-suave); }
.topo__menu a[data-menu="oportunidades"], .topo__menu a[data-menu-link="oportunidades"] { color: var(--ok); }
.topo__menu a[data-menu="destaque"]::before, .topo__menu a[data-menu-link="destaque"]::before { content: "★"; color: #e0a800; margin-right: 4px; }
.topo__menu a[data-menu="destaque"] .topo__menu-qtd { background: #ffd75e; color: #10204a; }
.topo__menu-qtd[hidden] { display: none !important; }
/* chamada para o particular anunciar o próprio carro */
.topo__menu a.topo__anunciar { color: #fff; background: var(--ok); }
.topo__menu a.topo__anunciar:hover { color: #fff; background: color-mix(in srgb, var(--ok) 85%, #000); }
@media (max-width: 899px) { .topo__menu a.topo__anunciar { order: -1; } }   /* no celular o menu rola: fica em primeiro */

/* filtro Tipo: chip + × para esconder aquele tipo */
.f-dica { font-weight: 500; font-size: 11.5px; color: var(--texto-2); margin-left: 6px; text-transform: none; letter-spacing: 0; }
.f-tipo { display: inline-flex; align-items: stretch; position: relative; }
.f-tipo label { display: inline-flex; }
.f-tipo label span { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; border-right: 0 !important; }
.f-tipo button { display: grid; place-items: center; min-width: 30px; padding: 0 8px; border: 1px solid var(--borda); border-left: 1px dashed var(--borda);
  border-radius: 0 999px 999px 0; background: var(--superficie); color: var(--texto-2); font-size: 16px; line-height: 1; cursor: pointer; }
.f-tipo button:hover { color: var(--erro); background: var(--erro-suave, #fdecec); }
.f-tipo.oculto label span { text-decoration: line-through; opacity: .5; }
.f-tipo.oculto button { color: var(--primaria); font-size: 14px; }
.topo__menu a[data-menu="oportunidades"].ativo { background: var(--ok-suave); }
.topo__menu-qtd { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ok); color: #fff; font-size: 11.5px; font-weight: 800;
  display: inline-grid; place-items: center; }
/* menu numa linha só apenas em telas largas: com Particulares, Anunciar e Entrar ele passa de 1.000 px
   e, em telas menores, empurrava a busca para fora (rolagem lateral). Abaixo disso fica na 2ª linha, com rolagem própria. */
@media (min-width: 1400px) {
  .topo { flex-wrap: nowrap; }
  .topo__menu { order: 0; width: auto; margin: 0 0 0 18px; padding: 0; overflow: visible; }
}
@media (min-width: 900px) and (max-width: 1399px) {
  .topo__menu { margin: 4px 0 -2px; padding: 0 0 2px; }
}
/* no celular o topo ficou mais alto (duas linhas): a rolagem até os carros desconta isso */
#para-revendas { scroll-margin-top: 90px; }   /* não fica escondido atrás do topo fixo */
@media (max-width: 899px) { #resultados, #para-revendas { scroll-margin-top: 112px; } }

/* hero mais calmo: fundo suave, sem grade animada */
.hero { padding: 44px 16px 32px; }
.hero__grade-layout { max-width: 1200px; margin: 0 auto; display: grid; gap: 28px; align-items: center; }
@media (min-width: 1000px) { .hero__grade-layout { grid-template-columns: 1.05fr 1fr; gap: 40px; } .hero { padding: 64px 16px 48px; } }
.hero__conteudo { max-width: none; margin: 0; }
.hero__acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; animation: subir .6s .25s both; }
.hero__acoes .botao { padding: 0 22px; }
@media (max-width: 520px) { .hero__acoes .botao { flex: 1 1 100%; } }
/* mosaico com fotos reais de carros do portal */
.hero__fotos { display: none; }
@media (min-width: 1000px) {
  .hero__fotos { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 380px; animation: subir .7s .15s both; }
  .hero__foto { position: relative; border-radius: 20px; overflow: hidden; background: var(--superficie-2); box-shadow: var(--sombra); text-decoration: none; }
  .hero__foto:first-child { grid-row: span 2; }
  .hero__foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
  .hero__foto:hover img { transform: scale(1.04); }
  .hero__foto span { position: absolute; left: 10px; bottom: 10px; right: 10px; padding: 6px 10px; border-radius: 10px; font-size: 13px; font-weight: 700;
    color: #fff; background: rgba(13, 20, 32, .62); backdrop-filter: blur(6px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* primeira dobra patrocinada: carros das lojas parceiras (também no celular, numa faixa) */
.hero__selo { position: absolute; left: 10px; top: 10px; z-index: 1; max-width: calc(100% - 20px); padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; font-style: normal; color: #10204a; background: #ffd75e; box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 999px) {
  .hero__fotos--patrocinado { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 78%); gap: 10px; overflow-x: auto;
    scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
  .hero__fotos--patrocinado::-webkit-scrollbar { display: none; }
  .hero__fotos--patrocinado .hero__foto { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden;
    scroll-snap-align: start; background: var(--superficie-2); box-shadow: var(--sombra); text-decoration: none; }
  .hero__fotos--patrocinado .hero__foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .hero__fotos--patrocinado .hero__foto span { position: absolute; left: 10px; bottom: 10px; right: 10px; padding: 6px 10px; border-radius: 10px;
    font-size: 13px; font-weight: 700; color: #fff; background: rgba(13, 20, 32, .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.selo--parceira { background: #ffd75e; color: #10204a; }
.hero__fundo i { opacity: .28; animation-duration: 40s !important; }
.hero h1 { font-size: clamp(28px, 6.4vw, 52px); max-width: 20ch; line-height: 1.08; }
.hero__sub { max-width: 56ch; }

/* card de busca estruturada */
.busca-hero { margin-top: 22px; max-width: 980px; display: grid; gap: 12px; padding: 14px; border-radius: 20px;
  background: var(--superficie); border: 1px solid var(--borda); box-shadow: 0 1px 2px rgba(13, 20, 32, .04), 0 18px 50px rgba(13, 20, 32, .10);
  animation: subir .6s .2s both; }
.busca-hero__texto { position: relative; display: flex; align-items: center; }
.busca-hero__texto svg { position: absolute; left: 14px; color: var(--texto-2); pointer-events: none; }
.busca-hero__texto input { width: 100%; min-height: 50px; padding: 0 14px 0 44px; border-radius: 14px; border: 1px solid var(--borda);
  background: var(--superficie-2); font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.busca-hero__texto input:focus { border-color: var(--primaria); background: var(--superficie); box-shadow: 0 0 0 4px var(--primaria-suave); }
.busca-hero__campos { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.busca-hero__campos .bh-campo:last-child { grid-column: 1 / -1; }
@media (min-width: 760px) { .busca-hero__campos { grid-template-columns: repeat(5, minmax(0, 1fr)); } .busca-hero__campos .bh-campo:last-child { grid-column: auto; } }
.bh-campo { display: grid; gap: 4px; min-width: 0; }
.bh-campo span { font-size: 12px; font-weight: 700; color: var(--texto-2); padding-left: 2px; }
.bh-campo select { width: 100%; min-height: 46px; padding: 0 30px 0 12px; border-radius: 12px; border: 1px solid var(--borda); background-color: var(--superficie-2);
  appearance: none; -webkit-appearance: none; cursor: pointer; font-size: 14.5px; outline: none; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, var(--texto-2) 50%), linear-gradient(135deg, var(--texto-2) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.bh-campo select:focus { border-color: var(--primaria); background-color: var(--superficie); box-shadow: 0 0 0 4px var(--primaria-suave); }
.bh-campo select:disabled { opacity: .55; cursor: not-allowed; }
.busca-hero__botao { width: 100%; font-size: 16px; }
.busca-hero__botao svg { width: 20px; height: 20px; }
.botao--grande { min-height: 52px; border-radius: 14px; }
.atalhos { margin-top: 14px; }

/* números reais */
.numeros-portal { max-width: 1200px; margin: 6px auto 0; padding: 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .numeros-portal { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.numeros-portal div { background: var(--superficie); border: 1px solid var(--borda); border-radius: 16px; padding: 14px 16px; display: grid; gap: 2px; }
.numeros-portal strong { font-size: clamp(22px, 5vw, 30px); font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.numeros-portal span { font-size: 13px; color: var(--texto-2); font-weight: 600; }
.numeros-portal div:last-child strong { color: var(--ok); }

.marcas-secao { max-width: 1200px; margin: 18px auto 8px; padding: 0 16px; }
.marcas-secao .marcas { margin-top: 0; }

/* cabeçalho padrão de seção */
.secao-cabeca { margin-bottom: 18px; }
.secao-cabeca h2 { font-size: clamp(22px, 4.5vw, 30px); font-weight: 850; }

.revendas-portal { max-width: 1200px; margin: 0 auto; padding: 40px 16px 8px; }

/* revendas no portal */
.revendas-portal__lista { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.revenda-chip { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--superficie); border: 1px solid var(--borda);
  text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; min-width: 0; }
.revenda-chip:hover { border-color: var(--primaria); transform: translateY(-2px); box-shadow: var(--sombra); }
.revenda-chip__ini { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px;
  background: linear-gradient(135deg, hsl(var(--h) 70% 50%), hsl(calc(var(--h) + 40) 70% 56%)); }
.revenda-chip span:last-child { display: grid; min-width: 0; }
.revenda-chip b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.revenda-chip small { color: var(--texto-2); font-size: 12.5px; }

/* para revendas: o que fazemos e o que oferecemos */
.parceiros { max-width: 1168px; margin: 40px auto 0; padding: 28px 20px; border-radius: 24px; display: grid; gap: 22px;
  color: #fff; background: linear-gradient(135deg, #10204a, #2457ff 70%, #7a5cff); box-shadow: 0 20px 50px rgba(36, 87, 255, .25); }
@media (min-width: 900px) { .parceiros { padding: 40px 44px; gap: 26px; } }
@media (max-width: 1200px) { .parceiros { margin-left: 16px; margin-right: 16px; } }
.parceiros .sobretitulo { color: #a9ffcf; }
.parceiros h2 { font-size: clamp(22px, 4.5vw, 32px); font-weight: 850; margin-bottom: 10px; }
.parceiros__topo { display: grid; gap: 18px; align-items: end; }
@media (min-width: 900px) { .parceiros__topo { grid-template-columns: 1.7fr 1fr; } }
.parceiros__intro { margin: 0; color: rgba(255, 255, 255, .88); max-width: 62ch; line-height: 1.65; font-size: 15.5px; }
.parceiros__intro b { color: #fff; }
.parceiros__acao { display: flex; justify-content: flex-start; }
@media (min-width: 900px) { .parceiros__acao { justify-content: flex-end; } }
.parceiros .botao--primario { background: #fff; color: #10204a; box-shadow: none; }
.parceiros .botao--primario:hover { background: #eef2ff; }
.parceiros__subtitulo { font-size: 16px; font-weight: 800; margin: 0; color: #fff; }
.parceiros__lista { list-style: none; margin: -8px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .parceiros__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .parceiros__lista { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.parceiros__lista li { display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); }
.parceiros__lista b { font-size: 15px; padding-left: 26px; position: relative; }
.parceiros__lista b::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; background: #a9ffcf; color: #10204a; }
.parceiros__lista span { color: rgba(255, 255, 255, .82); font-size: 14px; line-height: 1.55; }
.parceiros__dupla { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .parceiros__dupla { grid-template-columns: 1fr 1.15fr; align-items: start; } }
.parceiros__bloco { display: grid; gap: 8px; padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.parceiros__texto { margin: 0; color: rgba(255, 255, 255, .82); font-size: 14px; }
.parceiros__marcadores { margin: 0; padding-left: 18px; display: grid; gap: 7px; }
.parceiros__marcadores li { color: rgba(255, 255, 255, .9); font-size: 14px; line-height: 1.5; }
.parceiros__marcadores li::marker { color: #a9ffcf; }
.parceiros__plano { display: grid; gap: 12px; padding: 22px; border-radius: 20px; background: #fff; color: #10204a;
  box-shadow: 0 18px 40px rgba(6, 14, 40, .35); }
.parceiros__plano h3 { margin: 0; font-size: clamp(20px, 3.6vw, 24px); font-weight: 850; }
.parceiros__selo { justify-self: start; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #0b7a43; background: #dcfce9; padding: 4px 10px; border-radius: 999px; }
.parceiros__plano ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: item; }
.parceiros__plano li { counter-increment: item; position: relative; padding-left: 36px; min-height: 26px; font-size: 14px; line-height: 1.5; color: #33405e; }
.parceiros__plano li::before { content: counter(item); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #2457ff, #7a5cff); }
.parceiros__plano li b { color: #10204a; }
.parceiros__plano-acao:empty { display: none; }
.parceiros__plano .botao--primario { background: #2457ff; color: #fff; justify-self: start; }
.parceiros__plano .botao--primario:hover { background: #1a46e0; }
.parceiros__passos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; counter-reset: passo; }
.parceiros__passos li { counter-increment: passo; display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .9); }
.parceiros__passos li::before { content: counter(passo); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; background: rgba(255, 255, 255, .18); }
.parceiros__passos li:not(:last-child)::after { content: "→"; margin-left: 10px; color: rgba(255, 255, 255, .5); }
.aviso-config { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .12); border: 1px dashed rgba(255, 255, 255, .5); font-size: 13.5px; color: #fff; }
.aviso-config code { background: rgba(0, 0, 0, .25); color: #fff; }

/* chamada final */
.cta-final { max-width: 760px; margin: 0 auto; padding: 48px 16px 40px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.cta-final h2 { font-size: clamp(22px, 4.5vw, 30px); font-weight: 850; }
.cta-final p { margin: 0 0 6px; color: var(--texto-2); }

/* animações discretas: título só desliza, cards só sobem (sem girar) */
@keyframes palavra { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }
.carro { transform: translateY(var(--ty, 0)); }

/* ── Movimento ────────────────────────────────────────── */
@keyframes entrar { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes subir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes surgir { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes brilho { to { background-position: 200% center; } }
@keyframes brilho-esq { to { background-position: -200% 0; } }
@keyframes radar { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
@keyframes flutuar1 { 50% { transform: translate(120px, 60px) scale(1.15); } }
@keyframes flutuar2 { 50% { transform: translate(-100px, 80px) scale(.9); } }
@keyframes flutuar3 { 50% { transform: translate(-140px, -60px) scale(1.2); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__grade { animation: none !important; }
  .carro.observado:not(.visivel), .revela.observado:not(.visivel) { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}

/* ── Favoritos e "Entrar" ── */
.topo__menu a.topo__entrar { border: 1px solid var(--borda); color: var(--texto); }
.topo__menu a.topo__entrar.logado { color: #d6336c; border-color: color-mix(in srgb, #d6336c 35%, var(--borda)); }
.fav { position: absolute; right: 10px; top: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(13, 20, 32, .18);
  transition: transform .15s; }
.fav:hover { transform: scale(1.08); }
.fav:active { transform: scale(.92); }
.fav svg { width: 22px; height: 22px; fill: none; stroke: #3a4354; stroke-width: 2; stroke-linejoin: round; }
.fav.ativo svg { fill: #e03131; stroke: #e03131; animation: fav-pulo .35s ease; }
.fav:focus-visible { outline: 3px solid var(--primaria); outline-offset: 2px; }
.fav--grande { position: static; flex: none; width: 46px; height: 46px; border: 1px solid var(--borda); box-shadow: none; }
.det-titulo-linha { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
@keyframes fav-pulo { 50% { transform: scale(1.3); } }
.aviso-fav { width: min(420px, calc(100vw - 32px)); border: 0; border-radius: 20px; padding: 28px 24px 22px; text-align: center;
  box-shadow: 0 30px 80px rgba(13, 20, 32, .35); color: var(--texto); background: var(--superficie); }
.aviso-fav::backdrop { background: rgba(13, 20, 32, .5); }
.aviso-fav h2 { font-size: 20px; margin: 6px 0 8px; }
.aviso-fav p { color: var(--texto-2); margin: 0 0 18px; font-size: 15px; }
.aviso-fav__icone { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 26px; color: #e03131; background: #ffe3e3; }
.aviso-fav__botoes { display: grid; gap: 8px; }
.aviso-fav__fechar { position: absolute; right: 12px; top: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; font-size: 24px; cursor: pointer; color: var(--texto-2); }
.toast-fav { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1000; background: #10182a; color: #fff;
  padding: 10px 18px; border-radius: 999px; font-weight: 650; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: opacity .3s; }
.toast-fav.saindo { opacity: 0; }

/* página do carro: Instagram da loja */
.link-insta { color: #c13584 !important; }
.link-insta svg { stroke: #c13584; }
.link-insta b { font-weight: 800; }
