/* Motion communicates the call-to-request flow; reading content stays visible. */
.motion-enabled [data-reveal] {
  opacity: 0;
  translate: 0 16px;
  transition:
    opacity 0.65s var(--reveal-delay, 0ms),
    translate 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
}
.motion-enabled [data-reveal].is-revealed {
  opacity: 1;
  translate: 0 0;
}
.motion-enabled .hero-visual {
  background-size: 150% 150%;
  animation: stage-light 16s ease-in-out infinite;
}
.motion-enabled .hero-call .mini-chat {
  animation: conversation-outline 12s ease-in-out infinite;
}
.motion-enabled .hero-call .mini-chat:nth-child(2) {
  animation-delay: 3.3s;
}
.motion-enabled .voice-orb i,
.motion-enabled .waveform i,
.motion-enabled .final-wave i {
  transform-origin: center;
  animation: voice-bar 1.8s ease-in-out infinite;
}
.motion-enabled .voice-orb i:nth-child(2n),
.motion-enabled .waveform i:nth-child(2n),
.motion-enabled .final-wave i:nth-child(2n) {
  animation-delay: -0.6s;
}
.motion-enabled .voice-orb i:nth-child(3n),
.motion-enabled .waveform i:nth-child(3n),
.motion-enabled .final-wave i:nth-child(3n) {
  animation-delay: -1.2s;
}
.motion-enabled .hero-connector:after {
  content: "";
  position: absolute;
  left: 0;
  width: 6px;
  height: 6px;
  background: #7b95f4;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #b2c5ff25;
  animation: hero-packet 4.8s ease-in-out infinite;
}
.motion-enabled .hero-request .result-field {
  animation: hero-field 12s ease-in-out infinite;
}
.motion-enabled .hero-request .result-field:nth-child(2) {
  animation-delay: 1.2s;
}
.motion-enabled .hero-request .result-field:nth-child(3) {
  animation-delay: 2.4s;
}
.hero-request .field-capture-check {
  opacity: 1;
}
.motion-enabled .hero-request .result-next {
  animation: next-action 12s 6s ease-in-out infinite;
}
.motion-enabled .demo-board.is-previewing .play-button:before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid #7992ff70;
  border-radius: 50%;
  animation: play-invitation 2.7s ease-out infinite;
  pointer-events: none;
}
.motion-enabled .demo-board .capture-bridge:after {
  content: "";
  position: absolute;
  left: 0;
  top: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7090ef;
  box-shadow: 0 0 0 3px #abbffc2b;
  animation: bridge-packet 4.8s ease-in-out infinite;
}
.motion-enabled .demo-board.is-playing .capture-bridge:after {
  animation-duration: 2.2s;
}
.motion-enabled .demo-board[data-voice-stage="review"] .capture-bridge:after {
  background: #d2a44b;
}
.motion-enabled
  .scenario-tabs[data-rotation-enabled="true"]
  button[aria-selected="true"]:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: left;
  background: #94acff;
  animation: scenario-countdown var(--rotation-duration, 14000ms) linear
    forwards;
}
.motion-enabled
  .scenario-tabs[data-rotation-state="paused"]
  button[aria-selected="true"]:after {
  animation-play-state: paused;
}
.motion-enabled .situation.is-featured .scene-signal .status-dot {
  animation: status-pulse 1.8s ease-in-out infinite;
}
.motion-enabled .situation.is-featured .situation-art > img {
  animation: clinic-breathe 7.2s ease-in-out infinite;
}
.motion-enabled .workflow-ui .workspace-callout {
  animation: workflow-outline 8s ease-in-out infinite;
}
.motion-enabled .route-line i {
  animation: route-packet 3s linear infinite;
}
.motion-enabled .route-line:nth-of-type(4) i {
  animation-delay: 1.5s;
}
.motion-enabled .server-stack b:before {
  animation: status-pulse 2.5s ease-in-out infinite;
}
.motion-enabled .server-stack b:nth-child(2):before {
  animation-delay: 0.6s;
}
.motion-enabled .server-stack b:nth-child(3):before {
  animation-delay: 1.2s;
}
.motion-enabled .onboarding > div > span {
  animation: onboarding-focus 12s ease-in-out infinite;
}
.motion-enabled .onboarding > div:nth-child(2) > span {
  animation-delay: 4s;
}
.motion-enabled .onboarding > div:nth-child(3) > span {
  animation-delay: 8s;
}
.motion-enabled dialog.mobile-menu[open] {
  animation: menu-enter 0.22s ease-out;
}
.motion-scene:not(.is-in-view),
.motion-scene:not(.is-in-view) *,
.motion-scene:not(.is-in-view):after,
.motion-scene:not(.is-in-view) *:before,
.motion-scene:not(.is-in-view) *:after,
.motion-backgrounded *,
.motion-backgrounded *:before,
.motion-backgrounded *:after,
.motion-dialog-open main *,
.motion-dialog-open main *:before,
.motion-dialog-open main *:after {
  animation-play-state: paused !important;
}
@keyframes stage-light {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@keyframes voice-bar {
  0%,
  100% {
    scale: 1 0.72;
  }
  50% {
    scale: 1 1;
  }
}
@keyframes conversation-outline {
  0%,
  15%,
  65%,
  100% {
    box-shadow: 0 0 0 0 #99b3ff00;
  }
  25%,
  48% {
    box-shadow: 0 0 0 2px #a9bfff66;
  }
}
@keyframes hero-packet {
  0%,
  10% {
    left: 0;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  75% {
    left: calc(100% - 6px);
    opacity: 1;
  }
  90%,
  100% {
    left: calc(100% - 6px);
    opacity: 0;
  }
}
@keyframes hero-field {
  0%,
  16%,
  68%,
  100% {
    background: #edf2ff00;
    box-shadow: 0 0 0 5px #edf2ff00;
  }
  28%,
  50% {
    background: #edf2ff;
    box-shadow: 0 0 0 5px #edf2ff;
  }
}
@keyframes next-action {
  0%,
  22%,
  78%,
  100% {
    border-color: #e7ecf7;
  }
  36%,
  64% {
    border-color: #c2d1f8;
  }
}
@keyframes play-invitation {
  0% {
    scale: 0.9;
    opacity: 0.9;
  }
  75%,
  100% {
    scale: 1.24;
    opacity: 0;
  }
}
@keyframes bridge-packet {
  0%,
  8% {
    left: 0;
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  80% {
    left: calc(100% - 6px);
    opacity: 1;
  }
  95%,
  100% {
    left: calc(100% - 6px);
    opacity: 0;
  }
}
@keyframes scenario-countdown {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes status-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 #5bb89a00;
  }
  50% {
    box-shadow: 0 0 0 5px #5bb89a22;
  }
}
@keyframes clinic-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}
@keyframes workflow-outline {
  0%,
  100% {
    border-color: #a3b5e7;
  }
  50% {
    border-color: #496eef;
  }
}
@keyframes route-packet {
  from {
    left: 0;
  }
  to {
    left: calc(100% - 5px);
  }
}
@keyframes route-packet-vertical {
  from {
    top: 0;
  }
  to {
    top: calc(100% - 5px);
  }
}
@keyframes onboarding-focus {
  0%,
  29% {
    background: #e6edff;
    border-color: #adbfef;
    box-shadow: 0 0 0 5px #dce6ff50;
  }
  35%,
  100% {
    background: #f0f3fb;
    border-color: #d6def0;
    box-shadow: 0 0 0 0 #dce6ff00;
  }
}
@keyframes menu-enter {
  from {
    opacity: 0;
    translate: 0 -8px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (max-width: 700px) {
  .motion-enabled .hero-connector:after {
    left: calc(50% - 3px);
    top: 0;
    animation-name: hero-packet-vertical;
  }
  .motion-enabled .route-line i {
    animation-name: route-packet-vertical;
  }
}
@keyframes hero-packet-vertical {
  0%,
  10% {
    top: 0;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  75% {
    top: calc(100% - 6px);
    opacity: 1;
  }
  90%,
  100% {
    top: calc(100% - 6px);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    translate: none !important;
  }
  .situation-art,
  .situation:hover .situation-art,
  .situation.is-featured .situation-art {
    transform: none;
  }
  .button:hover:not(:disabled) {
    transform: none;
  }
}
