/* Socialfy Nexus · LP de produto · 2026-07-31 19:32 BRT
 * Família fable-field: tokens herdados VERBATIM da home V5 (spec-mãe §1 — não aproximar).
 * Acréscimo único de paleta: o verde de presença do Nexus (--wa*), usado SÓ em status —
 * ponto conectado, chamada viva, canal respirando. A página continua cobalt.
 * Contrato de movimento: transform/opacity/filter/clip-path · nada abaixo da dobra por timer ·
 * estados reversíveis (cues togglam, progresso contínuo em --hp/--op) · reduced-motion recompõe.
 */

/* ============ Fontes locais (zero CDN) ============ */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/sora-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/geist-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/geist-mono-latin.woff2") format("woff2");
}

/* ============ Tokens ============ */
:root {
  --night:       oklch(14% 0.028 262);
  --night-2:     oklch(17.5% 0.034 262);
  --night-3:     oklch(22% 0.04 262);
  --abyss:       oklch(10.5% 0.024 262);
  --ink:         oklch(96% 0.008 262);
  --ink-2:       oklch(81% 0.022 262);
  --ink-3:       oklch(63% 0.03 262);
  --rule:        oklch(33% 0.055 262);
  --rule-soft:   oklch(25% 0.04 262);
  --accent:      oklch(56% 0.215 262);
  --accent-hi:   oklch(72% 0.155 262);
  --accent-dim:  oklch(42% 0.135 262);
  --accent-deep: oklch(27% 0.095 262);
  --paper:       oklch(97% 0.006 262);
  --paper-2:     oklch(93.5% 0.009 262);
  --ink-dark:    oklch(19% 0.04 262);
  --ink-dark-2:  oklch(42% 0.03 262);
  --rule-light:  oklch(86% 0.014 262);
  --focus:       oklch(74% 0.15 262);
  --accent-ink:  oklch(98% 0.006 262);

  /* verde de presença do Nexus (#27c08a→#00a884) — status, nunca decoração */
  --wa:      oklch(70% 0.13 166);
  --wa-hi:   oklch(78% 0.12 166);
  --wa-deep: oklch(38% 0.075 168);
  --halo-wa: oklch(70% 0.13 166 / 0.18);
  /* vermelho de queda — só o ponto de status caído */
  --down:    oklch(62% 0.18 25);

  --shadow-card:  0 22px 52px -26px oklch(6% 0.02 262 / 0.7);
  --shadow-plate: 0 34px 90px -34px oklch(5% 0.02 262 / 0.85),
                  0 0 0 1px oklch(58% 0.215 262 / 0.12);
  --shadow-light: 0 -30px 90px -30px oklch(8% 0.02 262 / 0.55);

  --scrim-panel: oklch(17% 0.034 262 / 0.88);
  --scrim-copy:  oklch(14% 0.028 262 / 0.92);
  --halo-node:   oklch(58% 0.215 262 / 0.16);
  --edge-plate:  oklch(45% 0.09 262 / 0.5);
  --edge-hair:   oklch(96% 0.008 262 / 0.08);

  --glow-core: oklch(97% 0.05 250 / 0.8);
  --glow-mid:  oklch(70% 0.2 258 / 0.44);
  --glow-out:  oklch(48% 0.17 262 / 0);

  --canvas-dot:        oklch(62% 0.16 262);
  --canvas-dot-bright: oklch(84% 0.09 250);

  --font-display: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Geist", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-mono:    "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.8125rem;
  --text-base: 1.0625rem;
  --text-md:   1.1875rem;
  --text-lg:   1.4rem;
  --text-xl:   1.85rem;
  --text-display-s: clamp(1.7rem, 2.2vw + 1rem, 2.9rem);
  --text-display:   clamp(2.1rem, 3.1vw + 0.9rem, 3.9rem);
  --text-statement: clamp(1.9rem, 2.9vw + 0.8rem, 3.5rem);

  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 9rem;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --hair: 1px;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long:  420ms;
  --dur-scene: 680ms;
  --dur-swap:  560ms;

  --z-stage: 20;
  --z-nav:   300;
  --z-mega:  320;
  --z-modal: 500;

  --container: 1240px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --nav-h: 64px;
}

/* ============ Fundações ============ */
html { overflow-x: clip; scroll-behavior: smooth; }
body { overflow-x: clip; }
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }

img, svg, canvas, iframe { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
button { font: inherit; color: inherit; }
button:active { transform: translateY(1px); }

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

.skip-link {
  position: absolute;
  left: var(--space-md);
  top: var(--space-md);
  z-index: 999;
  padding: var(--space-xs) var(--space-md);
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transform: translate3d(0, -400%, 0);
  transition: transform var(--dur-short) var(--ease-out);
}
.skip-link:focus-visible { transform: translate3d(0, 0, 0); }

.tech {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin: 0;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-display-s);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: var(--space-sm) 0 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
  min-width: 0;
}
.lede {
  margin: var(--space-md) 0 0;
  max-width: 58ch;
  color: var(--ink-2);
  font-size: var(--text-md);
}
.statement {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-statement);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: var(--space-md) 0 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
  min-width: 0;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* linhas por máscara — reveal por clip, nunca por fade uniforme */
.mask { display: block; overflow: hidden; padding-bottom: 0.08em; }
.js .line {
  display: block;
  transform: translate3d(0, 108%, 0);
  transition: transform 780ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 100ms);
}
.js .in .line,
.js .is-lit .line { transform: translate3d(0, 0, 0); }

