/* ============================================================
   ZYVA — Motion Layer v1
   Camada de movimento e cenas 3D. Carrega DEPOIS de style.css.
   Zero dependências: sem GSAP, sem Three.js, sem React.
   Paleta preservada: violeta #6C4CF1 · ciano #22D3EE · noite #0B0E1A
   ============================================================ */

/* Tokens de motion e cores do WhatsApp agora vivem no :root do
   style.css (que carrega antes em todas as páginas): --ease-zyva,
   --ease-out-expo, --ease-out-quint, --dur-*, --wa-*. */

/* ============================================================
   1. Revelação de texto (palavra a palavra, com máscara)
   ============================================================ */
/* (.rv-line saiu na faxina: o JS só cria .rv-word, nunca .rv-line) */

/* Só esconde se o JS estiver de pé. Sem isso, uma falha de rede
   deixaria o site inteiro em branco — texto invisível esperando
   um script que nunca chega. */
.rv-word {
  display: inline-block;
  transform: translateY(110%) rotate(2.5deg);
  opacity: 0;
  will-change: transform, opacity;
  transition:
    transform 0.95s var(--ease-out-expo) var(--rv-d, 0s),
    opacity 0.7s ease var(--rv-d, 0s);
}
.rv-in .rv-word { transform: none; opacity: 1; }

/* Fade simples com subida — para blocos não-título */
html.js-on .rise {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s ease var(--rv-d, 0s),
    transform 0.9s var(--ease-out-expo) var(--rv-d, 0s);
  will-change: transform, opacity;
}
html.js-on .rise.rv-in, .rise.rv-in { opacity: 1; transform: none; }

/* Primeira tela: aparece pronto, sem transição nenhuma. */
.rv-now, .rv-now .rv-word { opacity: 1 !important; transform: none !important; transition: none !important; }

/* Cinto de segurança: título de herói jamais nasce invisível. */
.hero h1, .page-hero h1, .hero .lead, .page-hero p,
.hero .kicker, .page-hero .kicker, .hero .hero-ctas, .page-hero .hero-ctas {
  opacity: 1 !important;
  transform: none !important;
}

/* ============================================================
   2. Texto rotativo (port do RotatingText — JS puro)
   ============================================================ */

/* Cor sólida: um gradiente recortado por caractere ficaria ruidoso,
   porque cada letra reiniciaria o degradê. */



.rot-char.out {
  animation: rot-out 0.42s var(--ease-out-quint) forwards;
  animation-delay: var(--rc-d, 0s);
}
.rot-char.in {
  transform: translateY(105%);
  opacity: 0;
  animation: rot-in 0.55s var(--ease-out-expo) forwards;
  animation-delay: var(--rc-d, 0s);
}
@keyframes rot-in { to { transform: none; opacity: 1; } }
@keyframes rot-out { to { transform: translateY(-115%); opacity: 0; } }

/* ============================================================
   3. Cena do celular 3D (Contato)
   ============================================================ */

/* Sem trilho de 380vh: a página de conversão não pede 4 telas de rolagem
   antes do formulário. A cena vira um bloco de altura normal. */


.phone-sticky > .container {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 48px;
  width: min(1140px, 92%);
}

/* Coluna de texto */




/* Status ao vivo */



