/* ARQUIVO GERADO pelo build de entrega. Edite os fontes do projeto. */

/* ============================================================
   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; }

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; }
}


/* ============================================================
   CALCULADORA — autônomo, MEI ou empresa
   Arquétipo: simulador-autonomo-ou-empresa, DIVERGINDO do hero
   dele (lá é Navy Aurora com canvas + card glass; aqui é faixa
   navy chapada, card branco retangular invadindo a faixa).
   Eixos: densidade ALTÍSSIMA (é ferramenta), blocos retangulares
   de 16px, ritmo rápido.

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

.p-calc .accent { color: var(--cyan-cta); }

/* 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; }

/* ============================================================ FAIXA NAVY */
.p-calc .cband {
  background: linear-gradient(150deg, var(--blue-900) 0%, var(--blue-700) 100%);
  color: #fff;
}
.p-calc .cband__inner { padding-top: 24px; padding-bottom: 56px; }
@media (min-width: 1024px) {
  .p-calc .cband { min-height: 320px; display: flex; align-items: center; }
  .p-calc .cband__inner { padding-top: 40px; padding-bottom: 104px; }
}

.p-calc .cband__title { color: #fff; max-width: 24ch; margin-bottom: 20px; text-wrap: balance; }
.p-calc .cband__sub { max-width: 52ch; color: var(--blue-50); }
.p-calc .cband__trust { margin-top: 24px; }

/* Breadcrumb */
.p-calc .crumb { margin-bottom: 20px; font-size: .8125rem; }
.p-calc .crumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.p-calc .crumb li + li::before { content: '/'; margin-right: 8px; color: rgba(255,255,255,.45); }
.p-calc .crumb a { color: rgba(255,255,255,.82); text-decoration: none; }
.p-calc .crumb a:hover { color: var(--cyan-cta); text-decoration: underline; }
.p-calc .crumb [aria-current] { color: rgba(255,255,255,.80); }

/* ============================================================ CARD DA CALCULADORA */
.p-calc .calc { background: var(--gray-50); padding-bottom: 56px; }

/* ---- MOBILE-FIRST: a assinatura visual (card invadindo a faixa navy) vale
   para 80% do tráfego, então ela já existe em 375px — com sobreposição menor
   (-28px), calibrada para não cortar o título do card. O -64px passa a ser o
   refinamento do desktop. ---- */
.p-calc .calc__card {
  position: relative;
  z-index: 1;
  margin-top: -28px;
  padding: 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-block);          /* retangular 16px, NÃO 24 */
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 600px)  { .p-calc .calc__card { margin-top: -40px; padding: 28px; } }
@media (min-width: 1024px) { .p-calc .calc__card { margin-top: -64px; padding: 40px; } }

.p-calc .calc__sub { margin-top: 6px; margin-bottom: 28px; color: var(--text-caption); font-size: .9375rem; }

.p-calc .calc__grid { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 768px) { .p-calc .calc__grid { grid-template-columns: 1fr 1fr; gap: 20px 24px; } }

.p-calc .field { margin-bottom: 0; }
.p-calc .field-focus-glow { padding: 2px; border-radius: 12px; }
.p-calc .field__opt {
  margin-left: 6px; color: var(--gray-600); font-size: .75rem; font-weight: 500;
}

.p-calc .calc__submit { margin-top: 28px; }

/* ---------------------------------------------------------- SLIDER */
.p-calc .fld { margin-bottom: 4px; }
.p-calc .fld__out {
  display: block;
  margin: 6px 0 16px;
  color: var(--blue-900);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.p-calc .rng__marks {
  display: flex; justify-content: space-between; margin-top: 6px;
  color: var(--gray-600); font-size: .6875rem; font-variant-numeric: tabular-nums;
}

/* Trilho preenchido via --pct (atualizado no JS) — mesma pintura nos 2 engines */
.p-calc .rng {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 44px;   /* alvo de arrasto no polegar */
  background: transparent; cursor: pointer;
}
.p-calc .rng::-webkit-slider-runnable-track {
  height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, var(--blue-700) var(--pct), var(--gray-200) var(--pct));
}
.p-calc .rng::-moz-range-track { height: 8px; border-radius: 4px; background: var(--gray-200); }
.p-calc .rng::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--blue-700); }
.p-calc .rng::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; margin-top: -9px; border-radius: 50%;
  background: var(--bg-card); border: 3px solid var(--blue-700);
  box-shadow: 0 2px 8px rgba(14, 83, 192, .28);
  transition: box-shadow .15s ease;
}
.p-calc .rng::-moz-range-thumb {
  width: 26px; height: 26px; box-sizing: border-box; border-radius: 50%;
  background: var(--bg-card); border: 3px solid var(--blue-700);
  box-shadow: 0 2px 8px rgba(14, 83, 192, .28);
}
.p-calc .rng:focus { outline: none; }
.p-calc .rng:focus-visible::-webkit-slider-thumb { box-shadow: var(--focus-halo); border-color: var(--blue-800); }
.p-calc .rng:focus-visible::-moz-range-thumb    { box-shadow: var(--focus-halo); border-color: var(--blue-800); }
@media (prefers-reduced-motion: reduce) {
  .p-calc .rng::-webkit-slider-thumb { transition: none; }
}

