/* Componentes da Máquina Diamante (fase 41). Só tokens de design/tokens.css: nenhuma cor, fonte ou espaçamento solto. */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text); background: var(--bg); }
h1, h2, h3 { font-family: var(--font-head); line-height: var(--lh-head); margin: 0 0 var(--sp-3); }
h1 { font-size: var(--fs-h1); font-weight: var(--fw-head); }
h2 { font-size: var(--fs-h2); font-weight: var(--fw-head-2); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-head-2); }
p { margin: 0 0 var(--sp-3); max-width: var(--measure); }
a { color: var(--blue-text); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--touch); padding: 0 var(--sp-4); border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.btn-primario { background: var(--blue-text); color: var(--on-dark); }
.btn-primario:hover { background: var(--blue-hover); }
.btn-secundario { background: transparent; color: var(--on-dark); border-color: var(--on-dark-muted); }
.acoes { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); }

/* cabeçalho: fica no alto ao rolar a página */
.topo { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.topo-linha { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--altura-topo); }
.logo img { display: block; height: var(--logo-topo); width: auto; }
.menu { margin-left: auto; }
.menu ul, .menu-celular ul { list-style: none; margin: 0; padding: 0; }
.menu > ul { display: flex; gap: var(--sp-4); align-items: center; }
.menu a, .menu summary { color: var(--text); text-decoration: none; font-weight: 500; font-size: var(--fs-small); cursor: pointer; }
.submenu { position: relative; }
.submenu summary { list-style: none; min-height: var(--touch); display: flex; align-items: center; }
.submenu summary::-webkit-details-marker { display: none; }
.submenu ul { position: absolute; top: 100%; left: 0; min-width: var(--cartao-min); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: var(--sp-2) 0; z-index: 10; }
.submenu li a { display: block; padding: var(--sp-2) var(--sp-3); }
.menu-celular { display: none; margin-left: auto; }
.menu-celular summary::-webkit-details-marker { display: none; }
.menu-celular li a, .menu-celular summary { display: flex; align-items: center; min-height: var(--touch); color: var(--text); text-decoration: none; }
/* só o botão Menu tem caixa; os submenus de dentro ficam como itens da lista, com seta (apuração, 09/11/2026) */
.menu-celular > summary { padding: 0 var(--sp-3); border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; list-style: none; }
.menu-celular .menu-fechar, .menu-celular[open] .menu-abrir { display: none; }
.menu-celular[open] .menu-fechar { display: inline; }
.menu-celular nav { position: absolute; left: 0; right: 0; top: var(--altura-topo); background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: var(--sp-2) var(--gutter) var(--sp-4); z-index: 20; max-height: calc(100vh - var(--altura-topo)); overflow-y: auto; }
.menu-celular nav > ul > li { border-bottom: 1px solid var(--line); }
.menu-celular nav > ul > li > a, .menu-celular .submenu summary { font-weight: 600; }
.menu-celular .submenu ul { position: static; box-shadow: none; border: 0; padding: 0 0 var(--sp-2) var(--sp-3); }
.menu-celular .submenu li a { padding: 0; color: var(--muted); }
.menu-pedido { margin-top: var(--sp-3); }
.menu-pedido .btn { width: 100%; }
/* seta dos submenus, no computador e no celular */
.submenu summary::after { content: ""; width: 7px; height: 7px; margin-left: var(--sp-2); border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.submenu[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.menu-celular .submenu summary::after { margin-left: auto; }

/* trilha */
.trilha ol { list-style: none; display: flex; flex-wrap: wrap; column-gap: var(--sp-2); row-gap: 0; margin: var(--sp-3) auto; padding: 0; font-size: var(--fs-small); color: var(--muted); }
.trilha li + li::before { content: "›"; margin-right: var(--sp-2); }
.trilha li { display: flex; align-items: center; min-height: var(--touch); }
.trilha a { color: var(--muted); display: inline-flex; align-items: center; min-height: var(--touch); }

/* topo da página */
.heroi { background: var(--brilho-topo), var(--ink); color: var(--on-dark); padding-top: var(--sp-section); }
.heroi h1 { max-width: 22ch; letter-spacing: -0.01em; }
.heroi .abertura { color: var(--on-dark-muted); font-size: var(--fs-lead); max-width: 62ch; line-height: var(--lh-leitura); }
.heroi .abertura strong { color: var(--on-dark); }
.heroi-rotulo { display: inline-block; margin-bottom: var(--sp-3); padding: var(--sp-1) var(--sp-3); border: 1px solid var(--blue-on-dark); border-radius: 999px; color: var(--blue-on-dark); font-size: var(--fs-rotulo); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.heroi-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); margin-top: var(--sp-4); color: var(--on-dark-muted); font-size: var(--fs-small); }
.heroi-meta span + span::before { content: "·"; margin-right: var(--sp-4); }
.faixa-barras { height: 28px; margin-top: var(--sp-5); opacity: .18; background: var(--marca-grafica-clara); }

/* seções */
.secao { padding: var(--sp-section) 0; }
.secao-alt { background: var(--bg-alt); }
.lista, .passos { padding-left: var(--sp-4); max-width: var(--measure); }
.lista li, .passos li { margin-bottom: var(--sp-2); }
.passos { counter-reset: passo; list-style: none; padding-left: 0; }
.passos li { counter-increment: passo; position: relative; padding-left: calc(var(--sp-5) + var(--sp-1)); min-height: var(--sp-5); }
.passos li::before { content: counter(passo); position: absolute; left: 0; top: 0; width: var(--passo); height: var(--passo); border-radius: 50%; background: var(--blue-text); color: var(--on-dark); font-family: var(--font-head); font-weight: 600; display: flex; align-items: center; justify-content: center; }
/* linha que liga um passo ao seguinte */
.passos li:not(:last-child)::after { content: ""; position: absolute; left: calc(var(--passo) / 2 - 1px); top: calc(var(--passo) + var(--sp-1)); bottom: calc(-1 * var(--sp-2)); width: 2px; background: var(--blue-line); }
.passos li { padding-bottom: var(--sp-3); }
.lista { list-style: none; padding-left: 0; }
.lista li { position: relative; padding-left: var(--sp-4); }
.lista li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 8px; background: var(--blue); border-radius: 2px; }