/* ============ Botões ============ */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.74rem 1.2rem;
  border: var(--hair) solid var(--rule);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur-short) var(--ease-out),
              border-color var(--dur-short) var(--ease-out),
              background-color var(--dur-short) var(--ease-out),
              box-shadow var(--dur-short) var(--ease-out);
}
.btn--primary {
  --btn-bg: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
  font-weight: 600;
  box-shadow: 0 12px 32px -14px var(--halo-node);
}
.btn--primary:hover { --btn-bg: var(--accent-hi); transform: translateY(-1px); }
.btn--ghost:hover { border-color: var(--accent-dim); background: var(--night-2); }
.btn--big { padding: 0.92rem 1.55rem; font-size: var(--text-base); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: oklch(14% 0.028 262 / 0.7);
  backdrop-filter: blur(14px);
  border-bottom: var(--hair) solid var(--rule-soft);
  transition: background-color var(--dur-short) var(--ease-out),
              border-color var(--dur-short) var(--ease-out);
}
.nav.is-open,
.nav.is-solid { background: var(--night); border-color: var(--rule); }
.nav__in {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 var(--gutter);
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
/* lockup oficial Navy Monograma — texto em path, altura fixa, largura proporcional */
.brand__lockup { height: 38px; width: auto; }

.nav__mid { display: flex; align-items: center; gap: var(--space-lg); margin-left: auto; }
.nav__mid > a,
.nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: var(--text-sm);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--dur-short) var(--ease-out);
}
.nav__mid > a:hover,
.nav__trigger:hover,
.nav__trigger[aria-expanded="true"] { color: var(--ink); }
.nav__trigger svg {
  width: 10px; height: 7px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round;
  transition: transform var(--dur-short) var(--ease-out);
}
.nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__end { display: flex; align-items: center; gap: var(--space-sm); margin-left: auto; }
.nav__login { font-size: var(--text-sm); color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.nav__login:hover { color: var(--ink); }
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  place-items: center;
  border: var(--hair) solid var(--rule);
  border-radius: var(--radius-sm);
  background: none;
  cursor: pointer;
}
.nav__burger svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }

/* mega-painel — abre sobre o hero, que continua vivo (lei 7) */
.mega {
  position: absolute;
  left: 0; right: 0; top: 100%;
  z-index: var(--z-mega);
  background: var(--night-2);
  border-bottom: var(--hair) solid var(--rule);
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translate3d(0, -8px, 0);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.mega[hidden] { display: none; }
.mega.is-in { opacity: 1; transform: translate3d(0, 0, 0); }
.mega__in {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--space-xl) var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--space-xl);
}
.mega__k { margin-bottom: var(--space-sm); color: var(--accent-hi); }
/* Produtos tem 5 colunas (Academy) — mínimo menor pra caber em linha única, igual à home */
#menu-produtos .mega__in { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.mega__col a {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  margin-left: calc(var(--space-sm) * -1);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color var(--dur-micro) var(--ease-out);
}
.mega__col a:hover { background: var(--night-3); }
.mega__col b { display: block; font-size: var(--text-sm); font-weight: 600; }
.mega__col span { display: block; font-size: var(--text-xs); color: var(--ink-3); line-height: 1.5; }
/* etiqueta de produto cuja página ainda não foi escrita — o link leva à página "em breve" */
.mega__col .mega__soon {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.05rem 0.4rem;
  border: var(--hair) solid var(--rule-soft);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  vertical-align: 1px;
}
/* ícone de produto: o SVG da família já traz o tile navy — sem background, sem radius aqui */
.mega__ico { width: 28px; height: 28px; flex: none; margin-top: 1px; }
.mega__col .mega__txt { min-width: 0; font-size: inherit; color: inherit; line-height: inherit; }
/* a página atual no menu: acesa, com o ponto de presença do produto */
.mega__col a.is-here { background: var(--night-3); box-shadow: inset 0 0 0 1px var(--rule-soft); }
.mega__col a.is-here b { color: var(--accent-hi); }
.mega__col a.is-here b::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--wa-hi);
  box-shadow: 0 0 0 3px var(--halo-wa);
  vertical-align: 2px;
}
.mega--slim .mega__in { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); padding-block: var(--space-lg); }

.sheet {
  display: grid;
  gap: var(--space-2xs);
  padding: var(--space-md) var(--gutter) var(--space-lg);
  border-top: var(--hair) solid var(--rule-soft);
  background: var(--night-2);
}
.sheet[hidden] { display: none; }
.sheet a,
.sheet button {
  padding: 0.7rem 0;
  font-size: var(--text-base);
  text-align: left;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  border-bottom: var(--hair) solid var(--rule-soft);
}