/* ============================================================ RESULTADO */
.p-calc .result { background: var(--bg-card); padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 1024px) { .p-calc .result { padding-top: 72px; padding-bottom: 72px; } }

.p-calc .result__title { margin-bottom: 28px; max-width: 40ch; }

.p-calc .result__highlights { display: grid; gap: 16px; }
@media (min-width: 768px) { .p-calc .result__highlights { grid-template-columns: repeat(3, 1fr); } }

.p-calc .rhl {
  padding: 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-block);
  background: var(--gray-50);
}
.p-calc .rhl__label { color: var(--text-caption); font-size: .8125rem; font-weight: 600; }
.p-calc .rhl__value {
  margin: 6px 0 6px;
  color: var(--blue-900);
  font-size: clamp(1.5rem, 3.2vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.p-calc .rhl:first-child .rhl__value { color: var(--success-600); }
.p-calc .rhl__note { color: var(--gray-600); font-size: .75rem; line-height: 1.5; }

/* Máquina de estado do resultado: vazio -> cheio. Substitui o `hidden` na
   <section>, que fazia o link #resultado do footer apontar para alvo invisível. */
.p-calc .result[data-state="empty"] [data-when="full"],
.p-calc .result[data-state="full"]  [data-when="empty"] { display: none; }

.p-calc .rempty {
  padding: 20px;
  border: 1px dashed var(--gray-300);
  border-radius: var(--r-block);
  background: var(--gray-50);
}
@media (min-width: 768px) { .p-calc .rempty { padding: 28px; } }
.p-calc .rempty__ghosts { display: grid; gap: 12px; margin-bottom: 20px; }
@media (min-width: 768px) { .p-calc .rempty__ghosts { grid-template-columns: repeat(3, 1fr); } }
.p-calc .rempty__ghosts span {
  display: block; height: 72px;
  border-radius: var(--r-block);
  background: linear-gradient(180deg, var(--gray-100) 0%, rgba(235, 239, 250, .35) 100%);
}
.p-calc .rempty__t { max-width: 62ch; color: var(--text-caption); font-size: .9375rem; line-height: 1.65; }
.p-calc .rempty .link-chevron { margin-top: 14px; }

/* ---------------------------------------------------------- PONTO DE VIRADA */
.p-calc .turn { margin-top: 40px; }
.p-calc .turn__lead {
  padding: 20px;
  border-left: 3px solid var(--blue-700);
  border-radius: 0 var(--r-block) var(--r-block) 0;
  background: var(--blue-50);
}
.p-calc .turn__label {
  color: var(--blue-800);
  font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.p-calc .turn__value {
  margin: 6px 0;
  color: var(--blue-900);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.p-calc .turn__note { max-width: 64ch; color: var(--text-body); font-size: .875rem; line-height: 1.6; }

.p-calc .turn__cols { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 768px) { .p-calc .turn__cols { grid-template-columns: 1fr 1fr; gap: 20px; } }
.p-calc .turn__col {
  padding: 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-block);
  background: var(--bg-card);
}
.p-calc .turn__col h4 {
  margin-bottom: 10px;
  color: var(--text-title);
  font-size: .9375rem; font-weight: 700; line-height: 1.35;
}
.p-calc .turn__col ul { padding-left: 1.15em; }
.p-calc .turn__col li {
  margin-top: 8px; color: var(--text-body);
  font-size: .875rem; line-height: 1.55;
}
.p-calc .turn__col strong { color: var(--blue-900); }
.p-calc .turn__caveat {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--gray-100);
  color: var(--text-caption); font-size: .75rem; line-height: 1.55;
}

/* ---------------------------------------------------------- COMPARATIVO */
.p-calc .cmp { margin-top: 40px; }
.p-calc .cmp__head { margin-bottom: 20px; }
.p-calc .cmp__head p { margin-top: 8px; max-width: 68ch; color: var(--text-body); font-size: .9375rem; }

/* ---- MOBILE-FIRST: card empilhado é o formato NATIVO do comparativo ----
   Tabela de 4 colunas em 375px é ilegível. A tabela é o refinamento do
   desktop; a base aqui é card. */
.p-calc .cmp__t { width: 100%; border-collapse: separate; border-spacing: 0; }
.p-calc .cmp__t,
.p-calc .cmp__t tbody,
.p-calc .cmp__t tr,
.p-calc .cmp__t th,
.p-calc .cmp__t td { display: block; }

.p-calc .cmp__t thead {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}
.p-calc .cmp__t tr {
  margin-bottom: 12px; padding: 16px;
  border: 1px solid var(--hairline); border-radius: var(--r-block);
}
.p-calc .cmp__t tr.is-winner { border-color: var(--blue-700); background: var(--blue-50); }
.p-calc .cmp__t tr.is-off { opacity: .75; }
.p-calc .cmp__t th, .p-calc .cmp__t td { padding: 0; border: 0; text-align: left; }
.p-calc .cmp__t tbody th { color: var(--text-title); font-size: 1rem; font-weight: 700; }
.p-calc .cmp__t td {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 8px; padding-top: 8px;
  border-top: 1px solid var(--gray-200);
  font-size: .9375rem;
}
.p-calc .cmp__t td::before {
  content: attr(data-label); flex: 0 0 auto;
  color: var(--text-caption); font-size: .8125rem;
}
.p-calc .cmp__t td b { color: var(--blue-900); font-weight: 800; font-variant-numeric: tabular-nums; }
.p-calc .cmp__t tr.is-winner td b { color: var(--success-600); }
.p-calc .cmp__note { display: block; margin-top: 4px; color: var(--text-caption); font-size: .75rem; font-weight: 400; }
.p-calc .cmp__badge {
  display: inline-block; margin-left: 8px; padding: 3px 8px; vertical-align: middle;
  border-radius: var(--r-chip); background: var(--success-500); color: #fff;
  font-size: .625rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}

/* ---- DESKTOP: vira tabela ---- */
@media (min-width: 768px) {
  .p-calc .cmp__t { display: table; }
  .p-calc .cmp__t thead { display: table-header-group; position: static; width: auto; height: auto; clip: auto; overflow: visible; }
  .p-calc .cmp__t tbody { display: table-row-group; }
  .p-calc .cmp__t tr { display: table-row; margin: 0; padding: 0; border: 0; border-radius: 0; }
  .p-calc .cmp__t tr.is-winner { background: transparent; }
  .p-calc .cmp__t th, .p-calc .cmp__t td {
    display: table-cell; padding: 14px 16px; font-size: .875rem;
    border-bottom: 1px solid var(--gray-100);
  }
  .p-calc .cmp__t td { margin-top: 0; border-top: 0; }
  .p-calc .cmp__t td::before { content: none; }
  .p-calc .cmp__t thead th {
    background: var(--gray-50); border-bottom: 1px solid var(--hairline);
    color: var(--text-caption);
    font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  }
  .p-calc .cmp__t thead th:first-child { border-radius: 8px 0 0 0; }
  .p-calc .cmp__t thead th:last-child  { border-radius: 0 8px 0 0; }
  .p-calc .cmp__t tr.is-winner th, .p-calc .cmp__t tr.is-winner td {
    background: var(--blue-50); border-bottom-color: var(--blue-100);
  }
  .p-calc .cmp__t tr.is-off th, .p-calc .cmp__t tr.is-off td { color: var(--gray-500); opacity: 1; }
  .p-calc .cmp__note { font-size: .6875rem; }
}

.p-calc .cmp__detail { margin-top: 20px; }
.p-calc .cmp__detail summary {
  cursor: pointer; color: var(--blue-700); font-size: .9375rem; font-weight: 600;
  padding: 10px 0;
}
.p-calc .cmp__detail summary:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 3px; }

.p-calc .dcol { padding: 16px 0; border-top: 1px solid var(--gray-100); }
.p-calc .dcol h4 { margin-bottom: 10px; color: var(--blue-900); font-size: .9375rem; }
.p-calc .dcol__row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 6px 0; color: var(--text-body); font-size: .875rem;
}
.p-calc .dcol__row b { font-variant-numeric: tabular-nums; }
.p-calc .dcol__row--total { border-top: 1px solid var(--gray-200); margin-top: 6px; padding-top: 10px; font-weight: 700; color: var(--text-title); }
.p-calc .dcol__note { margin-top: 12px; color: var(--gray-600); font-size: .75rem; line-height: 1.6; }

