/* ==========================================================================
   Controle de Renda — páginas de vendas
   Um arquivo para o site inteiro. Mudou aqui, mudou em todas as páginas.

   Cores: cópia de app/src/brand/tokens.ts (TEMA_ESCURO). Se a marca mudar,
   atualize LÁ primeiro e traga para cá de propósito — a área de membros é a
   fonte da verdade, e a página de vendas precisa ser contínua com ela.

   Ordem: 1 fontes · 2 tokens · 3 base · 4 layout · 5 tipografia · 6 botões
          7 componentes · 8 blocos de página · 9 utilitários · 10 responsivo
   ========================================================================== */

/* ── 1. Fontes ─────────────────────────────────────────────────────────────
   Auto-hospedadas. Buscar no CDN do Google custa três idas e voltas de rede
   antes de o texto aparecer. Subset `latin`: cobre U+0000–00FF, onde vivem
   todos os acentos do português.                                            */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ── 2. Tokens ─────────────────────────────────────────────────────────── */

:root {
  /* Superfícies. Preto quase puro faz o texto claro irradiar e fechar as
     contraformas do negrito; esta escala sobe o fundo o bastante para cortar o
     halo e mantém os mesmos degraus entre fundo, card e card elevado.
     Espelha app/src/index.css — mudou aqui, muda lá. */
  --base: #121815;
  --surface: #19211d;
  --surface-alt: #202a25;
  --line: #2b362e;
  --line-forte: #38473f;

  /* Texto. #e8efea dava 16:1 sobre o base — AAA pede 7:1, e o excesso é
     justamente o que irradia. Este fica em ~12:1. */
  --ink: #ccd6d0;
  --ink-medio: #97a69d;
  /* Texto pequeno: mantém pelo menos 4,5:1 também sobre surface-alt. */
  --ink-fraco: #8b9b91;

  /* Marca. `brand` é o preenchimento; `brand-ink` é para TEXTO no fundo
     escuro — o verde da marca puro só dá 4,0:1 e reprovaria. */
  --brand: #369b5f;
  --brand-hover: #43b26e;
  --brand-ink: #5cc183;
  --sobre-brand: #121815;
  --brand-fraco: rgba(54, 155, 95, 0.12);

  /* Acento laranja: uso pontual, reservado a oferta e destaque de preço. */
  --accent: #ff7c20;
  --accent-claro: #ff9735;
  --accent-fraco: rgba(255, 124, 32, 0.12);

  --alerta: #ffd52a;
  --positivo: #3ed675;
  --negativo: #e5555a;

  /* Tipografia */
  --fonte-titulo: 'Montserrat', 'Inter', Helvetica, Arial, sans-serif;
  --fonte-corpo: 'Inter', 'Montserrat', Helvetica, Arial, sans-serif;

  /* Ritmo vertical e medidas */
  --largura: 1120px;
  --largura-texto: 68ch;
  --raio: 14px;
  --raio-p: 8px;
  --sombra: 0 18px 48px -18px rgba(0, 0, 0, 0.7);
  --sombra-brand: 0 12px 32px -12px rgba(54, 155, 95, 0.45);

  color-scheme: dark;
}

/* ── 3. Base ───────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Compensa o cabeçalho fixo quando um link de âncora rola a página. */
  scroll-padding-top: 88px;
}

body {
  background: var(--base);
  color: var(--ink);
  font-family: var(--fonte-corpo);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* O `hidden` do HTML vale display:none no navegador, mas com especificidade
   baixíssima: qualquer `.classe { display: flex }` nossa o atropela em silêncio.
   Foi o que aconteceu com a faixa de cookies, que não sumia ao clicar em
   Aceitar. Esta regra vale para todo elemento com `hidden`, agora e depois. */
[hidden] {
  display: none !important;
}

a {
  color: var(--brand-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--brand-hover);
}

/* Foco visível de verdade — teclado precisa ver onde está. */
:focus-visible {
  outline: 3px solid var(--brand-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--brand);
  color: var(--sobre-brand);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ── 4. Layout ─────────────────────────────────────────────────────────── */

.env {
  width: 100%;
  max-width: var(--largura);
  margin-inline: auto;
  padding-inline: 20px;
}
.env-estreito {
  max-width: 760px;
}

.secao {
  padding-block: clamp(56px, 8vw, 104px);
}
.secao-curta {
  padding-block: clamp(36px, 5vw, 64px);
}
.secao-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

/* Grades. `auto-fit` + `minmax` evita media query para os casos comuns. */
.grade {
  display: grid;
  gap: 24px;
}
.grade-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grade-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grade-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Duas colunas com imagem ao lado do texto. */
.dupla {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .dupla {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .dupla-invertida > :first-child {
    order: 2;
  }
}

/* ── 5. Tipografia ─────────────────────────────────────────────────────── */

h1,
h2,
h3,
h4 {
  font-family: var(--fonte-titulo);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.35rem + 3vw, 3.4rem);
}
h2 {
  font-size: clamp(1.6rem, 1.15rem + 2.1vw, 2.5rem);
}
h3 {
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.4rem);
  font-weight: 700;
}
h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

p {
  text-wrap: pretty;
}
p + p {
  margin-top: 0.9em;
}

.olho {
  font-family: var(--fonte-titulo);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-ink);
  margin-bottom: 14px;
}

.chamada {
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.22rem);
  color: var(--ink-medio);
  max-width: var(--largura-texto);
}

.legenda {
  font-size: 0.88rem;
  color: var(--ink-fraco);
}

/* Citacao com barra lateral: destaca uma pergunta de leitor e a resposta sem
   pesar como cartao. Usada na abertura de "Em detalhe". */
.citacao-lateral {
  border-left: 3px solid var(--brand-ink);
  padding-left: 18px;
  max-width: var(--largura-texto);
}
.citacao-lateral p + p {
  margin-top: 0.6em;
}

.cabeca-secao {
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.cabeca-secao.centro {
  margin-inline: auto;
  text-align: center;
}
.cabeca-secao h2 + p {
  margin-top: 16px;
}

.destaque {
  color: var(--brand-ink);
}
.destaque-laranja {
  color: var(--accent-claro);
}

/* Nome do produto ocupando a primeira linha do H1. A promessa vem abaixo, na
   cor normal — o olho pega o produto primeiro e a frase depois. */
.titulo-produto {
  display: block;
}

strong,
b {
  font-weight: 600;
  color: var(--ink);
}

/* ── 6. Botões ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--fonte-titulo);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  padding: 16px 30px;
  border: 2px solid transparent;
  border-radius: var(--raio-p);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active {
  transform: translateY(1px);
}

/* Primário: um por tela. Se dois competem, nenhum vence. */
.btn-primario {
  background: var(--brand);
  color: var(--sobre-brand);
  box-shadow: var(--sombra-brand);
}
.btn-primario:hover {
  background: var(--brand-hover);
  color: var(--sobre-brand);
}

/* Compra. O laranja é reservado ao checkout — é o único lugar do site onde
   ele aparece como preenchimento, e é isso que o torna inconfundível. */
.btn-compra {
  background: var(--accent);
  color: #1a0d02;
  box-shadow: 0 12px 32px -12px rgba(255, 124, 32, 0.5);
}
.btn-compra:hover {
  background: var(--accent-claro);
  color: #1a0d02;
}

/* Secundário: contorno, nunca preenchido. */
.btn-secundario {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-forte);
}
.btn-secundario:hover {
  color: var(--ink);
  border-color: var(--brand-ink);
  background: var(--brand-fraco);
}

.btn-grande {
  font-size: clamp(1rem, 0.94rem + 0.35vw, 1.15rem);
  padding: 20px 40px;
  width: 100%;
}
@media (min-width: 560px) {
  .btn-grande {
    width: auto;
  }
}

.btn-bloco {
  width: 100%;
}

.acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 30px;
}
.acoes.centro {
  justify-content: center;
}
.acoes .btn {
  flex: 1 1 260px;
}
@media (min-width: 620px) {
  .acoes .btn {
    flex: 0 0 auto;
  }
}

