/* ============================================================
   shared/ds.css — design system
   ============================================================ */
/* ============================================================
   DS COMPARTILHADO — emissor.contabilizei.com.br
   Tokens · grid · nav própria · footer · botões.

   ⚠️ ESTE ARQUIVO NÃO CONTÉM REGRA DE SEÇÃO.
   Cada página tem seu style.css prefixado (.p-home / .p-calc /
   .p-ass / .p-seo) e NUNCA sobrescreve .btn-cta.

   Todos os valores vêm de resources/tokens.md. Nenhuma cor
   inventada. Página standalone: header/footer oficiais do DS
   NÃO são usados (decisão do stakeholder).
   ============================================================ */

/* ---------------------------------------------------------- TOKENS */
:root {
  /* Marca */
  --blue-700: #0E53C0;   /* azul primário — interação */
  --blue-800: #093CA3;   /* azul hover */
  --blue-900: #002868;   /* azul office (escuro) */
  --cyan-cta: #04F7F7;   /* ciano digital — CTA */
  --cyan-hover: #00d9d9;
  --cyan-300: #27CBCB;

  /* Escala azul */
  --blue-50:  #E5F0FF;
  --blue-100: #C9E0FF;
  --blue-200: #9FC8FF;
  --blue-300: #73B0FF;
  --blue-400: #4D9AFF;
  --blue-500: #2C85FF;
  --blue-600: #1169F5;

  /* Escala ciano */
  --cyan-50:  #EEF8F8;
  --cyan-100: #E2F8F8;
  --cyan-400: #1FA2A2;
  --cyan-500: #177A79;

  /* Cinzas */
  --gray-50:  #F7F9FF;
  --gray-100: #EBEFFA;
  --gray-200: #E1E6F5;
  --gray-300: #CCD4E8;
  --gray-400: #B0B9D1;
  --gray-500: #757D92;
  --gray-600: #545B6F;
  --gray-700: #3F4658;
  --gray-800: #2D3342;
  --gray-900: #202636;
  --gray-950: #1B2130;

  /* Feedback */
  --success-100: #AADFC1;
  --success-500: #128243;
  --success-600: #0F6735;
  --error-100:   #F7D2DA;
  --error-500:   #DF1642;
  --error-600:   #B21235;
  --warn-100:    #FFE1A6;
  --warn-400:    #CF972D;

  /* Semânticos */
  --text-title:   #2D3342;
  --text-body:    #3F4658;
  --text-caption: #545B6F;
  --bg-page:      #F7F9FF;
  --bg-card:      #FFFFFF;
  --hairline:     #E1E6F5;

  /* Sombras (profundidade sutil, sem cor nova — navy translúcido) */
  --shadow-sm: 0 1px 2px rgba(0, 40, 104, .06);
  --shadow-md: 0 4px 16px rgba(0, 40, 104, .08);
  --shadow-lg: 0 12px 32px rgba(0, 40, 104, .10);
  --shadow-nav: 0 2px 12px rgba(0, 40, 104, .08);

  /* Halo de foco de campo (derivado do azul primário) */
  --focus-halo: 0 0 0 4px rgba(14, 83, 192, .16);
  --focus-ring: 0 0 0 3px rgba(14, 83, 192, .45);

  /* Raios */
  --r-card: 24px;
  --r-block: 16px;
  --r-chip: 9999px;

  /* Camadas — sticky bar < nav < modal */
  --z-sticky: 1040;
  --z-nav:    1045;
  --z-modal:  1100;

  /* Altura da nav (usada por scroll-margin-top das âncoras) */
  --nav-h: 64px;
}

@media (min-width: 1024px) {
  :root { --nav-h: 72px; }
}

/* ---------------------------------------------------------- RESET */
*, *::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: var(--bg-card);
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Trava de fonte da marca. Escopada a texto/controles — a página não
   usa Font Awesome, então não há ícone de fonte para quebrar. */
body, h1, h2, h3, h4, h5, h6, p, a, span, li, td, th, label, small, strong, em,
button, input, select, textarea, figcaption, blockquote, summary {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

img, svg { max-width: 100%; }
img { height: auto; border: 0; }
/* <picture> nasce inline: dentro de um card com overflow:hidden ele deixa um
   resíduo de line-box embaixo da foto. Como só existe para trocar a fonte da
   imagem, ele não deve gerar caixa própria. */
picture { display: contents; }

h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--text-title); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--blue-700); }

