/* fontes self-hosted — nada de CDN de terceiro (PRD §9) */
@font-face {
  font-family: Viga;
  src: url("fonts/viga-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dmsans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #202B52;
  --red: #E10F14;
  --red-dark: #B60C10;
  --body: #4A5470;
  --muted: #6B7385;
  --soft: #F6F9FB;
  --line: #E3E8EF;
  --line-soft: #EEF1F5;
  --line-strong: #D6DDE8;
  --green: #0F7A4E;
  --green-dot: #17A366;
  --green-soft: #E8F6EF;
  --pad: clamp(20px, 5.5vw, 80px);
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 1440px;
  background: #fff;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo-text, .stat-value, .step-num, .ledger dd {
  font-family: Viga, sans-serif;
  font-weight: 400;
}

h1, h2, h3, p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
figure { margin: 0; }
blockquote { margin: 0; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* --- logo + robot mark --- */

.logo { display: flex; align-items: center; gap: 10px; color: inherit; }
.logo:hover { text-decoration: none; }
.logo-text { font-size: 24px; }
.logo-text span { color: var(--red); }
.logo-text.sm { font-size: 18px; }

.logo-mark { width: 36px; height: 36px; flex: 0 0 auto; display: block; }
.logo-mark.sm { width: 28px; height: 28px; }
.logo-mark.lg { width: 46px; height: 46px; }
.logo-mark.xl { width: 64px; height: 64px; }

/* --- buttons --- */

.btn {
  display: inline-block;
  font-size: 17px;
  font-weight: 700;
  border-radius: 12px;
  padding: 15px 26px;
  text-align: center;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-sm { font-size: 15px; border-radius: 10px; padding: 9px 16px; }
.btn-block { display: block; padding-inline: 13px; }

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }

.btn-ghost { color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--ink); background: var(--soft); border-color: var(--ink); }

/* --- header --- */

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 20px var(--pad);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 15px; color: var(--body); white-space: nowrap; }
.nav-link:hover { color: var(--ink); }

/* --- hero --- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 56px;
  align-items: center;
  padding: 72px var(--pad) 64px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero h1 { font-size: clamp(33px, 4.1vw, 54px); line-height: 1.06; letter-spacing: -0.02em; }
.lead { font-size: 19px; line-height: 1.55; color: var(--body); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.fineprint { font-size: 14px; color: var(--muted); }

.pill {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  color: var(--green); background: var(--green-soft);
  border-radius: 999px; padding: 6px 12px;
}
.dot { width: 7px; height: 7px; border-radius: 999px; background: var(--green-dot); flex: 0 0 auto; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--green); }

.tag { font-size: 11px; color: var(--muted); white-space: nowrap; }
.tag-green { font-weight: 700; color: var(--green); background: var(--green-soft); border-radius: 6px; padding: 3px 8px; }

/* --- card de alerta (hero) --- */

.alert-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(32, 43, 82, 0.14);
  display: flex; flex-direction: column; gap: 14px;
}
.alert-card hr { height: 1px; width: 100%; border: 0; background: var(--line-soft); margin: 0; }
.alert-head { display: flex; align-items: center; gap: 12px; }
.alert-id { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.alert-id strong { font-size: 17px; }
.alert-car { display: flex; flex-direction: column; gap: 3px; }
.alert-car strong { font-size: 17px; }
.find-meta { font-size: 13px; color: var(--muted); }

/* --- ledger: anúncio / FIPE / margem --- */

.ledger { display: flex; flex-direction: column; gap: 8px; }
.ledger > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 10px;
}
.ledger dt { font-size: 13px; color: var(--muted); }
.ledger dd { font-size: 18px; font-variant-numeric: tabular-nums; }
.ledger .is-margin { background: var(--green-soft); border-color: transparent; }
.ledger .is-margin dt { color: var(--green); font-weight: 700; }
.ledger .is-margin dd { color: var(--green); font-size: 24px; }

/* --- achados --- */