/* ---------------------------------------------------------- HORIZONTE + GRÁFICO */
.p-calc .hz { margin-top: 44px; }
.p-calc .hz__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 8px;
}
.p-calc .hz__aux { color: var(--text-caption); font-size: .875rem; }

.p-calc .seg {
  display: inline-flex; gap: 4px; padding: 4px;
  border: 1px solid var(--hairline); border-radius: 12px; background: var(--gray-100);
}
.p-calc .seg__opt {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-caption);
  font-size: .875rem; font-weight: 600; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.p-calc .seg__opt.is-active { background: var(--blue-700); color: #fff; box-shadow: var(--shadow-sm); }
.p-calc .seg__opt:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 2px; }
/* mobile-first: base ocupa a linha inteira; desktop volta ao tamanho natural */
.p-calc .seg { display: flex; width: 100%; }
.p-calc .seg__opt { flex: 1; }
@media (min-width: 600px) { .p-calc .seg { width: auto; } .p-calc .seg__opt { flex: 0 0 auto; } }

.p-calc .chart { margin: 24px 0 0; }
.p-calc .chart svg { display: block; width: 100%; height: auto; aspect-ratio: 640 / 280; }
.p-calc .ch-grid line { stroke: var(--gray-100); stroke-width: 1; }
.p-calc .ch-grid .ch-axis { stroke: var(--gray-300); }
.p-calc .ch-ylab text, .p-calc .ch-xlab text {
  fill: var(--gray-500); font-size: 10px; font-variant-numeric: tabular-nums;
}
.p-calc .ch-ylab text { text-anchor: end; }
.p-calc .ch-xlab text:last-child { text-anchor: end; }
.p-calc .ch-line {
  stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.p-calc .ch-line--pj { stroke: var(--blue-700); }
.p-calc .ch-line--pf { stroke: var(--gray-400); stroke-width: 2; }

/* Desenho por stroke-dasharray + pathLength="1" (sem getTotalLength) */
.p-calc .chart.is-draw .ch-line {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: chDraw 1.1s ease forwards;
}
.p-calc .chart.is-draw .ch-line--pf { animation-delay: .12s; }
@keyframes chDraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .p-calc .chart.is-draw .ch-line { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
}

.p-calc .chart__cap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  margin-top: 16px; color: var(--text-caption); font-size: .8125rem;
}
.p-calc .chart__key { display: inline-flex; align-items: center; gap: 6px; }
.p-calc .chart__key::before { content: ''; width: 14px; height: 3px; border-radius: 2px; background: currentColor; }
.p-calc .chart__key--pj { color: var(--blue-700); }
.p-calc .chart__key--pf { color: var(--gray-500); }
.p-calc .chart__hl { color: var(--text-body); }
@media (min-width: 600px) { .p-calc .chart__hl { margin-left: auto; } }
.p-calc .chart__hl b { color: var(--success-600); font-weight: 800; font-variant-numeric: tabular-nums; }