/* Foco visível — nunca removido, só substituído por um anel legível */
:focus-visible {
  outline: 2px solid var(--blue-700);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Âncoras não somem atrás da nav sticky */
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* Utilitário de leitor de tela.
   ⚠️ Use SEMPRE num <div>/<span> wrapper, nunca direto num <table>:
   uma tabela ignora width:1px (o layout expande para o min-content) e
   passa a empurrar o scrollWidth do documento, criando scroll
   horizontal na página. O wrapper com overflow:hidden resolve. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  max-width: 1px; max-height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------- GRID */
/* max-width 1200px + padding lateral 16 / 24 / 40.
   Header, footer e conteúdo usam o MESMO grid. */
.pcon {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 600px)  { .pcon { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 1280px) { .pcon { padding-left: 40px; padding-right: 40px; } }

/* Ritmo vertical. SEMPRE longhand — padding shorthand num elemento
   com .pcon zera o padding lateral e desalinha do header. */
.section-pad { padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 768px)  { .section-pad { padding-top: 72px; padding-bottom: 72px; } }
@media (min-width: 1024px) { .section-pad { padding-top: 96px; padding-bottom: 96px; } }

.section-pad--tight { padding-top: 40px; padding-bottom: 40px; }
@media (min-width: 1024px) { .section-pad--tight { padding-top: 56px; padding-bottom: 56px; } }

/* ---------------------------------------------------------- TIPOGRAFIA FLUIDA */
.fluid-hero-title { font-size: clamp(1.875rem, 5vw, 2.625rem); line-height: 1.1;    letter-spacing: -.03em; font-weight: 800; }
.fluid-h2         { font-size: clamp(1.5rem, 2.5vw, 1.75rem);  line-height: 1.2857; letter-spacing: -.03em; font-weight: 700; }
.fluid-h3         { font-size: clamp(1.25rem, 2vw, 1.5rem);    line-height: 1.2917; letter-spacing: -.03em; font-weight: 700; }
.fluid-h4         { font-size: clamp(1.125rem, 1.5vw, 1.25rem);line-height: 1.3;    letter-spacing: -.02em; font-weight: 700; }
.fluid-b1         { font-size: clamp(1rem, 1.5vw, 1.125rem);   line-height: 1.65; }

/* ---------------------------------------------------------- BOTÕES */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--r-chip);
  background: var(--cyan-cta);
  color: #0E1829;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn-cta:hover { background: var(--cyan-hover); }
.btn-cta:active { transform: translateY(1px); }
.btn-cta:focus-visible { outline: 2px solid var(--blue-900); outline-offset: 3px; }

.btn-cta--interaction { background: var(--blue-700); color: #fff; }
.btn-cta--interaction:hover { background: var(--blue-800); }
.btn-cta--interaction:focus-visible { outline-color: var(--blue-900); }

.btn-cta--outline {
  background: transparent;
  color: var(--blue-700);
  box-shadow: inset 0 0 0 1px var(--blue-700);
}
.btn-cta--outline:hover { background: var(--blue-50); }

/* Outline sobre fundo escuro */


.btn-cta[disabled], .btn-cta:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

/* ---- MOBILE-FIRST ----
   Base (= mobile, 80% do tráfego): CTA full-width e SEMPRE PREENCHIDO.
   Ghost transparente em 375px é CTA que ninguém vê. */
.btn-cta,
.btn-cta--card { width: 100%; }

.btn-cta--outline {
  background: var(--blue-50);
  box-shadow: inset 0 0 0 1px var(--blue-200);
}

/* Desktop: largura natural e o outline volta a ser contorno. */
@media (min-width: 600px) {
  .btn-cta { width: auto; }
  .btn-cta--card { width: 279px; max-width: 100%; }
  .btn-cta--outline { background: transparent; box-shadow: inset 0 0 0 1px var(--blue-700); }
  .btn-cta--outline:hover { background: var(--blue-50); }
}

/* Link terciário com chevron (não é CTA — não leva ícone de botão) */
.link-chevron {
  display: inline-flex;
  align-items: center;
  min-height: 44px;          /* alvo de toque no polegar */
  gap: 6px;
  color: var(--blue-700);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}
.link-chevron:hover { color: var(--blue-800); text-decoration: underline; }
.link-chevron::after { content: '›'; font-size: 1.15em; line-height: 1; }

/* ---------------------------------------------------------- EYEBROW / CHIPS */
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--blue-700);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
/* Sobre fundo escuro o eyebrow é ciano (o azul perde contraste) */
.eyebrow--on-dark { color: var(--cyan-cta); }

/* Selos de confiança em UMA linha, separados por ponto medio.
   Em pilulas eles quebravam feio a 375px: dois na primeira linha e um
   orfao na segunda, logo abaixo do CTA. Como texto corrido a linha inteira
   cabe em 375px e o ritmo do hero fica limpo. A partir de 600px voltam a
   ser pilulas, onde ha largura para os tres lado a lado. */
.trust-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  list-style: none;
  color: var(--text-caption);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.5;
}
.trust-chips li { display: inline-flex; align-items: center; }
.trust-chips li + li::before {
  content: '·';
  margin-right: 8px;
  color: var(--gray-400, var(--gray-500));
}

@media (min-width: 600px) {
  .trust-chips { gap: 8px; }
  .trust-chips li {
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--r-chip);
    background: var(--bg-card);
  }
  .trust-chips li + li::before { content: none; margin-right: 0; }
}

.trust-chips--on-dark { color: rgba(255, 255, 255, .92); }
.trust-chips--on-dark li + li::before { color: rgba(255, 255, 255, .45); }
@media (min-width: 600px) {
  .trust-chips--on-dark li {
    border-color: rgba(4, 247, 247, .32);
    background: rgba(4, 247, 247, .10);
    color: rgba(255, 255, 255, .92);
  }
}

/* ---------------------------------------------------------- CAMPOS DE FORM */
.field { display: block; margin-bottom: 16px; }
/* OBRIGATÓRIO: `hidden` é display:none de user-agent e PERDE para o
   `display: block` de autor acima. Sem esta linha, esconder um campo
   por atributo não funciona (foi o que deixou o valor de ISS visível
   quando a pessoa escolhe a estimativa automática). */
.field[hidden] { display: none !important; }

/* Campo com prefixo de moeda. O "R$" fica DENTRO da borda do controle.
   Sem isto o span inline não cabe ao lado de um input com width:100% e o
   campo desce para a linha seguinte, deixando um "R$" solto acima. */
.field__addon { position: relative; display: block; }
.field__addon .field__prefix {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--text-caption);
  font-size: 1rem;
  font-weight: 600;
  pointer-events: none;
}
.field__addon .field__control { padding-left: 42px; }

.field__label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-title);
  font-size: .875rem;
  font-weight: 600;
}

.field__hint {
  display: block;
  margin-top: 6px;
  color: var(--text-caption);
  font-size: .8125rem;
  line-height: 1.45;
}

/* font-size 16px é obrigatório: abaixo disso o iOS dá zoom automático ao
   focar o campo e desloca o layout inteiro. */
input, select, textarea { font-size: 16px; }

.field__control,
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-title);
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field__control::placeholder { color: var(--gray-400); }

.field__control:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue-700);
  box-shadow: var(--focus-halo);
}

/* Estado de erro — inline, nunca alert() */
.field__control.is-invalid { border-color: var(--error-500); }
.field__control.is-invalid:focus { box-shadow: 0 0 0 4px rgba(223, 22, 66, .16); }

.field__error {
  display: none;
  margin-top: 6px;
  color: var(--error-600);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.45;
}
.field__error.is-visible { display: block; }

/* Foco de campo iluminado — halo no container inteiro */
.field-focus-glow { transition: box-shadow .2s ease, border-color .2s ease; }
.field-focus-glow:focus-within {
  border-color: var(--blue-300);
  box-shadow: var(--focus-halo);
}