/* Linha de apoio logo abaixo do botão: tira objeção no momento do clique. */
.sob-botao {
  font-size: 0.88rem;
  color: var(--ink-fraco);
  margin-top: 14px;
}

/* QR code do Telegram: só no desktop — quem olha a página no PC entra no
   Telegram pelo celular; no mobile o botão já resolve. */
.qrcode-telegram {
  display: none;
}
@media (min-width: 720px) {
  .qrcode-telegram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
  }
  .qrcode-telegram img {
    border-radius: 12px;
    border: 1px solid var(--line);
  }
}

/* QR code de contato: mesma ideia do QR do Telegram — só aparece no desktop.
   Quem está no celular já tem o telefone na mão e usa o botão. */
.qrcode-contato {
  display: none;
}
@media (min-width: 720px) {
  .qrcode-contato {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
  }
  .qrcode-contato img {
    border-radius: 12px;
    border: 1px solid var(--line);
  }
}

/* Faixa de logos de parceiros. Discreta de propósito: eles dão credibilidade,
   não são o assunto da página. */
.logos-parceiros {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 5vw, 48px);
  flex-wrap: wrap;
  margin-top: 26px;
  opacity: 0.85;
}
.logos-parceiros img {
  height: 26px;
  width: auto;
}

/* ── 7. Componentes ────────────────────────────────────────────────────── */

/* Cabeçalho */
.topo {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 18, 16, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topo-int {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.topo img {
  width: 168px;
  height: 52px;
  object-fit: contain;
}
.topo-acoes {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topo .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}
.topo-entrar {
  color: var(--ink-medio);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 14px;
}
.topo-entrar:hover {
  color: var(--ink);
}
/* "Criar<span> conta grátis</span>": o flex engole o espaço do span, então o
   gap do botão faz o papel de um espaço normal */
.topo .btn:has(.topo-longo) {
  gap: 0.28em;
  white-space: nowrap;
}

/* Menu do cabeçalho — só na home e nas páginas de conteúdo. As páginas de
   venda ficam sem ele de propósito, para não abrir saídas antes da compra. */
.topo-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: auto;
  margin-left: 12px;
}
.topo-menu a,
.topo-sub > button {
  color: var(--ink-medio);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.topo-menu a:hover,
.topo-sub > button:hover,
.topo-sub:focus-within > button {
  color: var(--ink);
  background: var(--surface-alt);
}
.topo-menu a[aria-current='page'],
.topo-sub-atual > button {
  color: var(--brand-ink);
}
.topo-sub {
  position: relative;
}
.topo-sub > button::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}
.topo-sub-lista {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  display: none;
  flex-direction: column;
  padding: 6px;
  margin-top: 6px;
  background: var(--surface);
  border: 1px solid var(--line-forte);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
/* Ponte invisível para o mouse não perder o hover no vão entre botão e lista */
.topo-sub-lista::before {
  content: '';
  position: absolute;
  inset: -8px 0 auto;
  height: 8px;
}
.topo-sub:hover .topo-sub-lista,
.topo-sub:focus-within .topo-sub-lista {
  display: flex;
}
.topo-sub-lista a {
  padding: 10px 12px;
}
/* Sem JS, hover/foco continuam funcionando. Com JS, o estado anunciado
   pelo botão também controla a lista, inclusive quando Escape a fecha. */
@media (min-width: 1001px) {
  .topo-menu[data-menu-pronto] .topo-sub .topo-sub-lista { display: none; }
  .topo-menu[data-menu-pronto] .topo-sub.sub-aberto .topo-sub-lista { display: flex; }
  .nav-longo { display: none; }
}
@media (max-width: 1000px) {
  .nav-curto { display: none; }
}
/* Botão ☰ — só aparece abaixo de 1000px, quando o menu sai da linha do topo.
   As três barras viram um X com o menu aberto (aria-expanded, via site.js). */
.topo-burguer {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  margin-left: 2px;
  color: var(--ink);
  background: none;
  border: 1px solid var(--line-forte);
  border-radius: var(--raio-p);
  cursor: pointer;
}
.topo-burguer span,
.topo-burguer span::before,
.topo-burguer span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.topo-burguer span {
  position: relative;
}
.topo-burguer span::before,
.topo-burguer span::after {
  content: '';
  position: absolute;
  left: 0;
}
.topo-burguer span::before {
  top: -6px;
}
.topo-burguer span::after {
  top: 6px;
}
.topo-burguer[aria-expanded='true'] span {
  background: transparent;
}
.topo-burguer[aria-expanded='true'] span::before {
  transform: translateY(6px) rotate(45deg);
}
.topo-burguer[aria-expanded='true'] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Abas dos indicadores (MacroBR · BTC · Breadth) — segunda linha do topo nas
   três páginas de indicadores, só abaixo de 1000px. No desktop o submenu
   "Indicadores" já faz esse papel. */
.topo-abas {
  display: none;
}

@media (max-width: 1000px) {
  .topo-burguer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
  }

  /* O mesmo <nav> do desktop vira um painel que desce abaixo do topo. Os
     links ficam num lugar só: mexeu no menu, mudou no desktop e no celular. */
  .topo-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - 120px); /* topo + abas */
    overflow-y: auto;
    padding: 8px 20px 20px;
    background: var(--base);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45);
  }
  .topo.menu-aberto .topo-menu {
    display: flex;
  }
  .topo-menu a {
    font-size: 1rem;
    padding: 12px 10px;
  }
  /* Indicadores em primeiro: é a parte do site que traz gente de volta */
  .topo-menu > .topo-sub:first-of-type {
    order: -1;
  }
  /* Submenus viram grupos já abertos — no toque não existe "passar o mouse" */
  .topo-sub {
    padding-block: 6px;
    border-bottom: 1px solid var(--line);
  }
  .topo-sub > button {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-fraco);
    padding: 10px 10px 4px;
    pointer-events: none;
  }
  .topo-sub > button::after {
    display: none;
  }
  .topo-sub-atual > button {
    color: var(--ink-fraco);
  }
  .topo-sub-lista,
  .topo-sub:hover .topo-sub-lista,
  .topo-sub:focus-within .topo-sub-lista {
    position: static;
    display: flex;
    min-width: 0;
    padding: 0;
    margin: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .topo-sub-lista::before {
    display: none;
  }
  .topo-sub-lista a {
    padding: 11px 10px 11px 18px;
  }
  .topo-menu a[aria-current='page'] {
    background: var(--brand-fraco);
  }

  .topo-abas {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 20px 8px;
    max-width: var(--largura);
    margin-inline: auto;
  }
  .topo-abas::-webkit-scrollbar {
    display: none;
  }
  .topo-abas a {
    flex: 1 0 auto;
    text-align: center;
    color: var(--ink-medio);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
  }
  .topo-abas a:hover {
    color: var(--ink);
    background: var(--surface-alt);
  }
  .topo-abas a[aria-current='page'] {
    color: var(--brand-ink);
    background: var(--brand-fraco);
    border-color: var(--brand);
  }
}

/* Com o menu aberto, a página atrás não rola */
html.menu-aberto {
  overflow: hidden;
}
@media (max-width: 520px) {
  .topo-entrar {
    display: none;
  }
  .topo img {
    width: 132px;
    height: 41px;
  }
  /* Nas páginas com menu, o celular mostra "Entrar" e "Criar" lado a lado */
  .topo:has(.topo-menu) .topo-entrar {
    display: inline-block;
    padding: 8px 6px;
  }
  .topo:has(.topo-menu) .topo-acoes {
    gap: 6px;
  }
  .topo:has(.topo-menu) .btn {
    padding: 9px 14px;
  }
  .topo-longo {
    display: none;
  }
  .topo-maiuscula {
    text-transform: capitalize;
  }
  .topo-burguer {
    width: 36px;
    height: 36px;
  }
  .topo-abas {
    padding-inline: 16px;
  }
  .topo-abas a {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
}
/* Celular estreito: logo, Entrar, Criar e ☰ precisam caber em ~320px */
@media (max-width: 380px) {
  .topo img {
    width: 112px;
    height: 35px;
  }
  .topo-int {
    gap: 10px;
  }
  .topo:has(.topo-menu) .topo-acoes {
    gap: 4px;
  }
  .topo:has(.topo-menu) .topo-entrar {
    padding-inline: 4px;
  }
  .topo:has(.topo-menu) .btn {
    padding-inline: 11px;
  }
  .topo-abas {
    gap: 3px;
  }
  .topo-abas a {
    font-size: 0.74rem;
    padding: 6px 7px;
  }
}

/* Etiqueta */
.etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--brand-fraco);
  color: var(--brand-ink);
  border: 1px solid rgba(54, 155, 95, 0.3);
}
.etiqueta-laranja {
  background: var(--accent-fraco);
  color: var(--accent-claro);
  border-color: rgba(255, 124, 32, 0.32);
}

