:root {
  --motion-fast: 140ms;
  --motion-intro: 920ms;
  --motion-product: 520ms;
  --motion-state: 280ms;
  --motion-reveal: 760ms;
  --motion-loop: 7200ms;
  --motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
}
.reading-progress {
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  pointer-events: none;
  overflow: hidden;
}
.reading-progress span {
  display: block;
  height: 100%;
  background: var(--blue);
  transform-origin: left center;
  transform: scaleX(var(--reading-progress, 0));
}
.motion-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(850px, 100%);
  margin: 0 auto 34px;
  padding: 6px 0 12px;
  isolation: isolate;
}
.flow-track {
  position: absolute;
  z-index: -1;
  top: 34px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: #ccdaf0;
}
.flow-track::after {
  content: '';
  position: absolute;
  inset: -3px 0;
  background: linear-gradient(90deg, transparent, rgb(37 99 235 / 12%), transparent);
}
.flow-packet {
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 12px rgb(37 99 235 / 30%);
  opacity: 0;
}
.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.flow-symbol {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: #fff;
  border: 1px solid #d4e0f2;
  border-radius: 17px;
  color: var(--blue-deep);
  box-shadow: 0 5px 14px rgb(37 99 235 / 6%);
}
.flow-symbol svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flow-symbol img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}
.flow-symbol::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid var(--blue);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
}
.flow-brand .flow-symbol {
  background: #edf5ff;
  border-color: #c2d5f2;
}
.flow-brand > span:last-child {
  color: var(--ink);
}
.motion-enabled .flow-packet {
  animation: signal-travel var(--motion-loop) linear infinite;
  animation-play-state: paused;
}
.motion-enabled .flow-node:not(.flow-brand) .flow-symbol::after {
  animation: node-pulse var(--motion-loop) var(--motion-ease) infinite;
  animation-delay: var(--flow-node-sync-delay);
  animation-play-state: paused;
}
.motion-enabled .flow-node:not(.flow-brand) .flow-symbol {
  animation: node-lift var(--motion-loop) var(--motion-ease) infinite;
  animation-delay: var(--flow-node-sync-delay);
  animation-play-state: paused;
}
.motion-enabled .motion-scene.is-motion-visible .flow-symbol {
  animation-play-state: running;
}
@keyframes node-lift {
  0%,
  17%,
  35%,
  100% {
    transform: translateY(0) scale(1);
  }
  24%,
  29% {
    transform: translateY(-9px) scale(1.08);
  }
}
.motion-enabled .motion-scene.is-motion-visible .flow-packet,
.motion-enabled .motion-scene.is-motion-visible .flow-symbol::after {
  animation-play-state: running;
}
@keyframes signal-travel {
  0% {
    opacity: 0;
    transform: translateX(0) scale(0.6);
  }
  8% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(var(--flow-travel, 600px)) scale(0.6);
  }
}
@keyframes node-pulse {
  0%,
  16%,
  38%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
  24% {
    opacity: 0.65;
    transform: scale(1);
  }
  37% {
    opacity: 0;
    transform: scale(1.5);
  }
}
.motion-enabled .product-stage {
  perspective: 1500px;
}
.motion-enabled .product-window {
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-origin: center;
  transition:
    transform 500ms var(--motion-ease),
    box-shadow 500ms var(--motion-ease);
}
.motion-enabled .product-window.is-tilting {
  transition:
    transform 100ms ease-out,
    box-shadow 500ms var(--motion-ease);
  box-shadow: 0 28px 65px -14px rgb(48 78 127 / 22%);
}
.product-stage .screenshot-button {
  overflow: hidden;
}
.product-transition-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}
.product-stage .expand-label {
  z-index: 2;
}
.motion-enabled .button {
  transition:
    transform var(--motion-fast) ease-out,
    background-color var(--motion-fast),
    box-shadow var(--motion-state);
}
.motion-enabled .button:hover {
  transform: translateY(-3px);
}
.motion-enabled .button:active {
  transform: translateY(0) scale(0.97);
}
.motion-enabled .button > span {
  transition: transform var(--motion-state) var(--motion-ease);
}
.motion-enabled .button:hover > span {
  transform: translate(3px, -3px);
}
.motion-enabled .text-link span {
  display: inline-block;
  transition: transform var(--motion-state) var(--motion-ease);
}
.motion-enabled .text-link:hover span {
  transform: translateX(6px);
}
.motion-enabled .feature-number {
  transition: transform 400ms var(--motion-ease);
}
.motion-enabled .benefit-columns article:hover .feature-number {
  transform: translateY(-4px);
}
.motion-enabled .motion-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity var(--motion-reveal) var(--motion-ease),
    transform var(--motion-reveal) var(--motion-ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.motion-enabled .motion-reveal.is-revealed {
  opacity: 1;
  transform: none;
}
.motion-enabled .motion-reveal:focus-within {
  opacity: 1;
  transform: none;
  transition: none;
}
.motion-enabled .phone-frame {
  animation: phone-float 6800ms ease-in-out infinite;
  animation-play-state: paused;
  transform-origin: center bottom;
}
.motion-enabled .is-motion-visible .phone-frame {
  animation-play-state: running;
}
@keyframes phone-float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-13px) rotate(1deg);
  }
}
.journey-steps {
  position: relative;
}
.motion-enabled .journey-steps::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--blue);
  transform-origin: left;
  transform: scaleX(var(--journey-progress, 0));
}
.motion-enabled .institution-flow > div {
  position: relative;
}
.motion-enabled .institution-flow > div::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: #9dc5ff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms var(--motion-ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.motion-enabled .institution-flow > div.is-revealed::after {
  transform: scaleX(1);
}
.motion-control {
  position: fixed;
  z-index: 35;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #cbd8eb;
  border-radius: 30px;
  background: rgb(255 255 255 / 96%);
  color: var(--ink);
  font-size: 11px;
  box-shadow: 0 4px 20px rgb(17 28 54 / 8%);
  cursor: pointer;
}
.motion-control svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.motion-enabled .footer-bottom {
  padding-bottom: 65px;
}
.motion-paused *,
.motion-suspended * {
  animation-play-state: paused !important;
}
.motion-paused *::after,
.motion-suspended *::after {
  animation-play-state: paused !important;
}
.motion-paused .motion-reveal,
.motion-reduced .motion-reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
.motion-paused .product-window,
.motion-reduced .product-window {
  transform: none !important;
}
.motion-paused .button:hover {
  transform: none;
}
.motion-reduced .flow-packet {
  display: none;
}
.motion-reduced .motion-control {
  display: none;
}
@media (max-width: 920px) {
  .motion-enabled .journey-steps::before {
    display: none;
  }
  .motion-flow {
    margin-bottom: 28px;
  }
  .flow-symbol {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }
  .flow-track {
    top: 31px;
  }
}
@media (max-width: 640px) {
  .motion-flow {
    padding-top: 0;
    margin-bottom: 25px;
  }
  .flow-symbol {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }
  .flow-symbol svg {
    width: 20px;
    height: 20px;
  }
  .flow-symbol img {
    width: 23px;
    height: 23px;
  }
  .flow-node {
    gap: 12px;
    font-size: 9px;
  }
  .flow-track {
    top: 21px;
  }
  .motion-control {
    right: 12px;
    bottom: 12px;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 10px;
  }
  .motion-enabled .motion-reveal {
    transform: translateY(23px);
  }
  .motion-enabled .motion-reveal.is-revealed {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .motion-flow *,
  .phone-frame {
    animation: none !important;
  }
  .flow-packet {
    display: none;
  }
  .motion-control {
    display: none;
  }
  .motion-enabled .motion-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .motion-enabled .product-window,
  .motion-enabled .button:hover,
  .motion-enabled .text-link:hover span {
    transform: none !important;
  }
  .reading-progress {
    display: none;
  }
}