/* tabela */
.tabela { overflow-x: auto; max-width: 100%; margin: var(--sp-4) 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.tabela table { border-collapse: collapse; width: 100%; min-width: var(--tabela-min); font-size: var(--fs-small); }
.tabela caption { text-align: left; color: var(--muted); padding: var(--sp-3) var(--sp-3) var(--sp-2); font-size: var(--fs-rotulo); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.tabela th, .tabela td { text-align: left; padding: var(--sp-3); border-bottom: 1px solid var(--line); vertical-align: top; }
.tabela thead th { font-family: var(--font-head); font-weight: 600; background: var(--ink); color: var(--on-dark); }
.tabela tbody tr:nth-child(even) { background: var(--bg-alt); }
.tabela tbody tr:last-child th, .tabela tbody tr:last-child td { border-bottom: 0; }
.tabela tbody th { font-weight: 600; color: var(--text); }

/* cartões */
.cartoes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--cartao-min), 1fr)); gap: var(--sp-4); }
.cartao a { display: block; height: 100%; padding: var(--sp-4); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.cartao a:hover { border-color: var(--blue-text); }
.cartao h3 { color: var(--blue-text); }
.cartao p { color: var(--muted); font-size: var(--fs-small); margin: 0; }

/* prova */
.avaliacao { margin: var(--sp-4) 0; padding: var(--sp-4); max-width: var(--measure); background: var(--bg); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; }
.avaliacao blockquote { margin: 0 0 var(--sp-2); font-size: var(--fs-quote); }
.avaliacao figcaption { color: var(--muted); font-size: var(--fs-small); }

/* FAQ: cada pergunta é um cartão que abre e fecha */
.faq { max-width: var(--measure); display: grid; gap: var(--sp-3); }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.faq details[open] { border-color: var(--blue-line); box-shadow: var(--shadow); }
.faq summary { min-height: var(--touch); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: var(--passo); height: var(--passo); border-radius: 50%; background: var(--bg-alt); color: var(--blue-text); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.faq details[open] summary::after { content: "−"; background: var(--blue-text); color: var(--on-dark); }
.faq summary h3 { margin: 0; font-size: var(--fs-faq); }
.faq details p { padding: 0 var(--sp-4) var(--sp-4); margin: 0; }

/* chamada */
.chamada { background: var(--brilho-topo), var(--ink); color: var(--on-dark); padding: var(--sp-6) 0; }
.chamada h2 { font-size: var(--fs-h2); }
.chamada p { color: var(--on-dark-muted); margin: 0; }
.chamada-linha { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4); }

/* contato e formulário */
.contato { font-style: normal; }
.contato p { margin-bottom: var(--sp-2); }
.formulario { display: grid; gap: var(--sp-2); max-width: var(--form-max); }
.formulario label { font-weight: 600; margin-top: var(--sp-2); }
.formulario input, .formulario select, .formulario textarea { font: inherit; min-height: var(--touch); padding: var(--sp-2) var(--sp-3); border: 1px solid var(--muted); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); }
.formulario .nota { font-size: var(--fs-small); color: var(--muted); }

