/* ================================================================
   VoxGuia · site B2B (voxguia.com.br) · Opção B, Amora Conversa
   Base comum a todas as páginas: fontes, tokens do site, tipografia,
   botões, cabeçalho, rodapé e páginas legais. Ver também secoes.css
   (só na página principal).
   Base: tokens.css (= identidade/tokens-escolhida.css) e
   conteudo/direcao-design.md (forma), conteudo/site-b2b.md (texto).
   Fontes servidas pelo próprio site: nenhum pedido a terceiros.

   Pares de cor usados em texto (WCAG 2.2, ver direcao-design.md 3.4):
   ink-900/cream-100 13,35 · ink-700/cream-100 9,02 · ink-500/cream-100 4,75
   ink-500/cream-50 5,04 · ink-500/white 5,31 · ink-500/vg-50 4,64
   vg-800/cream-100 8,07 · vg-800/white 9,02 · vg-800/vg-50 7,89 · vg-800/vg-100 7,10
   ink-900/vg-200 9,23 · ink-900/vg-100 11,73
   cream-50/vg-800 8,57 · cream-100/vg-800 8,07 · vg-200/vg-800 5,59 (24px+)
   cream-50/vg-900 11,82 · cream-100/vg-900 11,13 · vg-200/vg-900 7,70
   Componentes (3:1): vg-500/white 3,51 · vg-500/cream-50 3,34
   Coral nunca é texto (2,89 sobre cream-100).
   ================================================================ */

@font-face { font-family: 'General Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/general-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'General Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/general-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'General Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/general-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/instrument-serif-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/jetbrains-mono.woff2') format('woff2'); }

/* ---------- Tokens do site (camada sobre tokens.css) ---------- */
:root {
  --t-display: clamp(44px, 3vw + 32.7px, 76px);
  --t-h2: clamp(34px, 2.07vw + 26.3px, 56px);
  --t-h3: clamp(22px, 0.56vw + 19.9px, 28px);
  --t-h4: clamp(18px, 0.19vw + 17.3px, 20px);
  --t-lead: clamp(19px, 0.28vw + 17.9px, 22px);
  --t-body: clamp(17px, 0.09vw + 16.7px, 18px);
  --t-small: 14px;
  --t-kicker: 12px;

  --sec-y: clamp(64px, 3vw + 52.7px, 96px);
  --sec-y-lg: clamp(80px, 4.51vw + 63.1px, 128px);
  --head-gap: clamp(40px, 2.25vw + 31.5px, 64px);
  --header-h: 72px;

  --linha: var(--vg-800);
  --linha-w: 2px;
  --traco: 1.75px;
  --no: 40px;

  --r-balao-pessoa: 24px 24px 6px 24px;
  --r-balao-vox: 24px 24px 24px 6px;

  --on-amora: var(--cream-50);
  --on-amora-2: var(--cream-100);
  --voz-on-amora: var(--vg-200);

  --dur-1: 150ms;
  --dur-2: 240ms;
  --dur-3: 400ms;
  --dur-linha: 700ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --margem: clamp(32px, 5.56vw, 80px);
  --largura: 1280px;
  --gap: 16px;
}
@media (max-width: 900px) { :root { --header-h: 60px; --margem: 24px; --gap: 12px; } }
@media (max-width: 374px) { :root { --margem: 16px; --t-display: 38px; --t-h2: 30px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  font-synthesis: none;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--cream-100);
  color: var(--ink-700);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset, pre { margin: 0; }
ul, ol { padding: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
h1, h2, h3, h4 { color: var(--ink-900); font-weight: 600; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: var(--t-display); line-height: 1; letter-spacing: -0.04em; }
h2 { font-size: var(--t-h2); line-height: 1.05; letter-spacing: -0.03em; }
h3, h4 { font-size: var(--t-h4); line-height: 1.3; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
em { font-style: normal; font-weight: 500; }
strong { font-weight: 600; }
img, svg { display: block; max-width: 100%; }
code, pre, kbd { font-family: var(--font-mono); }
::selection { background: var(--vg-200); color: var(--ink-900); }

a { color: var(--vg-800); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--vg-800); outline-offset: 2px; }
.sobre-amora :focus-visible, .rodape :focus-visible { outline-color: var(--cream-50); }
main:focus, [tabindex="-1"]:focus:not(:focus-visible) { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icone {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: var(--icon-stroke);
  stroke-linecap: round; stroke-linejoin: round;
}
.icone-32 { width: 32px; height: 32px; }

.visualmente-oculto {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.pular {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--vg-800); color: var(--cream-50); padding: 12px 18px;
  border-radius: var(--r-pill); font-weight: 600; text-decoration: none;
}
.pular:focus { top: 12px; }
.pular:focus-visible { outline-color: var(--ink-900); }

.caixa { width: min(var(--largura), 100% - 2 * var(--margem)); margin-inline: auto; }

/* ---------- Voz, kicker, lead ---------- */
.voz {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 1.06em; letter-spacing: -0.01em; color: var(--vg-800);
}
.sobre-amora .voz { color: var(--voz-on-amora); }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: var(--t-kicker); font-weight: 500; line-height: 1.2;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--vg-800);
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); flex: none; }
.sobre-amora .kicker { color: var(--on-amora); }