/* ============================================================ GATE POR DIAGNÓSTICO */
.p-calc .gate { margin-top: 48px; }
.p-calc .gate__box {
  padding: 28px;
  border-radius: var(--r-block);
  background: linear-gradient(150deg, var(--blue-900) 0%, var(--blue-800) 100%);
  color: #fff;
}
@media (min-width: 1024px) { .p-calc .gate__box { padding: 40px; } }

/* Foto AO LADO do texto (não atrás): dispensa overlay.
   Só entra a partir de 900px — no mobile o texto e o CTA mandam. */
.p-calc .gate__foto { display: none; }
@media (min-width: 900px) {
  .p-calc .gate__box {
    display: grid;
    grid-template-columns: 168px 1fr;
    gap: 32px;
    align-items: center;
  }
  .p-calc .gate__foto {
    display: block;
    margin: 0;
    border-radius: var(--r-block);
    overflow: hidden;
    background: rgba(255, 255, 255, .08);
  }
  .p-calc .gate__foto img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 233 / 340;
    object-fit: cover;
    object-position: center top;
  }
}

.p-calc .gate__title { color: #fff; margin-bottom: 12px; max-width: 42ch; }
.p-calc .gate__title strong { color: var(--cyan-cta); font-weight: 800; }
.p-calc .gate__text { max-width: 66ch; color: var(--blue-50); font-size: .9375rem; line-height: 1.7; }

.p-calc .gate__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
  margin-top: 24px;
}
.p-calc .link-chevron--on-dark { color: var(--cyan-cta); }
.p-calc .link-chevron--on-dark:hover { color: #fff; }
.p-calc .gate__micro { margin-top: 16px; color: rgba(255,255,255,.7); font-size: .75rem; }

/* ============================================================ PREMISSAS */
.p-calc .premises { background: var(--gray-50); }
.p-calc .premises__inner { max-width: 860px; }
.p-calc .premises__lead {
  margin-top: 12px; color: var(--text-body); font-size: .9375rem; line-height: 1.75;
}

.p-calc .premises__box {
  margin-top: 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-block);
  background: var(--bg-card);
}
.p-calc .premises__box summary {
  padding: 16px 20px; cursor: pointer;
  color: var(--blue-700); font-size: .9375rem; font-weight: 600;
}
.p-calc .premises__box summary:focus-visible { outline: 2px solid var(--blue-700); outline-offset: -2px; border-radius: var(--r-block); }
.p-calc .premises__body { padding: 0 20px 20px; }
.p-calc .premises__body h3 {
  margin-top: 20px; margin-bottom: 8px;
  color: var(--blue-900); font-size: .9375rem; font-weight: 700;
}
.p-calc .premises__body ul { padding-left: 1.15em; }
.p-calc .premises__body li {
  margin-top: 6px; color: var(--text-body); font-size: .875rem; line-height: 1.65;
}
.p-calc .premises__body li em { color: var(--warn-400); font-style: normal; font-weight: 700; }
.p-calc .premises__body p { color: var(--text-body); font-size: .875rem; line-height: 1.75; }
.p-calc .premises__warn {
  padding: 12px 14px; border-radius: 10px;
  background: var(--warn-100); color: var(--gray-800) !important; font-size: .8125rem !important;
}
.p-calc .premises__sign { margin-top: 14px; color: var(--gray-600); font-size: .75rem !important; }