/* ============ HERO — a conversa viva emerge do horizonte de luz ============ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  padding-top: clamp(2rem, 4.5vh, 3.25rem);
}
.field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}
.hero__halo {
  position: absolute;
  left: 50%;
  bottom: -14%;
  width: min(160%, 110rem);
  height: 62%;
  translate: -50% 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(52% 100% at 50% 100%, var(--glow-mid) 0%, var(--glow-out) 72%);
  will-change: opacity, transform;
  animation: halo-breathe 8s var(--ease-in-out) infinite alternate;
}
@keyframes halo-breathe {
  from { opacity: 0.72; transform: translate3d(0, 0, 0) scale(1); }
  to   { opacity: 1;    transform: translate3d(0, -1.2%, 0) scale(1.035); }
}

.hero__core {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 56rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
  text-align: center;
}
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.85rem;
  border: var(--hair) solid var(--rule);
  border-radius: 999px;
  background: oklch(17.5% 0.034 262 / 0.6);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  color: var(--ink-2);
}
/* o ponto do pill é o verde de presença: tem alguém do outro lado */
.hero__pill--live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--wa-hi);
  box-shadow: 0 0 0 4px var(--halo-wa);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-display);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: var(--space-lg) 0 0;
  overflow-wrap: anywhere;
  min-width: 0;
}
.js .hero__pill,
.js .hero__lede,
.js .hero__cta {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity var(--dur-scene) var(--ease-out), transform var(--dur-scene) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.js .is-lit .hero__pill,
.js .is-lit .hero__lede,
.js .is-lit .hero__cta { opacity: 1; transform: translate3d(0, 0, 0); }
.hero__lede {
  margin: var(--space-lg) auto 0;
  max-width: 52ch;
  color: var(--ink-2);
  font-size: var(--text-md);
  text-wrap: balance;
}
.hero__cta {
  margin-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

/* a placa: entra cortada pela base do viewport e responde ao scroll (--hp do JS) */
.stage {
  position: relative;
  z-index: var(--z-stage);
  width: min(50rem, 94vw);
  margin: clamp(1.75rem, 4vh, 2.75rem) auto calc(clamp(4.5rem, 14vh, 9rem) * -1);
  transform: translate3d(0, calc(var(--hp, 0) * -1.6rem), 0);
}
.stage__glow {
  position: absolute;
  left: -14%; right: -14%;
  top: -26%;
  height: 28%;
  background: radial-gradient(50% 118% at 50% 100%, var(--glow-core) 0%, var(--glow-mid) 40%, var(--glow-out) 78%);
  filter: blur(12px); /* estático — nunca animar elemento com blur */
  opacity: calc(1 - var(--hp, 0) * 0.6);
  transform: translate3d(0, 20px, 0);
}
.js .stage__glow {
  transform: translate3d(0, 20px, 0);
  transition: transform 900ms var(--ease-out) 200ms;
}
.js .is-lit .stage__glow,
.no-js .stage__glow { transform: translate3d(0, 0, 0); }

.stage__frame {
  position: relative;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  background: var(--night-3);
  border: var(--hair) solid var(--edge-plate);
  border-bottom: 0;
  box-shadow: var(--shadow-plate);
}
.js .stage__frame {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(0.985);
  transition: opacity 860ms var(--ease-out) 120ms, transform 860ms var(--ease-out) 120ms;
}
.js .is-lit .stage__frame { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }

/* ---- a composição do CRM (claramente genérica; ver comentário no HTML) ---- */
.crm { display: block; }
.crm__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0.7rem 1rem;
  border-bottom: var(--hair) solid var(--rule-soft);
  background: linear-gradient(180deg, var(--night-2) 0%, var(--night-3) 100%);
}
.crm__peer { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.8rem; font-weight: 600; }
.crm__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  white-space: nowrap;
}
.crm__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
  min-height: clamp(20rem, 44vw, 26rem);
}
.crm__side {
  border-right: var(--hair) solid var(--rule-soft);
  padding: clamp(0.7rem, 1.6vw, 1rem);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: linear-gradient(170deg, var(--night-2) 0%, var(--night-3) 100%);
}
.crm__item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  border: var(--hair) solid transparent;
}
.crm__item.is-live { background: var(--night); border-color: var(--rule-soft); }
.crm__item b { display: block; font-size: 0.76rem; font-weight: 600; }
.crm__item span { display: block; font-size: 0.65rem; color: var(--ink-3); }
.ava {
  width: 28px; height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-deep);
  color: var(--accent-hi);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.64rem;
}
.dot {
  width: 7px; height: 7px;
  flex: none;
  display: inline-block;
  border-radius: 50%;
  background: var(--ink-3);
}
.dot--live {
  background: var(--wa-hi);
  box-shadow: 0 0 0 3px var(--halo-wa);
  animation: dot-breathe 2.6s var(--ease-in-out) infinite;
}
.dot--down { background: var(--down); box-shadow: 0 0 0 3px oklch(62% 0.18 25 / 0.16); }
@keyframes dot-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.25); }
}

.crm__thread {
  padding: clamp(0.8rem, 2vw, 1.3rem);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  justify-content: flex-end;
  background: var(--night-3);
}

/* ---- gramática de chat compartilhada (hero + capítulos) ---- */
.msg {
  max-width: 84%;
  margin: 0;
  padding: 0.52rem 0.8rem;
  border-radius: 14px;
  font-size: 0.8rem;
  line-height: 1.45;
}
.msg--in { align-self: flex-start; background: var(--night); border: var(--hair) solid var(--rule-soft); border-bottom-left-radius: 4px; }
.msg--out { align-self: flex-end; background: var(--accent-deep); border-bottom-right-radius: 4px; }
.msg--sys {
  align-self: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: var(--hair) solid var(--rule-soft);
  background: var(--night);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}
.msg--call {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  border: var(--hair) solid var(--wa-deep);
  background: var(--night);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: var(--ink-2);
}
.msg--li { display: inline-flex; align-items: center; gap: 0.5rem; }
.lik {
  flex: none;
  width: 18px; height: 18px;
  border-radius: 4px;
  background: var(--accent-deep);
  color: var(--accent-hi);
  display: inline-grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
}
.bubble__meta { align-self: flex-end; margin: 0; font-family: var(--font-mono); font-size: 0.62rem; color: var(--ink-3); }

/* digitando… */
.msg--typing { display: inline-flex; gap: 4px; align-items: center; align-self: flex-end; background: var(--accent-deep); border-bottom-right-radius: 4px; padding-block: 0.62rem; }
.msg--typing i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink-2);
  animation: typing-hop 1.1s var(--ease-in-out) infinite;
  animation-delay: calc(var(--ti, 0) * 140ms);
}
.msg--typing i:nth-child(2) { --ti: 1; }
.msg--typing i:nth-child(3) { --ti: 2; }
@keyframes typing-hop {
  0%, 60%, 100% { transform: translate3d(0, 0, 0); opacity: 0.5; }
  30%           { transform: translate3d(0, -3px, 0); opacity: 1; }
}

/* gravando áudio */
.msg--rec {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--accent-deep);
  border-bottom-right-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  color: var(--ink-2);
}
.rec__dot {
  width: 8px; height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--down);
  animation: rec-blink 1.1s steps(2, jump-none) infinite;
}
@keyframes rec-blink { 50% { opacity: 0.25; } }
.rec__bars { display: inline-flex; align-items: center; gap: 2px; }
.rec__bars i {
  width: 2.5px;
  height: 12px;
  border-radius: 2px;
  background: var(--ink-2);
  transform: scaleY(0.3);
  transform-origin: center;
  animation: rec-wave 900ms var(--ease-in-out) infinite alternate;
  animation-delay: calc(var(--bi, 0) * -90ms);
}
.rec__bars i:nth-child(2n)  { --bi: 1; }
.rec__bars i:nth-child(3n)  { --bi: 2; }
.rec__bars i:nth-child(4n)  { --bi: 3; }
.rec__bars i:nth-child(5n)  { --bi: 4; }
@keyframes rec-wave { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }

/* bolha de áudio enviada */
.msg--audio {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent-deep);
  border-bottom-right-radius: 4px;
  padding: 0.55rem 0.85rem;
}
.audio__play {
  width: 0; height: 0;
  flex: none;
  border-left: 9px solid var(--ink);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.audio__wave { display: inline-flex; align-items: center; gap: 2px; }
.audio__wave i {
  width: 2.5px;
  border-radius: 2px;
  background: var(--ink-2);
  height: 13px;
  transform: scaleY(var(--h, 0.5));
}
/* silhueta de fala fixa — desenhada por nth-child, sem loop (o áudio já foi enviado) */
.audio__wave i:nth-child(8n+1) { --h: 0.35; }
.audio__wave i:nth-child(8n+2) { --h: 0.7; }
.audio__wave i:nth-child(8n+3) { --h: 1; }
.audio__wave i:nth-child(8n+4) { --h: 0.55; }
.audio__wave i:nth-child(8n+5) { --h: 0.85; }
.audio__wave i:nth-child(8n+6) { --h: 0.4; }
.audio__wave i:nth-child(8n+7) { --h: 0.9; }
.audio__wave i:nth-child(8n)   { --h: 0.6; }
.audio__t { font-family: var(--font-mono); font-size: 0.62rem; color: var(--ink-2); white-space: nowrap; }

/* toolbar de ações sobre a bolha — overlay, não empurra layout */
.msgwrap { position: relative; align-self: flex-start; max-width: 84%; }
.msgwrap .msg { max-width: none; }
.acts {
  position: absolute;
  left: 0;
  top: -1.9rem;
  z-index: 2;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: var(--hair) solid var(--rule);
  background: var(--scrim-copy);
  box-shadow: var(--shadow-card);
  white-space: nowrap;
}
.acts i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
}
.acts i.is-on { background: var(--accent-deep); color: var(--ink); }
.acts.is-fixed { position: static; align-self: flex-end; margin-bottom: 0.3rem; }
.msgwrap:has(.acts.is-fixed) { align-self: flex-end; display: grid; justify-items: end; }

/* ---- coreografia da conversa (hero): o player escreve .on/.real ---- */
.js [data-convo] [data-step] {
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(0.985);
  transition: opacity 460ms var(--ease-out), transform 460ms var(--ease-out);
}
.js [data-convo] [data-step].on { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
/* ghost→real no mesmo lugar (zero layout shift) */
.msg-swap { display: grid; justify-items: start; }
.msg-swap--out { justify-items: end; }
.msg-swap > * { grid-area: 1 / 1; }
.js .msg-swap > :first-child { transition: opacity 300ms var(--ease-out); }
.js .msg-swap > :last-child { opacity: 0; transform: translate3d(0, 4px, 0); transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out); }
.js .msg-swap.real > :first-child { opacity: 0; }
.js .msg-swap.real > :last-child { opacity: 1; transform: translate3d(0, 0, 0); }
/* dentro do hero, a toolbar acende como passo próprio */
.js [data-convo] .acts { opacity: 0; transform: translate3d(0, 6px, 0); transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out); }
.js [data-convo] .acts.on { opacity: 1; transform: translate3d(0, 0, 0); }

/* HUD da placa: pausa + demotag (a base da placa está cortada pelo viewport) */
.stage__hud {
  position: absolute;
  right: 0.8rem;
  top: 3.4rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stage__pause {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: var(--hair) solid var(--rule);
  background: var(--scrim-copy);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  cursor: pointer;
  transition: color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.stage__pause:hover { color: var(--ink); border-color: var(--accent-dim); }
.demotag {
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: var(--hair) solid var(--rule);
  background: var(--scrim-copy);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  white-space: nowrap;
}

/* ============ A DOR (hoje × com o Nexus) ============ */
.void { background: var(--abyss); padding: var(--space-4xl) 0; position: relative; z-index: 25; }
.void__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.void__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-display-s);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: var(--space-sm) 0 0;
  overflow-wrap: anywhere;
  min-width: 0;
}
.void__title small {
  display: block;
  margin-top: 0.3em;
  font-size: 0.62em;
  font-weight: 700;
  color: var(--ink-2);
}
.void__pairs { display: grid; }
.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-top: var(--hair) solid var(--rule-soft);
}
.pair:last-child { border-bottom: var(--hair) solid var(--rule-soft); }
.pair p { margin: 0; font-size: var(--text-sm); line-height: 1.55; }
.pair__now { color: var(--ink-3); }
.pair__now::before,
.pair__fix::before {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.pair__now::before { content: "HOJE"; color: var(--ink-3); }
.pair__fix::before { content: "COM O NEXUS"; color: var(--accent-hi); }
/* cada lado entra com vetor próprio (lei 5) */
.js .pair__now,
.js .pair__fix {
  opacity: 0;
  transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 130ms);
}
.js .pair__now { transform: translate3d(-22px, 0, 0); }
.js .pair__fix { transform: translate3d(22px, 0, 0); transition-delay: calc(var(--i, 0) * 130ms + 90ms); }
.js .in .pair__now,
.js .in .pair__fix { opacity: 1; transform: translate3d(0, 0, 0); }
.void__close {
  margin-top: var(--space-3xl);
  text-align: center;
}
.void__close .statement { max-width: 32ch; margin-inline: auto; }

/* ============ Capítulos de capacidade ============ */
.caps { padding: var(--space-4xl) 0 var(--space-3xl); }
.caps__head { max-width: 56rem; }
.cap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-top: var(--space-3xl);
}
.cap--flip .cap__txt { order: 2; }
.cap--flip .cap__fig { order: 1; }
.cap__k { color: var(--accent-hi); }
.cap__t {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: var(--space-xs) 0 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
  min-width: 0;
}
.cap__txt p:not(.cap__k) { margin: var(--space-md) 0 0; color: var(--ink-2); font-size: var(--text-sm); line-height: 1.65; max-width: 46ch; }
.js .cap__k, .js .cap__t, .js .cap__txt p:not(.cap__k) {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity var(--dur-scene) var(--ease-out), transform var(--dur-scene) var(--ease-out);
}
.js .cap__t { transition-delay: 90ms; }
.js .cap__txt p:not(.cap__k) { transition-delay: 170ms; }
.js .cap.in .cap__k, .js .cap.in .cap__t, .js .cap.in .cap__txt p:not(.cap__k) { opacity: 1; transform: translate3d(0, 0, 0); }

.cap__fig { margin: 0; position: relative; }

