/* ============================================================
   Compracon — Landing de captura · Design tokens + estilos
   ============================================================ */
:root {
  /* Marca */
  --blue: #289ee0;
  --blue-dark: #1b7fbf;
  --blue-tint: rgba(40, 158, 224, 0.10);
  --blue-glow: rgba(40, 158, 224, 0.28);

  /* Estado */
  --green: #3d9140;
  --green-tint: rgba(76, 175, 80, 0.14);
  --red: #c9302c;
  --red-tint: rgba(217, 83, 79, 0.10);

  /* Superfícies */
  --bg: #eef1f5;
  --surface: #ffffff;
  --border: #d3dbe2;
  --shadow: 0 6px 20px rgba(16, 40, 60, 0.07);
  --shadow-lg: 0 18px 50px rgba(16, 40, 60, 0.14);

  /* Texto (contraste AA) */
  --text: #353f49;
  --text-strong: #14202c;
  --text-muted: #515c67;

  /* Footer (cinza escuro harmônico) */
  --footer-bg: #20272e;
  --footer-text: #c4cdd6;
  --footer-muted: #9aa6b1;
  --footer-divider: rgba(255, 255, 255, 0.10);

  /* Tipografia */
  --font-head: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Geometria */
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --pad: 24px;

  --maxw: 1140px;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 70px; /* compensa só o header fixo: o form sobe até o topo */
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  /* sticky footer: o conteúdo cresce e empurra o rodapé até o fim da página */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

h1, h2, h3, h4 { font-family: var(--font-head); }
img { max-width: 100%; display: block; }
a { color: var(--blue-dark); }

/* ---------- Animações de entrada (progressive enhancement) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: none; }

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

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  padding: 15px 26px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 22px var(--blue-glow);
  transition: background 0.16s, transform 0.14s, box-shadow 0.16s;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 12px 28px var(--blue-glow); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 14px; box-shadow: 0 5px 14px var(--blue-glow); }
.btn .arrow { transition: transform 0.16s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Topo / header ---------- */
.topbar { height: 4px; background: linear-gradient(90deg, var(--blue), #5bc0f0); }

.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(16, 40, 60, 0.08); }
.site-header .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 13px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header img { height: 38px; width: auto; }
.header-trust {
  display: none; /* aparece só no desktop (ver media query) */
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-dark);
  background: var(--blue-tint);
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 92% -10%, var(--blue-tint), transparent 60%),
    var(--bg);
}
.hero .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px var(--pad);
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 56px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin: 0 0 18px;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.pitch h1 {
  font-size: 44px;
  line-height: 1.08;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.pitch h1 .hl { color: var(--blue-dark); }
.pitch .lead {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 26px;
  max-width: 46ch;
}
.lead-short { display: none; }

.benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.benefits li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-strong);
}
.benefits .ico {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 3px 8px var(--blue-glow);
}

.hero-cta { margin-top: 30px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-cta .note { font-size: 13px; color: var(--text-muted); }

.trust {
  margin: 22px 0 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- Card do formulário ---------- */
.form-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 34px 32px 32px;
  overflow: hidden; /* recorta a barra do topo nos cantos arredondados do card */
}
.form-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), #5bc0f0);
}
.form-card h2 { margin: 0 0 6px; font-size: 23px; font-weight: 700; color: var(--text-strong); }
.form-card .sub { margin: 0 0 22px; font-size: 15px; color: var(--text-muted); }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 7px;
}
.field label .req { color: var(--red); }