/* rodapé */
.rodape { background: var(--ink); color: var(--on-dark-muted); padding: var(--sp-5) 0; font-size: var(--fs-small); }
.rodape a { color: var(--blue-on-dark); }
.rodape img { height: var(--logo-rodape); width: auto; margin-bottom: var(--sp-3); }
.rodape-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-5); }
.rodape ul { list-style: none; margin: 0; padding: 0; }
.rodape li { min-height: var(--touch); display: flex; align-items: center; }
.rodape li a { display: flex; align-items: center; min-height: var(--touch); }
/* rodapé em colunas (apuração, 09/11/2026; redesenhado em 11/11/2026): marca com lema, contato com ícones e botão,
   três grupos de links com títulos discretos e, embaixo, a linha legal com os perfis */
.rodape-colunas { grid-template-columns: minmax(280px, 1.5fr) repeat(3, minmax(150px, 1fr)); gap: var(--sp-5) clamp(24px, 4vw, 56px); padding-top: var(--sp-2); }
.rodape .rodape-colunas a { color: var(--on-dark-muted); text-decoration: none; transition: color .15s ease; }
.rodape .rodape-colunas a:hover, .rodape .rodape-colunas a:focus-visible { color: var(--on-dark); text-decoration: underline; text-underline-offset: 4px; }
.rodape-lema { margin: 0 0 var(--sp-4); max-width: 26ch; color: var(--on-dark); font: 700 1.1rem/1.35 var(--font-head); }
.rodape-contato { font-style: normal; margin-bottom: var(--sp-4); }
.rodape-contato ul { display: grid; gap: 12px; }
.rodape .rodape-contato li { min-height: 0; align-items: flex-start; gap: 12px; line-height: 1.45; }
.rodape-contato svg { flex: 0 0 18px; margin-top: 2px; color: var(--blue-on-dark); }
.rodape .rodape-contato li a { display: inline; min-height: 0; white-space: nowrap; }
.rodape-cta { margin-top: var(--sp-1); }
.rodape .rodape-colunas a.rodape-cta { color: var(--on-dark); text-decoration: none; }
.rodape-titulo { margin: 0 0 var(--sp-3); color: var(--on-dark); font: 700 .75rem/1.3 var(--font-head); letter-spacing: .1em; text-transform: uppercase; }
.rodape .rodape-coluna li { min-height: 0; }
.rodape .rodape-coluna li + li { margin-top: 12px; }
.rodape .rodape-coluna li a { display: inline-flex; min-height: 0; }
.rodape-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-3); margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--ink-2); font-size: var(--fs-small); color: var(--on-dark-muted); }
.rodape-base p { margin: 0; }
.rodape-redes { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.rodape .rodape-redes li { min-height: 0; }
.rodape .rodape-redes a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--ink-2); border-radius: 999px; color: var(--on-dark-muted); text-decoration: none; transition: border-color .15s ease, color .15s ease; }
.rodape .rodape-redes a:hover, .rodape .rodape-redes a:focus-visible { color: var(--on-dark); border-color: var(--blue-on-dark); }
.rodape-redes svg { width: 16px; height: 16px; }
.rodape-redes-icones { margin: 0 0 var(--sp-4); gap: 10px; }
.rodape .rodape-redes-icones a { width: 44px; min-height: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
.rodape-redes-icones svg { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .rodape-colunas { grid-template-columns: 1fr 1fr; }
  .rodape-marca { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  /* no celular, cada link do rodapé tem área de toque de 44 px */
  .rodape .rodape-coluna li + li { margin-top: 0; }
  .rodape .rodape-coluna li a, .rodape .rodape-contato li a, .rodape .rodape-redes a { display: inline-flex; align-items: center; min-height: var(--touch); }
  .rodape-contato ul { gap: 0; }
  .rodape .rodape-contato li { align-items: center; min-height: var(--touch); }
  .rodape .rodape-contato svg { margin-top: 0; }
  .rodape-base { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .rodape-colunas { grid-template-columns: 1fr; }
}

/* barra fixa de WhatsApp no celular */
.barra-whats { display: none; }
@media (max-width: 900px) {
  .menu, .btn-topo { display: none; }
  .menu-celular { display: block; }
  .topo { position: relative; }
}
@media (max-width: 720px) {
  .barra-whats { display: block; position: fixed; left: 0; right: 0; bottom: 0; padding: var(--sp-2) var(--gutter); background: var(--bg); border-top: 1px solid var(--line); z-index: 30; }
  .barra-whats .btn { width: 100%; }
  /* com o menu do celular aberto, a barra sai para não cobrir os itens */
  .topo:has(.menu-celular[open]) ~ .barra-whats { display: none; }
  /* o espaço da barra fixa fica dentro do rodapé escuro, e não numa faixa branca depois dele (07/11/2026) */
  .rodape { padding-bottom: calc(var(--sp-5) + var(--touch) + var(--sp-4)); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; transition: none; } }

/* imagem dos briefs: topo logo abaixo do herói e imagens dentro das seções */
.figura { margin: var(--sp-4) 0 0; }
.figura img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.figura-topo { margin-top: var(--sp-5); }
/* no celular, a trilha não repete a página atual (o H1 logo abaixo já diz qual é) */
@media (max-width: 720px) { .trilha li[aria-current] { display: none; } }

/* ---------- leitura longa (refação de 29/10/2026): resumo, sumário, blocos com âncora, destaque e fontes ---------- */
html { scroll-behavior: smooth; }

/* resumo: cartão que sobe por cima do fim do topo escuro */
.resumo { position: relative; z-index: 2; max-width: calc(var(--coluna) + var(--sumario) + var(--sp-6)); margin: calc(-1 * var(--sp-5)) auto 0; padding: var(--sp-4) var(--sp-5); background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); box-shadow: var(--sombra-forte); }
.resumo-titulo { margin: 0 0 var(--sp-3); color: var(--blue-text); font-size: var(--fs-rotulo); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.resumo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.resumo li { position: relative; padding-left: calc(var(--sp-4) + var(--sp-2)); line-height: var(--lh-leitura); }
.resumo li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--blue-tint); color: var(--blue-text); font-size: var(--fs-small); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.heroi:has(+ .wrap > .resumo) { padding-bottom: var(--sp-5); }
.heroi:has(+ .wrap > .resumo) .faixa-barras { display: none; }

/* coluna de leitura com o sumário ao lado */
.leitura { display: grid; grid-template-columns: var(--sumario) minmax(0, var(--coluna)); gap: var(--sp-6); justify-content: center; padding-top: var(--sp-6); padding-bottom: var(--sp-6); }
.leitura-texto { min-width: 0; font-size: var(--fs-lead); line-height: var(--lh-leitura); }
.leitura-texto p, .leitura-texto .lista, .leitura-texto .passos, .leitura-texto .faq { max-width: none; }

.sumario { position: relative; }
.sumario-fixo { position: sticky; top: calc(var(--altura-topo) + var(--sp-4)); max-height: calc(100vh - var(--altura-topo) - var(--sp-5)); overflow-y: auto; }
.sumario-titulo { display: block; margin-bottom: var(--sp-3); color: var(--muted); font-size: var(--fs-rotulo); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sumario ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); counter-reset: item; }
.sumario li { counter-increment: item; }
.sumario a { display: flex; gap: var(--sp-2); min-height: var(--touch); align-items: center; margin-left: -2px; padding: var(--sp-1) var(--sp-3); border-left: 2px solid transparent; color: var(--muted); font-size: var(--fs-small); line-height: 1.4; text-decoration: none; }
.sumario a::before { content: counter(item, decimal-leading-zero); color: var(--blue-text); font-family: var(--font-head); font-weight: 600; font-size: var(--fs-rotulo); }
.sumario a:hover, .sumario a.atual { color: var(--text); border-left-color: var(--blue); }
.sumario-celular { display: none; }

/* cada bloco responde uma pergunta inteira; a âncora leva direto a ele */
.bloco { scroll-margin-top: calc(var(--altura-topo) + var(--sp-4)); padding-top: var(--sp-5); margin-top: var(--sp-5); border-top: 1px solid var(--line); }
.bloco:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.bloco h2 { position: relative; padding-top: var(--sp-3); }
.bloco h2::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 4px; border-radius: 2px; background: var(--blue); }
.bloco .tabela { font-size: var(--fs-small); }
.bloco .acoes { margin-top: var(--sp-3); }

