/* FP1 lightweight presentation. Retain gradients, colours and layout without
   continuous decorative repaints. The interactive showcase still rotates. */
html body.product-page .product-hero h1,
html body.support-page .support-hero-copy h1,
html body.home-page .hero-copy h1 span {
  animation: none !important;
  background-position: 45% 50% !important;
  filter: none !important;
  will-change: auto !important;
}
html body *,
html body *::before,
html body *::after {
  animation-iteration-count: 1 !important;
}
html body .btn::before,
html body .btn::after,
html body .home-hero::before,
html body .hero-signals li::before,
html body .showcase-status-dot,
html body .showcase-panel::before,
html body .showcase-panel::after {
  animation: none !important;
}
html body .site-header {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html body .js .reveal,
html body .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  html body *, html body *::before, html body *::after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
/* Hidden menus and showcase captions must not run their own gradient loops. */
html body.home-page .home-showcase .showcase-app-heading h2,
html body .nav-apps-menu > a:not(.nav-apps-all) strong,
html body.support-page .support-app-identity strong,
html body.support-page .support-hero-v2 h1,
html body.support-page .support-directory > .section-head h2 {
  animation: none !important;
  background-position: 45% 50% !important;
  filter: none !important;
  will-change: auto !important;
}
html.js body .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Bounded, compositor-friendly motion. Content remains readable throughout;
   no gradient/filter animation, permanent will-change, or JavaScript loop. */
@keyframes fp1-title-enter {
  from { opacity: .84; translate: 0 6px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes fp1-card-enter {
  from { translate: 0 5px; }
  to { translate: 0 0; }
}
@keyframes fp1-preview-enter {
  from { opacity: .86; }
  to { opacity: 1; }
}
@keyframes fp1-button-glint {
  from { transform: translateX(0) rotate(18deg); }
  to { transform: translateX(450%) rotate(18deg); }
}

@media (prefers-reduced-motion: no-preference) {
  html body.product-page .product-hero h1,
  html body.support-page .support-hero-copy h1,
  html body.home-page .hero-copy h1 {
    animation: fp1-title-enter 420ms ease-out 1 !important;
  }
  html.js body .content-group.reveal.is-visible,
  html.js body .home-app-card.reveal.is-visible,
  html.js body .faq-section.reveal.is-visible {
    animation: fp1-card-enter 260ms ease-out 1 !important;
  }
  html body.home-page .home-showcase .showcase-panel.is-active {
    animation: fp1-preview-enter 220ms ease-out 1 !important;
  }
  html body .btn-primary:focus-visible::after,
  html body .button-primary:focus-visible::after {
    animation: fp1-button-glint 450ms ease-out 1 !important;
  }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  html body .btn-primary:hover::after,
  html body .button-primary:hover::after {
    animation: fp1-button-glint 450ms ease-out 1 !important;
  }
}

/* FP1 bounded hero colour sweep: keep homepage palette; replace the flat
   app/Support turquoise with lavender, periwinkle, blue and ice-blue.
   Only headline paint changes; no new JS, filter, layout or infinite loop. */
html body.product-page .product-hero h1,
html body.support-page .support-hero-copy h1 {
  background-image: linear-gradient(105deg, #b7b7ff 0%, #9c86ff 25%, #789aff 46%, #59c8ff 68%, #83eeff 84%, #b7b7ff 100%) !important;
  background-size: 240% 100% !important;
}
@property --fp1-hero-colour-position {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 45%;
}
@keyframes fp1-hero-colour-sweep {
  0% { --fp1-hero-colour-position: 45%; }
  40% { --fp1-hero-colour-position: 100%; }
  75% { --fp1-hero-colour-position: 0%; }
  100% { --fp1-hero-colour-position: 45%; }
}
@media (prefers-reduced-motion: no-preference) {
  html body.home-page .hero-copy h1 span,
  html body.product-page .product-hero h1,
  html body.support-page .support-hero-copy h1 {
    background-position: var(--fp1-hero-colour-position) 50% !important;
    filter: none !important;
    will-change: auto !important;
    animation: fp1-hero-colour-sweep 4.8s steps(72,end) 1 both !important;
    animation-delay: 0s !important;
  }
  html body.product-page .product-hero h1,
  html body.support-page .support-hero-copy h1 {
    animation: fp1-title-enter 420ms ease-out 1, fp1-hero-colour-sweep 4.8s steps(72,end) 1 both !important;
  }
}
