/* Movimento de entrada: .rise no hero e reveal ao rolar (Fase 1). Ver docs/planejamento/movimento-ui.md */

/* Uma keyframe para tudo; --rx/--ry definem de onde o bloco vem (padrão: 16px abaixo) */
@keyframes rise{from{opacity:0;transform:translate(var(--rx,0),var(--ry,16px))}to{opacity:1;transform:none}}

/* Hero: entra no carregamento, sem depender de JS */
.rise{--ry:14px;animation:rise var(--dur-enter) var(--ease-out) both}
.d2{animation-delay:calc(var(--stagger) * 2)}.d3{animation-delay:calc(var(--stagger) * 4)}

/* Reveal ao rolar. O estado escondido só existe com html.js (marcado por reveal.js):
   sem JS, tudo aparece. Usa animation com fill "backwards" em vez de transition para não
   travar o transform depois da entrada (os hovers de .offer, .btn etc. continuam funcionando). */
html.js [data-reveal]:not([data-reveal-stagger]):not(.is-in),
html.js [data-reveal-stagger]:not(.is-in) > *{opacity:0}

html.js [data-reveal]:not([data-reveal-stagger]).is-in:not(.is-instant),
html.js [data-reveal-stagger].is-in:not(.is-instant) > *{animation:rise var(--dur-enter) var(--ease-out) backwards}

/* Grupos: cada filho direto entra com atraso (--i vem do JS, com teto de 6) */
html.js [data-reveal-stagger].is-in:not(.is-instant) > *{animation-delay:calc(var(--i,0) * var(--stagger))}

/* Com as duas colunas lado a lado (a partir de ~1008px, pelo minmax(420px) do .feat):
   mídia e texto dos guias vêm de lados opostos.
   .feat-f inverte a ordem (.fm à direita), então os lados invertem também. */
@media (min-width:1008px) and (prefers-reduced-motion:no-preference){
.feat-p .fm,.feat-f .fb{--rx:-24px;--ry:0px}
.feat-p .fb,.feat-f .fm{--rx:24px;--ry:0px}
}

/* Movimento reduzido: reduzir, não remover. Entradas viram um fade curto, sem deslocamento,
   e as transições deixam de animar transform (nada se move), mantendo cor e opacidade. */
@keyframes fade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){
.rise,
html.js [data-reveal]:not([data-reveal-stagger]).is-in:not(.is-instant),
html.js [data-reveal-stagger].is-in:not(.is-instant) > *{animation-name:fade;animation-duration:200ms}
html.js [data-reveal-stagger].is-in:not(.is-instant) > *{animation-delay:0s}
*{transition-property:opacity,color,background-color,border-color,box-shadow!important}
}