/* composições ilustrativas — mesma chapa da família */
.democomp {
  position: relative;
  border-radius: var(--radius-lg);
  border: var(--hair) solid var(--edge-hair);
  background: linear-gradient(165deg, var(--night-2) 0%, var(--night-3) 100%);
  box-shadow: var(--shadow-card);
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem) clamp(3rem, 5vw, 3.4rem);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 20rem;
  justify-content: center;
}
.js .democomp {
  opacity: 0;
  transform: translate3d(0, 30px, 0) scale(0.985);
  filter: blur(12px);
  transition: opacity 780ms var(--ease-out) 140ms,
              transform 780ms var(--ease-out) 140ms,
              filter 780ms var(--ease-out) 140ms;
}
.js .cap.in .democomp { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
.democomp .demotag { position: absolute; right: 5%; bottom: 6%; }
.js .democomp > * {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
  transition-delay: calc(300ms + var(--i, 0) * 150ms);
}
.js .democomp > .demotag { transition-delay: 300ms; }
.js .cap.in .democomp > * { opacity: 1; transform: translate3d(0, 0, 0); }

/* os loops internos (barras, pontos) só rodam com a cena em cena */
.democomp .rec__bars i,
.democomp .rec__dot,
.crm .rec__bars i,
.crm .rec__dot { animation-play-state: paused; }
.cap.in .democomp .rec__bars i,
.cap.in .democomp .rec__dot,
.is-lit .crm .rec__bars i,
.is-lit .crm .rec__dot { animation-play-state: running; }

.chipk {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: var(--hair) solid var(--rule-soft);
  background: var(--night);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: var(--ink-2);
}
.chipk.is-on { border-color: var(--accent-dim); color: var(--ink); box-shadow: 0 0 0 1px oklch(58% 0.215 262 / 0.16); }
.comp-voice__row { margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; align-self: flex-start; }

/* C3 · discador */
.comp-call { align-items: center; }
.call {
  width: min(88%, 19rem);
  border-radius: var(--radius);
  border: var(--hair) solid var(--rule-soft);
  background: var(--night);
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.7rem;
}
.call__head { display: flex; align-items: center; gap: 0.6rem; }
.call__head b { display: block; font-size: 0.82rem; }
.call__head span { display: block; font-family: var(--font-mono); font-size: 0.64rem; color: var(--ink-3); }
.call__states { position: relative; height: 1.3rem; }
.call__state {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  opacity: 0;
  animation: call-cycle 7.5s var(--ease-in-out) infinite;
  animation-delay: calc(var(--s) * 2.5s);
  animation-play-state: paused;
}
.cap.in .call__state { animation-play-state: running; }
/* 3 estados × 2.5s: crossfade curto, nada pisca (lei 2) */
@keyframes call-cycle {
  0%      { opacity: 0; transform: translate3d(0, 4px, 0); }
  4%, 30% { opacity: 1; transform: translate3d(0, 0, 0); }
  34%     { opacity: 0; transform: translate3d(0, -4px, 0); }
  100%    { opacity: 0; }
}
.call__row { display: flex; justify-content: center; }
.call__btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.call__btn--end { background: var(--down); }
.call__btn--end::before {
  content: "";
  width: 16px; height: 6px;
  border-radius: 3px;
  background: var(--ink);
}
.call__log {
  width: min(88%, 19rem);
  border-radius: var(--radius);
  border: var(--hair) solid var(--rule-soft);
  background: var(--night);
  padding: 0.55rem 0.9rem;
  display: grid;
}
.call__log p {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: baseline;
  padding: 0.4rem 0;
  font-size: 0.72rem;
}
.call__log p + p { border-top: var(--hair) solid var(--rule-soft); }
.call__log span { font-family: var(--font-mono); font-size: 0.62rem; color: var(--ink-3); }
.call__log b { font-weight: 600; }

/* C4 · frota de números */
.fleet {
  width: min(94%, 24rem);
  align-self: center;
  border-radius: var(--radius);
  border: var(--hair) solid var(--rule-soft);
  background: var(--night);
  padding: 0.5rem 0.9rem;
  display: grid;
}
.fleet__row {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0;
  font-size: 0.76rem;
}
.fleet__row + .fleet__row { border-top: var(--hair) solid var(--rule-soft); }
.fleet__row b { font-weight: 600; }
.fleet__row > span { font-family: var(--font-mono); font-size: 0.62rem; color: var(--ink-3); text-align: right; }
.fleet__row.is-warn > span { color: var(--ink-2); }
.fleet__switch {
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.fleet__hint { width: 100%; text-align: center; margin-top: 0.2rem; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.05em; color: var(--ink-3); }

/* comps de chat ocupam a largura como thread */
.comp-voice, .comp-acts, .comp-li { align-items: stretch; }
.comp-voice .msg, .comp-acts .msg, .comp-li .msg { max-width: min(88%, 24rem); }
.comp-acts .msgwrap { max-width: min(88%, 24rem); }

/* ============ Mini-cena orbital (--op escrito pelo JS; reversível por construção) ============ */
.orb { --op: 0; position: relative; background: var(--night-2); border-block: var(--hair) solid var(--rule-soft); padding: var(--space-4xl) 0; overflow: clip; }
.orb__head { text-align: center; max-width: 46rem; margin-inline: auto; }
.orb__head .lede { margin-inline: auto; }

.orb__scene {
  position: relative;
  width: min(56rem, 92vw);
  aspect-ratio: 1200 / 640;
  margin: var(--space-2xl) auto 0;
  font-size: clamp(0.6rem, 1vw, 0.86rem);
}
.orb__rails {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  opacity: calc(clamp(0, calc((var(--op) - 0.08) / 0.18), 1) * 0.9);
}
.orb__rails .rail { fill: none; stroke: var(--rule); stroke-width: 1.8; stroke-dasharray: 2.4 9; opacity: 0.9; }
.orb__rails .rail--near { stroke: oklch(38% 0.075 262); stroke-dasharray: 2.6 8; }
.orb__rails .comet {
  fill: none;
  stroke: var(--accent-hi);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 110 2280;
  opacity: 0;
  filter: drop-shadow(0 0 9px oklch(72% 0.155 262 / 0.6));
  animation: orb-comet 16s linear infinite;
  animation-play-state: paused;
  transition: opacity 700ms var(--ease-out);
}
.orb.is-live .comet { opacity: 0.9; animation-play-state: running; }
@keyframes orb-comet { to { stroke-dashoffset: -2390; } }

.orb__halo {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, var(--glow-core) 0%, var(--glow-mid) 16%, var(--glow-out) 56%);
  opacity: calc(clamp(0, calc((var(--op) - 0.3) / 0.25), 1) * 0.4);
}

.orb__spokes { position: absolute; inset: 0; pointer-events: none; }
.orb__spoke {
  --ws: clamp(0, calc((var(--op) - (0.18 + var(--i) * 0.04)) / 0.2), 1);
  position: absolute; left: 50%; top: 50%;
  width: var(--len); height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, oklch(52% 0.13 262 / 0.55), oklch(40% 0.08 262 / 0.22));
  transform-origin: left center;
  rotate: var(--ang);
  transform: scaleX(var(--ws));
}
.orb__pulse {
  position: absolute; left: 0; top: -1.5px;
  width: 15%; height: 5px; border-radius: 5px;
  background: var(--accent-hi);
  box-shadow: 0 0 8px oklch(72% 0.155 262 / 0.7);
  opacity: 0;
  animation: orb-flow 4.6s linear infinite;
  animation-delay: calc(var(--i) * -1.15s);
  animation-play-state: paused;
}
.orb.is-live .orb__pulse { animation-play-state: running; }
/* a luz viaja da peça pro CRM: chega, não sai */
@keyframes orb-flow {
  from { transform: translateX(566%); opacity: 0; }
  12%  { opacity: 1; }
  86%  { opacity: 1; }
  to   { transform: translateX(0); opacity: 0; }
}

