/* Scoped animation treatment for the traditional vs i-XALL change-cycle comparison. */
.change-compare article.is-flow-ready {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.change-compare article.is-flow-ready::after {
  content: "";
  position: absolute;
  inset: -45% -20%;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-55%) rotate(-8deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .48), transparent);
}

.change-compare article.is-running::after {
  animation: flow-ambient-sweep 2.6s ease-out 1;
}

.change-compare .flow-step {
  position: relative;
  opacity: .46;
  transform: translateY(5px) scale(.985);
  filter: saturate(.7);
  transition:
    opacity .42s ease,
    transform .42s cubic-bezier(.2, .8, .2, 1),
    filter .42s ease,
    border-color .42s ease,
    background .42s ease,
    box-shadow .42s ease;
}

.change-compare .flow-step::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 0 1px currentColor, 0 0 20px currentColor;
  transition: opacity .35s ease;
}

.change-compare .flow-step.is-current {
  opacity: 1;
  transform: translateY(-2px) scale(1.025);
  filter: none;
}

.change-compare .flow-step.is-current::after {
  opacity: .34;
  animation: flow-node-pulse 1.1s ease-in-out infinite;
}

.change-compare .flow-step.is-complete {
  opacity: .78;
  transform: none;
  filter: none;
}

.legacy-flow .flow-step.is-current {
  color: #354b69;
  border-color: #9aabc0;
  background: #fff;
  box-shadow: 0 10px 24px rgba(71, 91, 119, .15);
}

.action-flow .flow-step.is-current {
  color: #fff;
  border-color: #5d76ff;
  background: linear-gradient(115deg, #1a2c52, #10354d);
  box-shadow: 0 12px 28px rgba(50, 118, 255, .22), 0 0 22px rgba(37, 199, 220, .12);
}

.change-compare .flow-connector {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  opacity: .28;
  transform: scale(.88);
  transition: opacity .3s ease, transform .35s ease, color .35s ease, text-shadow .35s ease;
}

.change-compare .flow-connector::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  opacity: 0;
  transform: translateX(-35%) scaleX(.15);
  background: linear-gradient(90deg, transparent, currentColor, #fff);
  box-shadow: 0 0 10px currentColor;
}

.change-compare .flow-connector.is-lit {
  opacity: 1;
  transform: scale(1.05);
  text-shadow: 0 0 11px currentColor;
}

.change-compare .flow-connector.is-lit::after {
  animation: flow-connector-glow .58s ease-out both;
}

.legacy-flow .flow-connector.is-lit { color: #7188a3; }
.action-flow .flow-connector.is-lit { color: #42d6e0; }

.change-compare article.flow-is-complete {
  transition: border-color .5s ease, box-shadow .5s ease;
}

.legacy-flow.flow-is-complete {
  border-color: #cbd5e2;
  box-shadow: 0 14px 32px rgba(66, 84, 109, .08);
}

.action-flow.flow-is-complete {
  border-color: #2d6078;
  box-shadow: 0 22px 58px rgba(7, 17, 31, .18), 0 0 28px rgba(37, 199, 220, .1);
}

.action-flow.flow-is-complete .flow-step:last-child {
  border-color: #5f77ff;
  box-shadow: 0 0 24px rgba(74, 107, 255, .25);
}

@keyframes flow-node-pulse {
  0%, 100% { opacity: .22; }
  50% { opacity: .48; }
}

@keyframes flow-connector-glow {
  0% { opacity: 0; transform: translateX(-45%) scaleX(.15); }
  45% { opacity: 1; }
  100% { opacity: 0; transform: translateX(45%) scaleX(1); }
}

@keyframes flow-ambient-sweep {
  0% { opacity: 0; transform: translateX(-55%) rotate(-8deg); }
  35% { opacity: .16; }
  100% { opacity: 0; transform: translateX(55%) rotate(-8deg); }
}

@media (max-width: 720px) {
  .change-compare .flow-step.is-current { transform: translateY(-1px) scale(1.015); }
  .change-compare .flow-connector { min-width: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .change-compare article.is-flow-ready::after { display: none; }
  .change-compare .flow-step,
  .change-compare .flow-connector {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
  }
  .change-compare .flow-step::after,
  .change-compare .flow-connector::after { display: none !important; }
}
