/* DMV motion kit · tokens e base de movimento
 * Valores medidos por engenharia reversa clean room (12/11/2026): Apple (reveal),
 * Wati (chat), Vercel Geist e Stripe (produto). Ver references/motion.md.
 * Copie para o projeto e importe ANTES dos componentes do kit.
 */
:root {
  /* produto */
  --dur-instant: 0ms;
  --dur-fast: 150ms;
  --dur-overlay: 200ms;
  --dur-panel: 240ms;
  --dur-toast: 350ms;
  --ease-standard: cubic-bezier(0.2, 0, 0.38, 0.9);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.45, 0.05, 0.55, 0.95);

  /* vitrine: um só padrão de reveal por página (Apple) */
  --reveal-distance: 30px;
  --reveal-move: 700ms;
  --reveal-fade: 900ms;
  --reveal-stagger: 150ms;
  --ease-reveal: cubic-bezier(0.455, 0.03, 0.515, 0.955);

  /* chat demonstrado (Wati) */
  --chat-in-height: 400ms;
  --chat-in-fade: 450ms;
  --chat-in-move: 550ms;
  --chat-in-delay: 120ms;
  --chat-out: 300ms;
  --chat-dot-cycle: 1.1s;
  --chat-dot-lag: 0.18s;

  /* canvas */
  --gl-dpr-max: 1.5;
}

/* Reveal: o conteúdo nasce VISÍVEL. Só ganha o estado inicial escondido quando
 * o script do kit confirma que vai animar (classe .dmv-motion no <html>).
 * Sem JS, com reduced-motion ou com Save-Data, tudo aparece pronto. */
.dmv-motion [data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
}
.dmv-motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--reveal-fade) var(--ease-reveal),
    transform var(--reveal-move) var(--ease-reveal);
  transition-delay: calc(var(--reveal-i, 0) * var(--reveal-stagger));
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