/* ---------------------------------------------------------- NAV PRÓPRIA (standalone) */
.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--bg-card);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow .2s ease;
}
.site-nav.is-scrolled { box-shadow: var(--shadow-nav); }

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--nav-h);
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;          /* alvo de toque: o <a> tinha só a altura do logo */
  text-decoration: none;
}
.site-nav__brand img { display: block; width: 148px; height: auto; }
@media (min-width: 1024px) { .site-nav__brand img { width: 172px; } }

/* Abas — desktop */
.site-nav__tabs {
  display: none;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.site-nav__tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;              /* alvo de toque */
  padding: 8px 14px;
  border-radius: var(--r-chip);
  color: var(--text-body);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.site-nav__tab:hover { background: var(--gray-50); color: var(--blue-700); }
.site-nav__tab:active { background: var(--blue-50); color: var(--blue-800); }
.site-nav__tab[aria-current="page"] {
  background: var(--blue-50);
  color: var(--blue-800);
}

.site-nav__actions { display: none; flex: 0 0 auto; }
.site-nav__actions .btn-cta { min-height: 44px; padding: 0 20px; font-size: .9375rem; }

/* Hambúrguer — mobile */
.site-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: var(--bg-card);
  cursor: pointer;
}
.site-nav__toggle-bars {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-title);
  transition: background-color .2s ease;
}
.site-nav__toggle-bars::before,
.site-nav__toggle-bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-title);
  transition: transform .2s ease;
}
.site-nav__toggle-bars::before { top: -6px; }
.site-nav__toggle-bars::after  { top: 6px; }

.site-nav.is-open .site-nav__toggle-bars { background: transparent; }
.site-nav.is-open .site-nav__toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.site-nav.is-open .site-nav__toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* Painel mobile */
.site-nav__panel {
  display: none;
  padding-top: 8px;
  padding-bottom: 16px;
  border-top: 1px solid var(--hairline);
}
.site-nav.is-open .site-nav__panel { display: block; }

.site-nav__panel ul { list-style: none; }
.site-nav__panel .site-nav__tab {
  display: block;
  padding: 12px 12px;
  border-radius: var(--r-block);
  font-size: 1rem;
}
.site-nav__panel .btn-cta { margin-top: 12px; }

@media (min-width: 1024px) {
  .site-nav__tabs   { display: flex; }
  .site-nav__actions { display: block; }
  .site-nav__toggle { display: none; }
  .site-nav__panel  { display: none !important; }
}

/* ---------------------------------------------------------- FOOTER ENXUTO */
.site-footer {
  background: var(--gray-50);
  border-top: 1px solid var(--hairline);
  color: var(--text-caption);
  font-size: .875rem;
}
.site-footer__inner { padding-top: 40px; padding-bottom: 40px; }

.site-footer__top {
  display: grid;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 768px) {
  .site-footer__top { grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
}

.site-footer__brand img { width: 156px; height: auto; }
.site-footer__tagline { margin-top: 12px; max-width: 34ch; line-height: 1.55; }

.site-footer__col-title {
  margin-bottom: 10px;
  color: var(--text-title);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-footer__links { list-style: none; }
.site-footer__links li + li { margin-top: 2px; }
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;          /* alvo de toque; era ~17px */
  color: var(--text-caption);
  text-decoration: none;
}
.site-footer__links a:active { color: var(--blue-800); }
.site-footer__links a:hover { color: var(--blue-700); text-decoration: underline; }

/* Selos RA1000 + Cultura Ética */
.site-footer__seals {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}
.site-footer__seals img { width: auto; height: 52px; }

.site-footer__legal {
  padding-top: 20px;
  color: var(--gray-600);
  font-size: .75rem;
  line-height: 1.6;
}
.site-footer__legal p + p { margin-top: 8px; }
.site-footer__legal strong { color: var(--text-caption); font-weight: 600; }

/* ---------------------------------------------------------- STICKY CTA BAR (#31) */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-sticky);
  background: var(--bg-card);
  border-top: 1px solid var(--hairline);
  box-shadow: 0 -4px 20px rgba(0, 40, 104, .10);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(110%);
  transition: transform .28s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }

/* SILENCIADA enquanto o usuário digita num formulário.
   No iOS o teclado ocupa metade da tela e uma barra fixa de ~120px cobria o
   campo em foco e o próprio botão de enviar — submissão perdida. */
.sticky-cta.is-hushed { transform: translateY(110%); }

/* MOBILE (base, sem media query): coluna — botão primário full-width em cima,
   link de texto discreto embaixo. Um CTA forte, não dois competindo. */
.sticky-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* A frase do estado é ruído em 375px: o botão já diz o que faz. Só desktop. */
.sticky-cta__text {
  display: none;
  color: var(--text-title);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.sticky-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.sticky-cta__actions .btn-cta { width: 100%; min-height: 48px; font-size: 1rem; }

/* Link secundário: alvo de toque ≥44px mesmo sendo texto. */
.sticky-cta__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--blue-700);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sticky-cta__link:active { color: var(--blue-800); }

/* Troca de estado A/B — o conteúdo troca, a barra não pisca. */
.sticky-cta__primary,
.sticky-cta__link { display: none; }
.sticky-cta[data-active="a"] .sticky-cta__primary[data-state="a"],
.sticky-cta[data-active="b"] .sticky-cta__primary[data-state="b"] { display: inline-flex; }
.sticky-cta[data-active="a"] .sticky-cta__link[data-state="a"],
.sticky-cta[data-active="b"] .sticky-cta__link[data-state="b"] { display: inline-flex; }
.sticky-cta[data-active="a"] .sticky-cta__text[data-state="a"],
.sticky-cta[data-active="b"] .sticky-cta__text[data-state="b"] { display: none; }