/* destaque: a frase que resume o trecho */
.destaque { margin: var(--sp-4) 0; padding: var(--sp-4); background: var(--blue-tint); border: 1px solid var(--blue-line); border-left: 4px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.destaque p { margin: 0; font-weight: 500; color: var(--text); }
.destaque p + p { margin-top: var(--sp-2); }

/* fontes consultadas: letra menor, numeradas */
.bloco.fontes { font-size: var(--fs-small); color: var(--muted); }
.bloco.fontes h2 { font-size: var(--fs-h3); }
.bloco.fontes .lista li::before { background: var(--muted); }

/* veja também em cartões */
.bloco.veja .cartoes { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-3); }
.bloco.veja .cartao a { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); box-shadow: none; }
.bloco.veja .cartao a::after { content: "→"; color: var(--blue-text); font-weight: 700; }
.bloco.veja .cartao h3 { margin: 0; font-size: var(--fs-body); }

/* avaliação dentro da leitura */
.leitura-texto .avaliacao { background: var(--bg-alt); }

@media (max-width: 1023px) {
  .leitura { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); padding-top: var(--sp-5); }
  .sumario-fixo { display: none; }
  .sumario-celular { display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-alt); }
  .sumario-celular summary { min-height: var(--touch); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--sp-3); font-weight: 600; cursor: pointer; list-style: none; }
  .sumario-celular summary::-webkit-details-marker { display: none; }
  .sumario-celular summary::after { content: "+"; color: var(--blue-text); font-weight: 700; }
  .sumario-celular[open] summary::after { content: "−"; }
  .sumario-celular ol { margin: 0 var(--sp-3) var(--sp-3); }
  .resumo { margin-left: 0; margin-right: 0; padding: var(--sp-4); }
}
@media (max-width: 720px) {
  .leitura-texto { font-size: var(--fs-body); }
  .resumo { margin-top: calc(-1 * var(--sp-4)); }
}