.live-status.off .live-dot { background: #F59E0B; }


/* Lista de assuntos */















/* --- O celular --- */



/* Brilho de borda que acompanha a paleta */

/* Face traseira — dá volume real ao girar */

/* Espessura por extrusão em camadas.
   Tiras planas nas laterais saltavam para fora nos cantos arredondados;
   empilhar cópias do mesmo retângulo arredondado mantém a silhueta lisa
   em toda a volta, inclusive nos cantos. */










/* Botões físicos */





/* Tela */

/* Camada de "desligado" que some conforme o scroll */

/* Reflexo de vidro */



/* Barra de status */




/* Cabeçalho do app */










/* Área de conversa */



.wa-b.show {
  animation: wa-pop 0.42s var(--ease-out-expo) forwards;
}
@keyframes wa-pop { to { opacity: 1; transform: none; } }

.wa-out {
  align-self: flex-end;
  background: var(--wa-bubble-out);
  border-top-right-radius: 2px;
  transform-origin: bottom right;
}



/* Indicador de digitando */

.wa-typing.on { display: flex; }





/* Barra de envio */


.wa-input.filled { color: #e9edef; }


.wa-go.ready { animation: wa-ready 2s ease-out infinite; }

@keyframes wa-ready {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Dica de scroll */





/* Barra de progresso da cena */



/* ============================================================
   4. Responsivo
   ============================================================ */
@media (max-width: 1000px) {
  .phone-sticky > .container { grid-template-columns: 1fr; gap: 26px; }
  
  
  
  
  

}

@media (max-width: 640px) {
  
  /* padding-top compensa o cabeçalho fixo, senão o topo do celular fica atrás dele */
  
  .phone-sticky > .container { gap: 16px; align-content: center; }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  /* No celular o espaço é curto: some o que é secundário */
  
  
  
  
  
  
  
  
  
  

}

/* Notebooks baixos — a cena precisa caber na tela */


/* ============================================================
   5. Acessibilidade — respeitar quem pediu menos movimento
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .rv-word, .rise { opacity: 1 !important; transform: none !important; transition: none !important; }
  
  .live-dot::after, .wa-typing i, .wa-go.ready { animation: none; }
  
  .rot-char.in, .rot-char.out { animation-duration: 0.01s; }
  
  
  
  

}

/* ============================================================
   6. Máquina de marketing (Serviços)
   ============================================================ */











.pipe-node.on { opacity: 1; }

.pipe-node.on .pipe-ico {
  transform: translateY(-5px) scale(1.06);
  background: rgba(108, 76, 241, 0.2);
  border-color: rgba(108, 76, 241, 0.6);
  box-shadow: 0 0 26px rgba(108, 76, 241, 0.35);
}
.pipe-node:nth-child(even).on .pipe-ico {
  background: rgba(34, 211, 238, 0.16);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.28);
}


/* Só o subtítulo (o span depois do <b>). Antes era ".pipe-node span", que
   também pegava o .pipe-ico e o .pipe-step (ambos são <span>) e quebrava a
   centralização do ícone ao forçar display:block. */



/* ============================================================
   7. ZYVA — quatro letras, quatro valores (Sobre)
   ============================================================ */



.bl-letter.on {
  transform: translateY(-10px);
  background: linear-gradient(var(--white), var(--white)) padding-box, var(--violet) border-box;
  border: 2px solid transparent;
  color: transparent;
  background-clip: padding-box, border-box;
  box-shadow: var(--shadow-lg);
}
.bl-letter.on span {
  /* Cor chapada com intenção — o texto-degradê saiu do site. */
  color: var(--violet);
}


.bl-value.on { opacity: 1; transform: none; pointer-events: auto; }
.bl-value .kicker { margin-bottom: 10px; }



/* ============================================================
   8. Vitrine 3D dos projetos (Cases)
   ============================================================ */







.m3-card {
  aspect-ratio: 97 / 70;
  border-radius: 12px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease;
  cursor: pointer;
}
.m3-card:hover { transform: translateZ(40px); box-shadow: 0 0 0 1px rgba(34,211,238,.5), 0 26px 60px rgba(0,0,0,.6); }
/* Trazido à frente por clique/toque (funciona no celular, onde não há hover) */
.m3-card.m3-front {
  transform: translateZ(70px) scale(1.05);
  box-shadow: 0 0 0 1.5px rgba(34,211,238,.7), 0 34px 74px rgba(0,0,0,.7);
  z-index: 20;
}
/* congela a coluna enquanto uma peça está à frente, para dar tempo de ler */
.m3-col:has(.m3-front) { animation-play-state: paused; }






/* ============================================================
   9. Barra de progresso de leitura (artigos)
   ============================================================ */
.read-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 80;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.06);
}
.read-bar i {
  display: block;
  height: 100%;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ============================================================
   10. Responsivo dos módulos novos
   ============================================================ */


@media (prefers-reduced-motion: reduce) {
  .read-bar { display: none; }
}

/* Filtro de categorias do blog */
.blog-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip-filter {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.83rem;
  padding: 8px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease-out-expo);
}
.chip-filter:hover { transform: translateY(-2px); border-color: var(--violet); color: var(--violet); }
.chip-filter[aria-pressed="true"] {
  /* SELEÇÃO = violeta sólido da marca (regra do site: degradê só no
     logo e no Z do notebook; escolha se marca com UMA cor) */
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
  box-shadow: 0 6px 16px rgba(108, 76, 241, 0.28);
  /* Luz suave e uniforme (azul entre o violeta e o ciano), sem blocos de cor. */
  box-shadow: 0 8px 22px rgba(76, 132, 232, .34);
}

/* O atributo [hidden] só esconde se nada declarar display depois dele —
   e .post-card declara display:flex. Sem isto, o filtro "esconde" no DOM
   mas os cards continuam à vista. */
[data-blog-grid] > [hidden] { display: none !important; }

/* ============================================================
   11. Rodapé cinematográfico — revelação em cortina
       (port em JS puro do CinematicFooter React/GSAP)
   ============================================================ */

/* A "cortina": fica no fluxo normal e recorta seu conteúdo. Como tem
   clip-path, ela vira o bloco de contenção do rodapé fixo lá dentro —
   é isso que cria a revelação de baixo para cima ao rolar. */
.cine-reveal {
  position: relative;
  height: 100vh;
  height: 100dvh; /* celular: sem pulo da barra de endereço */
  width: 100%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  background: var(--night);
}
.cine-foot {
  position: fixed;
  bottom: 0; left: 0;
  height: 100vh; width: 100%;
  height: 100dvh;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  background: var(--night);
  color: #fff;
  font-family: var(--font-body);
  perspective: 1000px; /* profundidade do ZYVA gigante na revelação */
}