/* DESKTOP: a linha de texto entra, o link secundário sai, tudo em uma linha. */
@media (min-width: 768px) {
  .sticky-cta__inner {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .sticky-cta[data-active="a"] .sticky-cta__text[data-state="a"],
  .sticky-cta[data-active="b"] .sticky-cta__text[data-state="b"] { display: block; flex: 1 1 auto; }

  .sticky-cta__actions { width: auto; flex: 0 0 auto; }
  .sticky-cta__actions .btn-cta { width: auto; min-height: 46px; padding: 0 24px; font-size: .9375rem; }

  .sticky-cta[data-active="a"] .sticky-cta__link[data-state="a"],
  .sticky-cta[data-active="b"] .sticky-cta__link[data-state="b"] { display: none; }
}

/* Reserva de espaço para a barra não cobrir o último CTA/footer */
/* A barra tem 2 linhas no mobile (botão + link) e 1 no desktop. */
body.has-sticky-cta { padding-bottom: 122px; }
@media (min-width: 768px) { body.has-sticky-cta { padding-bottom: 76px; } }

/* ---------------------------------------------------------- FAQ (#30 — modelo padrão) */
.faq__list { list-style: none; }

.faq__item { border-bottom: 1px solid #EAEDF5; }

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  border: 0;
  background: none;
  color: var(--text-title);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}
.faq__q svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--gray-500);
  transition: transform .22s ease, color .22s ease;
}
.faq__item.is-open .faq__q svg { transform: rotate(180deg); color: var(--blue-700); }
.faq__q:active { color: var(--blue-800); }

/* Animacao por grid-template-rows: anima na composicao certa e sem o teto
   magico de 760px (max-height animava reflow por frame e cortava resposta
   longa; com rows 0fr->1fr a altura e sempre a real). */
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
}
.faq__a > .faq__a-inner { min-height: 0; overflow: hidden; }
/* 760px, não 620: a resposta da inscrição municipal tem 2 parágrafos e a
   360px de largura passava de 620px — o texto era cortado sem aviso. */
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

.faq__a-inner { padding-bottom: 20px; }
.faq__a-inner p { color: var(--text-body); line-height: 1.7; }
.faq__a-inner p + p { margin-top: 10px; }

/* ---------------------------------------------------------- REVEAL
   O estado ESCONDIDO depende de `html.reveal-on`, que um snippet inline no
   <head> só adiciona quando há IntersectionObserver e o usuário não pediu
   menos movimento. Motivo: com `.js-reveal { opacity: 0 }` solto no CSS,
   qualquer falha de JS (erro, bloqueio, script não baixado) deixava o
   conteúdo invisível PARA SEMPRE. Agora a ausência de JS revela tudo. */
.reveal-on .js-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal-on .js-reveal.is-revealed { opacity: 1; transform: none; }

/* ---------------------------------------------------------- REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js-reveal { opacity: 1; transform: none; }
}


/* ============================================================
   ./style.css — estilos da página
   ============================================================ */
/* ============================================================
   HOME — emissor de NFS-e gratuito
   Arquétipo: parceiro-financeiro (banners de ponte + tabs por
   perfil) + o bloco de sticky bar/comparativo de sao-paulo.
   Eixos de divergência desta página: hero CLARO (#F7F9FF),
   densidade média-alta modular, cards de 24px, ritmo modular.

   Prefixo .p-home. NÃO sobrescreve .btn-cta.
   ============================================================ */

/* ---------------------------------------------------------- BASE DA PÁGINA */
.p-home .accent { color: var(--blue-700); }

/* Skip link. position:fixed de propósito: um absolute deslocado para
   fora da tela ainda entra no scrollWidth em alguns engines. */
.skip-link {
  position: fixed;
  top: -100px;
  left: 0;
  z-index: var(--z-modal);
  padding: 12px 20px;
  background: var(--blue-700);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 12px 0;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }

/* Cabeçalho de seção — à ESQUERDA, no mesmo grid do hero */
.p-home .sec-head { max-width: 58ch; margin-bottom: 32px; }
.p-home .sec-head__sub { margin-top: 12px; color: var(--text-body); }

/* ============================================================ HERO */
.p-home .hero {
  position: relative;
  overflow: hidden;
  background: var(--gray-50);
  border-bottom: 1px solid var(--hairline);
}

/* Gradient mesh DISCRETO — CSS puro (radiais + keyframes lentos),
   sem canvas. Não pode roubar contraste do H1 nem do mock. */
.p-home .hero__mesh {
  position: absolute;
  inset: -20% -10%;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 18% 22%, rgba(14, 83, 192, .13) 0%, rgba(14, 83, 192, 0) 68%),
    radial-gradient(34% 38% at 82% 12%, rgba(4, 247, 247, .16) 0%, rgba(4, 247, 247, 0) 70%),
    radial-gradient(46% 46% at 68% 88%, rgba(44, 133, 255, .11) 0%, rgba(44, 133, 255, 0) 72%);
  animation: meshDrift 26s ease-in-out infinite alternate;
  /* Auto-pause: uma camada full-bleed animando fora da viewport mantinha o
     compositor acordado pela sessão inteira — bateria e jank no mobile de
     entrada, que é o device deste público. `will-change` removido pelo mesmo
     motivo: a animação de transform já promove a camada enquanto roda. */
  animation-play-state: paused;
}
.p-home .hero.is-inview .hero__mesh { animation-play-state: running; }
@keyframes meshDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-2.5%, 1.8%, 0) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .p-home .hero__mesh { animation: none; }
}

