/* ctbiz.co: o desenho vem do canvas aprovado (estilos em linha no HTML).
   Aqui fica o que o estilo em linha não resolve: base, cabeçalho, abas, formulário e o ajuste para celular.
   Paleta do manual V03: Verde Capital #0B2A1C, Luz #FFD21D, Papel #F7F5EE, Verde Dados #0F4C3A. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: #F7F5EE;
  color: #0B2A1C;
  font-family: Montserrat, 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: #0B2A1C; }
a:hover { color: #0F4C3A; }
:focus-visible { outline: 3px solid #FFD21D; outline-offset: 3px; }
.pagina { overflow-x: clip; }
[id] { scroll-margin-top: 84px; }

/* ---------- cabeçalho ---------- */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(11, 42, 28, 0.08);
}
.topo-in {
  position: relative;
  max-width: 1280px; margin: 0 auto; padding: 14px 32px;
  display: flex; align-items: center; gap: 12px 40px;
}
.topo-logo { flex: none; display: flex; align-items: center; }
.topo-logo img { height: 40px; width: auto; display: block; }
.topo-nav { flex: 1 1 auto; display: flex; align-items: center; gap: 12px 40px; }
.topo-links { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 6px 30px; font-size: 15px; font-weight: 600; }
.topo-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.topo-acoes { display: flex; align-items: center; gap: 10px; }
.topo-lingua {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none;
}
.topo-lingua:hover { background: #E3EBE5; }
.bt-cliente {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid rgba(11, 42, 28, 0.2);
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.bt-fale {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px;
  border-radius: 999px; background: #0B2A1C; color: #FFFFFF;
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.bt-fale:hover { color: #FFD21D; }
.topo-menu { display: none; }

@media (max-width: 1100px) {
  .topo-menu {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto;
    min-height: 44px; padding: 0 16px; border-radius: 999px;
    border: 1px solid rgba(11, 42, 28, 0.2); background: #FFFFFF; color: #0B2A1C;
    font: 600 15px Montserrat, sans-serif; cursor: pointer;
  }
  .topo-menu-ic { position: relative; width: 18px; height: 12px; display: inline-block; }
  .topo-menu-ic i {
    position: absolute; left: 0; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform 0.2s, opacity 0.2s, top 0.2s;
  }
  .topo-menu-ic i:nth-child(1) { top: 0; }
  .topo-menu-ic i:nth-child(2) { top: 5px; }
  .topo-menu-ic i:nth-child(3) { top: 10px; }
  .topo.aberto .topo-menu-ic i:nth-child(1) { top: 5px; transform: rotate(45deg); }
  .topo.aberto .topo-menu-ic i:nth-child(2) { opacity: 0; }
  .topo.aberto .topo-menu-ic i:nth-child(3) { top: 5px; transform: rotate(-45deg); }

  .topo-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 4px 20px 22px; background: #FFFFFF;
    border-bottom: 1px solid rgba(11, 42, 28, 0.08);
    box-shadow: 0 30px 40px -28px rgba(11, 42, 28, 0.4);
    max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .topo.aberto .topo-nav { display: flex; }
  .topo-links { flex-direction: column; gap: 0; font-size: 17px; }
  .topo-links a { min-height: 52px; border-bottom: 1px solid rgba(11, 42, 28, 0.08); }
  .topo-acoes { flex-wrap: wrap; gap: 10px; }
  .topo-acoes .bt-cliente, .topo-acoes .bt-fale { flex: 1 1 180px; justify-content: center; min-height: 48px; }
  .topo-lingua { border: 1px solid rgba(11, 42, 28, 0.2); }
}

/* ---------- ecossistema: abas ---------- */
.aba {
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3); background: transparent; color: #FFFFFF;
  font: 600 15px Montserrat, sans-serif; cursor: pointer;
}
.aba:hover { border-color: #FFD21D; }
.aba[aria-pressed="true"] { border-color: #FFD21D; background: #FFD21D; color: #0B2A1C; font-weight: 700; }

/* ---------- Mesa de Conselho ---------- */
.mesa-montagem { width: 390px; height: 844px; background: #17110D; }

/* hero: a Mesa tem z-index próprio; sem um contexto de empilhamento no celular dela, ela subia por cima do cartão */
.hero-comprovou { z-index: 0; }
.hero-celular { z-index: 1; }
.hero-cartao { z-index: 2; }

/* cartões das frentes: as linhas decorativas ficam atrás do texto e do botão */
.cartao-frente > :not(svg) { position: relative; z-index: 1; }

/* ---------- contato ---------- */
.form-contato input, .form-contato textarea { width: 100%; }
.form-contato input:focus, .form-contato textarea:focus { outline: 2px solid #FFD21D; outline-offset: 1px; }
.form-contato [aria-invalid="true"] { border-color: #FF9C8A !important; }
.campo-isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-lgpd { margin: 0; font-size: 13px; color: #C9D3CD; }
.form-lgpd a, .form-estado a { color: #FFD21D; }
.form-estado { margin: 0; font-size: 15px; font-weight: 600; color: #FFFFFF; }
.form-estado[data-estado="invalido"], .form-estado[data-estado="erro"] { color: #FFC9BF; }
.form-enviar:disabled { opacity: 0.6; cursor: progress; }

/* ---------- página de texto (privacidade) ---------- */
.texto { max-width: 820px; margin: 0 auto; padding: 72px 32px 120px; }
.texto h1 { margin: 0 0 8px; font-size: clamp(34px, 4.2vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; }
.texto h2 { margin: 40px 0 8px; font-size: 22px; line-height: 1.3; }
.texto p, .texto li { color: #3D4A43; }
.texto .data { margin: 0 0 32px; font-size: 15px; color: #4A5550; }
.texto a { color: #0F4C3A; font-weight: 600; }
.rodape-simples { background: #0B2A1C; color: #C9D3CD; font-size: 14px; }
.rodape-simples div { max-width: 1280px; margin: 0 auto; padding: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.rodape-simples a { color: #FFD21D; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .hero-comp { max-width: 520px !important; }
}

/* ---------- celular ---------- */
@media (max-width: 720px) {
  body { font-size: 17px; }
  .topo-in { padding: 10px 16px; }
  .topo-logo img { height: 34px; }

  .sec { padding: 72px 20px !important; }
  .sec-hero { padding: 40px 20px 56px !important; gap: 36px !important; }
  .faixa-clientes { padding: 18px 20px !important; }
  .faixa-clientes ul { flex-basis: 100% !important; justify-content: space-between !important; gap: 12px 14px !important; }
  .faixa-clientes img { height: 26px !important; }
  .sec-sobre { padding: 0 20px !important; }
  .sec-contato { padding: 0 12px 72px !important; }
  .rodape-in { padding: 56px 20px 32px !important; }

  /* hero: os dois celulares e o cartão cabem na largura do telefone; o cartão fica só sobre o Comprovou,
     sem cobrir a Mesa (pedido do Jonas no desenho) */
  .hero-comp { aspect-ratio: 1 / 1.12 !important; }
  .hero-comprovou { left: 3% !important; top: 14% !important; width: 42% !important; }
  .hero-comprovou b { white-space: nowrap; font-size: 15px !important; }
  .hero-celular { left: 47% !important; top: 0 !important; padding: 7px !important; border-radius: 30px !important; }
  .hero-celular-tela { zoom: 0.42 !important; }
  .hero-cartao { left: 0 !important; bottom: 4% !important; width: 46% !important; padding: 10px 12px !important; gap: 8px !important; border-radius: 16px !important; }
  .hero-cartao > span:first-child { width: 30px !important; height: 30px !important; border-radius: 9px !important; }
  .hero-cartao > span:first-child svg { width: 18px; height: 18px; }
  .hero-cartao > span:last-child { display: none !important; }
  .hero-cartao b { font-size: 13px !important; }
  .hero-cartao b + span { font-size: 11px !important; }

  .cartao-frente { padding: 28px !important; min-height: 0 !important; }
  .cartao-frente > svg { width: 170px !important; height: 170px !important; right: -36px !important; bottom: -36px !important; }
  .painel-in { padding: 28px 22px !important; gap: 28px !important; }
  .painel-in[style*="56px 56px 0"] { padding: 28px 22px 0 !important; }
  .painel-in > div[style*="padding-bottom: 56px"] { padding-bottom: 8px !important; }
  .print-app { height: 300px !important; }

  .mesa-circulo { width: 330px !important; height: 330px !important; }
  .mesa-celular { zoom: 0.66 !important; }

  .cartao-etapa { min-height: 460px !important; padding: 28px !important; }

  .sobre-foto { padding: 56px 0 8px !important; }
  .sobre-texto { padding: 32px 0 72px !important; }
  .selo-fundador { left: 12px !important; bottom: 16px !important; padding: 12px 16px !important; }

  .destaque-texto { padding: 26px !important; }
  .cartao-presenca { padding: 28px !important; }
  .cartao-contato { padding: 36px 22px !important; border-radius: 28px !important; }

  .texto { padding: 48px 20px 88px; }
}

@media (max-width: 380px) {
  .hero-celular-tela { zoom: 0.39 !important; }
  .mesa-celular { zoom: 0.6 !important; }
}
