/* Tokens: brand/tokens.json e docs/specs/design-system.md. Grid de 8px;
   raio 12 em botões e inputs, 16 em cards, 24 em painéis. Âmbar nunca é CTA. */
:root {
  --azul: #1f4e79;
  --azul-escuro: #163a5b;
  --azul-claro: #e4ecf4;
  --verde: #2f7a5b;
  --verde-claro: #e3efe9;
  --ambar: #b8863a;
  --ambar-claro: #f6eddd;
  --fundo: #f5f4f0;
  --superficie: #ffffff;
  --ink: #1c2230;
  --ink-2: #4a5263;
  --linha: #dedbd2;
  --erro: #a33a2b;

  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --r-btn: 12px;
  --r-card: 16px;
  --r-painel: 24px;
  --largura: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--fundo);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--azul);
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
h1 {
  font-size: clamp(34px, 6vw, 56px);
}
h2 {
  font-size: clamp(28px, 4.2vw, 40px);
}
h3 {
  font-size: 21px;
}
p {
  margin: 0 0 16px;
}
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.wrap {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) {
  .wrap {
    padding: 0 32px;
  }
}
section {
  padding: 64px 0;
}
@media (min-width: 720px) {
  section {
    padding: 96px 0;
  }
}
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--verde);
  margin: 0 0 16px;
}
.lead {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 40em;
}
.muted {
  color: var(--ink-2);
}
.small {
  font-size: 14px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 2px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--r-btn);
  border: 2px solid transparent;
  font: 600 16px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--azul);
  color: #fff;
}
.btn-primary:hover {
  background: var(--azul-escuro);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: progress;
}
.btn-secondary {
  background: transparent;
  color: var(--azul);
  border-color: var(--azul);
}
.btn-secondary:hover {
  background: var(--azul-claro);
}
.btn-block {
  width: 100%;
}

/* ---------- Cabeçalho ---------- */
.topo {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 244, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linha);
}
.topo .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.marca {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-size: 17px;
}
.marca img {
  width: 32px;
  height: auto;
}
.topo nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topo nav a.link {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.topo .btn {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 15px;
}
@media (max-width: 480px) {
  .topo nav a.link {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 48px;
}
.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1.15fr 0.85fr;
  }
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0 24px;
}
.selos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 15px;
}
.selos li::before {
  content: '✓';
  color: var(--verde);
  font-weight: 700;
  margin-right: 8px;
}

/* Cartão de exemplo de resultado (ilustração, não é nota real) */
.amostra {
  background: var(--superficie);
  border: 1px solid var(--linha);
  border-radius: var(--r-painel);
  padding: 24px;
  box-shadow: 0 16px 40px rgba(28, 34, 48, 0.08);
  max-width: 400px;
  justify-self: center;
  width: 100%;
}
.amostra-topo {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 16px;
}
.amostra-etiqueta {
  font-size: 12px;
  font-weight: 600;
  background: var(--fundo);
  border-radius: 999px;
  padding: 2px 10px;
}
.amostra-nota {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.amostra-nota .num {
  font-size: 56px;
  font-weight: 600;
  color: var(--verde);
  line-height: 1;
}
.amostra-nota span:last-child {
  color: var(--ink-2);
  font-size: 15px;
}
.amostra-legenda {
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.barra {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  font-size: 14px;
  margin-bottom: 12px;
}
.barra .num {
  font-size: 14px;
}
.barra-trilho {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background: var(--fundo);
  overflow: hidden;
}
.barra-trilho i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--verde);
}
.barra-trilho i.atencao {
  background: var(--ambar);
}
.amostra-dica {
  margin-top: 16px;
  background: var(--ambar-claro);
  border-radius: var(--r-btn);
  padding: 12px 16px;
  font-size: 14px;
}

/* ---------- Números (12 · 14 · 1) ---------- */
.faixa-azul {
  background: var(--azul);
  color: #fff;
}
.faixa-azul .kicker {
  color: #9fd3b9;
}
.faixa-azul .lead {
  color: #d6e2ee;
}
.numeros {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}
@media (min-width: 720px) {
  .numeros {
    grid-template-columns: repeat(3, 1fr);
  }
}
.numero {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-card);
  padding: 24px;
}
.numero .num {
  display: block;
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 8px;
}
.numero p {
  margin: 0;
  color: #d6e2ee;
}