.p-home .hero__inner {
  position: relative;
  padding-top: 48px;
  padding-bottom: 48px;
}
@media (min-width: 1024px) {
  .p-home .hero__inner {
    display: grid;
    grid-template-columns: 6fr 6fr;   /* split 6/6 */
    align-items: center;
    gap: 48px;
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

.p-home .hero__title { margin-bottom: 20px; max-width: 20ch; text-wrap: balance; }
.p-home .hero__sub { max-width: 46ch; color: var(--text-body); }

/* Ritmo do hero: sub -> CTA = CTA -> trust (iguais, 24px) */
.p-home .hero__actions { margin-top: 24px; }
.p-home .hero__trust { margin-top: 24px; }

/* ---------------------------------------------------------- MOCK DO HERO */
.p-home .hero__media { margin-top: 40px; }
@media (min-width: 1024px) { .p-home .hero__media { margin-top: 0; } }

/* ============================================================ HERO SHOT
   Foto + UI da nota sobreposta. O painel da nota aparece JA no primeiro
   frame; o scroll so anima o preenchimento e a resposta do assistente.
   Mobile-first: a foto entra abaixo do CTA, com a UI ancorada no rodape
   dela (mesma logica da linha de transacao da referencia). */
.p-home .heroshot {
  position: relative;
  margin: 0;
  /* Sem padding-bottom: a comparação está no FLUXO e a altura dela já conta.
     Os 84px eram reserva do painel absoluto anterior e deixavam 188px de
     branco morto entre a legenda e a dobra seguinte no mobile. */
}

.p-home .heroshot__img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 4 / 5;             /* trava o espaco: zero CLS */
  margin-inline: auto;
  border-radius: var(--r-card);
  object-fit: cover;
  background: var(--gray-100);     /* placeholder enquanto decodifica */
}

/* ------------------------------------------------ COMPARAÇÃO ANIMADA
   A mesma tarefa nos dois caminhos. Encosta no rodapé da foto e transborda,
   como a linha de transação da referência.
   MOBILE-FIRST: empilhado; lado a lado a partir de 900px. */
.p-home .vs {
  position: relative;
  left: 50%;
  /* 24px mais estreito que a foto: sem isso os dois têm a mesma largura e o
     recuo negativo lê como foto cortada, não como card sobreposto. */
  width: min(100% - 24px, 396px);
  transform: translateX(-50%);
  margin-top: -56px;
  display: grid;
  gap: 10px;
}
/* 1024px, não 900px: é onde o .hero__inner passa a ser split 6fr/6fr. Entre
   900 e 1023 a coluna tinha a largura inteira e os cards vazavam da foto. */
@media (min-width: 1024px) {
  .p-home .vs {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    margin-top: -40px;
  }
}

.p-home .vs__side {
  padding: 12px 13px 11px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-block);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
}
/* O lado do governo recua um passo: é o contraponto, não o protagonista. */
/* Recua um passo, mas ainda tem de LER como card: o fundo é o mesmo token
   do hero, então a separação vem da sombra. */
.p-home .vs__side--gov { background: var(--gray-50); box-shadow: var(--shadow-md); }
.p-home .vs__side--ctbz { border-color: var(--blue-200); }

.p-home .vs__head { margin-bottom: 8px; }
.p-home .vs__tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--gray-200);
  color: var(--text-caption);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.p-home .vs__tag--on { background: var(--blue-700); color: #fff; }

.p-home .vs__rows { display: grid; gap: 6px; }

.p-home .vs__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--gray-200);
  border-radius: 9px;
  background: var(--bg-card);
  color: var(--text-caption);
  font-size: .75rem;
  line-height: 1.3;
}
.p-home .vs__row b {
  margin-left: auto;
  color: var(--text-title);
  font-size: .75rem;
  font-weight: 700;
  text-align: right;
}
.p-home .vs__row--focus { border-color: var(--blue-700); color: var(--text-title); }
.p-home .vs__row--done  { border-color: var(--blue-200); background: var(--blue-50); }
.p-home .vs__row--done b { color: var(--blue-900); }

/* O "?" é o que comunica a fricção do outro caminho. */
.p-home .vs__q {
  margin-left: auto;
  flex: 0 0 auto;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-600);
  font-size: .75rem;
  font-weight: 800;
  font-style: normal;
  line-height: 18px;
  text-align: center;
}

.p-home .vs__ok { flex: 0 0 auto; width: 15px; height: 15px; color: var(--blue-700); }

.p-home .vs__bubble {
  padding: 8px 10px;
  border-radius: 11px 11px 11px 3px;
  background: var(--blue-700);
  color: #fff;
  font-size: .75rem;
  line-height: 1.4;
}

.p-home .vs__foot {
  margin-top: 8px;
  color: var(--text-caption);
  font-size: .75rem;
  line-height: 1.4;
}
.p-home .vs__foot--on { color: var(--blue-700); font-weight: 600; }

/* --- ANIMAÇÃO ------------------------------------------------------
   ESTADO BASE = final, legível. Sem JS, com reduced-motion ou se a
   animação não tocar, a comparação já está inteira na tela.
   `is-playing` roda UMA volta: os "?" pulsam no lado do governo, depois
   o assistente digita, fala e conclui no nosso lado. */
@media (prefers-reduced-motion: no-preference) {
  .p-home .vs.is-playing .vs__q      { animation: vsQ 4.2s ease-in-out 1 both; }
  .p-home .vs.is-playing .vs__typed  { animation: vsType 4.2s ease-out 1 both; }
  .p-home .vs.is-playing .vs__bubble { animation: vsBubble 4.2s ease-out 1 both; }
  .p-home .vs.is-playing .vs__row--done   { animation: vsDone 4.2s ease-out 1 both; }
  .p-home .vs.is-playing .vs__ok          { animation: vsOk 4.2s ease-out 1 both; }
  /* Escalona por linha para o olho seguir a ordem. */
  /* A 4ª linha é a SEGUNDA `--done`: o atraso vai nela, senão o olho lê a
     conclusão de baixo para cima. */
  .p-home .vs.is-playing .vs__rows .vs__row:nth-child(4) .vs__ok,
  .p-home .vs.is-playing .vs__rows .vs__row:nth-child(4).vs__row--done { animation-delay: .25s; }
}