.field input,
.field select {
  width: 100%;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-strong);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231b7fbf' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
  cursor: pointer;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint);
}
.field input::placeholder { color: #97a2ac; }

.field.invalid input,
.field.invalid select {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-tint);
}
.field .err,
.consent-err {
  display: none;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--red);
  margin-top: 6px;
}
.field.invalid .err { display: block; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Checkbox de autorização */
.consent { display: flex; align-items: flex-start; gap: 11px; margin: 4px 0 6px; }
.consent input {
  width: 19px; height: 19px;
  margin-top: 1px;
  accent-color: var(--blue);
  flex: 0 0 auto;
  cursor: pointer;
}
.consent label {
  font-size: 13.5px;
  color: var(--text);
  font-weight: 400;
  line-height: 1.45;
  cursor: pointer;
}
.consent.invalid input { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 3px; }
.consent-wrap { margin-bottom: 18px; }
.consent-wrap.invalid .consent-err { display: block; }

/* Honeypot */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-foot {
  margin-top: 15px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.45;
}
.form-privacy {
  margin: 14px auto 0;
  max-width: 34ch;
  font-size: 11px;
  color: #9aa4ae;
  text-align: center;
  line-height: 1.4;
}

/* Mensagens de estado */
.alert {
  display: none;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 18px;
}
.alert.show { display: block; }
.alert.error { background: var(--red-tint); color: #9a2723; border: 1px solid #e3b3b1; }

/* Sucesso */
.success { display: none; text-align: center; padding: 18px 4px; }
.success.show { display: block; animation: pop 0.4s ease; }
.success .check {
  width: 70px; height: 70px;
  margin: 4px auto 18px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
  display: grid; place-items: center;
  font-size: 38px; font-weight: 700;
}
.success h2 { color: var(--text-strong); margin: 0 0 10px; font-size: 23px; }
.success p { color: var(--text-muted); margin: 0; font-size: 15px; }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

/* ---------- Página de obrigado ---------- */
.thanks {
  display: grid;
  place-items: center;
  padding: 72px 24px;
  background:
    radial-gradient(900px 420px at 50% -10%, var(--blue-tint), transparent 62%),
    var(--bg);
}
.thanks-card {
  max-width: 560px;
  width: 100%;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px 40px;
}
.thanks-card .check {
  width: 74px;
  height: 74px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 40px;
  font-weight: 700;
}
.thanks-card h1 {
  font-size: 28px;
  color: var(--text-strong);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.thanks-card > p {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 0 28px;
  line-height: 1.6;
}
.thanks-card .thanks-note { font-size: 13px; color: var(--text-muted); margin: 18px 0 0; }
.btn-whatsapp {
  background: #25d366;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.3);
  font-size: 17px;
  padding: 16px 28px;
}
.btn-whatsapp:hover { background: #1ebe5a; box-shadow: 0 12px 28px rgba(37, 211, 102, 0.38); }

@media (max-width: 600px) {
  .thanks { padding: 44px 18px; }
  .thanks-card { padding: 34px 22px; }
  .thanks-card h1 { font-size: 23px; }
  .btn-whatsapp { width: 100%; }
}

/* ---------- Como funciona ---------- */
.steps { background: var(--bg); border-top: 1px solid var(--border); }
.steps .wrap { max-width: var(--maxw); margin: 0 auto; padding: 76px var(--pad); }
.steps .head { text-align: center; margin-bottom: 48px; }
.steps .head h2 { font-size: 30px; font-weight: 700; color: var(--text-strong); margin: 0 0 10px; letter-spacing: -0.01em; }
.steps .head p { font-size: 16px; color: var(--text-muted); margin: 0; }
.steps .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 26px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.step .n {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), #5bc0f0);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700; font-size: 19px;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px var(--blue-glow);
}
.step h3 { margin: 0 0 9px; font-size: 17px; font-weight: 600; color: var(--text-strong); }
.step p { margin: 0; font-size: 14.5px; color: var(--text-muted); line-height: 1.55; }

/* ---------- Autoridade ---------- */
.authority {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(620px 280px at 85% -10%, rgba(40, 158, 224, 0.14), transparent 62%),
    linear-gradient(160deg, #16232f 0%, #1b3147 100%);
  color: #fff;
}
/* textura sutil de pontos (clean, não chama atenção) */
.authority::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
}
.authority .wrap { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 72px var(--pad); text-align: center; }
.years-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(40, 158, 224, 0.16);
  border: 1px solid rgba(40, 158, 224, 0.34);
  color: #8fd0f4;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.authority h2 { font-size: 29px; font-weight: 700; margin: 0 0 14px; color: #fff; letter-spacing: -0.01em; }
.authority p { font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, 0.8); margin: 0 auto 28px; max-width: 56ch; }
.pillars { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; margin-bottom: 30px; }
.pillar { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: rgba(255, 255, 255, 0.92); }
.pillar .pico {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(40, 158, 224, 0.2);
  color: #8fd0f4;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
}
.btn--light { background: #fff; color: #16232f; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28); }
.btn--light:hover { background: #eef4f9; color: #16232f; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34); }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); }
.site-footer .wrap { max-width: var(--maxw); margin: 0 auto; padding: 52px var(--pad) 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 38px;
}
.footer-brand img { height: 38px; width: auto; margin-bottom: 16px; }
.footer-brand .slogan {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--footer-text);
  max-width: 34ch;
  line-height: 1.55;
}
.footer-brand .legal {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--footer-muted);
  line-height: 1.7;
  opacity: 0.8;
}
.footer-link {
  display: inline-block;
  color: var(--footer-text);
  text-decoration: none;
  font-size: 14px;
}
.footer-link:hover { color: #fff; text-decoration: underline; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--footer-text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: background 0.15s, color 0.15s, transform 0.15s, border-color 0.15s;
}
.social a:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-2px); }
.social svg { width: 19px; height: 19px; display: block; }
.footer-col h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}
.footer-col p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--footer-text); }
.footer-col .muted { color: var(--footer-muted); }
.footer-bottom {
  border-top: 1px solid var(--footer-divider);
  padding: 20px 0 28px;
  text-align: center;
  font-size: 12.5px;
  color: var(--footer-muted);
}

