/* Motion only. Existing colors, geometry, content and destinations are retained. */
@media (prefers-reduced-motion: no-preference) {
  .hero-route-surface { transition: transform 180ms ease-out; }
  .benefit-art.is-art-entering { animation: art-arrive 700ms cubic-bezier(.22,1,.36,1) both; animation-delay: var(--art-delay, 0ms); }
  .benefit-art { transition: translate 240ms cubic-bezier(.22,1,.36,1), scale 240ms cubic-bezier(.22,1,.36,1); }
  :is(.site-home, .site-inner) :is(.btn, .preview-register, .preview-login, .android-qr-toggle, .android-flow-play, .outline-video-trigger, .outline-video-close, .show-password) {
    touch-action: manipulation;
  }
  :is(.site-home, .site-inner) :is(a.btn[href], button.btn:enabled, .preview-register, .preview-login, .android-qr-toggle, .android-flow-play, .outline-video-trigger, .outline-video-close, .show-password).is-motion-pressed { scale: .98; transition-duration: 0ms; }
  :is(.site-home, .site-inner) :is(a.btn[href], button.btn:enabled, .preview-register, .preview-login, .android-qr-toggle, .android-flow-play, .outline-video-trigger, .outline-video-close, .show-password) { transition-property: background-color, border-color, color, box-shadow, transform, scale; transition-duration: 160ms; }
  :is(.btn, .textlink, .help-overview-link, .outline-video-trigger) > .icon { transition: translate 160ms cubic-bezier(.22,1,.36,1); }
  .android-qr-panel:not([hidden]) { animation: panel-arrive 160ms cubic-bezier(.22,1,.36,1) both; transform-origin: top center; }
  .outline-video-dialog[open] { animation: video-arrive 180ms cubic-bezier(.22,1,.36,1) both; }
  .outline-video-dialog[open]::backdrop { animation: veil-arrive 160ms ease-out both; }
  details.qa[open] > .answer { animation: answer-arrive 160ms ease-out both; }
  .tier-price.is-price-changing { animation: price-arrive 160ms ease-out both; }
}
/* Lift the illustration, not the reading surface. Keep the original hover colors. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.v9-product #P5-benefits, .site-home #membership) .benefit-grid article:hover { transform: none; }
  .benefit-grid article:is(:hover, :focus-within) .benefit-art { translate: 0 -6px; scale: 1.05; }
  :is(.btn, .textlink, .help-overview-link, .outline-video-trigger):is(:hover, :focus-visible) > .icon { translate: 6px 0; }
}
@keyframes art-arrive { from { opacity: .15; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes panel-arrive { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes video-arrive { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes veil-arrive { from { opacity: 0; } to { opacity: 1; } }
@keyframes answer-arrive { from { opacity: .3; } to { opacity: 1; } }
@keyframes price-arrive { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-route-surface { transform: none !important; transition: none; }
  .benefit-art, .benefit-art img, .android-qr-panel, .outline-video-dialog, details.qa > .answer, .tier-price { animation: none !important; transition: none; }
  :is(.site-home, .site-inner) .is-motion-pressed { scale: 1; }
}

/* Reuse the existing route artwork's coordinates and blue, without changing page layout. */
.hero-flow-traces { position: absolute; left: 50%; bottom: 0; width: max(100%, 1440px); height: 320px; translate: -50% 0; pointer-events: none; fill: none; stroke: #91b4ff; stroke-width: 3; stroke-linecap: round; }
.hero-flow-traces path { opacity: 0; stroke-dasharray: 7 93; }
@media (max-width: 600px) { .hero-flow-traces { left: 62%; width: 1080px; height: 240px; translate: -62% 0; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-guide.is-guide-entering { animation: guide-arrive 900ms cubic-bezier(.22,1,.36,1) both; }
  .is-hero-flowing .hero-flow-traces path { animation: hero-route-flow 1800ms linear 2 both; animation-play-state: paused; }
  .is-hero-flowing .hero-flow-traces path:nth-child(2) { animation-delay: 200ms; }
  .is-hero-flowing.is-motion-visible .hero-flow-traces path { animation-play-state: running; }
}
@keyframes guide-arrive { from { opacity: .2; transform: translateY(32px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes hero-route-flow { 0% { stroke-dashoffset: 100; opacity: 0; } 15%, 75% { opacity: .9; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
 .hero-guide.is-guide-entering, .hero-flow-traces path { animation: none !important; }
 .hero-guide, .benefit-art { translate: none !important; scale: none !important; transform: none !important; }
 .hero-flow-traces { display: none; }
}
