/* Terços Para Celular — site institucional
   Paleta espelhada de src/theme/index.js, para o site e o app parecerem a mesma coisa. */

:root {
  --bg: #f5f9ff;
  --card: #ffffff;
  --border: #e2ebf8;
  --blue900: #0b2a5b;
  --blue700: #1552b0;
  --blue600: #1f6feb;
  --blue100: #dce9ff;
  --blue50: #f2f7ff;
  --text: #10203a;
  --muted: #5b7191;
  --gold: #e8a700;

  --largura: 940px;
  --radius: 16px;
  --sombra: 0 1px 2px rgba(11, 42, 91, 0.04), 0 8px 24px rgba(11, 42, 91, 0.06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

h1, h2, h3 { font-family: Trocchi, Georgia, "Times New Roman", serif; font-weight: 400; }

a { color: var(--blue700); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── Cabeçalho ───────────────────────────────────────────────────────────── */

.cabecalho {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.cabecalho .conteiner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Trocchi, Georgia, serif;
  font-size: 18px;
  color: var(--blue900);
}
.marca:hover { text-decoration: none; }

.quadrado {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--blue700), var(--blue900));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.navegacao { display: flex; gap: 22px; font-size: 15px; }
.navegacao a { color: var(--muted); }
.navegacao a:hover { color: var(--blue700); }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero { padding: 68px 0 56px; text-align: center; }

.hero .cruz { font-size: 34px; color: var(--gold); line-height: 1; }

.hero h1 {
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.15;
  margin: 18px 0 0;
  color: var(--blue900);
  letter-spacing: -0.01em;
}

.hero .subtitulo {
  max-width: 620px;
  margin: 18px auto 0;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
}

.filete {
  width: 64px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
  margin: 26px auto 0;
}

/* ── Botões de loja ──────────────────────────────────────────────────────── */

.lojas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.botao {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--blue700);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--blue700);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.botao:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(21, 82, 176, 0.28);
}

.botao.secundario {
  background: var(--card);
  color: var(--blue900);
  border-color: var(--border);
}
.botao.secundario:hover { box-shadow: var(--sombra); }

.gratuito {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

/* ── Grade de recursos ───────────────────────────────────────────────────── */

.secao { padding: 52px 0; }
.secao > h2 {
  font-size: clamp(26px, 4vw, 34px);
  color: var(--blue900);
  margin: 0 0 8px;
  text-align: center;
}
.secao > .apoio {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 38px;
  max-width: 560px;
}

.grade {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.recurso {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--sombra);
}

.recurso .icone {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--blue50);
  border: 1px solid var(--blue100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.recurso h3 { margin: 0 0 6px; font-size: 20px; color: var(--blue900); }
.recurso p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ── Faixa de destaque ───────────────────────────────────────────────────── */

.faixa {
  background: linear-gradient(150deg, var(--blue900), #061024);
  color: #f5f0e4;
  border-radius: 22px;
  padding: 46px 32px;
  text-align: center;
  margin: 8px 0;
}
.faixa h2 { color: #fff; margin: 0 0 10px; font-size: clamp(24px, 3.6vw, 32px); }
.faixa p { margin: 0 auto; max-width: 560px; color: rgba(245, 240, 228, 0.78); }
.faixa .lojas { margin-top: 28px; }
.faixa .botao { background: var(--gold); border-color: var(--gold); color: #241a00; }
.faixa .botao:hover { box-shadow: 0 8px 20px rgba(232, 167, 0, 0.32); }

/* ── Documentos (privacidade, termos, suporte) ───────────────────────────── */

.documento {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px clamp(22px, 5vw, 52px);
  margin: 40px 0 56px;
  box-shadow: var(--sombra);
}

.documento h1 {
  font-size: clamp(28px, 4.6vw, 38px);
  color: var(--blue900);
  margin: 0 0 4px;
}

.documento h2 {
  font-size: 21px;
  color: var(--blue900);
  margin: 38px 0 10px;
  padding-top: 4px;
}

.documento h3 { font-size: 18px; color: var(--blue700); margin: 24px 0 6px; }

.documento p, .documento li { color: #2a3c58; overflow-wrap: break-word; }

.documento code {
  background: var(--blue50);
  border: 1px solid var(--blue100);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.88em;
  overflow-wrap: break-word;
}
.documento ul, .documento ol { padding-left: 22px; }
.documento li { margin-bottom: 7px; }

.atualizado {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 0 26px;
}

.destaque {
  background: var(--blue50);
  border: 1px solid var(--blue100);
  border-left: 3px solid var(--blue600);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 8px;
}

.aviso {
  background: #fffaed;
  border: 1px solid #f5e2af;
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 18px 20px;
}

/* Tabela de dados */

.tabela-wrap { overflow-x: auto; margin: 16px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 520px;
}

th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--blue50);
  color: var(--blue900);
  font-weight: 600;
  white-space: nowrap;
}

tbody tr:last-child td { border-bottom: none; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 20px;
  margin-bottom: 10px;
}
details[open] { box-shadow: var(--sombra); }

summary {
  cursor: pointer;
  padding: 15px 0;
  font-weight: 600;
  color: var(--blue900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  color: var(--blue600);
  font-size: 21px;
  font-weight: 400;
  flex: none;
}
details[open] summary::after { content: "−"; }

details > p, details > ul { margin-top: 0; padding-bottom: 6px; color: #2a3c58; }

/* ── Rodapé ──────────────────────────────────────────────────────────────── */

.rodape {
  border-top: 1px solid var(--border);
  padding: 34px 0 46px;
  color: var(--muted);
  font-size: 14.5px;
}

.rodape .conteiner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
}

.rodape nav { display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 46px 0 38px; }
  .botao { width: 100%; justify-content: center; }
  .rodape .conteiner { flex-direction: column; align-items: flex-start; }

  /* "Terços Para Celular" + o menu não cabem lado a lado em 375px com o
     tamanho do desktop, e a marca quebrava em duas linhas. */
  .cabecalho .conteiner { gap: 10px; }
  .marca { font-size: 15px; gap: 8px; white-space: nowrap; }
  .quadrado { width: 26px; height: 26px; border-radius: 8px; }
  .navegacao { gap: 14px; font-size: 14px; }
}
