/* The incumbent site owns layout, type and color; only finite arrivals live here. */
html.fl-motion {
  --fl-ease-out: cubic-bezier(.22, .7, .3, 1);
  --fl-move: 240ms;
  --fl-feedback: 180ms;
}

/* One layer owns the panel entrance; the baseline cannot start a second one. */
.product-view {
  animation: none;
}

/* Only JavaScript-prepared, still-offscreen targets receive a starting state.
   The default/no-JS/reduced page is the complete, selectable static document. */
@media (prefers-reduced-motion: no-preference) {
  .fl-motion:not(.fl-motion-reduced) .fl-motion-ready {
    opacity: var(--fl-start-opacity, .55);
    translate: var(--fl-start-x, 0px) var(--fl-start-y, 24px);
  }

  .fl-motion:not(.fl-motion-reduced) .fl-motion-ready[data-fl-depth] {
    scale: var(--fl-start-scale, 1);
  }

  .fl-motion:not(.fl-motion-reduced) .fl-motion-playing {
    will-change: translate, opacity;
  }

  .fl-motion:not(.fl-motion-reduced) .fl-motion-playing[data-fl-depth] {
    will-change: translate, opacity, scale;
  }
}

.fl-motion .button,
.fl-motion .demo-scan,
.fl-motion .scene-result button {
  transition: transform var(--fl-move) var(--fl-ease-out),
    background-color var(--fl-feedback) ease,
    color var(--fl-feedback) ease;
}

.fl-motion .button > span[aria-hidden="true"],
.fl-motion .device-toggle {
  display: inline-block;
  transition: transform 280ms var(--fl-ease-out);
}

.fl-motion .button:active,
.fl-motion .demo-scan:active,
.fl-motion .scene-result button:active {
  transform: translateY(0) scale(.985);
  transition-duration: 100ms;
}

.fl-motion .button:focus-visible,
.fl-motion .demo-scan:focus-visible {
  outline-color: #f9a3c0;
}

.fl-motion .plans .button:focus-visible,
.fl-motion footer .button:focus-visible {
  outline-color: #1a2039;
}

.fl-motion .text-link,
.fl-motion .nav nav a,
.fl-motion .footer-top a,
.fl-motion .view-link {
  text-decoration-thickness: .065em;
  text-underline-offset: .28em;
  transition: text-decoration-color var(--fl-feedback) ease;
}

.fl-motion .view-tabs button {
  transition: color var(--fl-feedback) ease,
    border-bottom-color 240ms var(--fl-ease-out);
}

/* The functional accordion owns intrinsic height, open state and keyboard UX. */
.fl-motion .device-download > summary {
  transition: background-color var(--fl-feedback) ease,
    color var(--fl-feedback) ease;
}

.fl-motion .device-download[open] > summary .device-toggle {
  transform: rotate(45deg);
}

.fl-motion .device-download > summary:active .device-toggle {
  transform: scale(.88);
}

.fl-motion .device-download[open] > summary:active .device-toggle {
  transform: rotate(45deg) scale(.88);
}

@media (hover: hover) and (pointer: fine) {
  .fl-motion .button:hover > span[aria-hidden="true"] {
    transform: translate(3px, -3px);
  }

  .fl-motion .demo-scan:hover {
    transform: translateY(-2px);
    background-color: #ffc3d7;
  }

  .fl-motion .text-link:hover,
  .fl-motion .text-link:focus-visible {
    text-decoration-color: currentColor;
  }

  .fl-motion .device-download > summary:hover .device-toggle {
    transform: translateX(3px);
  }

  .fl-motion .device-download[open] > summary:hover .device-toggle {
    transform: translateX(3px) rotate(45deg);
  }
}

@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .fl-motion:not(.fl-motion-reduced) .nav.nav-open nav {
    transform-origin: 50% 0;
    animation: fl-menu-open 280ms var(--fl-ease-out);
  }
}

@keyframes fl-menu-open {
  from { opacity: .7; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

html.fl-motion-reduced .nav.nav-open nav {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .fl-motion .button > span[aria-hidden="true"],
  .fl-motion .device-toggle {
    transform: none;
    transition: none;
  }
}