.deals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.deal {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex; flex-direction: column; gap: 16px;
  align-items: flex-start;
}
.deal .ledger { align-self: stretch; }
.deal .ledger > div { background: #fff; }
.deal-tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 11px;
}
.deal-car { display: flex; flex-direction: column; gap: 4px; }
.deal-car strong { font-size: 19px; }
.deal-read { font-size: 15px; line-height: 1.5; color: var(--body); }

.note { font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 720px; }
.block-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* --- faixa de fontes --- */

.strip {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 32px 40px;
  padding: 34px var(--pad);
  border-bottom: 1px solid var(--line-soft);
}
.strip p { font-size: 17px; color: var(--body); max-width: 340px; }
.strip strong { color: var(--ink); }
.strip.section-dark { border-bottom: 0; }
.strip.section-dark p { color: #C9D2EC; }
.strip.section-dark strong { color: #fff; }
.section-dark .stat-label { color: #A9B4D6; }
.strip-stats { display: flex; flex-wrap: wrap; gap: 44px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-value { font-size: 26px; }
.stat-label { font-size: 13px; color: var(--muted); }

/* --- seção genérica --- */

.section { display: flex; flex-direction: column; gap: 36px; padding: 76px var(--pad); }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 660px; }
.section-head h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--red); }
.eyebrow-light { color: #FF8A8D; }

.card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
}
.card h3 { font-size: 22px; }
.card p { font-size: 16px; line-height: 1.55; color: var(--body); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step-num {
  width: 34px; height: 34px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}

/* --- seção escura (payback) --- */

.section-dark { background: var(--ink); color: #fff; }
.reasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card-dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  padding: 22px;
  gap: 10px;
}
.card-dark h3 { font-size: 19px; }
.section-dark .step-num { background: #fff; color: var(--ink); }
.card-dark p { font-size: 15px; line-height: 1.5; color: #C9D2EC; }

/* --- depoimento --- */


.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.quote {
  background: #fff; color: var(--ink);
  border-radius: 20px;
  padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
}
.quote p { font-size: 17px; line-height: 1.5; }
.quote p strong { color: var(--green); }
.quote figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: var(--muted); }
.quote figcaption strong { color: var(--ink); font-size: 16px; }

/* --- cta final --- */

/* a seção clara anterior já traz 76px de respiro embaixo; a faixa escura não */
.section + .final-cta { margin-top: 0; }
.section-dark + .final-cta { margin-top: 76px; }
.final-cta {
  margin: 76px var(--pad);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 52px);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 32px 40px;
}
.final-cta-copy { display: flex; align-items: center; gap: 20px; }
.final-cta h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 6px; }
.final-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* --- rodapé --- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 28px var(--pad) 36px;
  display: flex; flex-direction: column; gap: 22px;
}
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; color: var(--muted); }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--ink); }
.disclaimer { font-size: 13px; line-height: 1.55; color: var(--muted); max-width: 860px; }

/* --- botão flutuante do WhatsApp --- */

.wa-float {
  position: fixed; z-index: 20;
  right: 18px; bottom: max(18px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 9px;
  padding: 13px 18px; border-radius: 999px;
  background: #128C4A; color: #fff;
  font-size: 15px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(32, 43, 82, 0.28);
}
.wa-float:hover { background: #0E7340; color: #fff; text-decoration: none; }
.wa-float svg { width: 20px; height: 20px; fill: currentColor; flex: 0 0 auto; }

/* --- responsivo --- */

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .nav-link { display: none; }
}

@media (max-width: 900px) {
  .section { padding-block: 56px; }
  .steps, .quotes, .deals { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .hero { padding-top: 48px; }
  .reasons { grid-template-columns: 1fr; }
  .strip, .final-cta, .final-cta-copy { flex-direction: column; align-items: flex-start; }
  .strip-stats { gap: 24px; }
  /* só os CTAs de bloco viram largura cheia — o botão do header ficaria colado na borda */
  .block-actions, .hero-actions, .final-cta-actions { align-self: stretch; }
  .hero-actions .btn, .block-actions .btn, .final-cta-actions .btn { width: 100%; }
  .nav .btn-ghost { display: none; }
  .ledger .is-margin dd { font-size: 21px; }
}