.lead { font-size: var(--t-lead); line-height: 1.5; letter-spacing: -0.005em; color: var(--ink-700); max-width: 640px; }
.sobre-amora .lead { color: var(--on-amora-2); }
.sobre-amora h2, .sobre-amora h3 { color: var(--on-amora); }
.sobre-amora a { color: var(--on-amora); }

.subtitulo { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.02em; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 2px solid transparent; border-radius: var(--r-pill);
  font-family: var(--font-sans); font-size: 16px; font-weight: 600; line-height: 1; letter-spacing: -0.01em;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color var(--dur-1) ease-out, box-shadow var(--dur-1) ease-out, transform var(--dur-1) ease-out, color var(--dur-1) ease-out;
}
.btn .icone { width: 20px; height: 20px; }
.btn:active { transform: scale(0.98); }
.btn-g { min-height: 56px; padding: 0 28px; font-size: 18px; }
.btn-m { min-height: 48px; padding: 0 22px; font-size: 16px; }
.btn-p { min-height: 44px; padding: 0 18px; font-size: 16px; }
.btn-prim { background: var(--vg-800); color: var(--cream-50); box-shadow: var(--shadow-subtle); }
.btn-prim:hover { background: var(--vg-900); box-shadow: var(--shadow-medium); }
.btn-sec { background: transparent; color: var(--vg-800); border-color: var(--vg-800); }
.btn-sec:hover { background: var(--vg-50); }
.sobre-amora .btn-prim { background: var(--cream-50); color: var(--vg-800); box-shadow: none; }
.sobre-amora .btn-prim:hover { background: var(--cream-100); }
.sobre-amora .btn-sec { color: var(--cream-50); border-color: var(--cream-50); }
.sobre-amora .btn-sec:hover { background: rgba(251, 249, 244, 0.1); }
.sobre-amora .form-cartao .btn-prim { background: var(--vg-800); color: var(--cream-50); box-shadow: var(--shadow-subtle); }
.sobre-amora .form-cartao .btn-prim:hover { background: var(--vg-900); }
.btn[aria-busy="true"] { cursor: progress; }


/* ---------- Seções ---------- */
.secao { padding-block: var(--sec-y); }
.secao-lg { padding-block: var(--sec-y-lg); }
.secao-alt { background: var(--cream-50); }
.amora { background: var(--vg-800); color: var(--on-amora-2); }

.cabeca { max-width: 740px; margin-bottom: var(--head-gap); }
.cabeca-larga { max-width: 848px; }
.cabeca .kicker + h2, .cabeca .kicker + h1 { margin-top: 16px; }
.cabeca h2 + .lead { margin-top: 24px; }

/* ---------- Cabeçalho ---------- */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream-100); border-bottom: 1px solid transparent;
  transition: border-color var(--dur-1) ease-out;
}
.topo.rolou { border-bottom-color: var(--cream-200); }
.topo-interno { height: var(--header-h); display: flex; align-items: center; gap: 24px; }

.assinatura { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; flex: none; }
.assinatura-nome { font-family: var(--font-sans); font-weight: 600; font-size: 20px; line-height: 1; letter-spacing: -0.03em; color: var(--ink-900); }
.assinatura-nome span { color: var(--vg-800); }
.assinatura-p { gap: 8px; min-height: 0; }
.assinatura-p .assinatura-nome { font-size: 15px; }

.nav { margin-left: auto; }
.nav-lista { list-style: none; display: flex; align-items: center; gap: clamp(16px, 1.6vw, 28px); }
.nav-lista a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink-700); font-size: 15px; font-weight: 500; text-decoration: none;
  box-shadow: inset 0 -2px 0 transparent; transition: color var(--dur-1) ease-out, box-shadow var(--dur-1) ease-out;
}
.nav-lista a:hover { color: var(--vg-800); }
.nav-lista a[aria-current="true"] { color: var(--vg-800); box-shadow: inset 0 -2px 0 var(--vg-800); }

.topo-acoes { display: flex; align-items: center; gap: 20px; }
.nav + .topo-acoes { margin-left: clamp(16px, 2vw, 32px); }
.topo-entrar { color: var(--ink-700); font-size: 15px; font-weight: 500; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.topo-entrar:hover { color: var(--vg-800); text-decoration: underline; }

.menu-botao, .menu-fechar {
  display: none; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 14px;
  border: 2px solid var(--vg-800); border-radius: var(--r-pill); background: transparent; color: var(--vg-800);
  font: 600 16px/1 var(--font-sans); cursor: pointer;
}
.menu-botao:hover, .menu-fechar:hover { background: var(--vg-50); }
.menu-fechar { display: inline-flex; }

@media (max-width: 1279px) {
  .nav, .topo-entrar { display: none; }
  .menu-botao { display: inline-flex; }
  .topo-acoes, .nav + .topo-acoes { margin-left: auto; gap: 12px; }
}
@media (max-width: 639px) { .topo-cta { display: none; } }

.menu-movel {
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  margin: 0; padding: 0 0 32px; border: 0; background: var(--cream-100); color: var(--ink-900);
  overflow-y: auto;
}
.menu-movel::backdrop { background: rgba(12, 42, 58, 0.35); }
.menu-movel-topo { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--cream-200); }
.menu-movel-nav ul { list-style: none; margin-top: 8px; }
.menu-movel-nav a:not(.btn) {
  display: flex; align-items: center; min-height: 56px;
  color: var(--ink-900); font-size: 22px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--cream-200);
}
.menu-movel-nav a:not(.btn):hover { color: var(--vg-800); }
.menu-movel-cta { width: 100%; margin-top: 24px; }
.menu-movel .assinatura { min-height: 0; }


