/* =========================================================
   Certidões em Dia · Design System
   Base clara · Verde (em dia) · Âmbar (vencendo) · Vermelho (vencido)
   Escrito mobile-first. Media queries só ampliam.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Marca: tinta escura, quase preta com um toque frio */
  --ink-900: #0b1220;
  --ink-800: #121a2b;
  --ink-700: #1d2739;
  --ink-600: #33405a;
  --ink-400: #5b6981;
  --ink-200: #9aa5b8;

  /* Verde = "em dia". É a cor da promessa e da ação. */
  --green-700: #0b7a4b;
  --green-600: #0e9459;
  --green-500: #14b86e;
  --green-300: #6fe0a8;
  --green-100: #dcf7e9;
  --green-050: #f0fbf6;

  /* Âmbar = "vence em breve". É a tensão que vende. */
  --amber-600: #b96806;
  --amber-500: #ef8f0d;
  --amber-100: #fdefd7;

  /* Vermelho = "vencido". Só aparece como consequência. */
  --red-600: #c3341f;
  --red-100: #fde5e1;

  /* Neutros */
  --white: #ffffff;
  --paper: #f6f8fb;
  --paper-2: #eef2f7;
  --line: #e2e8f1;

  /* Semânticos */
  --bg: var(--white);
  --text: var(--ink-800);
  --muted: var(--ink-400);
  --brand: var(--ink-900);
  --accent: var(--green-600);

  /* Tipografia */
  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --pad: 20px;

  /* Sombra */
  --shadow-sm: 0 2px 8px rgba(11, 18, 32, 0.06);
  --shadow: 0 14px 36px rgba(11, 18, 32, 0.10);
  --shadow-lg: 0 30px 64px rgba(11, 18, 32, 0.18);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.14;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2rem, 7.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 5.2vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 3.4vw, 1.35rem); }
p { color: var(--muted); }
b, strong { color: var(--text); font-weight: 700; }

.hl { color: var(--green-600); }
.hl-amber { color: var(--amber-600); }

/* ---------- Utilitários ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: 64px; }
.section-head { max-width: 660px; margin-bottom: 32px; }
.section-head p { margin-top: 10px; }
.eyebrow {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 8px;
}
.bg-paper { background: var(--paper); }
.bg-ink { background: var(--ink-900); }
.bg-ink h2, .bg-ink h3 { color: var(--white); }
.bg-ink p { color: var(--ink-200); }
.center { text-align: center; margin-inline: auto; }

@media (min-width: 900px) {
  body { font-size: 17px; }
  .section { padding-block: 96px; }
  .section-head { margin-bottom: 44px; }
}

/* ---------- Pill ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--green-050);
  border: 1px solid var(--green-100);
  color: var(--green-700);
  font-size: 0.82rem;
  font-weight: 600;
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 0 rgba(20, 184, 110, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(20, 184, 110, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(20, 184, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 184, 110, 0); }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-600); color: var(--white); box-shadow: 0 8px 20px rgba(14, 148, 89, 0.28); }
.btn-primary:hover { background: var(--green-700); box-shadow: 0 12px 26px rgba(14, 148, 89, 0.34); }
.btn-dark { background: var(--ink-900); color: var(--white); }
.btn-dark:hover { background: var(--ink-700); }
.btn-ghost { background: var(--white); color: var(--brand); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-200); }
.btn-lg { padding: 16px 26px; font-size: 1.05rem; width: 100%; }
.btn-block { width: 100%; }
@media (min-width: 620px) { .btn-lg { width: auto; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 36px; height: 36px; flex: none; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.12; }
.logo-text strong { font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: var(--brand); letter-spacing: -0.03em; }
.logo-text small { font-size: 0.68rem; color: var(--muted); letter-spacing: 0.02em; }

.nav-links { display: none; }
.nav-actions { display: none; }

.nav-toggle {
  width: 44px; height: 44px;
  display: grid; place-content: center; gap: 5px;
  border-radius: 9px;
  border: 1px solid var(--line);
}
.nav-toggle span {
  display: block; width: 17px; height: 2px; border-radius: 2px;
  background: var(--brand);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: grid;
  gap: 4px;
  padding: 0 var(--pad);
  max-height: 0;
  overflow: hidden;
  background: var(--white);
  border-top: 1px solid transparent;
  transition: max-height 0.35s var(--ease), padding 0.35s var(--ease), border-color 0.2s;
}
.nav-mobile.open { max-height: 340px; padding: 12px var(--pad) 20px; border-top-color: var(--line); }
.nav-mobile a { padding: 11px 2px; font-weight: 600; color: var(--ink-700); }
.nav-mobile .btn { margin-top: 8px; }

@media (min-width: 900px) {
  .nav-toggle, .nav-mobile { display: none; }
  .nav-links { display: flex; align-items: center; gap: 28px; }
  .nav-links a { font-size: 0.94rem; font-weight: 500; color: var(--ink-600); transition: color 0.18s; }
  .nav-links a:hover { color: var(--green-600); }
  .nav-actions { display: block; }
}

/* ---------- Hero ---------- */
.hero { padding-block: 44px 56px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: -30% 40% 55% -30%;
  background: radial-gradient(circle at 50% 50%, rgba(20, 184, 110, 0.13), transparent 62%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 40px; }
.hero-copy > * + * { margin-top: 18px; }
.hero h1 { text-wrap: balance; }
.hero-sub { font-size: 1.05rem; max-width: 52ch; }
.hero-cta { display: grid; gap: 10px; }
.hero-note { font-size: 0.84rem; color: var(--ink-200); }

.hero-trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  font-size: 0.86rem; color: var(--muted);
  padding-top: 6px;
}
.hero-trust .sep { color: var(--line); }

