:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #16202c;
  --muted: #5a6675;
  --line: #e2e6ec;
  --brand: #0f6d5f;
  --brand-ink: #ffffff;
  --brand-soft: #e3f2ef;
  --radius: 14px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1419;
    --surface: #161d24;
    --text: #e6ebf0;
    --muted: #9aa6b2;
    --line: #26303a;
    --brand: #3bb39f;
    --brand-ink: #06231e;
    --brand-soft: #173430;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--brand); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Topo */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.marca { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.marca svg { width: 32px; height: 32px; flex: none; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink);
  font-weight: 600; text-decoration: none; border: 0;
}
.btn:hover { filter: brightness(1.06); }
.btn.secundario { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn svg { width: 18px; height: 18px; }

/* Abertura */
.abertura { padding-top: 88px; padding-bottom: 72px; }
.abertura .selo {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-size: 14px; font-weight: 600;
}
.abertura h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.12; letter-spacing: -0.02em; margin: 18px 0 16px; max-width: 18ch; }
.abertura p { font-size: 19px; color: var(--muted); max-width: 60ch; margin: 0 0 28px; }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; }

/* Seções */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.01em; margin: 0 0 10px; }
.intro { color: var(--muted); max-width: 62ch; margin: 0 0 36px; }

.grade { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.cartao {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.cartao h3 { margin: 0 0 8px; font-size: 19px; }
.cartao p { margin: 0; color: var(--muted); font-size: 16px; }
.cartao .icone {
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 14px;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
}
.cartao .icone svg { width: 22px; height: 22px; }

.passos { counter-reset: passo; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.passos li { list-style: none; position: relative; padding-top: 44px; }
.passos li::before {
  counter-increment: passo; content: counter(passo);
  position: absolute; top: 0; left: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 700;
}
.passos h3 { margin: 0 0 6px; font-size: 18px; }
.passos p { margin: 0; color: var(--muted); font-size: 16px; }
ol.passos { padding: 0; margin: 0; }

.contato { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.contato dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 24px 0 0; }
.contato dt { color: var(--muted); }
.contato dd { margin: 0; }

/* Rodapé */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--muted); }

/* Páginas de texto (privacidade, termos) */
.doc { max-width: 760px; padding: 56px 20px 72px; margin: 0 auto; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 6px; letter-spacing: -0.01em; }
.doc .data { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc li { margin-bottom: 6px; }

@media (max-width: 640px) {
  .top nav { display: none; }
  .abertura { padding-top: 56px; padding-bottom: 48px; }
  section { padding: 48px 0; }
  .contato { padding: 24px; }
  .contato dl { grid-template-columns: 1fr; gap: 0; }
  .contato dd { margin-bottom: 10px; }
}