/* Cartão */
.cartao {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--raio);
  padding: clamp(22px, 3vw, 32px);
}
.cartao-alt {
  background: var(--surface-alt);
}
.cartao h3 {
  margin-bottom: 10px;
}
.cartao p {
  color: var(--ink-medio);
  font-size: 0.97rem;
}
.cartao-ligado {
  transition: border-color 0.15s, transform 0.15s;
}
.cartao-ligado:hover {
  border-color: var(--line-forte);
  transform: translateY(-2px);
}

/* Ícone dentro do cartão */
.icone {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-fraco);
  color: var(--brand-ink);
  margin-bottom: 16px;
}
.icone svg {
  width: 22px;
  height: 22px;
}

/* Ícone e selo ("Planilha · grátis") lado a lado no topo do cartão, em vez do
   selo empilhado embaixo: a linha fica mais curta e o olho lê o tipo do item
   antes do nome dele. */
.cartao-selo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.cartao-selo .icone {
  margin-bottom: 0;
  flex: 0 0 auto;
}

/* Faixa de prova: os números logo abaixo da dobra, onde a dúvida nasce. */
.faixa-prova {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--raio);
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.faixa-prova > div {
  background: var(--surface);
  padding: 22px 24px;
}
.faixa-prova strong {
  display: block;
  font-family: var(--fonte-titulo);
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}
.faixa-prova span {
  font-size: 0.9rem;
  color: var(--ink-medio);
}

/* Lista de benefícios com marcador de check */
.lista-check {
  list-style: none;
  display: grid;
  gap: 14px;
}
.lista-check li {
  position: relative;
  padding-left: 34px;
  color: var(--ink-medio);
}
.lista-check li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.36em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-fraco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235CC183' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}
.lista-check strong {
  color: var(--ink);
}

/* Item de alerta numa lista-check: sininho laranja no lugar do check. */
.lista-check li.li-sino::before {
  background: var(--accent-fraco)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF7C20' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* Item de backtests numa lista-check: gráfico de barras laranja, par do sininho. */
.lista-check li.li-backtest::before {
  background: var(--accent-fraco)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF7C20' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v16a2 2 0 0 0 2 2h16'/%3E%3Cpath d='M18 17V9'/%3E%3Cpath d='M13 17V5'/%3E%3Cpath d='M8 17v-3'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* Lista de "não é para você" — o contraponto que aumenta confiança. */
.lista-x li::before {
  background: rgba(229, 85, 90, 0.12)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E5555A' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

/* Print de planilha em largura inteira.
   Screenshot de planilha só convence se der para LER. Numa coluna de ~530px o
   texto vira mancha, então estes vão na largura toda da seção — e o link abre o
   arquivo original, para quem quiser inspecionar de perto. */
.print {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--raio);
  overflow: hidden;
  background: var(--surface);
  line-height: 0;
}
.print img {
  width: 100%;
}
a.print {
  transition: border-color 0.15s;
}
a.print:hover {
  border-color: var(--brand-ink);
}
.print-legenda {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--ink-fraco);
  line-height: 1.5;
}
.print-lupa {
  color: var(--brand-ink);
  white-space: nowrap;
}

/* Depoimento em print de conversa */
.prints {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.prints img {
  width: 100%;
  border-radius: var(--raio-p);
  border: 1px solid var(--line);
  background: var(--surface);
}

/* Prova social legível, com as conversas originais disponíveis para ampliar. */
.depoimentos-texto {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.depoimento-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line-forte);
  border-radius: var(--raio);
  background: var(--surface);
}
.depoimento-card blockquote {
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 24px;
}
.depoimento-card figcaption { margin-top: auto; }
.depoimento-card figcaption strong,
.depoimento-card figcaption span { display: block; }
.depoimento-card figcaption span { font-size: 0.88rem; color: var(--ink-medio); }
.depoimento-card > a { margin-top: 16px; font-size: 0.9rem; }
.depoimentos-miniatura { background: var(--surface); }
.depoimentos-miniatura .depoimento-card {
  position: relative;
  padding-bottom: 26px;
  background: var(--base);
}
.depoimentos-miniatura .depoimento-card > a:not(.depoimento-mini) {
  align-self: flex-start;
  max-width: calc(100% - 90px);
}
.depoimentos-miniatura .depoimento-card > .depoimento-mini {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: block;
  width: 72px;
  height: 94px;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--line-forte);
  border-radius: 9px;
  background: #e9eee7;
  box-shadow: 0 5px 14px #0005;
  transition: transform .16s ease, border-color .16s ease;
}
.depoimentos-miniatura .depoimento-mini img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.depoimentos-miniatura .depoimento-mini:hover { transform: translateY(-3px); border-color: var(--brand-ink); }
.depoimentos-miniatura .depoimento-mini:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 3px; }
@media (max-width: 520px) {
  .depoimentos-miniatura .depoimento-card { padding-bottom: 22px; }
  .depoimentos-miniatura .depoimento-card > .depoimento-mini { right: 18px; bottom: 18px; }
}
.depoimentos-originais { margin-top: 28px; }
.depoimentos-originais summary {
  width: fit-content;
  padding: 12px 0;
  cursor: pointer;
  color: var(--brand-ink);
}
.depoimentos-originais .prints { margin-top: 16px; }
.prints .ampliar-print { text-align: center; font-size: 0.88rem; }
.prints .ampliar-print > span { display: block; padding: 10px 0; }
.depoimento-dialogo {
  margin: auto;
  width: min(460px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 16px;
  border: 1px solid var(--line-forte);
  border-radius: var(--raio);
  background: var(--surface);
  color: var(--ink);
}
.depoimento-dialogo::backdrop { background: rgba(0, 0, 0, 0.8); }
.depoimento-dialogo-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: -16px;
  padding-block: 4px;
  background: var(--surface);
}
.depoimento-dialogo h2 { font-size: 1rem; }
.depoimento-fechar {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-forte);
  border-radius: var(--raio-p);
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 1.8rem;
  cursor: pointer;
}
.depoimento-dialogo img { margin: 12px auto; }
.depoimento-abrir { display: block; padding-block: 10px; font-size: 0.9rem; }
html:has(.depoimento-dialogo[open], .vitrine-dialogo[open]) { overflow: hidden; }
@media (max-width: 800px) {
  .depoimentos-texto { grid-template-columns: 1fr; }
  .depoimento-card { padding: 22px; }
}

/* Os quatro benefícios têm o mesmo peso visual, inclusive no desktop. */
.grade-gratis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) {
  .grade-gratis { grid-template-columns: 1fr; }
}

.depoimento {
  border-left: 3px solid var(--brand);
  padding-left: 22px;
}
.depoimento blockquote {
  font-size: 1.08rem;
  color: var(--ink);
}
.depoimento cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--ink-fraco);
}
.depoimento cite strong {
  display: block;
  color: var(--ink-medio);
}

/* Fachada de vídeo: miniatura + botão. O iframe do YouTube custa ~800 KB e só
   entra quando a pessoa clica. Ver planejamento/01-arquitetura.md, regra 5. */
.video {
  position: relative;
  border-radius: var(--raio);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 16 / 9;
  cursor: pointer;
  width: 100%;
  padding: 0;
  display: block;
}
/* O mesmo conteúdo foi gravado duas vezes: 16:9 para o desktop e vertical para
   o celular. A capa é a mesma nos dois; o que troca é o vídeo que abre. */