/* ============================================================ TRILHA */
.p-calc .trail { background: var(--bg-card); border-top: 1px solid var(--hairline); }
.p-calc .trail__grid { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 768px) { .p-calc .trail__grid { grid-template-columns: repeat(3, 1fr); } }

.p-calc .trail__card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px;
  border: 1px solid var(--hairline); border-radius: var(--r-block);
  background: var(--gray-50); text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.p-calc .trail__card:hover { border-color: var(--blue-200); box-shadow: var(--shadow-md); }
.p-calc .trail__kicker {
  color: var(--blue-700); font-size: .6875rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.p-calc .trail__title { color: var(--text-title); font-size: 1rem; font-weight: 700; line-height: 1.4; }
.p-calc .trail__desc { color: var(--text-caption); font-size: .8125rem; line-height: 1.55; }

/* Marcador de premissa em conferência com o time fiscal (era "[confirmar]",
   que lia como página inacabada). O title explica no hover/toque longo. */
.p-calc .pend {
  color: var(--blue-700);
  font-style: normal;
  font-weight: 700;
  cursor: help;
}

/* ============================================================ BLOQUEIO POR CONTATO
   Os três números do topo ficam livres; o detalhamento fica atrás do vidro.
   O conteúdo continua no DOM (indexável); o que muda é a pintura.
   MOBILE-FIRST: o cartão do formulário é o próprio fluxo, não modal, para
   não brigar com o teclado do iOS nem exigir fechar nada. */
.p-calc .lock { position: relative; margin-top: 28px; }

/* Recorta a altura do conteúdo travado: sem isso o vidro teria de cobrir
   ~3.000px e o formulário ficaria longe do olho. */
.p-calc .lock:not(.is-unlocked) .lock__content {
  max-height: 420px;
  overflow: hidden;
  filter: blur(7px);
  transform: scale(.995);      /* esconde a borda serrada do blur */
  pointer-events: none;
  user-select: none;
}
@media (min-width: 900px) {
  .p-calc .lock:not(.is-unlocked) .lock__content { max-height: 520px; }
}

/* Vidro: cobre o conteúdo recortado e faz a transição para o cartão. */
.p-calc .lock__glass {
  position: absolute;
  inset: 0;
  border-radius: var(--r-block);
  background: linear-gradient(180deg,
    rgba(247, 249, 255, .55) 0%,
    rgba(247, 249, 255, .88) 42%,
    var(--gray-50) 78%);
  -webkit-backdrop-filter: blur(3px) saturate(120%);
  backdrop-filter: blur(3px) saturate(120%);
  pointer-events: none;
}
/* Ao liberar, o vidro e o formulário saem. O cartão SÓ sai se não virou
   confirmação: quem pediu contato precisa da resposta de que o contador vem.
   Com `--done` ele volta ao fluxo (sem margem negativa) e deixa de cobrir o
   conteúdo que acabou de ser liberado. */
.p-calc .lock.is-unlocked .lock__glass,
.p-calc .lock.is-unlocked .lock__card:not(.lock__card--done) { display: none; }
.p-calc .lock.is-unlocked .lock__card--done {
  margin-top: 20px;
  border-color: var(--blue-200);
  background: var(--blue-50);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 900px) {
  .p-calc .lock.is-unlocked .lock__card--done { margin-top: 24px; }
}
.p-calc .lock.is-unlocked .lock__content {
  max-height: none; overflow: visible; filter: none; transform: none;
  pointer-events: auto; user-select: auto;
}

/* Cartão do formulário: encostado no rodapé do bloco travado. */
.p-calc .lock__card {
  position: relative;
  z-index: 2;
  margin-top: -180px;           /* sobe sobre o vidro */
  padding: 22px 18px 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-block);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 900px) {
  .p-calc .lock__card { max-width: 520px; margin-inline: auto; margin-top: -220px; padding: 28px 26px 24px; }
}