@media (min-width: 620px) { .hero-cta { grid-auto-flow: column; justify-content: start; } }
@media (min-width: 980px) {
  .hero { padding-block: 72px 96px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 56px; }
  .hero-sub { font-size: 1.15rem; }
}

/* ---------- Mockup do WhatsApp (prova visual da promessa) ---------- */
.phone {
  width: 100%; max-width: 330px;
  margin-inline: auto;
  background: var(--ink-900);
  border-radius: 30px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
}
.phone-screen {
  background: #e9e2db;
  border-radius: 22px;
  overflow: hidden;
}
.phone-top {
  display: flex; align-items: center; gap: 9px;
  background: var(--green-700);
  padding: 12px 14px;
  color: var(--white);
}
.phone-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green-500);
  display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 800;
  font-family: var(--font-head);
}
.phone-who { line-height: 1.2; }
.phone-who strong { display: block; font-size: 0.86rem; color: var(--white); font-weight: 700; }
.phone-who span { font-size: 0.68rem; opacity: 0.75; }
.phone-body { padding: 14px 12px 18px; display: grid; gap: 9px; }
.bubble {
  background: var(--white);
  border-radius: 12px;
  border-top-left-radius: 3px;
  padding: 10px 12px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink-700);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  max-width: 92%;
}
.bubble b { color: var(--ink-900); }
.bubble .time { display: block; text-align: right; font-size: 0.62rem; color: var(--ink-200); margin-top: 3px; }
.bubble-amber { border-left: 3px solid var(--amber-500); }
.bubble-me { background: #d6f5c9; border-top-left-radius: 12px; border-top-right-radius: 3px; margin-left: auto; }

/* ---------- Grid de cards ---------- */
.grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid { gap: 18px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-100); }
.card h3 { margin-bottom: 7px; }
.card p { font-size: 0.93rem; }
.card-ico {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--green-050);
  border: 1px solid var(--green-100);
  display: grid; place-items: center;
  font-size: 1.15rem;
  margin-bottom: 14px;
}

/* ---------- Certidões (tabela que vira card no mobile) ---------- */
.cert-list { display: grid; gap: 10px; }
.cert {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.cert-name { font-family: var(--font-head); font-weight: 700; color: var(--brand); font-size: 0.98rem; }
.cert-org { grid-column: 1; font-size: 0.82rem; color: var(--muted); }
.cert-val {
  grid-column: 2; grid-row: 1 / span 2;
  font-size: 0.78rem; font-weight: 700;
  font-family: var(--font-head);
  padding: 5px 10px; border-radius: 999px;
  background: var(--paper-2); color: var(--ink-600);
  white-space: nowrap;
}
.cert.is-hot { border-color: var(--amber-500); background: var(--amber-100); }
.cert.is-hot .cert-val { background: var(--amber-500); color: var(--white); }
.cert.is-hot .cert-org { color: var(--amber-600); }

.cert-note {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--ink-900);
  color: var(--ink-200);
  font-size: 0.92rem;
}
.cert-note b { color: var(--white); }

/* ---------- Antes x Depois (retrovisor x para-brisa) ---------- */
.vs { display: grid; gap: 14px; }
@media (min-width: 860px) { .vs { grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; } }

.vs-card {
  border-radius: var(--radius);
  padding: 24px 22px;
  border: 1px solid var(--line);
  background: var(--white);
  display: flex; flex-direction: column;
}
.vs-card.is-bad { background: var(--paper-2); border-color: var(--line); }
.vs-card.is-good { border: 2px solid var(--green-600); box-shadow: var(--shadow); }

.vs-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-weight: 800;
  font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  align-self: flex-start;
  margin-bottom: 12px;
}
.vs-tag.bad { background: var(--red-100); color: var(--red-600); }
.vs-tag.good { background: var(--green-100); color: var(--green-700); }

.vs-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.vs-card .vs-sub { font-size: 0.88rem; margin-bottom: 16px; }