.video-desktop {
  display: none;
}
@media (min-width: 720px) {
  .video-desktop {
    display: block;
  }
  .video-celular {
    display: none;
  }
}

.video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.6));
  pointer-events: none;
}
.video-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--play-vermelho);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s, background-color 0.15s;
  animation: bate-play 2.4s ease-in-out infinite;
}
/* O anel que expande. Fica no ::before para não brigar com o `transform` do
   próprio botão, que também é animado. */
.video-play::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid var(--play-vermelho);
  animation: pulso 2.4s ease-out infinite;
}
.video:hover .video-play {
  transform: translate(-50%, -50%) scale(1.1);
}
.video-play svg {
  width: 32px;
  height: 32px;
  fill: #fff;
  margin-left: 4px;
}

/* --- Play do vídeo e da vitrine: o que pulsa (15/09/2026) -----------------
   Escolhido entre três versões, por causa da queixa "o vídeo passa desatento":
   play vermelho que respira, anel que expande e capa um pouco mais escura.
   Vale para TODOS os vídeos das landing pages, para não existirem dois
   estilos de play no mesmo site.

   Custo: as duas animações mexem só em `transform` e `opacity`, que a placa de
   vídeo resolve sozinha — não refazem layout nem repintam a página. São ~40
   linhas de CSS, sem imagem nem script novo, e o navegador ainda para de
   animar o que sai da tela. Quem pediu menos animação no sistema não vê
   movimento nenhum: a regra global de `prefers-reduced-motion`, lá em cima,
   zera a duração de toda animação. */
:root {
  /* Vermelho de "play", reconhecido de qualquer lugar da página. Não é cor de
     marca: existe só para o botão de vídeo. */
  --play-vermelho: #e0281c;
}

/* O anel que expande, usado pelo play e pelas fachadas da vitrine. */
@keyframes pulso {
  0% {
    transform: scale(0.92);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
/* O botão respirando. Repare no `translate(-50%, -50%)` dentro do keyframe: o
   play é centralizado por transform, e uma animação de transform sem ele
   jogaria o botão para o canto. */
@keyframes bate-play {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.07);
  }
}

/* Play discreto: verde da marca, menor e parado.
   Para vídeo que não é o argumento da página — hoje, o depoimento do contador.
   Dar a ele o mesmo destaque do vídeo do produto tiraria atenção de quem
   realmente precisa. */
.video-discreto .video-play {
  width: 66px;
  height: 66px;
  background: var(--brand);
  box-shadow: var(--sombra-brand);
  animation: none;
}
.video-discreto .video-play::before {
  display: none;
}
.video-discreto:hover .video-play {
  background: var(--brand-hover);
}
.video-discreto .video-play svg {
  width: 24px;
  height: 24px;
  fill: var(--sobre-brand);
}
.video-discreto::after {
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.45));
}

/* Botão da vitrine: anel verde expandindo, escolhido em 15/09/2026 entre três
   versões. Mesma animação do play do vídeo, no verde da marca. */
.vitrine-fachada span {
  position: relative;
}
.vitrine-fachada span::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 999px;
  border: 2px solid var(--brand);
  animation: pulso 2s ease-out infinite;
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* FAQ — <details> nativo, zero JavaScript. */
.faq {
  display: grid;
  gap: 12px;
  max-width: 840px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--raio-p);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 54px 20px 22px;
  position: relative;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 22px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -8px;
  border-right: 2px solid var(--brand-ink);
  border-bottom: 2px solid var(--brand-ink);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -3px;
}
.faq summary:hover {
  background: var(--surface-alt);
}
.faq-corpo {
  padding: 0 22px 22px;
  color: var(--ink-medio);
  font-size: 0.97rem;
}
.faq-corpo p + p {
  margin-top: 0.8em;
}

/* Caixa de oferta */
.oferta {
  background: linear-gradient(180deg, var(--surface-alt), var(--surface));
  border: 2px solid var(--brand);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
  box-shadow: var(--sombra);
}
.oferta-itens {
  list-style: none;
  display: grid;
  gap: 10px;
  text-align: left;
  margin: 26px 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.oferta-itens li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.95rem;
  color: var(--ink-medio);
}
.oferta-itens li span:last-child {
  color: var(--ink-fraco);
  white-space: nowrap;
}
.oferta-itens .gratis span:last-child {
  color: var(--brand-ink);
  font-weight: 600;
}
.oferta-direta h2 {
  margin-top: 20px;
  font-size: clamp(1.45rem, 1.15rem + 1vw, 1.9rem);
}
.oferta-resumo { margin-top: 12px; color: var(--ink-medio); }
.oferta-direta .sob-botao { font-size: 0.94rem; }
.oferta-detalhes { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-forte); text-align: left; }
.oferta-detalhes h3 { font-size: 1.1rem; }
.oferta-detalhes .oferta-itens { border: 0; padding: 0; margin-block: 20px; }
.oferta-alternativa { margin-top: 24px; font-size: 0.94rem; color: var(--ink-medio); }
@media (max-width: 520px) {
  .oferta-direta .oferta-detalhes { margin-top: 20px; padding-top: 18px; }
  .oferta-direta .oferta-detalhes .oferta-itens { gap: 8px; margin-block: 14px; }
  .oferta-direta .oferta-detalhes .oferta-itens li {
    display: block;
    position: relative;
    padding-left: 19px;
    font-size: .88rem;
    line-height: 1.35;
  }
  .oferta-direta .oferta-detalhes .oferta-itens li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--brand-ink);
    font-weight: 700;
  }
  .oferta-direta .oferta-detalhes .oferta-itens li span:last-child { display: none; }
  .oferta-direta .oferta-detalhes .legenda { font-size: .84rem; line-height: 1.4; }
}

.funil-estado {
  max-width: 600px;
  margin-inline: auto;
  padding: 24px;
  border: 1px solid var(--line-forte);
  border-radius: var(--raio);
  background: var(--surface);
  color: var(--ink);
}
.funil-estado .acoes { margin-top: 16px; }

/* Ancoragem honesta: em vez de inventar um "de R$ X por R$ Y", compara o preço
   com o custo de NÃO ter a planilha, usando número verificável (alíquota da
   Receita, multa da IN 1.888). Fica acima do preço, onde a âncora ficaria. */
.ancora {
  text-align: left;
  background: var(--base);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--raio-p);
  padding: 18px 20px;
  margin-top: 26px;
  font-size: 0.95rem;
  color: var(--ink-medio);
}
.ancora strong {
  color: var(--ink);
}
.oferta-ancora { margin: 24px 0 0; }
.oferta-ancora ul { margin: 12px 0; padding-left: 20px; }
.oferta-ancora li + li { margin-top: 5px; }
.ancora-texto-mobile { display: none; }
@media (max-width: 520px) {
  .oferta-cripto .oferta-ancora,
  .oferta-mf .oferta-ancora {
    margin-top: 16px;
    padding: 12px 14px;
    font-size: .88rem;
    line-height: 1.45;
  }
  .oferta-cripto .oferta-ancora ul { margin: 7px 0 0; padding-left: 17px; }
  .oferta-cripto .oferta-ancora li + li { margin-top: 3px; }
  .oferta-cripto .ancora-texto-desktop,
  .oferta-mf .ancora-texto-desktop { display: none; }
  .oferta-cripto .ancora-texto-mobile,
  .oferta-mf .ancora-texto-mobile { display: inline; }
}
/* Frases curtas empilhadas respiram melhor com espaço menor que o do corpo. */
.ancora p + p {
  margin-top: 0.5em;
}
.ancora-fecho {
  margin-top: 14px !important;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.ancora b {
  color: var(--accent-claro);
  font-weight: 600;
}

.preco {
  margin: 24px 0 6px;
}
/* Preco antigo, riscado, acima do valor atual. Só entra quando o preço de
   antes existiu de verdade — ancoragem inventada queima confiança. */
.preco-antes {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-fraco);
  font-size: 1rem;
  text-decoration: line-through;
}
.preco-valor {
  display: block;
  font-family: var(--fonte-titulo);
  font-size: clamp(2.6rem, 2rem + 2.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.preco-valor small {
  font-size: 0.34em;
  font-weight: 700;
  color: var(--ink-medio);
  letter-spacing: 0;
}
.preco-parcela {
  display: block;
  margin-top: 10px;
  color: var(--ink-medio);
  font-size: 1rem;
}
.preco-parcela strong {
  color: var(--accent-claro);
}

/* Garantia */
.garantia {
  display: grid;
  gap: 26px;
  align-items: center;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--raio);
  padding: clamp(24px, 3.5vw, 40px);
}
@media (min-width: 720px) {
  .garantia {
    grid-template-columns: 150px 1fr;
  }
}
.garantia img {
  width: 150px;
  justify-self: center;
}

/* Rodapé */
.rodape {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: 52px 32px;
  font-size: 0.92rem;
  color: var(--ink-fraco);
}
.rodape-grade {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 36px;
}
.rodape h4 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-medio);
  margin-bottom: 14px;
}
.rodape ul {
  list-style: none;
  display: grid;
  gap: 9px;
}
.rodape a {
  color: var(--ink-fraco);
  text-decoration: none;
}
.rodape a:hover {
  color: var(--brand-ink);
  text-decoration: underline;
}
.rodape img {
  width: 156px;
  margin-bottom: 16px;
}

