/* Site do Aprova — mesmos tokens do app. Uma cor de marca, tudo flat. */

:root {
  --bg: #ffffff;
  --card: #ffffff;
  --surface: #f7f7f7;
  --border: #e8e8e8;
  --text: #171717;
  --text2: #6b6b6b;
  --text3: #a3a3a3;
  --track: #ebebeb;
  --verde: #16a34a;
  --verde-text: #15803d;
  --verde-soft: #f0fdf4;
  --largura: 1060px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --card: #141414;
    --surface: #181818;
    --border: #262626;
    --text: #f5f5f5;
    --text2: #a3a3a3;
    --text3: #6f6f6f;
    --track: #2a2a2a;
    --verde-text: #4ade80;
    --verde-soft: #0f2b1b;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--verde-text); }

.conteiner { max-width: var(--largura); margin: 0 auto; padding: 0 24px; }

/* Cabeçalho -------------------------------------------------------------- */

.cabecalho {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.cabecalho .conteiner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.marca {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 17px; letter-spacing: -0.02em;
  color: var(--text); text-decoration: none;
}
.marca span.quadrado {
  width: 28px; height: 28px; border-radius: 8px; background: var(--verde);
  display: inline-flex; align-items: center; justify-content: center;
}
.navegacao { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.navegacao a {
  padding: 8px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--text2); text-decoration: none;
}
.navegacao a:hover { background: var(--surface); }
@media (max-width: 720px) { .navegacao a.oculta-mobile { display: none; } }

/* Tipografia ------------------------------------------------------------- */

h1 {
  font-size: clamp(32px, 6vw, 50px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 18px;
  text-wrap: balance;
}
h2 {
  font-size: clamp(24px, 3.6vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 14px;
  text-wrap: balance;
}
h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 8px; }
p { margin: 0 0 16px; color: var(--text2); }
p.destaque { font-size: 18px; line-height: 1.65; }
.olho {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--verde-text);
  background: var(--verde-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}

/* Blocos ----------------------------------------------------------------- */

section { padding: 72px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: 0; }
.hero { padding: 64px 0 76px; }
.hero .colunas { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 860px) {
  .hero .colunas { grid-template-columns: 1fr; gap: 36px; }
  section { padding: 56px 0; }
}

.grade { display: grid; gap: 18px; }
.grade.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grade.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .grade.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grade.c2, .grade.c3 { grid-template-columns: 1fr; } }

.cartao {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.cartao p:last-child { margin-bottom: 0; }
.cartao .icone {
  width: 42px; height: 42px; border-radius: 11px; background: var(--verde-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}

.botoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 54px; padding: 0 26px; border-radius: 14px;
  background: var(--verde); color: #fff; text-decoration: none;
  font-size: 16px; font-weight: 700;
}
.botao:hover { opacity: 0.92; }
.botao.fantasma { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.botao small { display: block; font-size: 10.5px; font-weight: 600; opacity: 0.8; line-height: 1.2; }
.botao .rotulo { text-align: left; line-height: 1.15; }

.selos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; list-style: none; padding: 0; }
.selos li {
  font-size: 12.5px; font-weight: 600; color: var(--text2);
  background: var(--surface); border: 1px solid var(--border);
  padding: 7px 13px; border-radius: 999px;
}

.numeros { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 30px; }
.numeros b { display: block; font-size: 27px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.numeros span { font-size: 13px; color: var(--text2); }

/* Passos, FAQ ------------------------------------------------------------ */

ol.passos { counter-reset: passo; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
ol.passos li { counter-increment: passo; display: flex; gap: 16px; align-items: flex-start; }
ol.passos li::before {
  content: counter(passo);
  flex: none; width: 30px; height: 30px; border-radius: 999px;
  background: var(--verde); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
}

details {
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--card); padding: 18px 20px; margin-bottom: 12px;
}
details summary {
  cursor: pointer; font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; color: var(--verde-text); font-size: 22px; font-weight: 700; line-height: 1; }
details[open] summary::after { content: '−'; }
details p { margin: 14px 0 0; }
details p:last-child { margin-bottom: 0; }

/* Texto corrido (privacidade, termos) ------------------------------------ */

.documento { max-width: 720px; padding: 56px 0 72px; }
.documento h2 { font-size: 21px; margin: 40px 0 12px; }
.documento h3 { margin-top: 26px; }
.documento p, .documento li { color: var(--text2); }
.documento ul { padding-left: 22px; margin: 0 0 16px; }
.documento li { margin-bottom: 8px; }
.documento .atualizado { font-size: 13px; color: var(--text3); }
.documento table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 14px; }
.documento th, .documento td {
  text-align: left; padding: 11px 12px 11px 0;
  border-bottom: 1px solid var(--border); vertical-align: top;
}
.documento th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text3); }
.documento td { color: var(--text2); }

/* Rodapé ----------------------------------------------------------------- */

.rodape { border-top: 1px solid var(--border); padding: 40px 0; }
.rodape .conteiner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.rodape nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 18px; }
.rodape a { color: var(--text2); text-decoration: none; font-size: 14px; font-weight: 600; }
.rodape a:hover { color: var(--verde-text); }
.rodape p { margin: 0; font-size: 13px; color: var(--text3); }

/* Mock do app ------------------------------------------------------------ */

.telefone { display: flex; justify-content: center; }
.telefone svg { width: 100%; max-width: 300px; height: auto; }

.pular-para {
  position: absolute; left: -9999px;
  background: var(--verde); color: #fff; padding: 12px 18px; border-radius: 0 0 12px 0; z-index: 50;
}
.pular-para:focus { left: 0; top: 0; position: fixed; }
