/* Precifica.ai — landing de pré-lançamento. Tokens do DESIGN_SYSTEM.md v1. */
@font-face {
  font-family: "Public Sans";
  src: url("assets/fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("assets/fonts/sora-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --primary: #015cfc;
  --primary-hover: #123498;
  --primary-active: #0a0ba3;
  --tint: #dde3f5;
  --navy-950: #01072c;
  --navy-900: #071651;
  --navy-800: #092373;
  --bg: #ffffff;
  --surface-variant: #f5f7fd;
  --text: #01072c;
  --text-2: #4b5675;
  --border: #dde3f5;
  --error: #dc2626;
  --success: #16a34a;
  --warning-bg: #fff4d6;
  --warning-text: #7a4b00;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow: 0 12px 32px -12px rgba(1, 7, 44, 0.18), 0 2px 6px rgba(1, 7, 44, 0.06);

  --font-text: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Sora", "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 104px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 var(--s2); letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.625rem, 3.4vw, 2.375rem); font-weight: 700; }
h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 var(--s2); }

.wrap { width: min(1160px, 100% - 2 * var(--s3)); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 2 * var(--s3)); }
.section { padding-block: var(--s6); }
@media (max-width: 720px) { .section { padding-block: var(--s5); } .wrap, .wrap--narrow { width: calc(100% - 2 * var(--s2)); } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s2); top: -60px; background: var(--navy-950); color: #fff; padding: var(--s1) var(--s2); border-radius: var(--radius-md); z-index: 100; }
.skip-link:focus { top: var(--s2); color: #fff; }

.eyebrow {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary); margin-bottom: var(--s2);
}
.lead { font-size: 1.1875rem; color: var(--text-2); max-width: 60ch; }
.nota { color: var(--text-2); font-size: 0.9375rem; }

/* Pendências: visíveis de propósito — a página NÃO está pronta para publicar enquanto existirem. */
.pendente { background: var(--warning-bg); color: var(--warning-text); font-weight: 600; padding: 0 4px; border-radius: 4px; outline: 1px dashed #c98a00; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: inline-flex; }
.header-link { font-weight: 600; text-decoration: none; padding: 10px 4px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: 52px; padding: 0 var(--s3); border-radius: var(--radius-md); border: 2px solid transparent;
  font: 600 1.0625rem/1.2 var(--font-text); cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, transform .15s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-primary:active { background: var(--primary-active); transform: translateY(1px); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-secondary { background: var(--tint); color: var(--navy-900); }
.btn-secondary:hover { background: #cdd6f1; color: var(--navy-900); }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; color: var(--text-2); font: 600 1rem var(--font-text); text-decoration: underline; cursor: pointer; padding: 12px 8px; min-height: 44px; }
.link-secondary { display: inline-block; margin-top: var(--s2); font-weight: 600; text-decoration: none; padding: 8px 0; }
.link-secondary:hover { text-decoration: underline; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--surface-variant) 0%, #fff 100%); padding-block: var(--s5) var(--s4); }
.hero + .problema { padding-top: var(--s5); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--s5); align-items: center; }
.hero h1 { max-width: 16ch; }
.hero-copy .form-slot { margin-top: var(--s3); max-width: 480px; min-height: 300px; }
.hero-shot { margin: 0; justify-self: center; max-width: 360px; }
.shot-frame { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
figcaption { font-size: 0.875rem; color: var(--text-2); margin-top: var(--s1); text-align: center; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .hero-shot { max-width: 300px; }
  .hero-copy .form-slot { min-height: 0; }
}

/* Formulário */
.lead-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--s3); box-shadow: var(--shadow); }
.field { margin-bottom: var(--s2); }
.field label, .step2 legend { display: block; font-weight: 600; margin-bottom: 6px; font-size: 1rem; }
.field input {
  width: 100%; min-height: 52px; padding: 0 14px; font: 400 1.0625rem var(--font-text); color: var(--text);
  border: 1.5px solid #b9c4ec; border-radius: var(--radius-md); background: #fff;
}
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(1, 92, 252, .2); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 0.9375rem; color: var(--text-2); }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--primary); }
.consent-link { font-size: 0.9375rem; margin: 6px 0 var(--s2) 34px; }
.microcopy { font-size: 0.875rem; color: var(--text-2); margin: 10px 0 0; }
.form-msg { font-size: 0.9375rem; font-weight: 600; color: var(--error); margin: 10px 0 0; }
.form-msg:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-success:focus { outline: none; }
.success-title { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--success); margin-bottom: 4px; }
.step2 { margin-top: var(--s2); padding-top: var(--s2); border-top: 1px solid var(--border); }
.step2 fieldset { border: 0; padding: 0; margin: 0 0 var(--s2); }
.choices { display: flex; flex-wrap: wrap; gap: var(--s1); }
.choices label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid #b9c4ec; border-radius: 999px; cursor: pointer; font-weight: 500; }
.choices label:has(input:checked) { border-color: var(--primary); background: #eef3ff; }
.choices input { accent-color: var(--primary); width: 18px; height: 18px; margin: 0; }
.opcional { font-weight: 400; color: var(--text-2); }
.hint { font-size: 0.875rem; color: var(--text-2); margin: 6px 0 0; }
.step2-actions { display: flex; align-items: center; gap: var(--s1); flex-wrap: wrap; }
.step2-done { font-weight: 600; margin: var(--s2) 0 0; }
.lead-closed { font-weight: 700; margin: 0; }

/* Problema */
.problema h2 { max-width: 22ch; }
.pain-list { list-style: none; counter-reset: dor; padding: 0; margin: var(--s4) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s5); }
.pain-list li { counter-increment: dor; border-top: 2px solid var(--navy-950); padding-top: var(--s2); }
.pain-list li::before { content: "0" counter(dor); display: block; font: 700 0.875rem var(--font-display); color: var(--primary); margin-bottom: var(--s1); letter-spacing: .06em; }
.pain-list p { color: var(--text-2); margin: 0; }
@media (max-width: 720px) { .pain-list { grid-template-columns: 1fr; gap: var(--s4); } }

