/* ==========================================================================
   Fecho Certo — landing page
   1. Variáveis de marca   2. Base   3. Componentes   4. Seções   5. Responsivo
   ========================================================================== */

/* 1. Variáveis de marca ---------------------------------------------------- */
:root {
  /* Cores base da marca */
  --azul-profundo: #17324D;   /* confiança e estabilidade */
  --verde-petroleo: #1F7A6D;  /* progresso e ações resolvidas */
  --branco-quente: #F5F7F6;   /* fundo principal */
  --ambar: #D99A2B;           /* pendências que pedem atenção */
  --vermelho: #B3261E;        /* somente erros reais */

  /* Derivadas (verificadas para contraste AA sobre o fundo em que são usadas) */
  --azul-900: #0F2438;
  --verde-texto: #17655A;     /* texto verde sobre fundos claros */
  --verde-hover: #186357;
  --verde-claro: #7FD1C3;     /* acento sobre azul profundo */
  --verde-tinta: #E3F1EE;
  --verde-tinta-texto: #145E54;
  --ambar-tinta: #FBF0D9;
  --ambar-texto: #7A4F08;
  --vermelho-tinta: #FBE9E7;
  --vermelho-texto: #9C1F18;

  --texto: #17324D;
  --texto-suave: #4A5D70;
  --texto-sobre-escuro: #F5F7F6;
  --texto-suave-sobre-escuro: #B9C7D3;
  --superficie: #FFFFFF;
  --superficie-alt: #E9EEEC;
  --linha: #D5DCDA;
  --linha-forte: #AEB9B6;
  --linha-sobre-escuro: rgba(245, 247, 246, 0.2);

  /* Logotipo */
  --logo-ciclo: var(--azul-profundo);
  --logo-check: var(--verde-petroleo);

  /* Tipografia */
  --fonte: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --fonte-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* Medidas */
  --raio: 4px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --secao: clamp(44px, 5.5vw, 80px);
  --margem: 11rem;           /* coluna do índice de seção */
  --header-h: 68px;
  --transicao: 160ms ease;
  --sombra: 0 1px 2px rgba(15, 36, 56, 0.08), 0 24px 48px -20px rgba(15, 36, 56, 0.35);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--branco-quente);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
i { font-style: normal; }

h1, h2 { font-weight: 500; line-height: 1.1; letter-spacing: -0.028em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.1vw, 2.625rem); line-height: 1.14; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
.h-wide { max-width: 24em; }

:focus-visible { outline: 3px solid var(--verde-petroleo); outline-offset: 3px; border-radius: 2px; }
.section-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--verde-claro); }

.sprite { position: absolute; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 12px 16px; background: var(--azul-profundo); color: #fff;
  border-radius: var(--raio); text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 12px; }

/* 3. Componentes ----------------------------------------------------------- */
.eyebrow {
  margin-bottom: 20px;
  font-family: var(--fonte-mono);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--verde-texto);
}

.lead { font-size: clamp(1.125rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--texto-suave); max-width: 31em; }
.lead-sm { font-size: 1.125rem; color: var(--texto-suave); max-width: 30em; margin-top: 20px; }
.caption { margin-top: 16px; font-size: 0.8125rem; color: var(--texto-suave); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  border: 1.5px solid transparent; border-radius: var(--raio);
  cursor: pointer;
  transition: background-color var(--transicao), border-color var(--transicao), color var(--transicao);
}
.btn-primary { background: var(--verde-petroleo); color: #fff; }
.btn-primary:hover { background: var(--verde-hover); }
.btn-ghost { background: transparent; color: var(--azul-profundo); border-color: var(--linha-forte); }
.btn-ghost:hover { border-color: var(--azul-profundo); }
.btn-block { width: 100%; }
.btn-small { min-height: 44px; padding: 8px 16px; font-size: 0.9375rem; background: var(--superficie); border-color: var(--linha-forte); color: var(--azul-profundo); }
.btn-small:hover { border-color: var(--azul-profundo); }
.btn[disabled] { opacity: 0.65; cursor: progress; }

.link-btn {
  display: inline; padding: 0;
  font: inherit; color: inherit; background: none; border: 0;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* Marca */
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--azul-profundo); }
.brand-symbol { width: 30px; height: 30px; flex: none; }
.brand-name { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.brand-on-dark { color: var(--texto-sobre-escuro); --logo-ciclo: var(--branco-quente); --logo-check: var(--verde-claro); }

/* Listas */
.check-list li, .dash-list li { position: relative; padding-left: 30px; }
.check-list li + li, .dash-list li + li { margin-top: 12px; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.42em;
  width: 13px; height: 7px;
  border-left: 2px solid var(--verde-petroleo); border-bottom: 2px solid var(--verde-petroleo);
  transform: rotate(-45deg);
}
.dash-list li::before { content: ""; position: absolute; left: 2px; top: 0.8em; width: 13px; height: 1.5px; background: var(--linha-forte); }
.dash-list li { color: var(--texto-suave); }

.line-list li {
  display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 4px 24px;
  padding: 16px 0; border-top: 1px solid var(--linha);
}
.line-list li:last-child { border-bottom: 1px solid var(--linha); }
.line-list strong { font-weight: 600; }
.line-list span { color: var(--texto-suave); }
.line-list.compact li { grid-template-columns: minmax(0, 1fr); padding: 14px 0; border-color: var(--linha-forte); }

.note { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--linha); color: var(--texto-suave); font-size: 0.9375rem; max-width: 34em; }

