:root {
  --bg: #f4f3ef;
  --card: #ffffff;
  --ink: #0e0e10;
  --ink-2: #3a3a3f;
  --muted: #6d6d73;
  --line: #e3e1db;
  --line-2: #d2cfc6;
  --gold: #d2a93f;
  --gold-2: #b98f26;
  --gold-soft: #f7efd9;
  --ok: #1d8f4e;
  --err: #cf3524;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 14, 16, 0.04), 0 12px 40px -12px rgba(14, 14, 16, 0.14);
  --display: 'Archivo', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* Topo */
.topo {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px clamp(16px, 4vw, 48px);
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.topo-logo img { height: 44px; width: auto; display: block; }
.topo-tag {
  font-family: var(--display); font-stretch: 80%; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 12px; color: var(--muted);
}

/* Layout */
.layout {
  max-width: 1180px; margin: 0 auto;
  padding: clamp(20px, 5vw, 64px) clamp(16px, 4vw, 48px);
  display: grid; gap: clamp(24px, 5vw, 72px);
  grid-template-columns: minmax(0, 1fr);
}
.layout > * { min-width: 0; }
@media (min-width: 960px) {
  .layout { grid-template-columns: 1fr 520px; align-items: start; }
  .hero { position: sticky; top: 110px; }
}

/* Hero */
.eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 6px 10px; border-radius: 999px;
  background: var(--gold-soft); color: #7a5a0e;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.hero h1 {
  font-family: var(--display); font-stretch: 72%; font-weight: 900;
  font-size: clamp(44px, 8vw, 88px); line-height: 0.92; letter-spacing: -0.01em;
  text-transform: uppercase; margin: 0 0 18px;
}
.hero-sub { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); max-width: 46ch; margin: 0 0 28px; }
.beneficios { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.beneficios li { display: flex; gap: 14px; align-items: center; }
.beneficios strong { display: block; font-size: 15px; }
.beneficios small { color: var(--muted); font-size: 13.5px; }
.ico {
  flex: 0 0 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--ink); color: var(--gold); font-size: 18px;
}
.ico-txt { font-family: var(--display); font-weight: 800; font-size: 14px; }
.selos { display: none; }
@media (max-width: 959px) {
  .beneficios { display: none; }
  .selos { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
  .selos span {
    font-size: 12.5px; font-weight: 700; padding: 6px 10px; border-radius: 99px;
    background: var(--ink); color: #fff;
  }
  .topo-logo img { height: 38px; }
  .topo-tag { font-size: 10.5px; text-align: right; max-width: 140px; }
}
@media (max-width: 440px) {
  .grade .chip { font-size: 13.5px; padding: 10px 4px; overflow-wrap: normal; }
}

/* Card / wizard */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); padding: clamp(18px, 3vw, 30px);
  min-height: 460px; scroll-margin-top: 80px;
}
.card-topo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.voltar {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; font-size: 18px; flex: 0 0 auto; transition: background .15s;
}
.voltar:hover { background: var(--bg); }
.voltar[disabled] { visibility: hidden; }
.progresso { flex: 1; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progresso-barra { height: 100%; width: 0; background: var(--gold); border-radius: 99px; transition: width .35s ease; }
.passo-num { font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 28px; text-align: right; }

.resumo-veiculo {
  display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 16px;
}
.resumo-veiculo span {
  font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 99px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink-2);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.passo { animation: entra .28s ease both; }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.passo h2 {
  font-family: var(--display); font-stretch: 85%; font-weight: 800;
  font-size: clamp(24px, 3vw, 30px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.01em;
}
.dica { color: var(--muted); font-size: 14px; margin: -6px 0 14px; }
.rotulo { font-weight: 700; font-size: 14px; margin: 18px 0 8px; }
.dica-fim { margin: 16px 0 0; font-size: 13px; }
.dica-fim a { color: var(--ink); font-weight: 600; }

/* Busca */
.busca {
  display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 50px;
  border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; margin-bottom: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.busca:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(210, 169, 63, .22); }
.busca span { opacity: .55; font-size: 15px; }
.busca input { border: 0; outline: 0; flex: 1; min-width: 0; height: 100%; background: transparent; font-size: 16px; }

/* Grades de escolha */
.grade { display: grid; gap: 8px; }
.grade-marcas { grid-template-columns: repeat(3, 1fr); }
.grade-modelos { grid-template-columns: repeat(2, 1fr); max-height: 420px; overflow-y: auto; padding: 2px; margin: -2px; }
.grade-anos { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 520px) { .grade-marcas { grid-template-columns: repeat(4, 1fr); } .grade-modelos { grid-template-columns: repeat(3, 1fr); } .grade-anos { grid-template-columns: repeat(4, 1fr); } }

.chip {
  min-height: 54px; padding: 10px 8px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; font-weight: 700; font-size: 14.5px; text-align: center; line-height: 1.15;
  transition: border-color .12s, transform .12s, background .12s;
  overflow-wrap: anywhere;
}
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(.97); }
.chip small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; margin-top: 2px; }
.chip-ano { font-family: var(--display); font-stretch: 85%; font-size: 20px; font-weight: 800; }
.chip-ano small { font-family: var(--body); font-size: 11.5px; }
.chip.ativo, .opcao.ativo { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip.ativo small, .opcao.ativo small { color: #cfcfd4; }

.lista { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; padding: 2px; margin: -2px; overscroll-behavior: contain; }
.item {
  text-align: left; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  font-weight: 600; font-size: 14.5px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  transition: border-color .12s;
}
.item::after { content: '›'; color: var(--muted); font-size: 20px; line-height: 1; }
.item:hover { border-color: var(--ink); }
.vazio { color: var(--muted); font-size: 14px; padding: 12px 2px; }
.grade > .vazio, .grade > .erro { grid-column: 1 / -1; }
.link-btn { background: none; border: 0; padding: 14px 0 0; font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* Campos */
.campo { display: block; margin-bottom: 12px; }
.campo > span { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.campo i { font-style: normal; font-weight: 500; color: var(--muted); font-size: 12.5px; margin-left: 4px; }
.campo input, .campo-km {
  width: 100%; height: 52px; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 0 14px;
  background: #fff; font-size: 16px; outline: 0; transition: border-color .15s, box-shadow .15s;
}
.campo input:focus, .campo-km:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(210, 169, 63, .22); }
.campo input.invalido { border-color: var(--err); }
.campo-km { display: flex; align-items: center; padding: 0 14px 0 0; }
.campo-km input { border: 0 !important; box-shadow: none !important; height: 100%; font-weight: 700; font-size: 18px; }
.campo-km em { font-style: normal; color: var(--muted); font-weight: 600; }

.opcoes { display: grid; gap: 8px; }
.opcao {
  text-align: left; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  transition: border-color .12s, background .12s;
}
.opcao strong { display: block; font-size: 15px; }
.opcao small { color: var(--muted); font-size: 13px; }
.opcao:hover { border-color: var(--ink); }

.duas-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.segmento { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.segmento button { border: 0; background: transparent; border-radius: 9px; height: 42px; font-weight: 700; font-size: 14.5px; transition: background .12s; }
.segmento button.ativo { background: var(--ink); color: #fff; }
.segmento button[disabled] { opacity: .35; cursor: not-allowed; }
.segmento-grande button { height: 48px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); margin: 6px 0 4px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); flex: 0 0 auto; }
.consent a { color: inherit; }

/* Botões */
.btn {
  width: 100%; min-height: 54px; border-radius: 12px; border: 1.5px solid transparent; padding: 12px 18px;
  font-weight: 800; font-size: 15.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; text-align: center; transition: transform .1s, filter .15s, background .15s;
}
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn-primario { background: var(--gold); color: #1a1300; margin-top: 18px; }
.btn-primario:hover { filter: brightness(1.05); }
.btn-escuro { background: var(--ink); color: #fff; }
.btn-contorno { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-contorno:hover { border-color: var(--ink); }
.btn-whats { background: #1faa55; color: #fff; }
.intencoes { display: grid; gap: 8px; }
.intencoes .btn-primario { margin-top: 0; }
.erro { color: var(--err); font-size: 13.5px; font-weight: 600; margin: 10px 0 0; }

/* Carregando */
.passo-carregando { display: grid; place-items: center; align-content: center; gap: 18px; min-height: 380px; text-align: center; }
.spinner { width: 56px; height: 56px; border-radius: 50%; border: 5px solid var(--line); border-top-color: var(--gold); animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.carregando-txt { font-weight: 700; font-size: 17px; margin: 0; }

/* Resultado */
.res-topo { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 6px; }
.res-caixa {
  background: var(--ink); color: #fff; border-radius: 16px; padding: 22px 20px; margin: 4px 0 14px;
  position: relative; overflow: hidden;
}
.res-caixa::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 169, 63, .35), transparent 70%);
}
.res-label { font-size: 13px; color: #c9c9ce; margin: 0 0 6px; }
.res-valor {
  font-family: var(--display); font-stretch: 78%; font-weight: 900; line-height: 1;
  font-size: clamp(30px, 8.6vw, 46px); color: var(--gold); margin: 0; letter-spacing: -0.01em;
  position: relative; z-index: 1;
}
.res-valor b { white-space: nowrap; font-weight: inherit; }
.res-valor span { color: #fff; font-size: .55em; font-weight: 700; margin: 0 2px; vertical-align: middle; }
.res-fipe { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #2c2c31; font-size: 13.5px; color: #c9c9ce; }
.res-fipe b { color: #fff; white-space: nowrap; }
.res-carro { font-weight: 700; font-size: 15px; margin: 0 0 2px; }
.res-carro-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.res-nota { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.acoes { display: grid; gap: 8px; margin-top: 16px; }
.acoes .btn-primario { margin-top: 0; }
.aviso {
  background: var(--gold-soft); border: 1px solid #ecdcae; border-radius: 12px; padding: 14px; font-size: 14px; color: #5b430a; margin: 6px 0 12px;
}

/* Fotos */
.foto-card {
  border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; background: #fff;
  transition: border-color .15s, opacity .15s;
}
.foto-card.ok { border-color: var(--ok); }
.foto-card.carregando { opacity: .5; pointer-events: none; }
.foto-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.foto-topo strong { font-size: 15px; }
.foto-topo em {
  font-style: normal; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  padding: 4px 8px; border-radius: 99px;
}
.foto-topo .obrig { background: var(--ink); color: var(--gold); }
.foto-topo .opc { background: var(--bg); color: var(--muted); }
.foto-exemplo {
  width: 100%; height: 150px; object-fit: contain; background: var(--bg);
  border-radius: 10px; display: block;
}
.foto-exemplo-vazio { display: grid; place-items: center; font-size: 34px; opacity: .35; }
.foto-previa {
  width: 100%; height: 170px; object-fit: cover; border-radius: 10px; display: block;
  border: 2px solid var(--ok);
}
.foto-precisa { font-size: 13px; color: var(--muted); margin: 10px 0 12px; text-align: center; }
.foto-precisa b { color: var(--ink-2); }
.btn-foto { min-height: 48px; cursor: pointer; }
.foto-card .remover { display: block; margin: 8px auto 0; padding: 0; font-size: 13px; color: var(--muted); }

/* Agenda */
.dias { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.voltar-link { padding: 0 0 10px; text-decoration: none; color: var(--muted); font-weight: 600; }
.campo-placa { margin-top: 18px; }
.dia {
  flex: 0 0 68px; scroll-snap-align: start; border: 1.5px solid var(--line); background: #fff; border-radius: 12px;
  padding: 10px 4px; text-align: center; transition: border-color .12s;
}
.dia small { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.dia strong { display: block; font-family: var(--display); font-stretch: 85%; font-size: 24px; font-weight: 800; line-height: 1.1; }
.dia em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); }
.dia.ativo { background: var(--ink); border-color: var(--ink); color: #fff; }
.dia.ativo small, .dia.ativo em { color: #cfcfd4; }
.endereco-mini { font-size: 13.5px; color: var(--ink-2); background: var(--bg); border-radius: 10px; padding: 10px 12px; margin-top: 4px; }

/* Sucesso */
.ok-selo { width: 60px; height: 60px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 30px; margin: 4px 0 14px; animation: pop .4s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.ag-info { background: var(--bg); border-radius: 14px; padding: 14px 16px; display: grid; gap: 10px; margin: 8px 0 12px; }
.ag-info div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.ag-info span { color: var(--muted); }
.ag-info b { text-align: right; }
.mapa { width: 100%; height: 190px; border: 0; border-radius: 12px; background: var(--bg); }
.lembrete { font-size: 13.5px; color: var(--ink-2); margin: 10px 0 0; }

/* Rodapé */
.rodape { text-align: center; padding: 24px 16px 40px; color: var(--muted); font-size: 12.5px; }
.rodape p { margin: 4px 0; }
.rodape-nota { max-width: 60ch; margin: 6px auto 0 !important; }

@media (max-width: 959px) {
  .layout { gap: 20px; padding-top: 18px; }
  .eyebrow { margin-bottom: 10px; font-size: 11px; }
  .hero h1 { font-size: clamp(38px, 11vw, 64px); margin-bottom: 10px; }
  .hero-sub { font-size: 15px; margin-bottom: 12px; }
  .card { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