/* Redes sociais do rodape: icones no bloco da marca. Como links de texto eles
   formavam uma 5a coluna e a grade acima quebrava para uma segunda linha. */
.rodape-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.rodape-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-fraco);
  transition: color 0.15s, border-color 0.15s;
}
.rodape-social a:hover {
  color: var(--brand-ink);
  border-color: var(--brand-ink);
  text-decoration: none;
}
.rodape-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.rodape-base {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
}
.aviso-risco {
  margin-top: 30px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #56635c;
}
.aviso-risco p + p {
  margin-top: 0.7em;
}

/* Faixa de consentimento de cookies (LGPD) */
.cookies {
  position: fixed;
  z-index: 90;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 640px;
  margin-inline: auto;
  background: var(--surface-alt);
  border: 1px solid var(--line-forte);
  border-radius: var(--raio);
  padding: 18px 20px;
  box-shadow: var(--sombra);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--ink-medio);
}
.cookies p {
  flex: 1 1 260px;
}
.cookies .btn {
  padding: 10px 20px;
  font-size: 0.88rem;
}
@media (max-width: 520px) {
  .cookies {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px 14px;
    gap: 10px;
    line-height: 1.45;
  }
  .cookies .btn { min-height: 44px; }
}

/* ── 8. Blocos de página ───────────────────────────────────────────────── */

/* Herói. O brilho é um gradiente CSS, não uma imagem — custo zero de rede. */
.heroi {
  position: relative;
  padding-block: clamp(48px, 7vw, 92px) clamp(44px, 6vw, 80px);
  overflow: hidden;
}
.heroi::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -320px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(54, 155, 95, 0.16), transparent 65%);
  pointer-events: none;
}
/* H1 do herói é menor que o h1 global de propósito. Aqui ele carrega as
   palavras-chave (nome do produto + o que cobre), então corre longo — e a 3,4rem
   ele quebrava em cinco linhas e empurrava o botão de compra para fora da
   primeira tela. Título grande não vale um CTA invisível. */
.heroi h1 {
  font-size: clamp(1.85rem, 1.25rem + 2.1vw, 2.65rem);
  margin-bottom: 12px;
}
/* Subtítulo do herói. Existe para o H1 poder carregar as palavras-chave (nome
   do produto, o que ele cobre) sem perder a promessa — que é o que converte.
   Estilo deliberadamente subordinado: se competir com o H1, viram dois títulos
   e nenhum manda. */
.heroi h2 {
  font-size: clamp(1.15rem, 1rem + 0.75vw, 1.5rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--brand-ink);
  margin-bottom: 20px;
}
/* Quando o H1 já carrega o nome do produto em verde, o subtítulo sai da cor da
   marca: dois blocos verdes colados anulam um ao outro. Precisa vir DEPOIS da
   regra acima — mesma especificidade, quem vence é a última. */
.heroi-produto h2 {
  color: var(--ink-medio);
}
/* No desktop o nome do produto não quebra: "Planilha Mercado" numa linha e
   "Financeiro" na outra deixa o título torto. Para caber inteiro na coluna do
   herói, o H1 destas páginas é um pouco menor que o padrão. No celular a
   quebra volta a ser permitida — senão o nome estoura a tela. */
@media (min-width: 900px) {
  .heroi-produto h1 {
    font-size: clamp(1.9rem, 1.2rem + 1.5vw, 2.15rem);
  }
  .heroi-produto .titulo-produto {
    white-space: nowrap;
  }
}

/* Subtítulo com ícone à esquerda. O ícone fica no verde da marca mesmo quando
   o texto é neutro — é ele que carrega o destaque. */
.h2-icone {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.h2-icone > svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--brand-ink);
}
.heroi .etiqueta {
  margin-bottom: 22px;
}
.heroi-img {
  border-radius: var(--raio);
  border: 1px solid var(--line);
  background: var(--surface);
  width: 100%;
}

/* O bloco da virada: o curso ficou gratuito. É o maior ganho de conversão da
   reescrita — derruba o risco percebido antes de a pessoa ver o preço. */
.virada {
  background: linear-gradient(135deg, rgba(54, 155, 95, 0.14), rgba(54, 155, 95, 0.03));
  border: 1px solid rgba(54, 155, 95, 0.32);
  border-radius: var(--raio);
  padding: clamp(26px, 4vw, 44px);
}

/* Passo a passo numerado */
.passos {
  counter-reset: passo;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
/* Páginas de obrigado: mais respiro horizontal entre os passos — lá o passo
   a passo é o conteúdo principal da tela, não um bloco entre outros. Em
   layouts de 2 colunas o espaço extra é absorvido pela largura de cada
   coluna (minmax(...,1fr) estica para preencher), então o valor precisa ser
   bem maior que em grades comuns para o olho perceber a diferença. */
.passos-obrigado {
  column-gap: 120px;
}
.passos > li {
  counter-increment: passo;
  list-style: none;
  padding-top: 58px;
  position: relative;
}
.passos > li::before {
  content: counter(passo);
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--sobre-brand);
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 1.05rem;
}
.passos h3 {
  margin-bottom: 8px;
}
.passos p {
  color: var(--ink-medio);
  font-size: 0.97rem;
}

/* --- Passo a passo em trilha (15/09/2026) ---------------------------------
   Uma linha por passo, resumo curto, separadas por filete. Escolhido para a
   seção da planilha embedada da /planilha-crpt: ali o `.passos` de cartões
   ocupava meia tela e competia com a própria planilha. */
.passos-trilha {
  counter-reset: passo;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.passos-trilha > li {
  counter-increment: passo;
  list-style: none;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--ink-medio);
}
.passos-trilha > li::before {
  content: counter(passo);
  color: var(--brand);
  font-weight: 800;
  font-size: 0.95rem;
  text-align: right;
}
.passos-trilha strong {
  color: var(--ink);
}
@media (min-width: 900px) {
  .passos-trilha {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }
  /* Com duas colunas, o filete de cima já existe: some com o da última linha
     de cada coluna para não sobrar traço solto embaixo. */
  .passos-trilha > li:nth-last-child(-n + 1) {
    border-bottom: 0;
  }
}

/* Cartão de produto (home) */
.produto {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--raio);
  overflow: hidden;
}
.produto-topo {
  padding: 26px 26px 0;
}
.produto img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: var(--surface-alt);
  padding: 12px;
}
.produto-corpo {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 16px;
}
.produto-corpo .lista-check {
  gap: 10px;
  font-size: 0.94rem;
}
.produto-preco {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.produto-preco b {
  font-family: var(--fonte-titulo);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--ink);
}
.produto-preco span {
  color: var(--ink-fraco);
  font-size: 0.9rem;
}

/* Conteúdo em sanfona para seções longas, para não empurrar o preço para
   baixo demais. Reaproveita o visual do FAQ. */
