/* Estilo das páginas de comparativo. FONTE ÚNICA.
 *
 * Antes disto, as 12 páginas em public/comparativos/ carregavam cada uma sua
 * cópia inline do mesmo CSS. Elas já tinham divergido em 7 variantes: os links
 * eram estilizados de três maneiras diferentes e três páginas não estilizavam
 * link nenhum. Toda correção custava doze edições em arquivos que não eram mais
 * iguais, e por isso uma sempre ficava pra trás.
 *
 * Base: financas-casal-sem-brigar (a mais completa), mais 6 seletores que só
 * existiam em outras páginas. As 3 regras de link divergentes (`a`, `main a`,
 * `main a:hover`) foram DESCARTADAS em favor de `p a, li a`, que era a maioria.
 * Isso muda visualmente as páginas de imposto de renda e de planilha, o que é
 * o objetivo: elas estavam diferentes das outras dez.
 */

/* ── Fonte local ────────────────────────────────────────────────────────────
 * Antes vinha de fonts.googleapis.com: requisição a terceiro no caminho
 * crítico, bloqueando render. Numa página que argumenta sobre privacidade,
 * cada visita avisava o Google. O unicode-range faz o navegador baixar só o
 * subconjunto que a página usa; pra PT-BR isso é `latin`.
 */
@font-face { font-family: Manrope; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/manrope-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/manrope-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/manrope-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/manrope-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/manrope-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/manrope-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/manrope-800-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/manrope-800-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

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

:root {
  /* Paleta Private Vault. A página é escura por decisão, não por falta de tema
   * claro: o produto que ela vende é escuro. `color-scheme` declara isso pro
   * navegador, senão barra de rolagem e controles nativos continuam claros. */
  color-scheme: dark;
  --bg: #0a122a;
  --surface: #131a33;
  --surface-2: #171e37;
  --border: rgba(255,255,255,0.07);
  --text: #dbe1ff;
  --text-muted: rgba(219,225,255,0.55);
  --accent: #4edea3;
  --accent-dim: rgba(78,222,163,0.12);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
}

/* Foco visível: as páginas não tinham nenhum, então quem navega por teclado
 * dependia do anel padrão do navegador sobre cores customizadas. WCAG 2.4.7. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,18,42,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo img { width: 32px; height: 32px; }
.logo-name { font-size: 1.1rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
/* 0.75rem = 12px. Era 0.65rem (10,4px), abaixo do piso de 11px pra texto
 * funcional: a assinatura da marca ilegível em tela densa e viewport pequeno. */
.logo-sub { font-size: 0.75rem; color: var(--accent); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; display: block; margin-top: -2px; }
.back-link { display: flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; font-weight: 600; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.back-link:hover { color: var(--accent); }

main { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent-dim); border: 1px solid rgba(78,222,163,0.25);
  color: var(--accent); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.35rem 0.9rem; border-radius: 100px; margin: 3.5rem 0 1.25rem;
}
h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.18; margin-bottom: 1.5rem; }
.lead { font-size: 1.15rem; color: var(--text); border-left: 2px solid var(--accent); padding-left: 1.1rem; margin-bottom: 2.5rem; }
.lead strong { color: var(--accent); font-weight: 700; }

h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; margin: 3rem 0 1rem; }
h3 { font-size: 1.05rem; font-weight: 700; color: var(--accent); margin: 2rem 0 0.5rem; }
p { color: var(--text-muted); margin-bottom: 1.1rem; }
p strong, li strong { color: var(--text); font-weight: 700; }
ul { margin: 0 0 1.25rem 1.2rem; color: var(--text-muted); }
ul li { margin-bottom: 0.5rem; }
/* Canônico. Substitui `a`, `main a` e `main a:hover`, que existiam em duas
 * páginas isoladas e faziam os links delas parecerem de outro site. */
p a, li a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(78,222,163,0.35); }
p a:hover, li a:hover { border-bottom-color: var(--accent); }

/* padding: o detector apontou os filhos encostados na borda do contêiner
 * rolável nas 12 páginas. */
.table-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; border: 1px solid var(--border); border-radius: 14px; padding: 0.5rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 460px; }
/* duas páginas tinham 560px por terem mais colunas; virou modificador em vez
 * de divergência silenciosa no CSS de cada uma. */
table.largo { min-width: 560px; }
th, td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface-2); color: var(--text); font-weight: 700; font-size: 0.8rem; }
thead th:first-child { background: transparent; }
tbody th { color: var(--text); font-weight: 600; }
tbody th[scope="row"] { background: transparent; color: var(--text); font-weight: 600; }
tbody td { color: var(--text-muted); }
tbody td:first-child { color: var(--text); font-weight: 600; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: none; }
.col-eq { color: var(--accent) !important; font-weight: 700; }
.col-alert { color: var(--accent) !important; font-weight: 700; }
.col-plain { color: var(--text-muted) !important; font-weight: 400; }
.table-note { font-size: 0.8rem; color: var(--text-muted); font-style: italic; margin-bottom: 2rem; }

.callout { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem 1.5rem; margin: 1.5rem 0 2rem; }
.callout strong { color: var(--accent); }

figure.shot { margin: 1.75rem 0 2.25rem; }
figure.shot img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); display: block; }
figure.shot figcaption { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.6rem; text-align: center; }

.faq { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 1.25rem; }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 700; color: var(--text); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: '–'; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq p { padding: 1rem 0 1.1rem; margin: 0; }

.cta { text-align: center; margin: 3.5rem 0 1rem; }
.cta a { display: inline-block; background: var(--accent); color: #04221a; font-weight: 800; font-size: 1rem; padding: 0.9rem 2rem; border-radius: 100px; text-decoration: none; transition: transform 0.15s; }
.cta a:hover { transform: translateY(-2px); text-decoration: none; }
.cta-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.9rem; }

.byline { color: var(--text-muted); font-size: 0.85rem; margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.byline a { color: var(--accent); text-decoration: none; }
.byline a:hover { text-decoration: underline; }

footer { border-top: 1px solid var(--border); margin-top: 4rem; padding: 2rem; text-align: center; }
footer p { color: var(--text-muted); font-size: 0.85rem; }
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--accent); }

@media (max-width: 600px) {
  header { padding: 0.875rem 1rem; }
  .eyebrow { margin-top: 2.5rem; }
}

/* Quem pediu menos movimento continua tendo a mudança de estado, só sem o
 * deslocamento. Não zera tudo com 0.01ms, que mataria o retorno visual. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta a:hover { transform: none; }
  .back-link, .cta a { transition: none; }
}