/* ajustes da leitura longa depois da primeira captura (29/10/2026) */
/* topo: elemento gráfico da marca à direita; espaço para o resumo subir sem encostar na data */
.heroi { position: relative; overflow: hidden; }
.heroi::after { content: ""; position: absolute; top: var(--sp-6); right: calc(-1 * var(--sp-5)); width: 34%; height: 62%; background: var(--marca-grafica-clara); opacity: .07; transform: skewX(-8deg); pointer-events: none; }
.heroi .wrap { position: relative; z-index: 1; }
.heroi:has(+ .wrap > .resumo) { padding-bottom: calc(var(--sp-6) + var(--sp-4)); }
.resumo { margin-top: calc(-1 * var(--sp-6)); }

/* sumário mais compacto no computador: os títulos são longos, a lista não pode rolar */
.sumario-fixo a { min-height: 0; padding: 6px var(--sp-3); font-size: var(--fs-rotulo); line-height: 1.35; }
.sumario-fixo { scrollbar-width: thin; }

/* a legenda da tabela repete o H2 do bloco: fica só para leitor de tela */
.bloco .tabela caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1023px) {
  .heroi::after { display: none; }
}
@media (max-width: 720px) {
  /* no celular a trilha mostra só a página de cima, com seta de voltar */
  .trilha li:not(:nth-last-child(2)) { display: none; }
  .trilha li:nth-last-child(2)::before { content: "‹"; margin-right: var(--sp-2); }
  .heroi-rotulo { display: none; }
  .heroi:has(+ .wrap > .resumo) { padding-bottom: calc(var(--sp-5) + var(--sp-4)); }
  .resumo { margin-top: calc(-1 * var(--sp-5)); }
}