.detalhes {
  display: grid;
  gap: 12px;
}

/* Tabela simples */
.tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.tabela th,
.tabela td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}
.tabela th {
  color: var(--ink-medio);
  font-weight: 600;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.rolagem {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Página legal / texto corrido */
.texto {
  max-width: var(--largura-texto);
}
.texto h2 {
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 12px;
}
.texto h3 {
  font-size: 1.05rem;
  margin-top: 26px;
  margin-bottom: 10px;
}
/* Texto corrido é menor que o resto do site: os 17px do corpo servem para
   blocos curtos de venda, mas cansam num guia de 16 seções. A entrelinha sobe
   um pouco para compensar o corpo menor. */
.texto p,
.texto li {
  color: var(--ink-medio);
  font-size: 0.94rem;
  line-height: 1.72;
}
.texto ul,
.texto ol {
  margin: 14px 0 14px 22px;
  display: grid;
  gap: 8px;
}

/* ── 9. Utilitários ────────────────────────────────────────────────────── */

.centro {
  text-align: center;
}
.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 12px;
}
.mt-2 {
  margin-top: 24px;
}
.mt-3 {
  margin-top: 40px;
}
.mb-2 {
  margin-bottom: 24px;
}
.mb-3 {
  margin-bottom: 40px;
}
.esconder {
  display: none !important;
}

/* Só para leitor de tela. */
.so-leitor {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Pular para o conteúdo — acessibilidade de teclado. */
.pular {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--brand);
  color: var(--sobre-brand);
  padding: 12px 18px;
  border-radius: var(--raio-p);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.15s;
}
.pular:focus {
  top: 12px;
  color: var(--sobre-brand);
}

/* ── 9.1. Vitrine: a planilha por dentro ───────────────────────────────── */
/* Fachada com grade de planilha desenhada em CSS; o iframe do Sheets só entra
   no clique (ver /assets/js/vitrine.js). Altura fixa: iframe do Sheets sem
   altura colapsa. No celular o editor é sofrível, então some e fica um botão
   que abre a planilha numa aba nova (no celular, cai no app do Sheets). */
.vitrine {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--raio);
  overflow: hidden;
  background: var(--surface);
  /* 10% mais baixa que o 4/3 original (15/09/2026): 4 / 2.7 e 520px → 468px. */
  aspect-ratio: 4 / 2.7;
  min-height: 468px;
}
.vitrine-fachada {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 110px 100%,
    var(--surface);
  display: grid;
  place-items: center;
}
.vitrine-fachada span {
  background: var(--brand);
  color: var(--sobre-brand);
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: var(--sombra-brand);
}
.vitrine iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.embed-estado {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  background: var(--surface);
}
.vitrine-aviso { margin-bottom: 18px; color: var(--ink-medio); }
.vitrine-titulo-mobile { display: none; }
@media (max-width: 719px) {
  .vitrine-titulo-desktop { display: none; }
  .vitrine-titulo-mobile { display: inline; }
}
/* A legenda fala da planilha embedada, que no celular não existe — lá quem
   explica é o texto do bloco `.vitrine-celular`. */
.vitrine-legenda {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--ink-fraco);
  text-align: center;
}
@media (max-width: 719px) {
  .vitrine-legenda {
    display: none;
  }
}
.vitrine-celular {
  display: none;
  text-align: center;
}
/* Popup do celular: o botão da seção abre, e é aqui dentro que ficam a
   explicação e o "Criar conta grátis" (ver vitrine.js). */
.vitrine-dialogo {
  /* O reset `* { margin: 0 }` tira o `margin: auto` que centraliza o dialog. */
  margin: auto;
  width: min(420px, calc(100vw - 32px));
  padding: 32px 20px 24px;
  border: 1px solid var(--line-forte);
  border-radius: var(--raio);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--sombra);
  text-align: center;
}
.vitrine-dialogo::backdrop {
  background: rgba(0, 0, 0, 0.7);
}
.vitrine-dialogo .btn {
  width: 100%;
}
/* Gatilho do popup no celular: a mesma grade desenhada e o mesmo botão de
   anel pulsante da fachada do computador. Escolhido em 17/09/2026 entre cinco
   versões — sem isso a seção passava despercebida. (O print escurecido ao
   fundo chegou a ir ao ar no mesmo dia e foi trocado por esta.) */
.vitrine-gatilho {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 180px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--raio);
  overflow: hidden;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 90px 100%,
    var(--surface);
  font: inherit;
  cursor: pointer;
}
.vitrine-gatilho span {
  position: relative;
  background: var(--brand);
  color: var(--sobre-brand);
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: var(--sombra-brand);
}
.vitrine-gatilho span::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 999px;
  border: 2px solid var(--brand);
  animation: pulso 2s ease-out infinite;
}
.vitrine-dialogo-fechar {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--ink-medio);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
/* O botão de atualizar da planilha, no meio da frase do passo a passo: mesmo
   verde e mesmo formato do botão real, para a pessoa reconhecê-lo lá dentro. */
.icone-botao {
  display: inline-grid;
  place-items: center;
  width: 1.55em;
  height: 1.55em;
  vertical-align: -0.45em;
  margin-inline: 2px;
  border-radius: 6px;
  background: var(--brand);
  color: var(--sobre-brand);
}
.icone-botao svg {
  width: 1em;
  height: 1em;
}
@media (max-width: 719px) {
  .vitrine {
    display: none;
  }
  .vitrine-celular {
    display: block;
  }
}

/* ── 10. Responsivo ────────────────────────────────────────────────────── */

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }
  .prints {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .oferta-itens li {
    font-size: 0.9rem;
  }
  /* O selo da oferta cabe numa linha só: menos respiro na caixa e fonte
     que encolhe com a tela até os 320px. */
  .oferta {
    padding-inline: 16px;
  }
  .oferta .etiqueta {
    white-space: nowrap;
    font-size: min(0.78rem, 3.3vw);
    padding: 6px 10px;
  }
}