/* ---------- Peças compartilhadas ---------- */
.destaque { background: var(--vg-50); border: 2px solid var(--vg-800); border-radius: var(--r-lg); padding: 24px 28px; }
.destaque h3 { color: var(--vg-800); }
.destaque p { margin-top: 8px; font-size: 16px; color: var(--ink-700); }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Rodapé ---------- */
.rodape { background: var(--vg-900); color: var(--cream-100); padding: 80px 0 40px; }
.rodape-grade { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; }
.rodape-marca { grid-column: 1 / span 4; padding-right: 32px; }
.rodape-marca p { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--cream-100); }
.rodape-barras { width: 36px; height: 30px; margin-bottom: 20px; fill: none; stroke: var(--vg-200); stroke-width: 4.5; stroke-linecap: round; }
.assinatura-reversa .assinatura-nome { color: var(--cream-50); }
.assinatura-reversa .assinatura-nome span { color: var(--vg-200); }
.rodape-frase { font-size: 18px !important; font-weight: 500; color: var(--cream-50) !important; margin-top: 20px !important; }
.rodape-coluna { grid-column: span 2; }
.rodape-coluna h2 { font: 500 12px/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--vg-200); margin-bottom: 12px; }
.rodape-coluna ul { list-style: none; display: grid; gap: 2px; }
.rodape-coluna a { display: inline-flex; align-items: center; min-height: 36px; color: var(--cream-100); font-size: 15px; text-decoration: none; overflow-wrap: anywhere; }
.rodape-coluna a:hover { color: var(--cream-50); text-decoration: underline; }
.rodape-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(251, 249, 244, 0.14); font: 400 12px/1.6 var(--font-mono); color: var(--vg-200); }
.rodape-base p:nth-child(2) { flex: 1 1 420px; }

@media (max-width: 900px) {
  .rodape { padding-top: 64px; }
  .rodape-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rodape-marca { grid-column: 1 / -1; padding-right: 0; }
  .rodape-coluna { grid-column: span 1; }
  .rodape-base { flex-direction: column; }
  .rodape-base p:nth-child(2) { flex: none; } /* em coluna, a base de 420px viraria altura */
}

/* ---------- Páginas legais e 404 ---------- */
.pagina-simples .topo-interno { justify-content: space-between; }
.legal { padding-block: 64px var(--sec-y); }
.legal-cabeca { max-width: 740px; }
.legal-cabeca h1 { font-size: var(--t-h2); line-height: 1.05; letter-spacing: -0.03em; margin-top: 16px; }
.selo-preliminar {
  display: inline-flex; margin-top: 20px; padding: 4px 12px; border-radius: var(--r-pill);
  background: var(--vg-100); color: var(--vg-800); border: 1px dashed var(--vg-800);
  font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.legal-meta { margin-top: 16px; font: 400 13px/1.5 var(--font-mono); color: var(--ink-500); }
.legal-corpo { max-width: 68ch; margin-top: 48px; }
.legal-corpo h2 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.02em; margin-top: 48px; }
.legal-corpo h2:first-child { margin-top: 0; }
.legal-corpo p, .legal-corpo li { font-size: 17px; line-height: 1.65; color: var(--ink-700); }
.legal-corpo p { margin-top: 14px; }
.legal-corpo ul { margin-top: 14px; padding-left: 1.2em; display: grid; gap: 8px; }
.legal-corpo li::marker { color: var(--vg-800); }
.legal-corpo .destaque { margin-top: 32px; }
.voltar { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; }

/* ---------- Alto contraste (Windows) ---------- */
@media (forced-colors: active) {
  .btn, .pv-botao, .etiqueta, .menu-botao, .menu-fechar { border: 1px solid CanvasText; }
  .no, .no-claro, .ponto-vivo, .barra i { forced-color-adjust: none; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .btn:active { transform: none; }
}

/* ---------- Impressão ---------- */
@media print {
  .topo, .menu-movel, .pular, .form-cartao { display: none !important; }
  .amora, .rodape { background: none !important; color: var(--ink-900) !important; }
  .sobre-amora h2, .sobre-amora .lead, .sobre-amora .kicker { color: var(--ink-900) !important; }
}

.legal-cabeca .lead { margin-top: 20px; }
.legal-cabeca .acoes { margin-top: 32px; }