/* ---------- topo claro com foto, formulário de pedido e chamada azul (pedido do Edson em 30/10/2026) ---------- */
.heroi { background: var(--brilho-claro); color: var(--text); }
.heroi .abertura { color: var(--muted); }
.heroi .abertura strong { color: var(--text); }
.heroi-rotulo { border-color: var(--blue-line); color: var(--blue-text); background: var(--bg); }
.heroi::after { background: var(--marca-grafica); opacity: .05; }
.faixa-barras { background: var(--marca-grafica); opacity: .08; }
.heroi-com-foto::after { display: none; }

.heroi-grade { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--sp-6); align-items: center; }
.heroi-foto { position: relative; height: var(--foto-topo); border-radius: var(--radius); overflow: hidden; box-shadow: var(--sombra-forte); }
.heroi-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.heroi-foto::after { content: ""; position: absolute; inset: 0; background: var(--degrade-foto); pointer-events: none; }
/* até a foto chegar: painel com o elemento gráfico da marca */
.heroi-foto-vazia { background: var(--painel-marca); }
.heroi-foto-vazia::before { content: ""; position: absolute; left: 12%; right: 12%; top: 30%; height: 40%; background: var(--marca-grafica-clara); opacity: .22; }
.heroi-foto-vazia::after { background: none; }