.orb__core {
  --wc: clamp(0, calc((var(--op) - 0.12) / 0.35), 1);
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  width: 17%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, var(--accent-deep) 0%, var(--night-2) 52%, var(--night) 100%);
  transform: scale(calc(0.74 + var(--wc) * 0.26));
  will-change: transform;
}
.orb__core::before, .orb__core::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.orb__core::before { border: var(--hair) solid var(--rule); }
.orb__core::after {
  border: var(--hair) solid var(--edge-plate);
  box-shadow: var(--shadow-plate), 0 0 70px -10px oklch(58% 0.215 262 / 0.6);
  opacity: var(--wc);
}
.orb__mark { position: relative; width: 72%; height: 72%; z-index: 1; rotate: calc((1 - var(--wc)) * -10deg); opacity: calc(0.2 + var(--wc) * 0.8); }
.orb__mark rect { fill: var(--accent-hi); }
.orb__mark .is-deep { fill: var(--accent-dim); }
.orb__sun {
  position: absolute; left: 50%; top: 68%; translate: -50% 0;
  width: max-content; max-width: 16em; margin: 0; text-align: center;
  opacity: clamp(0, calc((var(--op) - 0.35) * 4), 1);
}
.orb__sun b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.04em; letter-spacing: -0.01em; }
.orb__sun span { display: block; margin-top: 0.18em; font-size: 0.82em; color: var(--ink-3); }

.orb__node {
  --w: clamp(0, calc((var(--op) - (0.2 + var(--i) * 0.05)) / 0.24), 1);
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
  width: max-content;
  max-width: 14.5em;
  padding: 0.62em 0.85em;
  border-radius: 10px;
  border: var(--hair) solid var(--rule);
  background: var(--scrim-panel);
  box-shadow: var(--shadow-card);
  transform: translate3d(0, calc((1 - var(--w)) * 1.6em), 0) scale(calc(0.9 + var(--w) * 0.1));
  opacity: calc(var(--w) * 0.75 + 0.0);
  will-change: transform;
}
.orb__node b { display: flex; align-items: center; gap: 0.45em; font-family: var(--font-display); font-weight: 700; font-size: 0.98em; letter-spacing: -0.01em; }
.orb__node span { display: block; margin-top: 0.22em; font-size: 0.82em; color: var(--ink-3); line-height: 1.4; }
/* o nó do produto atual crava aceso: chega junto, mas termina em destaque */
.orb__node--nexus {
  --w: clamp(0, calc((var(--op) - 0.2) / 0.24), 1);
  --ig: clamp(0, calc((var(--op) - 0.5) / 0.15), 1);
  border-color: oklch(45% 0.09 262 / calc(0.5 + var(--ig) * 0.5));
  box-shadow: var(--shadow-card), 0 0 calc(var(--ig) * 34px) oklch(58% 0.215 262 / 0.25);
  opacity: calc(var(--w) * 0.8 + var(--ig) * 0.2);
}
.orb__node--nexus b { color: var(--accent-hi); }

.orb__verdict { text-align: center; max-width: 46rem; margin: var(--space-2xl) auto 0; }
.orb__t {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.orb__p { margin: var(--space-sm) auto 0; max-width: 40rem; color: var(--ink-2); font-size: 0.98rem; line-height: 1.55; }
.orb__cta {
  margin-top: var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--accent-hi);
  text-decoration: none;
}
.orb__cta span { transition: translate 200ms var(--ease-out); }
.orb__cta:hover span, .orb__cta:focus-visible span { translate: 3px 0; }
.js .orb__verdict > * {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity var(--dur-scene) var(--ease-out), transform var(--dur-scene) var(--ease-out);
}
.js .orb__verdict > .orb__p { transition-delay: 90ms; }
.js .orb__verdict > .orb__cta { transition-delay: 180ms; }
.js .orb__verdict.in > * { opacity: 1; transform: translate3d(0, 0, 0); }

/* sem JS: cena assentada */
html:not(.js) .orb { --op: 1; }

/* ============ FAQ — lâminas dark→light (lei 6) ============ */
.light {
  position: relative;
  --blade-zone: clamp(5rem, 13vw, 12rem);
  padding-top: var(--blade-zone);
}
.light__blades {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: var(--blade-zone);
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.6fr 1.15fr 1fr;
  gap: clamp(0.5rem, 1.2vw, 1.25rem);
  padding-inline: var(--gutter);
  pointer-events: none;
}
.blade {
  align-self: end;
  height: 78%;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--paper);
  box-shadow: var(--shadow-light);
  transform: translate3d(0, calc((1 - var(--p, 0)) * (100% + var(--b, 0) * 16px)), 0) scaleY(calc(0.7 + var(--p, 0) * 0.3));
  transform-origin: bottom;
  opacity: calc(0.25 + var(--p, 0) * 0.75);
}
.blade--core { height: 100%; }
.no-js .blade { transform: none; opacity: 1; }