/* ============================================================
   Responsivo
   ============================================================ */
/* Desktop: o formulário já está visível ao lado — o único botão é o de envio.
   Esconde os CTAs auxiliares e mostra um selo informativo no header. */
@media (min-width: 1025px) {
  .hero-cta { display: none; }
  .header-cta { display: none; }
  .header-trust { display: inline-flex; }
}

@media (max-width: 1024px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .pitch { order: 1; }
  .form-col { order: 2; }
  .pitch h1 { font-size: 38px; }
  /* CTA auxiliar visível: textos abaixo dele ficam centralizados */
  .hero-cta { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .hero-cta .note { text-align: center; }
  .trust { justify-content: center; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .hero .wrap { padding: 40px var(--pad); }
  .pitch h1 { font-size: 29px; }
  .pitch .lead { font-size: 16px; }
  .form-card { padding: 26px 20px 22px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .steps .wrap { padding: 52px var(--pad); }
  .steps .grid { grid-template-columns: 1fr; gap: 20px; }
  .steps .head { margin-bottom: 32px; }
  .site-header img { height: 32px; }
  /* Mobile: copy enxuta, com selo de autoridade compacto */
  .hero .wrap { padding: 26px var(--pad) 34px; gap: 20px; }
  .pitch h1 { margin-bottom: 12px; }
  .pitch .lead { margin-bottom: 0; }
  .benefits,
  .hero-cta { display: none; }
  .lead-full { display: none; }
  .lead-short { display: inline; }
  .kicker {
    display: inline-flex;
    background: var(--blue-tint);
    color: var(--blue-dark);
    padding: 5px 13px;
    border-radius: 999px;
    margin-bottom: 12px;
    font-size: 11px;
    letter-spacing: 0.03em;
  }
  .kicker::before { display: none; }
  .authority .wrap { padding: 44px var(--pad); }
  .authority h2 { font-size: 23px; }
  .pillars { flex-direction: column; align-items: center; gap: 10px; margin-bottom: 24px; }
  .btn--light { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
