/* Estilos institucionais compartilhados pela landing e pela política de privacidade.
   A política (landing/politica-de-privacidade.html + privacy.css) usa daqui o
   cabeçalho, o rodapé, .wrap, .skip e os tokens marcados como "legado" abaixo. */

/* ── FONTES ─────────────────────────────────────────────────────────────────
   Servidas pela própria origem: a CSP só libera font-src 'self'. Subconjunto
   latino (cobre o português). Licença SIL OFL 1.1, arquivos OFL-*.txt na mesma
   pasta. */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/public/assets/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/public/assets/fonts/newsreader-latin-opsz-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/public/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Azul-marinho da marca, do mais profundo ao mais claro. */
  --navy-950: #050d19;
  --navy-900: #071426;
  --navy-800: #0c1e36;
  --navy-700: #14304f;
  --navy-600: #2a4a70;
  /* Tons claros: papel quente e pedra, em vez de branco puro. */
  --paper: #f4f1ea;
  --paper-2: #ebe6da;
  --paper-3: #fbfaf6;
  --white: #ffffff;
  --ink: #0b1628;
  --ink-2: #2b3648;
  --muted: #5b6474;
  --rule: rgba(11, 22, 40, 0.12);
  --rule-strong: rgba(11, 22, 40, 0.22);
  --on-dark: #eef1f5;
  --on-dark-2: #c8d1dd;
  --on-dark-muted: #95a3b6;
  --rule-dark: rgba(238, 241, 245, 0.12);
  /* Dourado só em marcas pequenas: fios, números, selos e foco. */
  --gold: #c9a35b;
  --gold-soft: #e3c98f;
  --gold-ink: #8d6a2a;

  --font-sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-height: 88px;
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Legado: nomes que a privacy.css ainda usa. */
  --abyss: var(--navy-950);
  --navy: var(--navy-900);
  --surface-soft: var(--paper);
  --line: var(--rule);
  --blue: #1f4f7a;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 8px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
h1 em, h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.015em;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold-soft); color: var(--navy-900); padding: 12px 18px;
  border-radius: 0 0 10px 0; font-weight: 700;
}
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--gold-ink);
}

