/* Identidade do Cadenvia, alinhada com prototype/index.html e legal-site/assets/privacy.css. */

:root {
  --bg: #f7f8ff;
  --surface: #ffffff;
  --surface-soft: #eff1ff;
  --text: #17182b;
  --muted: #5f637c;
  --line: #dfe2f2;
  --brand: #6259e8;
  --brand-strong: #473cc7;
  --brand-soft: #ebeaff;
  --accent: #12a88b;
  --gold-soft: #fff2c7;
  --gold-ink: #8a5b00;
  --radius: 18px;
  --radius-lg: 30px;
  --shadow: 0 18px 44px rgba(35, 28, 73, .10), 0 2px 8px rgba(35, 28, 73, .06);
  --largura: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1020;
    --surface: #191b31;
    --surface-soft: #21243f;
    --text: #f2f3ff;
    --muted: #a6a9c4;
    --line: #2c2f4c;
    --brand: #8d86ff;
    --brand-strong: #a79fff;
    --brand-soft: #262a4a;
    --gold-soft: #3a3116;
    --gold-ink: #f0cf88;
    --shadow: 0 18px 44px rgba(0, 0, 0, .38);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

.envolve {
  width: min(100% - 40px, var(--largura));
  margin-inline: auto;
}

/* Cabeçalho */

.topo {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topo .envolve {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.marca {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
  color: inherit;
}

.marca-simbolo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #fff;
  font-size: 19px;
}

.idiomas {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.idiomas button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
  cursor: pointer;
}

.idiomas button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--brand-strong);
  box-shadow: 0 1px 3px rgba(35, 28, 73, .12);
}

/* Herói */

.heroi {
  padding: 76px 0 64px;
  text-align: center;
}

.sobrancelha {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sobrancelha::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

h1 {
  margin: 16px 0 0;
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 800;
}

.chamada {
  max-width: 620px;
  margin: 18px auto 0;
  font-size: clamp(1.02rem, 2.1vw, 1.18rem);
  color: var(--muted);
}

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

.botao {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease;
}

@media (prefers-reduced-motion: reduce) { .botao { transition: none; } }

.botao:hover { transform: translateY(-1px); }
.botao:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.botao-principal {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
}

.botao-secundario {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

.aviso-lojas {
  margin-top: 14px;
  font-size: .86rem;
  color: var(--muted);
}

/* Secções */

section { padding: 56px 0; }

h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  letter-spacing: -.02em;
  font-weight: 800;
}

.intro-seccao {
  margin: 0 0 30px;
  color: var(--muted);
  max-width: 640px;
}

.grelha {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}

.cartao {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.cartao h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
}

.cartao p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

.simbolo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 800;
  font-size: 15px;
}

/* Trilha de níveis */

.niveis {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.nivel {
  flex: 1 1 140px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.nivel strong {
  display: block;
  color: var(--brand-strong);
  font-size: 1.15rem;
}

.nivel span {
  color: var(--muted);
  font-size: .85rem;
}

/* Destaque de privacidade */

.destaque {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
}

.destaque ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.destaque li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--muted);
}

.visto {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
}

/* Assinatura */

.preco {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
}

.plano {
  flex: 1 1 230px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.plano.melhor { border-color: var(--brand); }

.etiqueta {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.plano .valor {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.plano .periodo { color: var(--muted); font-size: .9rem; }

.miudinho {
  margin-top: 18px;
  font-size: .84rem;
  color: var(--muted);
}

/* Rodapé */

footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 46px;
  color: var(--muted);
  font-size: .9rem;
}

footer .envolve {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

footer a { color: var(--brand-strong); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Idioma: mostra-se um de cada vez, sem depender de JavaScript para o primeiro render.
   Os botões do seletor usam data-trocar, e não data-idioma, para não serem apanhados
   por esta regra — senão quem abre em português nunca via o botão para mudar. */
[data-idioma] { display: none; }
[data-idioma].ativo { display: initial; }
li[data-idioma].ativo { display: flex; }
div[data-idioma].ativo,
section[data-idioma].ativo { display: block; }