.p-calc .lock__eyebrow {
  color: var(--blue-700);
  font-size: .6875rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.p-calc .lock__t { margin-top: 6px; }
.p-calc .lock__sub { margin-top: 8px; color: var(--text-body); font-size: .9375rem; line-height: 1.6; }

.p-calc .lock__proof {
  margin: 14px 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--blue-50);
  list-style: none;
  display: grid; gap: 6px;
}
.p-calc .lock__proof li {
  position: relative;
  padding-left: 18px;
  color: var(--blue-900);
  font-size: .8125rem; font-weight: 600; line-height: 1.4;
}
.p-calc .lock__proof li::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan-cta);
}

.p-calc .lock__actions { display: grid; gap: 10px; margin-top: 20px; }
.p-calc .lock__go { width: 100%; }

/* O "não falar" é botão de verdade, não link escondido: a pessoa tem de
   conseguir escolher sem se sentir empurrada. Peso visual menor, alvo igual. */
.p-calc .lock__skip {
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--blue-700);
  font-family: inherit;
  font-size: .9375rem; font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.p-calc .lock__skip:hover { border-color: var(--blue-200); background: var(--gray-50); }
.p-calc .lock__skip:active { background: var(--blue-50); }
.p-calc .lock__skip:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 3px; }

.p-calc .lock__micro { margin-top: 12px; color: var(--text-caption); font-size: .75rem; line-height: 1.55; }
.p-calc .lock__legal { margin-top: 10px; }
.p-calc .lock__legal summary { cursor: pointer; color: var(--text-caption); font-size: .75rem; font-weight: 600; }
.p-calc .lock__legal summary:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 3px; }
.p-calc .lock__legal p { margin-top: 10px; color: var(--gray-600); font-size: .6875rem; line-height: 1.6; }

/* Consentimento: mesma régua das outras páginas. */
.p-calc .consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 4px; }
.p-calc .consent input { flex: 0 0 auto; width: 24px; height: 24px; margin-top: 10px; accent-color: var(--blue-700); }
.p-calc .consent label {
  display: flex; align-items: center; min-height: 44px;
  color: var(--text-body); font-size: .8125rem; line-height: 1.5; cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .p-calc .lock__content { transition: none; }
}
