/* Edviga — site (Cartão W1). Tokens de docs/DESIGN_MPX.md. Sem framework, sem rastreador, fontes self-hosted. */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/outfit-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
}

:root {
  --bg: #040405;
  --surface: #0a0a0c;
  --surface-card: #16161a;
  --line: #222228;
  --text: #f0f0ee;
  --text-2: #9a9aa0;
  --accent: #c8ff00;
  --on-accent: #040405;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-sans: 'IBM Plex Sans', system-ui, sans-serif;
  --tracking-tight: -0.03em;
  --tracking-wide: 0.08em;
  --raio: 14px;
  --largura: 1120px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
.pular {
  position: absolute;
  left: -9999px;
}
.pular:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 12px;
  border-radius: 8px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.envoltorio {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 0 20px;
}

/* Topo */
.topo {
  border-bottom: 1px solid var(--line);
}
.topo .envoltorio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.marca {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
}
.marca b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: var(--tracking-tight);
}
.marca b i {
  color: var(--accent);
  font-style: normal;
}
.marca small {
  color: var(--text-2);
  font-size: 13px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.menu {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
}
.menu a {
  text-decoration: none;
  color: var(--text-2);
}
.menu a:hover {
  color: var(--text);
}
.menu a.botao,
.menu a.botao:hover {
  color: var(--on-accent);
}
.menu .idioma {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  color: var(--text);
}
@media (max-width: 720px) {
  .menu .secao {
    display: none;
  }
}

/* Botões */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.botao:hover {
  filter: brightness(0.92);
}
.botao.pequeno {
  min-height: 40px;
  padding: 0 18px;
  font-size: 15px;
}

/* Abertura */
.abertura {
  padding: 72px 0 48px;
  text-align: center;
}
.selo {
  display: inline-block;
  font-size: 13px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  margin: 0;
}
h1 {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 800;
}
h1 i {
  color: var(--accent);
  font-style: normal;
}
.abertura p {
  max-width: 640px;
  margin: 20px auto 32px;
  color: var(--text-2);
  font-size: 19px;
}
.nota {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-2);
}
.vitrine {
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
}
.vitrine img {
  border: 1px solid var(--line);
  border-radius: var(--raio);
}
.vitrine .celular {
  width: 220px;
  border-radius: 24px;
}
@media (max-width: 720px) {
  .vitrine {
    grid-template-columns: 1fr;
  }
  .vitrine .painel {
    display: none;
  }
  .vitrine .celular {
    margin: 0 auto;
    width: 260px;
  }
}

/* Seções */
section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
h2 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 700;
  margin-bottom: 32px;
}
.grade {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 860px) {
  .grade {
    grid-template-columns: 1fr;
  }
}
.cartao {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--raio);
  padding: 24px;
}
.cartao h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.cartao p {
  margin: 0;
  color: var(--text-2);
}
.passo {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}

/* Preço */
.preco {
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
  padding: 36px 28px;
}
.preco .valor {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  line-height: 1;
}
.preco .valor small {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-2);
}
.preco ul {
  text-align: left;
  margin: 24px 0 28px;
  padding: 0 0 0 20px;
  color: var(--text-2);
}

/* FAQ */
details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
}
details p {
  margin: 12px 0 0;
  color: var(--text-2);
}

/* Rodapé */
.rodape {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--text-2);
}
.rodape .envoltorio {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
}
.rodape nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

/* Ferramenta "Veja o DRE do seu extrato" */
.ferramenta {
  border-top: 0;
}
.ferramenta h1 {
  font-size: clamp(34px, 6vw, 60px);
  margin-bottom: 16px;
}
.ferramenta .lead {
  color: var(--text-2);
  font-size: 18px;
  max-width: 640px;
  margin-bottom: 28px;
}
.oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.seletor {
  cursor: pointer;
}
.seletor:has(+ .oculto:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.aviso {
  min-height: 1.5em;
  margin: 20px 0;
}
.tabela-rolagem {
  overflow-x: auto;
  margin-bottom: 28px;
}
table.dre {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--raio);
  font-variant-numeric: tabular-nums;
}
table.dre caption {
  text-align: left;
  color: var(--text-2);
  padding-bottom: 8px;
}
table.dre th,
table.dre td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}
table.dre th:first-child {
  text-align: left;
}
table.dre thead th {
  color: var(--text-2);
  font-weight: 600;
}
table.dre tfoot th,
table.dre tfoot td {
  font-weight: 700;
  border-bottom: 0;
}
.positivo {
  color: var(--accent);
}
.negativo {
  color: #ff8a80;
}

/* Artigos (cartão LONGO-24/11, item 4) */
.artigo {
  padding: 48px 0 64px;
}
.artigo .envoltorio {
  max-width: 720px;
}
.artigo h1 {
  font-size: clamp(28px, 6vw, 40px);
  margin-bottom: 12px;
}
.artigo .lead {
  color: var(--text-2);
  margin-bottom: 32px;
}
.artigo h2 {
  font-size: 22px;
  margin: 32px 0 12px;
}
.artigo p,
.artigo li {
  line-height: 1.65;
}
.artigo ul,
.artigo ol {
  padding-left: 22px;
  margin: 0 0 16px;
}
.artigo li {
  margin-bottom: 8px;
}
.artigo a:not(.botao) {
  text-decoration: underline;
}
.chamada {
  margin: 40px 0 24px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface-card);
  border-radius: 12px;
}
.chamada h2 {
  margin-top: 0;
}
.lista-artigos {
  list-style: none;
  padding: 0;
}
.lista-artigos li {
  margin-bottom: 24px;
}
.lista-artigos a {
  font-size: 20px;
  font-weight: 600;
}
/* No celular o link "Artigos" do topo não cabe ao lado de idioma e "Começar"; fica no rodapé. */
@media (max-width: 560px) {
  .menu .largo {
    display: none;
  }
}
