:root { --atenda-motion-ease: cubic-bezier(.22, 1, .36, 1); }

@media (prefers-reduced-motion: no-preference) {
  [data-atenda-pending]:not(:focus-within) { opacity: 0; }
  [data-atenda-enter]:not(:focus-within) {
    animation: var(--atenda-entry, atenda-enter-up) var(--atenda-duration, 730ms)
      var(--atenda-motion-ease) var(--atenda-motion-delay, 0ms) backwards;
  }
  [data-atenda-enter="image"] { --atenda-entry: atenda-enter-photo; --atenda-duration: 880ms; }
  [data-atenda-enter="image-settle"] { --atenda-entry: atenda-enter-photo-settle; --atenda-duration: 880ms; }
  [data-atenda-enter="scale"] { --atenda-entry: atenda-enter-scale; --atenda-duration: 760ms; }
  [data-atenda-enter="settle"] { --atenda-entry: atenda-enter-settle; --atenda-duration: 650ms; }
  [data-atenda-enter="action"] { --atenda-duration: 650ms; }
  .why-page [data-atenda-enter="text"] { --atenda-duration: 840ms; }

  .how-ref-step-list::before {
    transform-origin: top;
    transform: scaleY(var(--atenda-line, 1));
    transition: transform 820ms var(--atenda-motion-ease);
  }

  :is(.button, .sr-button, .why-button, .how-ref-ask, .ct-submit, .ct-repro-closing > a) {
    transition: translate 240ms var(--atenda-motion-ease), color 240ms,
      background-color 240ms, border-color 240ms, box-shadow 240ms;
  }
  .why-button { transition-property: transform, color, background-color, border-color, box-shadow; }
  :is(.text-link, .sr-mod-cta, .home-footer a, .ct-repro-footer a) { transition: color 240ms; }
  .ct-repro-form :is(input,select,textarea) {
    transition: border-color 180ms, background-color 180ms, box-shadow 180ms;
  }
  @media (hover: hover) and (pointer: fine) {
    :is(a.button, a.sr-button, a.how-ref-ask, .ct-submit:enabled, .ct-repro-closing > a):hover {
      translate: 0 -2px;
    }
    :is(a.solution-card, a.how-ref-arrival-card, a.how-ref-case-card, .sr-mod-summary, a.ct-repro-contact-item) {
      transition: translate 240ms var(--atenda-motion-ease), box-shadow 240ms, color 240ms;
    }
    :is(a.solution-card, a.how-ref-arrival-card, a.how-ref-case-card, .sr-mod-summary, a.ct-repro-contact-item):hover {
      translate: 0 -3px;
    }
    .how-ref-arrival > img { transition: scale 320ms var(--atenda-motion-ease); }
    .how-ref-arrival:has(a.how-ref-arrival-card:hover) > img { scale: 1.02; }
    :is(.how-ref-card-arrow, .sr-mod-arrow, .button > [aria-hidden="true"], .how-ref-ask > span:last-child) {
      transition: translate 240ms var(--atenda-motion-ease);
    }
    :is(.how-ref-arrival-card, .how-ref-case-card):hover .how-ref-card-arrow,
    .sr-mod-summary:hover .sr-mod-arrow,
    :is(.button:hover > [aria-hidden="true"], .how-ref-ask:hover > span:last-child) {
      translate: 3px 0;
    }
  }
}

:root { --atenda-motion-distance: 18px; }
@media (max-width: 767px) { :root { --atenda-motion-distance: 12px; } }
@keyframes atenda-enter-up {
  from { opacity: 0; translate: 0 var(--atenda-motion-distance); }
}
@keyframes atenda-enter-photo {
  from { opacity: 0; scale: .985; }
}
@keyframes atenda-enter-scale {
  from { opacity: 0; scale: .975; }
}
@keyframes atenda-enter-settle {
  from { translate: 0 5px; }
}
@keyframes atenda-enter-photo-settle {
  from { scale: .99; }
}