@keyframes vsQ {
  0%, 6%   { opacity: 0; transform: scale(.6); }
  14%      { opacity: 1; transform: scale(1); }
  100%     { opacity: 1; transform: scale(1); }
}
@keyframes vsType  { 0%, 34% { opacity: 0; } 46% { opacity: 1; } 100% { opacity: 1; } }
@keyframes vsBubble { 0%, 46% { opacity: 0; transform: translateY(6px); } 58% { opacity: 1; transform: translateY(0); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes vsDone  { 0%, 66% { background: var(--bg-card); } 78% { background: var(--blue-50); } 100% { background: var(--blue-50); } }
@keyframes vsOk    { 0%, 72% { opacity: 0; transform: scale(.5); } 84% { opacity: 1; transform: scale(1); } 100% { opacity: 1; transform: scale(1); } }

.p-home .hero__media-cap {
  margin-top: 14px;
  color: var(--text-caption);
  font-size: .8125rem;
  line-height: 1.55;
  text-align: center;
}
@media (min-width: 1024px) { .p-home .hero__media-cap { text-align: left; } }
.p-home .hero__media-note { display: block; color: var(--gray-600); }

/* --- ANIMACAO ---------------------------------------------------
   ESTADO BASE = PREENCHIDO, sempre. Sem JS, sem IntersectionObserver, com
   reduced-motion ou se a animacao simplesmente nao tocar, o usuario ve o
   painel completo. O estado inicial (campo vazio) existe SO dentro dos
   keyframes, com fill-mode both: nao ha classe que deixe o painel vazio
   preso na tela. Isso e deliberado, campo em branco no hero seria pior
   que nao animar. */

/* ============================================================ CHIPS DE PROFISSÃO */
.p-home .prof { background: var(--bg-card); }

/* -------------------------------------------- PROF: seletor nativo
   Um <select> com optgroup no lugar de 3 botoes de area + 18 chips.
   No mobile o picker do sistema resolve 18 opcoes melhor que qualquer
   lista de botoes, e a secao deixa de ser um paredao. */
.p-home .prof__pick { max-width: 520px; }

.p-home .prof__picklabel {
  display: block;
  margin-bottom: 8px;
  color: var(--text-title);
  font-size: .9375rem;
  font-weight: 600;
}

.p-home .prof__pickwrap { position: relative; }

.p-home .prof__select {
  width: 100%;
  min-height: 52px;
  padding: 12px 44px 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-title);
  font-family: inherit;
  font-size: 1rem;              /* 16px: abaixo disso o iOS da zoom */
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.p-home .prof__select:hover { border-color: var(--blue-200); }
.p-home .prof__select:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 2px; }

.p-home .prof__pickicon {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  color: var(--blue-700);
  pointer-events: none;
}

.p-home .prof__pickhint {
  margin-top: 8px;
  color: var(--text-caption);
  font-size: .8125rem;
  line-height: 1.5;
}

.p-home .prof__panel {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: var(--gray-50);
}
.p-home .prof__lead { max-width: 62ch; color: var(--text-body); line-height: 1.7; }
.p-home .prof__desc {
  margin-top: 12px;
  max-width: 62ch;
  color: var(--text-caption);
  font-size: .875rem;
  line-height: 1.6;
}
.p-home .prof__desc strong { color: var(--text-body); }

/* Códigos em <details>: quem precisa deles abre; quem não sabe o que é CNAE
   não tromba com uma tabela de códigos no meio da conversa. */

/* Códigos validados: CNAE · item da LC 116/2003 · NBS */

.p-home .prof__rs {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--cyan-300);
  border-radius: 0 10px 10px 0;
  background: var(--cyan-50);
  color: var(--text-body);
  font-size: .8125rem;
  line-height: 1.6;
}

/* Roteamento do card de profissão: a assessoria é o CTA PRIMÁRIO
   (é lá que o time humano converte) e o emissor fica como saída secundária.
   Isso NÃO vale para o hero, cuja saída continua sendo o emissor — trocar a
   promessa do hero derrubaria a correspondência anúncio↔página. */
.p-home .prof__cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}
.p-home .prof__cta .link-chevron { justify-content: center; min-height: 44px; }
@media (min-width: 600px) {
  .p-home .prof__cta { flex-direction: row; align-items: center; gap: 20px; }
  .p-home .prof__cta .link-chevron { justify-content: flex-start; }
}

.p-home .prof__note {
  margin-top: 16px;
  max-width: 72ch;
  color: var(--text-caption);
  font-size: .8125rem;
  line-height: 1.6;
}

/* ============================================================ 4 PASSOS */
.p-home .steps { background: var(--gray-50); }

.p-home .steps__list {
  display: grid;
  gap: 16px;
  list-style: none;
}
@media (min-width: 768px)  { .p-home .steps__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .p-home .steps__list { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* -------------------------------------------- PASSOS EM DISCLOSURE
   Antes: 4 cartoes abertos = ~4 telas de leitura no mobile, "muita coisa
   ao mesmo tempo". Agora os 4 titulos ficam visiveis (a jornada inteira
   e escaneavel numa tela) e o texto abre sob demanda. <details> nativo:
   zero JS, acessivel, funciona sem script. */
.p-home .steps__d { border: 0; }
.p-home .steps__sum {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  cursor: pointer;
  list-style: none;
}
.p-home .steps__sum::-webkit-details-marker { display: none; }
.p-home .steps__sum:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 4px; border-radius: 8px; }

.p-home .steps__t {
  flex: 1 1 auto;
  color: var(--text-title);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
}
.p-home .steps__chev {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--blue-700);
  transition: transform .2s ease;
}
.p-home .steps__d[open] .steps__chev { transform: rotate(180deg); }

.p-home .steps__body {
  margin-top: 10px;
  padding-left: 44px;              /* alinha com o titulo, nao com o numero */
  color: var(--text-body);
  font-size: .9375rem;
  line-height: 1.65;
}
@media (max-width: 400px) { .p-home .steps__body { padding-left: 0; } }

/* Desktop: as 4 colunas cabem abertas. Quem ABRE e o JS (initSteps), porque
   navegadores novos escondem o conteudo de <details> com content-visibility
   no ::details-content, e `display: block` no filho nao vence isso. */
@media (min-width: 768px) {
  /* pointer-events: none impede fechar um painel sem affordance de reabrir
     (o chevron esta oculto no desktop). O tabindex -1 vem do initSteps. */
  .p-home .steps__sum { cursor: default; pointer-events: none; }
  .p-home .steps__chev { display: none; }
}

.p-home .steps__item {
  position: relative;
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.p-home .steps__item--hl {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(226, 248, 248, .7) 0%, rgba(226, 248, 248, 0) 62%),
    var(--bg-card);
}

.p-home .steps__num {
  display: block;
  margin-bottom: 10px;
  color: var(--blue-200);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
}
.p-home .steps__item--hl .steps__num { color: var(--blue-700); }