/* formulário de pedido da página: cartão com campos em duas colunas e opções de tocar */
.bloco-pedido { padding: var(--sp-5); background: var(--blue-tint); border: 1px solid var(--blue-line); border-radius: var(--radius); }
.bloco-pedido h2::before { left: 0; }
.pedido { max-width: none; gap: var(--sp-3); }
.pedido-campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3) var(--sp-4); }
.pedido .campo { display: grid; gap: var(--sp-1); }
.pedido .campo-largo, .pedido .opcoes { grid-column: 1 / -1; }
.pedido label, .pedido legend { font-weight: 600; font-size: var(--fs-small); margin: 0; }
.pedido input, .pedido select, .pedido textarea { width: 100%; }
.pedido .opcoes { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.pedido .opcoes legend { width: 100%; margin-bottom: var(--sp-2); }
.pedido .opcao { position: relative; font-weight: 500; }
.pedido .opcao input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pedido .opcao span { display: inline-flex; align-items: center; min-height: var(--touch); padding: 0 var(--sp-3); border: 1px solid var(--line); border-radius: 999px; background: var(--bg); cursor: pointer; }
.pedido .opcao input:checked + span { border-color: var(--blue-text); background: var(--blue-text); color: var(--on-dark); }
.pedido .opcao input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.btn-largo { width: 100%; min-height: calc(var(--touch) + var(--sp-2)); font-size: var(--fs-lead); }
.atualizado { margin-top: var(--sp-3); font-size: var(--fs-rotulo); color: var(--muted); }

/* chamada do fim em azul */
.chamada { background: var(--chamada); }
.chamada p { color: var(--on-dark); opacity: .85; }
.chamada .btn-primario { background: var(--bg); color: var(--blue-text); }
.chamada .btn-primario:hover { background: var(--blue-tint); }

@media (max-width: 1023px) {
  .heroi-grade { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  .heroi-foto { height: calc(var(--foto-topo) * .6); }
}
@media (max-width: 720px) {
  .pedido-campos { grid-template-columns: minmax(0, 1fr); }
  .bloco-pedido { padding: var(--sp-4) var(--sp-3); margin-left: calc(-1 * var(--sp-2)); margin-right: calc(-1 * var(--sp-2)); }
}
/* no celular, a foto vem antes do título: a pessoa aparece na primeira tela */
@media (max-width: 1023px) {
  .heroi-com-foto { padding-top: var(--sp-4); }
  .heroi-foto { order: -1; height: calc(var(--foto-topo) * .5); }
  .heroi-foto img { object-position: 70% 35%; }
}
.secao { scroll-margin-top: var(--altura-topo); }

/* home: seção em duas colunas (refação de 30/10/2026), com o texto à esquerda e a foto, o destaque, a avaliação ou o contato à direita */
.dividida { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--lado)); gap: var(--sp-6); align-items: start; }
.dividida-texto > :first-child { margin-top: 0; }
.dividida-lado { position: sticky; top: calc(var(--altura-topo) + var(--sp-4)); display: grid; gap: var(--sp-4); }
.dividida-lado .figura { margin: 0; }
.dividida-lado .figura img { aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--sombra-forte); }
.dividida-lado .destaque { margin: 0; padding: var(--sp-5) var(--sp-4); border-radius: var(--radius); font-size: var(--fs-quote); }
.dividida-lado .avaliacao { margin: 0; max-width: none; box-shadow: var(--shadow); }
.dividida + .cartoes, .dividida + .tabela, .dividida + form { margin-top: var(--sp-5); }
.dividida-lado .contato { padding: var(--sp-4); background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); box-shadow: var(--sombra-forte); }
.dividida-lado .contato p:last-child { margin-bottom: 0; }
@media (max-width: 1023px) {
  .dividida { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  .dividida-lado { position: static; }
}

/* cartão com a foto da página de destino */
.cartao-com-foto a { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.cartao-foto { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-alt); }
.cartao-com-foto h3, .cartao-com-foto p { padding: 0 var(--sp-4); }
.cartao-com-foto h3 { margin-top: var(--sp-3); }
.cartao-com-foto p { padding-bottom: var(--sp-4); }
.cartao-com-foto h3:last-child { padding-bottom: var(--sp-4); }
.cartao-com-foto a:hover .cartao-foto { opacity: .92; }

/* cartão de contato da home e botão de contorno para fundo claro */
.btn-contorno { background: var(--bg); color: var(--blue-text); border-color: var(--blue-line); }
.btn-contorno:hover { border-color: var(--blue-text); }
.contato-cartao { padding: var(--sp-4); background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); box-shadow: var(--sombra-forte); }
.contato-nome { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-lead); margin: 0 0 var(--sp-2); }
.contato-cartao address { font-style: normal; color: var(--muted); }
.contato-cartao address p { margin: 0 0 var(--sp-1); }
.contato-acoes { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
.contato-acoes .btn { width: 100%; justify-content: center; }
/* seis cartões com foto: três colunas, sem fileira pela metade */
@media (min-width: 1024px) { .cartoes:has(> .cartao-com-foto:nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* home e páginas curtas: FAQ em duas colunas, fontes e "veja também" na largura toda */
@media (min-width: 1024px) {
  .secao .faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); align-items: start; max-width: none; }
  .secao .faq details { margin: 0; }
}
.veja-cartoes .cartoes { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-3); }
.veja-cartoes .cartao a { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); }
.veja-cartoes .cartao a::after { content: "→"; color: var(--blue-text); font-weight: 700; }
.veja-cartoes .cartao h3 { margin: 0; font-size: var(--fs-body); }
@media (min-width: 1024px) { .secao[id^="fontes"] ul { columns: 2; column-gap: var(--sp-6); } .secao[id^="fontes"] li { break-inside: avoid; } }
.secao[id^="fontes"] ul { max-width: none; }
/* dois cartões com foto: metade da largura cada um, com a foto mais larga */
@media (min-width: 720px) { .cartoes:has(> .cartao-com-foto:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cartoes:has(> .cartao-com-foto:nth-child(2):last-child) .cartao-foto { aspect-ratio: 16 / 7; } }
.cartao-foto { object-position: center 30%; }

/* herói com a foto de fundo e a máscara da cor da marca */
.heroi-fundo { position: relative; overflow: hidden; background: var(--heroi-cor); color: var(--on-dark); padding: var(--sp-6) 0; min-height: 600px; display: flex; align-items: center; }
.heroi-fundo::after { display: none; }
.heroi-fundo > .heroi-foto { position: absolute; inset: 0; height: auto; border-radius: 0; box-shadow: none; z-index: 0; }
.heroi-fundo > .heroi-foto img { object-position: 72% 30%; }
.heroi-fundo > .heroi-foto::after { background: var(--mascara-heroi); }
.heroi-fundo .wrap { width: 100%; }
.heroi-fundo .heroi-texto { max-width: 600px; }
.heroi-fundo h1 { color: var(--on-dark); }
.heroi-fundo .abertura { color: var(--on-dark-muted); }
.heroi-fundo .abertura strong { color: var(--on-dark); }
.heroi-fundo .heroi-rotulo { display: inline-block; background: transparent; border-color: var(--on-dark-muted); color: var(--on-dark); letter-spacing: .02em; text-transform: none; font-size: var(--fs-small); }
.heroi-fundo .acoes { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.heroi-fundo .btn-primario { background: var(--bg); color: var(--blue-text); border-color: var(--bg); }
.btn-contorno-claro { background: transparent; color: var(--on-dark); border-color: var(--on-dark); }
.btn-contorno-claro:hover { background: var(--on-dark); color: var(--heroi-cor); }
.faixa-beneficios { overflow: hidden; background: var(--blue); color: var(--on-dark); font-family: var(--font-head); font-weight: 600; white-space: nowrap; }
.faixa-trilho { display: inline-flex; gap: var(--sp-6); padding: var(--sp-3) 0; animation: faixa-corre 40s linear infinite; }
.faixa-trilho span::before { content: "✓"; margin-right: var(--sp-2); }
@keyframes faixa-corre { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .faixa-trilho { animation: none; flex-wrap: wrap; white-space: normal; padding-left: var(--gutter); } }
.faixa-beneficios + .wrap > .resumo { margin-top: var(--sp-5); }
@media (max-width: 1023px) {
  .heroi-fundo { display: block; min-height: 0; padding: 0 0 var(--sp-5); }
  .heroi-fundo > .heroi-foto { position: relative; height: 320px; }
  .heroi-fundo > .heroi-foto::after { background: var(--mascara-heroi-celular); }
  .heroi-fundo .wrap { margin-top: calc(-1 * var(--sp-6)); position: relative; z-index: 1; }
}

/* home: o texto ocupa a largura da coluna ou da seção, sem o limite de 68 caracteres (pedido do Edson, 30/10/2026) */
.tipo-home .secao p, .tipo-home .secao .lista, .tipo-home .secao .passos, .tipo-home .secao .faq { max-width: none; }
.tipo-home .dividida-texto p, .tipo-home .dividida-texto .lista, .tipo-home .dividida-texto .passos { font-size: var(--fs-body); }
.tipo-home .secao .wrap > p { font-size: var(--fs-lead); line-height: var(--lh-leitura); }

/* herói sem foto: o mesmo fundo, com o elemento gráfico da marca */
.heroi-fundo-sem-foto { min-height: 0; padding: var(--sp-6) 0; }
.heroi-fundo.heroi-fundo-sem-foto::after { display: block; background: var(--marca-grafica-clara); opacity: .07; }
.heroi-fundo-sem-foto .heroi-texto { max-width: 760px; }
@media (max-width: 1023px) { .heroi-fundo.heroi-fundo-sem-foto { padding: var(--sp-5) 0; } .heroi-fundo-sem-foto .wrap { margin-top: 0; } }

/* botão de voltar ao topo, em todas as páginas (07/11/2026); aparece depois de rolar e fica acima da barra fixa do celular */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.voltar-topo { position: fixed; right: var(--gutter); bottom: var(--sp-5); z-index: 35; width: var(--touch); height: var(--touch); border-radius: 50%; display: grid; place-items: center; background: var(--blue-text); color: var(--on-dark); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.voltar-topo.visivel { opacity: 1; visibility: visible; transform: none; }
.voltar-topo svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.voltar-topo:hover { background: var(--blue-hover); }
.voltar-topo:focus-visible { outline: 3px solid var(--blue-text); outline-offset: 3px; }
@media (max-width: 720px) { .voltar-topo { bottom: calc(var(--touch) + var(--sp-4) + var(--sp-3)); } }