.pill { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 0.75rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.pill-ok { background: var(--verde-tinta); color: var(--verde-tinta-texto); }
.pill-warn { background: var(--ambar-tinta); color: var(--ambar-texto); }
.pill-error { background: var(--vermelho-tinta); color: var(--vermelho-texto); }

.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; }
.dot-ok { background: var(--verde-petroleo); }
.dot-warn { background: var(--ambar); }
.dot-error { background: var(--vermelho); }

/* Maquetes ilustrativas */
.mock {
  min-width: 0; overflow: hidden;
  background: var(--superficie); color: var(--texto);
  border: 1px solid var(--linha); border-radius: 8px; box-shadow: var(--sombra);
  font-size: 0.875rem; line-height: 1.45;
}
.mock-caption {
  padding: 7px 20px; background: var(--branco-quente); border-bottom: 1px solid var(--linha);
  font-family: var(--fonte-mono); font-size: 0.6875rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--texto-suave);
}
.mock-body { user-select: none; }
.mock-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 20px 10px; }
.mock-title { font-size: 1.0625rem; font-weight: 600; }
.mock-sub { font-family: var(--fonte-mono); font-size: 0.75rem; color: var(--texto-suave); white-space: nowrap; }
.mock-tabs { display: flex; gap: 20px; padding: 0 20px; border-bottom: 1px solid var(--linha); overflow: hidden; white-space: nowrap; font-size: 0.8125rem; color: var(--texto-suave); }
.mock-tabs span { padding: 6px 0 9px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.mock-tabs .is-active { color: var(--texto); font-weight: 600; border-bottom-color: var(--verde-petroleo); }

.mock-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mock-stats > div { padding: 14px 20px 12px; border-left: 1px solid var(--linha); min-width: 0; }
.mock-stats > div:first-child { border-left: 0; }
.mock-stats dt { font-size: 0.75rem; color: var(--texto-suave); }
.mock-stats dd { margin-top: 2px; font-family: var(--fonte-mono); font-size: 1.5rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
.mock-stats .is-ok dd { color: var(--verde-texto); }
.mock-stats .is-warn dd { color: var(--ambar-texto); }
.mock-stats .is-error dd { color: var(--vermelho-texto); }

.mock-bar { display: flex; gap: 2px; height: 4px; margin: 0 20px 14px; }
.mock-bar span { min-width: 4px; border-radius: 1px; }
.mock-bar-lg { height: 8px; margin: 10px 0; }
.seg-ok { background: var(--verde-petroleo); }
.seg-warn { background: var(--ambar); }
.seg-error { background: var(--vermelho); }

.mock-row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 4.75rem minmax(0, 1.6fr) minmax(0, 1.2fr);
  align-items: center; gap: 12px;
  padding: 9px 20px; border-top: 1px solid var(--linha);
}
.mock-row > span { min-width: 0; }
.mock-head { padding-block: 7px; background: var(--branco-quente); font-size: 0.75rem; color: var(--texto-suave); }
.c-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-num { font-family: var(--fonte-mono); font-size: 0.8125rem; }
.c-nfse { color: var(--texto-suave); }

.mock-assist { padding: 16px 20px 20px; border-top: 1px solid var(--linha); background: #F3F8F6; }
.mock-assist-head { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 600; color: var(--verde-texto); }
.mock-assist-head svg { width: 18px; height: 18px; flex: none; }
.mock-assist p { margin-top: 8px; max-width: 46em; }
.mock-assist-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mock-btn {
  display: inline-block; flex: none; padding: 6px 13px; border-radius: 3px;
  border: 1px solid var(--linha-forte); font-weight: 600; font-size: 0.8125rem; white-space: nowrap; background: var(--superficie);
}
.mock-btn-primary { background: var(--verde-petroleo); border-color: var(--verde-petroleo); color: #fff; }

/* 4. Seções ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--branco-quente); border-bottom: 1px solid var(--linha); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav ul a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: 0.9375rem; text-decoration: none; color: var(--texto);
  transition: color var(--transicao);
}
.site-nav ul a:hover { color: var(--verde-texto); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.nav-cta { min-height: 44px; padding-block: 10px; font-size: 0.9375rem; }

.menu-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; min-width: 44px; padding: 0 12px;
  font: inherit; font-size: 0.9375rem; font-weight: 500; color: var(--azul-profundo);
  background: transparent; border: 1.5px solid var(--linha-forte); border-radius: var(--raio);
  cursor: pointer;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px;
  transition: transform var(--transicao), background-color var(--transicao);
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero: texto sobre o fundo claro; painel apoiado em um campo azul que vai até a borda */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 6.5vw, 96px); }
.hero::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0;
  left: calc(50% + 96px);
  background: var(--azul-profundo);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 56px); align-items: center; }