/* ── BOTÕES E LINKS ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  font-family: inherit; font-size: 0.98rem; font-weight: 600; letter-spacing: -0.005em;
  white-space: nowrap; cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}
.btn-sm { height: 42px; padding: 0 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn-light { background: var(--paper); color: var(--navy-900); }
.btn-light:hover { background: var(--white); }
.btn-dark { background: var(--navy-900); color: var(--paper); }
.btn-dark:hover { background: var(--navy-700); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:disabled { cursor: progress; }
.btn.loading { opacity: 0.72; }

.text-link {
  font-weight: 500;
  padding-bottom: 3px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s var(--ease), color 0.25s ease;
}
.text-link:hover { background-size: 35% 1px; }
.text-link.on-dark { color: var(--on-dark); }

/* ── CABEÇALHO ────────────────────────────────────────────────────────────
   Cápsula azul-marinho flutuante: a logo oficial tem o nome em branco e só
   pode aparecer sobre fundo escuro, então o cabeçalho é escuro em qualquer
   seção, clara ou escura. */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 14px var(--gutter) 0;
  pointer-events: none;
}
.header-inner {
  pointer-events: auto;
  max-width: 1280px; height: 60px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 0 9px 0 22px;
  color: var(--on-dark);
  background: rgba(7, 20, 38, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(238, 241, 245, 0.09);
  border-radius: 999px;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
.site-header.scrolled .header-inner {
  background: rgba(5, 13, 25, 0.94);
  box-shadow: 0 18px 40px -22px rgba(5, 13, 25, 0.6);
}
.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand img { width: 108px; height: auto; }
.brand-tag {
  max-width: 98px;
  padding-left: 14px;
  border-left: 1px solid var(--rule-dark);
  font-family: var(--font-mono);
  font-size: 0.62rem; line-height: 1.35; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-dark-muted);
}
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  padding: 8px 13px; border-radius: 999px;
  font-size: 0.92rem; color: var(--on-dark-2);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav a:hover { color: var(--white); background: rgba(238, 241, 245, 0.07); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.ghost-link { padding: 8px 14px; font-size: 0.92rem; color: var(--on-dark-2); transition: color 0.2s ease; }
.ghost-link:hover { color: var(--white); }

.burger {
  display: none; position: relative;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(238, 241, 245, 0.2); background: transparent; color: var(--on-dark);
  cursor: pointer;
}
.burger span, .burger span::before {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.burger span { top: 17px; }
.burger span::before { content: ""; left: 0; right: 0; top: 6px; }
.burger[aria-expanded="true"] span { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(-90deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column;
  padding: 104px var(--gutter) 32px;
  background: var(--navy-950);
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-dark);
  font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; color: var(--on-dark);
}
.mobile-nav .mobile-nav-login { margin-top: 20px; border: 0; font-size: 1rem; font-weight: 500; color: var(--on-dark-muted); }
.mobile-nav .btn { margin-top: 10px; border: 0; font-size: 1rem; color: var(--navy-900); }

/* ── ESTRUTURA DAS SEÇÕES ─────────────────────────────────────────────── */
.section { padding: clamp(88px, 11vw, 168px) 0; }
.paper { background: var(--paper); }
.white { background: var(--paper-3); }
.stone { background: var(--paper-2); }
.navy { background: var(--navy-900); color: var(--on-dark); }

.eyebrow, .sec-label {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.sec-label { margin-bottom: 30px; color: var(--muted); }
.sec-label span { color: var(--gold-ink); display: inline-flex; align-items: center; gap: 12px; }
.sec-label span::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.navy .sec-label { color: var(--on-dark-muted); }
.navy .sec-label span, .navy .mono { color: var(--gold-soft); }

h2 { font-size: clamp(2.15rem, 4.6vw, 4.1rem); line-height: 1.03; letter-spacing: -0.037em; }
h2 em { color: var(--navy-600); }
.navy h2 em { color: #b7c4d6; }

.sec-head { max-width: 800px; margin-bottom: clamp(52px, 6.5vw, 88px); }
.sec-head > p:not(.sec-label) { margin-top: 26px; max-width: 58ch; font-size: 1.08rem; color: var(--muted); }
.navy .sec-head > p:not(.sec-label) { color: var(--on-dark-muted); }
.sec-head.split {
  max-width: none;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
}
.sec-head.split .sec-label { grid-column: 1 / -1; }
.sec-head.split h2 { grid-column: 1 / span 8; }
.sec-head.split > p:not(.sec-label) { grid-column: 9 / span 4; align-self: end; margin-top: 0; font-size: 1rem; }

/* Quadro das telas reais: barra fina com o endereço do sistema e o nome da tela. */
.frame {
  position: relative; overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(11, 22, 40, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 50px 90px -48px rgba(5, 13, 25, 0.5), 0 14px 30px -20px rgba(5, 13, 25, 0.28);
}
.frame-bar {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 16px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.05em; line-height: 1.4;
  color: #6f7887; background: #f6f5f1;
  border-bottom: 1px solid rgba(11, 22, 40, 0.08);
  white-space: nowrap;
}
.frame-bar span:last-child { overflow: hidden; text-overflow: ellipsis; }
.frame img { width: 100%; }
.frame-dark { border-color: rgba(238, 241, 245, 0.12); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.7); }
.frame-dark .frame-bar { background: #10233d; color: #8e9db1; border-bottom-color: rgba(238, 241, 245, 0.08); }

.phone {
  position: absolute; z-index: 2;
  padding: 7px; border-radius: 32px;
  background: var(--navy-950);
  box-shadow: 0 40px 70px -30px rgba(5, 13, 25, 0.65), inset 0 0 0 1px rgba(238, 241, 245, 0.1);
}
.phone img { border-radius: 25px; }
.shot-note {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em;
  color: var(--muted);
}
.shot-note.on-dark { color: var(--on-dark-muted); margin-top: 18px; }

/* ── ABERTURA ─────────────────────────────────────────────────────────────
   A tela do Funil atravessa a divisa entre o azul-marinho e o papel. */
.hero { --overlap: clamp(110px, 23vw, 330px); }
.hero-top {
  position: relative; isolation: isolate;
  padding-top: calc(var(--header-height) + clamp(52px, 10vh, 116px));
  background: var(--navy-900);
  color: var(--on-dark);
}
/* Seis fios verticais, como as colunas de uma prancha de projeto. */
.hero-top::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 6 - 1px), rgba(238, 241, 245, 0.05) calc(100% / 6 - 1px) calc(100% / 6));
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 92%);
}
.hero-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px; row-gap: 30px; align-items: end;
}
.hero-eyebrow { grid-column: 1 / -1; color: var(--gold-soft); }
.hero-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero-title {
  grid-column: 1 / span 8;
  font-size: clamp(2.9rem, 6.7vw, 6.5rem);
  line-height: 0.98; letter-spacing: -0.048em; font-weight: 500;
}
.hero-title .ln { display: block; overflow: hidden; padding: 0 0.1em 0.07em 0; margin-bottom: -0.07em; }
.hero-title .ln > * { display: inline-block; }
.hero-title em { font-weight: 300; letter-spacing: -0.03em; color: #d6dfea; }
.hero-aside { grid-column: 9 / span 4; padding-bottom: 0.7rem; }
.hero-sub { font-size: 1.06rem; line-height: 1.65; color: #b4c0cf; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 30px; }

.hero-stage {
  position: relative; z-index: 2;
  margin-top: clamp(60px, 8vw, 104px);
  margin-bottom: calc(-1 * var(--overlap));
}
.frame-hero { width: 87%; }
.phone-hero { right: 0; bottom: -28px; width: clamp(128px, 19%, 232px); }
.hero-tail { background: var(--paper); padding: calc(var(--overlap) + 30px) 0 clamp(64px, 8vw, 104px); }
.hero-tail-inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 18px 40px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 34px; font-size: 0.94rem; color: var(--ink-2); }
.hero-facts li { display: flex; align-items: center; gap: 12px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

/* ── 01 CONTEXTO ──────────────────────────────────────────────────────── */
.statement { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.statement .sec-label { grid-column: 1 / -1; }
.statement h2 { grid-column: 1 / span 10; font-size: clamp(2.2rem, 4.9vw, 4.5rem); }
.statement-lead { grid-column: 7 / span 6; margin-top: 44px; font-size: 1.12rem; color: var(--muted); }
.values {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px;
  margin-top: clamp(72px, 9vw, 128px);
}
.values li { padding-top: 26px; border-top: 1px solid var(--rule-strong); }
.values h3 { margin: 22px 0 12px; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.015em; }
.values p { font-size: 0.98rem; color: var(--muted); }

/* ── 02 PLATAFORMA ────────────────────────────────────────────────────────
   A tela fica fixa à direita e troca conforme o passo que está no centro. */
.tour-grid {
  display: grid; grid-template-columns: minmax(260px, 4fr) minmax(0, 8fr);
  gap: clamp(36px, 5vw, 88px); align-items: start;
}
.tour-step {
  min-height: 62vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 24px 0 24px 26px;
  border-left: 1px solid var(--rule-strong);
  transition: opacity 0.5s ease, border-color 0.5s ease;
}
.js .tour-step { opacity: 0.32; }
.js .tour-step.is-active { opacity: 1; border-left-color: var(--gold); }
.tour-step h3 { margin: 16px 0 14px; font-size: clamp(1.7rem, 2.5vw, 2.3rem); letter-spacing: -0.032em; }
.tour-step p { max-width: 40ch; color: var(--muted); }
.tour-inline { display: none; }
/* Centraliza o quadro na altura da janela: a altura dele acompanha a largura da coluna. */
.tour-stage { position: sticky; top: max(104px, calc(50vh - min(17vw, 245px) - 20px)); }
.tour-screens { position: relative; aspect-ratio: 16 / 10; background: #f3f4f6; }
.tour-screen {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left;
  opacity: 0; transform: scale(1.02);
  transition: opacity 0.6s var(--ease), transform 1s var(--ease);
}
.tour-screen.is-active { opacity: 1; transform: none; }

/* ── 03 RECURSOS ──────────────────────────────────────────────────────── */
.caps { border-top: 1px solid var(--rule-strong); }
.cap {
  display: grid; grid-template-columns: 72px minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: 24px; align-items: baseline;
  padding: 34px 0; border-bottom: 1px solid var(--rule);
}
.cap h3 { font-size: clamp(1.4rem, 2.2vw, 1.95rem); letter-spacing: -0.028em; transition: color 0.3s ease; }
.cap:hover h3 { color: var(--navy-600); }
.cap p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.tags li {
  padding: 5px 11px; border: 1px solid var(--rule-strong); border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.03em; color: var(--ink-2);
}

.mod-index { margin-top: 44px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--paper); }
.mod-index summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 26px; cursor: pointer; list-style: none;
  font-weight: 600; letter-spacing: -0.01em;
}
.mod-index summary::-webkit-details-marker { display: none; }
.mod-index summary svg { flex: none; transition: transform 0.35s var(--ease); }
.mod-index[open] summary svg { transform: rotate(45deg); }
.mod-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 6px 26px 30px; }
.mod-group h3 {
  margin-bottom: 12px;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 400; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--gold-ink);
}
.mod { padding: 11px 0; border-top: 1px solid var(--rule); }
.mod h4 { font-size: 0.98rem; font-weight: 600; letter-spacing: -0.01em; }
.mod p { margin-top: 3px; font-size: 0.86rem; line-height: 1.5; color: var(--muted); }
.restricted {
  display: inline-block; margin-top: 8px; padding: 3px 9px;
  border: 1px solid rgba(141, 106, 42, 0.45); border-radius: 8px;
  font-family: var(--font-mono); font-size: 0.64rem; line-height: 1.5; letter-spacing: 0.03em; color: var(--gold-ink);
}

/* ── 04 ATENDIMENTO E IA ──────────────────────────────────────────────── */
.status-legend {
  display: flex; flex-wrap: wrap; gap: 12px 34px;
  margin-bottom: clamp(52px, 6vw, 80px); padding: 18px 0;
  border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark);
  font-size: 0.88rem; color: var(--on-dark-muted);
}
.status-legend li { display: flex; align-items: center; gap: 10px; }
.status-legend strong { color: var(--on-dark); font-weight: 600; margin-right: 4px; }
.status { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; }
.status-ok { background: var(--on-dark); }
.status-impl { background: linear-gradient(90deg, var(--gold) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--gold); }
.status-prep { box-shadow: inset 0 0 0 1.5px var(--on-dark-muted); }

