/* ==========================================================================
   Pedro Aldana — coreografia de rolagem (só na home)
   Carregado depois de site.css. Quando motion.js ativa (html.has-motion), o
   reveal simples do site.js é neutralizado e o GSAP assume as entradas.
   ========================================================================== */

html.has-motion { scroll-behavior: auto; }
html.has-motion .reveal,
html.has-motion .step { opacity: 1; transform: none; transition: none; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Palavras do título do hero, cada uma com sua máscara */
.wm { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .06em .08em 0; margin: 0 -.06em -.08em 0; }
.w { display: inline-block; will-change: transform; }

/* Fotos com parallax: sobram 18% de altura para deslizar sem mostrar fundo */
html.has-motion .problem-photo img,
html.has-motion .about-photo img,
html.has-motion .banner-photo img,
html.has-motion .method-photo img { position: relative; height: 118%; top: -9%; will-change: transform; }
html.has-motion .section-bg img { will-change: transform; }

/* Linha do método que se preenche conforme a rolagem */
.timeline-fill { position: absolute; left: 27px; top: 20px; bottom: 20px; width: 1px; background: var(--accent); transform-origin: top; transform: scaleY(0); z-index: 0; box-shadow: 0 0 12px rgba(56,184,122,.6); }
.step .step-n { transition: background .5s var(--ease), border-color .5s, color .5s, box-shadow .5s; }
.step.lit .step-n { background: var(--accent); color: #06130c; border-color: var(--accent); box-shadow: 0 0 28px rgba(56,184,122,.35); }

/* Numerais dos diferenciais acendem ao passar pelo centro */
.diff .n { transition: color .6s var(--ease), -webkit-text-stroke-color .6s var(--ease); }
.diff.lit .n { color: var(--accent); -webkit-text-stroke-color: var(--accent); }

/* Luz verde que segue o mouse no card da oferta */
.offer-card .offer-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(56,184,122,.22), transparent 60%);
}
@media (hover: hover) { .offer-card:hover .offer-glow { opacity: 1; } }

/* Cards do Instagram: legenda sobe no hover */
@media (hover: hover) {
  .ig-body small { display: block; font-size: .72rem; line-height: 1.3; color: var(--on-dark-2); opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
  .ig-card:hover .ig-body small { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-fill { transform: none; }
}
