/* Card feedback */
@media (min-width: 701px) {
  .site :is(.capability-list, .stage-list) { overflow: visible; }
}
:is(.capability-card, .feature-card, .stage-list > div) {
  transition: transform 220ms ease-out;
}
@media (hover: hover) {
  :is(.capability-card, .feature-card, .stage-list > div):hover {
    z-index: 1;
    transform: translateY(-.25rem) scale(1.018);
    box-shadow: 0 .6rem 1.5rem rgba(64, 49, 132, .13), inset 0 0 0 1px #b8a9ff;
  }
  .feature-card:hover { border-color: #9d84ff; }
  .connection-list > div:hover { background-color: #6842d8; }
  .connection-list > div:hover :is(p, div) { color: white; }
}

/* The decorative fades at the sides must let the pointer reach the cards. */
#ask > :not(.section-content) { pointer-events: none; }
#ask .scenario-row > div {
  display: flex; align-items: center; justify-content: center;
  width: 18.625rem; height: 5.5rem; flex: none;
  background: #ededef; border: 1px solid transparent; border-radius: 1.25rem;
}
#ask .scenario-row > div > p {
  margin: 0; color: #444954; font-size: 1rem; font-weight: 500;
  line-height: 1.4; text-align: center;
}
@media (hover: hover) {
  #ask .scenario-row > div:hover { border-color: #7e70fe; background-color: #f0efff; }
  #ask .scenario-row > div:hover > p { color: #6652e8; font-weight: 700; }
}
@keyframes scenario-loop {
  to { transform: translateX(calc(-100% / 3)); }
}
@keyframes phone-float {
  0%, 100% { transform: translateY(.23rem); }
  50% { transform: translateY(-.23rem); }
}
@media (prefers-reduced-motion: no-preference) {
  #ask .loop-ready { overflow: clip; }
  #ask .loop-ready .scenario-row {
    --chip-gap: 1.25rem;
    display: flex; left: 0; width: max-content; gap: var(--chip-gap);
    padding-right: var(--chip-gap); overflow: visible;
    animation: scenario-loop 40s linear infinite paused;
  }
  #ask .loop-ready .scenario-row:nth-child(2) { animation-direction: reverse; animation-delay: -3s; }
  #ask .loop-ready .scenario-row:nth-child(3) { animation-delay: -8s; }
  #ask .loop-ready.in-view:not(:focus-visible) .scenario-row { animation-play-state: running; }
  @media (hover: hover) {
    #ask .loop-ready.in-view:not(:focus-visible) .scenario-row:hover { animation-play-state: paused; }
  }
  .phone-pair { animation: phone-float 4s ease-in-out infinite paused; }
  .phone-pair.in-view { animation-play-state: running; }
  @media (max-width: 700px) {
    #ask .loop-ready .scenario-row { --chip-gap: .65rem; }
    #ask .loop-ready .scenario-row > div { width: 13rem; height: 3.8rem; }
  }
}
@media (prefers-reduced-motion: reduce) {
  #ask .scenario-row > .scenario-copy { display: none; }
  :is(.capability-card, .feature-card, .stage-list > div) { transition: none; }
  :is(.capability-card, .feature-card, .stage-list > div):hover { transform: none; }
  @media (max-width: 700px) {
    #ask .scenario-row > div { width: 100%; height: auto; }
  }
}