.light__panel {
  position: relative;
  background: var(--paper);
  color: var(--ink-dark);
  clip-path: inset(0 calc((1 - var(--p, 0)) * 6%) 0 calc((1 - var(--p, 0)) * 6%) round calc((1 - var(--p, 0)) * 26px) calc((1 - var(--p, 0)) * 26px) 0 0);
}
.no-js .light__panel { clip-path: none; }
.light__in {
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.light__k { color: var(--ink-dark-2); }
.light__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-display-s);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: var(--space-sm) 0 0;
  color: var(--ink-dark);
  overflow-wrap: anywhere;
  min-width: 0;
}
/* título entra linha a linha por NITIDEZ, não por fade */
.js .light__title .tline {
  display: block;
  opacity: 0;
  filter: blur(14px);
  transform: translate3d(0, 6px, 0);
  transition: opacity 720ms var(--ease-out), filter 720ms var(--ease-out), transform 720ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 240ms);
}
.js .light.in .light__title .tline { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0); }
.light__note { margin: var(--space-lg) 0 0; max-width: 36ch; color: var(--ink-dark-2); font-size: var(--text-sm); }

.qa { display: grid; gap: var(--space-xs); }
.qa details {
  border: var(--hair) solid var(--rule-light);
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: 0 var(--space-md);
  transition: border-color var(--dur-short) var(--ease-out);
}
.js .qa details {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out), border-color var(--dur-short) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js .light.in .qa details { opacity: 1; transform: translate3d(0, 0, 0); }
.qa details:hover { border-color: var(--ink-dark-2); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--ink-dark);
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__x { position: relative; width: 14px; height: 14px; flex: none; }
.qa__x::before,
.qa__x::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-dark);
  transition: transform var(--dur-short) var(--ease-out);
}
.qa__x::after { transform: rotate(90deg); }
.qa details[open] .qa__x::after { transform: rotate(0deg); }
.qa details p { margin: 0 0 var(--space-md); color: var(--ink-dark-2); font-size: var(--text-sm); max-width: 62ch; }

/* ============ CTA final ============ */
.final {
  position: relative;
  isolation: isolate;
  padding: clamp(4.5rem, 11vw, 9rem) 0 clamp(4rem, 9vw, 7rem);
  text-align: center;
  overflow: clip;
}
.final .field { z-index: -2; }
.final__bloom {
  position: absolute;
  left: 50%; top: -8%;
  width: min(120%, 70rem);
  aspect-ratio: 2 / 1;
  translate: -50% 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(50% 60% at 50% 40%, var(--glow-mid) 0%, var(--glow-out) 70%);
  opacity: 0.65;
}
.final .statement { max-width: 26ch; margin-inline: auto; }
.final .statement small {
  display: block;
  margin-top: 0.25em;
  font-size: 0.66em;
  font-weight: 700;
  color: var(--ink-2);
}
.final__cta {
  margin-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}
.final__price {
  margin: var(--space-xl) auto 0;
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border: var(--hair) dashed var(--rule);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.final__price b { color: var(--ink-2); font-weight: 600; }
.js [data-cue] > .tech,
.js [data-cue] > .h2,
.js [data-cue] > .void__title,
.js [data-cue] > .lede,
.js [data-cue] > .statement,
.js [data-cue] > .final__cta,
.js [data-cue] > .final__price {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity var(--dur-scene) var(--ease-out), transform var(--dur-scene) var(--ease-out);
}
.js [data-cue] > .h2,
.js [data-cue] > .void__title { transition-delay: 80ms; }
.js [data-cue] > .lede { transition-delay: 160ms; }
.js [data-cue] > .statement { transition-delay: 60ms; }
.js [data-cue] > .final__cta { transition-delay: 200ms; }
.js [data-cue] > .final__price { transition-delay: 300ms; }
.js [data-cue].in > .tech,
.js [data-cue].in > .h2,
.js [data-cue].in > .void__title,
.js [data-cue].in > .lede,
.js [data-cue].in > .statement,
.js [data-cue].in > .final__cta,
.js [data-cue].in > .final__price { opacity: 1; transform: translate3d(0, 0, 0); }

/* ============ Rodapé ============ */
.foot { border-top: var(--hair) solid var(--rule-soft); padding: var(--space-2xl) 0 var(--space-xl); }
.foot__statement {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 26ch;
  overflow-wrap: anywhere;
}
.foot__cols {
  margin-top: var(--space-2xl);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: var(--space-xl) var(--space-lg);
}
.foot__cols nav { display: grid; gap: var(--space-xs); align-content: start; }
.foot__cols .tech { margin-bottom: var(--space-2xs); }
.foot__cols a,
.foot__cols button {
  justify-self: start;
  padding: 0.15rem 0;
  background: none;
  border: 0;
  font-size: var(--text-sm);
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--dur-micro) var(--ease-out);
}
.foot__cols a:hover,
.foot__cols button:hover { color: var(--ink); }
.foot__cols a[aria-current="page"] { color: var(--accent-hi); }
.foot__meta {
  margin-top: var(--space-2xl);
  padding-top: var(--space-md);
  border-top: var(--hair) solid var(--rule-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--ink-3);
}

/* ============ Modal de agendamento ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: clamp(0rem, 2vw, 1.5rem);
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: oklch(8% 0.02 262 / 0.72);
  backdrop-filter: blur(6px);
  border: 0;
  padding: 0;
  cursor: pointer;
}
/* largura é o que decide o layout do widget de booking do GHL: abaixo de ~1000px de
   iframe ele empilha tudo numa coluna só (logo + meta + calendário + horários + form)
   e o botão "Agendar reunião" vai parar a três telas de scroll. Acima disso ele abre
   em três colunas e a reunião fecha sem rolar. Medido no ar em 2026-08-19 15:52 BRT. */