.atd-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.atd-visual { position: relative; padding-right: 7%; }
.phone-atd { right: 0; bottom: 34px; width: clamp(118px, 29%, 214px); }
.atd-col { padding: 26px 0 22px; border-top: 1px solid var(--rule-dark); }
.atd-col + .atd-col { margin-top: 10px; }
.atd-col-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; margin-bottom: 14px; }
.atd-col-head h3 { font-size: 1.36rem; letter-spacing: -0.022em; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 12px; border: 1px solid; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.badge-impl { color: var(--gold-soft); border-color: rgba(201, 163, 91, 0.45); }
.badge-prep { color: var(--on-dark-2); border-color: rgba(200, 209, 221, 0.3); }
.atd-items li { position: relative; padding: 9px 0 9px 22px; font-size: 0.98rem; color: var(--on-dark-2); }
.atd-items li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 9px; height: 1px; background: var(--gold); }
.atd-principle {
  margin-top: 26px; padding: 20px 24px;
  border-left: 2px solid var(--gold); background: rgba(238, 241, 245, 0.04);
  font-family: var(--font-serif); font-style: italic; font-weight: 300;
  font-size: 1.34rem; line-height: 1.35; color: var(--on-dark);
}
.atd-note { margin-top: 18px; font-size: 0.84rem; color: var(--on-dark-muted); }