/* Exemplo (agitação) */
.exemplo { background: var(--navy-950); color: #fff; }
.exemplo-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s3) var(--s5); align-items: start; }
.exemplo-copy p { color: #c9d1ee; }
.exemplo h2 { color: #fff; }
.badge-ilustrativo { display: inline-block; background: #fff4d6; color: #5c3900; font-weight: 700; font-size: 0.875rem; padding: 6px 12px; border-radius: 999px; }
.exemplo .badge-ilustrativo { color: #5c3900; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll:focus-visible { outline-offset: 2px; }
.compare { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--navy-900); border-radius: var(--radius-lg); overflow: hidden; min-width: 420px; }
.compare caption { text-align: left; font-size: 0.875rem; color: #c9d1ee; padding-bottom: var(--s1); }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid #1c2c6e; text-align: right; }
.compare th[scope="row"] { text-align: left; font-weight: 500; color: #dfe5fb; }
.compare thead th { font-size: 0.875rem; font-weight: 600; color: #c9d1ee; vertical-align: bottom; }
.compare td:last-child, .compare thead th:last-child { background: rgba(1, 92, 252, .14); }
.compare .row-diff td:last-child { color: #ffd27a; font-weight: 700; }
.compare tfoot th, .compare tfoot td { font-weight: 700; color: #fff; border-bottom: 0; }
.compare .row-margin td { font-family: var(--font-display); font-size: 1.5rem; }
.compare .row-margin td:last-child { color: #ffd27a; }
.nota-exemplo { grid-column: 1 / -1; font-size: 0.875rem; color: #aeb8de; margin: 0; }
@media (max-width: 900px) { .exemplo-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  /* a tabela inteira precisa caber: a coluna "com o programa" é a prova do bloco */
  .compare { min-width: 0; font-size: 0.9375rem; }
  .compare th, .compare td { padding: 10px 8px; }
  .compare th[scope="row"] { padding-left: 12px; }
  .compare td:last-child, .compare thead th:last-child { padding-right: 12px; }
  .compare thead th { font-size: 0.8125rem; }
  .compare .row-margin td { font-size: 1.25rem; }
}

/* Mecanismo */
.mecanismo { background: #fff; }
.mecanismo-head { max-width: 760px; }
.check-list { list-style: none; padding: 0; margin: var(--s3) 0 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.regras { margin-top: var(--s5); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--s3); background: var(--surface-variant); }
.regras-sub { color: var(--text-2); font-size: 0.9375rem; }
.rules { width: 100%; border-collapse: collapse; font-size: 0.9375rem; background: #fff; border-radius: var(--radius-md); overflow: hidden; min-width: 720px; font-variant-numeric: tabular-nums; }
.rules th, .rules td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.rules thead th { background: var(--tint); font-weight: 600; font-size: 0.875rem; }
.rules tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 720px) {
  /* no celular, cada regra vira um cartão (sem rolagem lateral) */
  .regras { padding: var(--s2); }
  .rules { min-width: 0; background: transparent; }
  .rules thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rules, .rules tbody, .rules tr, .rules td { display: block; width: 100%; }
  .rules tr { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 14px; margin-bottom: var(--s1); }
  .rules td { border: 0; padding: 4px 0; display: grid; grid-template-columns: 72px 1fr; gap: 8px; }
  .rules td::before { content: attr(data-label); font-weight: 600; color: var(--text-2); font-size: 0.8125rem; padding-top: 2px; }
}

/* Demonstração */
.demo { background: var(--surface-variant); }
.demo-item { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: var(--s5); align-items: center; margin-top: var(--s5); }
.demo-item--reverse { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); }
.demo-item--reverse .demo-text { order: 2; }
.demo-shot { margin: 0; }
.demo-text p { color: var(--text-2); }
@media (max-width: 900px) {
  .demo-item { grid-template-columns: 1fr; gap: var(--s3); margin-top: var(--s4); }
  .demo-item--reverse .demo-text { order: 0; }
}

/* Como funciona + para quem */
.como-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: var(--s5); align-items: start; }
.steps { list-style: none; counter-reset: passo; padding: 0; margin: var(--s3) 0 var(--s2); display: grid; gap: var(--s3); }
.steps li { counter-increment: passo; position: relative; padding-left: 60px; min-height: 44px; }
.steps li::before {
  content: counter(passo); position: absolute; left: 0; top: -2px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--tint); color: var(--navy-900); font: 700 1.125rem var(--font-display);
}
.para-quem { background: var(--navy-950); color: #fff; border-radius: var(--radius-lg); padding: var(--s4) var(--s3); }
.para-quem h2 { color: #fff; font-size: 1.5rem; }
.para-quem .check-list li::before { background-color: var(--primary); }
@media (max-width: 900px) { .como-grid { grid-template-columns: 1fr; } }

/* Oferta */
.oferta { background: linear-gradient(180deg, #fff 0%, var(--surface-variant) 100%); border-top: 1px solid var(--border); }
.oferta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.timeline { list-style: none; padding: 0; margin: var(--s3) 0; position: relative; }
.timeline li { position: relative; padding: 0 0 var(--s3) 36px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.timeline li::after { content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: var(--tint); }
.timeline li:last-child::after { display: none; }
.timeline li:first-child::before { background: var(--primary); }
.tl-when { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
.tl-price { display: block; font: 700 1.625rem/1.3 var(--font-display); font-variant-numeric: tabular-nums; margin: 2px 0 4px; }
.timeline p { color: var(--text-2); margin: 0; }
.sem-fidelidade { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--s2); }
.prazo { background: var(--navy-950); color: #fff; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: var(--s2) var(--s3); }
.prazo p { margin: 0; }
.prazo-contagem { margin-top: 6px !important; font-weight: 700; color: #ffd27a; }
.oferta-form .lead-box { border-radius: 0 0 var(--radius-lg) var(--radius-lg); border-top: 0; }
@media (max-width: 900px) { .oferta-grid { grid-template-columns: 1fr; gap: var(--s4); } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: var(--s3) 40px var(--s3) 0; position: relative;
  font: 600 1.125rem/1.4 var(--font-text); min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.75rem var(--font-text); color: var(--primary); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-2); padding-bottom: var(--s3); margin: 0; max-width: 65ch; }

/* CTA final */
.final { background: var(--navy-950); color: #fff; }
.final-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: var(--s5); align-items: center; }
.final h2 { color: #fff; }
.final p { color: #c9d1ee; }
.final .lead-box { color: var(--text); }
.final .lead-box p { color: var(--text-2); }
.final .lead-box .form-msg { color: var(--error); }
.final .lead-box .success-title { color: var(--success); }
@media (max-width: 900px) { .final-grid { grid-template-columns: 1fr; gap: var(--s3); } }

/* Rodapé */
.site-footer { background: #fff; border-top: 1px solid var(--border); padding-block: var(--s4) calc(var(--s4) + 72px); font-size: 0.875rem; color: var(--text-2); }
.disclaimer { max-width: 90ch; }
.legal { display: flex; gap: var(--s2); align-items: flex-start; margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--border); }
.legal p { margin: 0; line-height: 1.8; }
@media (min-width: 721px) { .site-footer { padding-bottom: var(--s4); } }

/* Política de privacidade */
.politica h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.politica h2 { font-size: 1.375rem; margin-top: var(--s4); }
.politica ul { padding-left: 1.25rem; color: var(--text-2); }
.politica p { color: var(--text-2); }

/* Barra fixa (só celular) */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px var(--s2) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px -12px rgba(1, 7, 44, .25);
}
@media (min-width: 721px) { .sticky-cta { display: none !important; } }