@media print {
  .topo,
  .cookies,
  .acoes {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}

/* ── 11. Página de indicadores do Bitcoin (/indicadores) ────────────────────
   Os números e gráficos chegam por assets/js/indicadores.js, lidos da tabela
   pública `indicadores_btc` do Supabase. Os textos ficam no HTML (são o que o
   Google lê); o JS só preenche os valores do dia.                           */

.ind-grade {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.ind-grade-2 {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.ind-resumo {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--raio-p);
  padding: 14px;
  min-height: 118px;
  line-height: 1.35;
  color: var(--ink);
  text-decoration: none;
  display: block;
}
a.ind-resumo:hover {
  background: var(--surface-alt);
  color: var(--ink);
}
.ind-resumo-nome {
  font-size: 0.8rem;
  color: var(--ink-medio);
}
.ind-resumo-valor {
  font-family: var(--fonte-titulo);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2px 0 8px;
  font-variant-numeric: tabular-nums;
}
.ind-carregando {
  animation: ind-pulso 1.4s ease-in-out infinite;
}
@keyframes ind-pulso {
  50% {
    opacity: 0.45;
  }
}
.ind-zona {
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--ink);
}
.ind-zona-fundo {
  border-color: rgba(62, 214, 117, 0.4);
  background: rgba(62, 214, 117, 0.1);
  color: var(--positivo);
}
.ind-zona-alerta {
  border-color: rgba(255, 213, 42, 0.4);
  background: rgba(255, 213, 42, 0.1);
  color: var(--alerta);
}
.ind-zona-topo {
  border-color: rgba(229, 85, 90, 0.4);
  background: rgba(229, 85, 90, 0.1);
  color: var(--negativo);
}
.ind-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--raio);
  padding: clamp(18px, 3vw, 26px);
  min-width: 0;
}
.ind-card h3 {
  font-family: var(--fonte-titulo);
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.ind-card-resumo {
  font-size: 0.92rem;
  color: var(--ink-medio);
  margin-bottom: 14px;
}
.ind-como-ler {
  font-size: 0.92rem;
  margin-top: 16px;
  color: var(--ink-medio);
}
.ind-como-ler strong {
  color: var(--ink);
}
.ind-metricas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-bottom: 12px;
}
.ind-metricas dt {
  font-size: 0.76rem;
  color: var(--ink-medio);
}
.ind-metricas dd {
  font-family: var(--fonte-titulo);
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ind-barra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.ind-periodo {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px;
}
.ind-periodo button {
  font: inherit;
  font-size: 0.74rem;
  background: none;
  border: 0;
  border-radius: 4px;
  padding: 2px 9px;
  color: var(--ink-medio);
  cursor: pointer;
}
.ind-periodo button[aria-pressed='true'] {
  background: var(--surface-alt);
  color: var(--ink);
  font-weight: 600;
}
.ind-grafico {
  position: relative;
  height: 260px;
}
.ind-grafico svg {
  width: 100%;
  height: 100%;
  max-width: none;
}
.ind-dica {
  position: absolute;
  pointer-events: none;
  background: var(--surface-alt);
  border: 1px solid var(--line-forte);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: nowrap;
  z-index: 2;
}
.ind-legenda {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 4px 0 10px;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--ink-medio);
}
.ind-legenda li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ind-legenda i {
  display: inline-block;
  width: 18px;
  height: 3px;
  border-radius: 2px;
}
.ind-legenda i.ind-tracejada {
  height: 0;
  border-top: 2px dotted currentColor;
  border-radius: 0;
  background: none;
}
.ind-nota {
  font-size: 0.74rem;
  color: var(--ink-fraco);
  margin-top: 8px;
}
.ind-explica {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--raio-p);
  padding: 12px 14px;
  font-size: 0.84rem;
  color: var(--ink-medio);
  margin-top: 12px;
}
.ind-explica p + p {
  margin-top: 0.6em;
}
.ind-tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}
.ind-tabela th,
.ind-tabela td {
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}
.ind-tabela th:first-child,
.ind-tabela td:first-child,
.ind-tabela th:nth-child(2),
.ind-tabela td:nth-child(2) {
  text-align: left;
}
.ind-tabela thead th {
  border-top: 0;
  background: var(--surface-alt);
  color: var(--ink-medio);
  font-weight: 600;
}
.ind-tabela .ind-ultimo {
  background: rgba(255, 213, 42, 0.08);
}
.ind-moldura-tabela {
  border: 1px solid var(--line);
  border-radius: var(--raio-p);
  overflow-x: auto;
  margin-top: 12px;
}
.ind-fraco {
  color: var(--ink-medio);
}
.ind-indisponivel {
  border: 1px dashed var(--line-forte);
  border-radius: var(--raio-p);
  padding: 14px;
  font-size: 0.9rem;
  color: var(--ink-medio);
}

/* Card bloqueado: o gráfico aparece só como prévia, desfocado e sem toque. */
.ind-bloqueado {
  position: relative;
  overflow: hidden;
}
.ind-bloqueado .ind-grafico {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}
.ind-cortina {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 70px 20px 22px;
  text-align: center;
  background: linear-gradient(to top, var(--surface) 55%, rgba(25, 33, 29, 0));
}
.ind-cortina p {
  font-size: 0.88rem;
  font-weight: 600;
}
.ind-cortina .btn {
  font-size: 0.92rem;
  padding: 11px 20px;
}

/* Fear & Greed */
.ind-fng {
  display: grid;
  gap: 18px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  margin-bottom: 16px;
}
.ind-fng-medidor svg {
  width: 100%;
  max-width: 280px;
  margin-inline: auto;
}
.ind-fng-lista {
  border: 1px solid var(--line);
  border-radius: var(--raio-p);
  list-style: none;
}
.ind-fng-lista li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 0.9rem;
}
.ind-fng-lista li + li {
  border-top: 1px solid var(--line);
}
.ind-bolinha {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
}
.ind-grafico-baixo {
  height: 180px;
}
.ind-subtitulo {
  font-size: 1.05rem;
  margin: 28px 0 12px;
}
.ind-hoje {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* ══ Market Breadth público (/market-breadth) e cadeado dos alertas ═══════
   Reaproveita os .ind-* da /indicadores. Cores das zonas iguais às de
   /app/market-breadth. */
.mb-zona-fundo {
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(96, 165, 250, 0.1);
  color: #60a5fa;
}
.mb-zona-oportunidade {
  border-color: rgba(62, 214, 117, 0.4);
  background: rgba(62, 214, 117, 0.1);
  color: var(--positivo);
}
.mb-zona-alerta {
  border-color: rgba(255, 213, 42, 0.4);
  background: rgba(255, 213, 42, 0.1);
  color: var(--alerta);
}
.mb-zona-topo {
  border-color: rgba(229, 85, 90, 0.4);
  background: rgba(229, 85, 90, 0.1);
  color: var(--negativo);
}
.mb-hoje-grade {
  display: grid;
  gap: 18px 32px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.mb-hoje-valor {
  font-family: var(--fonte-titulo);
  font-size: clamp(2.6rem, 8vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.mb-hoje-leitura {
  font-size: 0.9rem;
  color: var(--ink-medio);
  margin-top: 10px;
}
.mb-regua {
  position: relative;
  height: 12px;
  border-radius: 999px;
  overflow: visible;
}
.mb-regua span {
  position: absolute;
  top: 0;
  bottom: 0;
  opacity: 0.75;
}
.mb-regua span:first-child {
  border-radius: 999px 0 0 999px;
}
.mb-regua span:nth-child(5) {
  border-radius: 0 999px 999px 0;
}
.mb-regua i {
  position: absolute;
  top: -5px;
  width: 4px;
  height: 22px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--surface);
}
.mb-regua-marcas {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--ink-fraco);
  margin-top: 6px;
}
.mb-titulo-card {
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.mb-graf-ibov {
  height: 240px;
  margin-top: 14px;
}
.mb-graf-termo {
  height: 170px;
}
.mb-legenda {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.74rem;
  color: var(--ink-medio);
  margin-top: 10px;
}
.mb-legenda span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mb-legenda i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}
.mb-legenda .mb-marcador-neutro {
  width: 5px;
  height: 5px;
  margin-inline: 1.5px;
  opacity: 0.7;
}
/* Card de recurso restrito: o rótulo do cadeado no topo diz o que destrava. */
.mb-trancado {
  display: flex;
  flex-direction: column;
}
.mb-trancado .acoes {
  margin-top: auto;
  padding-top: 18px;
}
/* Um card só (o de alertas entrou nele como item): largura de leitura, sem esticar. */
.mb-card-unico {
  max-width: 640px;
}
.mb-em-breve {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-medio);
  vertical-align: 1px;
}
.mb-trancado-alerta {
  border-color: rgba(255, 124, 32, 0.45);
  background: linear-gradient(180deg, var(--accent-fraco), var(--surface) 55%);
}
.mb-cadeado-rotulo {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-medio);
  margin-bottom: 8px;
}
.mb-trancado-alerta .mb-cadeado-rotulo {
  color: var(--accent-claro);
}
.mb-exemplos {
  list-style: none;
  display: grid;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.86rem;
}

/* ══ Backtests (/backtests) ═══════════════════════════════════════════════
   Os números e o gráfico entram por assets/js/backtests.js. */