/* ── 05 FLUXO COMERCIAL ───────────────────────────────────────────────────
   A linha dourada avança com a rolagem (--progresso, de 0 a 1, vem do JS). */
.flow {
  --progresso: 0;
  position: relative;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px;
  padding-top: 40px;
}
.flow::before, .flow::after { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 1px; }
.flow::before { background: var(--rule-strong); }
.flow::after { background: var(--gold-ink); transform-origin: left center; transform: scaleX(var(--progresso)); }
html:not(.js) .flow::after { transform: none; }
.flow-step { position: relative; }
.flow-node {
  position: absolute; top: -40px; left: 0;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--rule-strong);
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.flow-step.passed .flow-node, html:not(.js) .flow-node {
  background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(201, 163, 91, 0.16);
}
.chip {
  display: inline-flex; align-items: center;
  padding: 5px 11px; border: 1px solid var(--rule-strong); border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--ink-2);
}
.chip-stage { background: var(--white); }
.chip-stage[data-stage="consulta"] { border-color: #b7c6d8; color: #2a4a70; }
.chip-stage[data-stage="negociacao"] { border-color: rgba(201, 163, 91, 0.7); color: #7a5a1f; }
.chip-won { border-color: rgba(47, 111, 85, 0.45); color: #2f6a52; }
.chip-lost { border-color: rgba(138, 63, 63, 0.4); color: #8a3f3f; }
.chip-pair { display: flex; flex-wrap: wrap; gap: 6px; }
.flow-step h3 { margin: 20px 0 10px; font-size: 1.24rem; font-weight: 600; letter-spacing: -0.015em; }
.flow-step p { font-size: 0.96rem; color: var(--muted); }
.flow-note { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 0.9rem; color: var(--muted); }

/* ── 06 AMBIENTE E ACESSO ─────────────────────────────────────────────── */
.security-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 104px); align-items: center; }
.security-copy .sec-head { margin-bottom: 44px; }
.facts > div {
  display: grid; grid-template-columns: minmax(150px, 2fr) minmax(0, 5fr); gap: 20px;
  padding: 22px 0; border-top: 1px solid var(--rule-strong);
}
.facts dt { font-weight: 600; letter-spacing: -0.01em; }
.facts dd { color: var(--muted); }

.env-diagram {
  display: grid; grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
  padding: 26px; border-radius: 22px;
  background: var(--navy-900); color: var(--on-dark);
  box-shadow: 0 50px 90px -50px rgba(5, 13, 25, 0.6);
}
.env {
  padding: 22px 18px; border-radius: var(--radius);
  border: 1px solid rgba(238, 241, 245, 0.13); background: rgba(238, 241, 245, 0.03);
}
.env-name { font-size: 1.04rem; font-weight: 600; }
.env-sub {
  margin-top: 4px;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-dark-muted);
}
.env-people { display: grid; gap: 8px; margin-top: 22px; }
.env-people li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px; background: rgba(238, 241, 245, 0.05);
  font-size: 0.8rem; line-height: 1.25; color: var(--on-dark-2);
}
.env-people i { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--navy-600); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.env-people li:first-child i { background: var(--gold); }
.env-data {
  margin-top: 20px; padding-top: 14px; border-top: 1px dashed rgba(238, 241, 245, 0.18);
  font-family: var(--font-mono); font-size: 0.62rem; line-height: 1.7; color: var(--on-dark-muted);
}
.env-wall { position: relative; display: flex; align-items: center; justify-content: center; }
.env-wall::before {
  content: ""; position: absolute; top: 6px; bottom: 6px; left: 50%; width: 2px; transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, var(--gold) 0 8px, transparent 8px 14px);
}
.env-wall span {
  position: relative; padding: 12px 0;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-soft); background: var(--navy-900);
}