.hero-copy .lead { margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust-note { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 0.9375rem; color: var(--texto-suave); }
.trust-note svg { width: 20px; height: 20px; flex: none; color: var(--verde-petroleo); }

/* Seções com margem editorial: índice à esquerda, conteúdo à direita */
.section { padding-block: var(--secao); }
.section-inner {
  display: grid; grid-template-columns: var(--margem) minmax(0, 1fr); gap: 0 40px;
  padding-top: 24px; border-top: 1px solid var(--azul-profundo);
}
.marker {
  font-family: var(--fonte-mono); font-size: 0.75rem; line-height: 1.5; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--texto-suave); padding-top: 6px;
}
.marker-num { display: block; color: var(--texto); font-weight: 500; }
.section-main > h2 { margin-bottom: clamp(32px, 4.5vw, 56px); }

.section-alt { background: var(--superficie-alt); }
.section-dark { background: var(--azul-profundo); color: var(--texto-sobre-escuro); }
.section-alt, .section-dark { padding-block: calc(var(--secao) * 1.25); margin-block: var(--secao); }
.section-alt .section-inner, .section-dark .section-inner { border-top-color: transparent; padding-top: 0; }
.section-dark .marker { color: var(--texto-suave-sobre-escuro); }
.section-dark .marker-num { color: var(--verde-claro); }

/* 01 Problema */
.problem-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.problem-intro { font-size: 1.125rem; color: var(--texto-suave); }

/* 02 Como funciona */
.flow > li {
  display: grid; grid-template-columns: 2.5rem minmax(0, 5fr) minmax(0, 6fr); gap: 8px 24px; align-items: center;
  padding: 24px 0; border-top: 1px solid var(--linha);
}
.flow > li:last-child { border-bottom: 1px solid var(--linha); }
.flow-num { font-family: var(--fonte-mono); font-size: 0.875rem; color: var(--verde-texto); align-self: start; padding-top: 5px; }
.flow-text h3 { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 6px; }
.flow-text p { color: var(--texto-suave); max-width: 24em; }
.frag { background: var(--superficie); border: 1px solid var(--linha); border-radius: 6px; font-size: 0.8125rem; line-height: 1.45; user-select: none; min-width: 0; }
.frag-pad { padding: 14px 16px; }
.frag-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 9px 16px; }
.frag-row + .frag-row { border-top: 1px solid var(--linha); }
.frag-file { font-family: var(--fonte-mono); font-size: 0.75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frag-meta { color: var(--texto-suave); font-size: 0.75rem; }
.frag-label { font-size: 0.75rem; color: var(--texto-suave); }
.frag-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.75rem; }
.frag-legend span { display: inline-flex; align-items: center; gap: 6px; }
.frag-strong { font-weight: 600; font-size: 0.875rem; }
.frag-action { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }

/* 03 Assistente */
.assist-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.pull-quote { margin: 28px 0 32px; }
.pull-quote p { font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.35; letter-spacing: -0.01em; color: var(--verde-texto); max-width: 20em; }
.assist-mock .mock-body { padding: 18px 20px 20px; }
.chat-q {
  margin: 16px 0 12px auto; width: fit-content; max-width: 90%;
  padding: 9px 13px; border-radius: 6px 6px 2px 6px;
  background: var(--azul-profundo); color: var(--texto-sobre-escuro);
}
.chat-a { padding: 14px 16px 6px; border: 1px solid var(--linha); border-radius: 6px 6px 6px 2px; background: var(--branco-quente); }
.chat-a > p { font-weight: 600; }
.chat-a ul { margin-top: 10px; }
.chat-a li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--linha); }
.chat-a .dot { margin-top: 0.45em; }
.chat-label { margin-top: 18px; font-family: var(--fonte-mono); font-size: 0.6875rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--texto-suave); }
.chat-suggestions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 8px; }
.chat-suggestions span { padding: 6px 12px; border: 1px solid var(--linha-forte); border-radius: 3px; }

/* 04 Controle */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); }
.principles li { padding: 24px 0 28px; border-top: 1px solid var(--linha-sobre-escuro); }
.principles h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 8px; }
.principles p { color: var(--texto-suave-sobre-escuro); max-width: 30em; }

/* 05 Para quem */
.who-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 72px); }
.who-cols h3 { padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--linha); }

/* 06 Piloto */
.pilot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.pilot-copy .line-list { margin-top: 32px; }
.pilot-form { padding: clamp(20px, 3vw, 32px); background: var(--superficie); border: 1px solid var(--linha); border-radius: 8px; }
.form-intro { margin-bottom: 20px; font-size: 0.875rem; color: var(--texto-suave); }
.field { margin-bottom: 18px; min-width: 0; }
.field label { display: block; margin-bottom: 6px; font-size: 0.9375rem; font-weight: 500; }
.optional { font-weight: 400; color: var(--texto-suave); }
.field input, .field textarea {
  display: block; width: 100%; min-height: 48px; padding: 11px 14px;
  font: inherit; font-size: 1rem; color: var(--texto);
  background: var(--superficie); border: 1.5px solid var(--linha-forte); border-radius: var(--raio);
  transition: border-color var(--transicao);
}
.field-short input { max-width: 10rem; }
.field textarea { resize: vertical; min-height: 112px; }
.field input:hover, .field textarea:hover { border-color: var(--texto-suave); }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--verde-petroleo); }
.field [aria-invalid="true"] { border-color: var(--vermelho); }
.field-error { margin-top: 6px; font-size: 0.875rem; font-weight: 500; color: var(--vermelho-texto); }
.field-hint { margin-top: 6px; font-size: 0.875rem; color: var(--texto-suave); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--raio);
  background: var(--verde-tinta); color: var(--verde-tinta-texto); font-size: 0.9375rem;
}
.form-status[data-kind="warn"] { background: var(--ambar-tinta); color: var(--ambar-texto); }
.form-status[data-kind="error"] { background: var(--vermelho-tinta); color: var(--vermelho-texto); }
.form-status .btn { margin-top: 12px; }
.privacy-note { margin-top: 16px; font-size: 0.875rem; color: var(--texto-suave); }
.privacy-note .link-btn { color: var(--verde-texto); font-weight: 500; padding-block: 4px; }

/* 07 FAQ */
.faq-list { max-width: 52rem; }
.faq-list details { border-top: 1px solid var(--linha); }
.faq-list details:last-child { border-bottom: 1px solid var(--linha); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none;
  transition: color var(--transicao);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--verde-texto); }
.faq-list summary h3 { font-size: 1.1875rem; font-weight: 500; }
.faq-list summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform var(--transicao);
}
.faq-list details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-answer { padding: 0 0 24px; max-width: 40em; color: var(--texto-suave); }
.faq-answer p + p { margin-top: 12px; }
.faq-answer a { color: var(--verde-texto); font-weight: 500; text-underline-offset: 3px; }