/* ---------- Passos e cards ---------- */
.grade {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}
@media (min-width: 720px) {
  .grade-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grade-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
.card {
  background: var(--superficie);
  border: 1px solid var(--linha);
  border-radius: var(--r-card);
  padding: 24px;
}
.card .num.passo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--azul-claro);
  color: var(--azul);
  font-weight: 600;
  margin-bottom: 16px;
}
.card p:last-child {
  margin-bottom: 0;
}
.nota-rodape {
  margin-top: 24px;
  font-size: 14px;
  color: var(--ink-2);
}
.lista-check {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.lista-check li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
}
.lista-check li::before {
  content: '';
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--verde-claro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F7A5B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Inscrição ---------- */
.inscricao .wrap {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .inscricao .wrap {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}
.painel {
  background: var(--superficie);
  border: 1px solid var(--linha);
  border-radius: var(--r-painel);
  padding: 24px;
}
@media (min-width: 720px) {
  .painel {
    padding: 32px;
  }
}
.campo {
  margin-bottom: 24px;
  border: 0;
  padding: 0;
  min-width: 0;
}
.campo > label,
.campo > legend {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  padding: 0;
}
.campo .ajuda {
  display: block;
  font-size: 14px;
  color: var(--ink-2);
  margin: -4px 0 8px;
  font-weight: 400;
}
.opcional {
  font-weight: 400;
  color: var(--ink-2);
  font-size: 14px;
}
input[type='email'],
input[type='text'],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--linha);
  border-radius: var(--r-btn);
  background: var(--superficie);
  color: var(--ink);
  font: 400 16px/1.4 var(--sans);
}
textarea {
  min-height: 112px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--azul);
  outline: 2px solid var(--azul-claro);
}
[aria-invalid='true'] {
  border-color: var(--erro) !important;
}
.erro-campo {
  display: block;
  color: var(--erro);
  font-size: 14px;
  margin-top: 4px;
}
/* Escolhas em pílula (rádio estilizado) */
.opcoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.opcoes.coluna {
  flex-direction: column;
}
.opcao {
  position: relative;
}
.opcao input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.opcao span {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--linha);
  border-radius: var(--r-btn);
  background: var(--superficie);
  font-size: 15px;
  cursor: pointer;
}
.opcao input:checked + span {
  border-color: var(--azul);
  background: var(--azul-claro);
  color: var(--azul-escuro);
  font-weight: 600;
}
.opcao input:focus-visible + span {
  outline: 3px solid var(--azul);
  outline-offset: 2px;
}
.escala .opcao span {
  justify-content: center;
  min-width: 48px;
  font-family: var(--mono);
}
.escala-legenda {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 4px;
  max-width: 296px;
}
.consentimento {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  margin-bottom: 24px;
}
.consentimento input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--azul);
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.turnstile {
  min-height: 65px;
  margin-bottom: 16px;
}
.alerta {
  border-radius: var(--r-btn);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 15px;
  background: #f8e6e3;
  color: var(--erro);
}

/* Passo a passo depois da inscrição */
.passos {
  list-style: none;
  counter-reset: passo;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 16px;
}
.passos li {
  counter-increment: passo;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
}
.passos li::before {
  content: counter(passo);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--azul);
  color: #fff;
  font: 600 16px var(--mono);
}
.passos h3 {
  font-size: 18px;
  margin: 8px 0 4px;
}
.passos p {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--ink-2);
}
.passos .btn {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 15px;
}
.sucesso-topo {
  display: flex;
  gap: 12px;
  align-items: center;
}
.sucesso-topo::before {
  content: '';
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--verde-claro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F7A5B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.sucesso-topo h2 {
  font-size: 26px;
  margin: 0;
}
.aviso {
  background: var(--fundo);
  border-radius: var(--r-btn);
  padding: 12px 16px;
  font-size: 15px;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
}
.faq details {
  border-bottom: 1px solid var(--linha);
  padding: 16px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font: 400 24px/1 var(--mono);
  color: var(--azul);
}
.faq details[open] summary::after {
  content: '−';
}
.faq details p {
  margin: 12px 0 0;
  color: var(--ink-2);
}

/* ---------- Rodapé ---------- */
footer {
  border-top: 1px solid var(--linha);
  padding: 40px 0 96px;
  font-size: 14px;
  color: var(--ink-2);
}
footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 16px 0;
}
footer a {
  color: var(--ink-2);
}

/* ---------- Aviso de cookies ---------- */
.cookies {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  max-width: 560px;
  margin: 0 auto;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-card);
  padding: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  font-size: 14px;
}
.cookies[hidden] {
  display: none;
}
.cookies p {
  margin: 0;
  flex: 1 1 260px;
}
.cookies a {
  color: #fff;
}
.cookies .acoes {
  display: flex;
  gap: 8px;
}
.cookies .btn {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
}
.cookies .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.cookies .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}
.cookies .btn-primary {
  background: #fff;
  color: var(--ink);
}

/* Aviso "Abra no Safari" do navegador interno no iPhone (assets/app-link.js). */
.sheet-fundo {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(28, 34, 48, 0.55);
  padding: 16px;
}
.sheet-fundo[hidden] {
  display: none;
}
.sheet {
  width: 100%;
  max-width: 480px;
  background: var(--superficie);
  color: var(--ink);
  border-radius: var(--r-painel);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sheet h2 {
  margin: 0;
  font-size: 1.375rem;
}
.sheet p {
  margin: 0;
}
.sheet-fechar {
  background: none;
  border: 0;
  padding: 8px;
  font: inherit;
  color: var(--ink-2);
  text-decoration: underline;
  cursor: pointer;
}

/* Chamada final para o app. */
.cta-final {
  text-align: center;
}
.cta-final .hero-ctas {
  justify-content: center;
}