.vs-line {
  display: grid; grid-template-columns: auto 1fr;
  gap: 10px; align-items: start;
  padding: 9px 0;
  border-top: 1px dashed var(--line);
  font-size: 0.9rem;
  color: var(--ink-600);
}
.vs-line:first-of-type { border-top: 0; }
.vs-line i {
  font-style: normal; font-weight: 900; font-size: 0.72rem;
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 3px; flex: none;
}
.vs-line .no { background: var(--red-100); color: var(--red-600); }
.vs-line .yes { background: var(--green-100); color: var(--green-700); }
.vs-line b { color: var(--ink-900); }

.vs-punch {
  margin-top: auto; padding-top: 16px;
  font-family: var(--font-head); font-weight: 800;
  font-size: 1rem; letter-spacing: -0.02em;
}
.vs-punch.bad { color: var(--red-600); }
.vs-punch.good { color: var(--green-700); }

/* ---------- Passos ---------- */
.steps { display: grid; gap: 18px; counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.step-num {
  counter-increment: step;
  width: 34px; height: 34px; flex: none;
  border-radius: 50%;
  background: var(--green-600); color: var(--white);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 0.92rem;
}
.step-num::before { content: counter(step); }
.step h3 { margin-bottom: 4px; }
.step p { font-size: 0.93rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 26px; } }

/* ---------- Preço ---------- */
.price-wrap { display: grid; gap: 18px; max-width: 460px; margin-inline: auto; }
.price-card {
  background: var(--white);
  border: 2px solid var(--ink-900);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  position: relative;
}
.price-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--amber-500); color: var(--white);
  font-family: var(--font-head); font-weight: 800;
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
  white-space: nowrap;
}
.price-val { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin: 6px 0 4px; }
.price-val .cur { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--ink-600); }
.price-val .num { font-family: var(--font-head); font-weight: 800; font-size: 3.6rem; color: var(--brand); letter-spacing: -0.05em; line-height: 1; }
.price-val .per { font-size: 0.95rem; color: var(--muted); }
.price-sub { text-align: center; font-size: 0.88rem; }
.price-list { display: grid; gap: 9px; margin: 22px 0; }
.price-list li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 0.93rem; color: var(--ink-600); }
.price-list .tick {
  width: 19px; height: 19px; border-radius: 50%; margin-top: 3px;
  background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center; font-size: 0.66rem; font-weight: 900;
}
.price-foot { text-align: center; font-size: 0.78rem; color: var(--ink-200); margin-top: 12px; }

/* ---------- Formulário ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  max-width: 520px;
  margin-inline: auto;
}
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--ink-700); }
.field input, .field select {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 1rem;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(20, 184, 110, 0.16);
}
.field .err { font-size: 0.78rem; color: var(--red-600); display: none; }
.field.invalid input, .field.invalid select { border-color: var(--red-600); }
.field.invalid .err { display: block; }

.consent {
  display: grid; grid-template-columns: auto 1fr; gap: 10px;
  align-items: start;
  margin: 4px 0 18px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green-600); flex: none; }
.consent a { color: var(--green-700); text-decoration: underline; }
.consent.invalid { color: var(--red-600); }

/* honeypot: fora da tela, mas não display:none (robô ignora display:none) */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-ok {
  display: none;
  text-align: center;
  padding: 12px 0;
}
.form-ok.show { display: block; }
.form-ok .big { font-size: 2.4rem; margin-bottom: 8px; }
.form-ok h3 { margin-bottom: 6px; }
.form-ok p { font-size: 0.92rem; }
form.hide { display: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 760px; margin-inline: auto; }
.qa {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qa summary {
  padding: 16px 18px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--brand);
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  font-size: 1.3rem; font-weight: 400; color: var(--green-600);
  flex: none;
  transition: transform 0.25s var(--ease);
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa .qa-body { padding: 0 18px 18px; font-size: 0.92rem; color: var(--muted); }

/* ---------- CTA final ---------- */
.cta-final { text-align: center; }
.cta-final h2 { max-width: 18ch; margin-inline: auto; }
.cta-final p { max-width: 48ch; margin: 12px auto 24px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-900); color: var(--ink-200); padding-block: 44px 28px; }
.footer-grid { display: grid; gap: 26px; }
.footer .logo-text strong { color: var(--white); }
.footer .logo-text small { color: var(--ink-400); }
.footer h4 { color: var(--white); font-size: 0.86rem; margin-bottom: 10px; letter-spacing: 0; }
.footer-links { display: grid; gap: 7px; font-size: 0.88rem; }
.footer-links a:hover { color: var(--green-300); }
.footer-tag { font-size: 0.88rem; max-width: 34ch; margin-top: 12px; }
.footer-bottom {
  margin-top: 30px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.78rem; color: var(--ink-400);
  display: grid; gap: 6px;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
  .footer-bottom { grid-auto-flow: column; justify-content: space-between; align-items: center; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.07s; }
.d2 { transition-delay: 0.14s; }
.d3 { transition-delay: 0.21s; }
.d4 { transition-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pill .dot { animation: none; }
  html { scroll-behavior: auto; }
}