.bt-destaque {
  margin-top: 6px;
}
.bt-destaque .bt-verde {
  color: var(--brand-ink);
}
.bt-grafico {
  height: 380px;
  margin-top: 6px;
}
.bt-legenda {
  margin-bottom: 4px;
}
/* Marcador da série: bolinha cheia para a estratégia, pontilhado para as referências (como as linhas). */
.bt-marca {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid var(--cor);
  margin-right: 8px;
  vertical-align: -1px;
}
.mb-legenda .bt-marca {
  width: 10px;
  height: 10px;
  margin-right: 0;
}
.bt-marca[data-pontilhado] {
  width: 16px;
  height: 0;
  border-width: 0 0 3px;
  border-style: dotted;
  border-radius: 0;
  vertical-align: 3px;
}
.mb-legenda .bt-marca[data-pontilhado] {
  width: 16px;
  height: 0;
}
/* .ind-tabela alinha a 2ª coluna à esquerda (data); aqui ela é número. */
.bt-tabela th:nth-child(2),
.bt-tabela td:nth-child(2),
.bt-tabela-regra th:nth-child(2),
.bt-tabela-regra td:nth-child(2) {
  text-align: right;
}
.bt-tabela th[scope='row'] {
  text-align: left;
  font-weight: 500;
}
.bt-linha-estrategia {
  background: var(--brand-fraco);
}
.bt-linha-estrategia th[scope='row'] {
  font-weight: 700;
  color: var(--ink);
}
.bt-cadeado-mini {
  font-size: 0.8em;
}
.bt-linha-trancada th[scope='row'] {
  color: var(--ink);
  font-weight: 600;
}
.bt-linha-ref {
  color: var(--ink-medio);
}
.bt-tabela-regra {
  max-width: 520px;
}
.bt-descartadas {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink-medio);
}
.bt-descartadas li {
  border: 1px solid var(--line);
  border-radius: var(--raio-p);
  padding: 10px 14px;
}
.bt-descartadas strong {
  color: var(--ink);
}
@media (max-width: 520px) {
  .bt-grafico {
    height: 260px;
  }
}

/* ══ Home: cartões de indicadores (#indicadores) ═════════════════════════
   Os números entram por assets/js/home-indicadores.js; sem eles, o <dl>
   fica vazio e não ocupa espaço. */
.home-ind {
  display: flex;
  flex-direction: column;
}
.home-ind-numeros {
  display: grid;
  gap: 6px;
  margin: 4px 0 14px;
}
.home-ind-numeros:empty {
  display: none;
}
.home-ind-numeros div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 12px;
  border-radius: var(--raio-p);
  background: var(--surface-alt);
  font-size: 0.86rem;
}
.home-ind-numeros dt {
  color: var(--ink-medio);
}
.home-ind-numeros dd {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.home-ind-numeros .ind-zona {
  font-family: var(--fonte-corpo);
  margin-left: 6px;
}
.home-ind-link {
  margin-top: auto;
  padding-top: 14px;
  font-weight: 600;
}
.home-ind-alertas {
  max-width: 760px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-medio);
}

/* ══ MacroBR público (/macro-br) ════════════════════════════════════════
   Reaproveita os .ind-* da /indicadores. Cores iguais às de /app/macro-br. */
.mbr-rolagem {
  overflow-x: auto;
  margin-inline: -4px;
  padding-inline: 4px;
}
.mbr-grafico-focus {
  height: 340px;
}
.mbr-legenda {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.76rem;
  color: var(--ink-medio);
  margin-top: 6px;
}
.mbr-legenda span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mbr-legenda i {
  display: inline-block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
}
/* Taxa subindo é vermelho (perda para quem tem o título); caindo, verde. */
.mbr-sobe {
  color: var(--negativo);
}
.mbr-cai {
  color: var(--positivo);
}
/* As colunas de 30 dias e 12 meses: só o formato, desfocado; o número fica no app. */
.mbr-borrado {
  filter: blur(4px);
  color: var(--ink-medio);
  user-select: none;
}
.mbr-cortina-tabela {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px dashed var(--line-forte);
  border-radius: var(--raio-p);
}
.mbr-cortina-tabela p {
  font-size: 0.88rem;
  font-weight: 600;
}
.mbr-cortina-tabela .btn {
  font-size: 0.9rem;
  padding: 10px 18px;
}
.mbr-previa-tabela {
  overflow: hidden;
}

/* ══ Divulgação dos backtests fora de /backtests ═══════════════════════════
   Home (seção com o gráfico), páginas das planilhas (bônus da assinatura) e
   faixas nas páginas de conteúdo. O gráfico é o SVG do curso
   (app/public/cursos/alocacoes-backtests/ilustracoes/estrategias.svg), copiado
   para /assets/img/backtests/ e derivado em estrategias-escuro.svg (fundo
   transparente, usado nas seções integradas): atualizar os três juntos. */
/* Variante com o gráfico integrado à página (sem cartão branco). */
.bt-integrado .cabeca-secao {
  max-width: 820px;
  margin-inline: auto;
}
.bt-grafico-solto {
  margin: 36px 0 28px;
  padding: 22px 24px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 30% 100%, rgba(85, 197, 126, 0.10), transparent 65%);
}
.bt-grafico-solto figcaption {
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-fraco);
}
.bt-grafico-solto img {
  display: block;
  width: 100%;
  max-width: 1040px;
  height: auto;
  aspect-ratio: 930 / 350;
  margin-inline: auto;
}
.bt-legenda-nota {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--ink-fraco);
}
.bt-itens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px 28px;
  max-width: 1040px;
  margin: 0 auto 28px;
}
.bt-integrado .bt-numeros {
  justify-content: center;
  margin: 0 auto 8px;
}
.bt-integrado .bt-numeros div {
  text-align: center;
}
.bt-alerta-celular {
  max-width: 820px;
  margin: 32px auto 28px;
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
}
.bt-alerta-celular h3 {
  margin: 10px 0 8px;
  font-size: 1.2rem;
}
.bt-alerta-celular p {
  color: var(--ink-medio);
}
.bt-alerta-celular .bt-alerta-nota {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--ink-fraco);
}
.bt-integrado .sob-botao {
  text-align: center;
}
.bt-integrado .acoes.centro {
  justify-content: center;
}
@media (max-width: 700px) {
  .bt-grafico-solto {
    padding-inline: 4px;
  }
  .bt-grafico-solto img {
    min-width: 640px;
  }
  .bt-grafico-solto {
    overflow-x: auto;
  }
}
.bt-aviso {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-fraco);
}
.bt-numeros {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 18px;
}
.bt-numeros div {
  display: grid;
}
.bt-numeros strong {
  font-family: var(--fonte-titulo);
  font-size: 1.6rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.bt-numeros span {
  font-size: 0.8rem;
  color: var(--ink-medio);
}
.faixa-backtest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
}
.faixa-backtest p {
  flex: 1 1 320px;
  min-width: 0;
  color: var(--ink-medio);
}
.faixa-backtest p strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1.05rem;
}

/* ══ Bloco do autor ("Quem fez" e equivalentes): foto pequena ao lado do título
   e texto em duas colunas, em largura total. Usado em todas as páginas de venda. ══ */
.autor-bloco .autor-cabeca {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  align-items: center;
  gap: 24px 36px;
}
.autor-bloco .autor-foto img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.autor-bloco .autor-texto {
  max-width: none;
  columns: 2;
  column-gap: 44px;
  margin-top: 28px;
}
.autor-bloco .autor-texto p,
.autor-bloco .autor-texto .depoimento {
  max-width: none;
  margin: 0 0 14px;
  break-inside: avoid;
}
.autor-bloco .autor-texto > :last-child {
  margin-bottom: 0;
}
@media (max-width: 760px) {
  .autor-bloco .autor-cabeca {
    grid-template-columns: 1fr;
  }
  .autor-bloco .autor-texto {
    columns: 1;
  }
}

/* Combo (combof2lg): vídeo ao lado do cabeçalho, bullets em duas colunas embaixo. */
.combo-bloco .combo-topo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 28px 48px;
}
.combo-bloco .combo-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 40px;
  margin: 32px 0 28px;
}
.combo-bloco .sob-botao.centro-texto {
  text-align: center;
}
@media (max-width: 900px) {
  .combo-bloco .combo-topo,
  .combo-bloco .combo-bullets {
    grid-template-columns: 1fr;
  }
}

/* Combo invertido (vídeo à esquerda) só no desktop; no celular o vídeo fica abaixo do cabeçalho. */
@media (min-width: 901px) {
  .combo-invertido .combo-video {
    order: -1;
  }
}

/* Título da seção da estratégia gratuita em /backtests: uma linha só no desktop */
.bt-titulo-uma-linha {
  font-size: clamp(1.4rem, 0.95rem + 1.6vw, 2.15rem);
}
@media (min-width: 900px) {
  .bt-titulo-uma-linha {
    white-space: nowrap;
  }
}