.modal__panel {
  position: relative;
  width: min(78rem, 100%);
  height: min(52rem, 100%);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-plate);
  overflow: hidden;
}
.js .modal:not([hidden]) .modal__panel { animation: modal-in 300ms var(--ease-out); }
@keyframes modal-in {
  from { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.985); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: var(--hair) solid var(--rule-light);
  flex: none;
}
.modal__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  letter-spacing: -0.01em;
}
.modal__close {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: var(--hair) solid var(--rule-light);
  border-radius: 999px;
  background: none;
  cursor: pointer;
  transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.modal__close:hover { background: var(--paper-2); border-color: var(--ink-dark-2); }
.modal__close svg { width: 14px; height: 14px; fill: none; stroke: var(--ink-dark); stroke-width: 1.8; stroke-linecap: round; }
.modal__body {
  position: relative;
  flex: 1;
  min-height: 0;
  background: var(--paper);
  /* Um scroll só: o de dentro do widget. O form_embed.js mede o conteúdo e escreve a
     altura no iframe (775px num modal de 740px, medido no ar em 2026-08-19 18:26 BRT) —
     aí o corpo do modal também passa a rolar e as duas barras brigam pela roda do mouse:
     o conteúdo aparece deslocado, com faixa vazia no topo. Travamos o iframe na altura do
     modal e deixamos o widget rolar por dentro (ele já vem com scrolling="yes").
     O !important é necessário: a altura do GHL vem inline.
     Isto só é seguro por causa da rede de segurança em js/main.js, que revela o iframe
     quando o handshake do resizer se perde — sem ela, altura nossa por cima já deixou o
     modal branco uma vez. */
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}
.modal__body iframe { width: 100%; height: 100% !important; min-height: 100%; border: 0; }
.modal__wait {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: var(--space-sm);
  justify-items: center;
  background: var(--paper);
  color: var(--ink-dark-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  transition: opacity var(--dur-long) var(--ease-out), visibility 0s linear var(--dur-long);
}
.modal__wait.is-off { opacity: 0; visibility: hidden; }
.modal__wait::before {
  content: "";
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--rule-light);
  border-top-color: var(--accent);
  animation: wait-spin 800ms linear infinite;
}
@keyframes wait-spin { to { transform: rotate(360deg); } }

/* ============ Responsivo ============ */
@media (max-width: 68rem) {
  .void__grid { grid-template-columns: 1fr; }
  .light__in { grid-template-columns: 1fr; }
  .cap { grid-template-columns: 1fr; gap: var(--space-lg); align-items: start; }
  .cap--flip .cap__txt { order: 1; }
  .cap--flip .cap__fig { order: 2; }
}

@media (max-width: 60rem) {
  .nav__mid { display: none; }
  .nav__login { display: none; }
  .nav__burger { display: grid; }
  .mega { display: none !important; }
  .brand__lockup { height: 30px; }

  .hero { padding-top: var(--space-xl); }
  .stage { width: min(50rem, 100vw - 2 * var(--gutter)); margin-bottom: calc(clamp(3rem, 9vh, 6rem) * -1); }
  .crm__body { grid-template-columns: 1fr; min-height: 21rem; }
  .crm__side { display: none; }
  .crm__status { display: none; }
  .stage__hud { top: 3.1rem; right: 0.6rem; }

  .pair { grid-template-columns: 1fr; gap: var(--space-sm); }
  .js .pair__now, .js .pair__fix { transform: translate3d(0, 14px, 0); }

  /* a órbita vira narrativa vertical: nó a nó, com o núcleo no meio */
  .orb__scene {
    width: auto; max-width: 34rem; aspect-ratio: auto;
    display: grid; gap: 0.6rem;
    margin: var(--space-lg) auto 0;
    font-size: 0.82rem;
  }
  .orb__rails, .orb__halo, .orb__spokes { display: none; }
  .orb__core { position: static; translate: none; transform: none; width: 4.6rem; margin: var(--space-sm) auto 0; order: 2; }
  .orb__sun { position: static; translate: none; opacity: 1; margin: 0.3rem auto 0; max-width: none; order: 3; }
  .orb__node {
    --w: 1;
    position: static; translate: none; max-width: none; width: auto;
    transform: none;
    opacity: 1;
  }
  .orb__node--nexus { order: 1; box-shadow: var(--shadow-card), 0 0 24px oklch(58% 0.215 262 / 0.2); }
  .orb__node:not(.orb__node--nexus) { order: 4; }
  .js .orb__node {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
    transition-delay: calc(var(--i) * 90ms);
  }
  .js .orb.in-mobile .orb__node { opacity: 1; transform: none; }
  .orb__verdict { text-align: left; max-width: 34rem; }

  .light__blades { grid-template-columns: 1fr 1.5fr 1fr; }
  .blade:nth-child(4), .blade:nth-child(5) { display: none; }

}

/* de laptop pequeno pra baixo o modal vira tela cheia: cada pixel de largura conta pro
   widget do GHL não empilhar. */
@media (max-width: 72rem) {
  .modal { padding: 0; }
  .modal__panel { width: 100%; height: 100%; border-radius: 0; }
}

@media (max-width: 30rem) {
  .hero__cta .btn, .final__cta .btn { width: 100%; }
  .foot__meta { align-items: flex-start; }
  .msg { max-width: 92%; }
  .acts i { padding-inline: 0.38rem; }
  .stage__pause { display: none; } /* no toque, a demonstração pausa junto com o viewport */
}

/* ============ Reduced motion — recompõe, não esconde ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 120ms !important;
    transition-delay: 0ms !important;
  }
  .js .line { transform: none !important; }
  .js .hero__pill, .js .hero__lede, .js .hero__cta,
  .js .stage__frame, .stage__glow,
  .js .pair__now, .js .pair__fix,
  .js .cap__k, .js .cap__t, .js .cap__txt p:not(.cap__k),
  .js .democomp, .js .democomp > *,
  .js .qa details,
  .js .orb__verdict > *,
  .js [data-cue] > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  /* a conversa vira composição final estática, tudo legível */
  .js [data-convo] [data-step] { opacity: 1 !important; transform: none !important; }
  .js .msg-swap > :first-child { opacity: 0 !important; }
  .js .msg-swap > :last-child { opacity: 1 !important; transform: none !important; }
  .js [data-convo] .acts { opacity: 1 !important; transform: none !important; }
  .stage { transform: none !important; }
  .stage__pause { display: none; }
  .hero__halo { animation: none; opacity: 0.85; }
  .dot--live { animation: none; }
  .rec__dot, .rec__bars i { animation: none; }
  .msg--typing i { animation: none; opacity: 0.7; }
  .call__state { animation: none; opacity: 0; }
  .call__state[style*="--s:2"] { opacity: 1; }
  .orb { --op: 1 !important; }
  .orb__pulse, .orb__rails .comet { animation: none; opacity: 0; }
  .light__title .tline { opacity: 1 !important; filter: none !important; transform: none !important; }
  .blade { transform: none !important; opacity: 1 !important; }
  .light__panel { clip-path: none !important; }
}