/* ── 07 DÚVIDAS ───────────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 104px); align-items: start; }
.faq-grid .sec-head { position: sticky; top: calc(var(--header-height) + 24px); margin-bottom: 0; }
.faq { border-top: 1px solid var(--rule-strong); }
.faq-item { border-bottom: 1px solid var(--rule-strong); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; border: 0; background: none; cursor: pointer; text-align: left;
  font-size: 1.14rem; font-weight: 500; letter-spacing: -0.012em; color: var(--ink);
}
.plus { position: relative; flex: none; width: 18px; height: 18px; color: var(--gold-ink); }
.plus::before, .plus::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px;
  background: currentColor; transition: transform 0.35s var(--ease);
}
.plus::after { transform: rotate(90deg); }
.faq-item.open .plus::after { transform: rotate(0deg); }
.js .faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq-a p { max-width: 62ch; padding-bottom: 26px; color: var(--muted); }

/* ── 08 APRESENTAÇÃO ──────────────────────────────────────────────────── */
.invite-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.invite-copy > p:not(.sec-label) { margin-top: 26px; font-size: 1.06rem; color: var(--on-dark-muted); }
.next-steps { margin-top: 44px; border-top: 1px solid var(--rule-dark); }
.next-steps li {
  display: grid; grid-template-columns: 48px minmax(0, 1fr);
  padding: 18px 0; border-bottom: 1px solid var(--rule-dark);
  font-size: 0.98rem; color: var(--on-dark-2);
}
.next-steps .mono { padding-top: 3px; }

