/* Conexão Franca — efeitos compartilhados (rodada 3, agente EFEITOS).
   Tudo aqui é aprimoramento progressivo: sem JS nada fica escondido nem quebrado. Original, sem bibliotecas.
   Prefixos: .ic* (ícones), .fx-* (efeitos), .btn-pill* (botão-pílula), .pilha* (seções empilhadas). Variáveis: --fx-*, --ic-*, --btn-pill-*, --pilha-p.
   Convivência: .fx-card usa o ::after e .fx-luz usa o ::before do próprio elemento; .pilha__item usa o ::after (véu) só enquanto recua.

   ---------- GUIA RÁPIDO (markup) ----------
   1) SEÇÕES EMPILHADAS (a próxima cobre a anterior; a coberta recua e escurece):
        <div class="pilha">
          <section class="pilha__item sec sec--dark">...</section>
          <section class="pilha__item sec">...</section>
          <section class="pilha__item sec sec--dark" data-sem-pilha>...</section>   <- este não cola (rola normal)
        </div>
      Regras: filhos DIRETOS do .pilha; nenhum ancestral pode ter overflow hidden/auto/scroll (use overflow: clip); o 1º item não ganha
      cantos arredondados; os demais ganham --r-xl (2.5rem) no topo e sombra para cima. Itens mais altos que a tela rolam até o fim antes
      de colar (efeitos.js calcula o top negativo); acima de 2,5 telas viram normais (classe .fx-livre). O JS expõe --pilha-p (0 a 1) em
      cada item: use como quiser (ex.: opacity: calc(1 - var(--pilha-p))). Ajustes: --fx-pilha-escala (.04), --fx-pilha-veu-max (.18),
      --fx-pilha-veu (cor do véu; padrão azul-marinho), --fx-pilha-fundo (cor que aparece nas bordas do recuo; padrão var(--bg)).
      Padrão CLARO (rodada de reversão visual): páginas claras, só planos/CTA/rodapé escuros; tudo abaixo vale nos dois fundos.
   2) REVEAL: <div class="reveal" data-reveal="subir|esquerda|direita|escala|desfoque" data-delay="1..6">; num contêiner,
      data-stagger="80" (ms entre colunas da mesma linha) escalona os .reveal filhos sozinho. main.js põe .is-in; aqui só o visual.
   3) CURSOR/ÍMÃ (só mouse): automático; <html data-sem-cursor> desliga. data-cursor="Ver" num cartão/link mostra o rótulo no anel;
      data-cursor="off" some o anel naquela área; data-magnet (ou data-magnet="0.3") em botões.
   4) UTILITÁRIOS OPCIONAIS: .fx-brilho-borda (borda em gradiente que gira; --fx-bb-fundo = cor do miolo) e .fx-texto-grad.
   5) TRANSIÇÃO ENTRE PÁGINAS e [data-vt]: ver transicoes.css. */

/* ---------- registro de variáveis animáveis ---------- */
@property --fx-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --pilha-p { syntax: "<number>"; inherits: false; initial-value: 0; }

/* ---------- tokens de movimento ---------- */
:root {
  --ease: cubic-bezier(.65, 0, .2, 1);
  --ease-varre: cubic-bezier(.7, 0, .2, 1);
  --mola: cubic-bezier(.3, 1.4, .5, 1);
  --ease-suave: cubic-bezier(.22, 1, .36, 1);
}

/* translate/scale dos reveals laterais nunca criam rolagem horizontal (clip não vira contêiner de rolagem) */
html { overflow-x: clip; }

/* ---------- ícones autorais (sprite assets/img/icons.svg) ---------- */
.ic {
  width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.2em;
  --ic-acento: var(--fx-ic-acento, var(--accent));
}
.ic--lg { width: 2em; height: 2em; }
.ic--xl { width: 3em; height: 3em; }
/* em fundo escuro o acento vira âmbar; dentro de botão verde ele acompanha o texto */
.sec--dark { --fx-ic-acento: var(--warm); }
.btn--primary { --fx-ic-acento: currentColor; }
/* a seta do sprite aponta para a direita; gira por CSS */
.ic--esq { transform: rotate(180deg); }
.ic--cima { transform: rotate(-90deg); }
.ic--baixo { transform: rotate(90deg); }

