/* A small, readable funding-to-install flow. The base line needs no JavaScript. */
.performance-flow {
  --performance-flow-node-size: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--white, #fff);
  font-family: var(--font, Manrope, Arial, sans-serif);
}

.performance-flow__step {
  --performance-flow-delay: 0ms;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.performance-flow__step:nth-child(2) {
  --performance-flow-delay: 260ms;
}

.performance-flow__step:not(:last-child)::before,
.performance-flow__step:not(:last-child)::after {
  position: absolute;
  top: calc(var(--performance-flow-node-size) / 2);
  left: calc(50% + var(--performance-flow-node-size) / 2);
  right: calc(-50% + var(--performance-flow-node-size) / 2);
  height: 1px;
  pointer-events: none;
}

.performance-flow__step:not(:last-child)::before {
  content: '';
  background: #69788f;
}

.performance-flow__node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: 0 0 var(--performance-flow-node-size);
  width: var(--performance-flow-node-size);
  height: var(--performance-flow-node-size);
  border: 1px solid #69788f;
  border-radius: 50%;
  background: var(--ink, #20232b);
  color: #b9c9ff;
}

.performance-flow__node svg {
  display: block;
  width: 19px;
  height: 19px;
}

.performance-flow__step:last-child .performance-flow__node {
  border-color: var(--lime, #dfff83);
  background: var(--lime, #dfff83);
  color: var(--ink, #20232b);
}

.performance-flow__label {
  display: block;
  width: 100%;
  padding-inline: 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  min-height: 3em;
  letter-spacing: -.01em;
  color: #e6eaf3;
}

/* Only a successfully observed flow can acquire an animated overlay.
   The muted guide and every label remain visible throughout the animation. */
@media (prefers-reduced-motion: no-preference) {
  .motion-enabled .performance-flow.is-flow-observed.is-flow-animated.is-drawn
    .performance-flow__step:not(:last-child)::after {
    content: '';
    background: #b9c9ff;
    transform-origin: left;
    animation: performance-flow-trace 650ms cubic-bezier(.2, .65, .3, 1) both;
    animation-delay: var(--performance-flow-delay);
  }
}

@keyframes performance-flow-trace {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .performance-flow__step::after {
    animation: none !important;
    transform: none !important;
  }
}