.card-form {
  padding: clamp(26px, 4vw, 46px); border-radius: 22px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.7);
}
.form-title { margin-bottom: 26px; font-size: 1.55rem; font-weight: 500; letter-spacing: -0.025em; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; min-width: 0; }
.field label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.01em; color: var(--ink-2); }
.req { color: var(--gold-ink); }
.field input, .field textarea {
  width: 100%; padding: 10px 0;
  border: 0; border-bottom: 1px solid var(--rule-strong); border-radius: 0;
  background: transparent; color: var(--ink);
  font: inherit; font-size: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field textarea { min-height: 86px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9298a3; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--navy-900); box-shadow: 0 1px 0 0 var(--navy-900); }
.field-row { display: grid; gap: 20px; }
.field-row.three { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.2fr) minmax(0, 0.6fr); }
.form-msg { display: none; margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; font-size: 0.9rem; }
.form-msg.error { background: #f6e3df; color: #7a2a22; }
.form-msg.visible { display: block; }
.form-legal { margin-top: 14px; font-size: 0.78rem; color: var(--muted); }
.form-ok { display: none; }
.form-ok.visible { display: block; }
.form-ok .check {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 22px;
  border-radius: 50%; background: var(--navy-900); color: var(--paper);
}
.form-ok h3 { margin-bottom: 10px; font-size: 1.6rem; letter-spacing: -0.025em; }
.form-ok p { color: var(--muted); }

/* ── RODAPÉ ───────────────────────────────────────────────────────────── */
.site-footer { padding: 76px 0 34px; background: var(--navy-950); color: var(--on-dark-muted); font-size: 0.92rem; }
.footer-top {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px;
  padding-bottom: 52px; border-bottom: 1px solid var(--rule-dark);
}
.footer-brand img { width: 132px; height: auto; }
.footer-brand p { max-width: 38ch; margin-top: 20px; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-links h5 {
  margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-soft);
}
.footer-links a { display: block; padding: 5px 0; color: var(--on-dark-2); transition: color 0.2s ease; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding-top: 26px; font-size: 0.82rem; }
.footer-bottom a:hover { color: var(--white); }

/* ── WHATSAPP COMERCIAL (BOTÃO FLUTUANTE) ─────────────────────────────────
   Canto inferior direito, acima das áreas seguras do aparelho. O verde é um
   pouco mais fechado que o #25D366 da marca: com ele, o ícone branco chega a
   3:1 de contraste (o #25D366 fica em 1,98:1). */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.wa-float {
  --wa-verde: #1fa855;
  position: fixed; z-index: 80;
  right: calc(22px + env(safe-area-inset-right, 0px));
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa-verde); color: var(--white);
  box-shadow: 0 16px 32px -14px rgba(5, 13, 25, 0.6), 0 4px 12px -6px rgba(5, 13, 25, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.25s ease, opacity 0.3s ease;
}
.wa-float:hover { --wa-verde: #1b984c; transform: translateY(-2px); box-shadow: 0 22px 38px -16px rgba(5, 13, 25, 0.65), 0 6px 14px -6px rgba(5, 13, 25, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.wa-float:active { transform: scale(0.96); }
/* Anel duplo: claro sobre seção escura, escuro sobre seção clara. */
.wa-float:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--navy-900), 0 16px 32px -14px rgba(5, 13, 25, 0.6); }
.wa-float__icone { width: 28px; height: 28px; }
.wa-float__rotulo {
  position: absolute; right: calc(100% + 12px); top: 50%;
  padding: 8px 14px; border-radius: 999px;
  background: var(--navy-950); color: var(--white);
  font-size: 0.82rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 10px 24px -14px rgba(5, 13, 25, 0.6);
  opacity: 0; transform: translate(6px, -50%); pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s var(--ease);
}
.wa-float:hover .wa-float__rotulo, .wa-float:focus-visible .wa-float__rotulo { opacity: 1; transform: translate(0, -50%); }
@media (hover: none) { .wa-float__rotulo { display: none; } }
/* Escondido por cima de controles, do formulário ou do rodapé; o foco do
   teclado o traz de volta. */