/* ---------- botão-pílula: [data-pill] ---------- */
.btn-pill {
  --btn-pill-chip: 40px;
  --btn-pill-varre: var(--ink);
  --btn-pill-txt-h: #fff;
  --btn-pill-chip-bg: var(--ink);
  --btn-pill-chip-fg: #fff;
  --btn-pill-chip-bg-h: #fff;
  --btn-pill-chip-fg-h: var(--ink);
  --btn-pill-chip-acento: currentColor;
  --btn-pill-foco: var(--accent);
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 999px; padding: 0 6px 0 24px; gap: 14px;
  -webkit-tap-highlight-color: transparent;
  transition: color .3s .12s, background-color .3s, border-color .3s, transform .3s var(--mola), box-shadow .3s, outline-offset .2s, outline-color .2s;
}
.btn-pill.btn--sm { --btn-pill-chip: 32px; padding: 0 5px 0 18px; gap: 10px; }
.btn-pill.btn--block { justify-content: space-between; padding-left: calc(var(--btn-pill-chip) + 6px); }
.btn-pill.btn--block.btn--sm { padding-left: calc(var(--btn-pill-chip) + 5px); }
.btn-pill.btn--block .btn-pill__txt { flex: 1 1 auto; text-align: center; }

.btn-pill.btn--primary { --btn-pill-varre: var(--accent-ink); --btn-pill-chip-bg: #fff; --btn-pill-chip-fg: var(--accent-ink); --btn-pill-chip-bg-h: #fff; --btn-pill-chip-fg-h: var(--accent-ink); --btn-pill-chip-acento: var(--accent); }
.btn-pill.btn--dark { --btn-pill-varre: var(--accent); --btn-pill-chip-bg: #fff; --btn-pill-chip-fg: var(--dark); --btn-pill-chip-bg-h: #fff; --btn-pill-chip-fg-h: var(--accent-ink); }
.btn-pill.btn--ghost { --btn-pill-varre: var(--ink); --btn-pill-chip-bg: var(--ink); --btn-pill-chip-fg: #fff; --btn-pill-chip-bg-h: #fff; --btn-pill-chip-fg-h: var(--ink); }
.sec--dark .btn-pill { --btn-pill-foco: var(--warm); }
.sec--dark .btn-pill.btn--ghost { --btn-pill-varre: #fff; --btn-pill-txt-h: var(--dark); --btn-pill-chip-bg: rgba(255, 255, 255, .14); --btn-pill-chip-fg: var(--on-dark); --btn-pill-chip-bg-h: var(--dark); --btn-pill-chip-fg-h: #fff; }

/* o fundo base NÃO muda no hover: quem pinta é o varrido */
.btn-pill.btn--primary:hover { background: var(--accent); }
.btn-pill.btn--dark:hover { background: var(--dark); }
.btn-pill.btn--ghost:hover, .sec--dark .btn-pill.btn--ghost:hover { background: transparent; }

.btn-pill__fundo {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: var(--btn-pill-varre); transform: scaleX(0); transform-origin: left center;
  transition: transform .6s var(--ease-varre);
}
.btn-pill__txt { position: relative; display: inline-grid; min-width: 0; }
.btn-pill__l1, .btn-pill__l2 { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: transform .45s var(--ease), opacity .3s; }
.btn-pill__l2 { gap: 8px; white-space: nowrap; opacity: 0; transform: translateY(120%); pointer-events: none; }
.btn-pill__ok { width: 1.1em; height: 1.1em; flex: none; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.btn-pill.is-ok .btn-pill__l1 { opacity: 0; transform: translateY(-120%); }
.btn-pill.is-ok .btn-pill__l2 { opacity: 1; transform: none; }
.btn-pill.is-ok .btn-pill__ok { animation: fx-desenha .45s .12s ease-out forwards; }
@keyframes fx-desenha { to { stroke-dashoffset: 0; } }

.btn-pill__chip {
  position: relative; display: grid; place-items: center; flex: none; overflow: hidden;
  width: var(--btn-pill-chip); height: var(--btn-pill-chip); border-radius: 50%;
  background: var(--btn-pill-chip-bg); color: var(--btn-pill-chip-fg);
  --fx-ic-acento: var(--btn-pill-chip-acento);
  transition: background-color .4s .1s, color .4s .1s, transform .35s var(--mola);
}
.btn-pill .btn-pill__chip .ic { grid-area: 1 / 1; width: 20px; height: 20px; vertical-align: baseline; transition: transform .6s var(--ease-varre); }
.btn-pill .btn-pill__chip .btn-pill__b { transform: translateX(-170%); }

/* ondulação no ponto do clique (efeitos.js cria o .btn-pill__onda no pointerdown; vem antes do texto, então fica por baixo dele) */
.btn-pill__onda {
  position: absolute; z-index: 0; left: 0; top: 0; border-radius: 50%; pointer-events: none;
  background: currentColor; opacity: .24; transform: translate(-50%, -50%) scale(0);
  animation: fx-onda .7s var(--ease-suave) forwards;
}
@keyframes fx-onda { 55% { opacity: .16; } to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

/* estados "acesos" (só em botão habilitado): foco por teclado, toque/clique (active) e, só com mouse, hover */
.btn-pill:where(:not([aria-disabled="true"], [disabled], :disabled)):focus-visible .btn-pill__fundo,
.btn-pill:where(:not([aria-disabled="true"], [disabled], :disabled)):active .btn-pill__fundo { transform: scaleX(1); }
.btn-pill:where(:not([aria-disabled="true"], [disabled], :disabled)):focus-visible,
.btn-pill:where(:not([aria-disabled="true"], [disabled], :disabled)):active { color: var(--btn-pill-txt-h); }
.btn-pill:where(:not([aria-disabled="true"], [disabled], :disabled)):focus-visible .btn-pill__chip,
.btn-pill:where(:not([aria-disabled="true"], [disabled], :disabled)):active .btn-pill__chip { background: var(--btn-pill-chip-bg-h); color: var(--btn-pill-chip-fg-h); }
.btn-pill:where(:not([aria-disabled="true"], [disabled], :disabled)):focus-visible .btn-pill__a,
.btn-pill:where(:not([aria-disabled="true"], [disabled], :disabled)):active .btn-pill__a { transform: translateX(170%); }
.btn-pill:where(:not([aria-disabled="true"], [disabled], :disabled)):focus-visible .btn-pill__b,
.btn-pill:where(:not([aria-disabled="true"], [disabled], :disabled)):active .btn-pill__b { transform: none; }
@media (hover: hover) {
  .btn-pill:where(:not([aria-disabled="true"], [disabled], :disabled)):hover .btn-pill__fundo { transform: scaleX(1); }
  .btn-pill:where(:not([aria-disabled="true"], [disabled], :disabled)):hover { color: var(--btn-pill-txt-h); }
  .btn-pill:where(:not([aria-disabled="true"], [disabled], :disabled)):hover .btn-pill__chip { background: var(--btn-pill-chip-bg-h); color: var(--btn-pill-chip-fg-h); }
  .btn-pill:where(:not([aria-disabled="true"], [disabled], :disabled)):hover .btn-pill__a { transform: translateX(170%); }
  .btn-pill:where(:not([aria-disabled="true"], [disabled], :disabled)):hover .btn-pill__b { transform: none; }
}
/* micro-compressão ao apertar: o botão afunda e o chip encolhe um pouco */
.btn-pill:where(:not([aria-disabled="true"], [disabled], :disabled)):active { transform: scale(.965); }
.btn-pill:where(:not([aria-disabled="true"], [disabled], :disabled)):active .btn-pill__chip { transform: scale(.88); }

/* foco por teclado: anel com respiro (segue o raio da pílula) */
.btn-pill:focus-visible { outline: 2px solid var(--btn-pill-foco); outline-offset: 5px; border-radius: 999px; }

/* desabilitado: parado, sem varrido nem ondulação */
.btn-pill:is([aria-disabled="true"], [disabled], :disabled) { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-pill:is([aria-disabled="true"], [disabled], :disabled) .btn-pill__fundo,
.btn-pill:is([aria-disabled="true"], [disabled], :disabled) .btn-pill__onda { display: none; }

/* ---------- título que "pinta" com a rolagem: [data-pinta] (efeitos.js liga a classe .fx-pinta-on) ---------- */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  [data-pinta].fx-pinta-on {
    --fx-p: 1;
    background-image: linear-gradient(90deg,
      var(--fx-pinta-para, var(--fx-pinta-final, currentColor)) calc(var(--fx-p) * 100%),
      var(--fx-pinta-de, #98a1b0) calc(var(--fx-p) * 100%));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
  }
  .sec--dark [data-pinta].fx-pinta-on { --fx-pinta-de: rgba(255, 255, 255, .26); }
}

/* ---------- cartão com borda que acende perto do mouse: .fx-card (+ --escuro) ---------- */
:where(.fx-card) { position: relative; }
.fx-card { --fx-card-cor: 11, 143, 106; transition: transform .35s var(--ease-suave), box-shadow .35s var(--ease-suave), border-color .25s; }
.fx-card--escuro { --fx-card-cor: 61, 219, 168; }
.fx-card::after {
  content: ""; position: absolute; inset: calc(-1 * var(--fx-card-borda, 1px)); border-radius: inherit; padding: 2px;
  pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(340px circle at var(--fx-gx, 50%) var(--fx-gy, 50%), rgba(var(--fx-card-cor), .62), rgba(var(--fx-card-cor), .14) 38%, transparent 66%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
@media (hover: hover) and (pointer: fine) {
  .fx-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px -18px rgba(13, 27, 42, .22); }
  .fx-card--escuro:hover { box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); }
  .fx-card:hover::after { opacity: 1; }
  /* o .reveal.is-in do base.css zera o transform com mais força: devolve o levantar do cartão */
  .js .reveal.is-in.fx-card:hover { transform: translateY(-3px); }
}

/* ---------- foco de luz que segue o mouse: .fx-luz ---------- */
:where(.fx-luz) { position: relative; }
.fx-luz { isolation: isolate; --fx-luz-cor: 31, 170, 120; --fx-luz-a1: .16; --fx-luz-a2: .06; }
.sec--dark .fx-luz { --fx-luz-cor: 61, 219, 168; --fx-luz-a1: .22; --fx-luz-a2: .08; }
.fx-luz::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .35s;
  background: radial-gradient(360px circle at var(--fx-x, 50%) var(--fx-y, 50%), rgba(var(--fx-luz-cor), var(--fx-luz-a1, .16)), rgba(var(--fx-luz-cor), var(--fx-luz-a2, .06)) 45%, transparent 72%);
}
@media (hover: hover) and (pointer: fine) { .fx-luz:hover::before { opacity: 1; } }

/* ---------- faixa que corre: .fx-marquee > .fx-marquee__trilho ---------- */
.fx-marquee {
  position: relative; overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.fx-marquee::-webkit-scrollbar { display: none; }
.fx-marquee__trilho { display: flex; align-items: center; width: max-content; list-style: none; margin: 0; padding: 0; }
.fx-marquee__trilho > * { flex: none; display: flex; align-items: center; gap: .6rem; margin-right: var(--fx-marquee-gap, 3rem); white-space: nowrap; }
.fx-marquee__trilho > a { text-decoration: none; }
/* só anima depois que o JS duplicou os itens (sem JS vira uma faixa rolável) */
.fx-marquee--pronto { overflow: hidden; }
.fx-marquee--pronto .fx-marquee__trilho { animation: fx-corre var(--fx-marquee-dur, 40s) linear infinite; will-change: transform; }
.fx-marquee--fora .fx-marquee__trilho { animation-play-state: paused; }
@media (hover: hover) { .fx-marquee--pronto:hover .fx-marquee__trilho { animation-play-state: paused; } }
.fx-marquee--pronto:focus-within .fx-marquee__trilho { animation-play-state: paused; }
.fx-marquee--inverso .fx-marquee__trilho { animation-direction: reverse; }
@keyframes fx-corre { to { transform: translateX(-50%); } }

/* ---------- selo "No ar" com ping: .fx-live ---------- */
.fx-live {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  font-family: inherit; font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-soft); border: 1px solid rgba(11, 143, 106, .3);
  --fx-live-cor: var(--accent);
}
.fx-live i { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--fx-live-cor); }
.fx-live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: fx-ping 1.6s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes fx-ping { 0% { transform: scale(1); opacity: .75; } 80%, 100% { transform: scale(2.1); opacity: 0; } }
.fx-live--escuro, .sec--dark .fx-live { color: #3ddba8; background: rgba(61, 219, 168, .12); border-color: rgba(61, 219, 168, .32); --fx-live-cor: #3ddba8; }
.fx-live--ambar { color: #8a5400; background: var(--warm-soft); border-color: rgba(242, 163, 58, .45); --fx-live-cor: var(--warm); }

/* ---------- fundo em grid com máscara: .fx-grid (cor via --fx-grid-cor, tamanho via --fx-grid-tam) ---------- */
.fx-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--fx-grid-cor, rgba(11, 143, 106, .06)) 1px, transparent 1px),
    linear-gradient(to bottom, var(--fx-grid-cor, rgba(11, 143, 106, .06)) 1px, transparent 1px);
  background-size: var(--fx-grid-tam, 46px) var(--fx-grid-tam, 46px);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 18%, #000 38%, transparent 82%);
  mask-image: radial-gradient(120% 90% at 50% 18%, #000 38%, transparent 82%);
}

/* ---------- revelar ao rolar: .reveal (main.js põe .is-in; efeitos.js escalona e garante que nada fique escondido) ----------
   Usa as propriedades individuais translate/scale/filter para NÃO brigar com o transform dos cartões (hover, inclinação). */
.js .reveal {
  --fx-rev-x: 0px; --fx-rev-y: 28px; --fx-rev-s: 1;
  opacity: 0; transform: none; translate: var(--fx-rev-x) var(--fx-rev-y); scale: var(--fx-rev-s);
  transition:
    opacity .8s var(--ease-suave), translate .8s var(--ease-suave), scale .8s var(--ease-suave), filter .8s var(--ease-suave),
    transform .35s var(--ease-suave), box-shadow .35s var(--ease-suave), border-color .3s, background-color .3s, color .3s;
  transition-delay: var(--fx-d, 0s), var(--fx-d, 0s), var(--fx-d, 0s), var(--fx-d, 0s), 0s, 0s, 0s, 0s, 0s;
}
.js .reveal[data-reveal="esquerda"] { --fx-rev-x: -44px; --fx-rev-y: 0px; }
.js .reveal[data-reveal="direita"] { --fx-rev-x: 44px; --fx-rev-y: 0px; }
.js .reveal[data-reveal="escala"] { --fx-rev-y: 0px; --fx-rev-s: .92; }
.js .reveal[data-reveal="desfoque"] { --fx-rev-y: 14px; filter: blur(12px); }
.js .reveal.is-in { opacity: 1; transform: none; translate: none; scale: none; filter: none; }
/* atrasos 1 a 6 (o base.css só tinha 1 a 3; aqui eles passam a vir da variável --fx-d, que o data-stagger também usa) */
.js .reveal[data-delay="1"] { --fx-d: .08s; }
.js .reveal[data-delay="2"] { --fx-d: .16s; }
.js .reveal[data-delay="3"] { --fx-d: .24s; }
.js .reveal[data-delay="4"] { --fx-d: .32s; }
.js .reveal[data-delay="5"] { --fx-d: .4s; }
.js .reveal[data-delay="6"] { --fx-d: .48s; }
.js .reveal[data-delay] { transition-delay: var(--fx-d, 0s), var(--fx-d, 0s), var(--fx-d, 0s), var(--fx-d, 0s), 0s, 0s, 0s, 0s, 0s; }
/* depois que terminou (efeitos.js marca .fx-feito) nenhum atraso sobra para hover e afins */
.js .reveal.fx-feito, .js .reveal.fx-feito[data-delay] { transition-delay: 0s; }
@media (max-width: 640px) {
  .js .reveal[data-reveal="esquerda"] { --fx-rev-x: -22px; }
  .js .reveal[data-reveal="direita"] { --fx-rev-x: 22px; }
}

/* ---------- seções empilhadas: .pilha > .pilha__item (markup no comentário do topo) ---------- */
.pilha { position: relative; background: var(--fx-pilha-fundo, var(--bg)); }
:where(.pilha__item) { background: var(--bg); }
.pilha__item { position: relative; transform-origin: 50% 0; overflow: clip; }
.pilha__item::after { content: none; }
/* a "cola" só liga depois que o JS mediu (top negativo para itens altos); sem JS as seções simplesmente rolam */
.pilha.fx-pilha-pronta > .pilha__item:not(.fx-livre) { position: sticky; top: 0; }
.pilha__item ~ .pilha__item {
  border-radius: var(--r-xl, 2.5rem) var(--r-xl, 2.5rem) 0 0;
  box-shadow: 0 -22px 56px -28px rgba(13, 27, 42, .24);
}
.pilha__item.sec--dark ~ .pilha__item.sec--dark { box-shadow: 0 -28px 64px -30px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08); }
/* recuo: a coberta diminui um pouco e escurece, conforme --pilha-p (0 a 1) */
.pilha__item.fx-recua { transform: scale(calc(1 - var(--pilha-p) * var(--fx-pilha-escala, .04))); will-change: transform; }
.pilha__item.fx-recua::after {
  content: ""; position: absolute; inset: 0; z-index: 50; border-radius: inherit; pointer-events: none;
  background: var(--fx-pilha-veu, #0d1b2a); opacity: calc(var(--pilha-p) * var(--fx-pilha-veu-max, .18));
}
/* item que não cola (alto demais ou data-sem-pilha): plano, sem cantos que revelem o fundo do contêiner */
.pilha__item.fx-livre { border-radius: 0; box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .pilha.fx-pilha-pronta > .pilha__item:not(.fx-livre) { position: relative; }
  .pilha__item, .pilha__item ~ .pilha__item { border-radius: 0; box-shadow: none; }
  .pilha__item.fx-recua { transform: none; will-change: auto; }
  .pilha__item.fx-recua::after { content: none; }
}

/* ---------- cursor customizado e ímã (só mouse; efeitos.js cria os elementos .fx-cur) ---------- */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  /* padrão (fundo claro): anel e ponto em --ink; sobre bloco escuro (.sec--dark, .ftr, [data-tema="escuro"]) o efeitos.js põe
     html[data-fx-cur-tema="escuro"] e eles viram claros. O fio de luz em volta mantém a leitura sobre molduras escuras dentro de seções claras. */
  html { --fx-cur-cor: var(--ink, #0d1b2a); --fx-cur-halo: rgba(255, 255, 255, .6); --fx-cur-vidro: rgba(13, 27, 42, .07); --fx-cur-vidro-2: rgba(13, 27, 42, .05); }
  html[data-fx-cur-tema="escuro"] { --fx-cur-cor: var(--on-dark, #eef2f6); --fx-cur-halo: rgba(13, 27, 42, .45); --fx-cur-vidro: rgba(255, 255, 255, .16); --fx-cur-vidro-2: rgba(255, 255, 255, .08); }
  .fx-cur { position: fixed; left: 0; top: 0; z-index: 2147483000; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .25s; will-change: transform; }
  .fx-cur--on { opacity: 1; }
  .fx-cur__anel {
    position: absolute; left: 0; top: 0; width: 34px; height: 34px; translate: -50% -50%; border-radius: 50%;
    border: 1.5px solid var(--fx-cur-cor); box-shadow: 0 0 0 1px var(--fx-cur-halo); display: grid; place-items: center; box-sizing: border-box;
    transition: width .4s var(--mola), height .4s var(--mola), background-color .3s, border-color .3s, box-shadow .3s, scale .25s var(--mola);
  }
  .fx-cur__ponto { position: absolute; left: 0; top: 0; width: 6px; height: 6px; translate: -50% -50%; border-radius: 50%; background: var(--fx-cur-cor); box-shadow: 0 0 0 1px var(--fx-cur-halo); transition: scale .25s var(--mola), background-color .3s; }
  .fx-cur__rot { font: 700 13px/1 var(--font); letter-spacing: .02em; color: #fff; opacity: 0; transition: opacity .2s; white-space: nowrap; }
  html[data-fx-cur="link"] .fx-cur__anel { width: 54px; height: 54px; background: var(--fx-cur-vidro); }
  html[data-fx-cur="card"] .fx-cur__anel { width: 62px; height: 62px; background: var(--fx-cur-vidro-2); }
  html[data-fx-cur="link"] .fx-cur__ponto, html[data-fx-cur="card"] .fx-cur__ponto, html[data-fx-cur="rotulo"] .fx-cur__ponto { scale: 0; }
  html[data-fx-cur="rotulo"] .fx-cur__anel { width: 88px; height: 88px; background: #07785a; border-color: transparent; box-shadow: 0 6px 18px rgba(7, 120, 90, .35); }
  html[data-fx-cur="rotulo"] .fx-cur__rot { opacity: 1; }
  html[data-fx-cur="campo"] .fx-cur { opacity: 0; }
  html.fx-cur-down .fx-cur__anel { scale: .8; }
  html.fx-cur-down .fx-cur__ponto { scale: 1.6; }
  /* só quem pede rótulo esconde a seta do sistema (o anel com o texto vira o ponteiro); links e campos mantêm pointer/text */
  html.fx-cur-ativo [data-cursor]:not([data-cursor="off"], [data-cursor="nenhum"]) { cursor: none; }
}

/* ---------- utilitário: borda em gradiente que gira devagar (.fx-brilho-borda; --fx-bb-fundo = cor do miolo) ---------- */
.fx-brilho-borda {
  --fx-bb-fundo: var(--surface); --fx-bb-w: 2px;
  --fx-bb-c1: var(--accent); --fx-bb-c2: var(--warm); --fx-bb-c3: #2bbf94;
  border: var(--fx-bb-w) solid transparent;
  background:
    linear-gradient(var(--fx-bb-fundo), var(--fx-bb-fundo)) padding-box,
    conic-gradient(from var(--fx-ang, 0deg), var(--fx-bb-c1), var(--fx-bb-c3), var(--fx-bb-c2), var(--fx-bb-c1)) border-box;
  background-origin: border-box;
  animation: fx-gira 7s linear infinite;
}
.sec--dark .fx-brilho-borda { --fx-bb-fundo: var(--dark-2); --fx-bb-c3: #3ddba8; }
@keyframes fx-gira { to { --fx-ang: 360deg; } }

/* ---------- utilitário: texto com gradiente esmeralda para âmbar que flui (.fx-texto-grad) ---------- */
.fx-texto-grad {
  --fx-tg-1: var(--accent-ink); --fx-tg-2: var(--accent); --fx-tg-3: #c9791a;
  background-image: linear-gradient(100deg, var(--fx-tg-1), var(--fx-tg-2), var(--fx-tg-3), var(--fx-tg-1));
  background-size: 200% 100%; background-repeat: repeat; background-position: 0 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: fx-texto-flui 8s linear infinite;
}
.sec--dark .fx-texto-grad { --fx-tg-1: #3ddba8; --fx-tg-2: #8fe9c9; --fx-tg-3: var(--warm); }
@keyframes fx-texto-flui { to { background-position: 200% 0; } }

/* ---------- WhatsApp: o botão vira bola, pinga na tela, expande verde e só então abre (efeitos.js, seção 8) ----------
   Um único overlay .fx-wa (fixed, acima do cabeçalho, do botão flutuante e do cursor). Esfera 2D com cara de 3D: gradiente radial,
   brilho especular que gira de leve (.fx-wa__brilho), sombra interna e sombra elíptica no chão (.fx-wa__sombra) que encolhe com a altura.
   O JS só move transform/opacity da bola e da sombra; o preenchimento é clip-path em CSS. will-change existe só enquanto o overlay existe.
   --fx-wa-cx/-cy (centro da tela), --fx-wa-rmax (raio que cobre o canto mais longe) e --fx-wa-d (diâmetro da bola) vêm do JS. */
.fx-wa {
  --fx-wa-cx: 50vw; --fx-wa-cy: 50vh; --fx-wa-rmax: 150vmax; --fx-wa-d: 64px;
  position: fixed; inset: 0; z-index: 2147483100; overflow: hidden; pointer-events: none; touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.fx-wa.is-ativo { pointer-events: auto; cursor: progress; }
.fx-wa__vela { position: absolute; inset: 0; background: rgba(8, 18, 29, .26); opacity: 0; transition: opacity .35s ease-out; }
.fx-wa.is-ativo .fx-wa__vela { opacity: 1; }

.fx-wa__sombra {
  position: absolute; left: 0; top: 0; width: 74px; height: 20px; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(3, 25, 17, .66), rgba(3, 25, 17, .3) 55%, rgba(3, 25, 17, 0));
  transform: translate3d(-200px, -200px, 0); will-change: transform, opacity;
}

/* preenchimento: disco verde sólido que cresce do centro da bola (clip-path) */
.fx-wa__tinta {
  position: absolute; inset: 0; visibility: hidden;
  clip-path: circle(0px at var(--fx-wa-cx) var(--fx-wa-cy));
  background: radial-gradient(circle at var(--fx-wa-cx) var(--fx-wa-cy), #25d366 0, #14ad66 22%, #0b8f6a 62%, #07785a 100%);
}
.fx-wa.is-expande .fx-wa__tinta {
  visibility: visible;
  clip-path: circle(var(--fx-wa-rmax) at var(--fx-wa-cx) var(--fx-wa-cy));
  transition: clip-path .5s cubic-bezier(.55, .05, .25, 1);
}

.fx-wa__bola {
  position: absolute; left: 0; top: 0; width: var(--fx-wa-d); height: var(--fx-wa-d);
  transform: translate3d(-200px, -200px, 0); will-change: transform;
}
.fx-wa__esfera {
  position: absolute; inset: 0; border-radius: 50%; transform-origin: 50% 50%; will-change: transform;
  background: radial-gradient(circle at 36% 30%, #86ffb4 0, #25d366 34%, #12a566 62%, #07785a 100%);
  box-shadow:
    inset -9px -11px 20px rgba(0, 45, 30, .55),
    inset 4px 5px 10px rgba(255, 255, 255, .3),
    0 0 0 1px rgba(7, 120, 90, .35),
    0 0 26px rgba(37, 211, 102, .42);
  transition: scale .5s cubic-bezier(.3, 0, .3, 1), opacity .4s linear .14s;
}
.fx-wa__brilho { position: absolute; inset: 0; border-radius: 50%; transform: rotate(-20deg); }
.fx-wa__brilho::before {                 /* brilho especular no canto superior esquerdo */
  content: ""; position: absolute; left: 17%; top: 11%; width: 34%; height: 21%; border-radius: 50%; transform: rotate(-28deg);
  background: radial-gradient(closest-side, rgba(255, 255, 255, .96), rgba(255, 255, 255, .5) 48%, rgba(255, 255, 255, 0));
}
.fx-wa__brilho::after {                  /* luz rebatida do chão, embaixo à direita */
  content: ""; position: absolute; inset: 5%; border-radius: 50%;
  background: radial-gradient(circle at 70% 80%, rgba(130, 255, 195, .4), rgba(130, 255, 195, 0) 46%);
}
.fx-wa.is-expande .fx-wa__esfera { scale: 1.8; opacity: 0; }

/* tela final: ícone branco no centro + texto */
.fx-wa__final { position: absolute; inset: 0; color: #fff; text-align: center; opacity: 0; }
.fx-wa.is-expande .fx-wa__final { opacity: 1; transition: opacity .3s ease-out .3s; }
.fx-wa .fx-wa__ic {
  position: absolute; left: var(--fx-wa-cx); top: var(--fx-wa-cy); width: 84px; height: 84px; margin: -42px 0 0 -42px;
  color: #fff; vertical-align: baseline; scale: .6; filter: drop-shadow(0 4px 14px rgba(0, 60, 40, .35));
}
.fx-wa.is-expande .fx-wa__ic { scale: 1; transition: scale .55s var(--mola, cubic-bezier(.3, 1.4, .5, 1)) .28s; }
.fx-wa__txt {
  position: absolute; left: 0; right: 0; top: calc(var(--fx-wa-cy) + 62px); margin: 0; padding: 0 20px;
  font: 800 clamp(1.25rem, 1rem + 1.6vw, 1.75rem)/1.2 var(--font, system-ui, sans-serif); letter-spacing: -.01em;
  text-shadow: 0 2px 14px rgba(0, 60, 40, .5); transform: translateY(10px);
}
.fx-wa.is-expande .fx-wa__txt { transform: none; transition: transform .5s var(--ease-suave, ease-out) .36s; }

/* saída: some em fade (o visitante volta ao site normal) */
.fx-wa.is-saindo { opacity: 0; pointer-events: none; transition: opacity .45s ease-out; }
/* o botão clicado fica em fade enquanto a bola nasce nele */
.fx-wa-origem { opacity: .12 !important; transition: opacity .25s ease-out !important; }
/* anúncio para leitor de tela (o overlay é aria-hidden) */
.fx-wa-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
/* sem clip-path: o verde entra em fade em vez de crescer */
@supports not (clip-path: circle(1px at 1px 1px)) {
  .fx-wa__tinta { clip-path: none; opacity: 0; }
  .fx-wa.is-expande .fx-wa__tinta { opacity: 1; transition: opacity .5s ease-out; }
}

/* ---------- impressão ---------- */
@media print {
  .js .reveal { opacity: 1; translate: none; scale: none; filter: none; }
  .fx-cur, .fx-wa { display: none; }
}

/* ---------- movimento reduzido: estados finais, sem animação ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn-pill__fundo, .btn-pill .btn-pill__chip .ic, .btn-pill__l1, .btn-pill__l2, .btn-pill__chip { transition: none; }
  .btn-pill:active, .btn-pill:active .btn-pill__chip { transform: none; }
  .btn-pill__onda { display: none; }
  .btn-pill.is-ok .btn-pill__ok { animation: none; stroke-dashoffset: 0; }
  .fx-card, .fx-card:hover { transform: none; }
  .fx-card::after, .fx-luz::before { display: none; }
  .fx-marquee--pronto .fx-marquee__trilho { animation: none; }
  .fx-marquee--pronto { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .fx-marquee__clone { display: none !important; }
  .fx-live i::after { animation: none; opacity: 0; }
  .js .reveal, .js .reveal.is-in { opacity: 1; translate: none; scale: none; filter: none; transition: none; }
  .fx-brilho-borda, .fx-texto-grad { animation: none; }
  .fx-cur { display: none; }
  .fx-wa { display: none; }            /* o JS nem monta a sequência: o link abre direto */
  .fx-wa-origem { opacity: 1 !important; }
}