/* Aurora ambiente que "respira" */
.cine-aurora {
  position: absolute; left: 50%; top: 50%;
  height: 60vh; width: 80vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 50%,
    rgba(108,76,241,0.22) 0%,
    rgba(34,211,238,0.15) 40%,
    transparent 70%);
  filter: blur(80px);
  border-radius: 50%;
  pointer-events: none; z-index: 0;
  animation: cine-breathe 8s ease-in-out infinite alternate;
}
@keyframes cine-breathe {
  0%   { transform: translate(-50%,-50%) scale(1);   opacity: .6; }
  100% { transform: translate(-50%,-50%) scale(1.1); opacity: 1;  }
}

/* Grade sutil ao fundo */
.cine-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-size: 60px 60px;
  background-image:
    linear-gradient(to right,  rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}

/* Palavra gigante ao fundo (parallax por scroll via JS) */
.cine-giant {
  position: absolute; bottom: -6vh; left: 50%;
  transform: translateX(-50%);
  font-size: 27vw; line-height: .72; font-weight: 900; letter-spacing: -.05em;
  white-space: nowrap; z-index: 0; pointer-events: none; user-select: none;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, transparent 62%);
  -webkit-background-clip: text; background-clip: text;
  font-family: var(--font-head);
}

/* Faixa diagonal (marquee) */
.cine-marquee {
  position: absolute; top: 96px; left: 0; width: 100%;
  overflow: hidden; z-index: 10;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(11, 14, 26, 0.85);
  padding: 14px 0;
  transform: rotate(-2deg) scale(1.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.cine-marquee-track {
  display: flex; width: max-content;
  animation: cine-marquee 42s linear infinite;
  font-family: var(--font-head); font-weight: 700;
  font-size: .78rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.cine-marquee-track span { padding: 0 22px; white-space: nowrap; }
.cine-marquee-track i { color: rgba(108,76,241,0.65); font-style: normal; }
.cine-marquee-track i.c { color: rgba(34,211,238,0.65); }
@keyframes cine-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Conteúdo central */
.cine-center {
  position: relative; z-index: 10;
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0 24px; margin: 40px auto 0;
  width: 100%; max-width: 1024px;
}
.cine-title {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  font-weight: 800; letter-spacing: -.03em; text-align: center;
  margin-bottom: 44px; line-height: 1.02;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.42) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(255,255,255,0.12));
}
.cine-actions { display: flex; flex-direction: column; align-items: center; gap: 22px; width: 100%; }
.cine-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cine-row-sec { margin-top: 2px; }

/* Pílula de vidro */
.cine-pill {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 38px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700;
  font-size: .98rem; color: #fff; text-decoration: none;
  /* Superfície sólida (sem vidro/blur): mesma profundidade, custo zero. */
  background: linear-gradient(145deg, #191d33, #131728);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.10);
  transition: background .4s var(--ease-zyva), border-color .4s, box-shadow .4s, color .3s;
  will-change: transform;
}
.cine-pill:hover {
  background: linear-gradient(145deg, #202542, #161b2e);
  border-color: rgba(255,255,255,0.20);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6), inset 0 1px 1px rgba(255,255,255,0.20);
}
.cine-pill svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.cine-pill-primary {
  /* sólido: mesma regra do .btn-primary — degradê só em fio e marca */
  background: var(--violet);
  border-color: transparent;
  box-shadow: 0 14px 36px rgba(108,76,241,0.42);
}
.cine-pill-primary:hover {
  background: var(--violet-deep, #5B3BE0);
  box-shadow: 0 18px 48px rgba(108,76,241,0.58);
}
.cine-pill-sm { padding: 11px 22px; font-size: .82rem; font-weight: 600; color: rgba(255,255,255,0.7); }
.cine-pill-sm:hover { color: #fff; }

/* Barra inferior */
.cine-bottom {
  position: relative; z-index: 20; width: 100%;
  padding: 0 clamp(24px,5vw,48px) 30px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.cine-copy { color: rgba(255,255,255,0.66); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.cine-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: 999px;
  background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6); font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700;
}
.cine-badge strong { color: #fff; font-family: var(--font-head); letter-spacing: normal; font-size: .82rem; }
/* (o coração do rodapé virou "método" — quinto matiz aposentado) */
.cine-top {
  width: 48px; height: 48px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.7); cursor: pointer; will-change: transform;
  transition: color .3s, border-color .3s;
}
.cine-top:hover { color: #fff; border-color: rgba(255,255,255,0.2); }
.cine-top svg { width: 20px; height: 20px; transition: transform .3s; }
.cine-top:hover svg { transform: translateY(-4px); }

/* Some o botão flutuante do WhatsApp quando o rodapé aparece — o rodapé já
   tem seu próprio CTA de WhatsApp, e assim ele não cobre o "voltar ao topo". */
.wa-float { transition: opacity .4s ease, transform .4s ease; }
.wa-float.wa-hidden { opacity: 0; transform: scale(.6); pointer-events: none; }

/* Responsivo */
@media (max-width: 720px) {
  .cine-giant { font-size: 42vw; bottom: -2vh; }
  .cine-marquee { top: 78px; }
  .cine-title { margin-bottom: 30px; }
  .cine-pill { padding: 15px 26px; font-size: .9rem; }
  .cine-bottom { flex-direction: column; text-align: center; gap: 16px; padding-bottom: 24px; }

}

/* Celular de verdade: o rodapé inteiro precisa CABER em uma tela.
   O letreiro sai (decorativo e era o que atravessava o título),
   o título encolhe, as pílulas compactam e o miolo ganha respiro
   do cabeçalho fixo. */
@media (max-width: 640px) {
  .cine-foot { padding-top: 72px; }
  .cine-marquee { display: none; }
  .cine-title {
    font-size: clamp(2rem, 9.5vw, 2.6rem);
    margin-bottom: 22px;
  }
  .cine-center { margin-top: 0; padding: 0 18px; }
  .cine-actions { gap: 14px; }
  .cine-row { gap: 8px; }
  .cine-pill { padding: 13px 24px; font-size: .88rem; gap: 9px; }
  .cine-pill svg { width: 17px; height: 17px; }
  .cine-pill-sm { padding: 9px 15px; font-size: .76rem; }
  .cine-bottom { gap: 10px; padding-bottom: 16px; }
  .cine-copy { font-size: .6rem; letter-spacing: .1em; line-height: 1.7; }
  .cine-badge { font-size: .68rem; }
  .cine-top { width: 42px; height: 42px; }
}

/* Sem movimento: vira um rodapé estático, sem cortina nem parallax */
@media (prefers-reduced-motion: reduce) {
  .cine-reveal { height: auto; clip-path: none; }
  .cine-foot { position: relative; height: auto; min-height: 82vh; }
  .cine-aurora, .cine-marquee-track { animation: none; }

}

/* ============================================================
   12. Notificação do blog: gestos, dicas e Ilha Dinâmica
   ============================================================ */
.zyva-toast { touch-action: none; will-change: transform; }
.zyva-toast.zt-dragging { transition: none; cursor: grabbing; }

/* Setas de dica (aparecem ao surgir, mostrando as direções) */
.zt-hint-arrow {
  position: absolute; z-index: 3; opacity: 0; pointer-events: none;
  display: grid; place-items: center; color: var(--cyan);
}
.zt-hint-arrow svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.zt-hint-up { top: -26px; left: 50%; transform: translateX(-50%); }
.zt-hint-right { top: 50%; right: 6px; transform: translateY(-50%); }

.zyva-toast.zt-hint { animation: zt-nudge 2.4s ease-in-out 2; }
.zyva-toast.zt-hint .zt-hint-up { animation: zt-hintU 2.4s ease-in-out 2; }
.zyva-toast.zt-hint .zt-hint-right { animation: zt-hintR 2.4s ease-in-out 2; }
@keyframes zt-nudge {
  0%,100% { transform: translate(0,0); }
  10% { transform: translate(0,-9px); }
  22% { transform: translate(0,0); }
  48% { transform: translate(11px,0); }
  60% { transform: translate(0,0); }
}
@keyframes zt-hintU { 0%,4% { opacity: 0; } 10% { opacity: 1; } 24%,100% { opacity: 0; } }
@keyframes zt-hintR { 0%,38% { opacity: 0; } 48% { opacity: 1; } 62%,100% { opacity: 0; } }

/* Confirmação curta sobre o próprio toast (avisos ativados etc.) */
.zt-flash {
  position: absolute; inset: 0; z-index: 4;
  display: grid; place-items: center; text-align: center; padding: 0 20px;
  background: var(--night-2); border-radius: 16px;
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.zt-flash.on { opacity: 1; }
.zt-flash .zt-flash-ic { width: 20px; height: 20px; margin-right: 8px; stroke: var(--cyan); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }

/* Ilha Dinâmica (estado minimizado, topo-centro) */
.zyva-island {
  position: fixed; top: 12px; left: 50%;
  transform: translateX(-50%) translateY(-16px) scale(.85);
  z-index: 90;
  display: inline-flex; align-items: center; gap: 9px;
  height: 40px; padding: 0 15px;
  background: #0a0d18; color: #fff;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(0,0,0,.55);
  cursor: pointer; opacity: 0;
  transition: opacity .35s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1), border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.zyva-island.zi-in { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.zyva-island:hover { border-color: rgba(255,255,255,.26); }
.zi-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex: none; animation: zt-pulse 1.9s ease-out infinite; }
.zyva-island.zt-special-i .zi-dot { background: #FFB84D; animation-name: zt-pulse-amber; }
.zi-bell { flex: none; }
.zi-chevron { width: 14px; height: 14px; stroke: rgba(255,255,255,.55); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }

@media (prefers-reduced-motion: reduce) {
  .zyva-toast.zt-hint,
  .zyva-toast.zt-hint .zt-hint-up,
  .zyva-toast.zt-hint .zt-hint-right { animation: none; }
  .zi-dot { animation: none; }
  .zyva-island { transition: opacity .2s ease; }

}

/* ============================================================
   13. Sistema de MARCADORES de seção (kickers) + steppers
       3 modos por papel: k-tag (tópico da página), k-bar
       (cabeçalho de seção) e k-index (enumeração). Revelam ao
       entrar na tela. Sem JS (html sem .js-on) ficam visíveis.
   ============================================================ */

/* Base — zera a pílula antiga */
.kicker {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-head);
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); line-height: 1;
  margin-bottom: 16px;
  padding: 0; background: none; border: 0; border-radius: 0;
}
/* branco só em contêineres REALMENTE escuros (não .dark-shell, que envolve
   páginas com sheets claros). Inclui os painéis escuros dentro de folhas
   claras (.diag, .calc) e a cena do notebook — sem isto o kicker herdava
   tinta quase preta sobre fundo escuro (invisível). */
.on-dark .kicker, .band .kicker, .pipeline .kicker,
.diag .kicker, .calc .kicker, .nb-scene .kicker { color: rgba(255,255,255,0.92); }

/* ---------- Modo A: TAG (tópico da página, no topo) ---------- */
.kicker.k-tag {
  padding: 9px 17px 9px 14px; border-radius: 100px;
  background: linear-gradient(#fff, #fff) padding-box, var(--violet) border-box;
  border: 1.5px solid transparent; color: var(--ink);
  box-shadow: 0 8px 22px rgba(108,76,241,0.16);
}
/* no escuro: preenchimento OPACO (vidro escuro) — só a borda mostra o gradiente */
.on-dark .kicker.k-tag, .band .kicker.k-tag {
  background: linear-gradient(#171b30, #12162a) padding-box, rgba(34,211,238,0.6) border-box;
  color: #fff; box-shadow: 0 10px 30px rgba(34,211,238,0.16);
}
.kicker.k-tag::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); flex: none;
  animation: k-ping 2.1s ease-out infinite;
}
@keyframes k-ping {
  0% { box-shadow: 0 0 0 0 rgba(34,211,238,0.5); }
  70%,100% { box-shadow: 0 0 0 9px rgba(34,211,238,0); }
}

/* ---------- Modo B: BAR (cabeçalho de seção) ---------- */
.kicker.k-bar::before {
  content: ""; width: 28px; height: 3px; border-radius: 3px;
  background: var(--violet); flex: none; transform-origin: left center;
}
/* no escuro o traço é ciano — mesma lógica de contexto do grifo */
.on-dark .kicker.k-bar::before, .band .kicker.k-bar::before,
.pipeline .kicker.k-bar::before, .diag .kicker.k-bar::before,
.calc .kicker.k-bar::before, .nb-scene .kicker.k-bar::before {
  background: var(--cyan);
}

/* ---------- Modo C: INDEX (enumeração) ---------- */
.kicker.k-index::before {
  content: attr(data-i);
  font-family: var(--font-head); font-weight: 800;
  font-size: 1.15rem; letter-spacing: 0;
  color: var(--violet);
  font-variant-numeric: tabular-nums;
}
.kicker.k-index { gap: 9px; letter-spacing: 0.13em; }

/* ---------- Revelação (só quando há JS: html.js-on) ---------- */
html.js-on .kicker.k-bar { opacity: 0; transform: translateY(9px); transition: opacity .5s ease, transform .55s var(--ease-out-expo); }
html.js-on .kicker.k-bar::before { transform: scaleX(0); transition: transform .6s var(--ease-out-expo) .05s; }
html.js-on .kicker.k-bar.mk-in { opacity: 1; transform: none; }
html.js-on .kicker.k-bar.mk-in::before { transform: scaleX(1); }

html.js-on .kicker.k-tag { opacity: 0; transform: translateY(-8px) scale(.96); transition: opacity .5s ease, transform .6s var(--ease-out-expo); }
html.js-on .kicker.k-tag.mk-in { opacity: 1; transform: none; }

html.js-on .kicker.k-index { opacity: 0; transform: translateX(-8px); transition: opacity .45s ease, transform .5s var(--ease-out-expo); }
html.js-on .kicker.k-index.mk-in { opacity: 1; transform: none; }

/* ============================================================
   Steppers: os blocos numerados viram uma progressão conectada
   ============================================================ */

/* (a animação da timeline da home saiu junto com a timeline — Palco Limpo) */

/* Cases — "Padrão de case" (.steps): trilho de progresso + números escalonados */


html.js-on .steps::before { transform: scaleX(0); transition: transform 1.1s var(--ease-out-expo); }
html.js-on .steps.mk-in::before { transform: scaleX(1); }
html.js-on .steps .step .num { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .5s var(--ease-out-expo); }
html.js-on .steps.mk-in .step:nth-child(1) .num { opacity:1; transform:none; transition-delay:.12s; }
html.js-on .steps.mk-in .step:nth-child(2) .num { opacity:1; transform:none; transition-delay:.26s; }
html.js-on .steps.mk-in .step:nth-child(3) .num { opacity:1; transform:none; transition-delay:.40s; }
html.js-on .steps.mk-in .step:nth-child(4) .num { opacity:1; transform:none; transition-delay:.54s; }


@media (prefers-reduced-motion: reduce) {
  html.js-on .kicker, html.js-on .kicker::before,
  html.js-on .steps::before, html.js-on .steps .step .num {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .kicker.k-tag::before { animation: none; }

}

/* ---------- Home: TAG do herói em formato "SELO" (escolha do cliente) ----------
   Só na home (.hero). Um quadradinho gradiente à esquerda + texto, sem pílula.
   Vem depois de .on-dark .kicker.k-tag para vencer por ordem de origem. */
.hero .kicker.k-tag {
  padding: 0; background: none; border: 0; border-radius: 0;
  color: #fff; gap: 13px;
  font-size: 0.84rem; letter-spacing: 0.16em;
  box-shadow: none;
}
.hero .kicker.k-tag::before {
  content: ""; width: 24px; height: 24px; border-radius: 8px;
  background: var(--violet); animation: none;
  box-shadow: 0 6px 18px rgba(108,76,241,0.45);
}

/* ============================================================
   14. Sobreviventes da camada de experiência
   (o que passou no filtro "prova clareza, método ou resultado?")
   ============================================================ */

/* Transições de página nativas — custo zero, continuidade real */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.26s ease both; }
::view-transition-new(root) { animation: vt-in 0.4s var(--ease-out-expo) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in  { from { opacity: 0; transform: translateY(14px); } }

/* Holofote nos cartões — agora só CSS, sem seguir o ponteiro.
   O efeito era quase idêntico e custava um pointermove por cartão. */
.case-card, .m3-card, .post-card { position: relative; }
.case-card::before, .m3-card::before, .post-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(340px circle at 50% 40%,
              rgba(34, 211, 238, 0.14), rgba(108, 76, 241, 0.08) 40%, transparent 65%);
  opacity: 0; transition: opacity 0.35s ease;
  pointer-events: none; z-index: 1;
}
.case-card:hover::before, .m3-card:hover::before, .post-card:hover::before { opacity: 1; }

/* Serviços: energia correndo pelo trilho da máquina */



/* Sobre: manifesto cinético */




/* Blog: sinal vivo nos cartões */
.post-card { transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease; }
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(108, 76, 241, 0.18), 0 0 0 1.5px rgba(34, 211, 238, 0.35);
}
.post-card:hover .post-cat { animation: cat-pulse 1.4s ease-out infinite; }
@keyframes cat-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.45); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(34, 211, 238, 0); }
}

/* ============================================================
   15. DESTAQUE "GRIFO DO RELATÓRIO" — no lugar do texto-degradê
   A metáfora é humana e é a da marca: quem lê um relatório passa
   marca-texto no que importa. Cor chapada translúcida, cortes
   levemente inclinados como um traço de caneta, sem animação.
   Violeta nas folhas claras, ciano nos palcos escuros.
   ============================================================ */
.grad-text, .hero h1 em, .pipeline h2 em, .phone-copy h2 em,
.nb-copy h2 em {
  --grifo: rgba(108, 76, 241, 0.18);
  background-image: linear-gradient(100deg,
    transparent 1.5%, var(--grifo) 4%,
    var(--grifo) 96%, transparent 98.5%) !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  color: inherit !important;
  font-style: normal;
  background-repeat: no-repeat !important;
  background-size: 100% 0.68em !important;
  background-position: 0 82% !important;
  padding: 0 0.1em;
  margin: 0 -0.02em;
  border-radius: 0.2em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* nos palcos escuros o grifo é ciano — a cor do dado */
.hero h1 em, .nb-copy h2 em,
.pipeline h2 em, .phone-copy h2 em,
.on-dark .grad-text, .diag .grad-text {
  --grifo: rgba(34, 211, 238, 0.24);
}
/* Space Grotesk não tem itálico: nenhum em de título cai no
   oblíquo sintético do navegador (a cara de default de IA) */
h1 em, h2 em, h3 em { font-style: normal; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  
  
  .post-card, .post-card:hover { transform: none; }
  .post-card:hover .post-cat { animation: none; }
  /* (o grifo é estático — nada a desligar aqui) */

}

/* ------------------------------------------------------------
   O rodapé cinematográfico é `position: fixed` ocupando 100vh —
   ou seja, ele já está DENTRO da tela desde o primeiro quadro,
   atrás do conteúdo. O título gigante virava o "maior conteúdo
   pintado" e roubava a métrica de LCP do título do herói.
   Agora ele nasce transparente e só acende quando a cortina sobe.
   ------------------------------------------------------------ */
html.js-on [data-cine-giant],
html.js-on [data-cine-title],
html.js-on [data-cine-links] { opacity: 0; }

/* Rede de segurança: se o motor de movimento não subir em 2,5s,
   o main.js marca isto e o rodapé aparece do mesmo jeito. */
html.cine-fallback [data-cine-giant],
html.cine-fallback [data-cine-title],
html.cine-fallback [data-cine-links] {
  opacity: 1 !important;
  transform: none !important;
}
html.cine-fallback [data-cine-giant] { transform: translateX(-50%) !important; }

/* Mesma rede para as entradas: com o reveal unificado no motor de
   movimento, se ele não subir nada pode ficar preso em opacity:0. */
html.rv-fallback .reveal, html.rv-fallback .rise,
html.rv-fallback [data-reveal], html.rv-fallback .rv-word,
html.rv-fallback .topic, html.rv-fallback .kicker,
html.rv-fallback .bl-value.on {
  opacity: 1 !important;
  transform: none !important;
}
/* A peça central também tem rede: sem o motor de movimento, o
   notebook aparece ABERTO e os passos viram texto corrido — nada
   de 240vh de laptop fechado com legendas invisíveis. */
html.rv-fallback .nb-passo {
  position: static;
  opacity: 1;
  transform: none;
  margin-bottom: 10px;
}
html.rv-fallback .nb-laptop { transform: rotateX(-18deg); }
html.rv-fallback .nb-lid { transform: translateY(-20px) rotateX(10deg); }
html.rv-fallback .nb-screen { filter: none; }
html.rv-fallback .nb-glow { opacity: 1; }
html.rv-fallback .nb-dica { display: none; }

/* ============================================================
   16. DIAGNÓSTICO NO HERÓI (home)
   O ato de conversão deixa de ser um botão que leva a um
   formulário. Três toques e a pessoa lê o próprio negócio.
   ============================================================ */
.dquiz {
  /* Painel sólido (sem vidro/blur): contraste estável sobre o herói. */
  background: rgba(17, 21, 40, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 22px 22px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  max-width: 460px;
}
.diag-top { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
/* display:flex ignora o atributo hidden — sem isto o contador
   "3 de 3" continua na tela junto com a leitura pronta. */
.diag-top[hidden], .diag-body[hidden] { display: none; }
.diag-count {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.diag-count b { color: var(--cyan); }
.diag-bar {
  display: block; height: 3px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.1); overflow: hidden;
}
.diag-bar i {
  display: block; height: 100%; width: 33.33%;
  background: var(--cyan); border-radius: 3px;
  transition: width 0.45s var(--ease-out-expo);
}

.diag-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.diag-q legend {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.16rem;
  color: #fff;
  margin-bottom: 14px;
  padding: 0;
}
.diag-opts { display: flex; flex-direction: column; gap: 8px; }
.diag-opt {
  width: 100%;
  text-align: left;
  padding: 13px 16px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.35;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s var(--ease-out-quint);
}
.diag-opt small {
  display: block;
  font-size: 0.79rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}
.diag-opt:hover { background: rgba(108, 76, 241, 0.2); border-color: rgba(108, 76, 241, 0.6); transform: translateX(3px); }
/* seleção = violeta (uma cor marca a escolha em todo o site;
   ciano fica reservado para DADO) */
.diag-opt[aria-pressed="true"] { background: rgba(108, 76, 241, 0.30); border-color: var(--violet); }

/* troca de pergunta */
.diag-q[hidden] { display: none; }
.diag-body.diag-swap .diag-q { opacity: 0; transform: translateX(14px); }
.diag-body .diag-q { transition: opacity 0.22s ease, transform 0.28s var(--ease-out-expo); }

.diag-back {
  margin-top: 14px;
  background: none; border: 0; padding: 6px 0;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-body); font-size: 0.86rem;
  cursor: pointer;
}
.diag-back:hover { color: #fff; }

/* ---- a leitura ---- */
.diag-out h3 {
  font-family: var(--font-head); font-size: 1.1rem; color: #fff;
  line-height: 1.35; margin-bottom: 16px;
}
.diag-out h3 b { color: var(--cyan); font-weight: 700; }
.diag-frentes { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.diag-frente {
  display: grid; grid-template-columns: 26px 1fr; gap: 12px;
  align-items: start;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.diag-frente i {
  font-style: normal;
  font-family: var(--font-head); font-weight: 700; font-size: 0.8rem;
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--violet); color: #fff;
}
.diag-frente b { display: block; font-family: var(--font-head); font-size: 0.94rem; color: #fff; }
.diag-frente span { display: block; font-size: 0.83rem; color: rgba(255, 255, 255, 0.6); margin-top: 2px; line-height: 1.45; }

.diag-prazo {
  font-size: 0.87rem; color: rgba(255, 255, 255, 0.72);
  padding: 12px 14px; border-radius: 12px; margin-bottom: 16px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  line-height: 1.5;
}
.diag-prazo b { color: #fff; }
.diag-cta { display: flex; flex-direction: column; gap: 9px; }
.diag-cta .btn { width: 100%; justify-content: center; }
.diag-refaz {
  background: none; border: 0; color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-body); font-size: 0.84rem; cursor: pointer; padding: 4px;
}
.diag-refaz:hover { color: #fff; }

@media (max-width: 1000px) {
  .dquiz { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .diag-body .diag-q { transition: none; }
  .diag-bar i { transition: none; }
  .diag-opt:hover { transform: none; }
}

/* O aviso do blog recua enquanto o diagnóstico está na tela */
html.diag-na-tela .zyva-toasts {
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.35s var(--ease-out-expo);
}

/* ============================================================
   17. CAMADA DE EXPERIÊNCIA (Palco Limpo, ato II)
   Pesquisa: grain ESTÁTICO tileado + vinheta em paint único +
   wipes por clip-path no compositor + palavra-fantasma como
   tipografia cenográfica. Nada aqui roda por frame no main
   thread; tudo é paint único ou scroll-driven no compositor.
   ============================================================ */

/* --- Grão de filme: textura minúscula, gerada UMA vez e tileada.
       Sobre o tema escuro dá matéria; nas folhas claras o overlay
       quase desaparece (comportamento desejado). --- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.065;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
@media (prefers-reduced-motion: reduce) { body::after { opacity: 0.035; } }

/* --- Vinheta cinematográfica nos palcos que perderam a aurora:
       escuridão nas bordas (paint único na pilha de background). --- */
.band {
  background:
    radial-gradient(130% 100% at 50% 38%, transparent 52%, rgba(0, 0, 0, 0.4) 100%),
    var(--night) !important;
}
.cta-final {
  background:
    radial-gradient(130% 110% at 50% 30%, transparent 55%, rgba(0, 0, 0, 0.38) 100%),
    var(--night) !important;
}

/* --- Palavra-fantasma: tipografia como cenografia (o mesmo gesto
       do ZYVA gigante do rodapé, racionado a DUAS seções). --- */
.eco {
  position: absolute;
  z-index: 0;
  right: -0.08em;
  top: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(6rem, 18vw, 13rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(255, 255, 255, 0.1);
  pointer-events: none;
  user-select: none;
}
.band { overflow: hidden; }
.eco-claro { -webkit-text-stroke: 1.4px rgba(31, 36, 68, 0.11); right: auto; left: -0.06em; top: -18px; }
.svc-lista { position: relative; z-index: 1; }
.sheet .section .container { position: relative; }
@media (max-width: 900px) { .eco { display: none; } }

/* deriva lenta da palavra-fantasma amarrada ao scroll (compositor) */
@supports (animation-timeline: view()) {
  .eco {
    animation: eco-deriva linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
  @keyframes eco-deriva {
    from { transform: translateX(6%); }
    to { transform: translateX(-4%); }
  }
}

/* --- A virada de página: a folha clara entra num wipe de
       clip-path (compositor), só onde há suporte a SDA. --- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sheet-pull {
      animation: folha-vira linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 42%;
    }
    @keyframes folha-vira {
      from { clip-path: inset(0 0 96% 0 round var(--radius-sheet)); }
      to { clip-path: inset(0 0 0 0 round var(--radius-sheet)); }
    }
  }
}

/* --- Acabamento de vidro nos painéis escuros: aresta superior
       com luz especular + borda que se dissolve para baixo.
       Estático, custo zero por frame. --- */
.pain-card,
.calc-saida,
.diag {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.stat b { text-shadow: 0 0 26px rgba(34, 211, 238, 0.18); }

/* --- Profundidade de saída do herói: ao rolar para o notebook, a
       primeira dobra recua como plano de fundo de câmera (SDA no
       compositor; sem suporte, nada acontece — e nada falta). --- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero .hero-grid {
      animation: hero-recua linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }
    @keyframes hero-recua {
      to { transform: translateY(-44px) scale(0.985); opacity: 0.55; }
    }
  }
}

/* --- Capítulos: cada página interna abre com a palavra-fantasma
       do seu tema no hero — a MESMA assinatura cenográfica da home,
       aplicada consistentemente ao site inteiro. --- */
.page-hero { position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; }
.eco-hero {
  right: -0.06em;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(4.6rem, 13vw, 9.5rem);
  -webkit-text-stroke: 1.4px rgba(255, 255, 255, 0.09);
}
@supports (animation-timeline: view()) {
  .eco-hero { animation-range: exit 0% exit 100%; }
}