/* Etapa nomeada do stepper real: TOMADOR → SERVIÇO → REVISÃO → EMISSÃO */
.p-home .steps__stage {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 9px;
  border-radius: var(--r-chip);
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: middle;
}
.p-home .steps__stage--hl { background: var(--blue-700); color: #fff; }

.p-home .steps__foot {
  margin-top: 24px;
  margin-bottom: 20px;
  max-width: 72ch;
  color: var(--text-body);
  font-size: .9375rem;
  line-height: 1.7;
}

/* ============================================================ BENTO */
.p-home .bento { background: var(--bg-card); }

.p-home .bento__grid {
  display: grid;
  gap: 16px;
  grid-template-areas: "a" "b" "c" "d" "e" "f";
}
@media (min-width: 640px) {
  .p-home .bento__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "a a" "b b" "c d" "e e" "f f";
  }
}
@media (min-width: 1024px) {
  .p-home .bento__grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(150px, auto);
    gap: 20px;
    grid-template-areas:
      "a a a a b b"
      "a a a a b b"
      "c c d d e e"
      "f f f f f f";
  }
}

.p-home .bento__cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.p-home .bento__cell:nth-of-type(1) { grid-area: a; }
.p-home .bento__cell:nth-of-type(2) { grid-area: b; }
.p-home .bento__cell:nth-of-type(3) { grid-area: c; }
.p-home .bento__cell:nth-of-type(4) { grid-area: d; }
.p-home .bento__cell:nth-of-type(5) { grid-area: e; }
.p-home .bento__cell:nth-of-type(6) { grid-area: f; }

/* 2ª célula mais forte (preenchimento automático): alta, ao lado do herói */
.p-home .bento__cell--tall { justify-content: center; border-color: var(--cyan-100); }

.p-home .bento__cell p { color: var(--text-caption); font-size: .9375rem; line-height: 1.6; }

/* Hover só onde ele existe de verdade — e o card não é clicável,
   então o movimento é mínimo (não finge affordance de link). */
@media (hover: hover) {
  .p-home .bento__cell:hover { border-color: var(--blue-100); box-shadow: var(--shadow-md); }
}

/* CÉLULA-HERÓI — dimensionada para receber, depois, o argumento
   do agente de IA sem mexer no grid. */
.p-home .bento__cell--hero {
  justify-content: center;
  border-color: var(--blue-100);
  box-shadow: var(--shadow-md);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(226, 248, 248, .75) 0%, rgba(226, 248, 248, 0) 60%),
    var(--bg-card);
}
.p-home .bento__cell--hero p { max-width: 46ch; color: var(--text-body); font-size: 1rem; }

.p-home .bento__cell--wide p { max-width: 88ch; }

.p-home .bento__limit {
  margin-top: 24px;
  max-width: 72ch;
  color: var(--text-caption);
  font-size: .8125rem;
  line-height: 1.65;
}

/* ============================================================ COMPARATIVO × OFICIAL */
.p-home .cmpx { background: var(--gray-50); }

/* ---- MOBILE-FIRST: o formato NATIVO do comparativo é card empilhado ----
   80% do tráfego nunca vê a tabela. Ela é o refinamento do desktop, não o
   contrário: aqui a base é card, e a partir de 768px vira tabela. */
.p-home .cmpx__t { width: 100%; border-collapse: separate; border-spacing: 0; }
.p-home .cmpx__t,
.p-home .cmpx__t tbody,
.p-home .cmpx__t tr,
.p-home .cmpx__t th,
.p-home .cmpx__t td { display: block; }

.p-home .cmpx__t thead {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
}
.p-home .cmpx__t tr {
  margin-bottom: 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-block);
  overflow: hidden;
}
.p-home .cmpx__t th,
.p-home .cmpx__t td { padding: 14px 16px; text-align: left; font-size: .875rem; line-height: 1.55; }
.p-home .cmpx__t tbody th {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  color: var(--text-title);
  font-weight: 700;
}
.p-home .cmpx__t tbody td { background: var(--bg-card); color: var(--text-body); border-bottom: 1px solid var(--gray-100); }
.p-home .cmpx__t tbody td.cmpx__ours { background: var(--blue-50); color: var(--gray-800); }
.p-home .cmpx__t tbody td strong { color: var(--blue-900); }
.p-home .cmpx__t td::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 4px;
  color: var(--text-caption);
  font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
/* "não consta na base consultada" — hedge honesto, não é afirmação de ausência */

/* ---- DESKTOP: vira tabela de verdade ---- */
@media (min-width: 768px) {
  .p-home .cmpx__t { display: table; }
  .p-home .cmpx__t thead { display: table-header-group; position: static; width: auto; height: auto; clip: auto; overflow: visible; }
  .p-home .cmpx__t tbody { display: table-row-group; }
  .p-home .cmpx__t tr { display: table-row; margin: 0; border: 0; border-radius: 0; overflow: visible; }
  .p-home .cmpx__t th,
  .p-home .cmpx__t td { display: table-cell; vertical-align: top; border-bottom: 1px solid var(--gray-200); }
  .p-home .cmpx__t td::before { content: none; }

  .p-home .cmpx__t thead th {
    background: var(--blue-900); color: #fff; border-bottom: 0;
    font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  }
  .p-home .cmpx__t thead th:first-child { border-radius: var(--r-block) 0 0 0; }
  .p-home .cmpx__t thead th:last-child  { border-radius: 0 var(--r-block) 0 0; }
  .p-home .cmpx__t thead th.cmpx__ours { background: var(--blue-700); }

  .p-home .cmpx__t tbody th { width: 22%; background: var(--bg-card); }
  .p-home .cmpx__t tbody tr:last-child th { border-radius: 0 0 0 var(--r-block); }
  .p-home .cmpx__t tbody tr:last-child td:last-child { border-radius: 0 0 var(--r-block) 0; }
}

.p-home .cmpx__note {
  margin-top: 20px;
  max-width: 80ch;
  color: var(--text-caption);
  font-size: .75rem;
  line-height: 1.65;
}
.p-home .cmpx__note strong { color: var(--text-body); }

/* ============================================================ VERIFICADOR DE CIDADE */
/* faixa própria para a pergunta nº 1 ("funciona na minha cidade?") */
.p-home .verifier { background: var(--blue-50); }