/* CTA final */
.cta-final { padding-block: var(--secao) calc(var(--secao) * 1.5); }
.cta-inner {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding-top: clamp(32px, 5vw, 64px); border-top: 1px solid var(--azul-profundo);
}
.cta-inner h2 { font-size: clamp(2rem, 4.6vw, 3.75rem); line-height: 1.05; letter-spacing: -0.035em; text-wrap: initial; }

/* Rodapé */
.site-footer { background: var(--azul-900); color: var(--texto-suave-sobre-escuro); padding-block: 56px 40px; font-size: 0.9375rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand p { margin-top: 8px; color: var(--texto-sobre-escuro); }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 0 40px; }
.footer-links a, .footer-links .link-btn {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--texto-suave-sobre-escuro); text-decoration: none;
  transition: color var(--transicao);
}
.footer-links a:hover, .footer-links .link-btn:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--linha-sobre-escuro); font-size: 0.875rem; }

/* Aviso de privacidade */
.privacy-dialog {
  width: min(640px, calc(100vw - 32px)); max-height: min(85vh, 720px);
  padding: 0; border: 1px solid var(--linha); border-radius: 8px;
  color: var(--texto); background: var(--superficie); box-shadow: var(--sombra);
}
.privacy-dialog::backdrop { background: rgba(15, 36, 56, 0.6); }
.privacy-inner { padding: clamp(24px, 4vw, 40px); }
.privacy-inner h2 { font-size: 1.625rem; margin-bottom: 12px; }
.privacy-inner h3 { margin-top: 22px; margin-bottom: 4px; font-size: 1rem; }
.privacy-inner p { color: var(--texto-suave); font-size: 1rem; }
.privacy-inner form { margin-top: 28px; }

/* 5. Responsivo ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .hero { padding-bottom: 0; }
  .hero::before { left: 0; top: auto; height: 38%; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-mock { margin-bottom: clamp(40px, 7vw, 72px); }
  .section-inner { grid-template-columns: minmax(0, 1fr); }
  .marker { display: flex; gap: 10px; padding-top: 0; margin-bottom: 20px; }
  .assist-grid, .pilot-grid, .problem-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 940px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 4px var(--gutter) 24px;
    background: var(--branco-quente); border-bottom: 1px solid var(--linha);
    box-shadow: 0 16px 24px -16px rgba(23, 50, 77, 0.25);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav ul a { display: flex; min-height: 52px; padding: 0; font-size: 1.0625rem; border-bottom: 1px solid var(--linha); }
  .nav-cta { min-height: 48px; }
}

@media (max-width: 760px) {
  .flow > li { grid-template-columns: 2rem minmax(0, 1fr); }
  .flow .frag { grid-column: 2; margin-top: 8px; }
  .principles, .who-cols { grid-template-columns: minmax(0, 1fr); }
  .who-cols { gap: 40px; }
  .line-list li { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { flex: 1 1 100%; }
  .cta-inner .btn { width: 100%; }
  .footer-links { grid-template-columns: minmax(0, 1fr); }
  .frag-row { grid-template-columns: minmax(0, 1fr) auto; }
  .frag-row .frag-meta { display: none; }

  /* Painel do hero em versão compacta */
  .mock-caption, .mock-top, .mock-tabs { padding-inline: 16px; }
  .mock-tabs { gap: 16px; }
  .mock-sub { display: none; }
  .mock-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock-stats > div { padding: 12px 16px; }
  .mock-stats > div:nth-child(3) { border-left: 0; }
  .mock-stats > div:nth-child(n+3) { border-top: 1px solid var(--linha); }
  .hero-mock .mock-bar { margin-inline: 16px; }
  .mock-head { display: none; }
  .mock-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "nome situacao" "nfse situacao";
    gap: 2px 12px; padding: 10px 16px;
  }
  .mock-row > .c-name { grid-area: nome; }
  .mock-row > .c-nfse { grid-area: nfse; font-size: 0.8125rem; }
  .mock-row > .c-num { display: none; }
  .mock-row > span:last-child { grid-area: situacao; }
  .mock-assist { padding: 14px 16px 16px; }
  .assist-mock .mock-body { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .site-header, .menu-toggle, .cta-final, .pilot-form { display: none; }
}
