:root {
  --bg: #F5F6F2;
  --surface: #fff;
  --ink: #0F1B2D;
  --muted: #4A5568;
  --line: #DDE1DA;

  --accent: #D4F546;
  --on-accent: #0F1B2D;
  --gold: #A1C122;

  --green: #0B6B40;
  --hero: #0F1B2D;
  --hero-ink: #fff;
  --hero-muted: #C9D1DC;
  --ph: #DDE3DA;
  --radius: 16px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0B1220;
  --surface: #131C2E;
  --ink: #EEF2F7;
  --muted: #A9B4C4;
  --line: #243049;
  --green: #4ADE9A;
  --hero: #070D18;
  --ph: #1B2740;
  --gold: #D4F546;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1220;
    --surface: #131C2E;
    --ink: #EEF2F7;
    --muted: #A9B4C4;
    --line: #243049;
    --green: #4ADE9A;
    --hero: #070D18;
    --ph: #1B2740;
    --gold: #D4F546;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
body { margin: 0; font-family: "Plus Jakarta Sans", system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.08; margin: 0 0 16px; font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 8px; font-weight: 800; }
h3 { margin: 0 0 6px; font-size: 18px; }

/* ============ TICKER ============ */
.ticker { background: var(--hero); color: var(--hero-muted); font-size: 13px; padding: 6px 24px; display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.ticker b { color: var(--hero-ink); }

/* ============ TOPO ============ */
.topo { background: var(--surface); border-bottom: 1px solid var(--line); }
.topo-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.topo-acoes { display: flex; align-items: center; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 24px; line-height: 1; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo-ico { display: block; flex: none; border-radius: 10px; }
.nav { display: flex; gap: 24px; font-weight: 600; font-size: 15px; }

/* ============ BOTÕES ============ */
.btn, .btn-tema {
  font: inherit; font-weight: 800; min-height: 44px; padding: 0 20px; border-radius: 10px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  text-decoration: none !important; line-height: 1;
}
.btn-tema { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-icone {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; padding: 0;
  transition: background .2s, border-color .2s;
}
.btn-icone:hover { border-color: var(--muted); }
.btn-icone svg { display: block; }

/* ============ HERO ============ */
.hero { background: var(--hero); color: var(--hero-ink); }
.hero-in { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero-txt { flex: 1 1 480px; }
.hero-txt p { color: var(--hero-muted); font-size: 18px; max-width: 520px; }
.hero-txt .eyebrow { margin: 0 0 12px; color: var(--accent); font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.hero-txt .hero-sub { margin: 20px 0 28px; }

.busca { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--surface); color: var(--ink); padding: 16px; border-radius: var(--radius); margin-top: 24px; }
label { display: block; font-size: 13px; font-weight: 600; }
.busca .busca-campo { flex: 2 1 180px; }
.busca .busca-campo--faixa { flex: 1 1 140px; }
input, select { display: block; width: 100%; min-height: 44px; margin-top: 4px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--bg); color: var(--ink); }

.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.chip { border: 1px solid #3A4A63; border-radius: 99px; padding: 8px 14px; font-size: 14px; color: var(--hero-ink); }
.chip:hover { border-color: var(--accent); text-decoration: none; }

/* ============ CARDS BASE ============ */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pad { padding: 24px; }
.ph { background: var(--ph); color: var(--muted); font-size: 13px; display: flex; align-items: center; justify-content: center; }

/* ============ CARD DE COMPARAÇÃO (hero) ============ */
.comparacao { flex: 1 1 380px; color: var(--ink); padding: 24px; }
.comparacao h2 { font-size: 18px; margin: 0 0 16px; }
.comparacao-tema { margin: -8px 0 14px; font-size: 13px; font-weight: 700; color: var(--muted); }
.comparacao-tema[hidden], .comparacao-resumo[hidden], .comparacao-data[hidden] { display: none; }
.comparacao-fotos { display: flex; gap: 12px; margin-bottom: 16px; }
.comparacao-lado { flex: 1; min-width: 0; margin: 0; }
.comparacao-lado .ph {
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.comparacao-lado .ph img,
.comparacao-lado .ph > div {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.comparacao-lado figcaption { margin-top: 8px; text-align: center; font-size: 15px; font-weight: 800; }
.comparacao-linhas {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px 12px;
  font-size: 15px;
  align-items: center;
}
.comparacao-linhas .muted { text-align: left; }
.comparacao-linhas b { text-align: center; }
.comparacao-linhas .bom { color: var(--green); }
.comparacao-linhas .bom::before { content: "\2713\00a0"; } /* ✓: o destaque não depende só da cor */
.comparacao-resumo { margin: 16px 0 0; font-size: 14px; line-height: 1.5; }
.comparacao-data { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.comparacao-cta { display: flex; width: 100%; margin-top: 16px; }

/* ============ TIRA DE PASSOS ============ */
.passos-tira { background: var(--surface); border-bottom: 1px solid var(--line); }
.passos-tira-in { display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between; padding: 18px 24px; font-size: 14px; font-weight: 600; }
.passos-tira-in > span { display: flex; align-items: center; gap: 10px; }
.passo-bola {
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex: none;
}

/* ============ BLOCOS ============ */
.bloco { padding-top: 56px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 20px; }
.bloco-topo { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.bloco-topo h2 { margin: 0; }
.link-forte { font-weight: 800; }

/* ============ MAIS BUSCADOS (Carrossel) ============ */
.mais-buscados { max-width: 1200px; margin: 0 auto; padding: 72px 24px 24px; }

.carrossel-wrapper { position: relative; width: 100%; }

.hscroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hscroll::-webkit-scrollbar { display: none; }

.card-carro { flex: 0 0 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; scroll-snap-align: start; }
.card-carro:hover { border-color: var(--ink); text-decoration: none; }
.card-carro .foto { position: relative; height: 120px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-carro .foto img,
.card-carro .foto > div { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.card-carro .foto svg { width: 130px; height: 74px; }
.card-carro .badge-rank { position: absolute; top: 10px; left: 10px; background: var(--hero); color: var(--accent); font-weight: 800; font-size: 12px; padding: 4px 8px; border-radius: 8px; z-index: 2; }
.card-carro .corpo { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.card-carro .cat { font-size: 11px; font-weight: 800; color: var(--green); text-transform: uppercase; letter-spacing: .06em; }
.card-carro .nome { font-size: 17px; font-weight: 800; }
.card-carro .versao { font-size: 13px; color: var(--muted); }
.card-carro .fipe { margin-top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 12px; color: var(--muted); }
.card-carro .fipe b { font-size: 18px; color: var(--ink); }
.card-carro .extra { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.card-carro .queda { color: var(--green); font-weight: 700; }

/* Botões do Carrossel */
.btn-scroll {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 27, 45, 0.1);
  transition: opacity 0.2s, background 0.2s;
}
.btn-scroll:hover { background: var(--bg); }
.btn-scroll:disabled { opacity: 0; pointer-events: none; }

.btn-prev { left: -22px; }
.btn-next { right: -22px; }

@media (max-width: 1250px) {
  .btn-prev { left: 8px; }
  .btn-next { right: 8px; }
}

/* ============ FILTROS ============ */
.filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-filtro {
  border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
}
.pill-filtro[aria-pressed="true"] { background: var(--hero); color: var(--hero-ink); border-color: var(--hero); }

/* ============ COMPARAÇÕES VS ============ */
.card-vs { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.card-vs .tema { align-self: flex-start; font-size: 11px; font-weight: 800; background: color-mix(in srgb, var(--accent) 35%, var(--surface)); color: var(--ink); padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.card-vs .duelo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.card-vs .lado { border-radius: 12px; height: 92px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-vs .lado img,
.card-vs .lado > div { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.card-vs .lado svg { width: 100px; height: 56px; }
.card-vs .vs { width: 40px; height: 40px; border-radius: 50%; background: var(--hero); color: var(--accent); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.card-vs .valores { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.card-vs .valores b { font-size: 17px; }
.card-vs .valores b:last-child { text-align: right; }
.card-vs .valores .preco { font-size: 15px; font-weight: 700; color: var(--green); }
.card-vs .valores .preco:last-child { text-align: right; color: var(--ink); }
.card-vs .valores .consumo { font-size: 13px; color: var(--muted); }
.card-vs .valores .consumo:last-child { text-align: right; }
.card-vs .valores > :nth-child(even) { text-align: right; } /* carro B sempre alinhado à direita, sob a foto dele */
.card-vs .rodape-vs { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.card-vs .rodape-vs b { color: var(--ink); }
.card-vs .rodape-vs a { background: var(--hero); color: var(--hero-ink); font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 10px; }
.card-vs .rodape-vs a:hover { text-decoration: none; opacity: .9; }

/* ============ PELO BOLSO ============ */
.pelo-bolso { max-width: 1200px; margin: 0 auto; padding: 56px 24px 24px; }
.pelo-bolso-in { background: var(--hero); color: var(--hero-ink); border-radius: 24px; padding: 40px; display: flex; flex-direction: column; gap: 28px; }
.pelo-bolso-in .eyebrow { margin: 0 0 6px; color: var(--accent); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.pelo-bolso-in h2 { margin: 0; font-size: 32px; font-weight: 800; }
.faixas { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.faixa-orcamento { border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px; background: #16243A; color: var(--hero-ink); }
.faixa-orcamento.destaque { background: var(--accent); color: var(--on-accent); }
.faixa-orcamento:hover { text-decoration: none; opacity: .92; }
.faixa-orcamento .pre { font-size: 13px; font-weight: 600; opacity: .8; }
.faixa-orcamento .valor { font-size: 26px; letter-spacing: -.01em; font-weight: 800; }
.faixa-orcamento .qtd { font-size: 13px; font-weight: 600; opacity: .8; }
.chips-cat { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chips-cat .rotulo { font-size: 14px; color: var(--hero-muted); margin-right: 6px; }
.chips-cat .chip-cat { border: 1px solid #2B3A52; color: var(--hero-ink); border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600; }
.chips-cat .chip-cat:hover { border-color: var(--accent); text-decoration: none; }
.chips-cat .chip-marca { background: #16243A; color: var(--hero-ink); border-radius: 10px; padding: 9px 14px; font-size: 14px; font-weight: 700; }
.chips-cat .chip-marca:hover { background: #1D2E48; text-decoration: none; }

/* Correção para os botões da seção "Pelo bolso" (Tags <button> geradas pelo JS) */
.btn-faixa { border: 0; font-family: inherit; text-align: left; cursor: pointer; }
.btn-cat { border: 1px solid #2B3A52; background: transparent; color: var(--hero-ink); border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; transition: border-color 0.2s; }
.btn-cat:hover { border-color: var(--accent); }
.btn-marca { border: 0; background: #16243A; color: var(--hero-ink); border-radius: 10px; padding: 9px 14px; font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer; transition: background 0.2s; }
.btn-marca:hover { background: #1D2E48; }

/* ============ SIMULADOR LARGO ============ */
.sim-largo { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; display: flex; flex-wrap: wrap; overflow: hidden; }
.sim-largo .sim-form { flex: 1 1 340px; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 16px; border-right: 1px solid var(--line); }
.sim-largo .sim-form label { font-size: 13px; font-weight: 700; }
.sim-largo .sim-form input { min-height: 46px; font-size: 16px; }
.sim-largo .sim-form .dica { margin: 0; font-size: 12px; color: var(--muted); }
.sim-largo .sim-saida { flex: 2 1 460px; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 20px; background: color-mix(in srgb, var(--surface) 92%, var(--accent)); }
.sim-largo .sim-topo { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; }
.sim-largo .parcela-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.sim-largo .parcela-valor { font-size: 44px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.sim-largo .totais { font-size: 14px; color: var(--muted); line-height: 1.6; }
.sim-largo .totais b { color: var(--ink); }
.sim-largo .totais .juros { color: #B42318; }
.sim-largo .titulo-prazos { margin: 0 0 10px; font-size: 13px; font-weight: 700; }
.prazos { display: flex; flex-direction: column; gap: 8px; }
.prazo-row {
  display: flex; align-items: center; gap: 14px; width: 100%; border-radius: 12px; padding: 10px 14px; cursor: pointer;
  color: var(--ink); font-family: inherit; background: var(--surface); border: 2px solid var(--line); text-align: left;
}
.prazo-row[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 35%, var(--surface)); border-color: var(--ink); }
.prazo-row .n { width: 44px; font-size: 15px; font-weight: 800; }
.prazo-row .barra { flex: 1 1 auto; height: 10px; background: var(--line); border-radius: 6px; overflow: hidden; display: block; }
.prazo-row .barra > span { display: block; height: 100%; background: var(--muted); border-radius: 6px; }
.prazo-row[aria-pressed="true"] .barra > span { background: var(--hero); }
.prazo-row .valor { width: 110px; text-align: right; font-size: 14px; font-weight: 700; }
.prazo-row .juros { width: 130px; text-align: right; font-size: 13px; color: var(--muted); }
.sim-largo .aviso-sim { margin: 0; font-size: 12px; color: var(--muted); }

/* ============ GUIAS ESTILO REVISTA ============ */
.guias-revista { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 20px; 
  align-items: stretch; 
}

.guia-destaque { 
  flex: 3 1 460px; 
  min-width: 0; 
  background: var(--surface); 
  border: 1px solid var(--line); 
  border-radius: 20px; 
  overflow: hidden; 
  display: flex; 
  flex-direction: column; 
}
.guia-destaque:hover { border-color: var(--ink); text-decoration: none; }

.guia-destaque .capa { 
  flex: 1; 
  min-height: 280px;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  overflow: hidden; 
  font-size: 0; 
  color: transparent; 
}
.guia-destaque .capa img,
.guia-destaque .capa > div { width: 100%; height: 100%; object-fit: cover; display: block; }
.guia-destaque .capa svg { width: 260px; height: 146px; }

.guia-destaque .texto { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.guia-destaque .texto h3 { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.2; }
.guia-destaque .texto p { margin: 0; color: var(--muted); font-size: 15px; }

.lista-guias { 
  flex: 2 1 340px; 
  min-width: 0; 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
}

.guia-linha { 
  background: var(--surface); 
  border: 1px solid var(--line); 
  border-radius: 16px; 
  padding: 14px; 
  display: flex; 
  gap: 14px; 
  align-items: center; 
  flex: 1; 
}
.guia-linha:hover { border-color: var(--ink); text-decoration: none; }
.guia-linha .mini { flex: 0 0 88px; height: 64px; border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 0; color: transparent; }
.guia-linha .mini img,
.guia-linha .mini > div { width: 100%; height: 100%; object-fit: cover; display: block; }
.guia-linha .mini svg { width: 64px; height: 36px; }
.guia-linha .info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.guia-linha .cat { font-size: 11px; font-weight: 800; color: var(--green); text-transform: uppercase; letter-spacing: .06em; }
.guia-linha .titulo { font-size: 15px; line-height: 1.3; font-weight: 700; }

/* ============ ALERTA DE PREÇO ============ */
.alerta-preco { max-width: 1200px; margin: 0 auto; padding: 56px 24px 80px; }
.alerta-preco-in { background: var(--accent); color: var(--on-accent); border-radius: 24px; padding: 40px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; }
.alerta-preco-in h2 { margin: 0 0 8px; font-size: 32px; font-weight: 800; letter-spacing: -.01em; }
.alerta-preco-in p { margin: 0; font-size: 16px; color: color-mix(in srgb, var(--on-accent) 80%, transparent); }
.alerta-form { flex: 1 1 420px; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.alerta-form label { flex: 1 1 160px; font-size: 12px; font-weight: 700; color: var(--on-accent); }
.alerta-form input { height: 48px; border: 0; border-radius: 12px; padding: 0 14px; font-size: 15px; background: var(--surface); color: var(--ink); margin-top: 4px; }
.alerta-form button { align-self: flex-end; height: 48px; border: 0; border-radius: 12px; background: var(--hero); color: var(--hero-ink); font-weight: 800; font-size: 15px; padding: 0 22px; cursor: pointer; }
.alerta-form button:disabled { opacity: .6; cursor: wait; }
.alerta-msg { flex: 1 1 100%; margin: 4px 0 0; font-size: 14px; font-weight: 700; color: var(--on-accent); }
.alerta-msg.erro { color: #9b1c1c; }
.alerta-msg[hidden] { display: none; }

/* ============ COMPARAÇÕES / ARTIGOS (legado) ============ */
.tag, .eyebrow-mini { font-size: 13px; font-weight: 800; color: var(--green); text-transform: uppercase; }
.vazio { grid-column: 1/-1; padding: 24px; }
.ilus svg { display: block; width: 100%; height: auto; }

/* ============ CTA ============ */
.cta { background: var(--hero); color: var(--hero-ink); border-radius: var(--radius); padding: 28px; margin: 40px 0; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.cta p { margin: 0; font-size: 20px; font-weight: 800; }

/* ============ RODAPÉ ============ */
.rodape { background: var(--hero); color: var(--hero-muted); margin-top: 72px; }
.rodape-in { display: flex; gap: 32px; flex-wrap: wrap; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; font-size: 14px; }
.rodape-marca { max-width: 340px; }
.rodape-marca p { margin: 12px 0 0; }
.rodape .logo { color: #fff; font-size: 22px; }
.rodape-nav { display: flex; flex-direction: column; gap: 10px; font-weight: 600; }
.rodape-nav a { color: var(--hero-muted); }
.rodape .aviso { padding-bottom: 32px; margin: 0; font-size: 13px; max-width: 420px; }

/* ============ PÁGINA DO ARTIGO ============ */
:root { --f-serif: "Source Serif 4", Georgia, "Times New Roman", serif; --pill-bg: var(--ink); --pill-ink: var(--accent); --edge: #0F1B2D; }
:root[data-theme="dark"] { --pill-bg: var(--accent); --pill-ink: #0F1B2D; --edge: #3A4A63; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --pill-bg: var(--accent); --pill-ink: #0F1B2D; --edge: #3A4A63; } }
html { scroll-padding-top: 24px; }

.pill { display: inline-block; background: var(--pill-bg); color: var(--pill-ink); border-radius: 6px; padding: 6px 11px; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; line-height: 1.2; }
.art-head { max-width: 1040px; margin: 0 auto; padding: 40px 0 28px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--green); font-weight: 700; }
.art-head h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; margin: 14px 0 18px; max-width: 960px; }
.art-head h1::after { content: ""; display: block; width: 84px; height: 10px; background: var(--accent); margin-top: 18px; border-radius: 2px; }
.art-head .lede { font-family: var(--f-serif); font-size: 21px; line-height: 1.5; color: var(--muted); margin: 0 0 22px; max-width: 780px; }
.meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.meta .autor { color: var(--ink); font-weight: 700; }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.av { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #0F1B2D; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.art-topimg { --c: #FFC93C; max-width: 1040px; margin: 8px auto 40px; border-radius: 24px; overflow: hidden; height: clamp(200px, 32vw, 400px); background: color-mix(in srgb, var(--c) 22%, var(--surface)); font-size: 0; color: transparent; }
.art-topimg img,
.art-topimg > div { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-topimg svg, .rel .thumb svg { display: block; width: 100%; height: 100%; }
.art-topimg svg > rect, .rel .thumb svg > rect { display: none; }
.art-grid { display: grid; grid-template-columns: 220px minmax(0, 680px) 1fr; gap: 48px; max-width: 1040px; margin: 0 auto; padding-bottom: 40px; }
.toc { position: sticky; top: 24px; align-self: start; font-size: 13.5px; }
.toc b { display: block; margin-bottom: 10px; font-size: 13px; }
.toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--line); color: var(--muted); font-weight: 500; }
.toc a:hover { color: var(--ink); text-decoration: none; }
.toc a.on { border-left: 4px solid var(--accent); padding-left: 12px; color: var(--ink); font-weight: 700; }
.prose { font-family: var(--f-serif); font-size: 19px; line-height: 1.7; }
.prose p { margin: 0 0 1.2em; }
.prose h2 { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 27px; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.15; margin: 2em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose h2::before { content: ""; display: block; width: 36px; height: 6px; background: var(--accent); margin-bottom: 10px; border-radius: 2px; }
.prose h3 { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 21px; font-weight: 800; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--green); font-weight: 700; }
.prose p + ul, .prose p + ol { margin-top: -.6em; }
.prose b { font-weight: 700; }
.prose a.ilink, .ilink { color: var(--green); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.callout { background: var(--accent); color: #0F1B2D; border-radius: 14px; padding: 22px 24px; margin: 1.8em 0; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 16px; line-height: 1.6; font-weight: 600; }
.prose .tbl { overflow-x: auto; margin: 0 0 1.5em; border: 3px solid var(--edge); border-radius: 12px; box-shadow: 5px 5px 0 var(--edge); background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; min-width: 460px; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { padding: .65em .8em; text-align: left; border-bottom: 1.5px solid var(--line); vertical-align: top; }
.prose th { background: var(--accent); color: #0F1B2D; font-weight: 800; }
.prose tbody tr:nth-child(even) td { background: var(--bg); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose .cta { font-family: "Plus Jakarta Sans", system-ui, sans-serif; margin: 2.4em 0 1.2em; }
.prose .cta p { margin: 0; }
.acoes-art { font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
.disclaimer { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 2em; }
.author { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; max-width: 680px; margin: 0 auto 56px; padding: 22px; background: var(--surface); border: 2px solid var(--ink); border-radius: 20px; font-size: 14px; }
.author .av { width: 56px; height: 56px; font-size: 24px; }
.author b { font-size: 16px; }
@media (min-width: 1101px) { .author { margin-left: calc(50% - 252px); margin-right: 0; } }
.related { max-width: 1040px; margin: 0 auto; padding-bottom: 24px; }
.sec-title { border-bottom: 4px solid var(--ink); padding-bottom: 12px; margin-bottom: 8px; }
.sec-title h2 { display: inline; text-transform: uppercase; font-size: 28px; background: linear-gradient(transparent 62%, var(--accent) 62%); }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.rel { display: block; color: inherit; }
.rel:hover { text-decoration: none; }
.rel .thumb { --c: #FFC93C; border-radius: 20px; aspect-ratio: 16/10; overflow: hidden; margin-bottom: 12px; background: color-mix(in srgb, var(--c) 22%, var(--surface)); font-size: 0; color: transparent; }
.rel .thumb img,
.rel .thumb > div { width: 100%; height: 100%; object-fit: cover; display: block; }
.rel h3 { font-size: 20px; font-weight: 800; line-height: 1.2; margin: 8px 0 6px; }
.rel:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

/* ============ WIDGETS INTERATIVOS (VERSÃO PREMIUM) ============ */
.widget-container {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  margin: 3em 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.widget-container h3 {
  font-size: 18px;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 24px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Velocímetro */
.widget-velocimetro svg { width: 100%; max-width: 320px; height: auto; display: block; margin: 0 auto; }
.widget-velocimetro .vel-valor { font-size: 36px; font-weight: 800; fill: var(--ink); font-family: "Plus Jakarta Sans", sans-serif; }
.widget-velocimetro .vel-label { font-size: 14px; fill: var(--muted); font-family: "Plus Jakarta Sans", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* Slider de Combustível */
.widget-combustivel { width: 100%; }
.widget-combustivel .label-slider { display: flex; justify-content: space-between; align-items: center; width: 100%; font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.widget-combustivel .label-slider b { color: var(--ink); font-size: 18px; }
.widget-combustivel input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; margin-bottom: 32px; }
.widget-combustivel input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 24px; width: 24px; border-radius: 50%; background: var(--accent); cursor: pointer; margin-top: -9px; border: 3px solid var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.widget-combustivel input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 8px; cursor: pointer; background: var(--line); border-radius: 4px; }

.custo-barras { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.custo-barra { display: flex; align-items: center; gap: 16px; font-size: 15px; font-weight: 600; }
.custo-barra .nome-carro { width: 140px; color: var(--ink); flex: none; }
.custo-barra .barra-fundo { flex: 1; height: 14px; background: var(--line); border-radius: 7px; overflow: hidden; }
.custo-barra .barra-preenchida { height: 100%; border-radius: 7px; transition: width 0.4s ease-out; }
.custo-barra .barra-valor { width: 90px; text-align: right; font-weight: 800; font-size: 16px; color: var(--ink); }

/* Duelo */
.widget-duelo { width: 100%; }
.duelo-linha { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.duelo-linha:first-child { padding-top: 0; }
.duelo-linha:last-child { border-bottom: 0; padding-bottom: 0; }
.duelo-carro { flex: 1; text-align: center; font-weight: 700; font-size: 15px; cursor: pointer; padding: 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); transition: all 0.2s; }
.duelo-carro:hover { border-color: var(--muted); background: var(--bg); }
.duelo-carro.vencedor { background: color-mix(in srgb, var(--accent) 40%, var(--surface)); border-color: var(--ink); }
.duelo-vs { font-size: 11px; font-weight: 800; color: var(--muted); width: 30px; text-align: center; }
.duelo-placar { font-size: 20px; font-weight: 800; text-align: center; margin-top: 24px; padding-top: 20px; border-top: 2px dashed var(--line); color: var(--green); width: 100%; }

/* ============ RESPONSIVO ============ */
@media (max-width: 1100px) {
  .art-grid { grid-template-columns: minmax(0, 680px); justify-content: center; }
  .toc { display: none; }
  .art-topimg { max-width: 680px; }
  .art-head { max-width: 680px; }
}
@media (max-width: 900px) {
  .rel-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== MOBILE ===== */
/* Regra de ouro: em container flex "column", flex-basis vira ALTURA. Por isso os campos dos formulários usam flex: 0 0 auto aqui. */
@media (max-width: 640px) {
  /* Respiro lateral menor, mais espaço útil */
  .wrap, .mais-buscados, .pelo-bolso, .alerta-preco { padding-left: 16px; padding-right: 16px; }
  .bloco { padding-top: 40px; }
  .mais-buscados { padding-top: 48px; }
  .pelo-bolso { padding-top: 40px; }
  .alerta-preco { padding-top: 40px; padding-bottom: 56px; }
  .rodape { margin-top: 48px; }
  h1 { font-size: 32px; line-height: 1.12; }
  h2 { line-height: 1.2; }
  input, select, textarea { font-size: 16px; } /* evita o zoom automático do iPhone ao tocar no campo */

  /* Ticker */
  .ticker { padding: 8px 12px; gap: 14px; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; font-size: 11px; scrollbar-width: none; }
  .ticker::-webkit-scrollbar { display: none; }
  .ticker span { white-space: nowrap; }

  /* Topo */
  .topo-in { flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 6px; }
  .logo { order: 1; flex: 1; }
  .topo-acoes { order: 2; width: auto; gap: 8px; }
  .topo-acoes .btn { display: none; }
  .nav { order: 3; width: 100%; gap: 22px; overflow-x: auto; white-space: nowrap; padding: 8px 0 12px; justify-content: flex-start; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 0; }

  /* Hero */
  .hero-in { padding-top: 32px; padding-bottom: 40px; gap: 28px; }
  .hero-txt { flex: 1 1 100%; min-width: 0; }
  .hero-txt .eyebrow { font-size: 12px; }
  .hero-txt .hero-sub { font-size: 16px; margin: 14px 0 20px; }
  .busca { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 14px; padding: 16px; margin-top: 20px; }
  .busca .busca-campo, .busca .busca-campo--faixa { flex: 0 0 auto; }
  .busca .btn { width: 100%; min-height: 48px; }
  .chips { gap: 8px; margin-top: 16px; }
  .chip { padding: 9px 13px; font-size: 13px; }

  /* Card "Comparação lado a lado" */
  .comparacao { flex: 1 1 100%; min-width: 0; padding: 18px; }
  .comparacao-fotos { gap: 10px; }
  .comparacao-lado .ph { height: 96px; }
  .comparacao-linhas { grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 14px; }
  .comparacao-linhas .muted { grid-column: 1 / -1; text-align: center; font-size: 12px; margin-top: 8px; }
  .comparacao-linhas b { font-size: 16px; }
  .comparacao-cta { min-height: 48px; padding: 12px 16px; line-height: 1.25; text-align: center; }

  /* Passos */
  .passos-tira-in { padding: 14px 16px; gap: 10px; }

  /* Carrossel: vai até a borda da tela, rola com o dedo e encaixa no card */
  .mais-buscados .bloco-topo { gap: 14px; }
  .filtros { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .filtros::-webkit-scrollbar { display: none; }
  .pill-filtro { flex: none; white-space: nowrap; min-height: 40px; }
  .carrossel-wrapper { margin: 0 -16px; width: auto; }
  .hscroll { padding: 0 16px 12px; gap: 12px; scroll-snap-type: x mandatory; scroll-padding-left: 16px; -webkit-overflow-scrolling: touch; }
  .card-carro { flex: 0 0 min(72vw, 260px); }
  .btn-scroll { display: none; }

  /* Comparações lado a lado (cards) */
  .grid { gap: 16px; }
  .card-vs { padding: 16px; }
  .card-vs .lado { height: 84px; }
  .card-vs .rodape-vs a { min-height: 44px; display: inline-flex; align-items: center; }

  /* Pelo bolso */
  .pelo-bolso-in { padding: 24px 16px; gap: 22px; border-radius: 20px; }
  .pelo-bolso-in h2 { font-size: 26px; }
  .faixas { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
  .faixa-orcamento { padding: 14px; }
  .faixa-orcamento .valor { font-size: 18px; white-space: nowrap; letter-spacing: -.02em; }
  .btn-cat, .btn-marca, .chips-cat .chip-cat, .chips-cat .chip-marca { min-height: 44px; }

  /* Simulador */
  .sim-largo { border-radius: 16px; }
  .sim-largo .sim-form { flex-basis: 100%; padding: 20px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sim-largo .sim-saida { flex-basis: 100%; padding: 20px 16px; gap: 16px; }
  .sim-largo .parcela-valor { font-size: 34px; }
  .sim-largo .sim-topo { gap: 12px; }
  .prazo-row { gap: 10px; padding: 10px 12px; }
  .prazo-row .n { width: 38px; }
  .prazo-row .juros { display: none; }
  .prazo-row .valor { width: auto; min-width: 84px; font-size: 13px; }

  /* Guias */
  .guia-destaque .capa { min-height: 190px; }
  .guia-destaque .texto { padding: 18px; }
  .guia-destaque .texto h3 { font-size: 22px; }
  .guia-linha { padding: 12px; gap: 12px; }
  .guia-linha .mini { flex-basis: 80px; }
  .link-forte { font-size: 15px; }

  /* Alerta de preço */
  .alerta-preco-in { padding: 24px 18px; gap: 18px; border-radius: 20px; }
  .alerta-preco-in h2 { font-size: 26px; line-height: 1.15; }
  .alerta-form { flex: 1 1 100%; flex-direction: column; flex-wrap: nowrap; gap: 12px; }
  .alerta-form label, .alerta-msg { flex: 0 0 auto; }
  .alerta-form input { height: 50px; font-size: 16px; }
  .alerta-form button { align-self: stretch; width: 100%; height: 52px; }

  /* Rodapé */
  .rodape-in { gap: 24px; padding-top: 32px; padding-bottom: 20px; }
  .rodape-marca { max-width: none; flex: 1 1 100%; }
  .rodape-nav a { padding: 3px 0; }
  .rodape .aviso { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }

  /* Artigo */
  .art-head { padding: 24px 0 20px; }
  .art-head h1 { font-size: 30px; line-height: 1.1; }
  .art-head .lede { font-size: 18px; }
  .meta { gap: 4px 12px; }
  .meta .dot { display: none; } /* o ponto ficava sozinho no fim da linha quando a data quebrava */
  .art-topimg { border-radius: 18px; margin-bottom: 28px; height: 210px; }
  .prose { font-size: 17.5px; }
  .prose h2 { font-size: 22px; }
  .prose .tbl { box-shadow: 3px 3px 0 var(--edge); }
  .prose .cta { padding: 20px; }
  .prose .cta .btn { width: 100%; }
  .rel-grid { grid-template-columns: 1fr; gap: 16px; }
  .rel { display: grid; grid-template-columns: 112px 1fr; gap: 0 14px; align-items: start; }
  .rel .thumb { grid-row: span 3; aspect-ratio: 1; border-radius: 14px; margin: 0; }
  .rel h3 { font-size: 17px; margin: 6px 0 2px; }
  .rel .pill { justify-self: start; }
  .author { grid-template-columns: 44px 1fr; padding: 18px; }
  .author .av { width: 44px; height: 44px; font-size: 20px; }
  .sec-title h2 { font-size: 24px; }

  .widget-container { padding: 20px 16px; }
  .custo-barra { gap: 10px; }
  .custo-barra .nome-carro { width: 96px; font-size: 13px; }
  .custo-barra .barra-valor { width: 70px; font-size: 14px; }
  .duelo-carro { font-size: 13px; padding: 10px; }
}

/* Celulares bem estreitos (iPhone SE, 320px) */
@media (max-width: 360px) {
  h1 { font-size: 28px; }
  .logo { font-size: 21px; }
  .sim-largo .parcela-valor { font-size: 30px; }
  .card-carro { flex-basis: 78vw; }
  .comparacao-linhas b { font-size: 15px; }
  .prazo-row .valor { min-width: 76px; }
}

/* Tablet em pé: dá espaço para os cards respirarem */
@media (min-width: 641px) and (max-width: 900px) {
  .hero-in { gap: 36px; }
  .hero-txt, .comparacao { flex-basis: 100%; }
  .alerta-form { flex-basis: 100%; }
  .topo-acoes .btn { display: none; } /* o menu já tem "Comparar"; sem isso o topo quebrava em duas linhas */
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