.p-home .verifier__card {
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
}
@media (min-width: 768px) { .p-home .verifier__card { padding: 32px; } }

.p-home .verifier__form { display: grid; gap: 12px; }
@media (min-width: 600px) {
  .p-home .verifier__form { grid-template-columns: 1fr auto; align-items: end; }
}
.p-home .verifier__field { margin-bottom: 0; }
.p-home .verifier__submit { white-space: nowrap; }

/* Resultado — aria-live. 3 estados: sucesso, neutro, erro. */
.p-home .verifier__result { display: none; margin-top: 20px; }
.p-home .verifier__result.is-shown { display: block; }
.p-home .verifier__result:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 4px; }

.p-home .vres {
  padding: 20px;
  border-radius: var(--r-block);
  border: 1px solid var(--hairline);
  background: var(--gray-50);
}
.p-home .vres--ok { border-color: var(--success-100); background: rgba(170, 223, 193, .18); }
.p-home .vres--neutral { border-color: var(--blue-100); background: var(--blue-50); }

.p-home .vres__title { margin-bottom: 6px; color: var(--text-title); font-size: 1.0625rem; font-weight: 700; }
.p-home .vres__text { max-width: 64ch; color: var(--text-body); font-size: .9375rem; line-height: 1.65; }
.p-home .vres__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.p-home .vres__micro { margin-top: 12px; color: var(--text-caption); font-size: .75rem; }

/* Captura de lista de espera dentro do resultado neutro */
.p-home .vwait { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--gray-200); }
.p-home .vwait__form { display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 600px) {
  .p-home .vwait__form { grid-template-columns: 1fr auto; align-items: end; }
}
.p-home .vwait .field { margin-bottom: 0; }

.p-home .verifier__note {
  margin-top: 16px;
  max-width: 68ch;
  color: var(--text-caption);
  font-size: .8125rem;
  line-height: 1.6;
}

/* ============================================================ SÃO PAULO */
.p-home .sp { background: var(--bg-card); }

.p-home .sp__acts { display: grid; gap: 16px; }
@media (min-width: 900px) { .p-home .sp__acts { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.p-home .sp__act {
  padding: 24px;
  border-radius: var(--r-card);
  background: var(--gray-50);
  border: 1px solid var(--hairline);
}
.p-home .sp__act h3 { margin-bottom: 8px; color: var(--blue-900); }
.p-home .sp__act p { color: var(--text-body); font-size: .9375rem; line-height: 1.7; }

.p-home .sp__link { margin-top: 24px; }

.p-home .sp__disclaimer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  max-width: 76ch;
  color: var(--gray-600);
  font-size: .75rem;
  line-height: 1.6;
}

/* ============================================================ PONTE CALCULADORA */
.p-home .tax { background: var(--gray-50); }
.p-home .tax__copy { max-width: 62ch; }
.p-home .tax__copy > p { margin-top: 12px; color: var(--text-body); }

.p-home .tax__list {
  margin-top: 20px;
  margin-bottom: 24px;
  list-style: none;
  display: grid;
  gap: 8px;
}
.p-home .tax__list li {
  position: relative;
  padding-left: 26px;
  color: var(--text-body);
  font-size: .9375rem;
}
.p-home .tax__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-300);
}

.p-home .tax__micro { margin-top: 12px; color: var(--text-caption); font-size: .8125rem; }

/* ============================================================ PROVA SOCIAL */
.p-home .social { background: var(--bg-card); }
.p-home .social__title { margin-bottom: 20px; }

.p-home .social__kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 16px;
  margin: 0;
}
@media (min-width: 900px) {
  .p-home .social__kpis { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}
.p-home .social__kpi { padding-left: 16px; border-left: 2px solid var(--blue-100); }
.p-home .social__kpi dt {
  color: var(--blue-900);
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.p-home .social__kpi dd {
  margin: 6px 0 0;
  color: var(--text-caption);
  font-size: .875rem;
  line-height: 1.5;
}

.p-home .social__seals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.p-home .social__seals img { width: auto; height: 52px; }
.p-home .social__crc { color: var(--gray-600); font-size: .75rem; font-weight: 600; }
.p-home .social__micro { margin-top: 16px; color: var(--text-caption); font-size: .8125rem; }

/* ============================================================ PONTE ASSESSORIA (#13 --outline) */
.p-home .bridge { background: var(--gray-50); }

.p-home .bridge__box {
  display: grid;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--blue-700);   /* variante --outline, NÃO gradiente */
  border-radius: var(--r-card);
  background: var(--bg-card);
}
@media (min-width: 900px) {
  .p-home .bridge__box {
    grid-template-columns: 1.6fr auto;
    align-items: center;
    gap: 40px;
    padding: 36px 40px;
  }
}
.p-home .bridge__copy h2 { margin-bottom: 10px; max-width: 34ch; }
.p-home .bridge__copy p { max-width: 60ch; color: var(--text-body); font-size: .9375rem; line-height: 1.65; }

/* Três decisões concretas da nota — o que substitui o "fale com um contador"
   genérico. Cada item é um ponto que a documentação oficial manda confirmar. */
.p-home .bridge__list {
  margin-top: 14px;
  list-style: none;
  display: grid;
  gap: 10px;
}
.p-home .bridge__list li {
  position: relative;
  max-width: 62ch;
  padding-left: 26px;
  color: var(--text-body);
  font-size: .875rem;
  line-height: 1.6;
}
.p-home .bridge__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .5em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-700);
}
.p-home .bridge__list strong { color: var(--blue-900); }
.p-home .bridge__closer { margin-top: 14px; }
.p-home .bridge__micro { margin-top: 12px; color: var(--text-caption); font-size: .75rem; }
@media (min-width: 900px) { .p-home .bridge__action { text-align: right; } }

/* ============================================================ FAQ */
.p-home .faq { background: var(--bg-card); }
.p-home .faq__inner { max-width: 860px; }
.p-home .faq__title { margin-bottom: 24px; }
.p-home .faq__title .accent { color: var(--cyan-300); }
.p-home .faq__a-inner a { font-weight: 600; }