.wa-float.is-hidden { opacity: 0; transform: translateY(14px) scale(0.92); pointer-events: none; }
.wa-float.is-hidden:focus-visible { opacity: 1; transform: none; pointer-events: auto; }
/* Com o menu do celular aberto, sai também da ordem de tabulação. */
.mobile-nav.open ~ .wa-float { visibility: hidden; }

/* ── MOVIMENTO ────────────────────────────────────────────────────────────
   Só com JS (classe .js no <html>) e só se o sistema não pedir menos movimento:
   sem JS ou com movimento reduzido, todo o conteúdo aparece direto. */
@media (prefers-reduced-motion: no-preference) {
  .hero-title .ln > * { animation: sobe 1.05s var(--ease) both; }
  .hero-title .ln:nth-child(2) > * { animation-delay: 0.07s; }
  .hero-title .ln:nth-child(3) > * { animation-delay: 0.14s; }
  .hero-title .ln:nth-child(4) > * { animation-delay: 0.21s; }
  .hero-eyebrow, .hero-aside { animation: aparece 1s 0.35s var(--ease) both; }
  .hero-stage { animation: aparece-tela 1.2s 0.45s var(--ease) both; }
  /* "backwards": depois de entrar, o estado .is-hidden volta a valer. */
  .wa-float { animation: aparece-wa 0.6s 1.1s var(--ease) backwards; }
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal.d1 { transition-delay: 0.08s; }
  .js .reveal.d2 { transition-delay: 0.16s; }
  .js .reveal.d3 { transition-delay: 0.24s; }
}
@keyframes sobe { from { transform: translateY(108%); } to { transform: none; } }
@keyframes aparece { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes aparece-wa { from { opacity: 0; transform: translateY(16px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes aparece-tela { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ── RESPONSIVO ───────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .brand-tag { display: none; }
  .nav a { padding: 8px 10px; }
  .cap { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.3fr); }
  .cap .tags { grid-column: 2 / -1; justify-content: flex-start; }
  .mod-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .nav, .ghost-link { display: none; }
  .header-actions { margin-left: auto; }
  .burger { display: inline-block; }

  .hero-title, .hero-aside { grid-column: 1 / -1; }
  .hero-aside { max-width: 560px; }
  .sec-head.split h2, .sec-head.split > p:not(.sec-label) { grid-column: 1 / -1; }
  .sec-head.split > p:not(.sec-label) { margin-top: 24px; max-width: 60ch; }
  .statement h2, .statement-lead { grid-column: 1 / -1; }
  .statement-lead { max-width: 60ch; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }

  .tour-grid { display: block; }
  .tour-stage { display: none; }
  .tour-step, .js .tour-step { min-height: 0; padding: 0 0 64px; border-left: 0; opacity: 1; }
  .tour-step:last-child { padding-bottom: 0; }
  .tour-step p { max-width: 60ch; }
  .tour-inline { display: block; margin-top: 28px; }

  .atd-grid, .security-grid, .faq-grid, .invite-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid .sec-head { position: static; }
  .atd-visual { max-width: 760px; }

  .flow { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 0 0 0 40px; }
  .flow::before, .flow::after { top: 0; bottom: 0; left: 6px; right: auto; width: 1px; height: auto; }
  .flow::after { transform-origin: center top; transform: scaleY(var(--progresso)); }
  .flow-node { top: 3px; left: -40px; }
  .flow-step h3 { margin-top: 14px; }

  .env-diagram { max-width: 560px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .site-header { padding-top: 10px; }
  .header-inner { height: 56px; padding: 0 7px 0 18px; }
  .brand img { width: 96px; }
  .header-actions .btn-sm { display: none; }
  .burger { width: 40px; height: 40px; }
  .burger span { top: 16px; }
  .burger[aria-expanded="true"] span { top: 19px; }

  .hero { --overlap: clamp(90px, 28vw, 140px); }
  .hero-title { font-size: clamp(2.55rem, 11.6vw, 3.4rem); letter-spacing: -0.045em; }
  .cta-row { gap: 16px 22px; }
  .hero-stage { margin-top: 48px; }
  .frame-hero { width: 84%; }
  .phone-hero { width: 34%; bottom: -18px; padding: 5px; border-radius: 22px; }
  .phone-hero img { border-radius: 18px; }
  .hero-tail { padding-top: calc(var(--overlap) + 34px); }
  .hero-tail-inner { flex-direction: column; align-items: flex-start; }
  .hero-facts { flex-direction: column; gap: 8px; }

  .frame { border-radius: 10px; }
  .frame-bar { padding: 7px 11px; font-size: 0.58rem; }
  .frame-bar span:first-child { display: none; }

  .values { grid-template-columns: minmax(0, 1fr); }
  .cap { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 28px 0; }
  .cap .tags { grid-column: auto; margin-top: 6px; }
  .mod-index summary { padding: 18px 18px; }
  .mod-groups { grid-template-columns: minmax(0, 1fr); padding: 0 18px 22px; gap: 22px; }

  .status-legend { flex-direction: column; gap: 10px; }
  .atd-visual { padding-right: 0; padding-bottom: 8px; }
  .atd-visual .frame { width: 84%; }
  .phone-atd { width: 34%; bottom: 30px; padding: 5px; border-radius: 22px; }
  .phone-atd img { border-radius: 18px; }
  .atd-principle { font-size: 1.18rem; padding: 18px 18px; }

  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .env-diagram { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .env-wall { height: 46px; }
  .env-wall::before { top: 50%; bottom: auto; left: 6px; right: 6px; width: auto; height: 2px; transform: translateY(-50%);
    background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 14px); }
  .env-wall span { writing-mode: horizontal-tb; transform: none; padding: 0 12px; }

  .faq-q { padding: 22px 0; font-size: 1.04rem; }
  .field-row.three { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .field-row.three .field:first-child { grid-column: 1 / -1; }
  .footer-links { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .wa-float { width: 54px; height: 54px; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .wa-float__icone { width: 26px; height: 26px; }
}
