.flow-section h2 { max-width: 28ch; }
.flow-intro { margin-top: .85rem; max-width: 66ch; }
.flow-diagram { margin: 1.25rem 0 0; }
.flow-diagram img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--sva-border);
  border-radius: var(--sva-radius);
  background: var(--sva-soft);
}
.flow-diagram figcaption {
  max-width: 74ch;
  margin-top: .75rem;
  color: var(--sva-muted);
  font-size: .9rem;
}
.flow-steps {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}
.flow-steps li {
  position: relative;
  padding: 1rem 1.2rem;
  border: 1px solid var(--sva-border);
  border-radius: var(--sva-radius);
  background: var(--sva-white);
}
.flow-steps li + li::before {
  position: absolute;
  top: -1.9rem;
  left: 1.6rem;
  width: 1.1rem;
  height: 1.55rem;
  background:
    linear-gradient(var(--sva-primary), var(--sva-primary)) center top / 2px 1.15rem no-repeat,
    linear-gradient(45deg, transparent 44%, var(--sva-primary) 46% 58%, transparent 60%) left .15rem bottom .1rem / .4rem .4rem no-repeat,
    linear-gradient(-45deg, transparent 44%, var(--sva-primary) 46% 58%, transparent 60%) right .15rem bottom .1rem / .4rem .4rem no-repeat;
  content: "";
}
.flow-steps li:nth-child(2) {
  background: var(--sva-soft);
  border-color: var(--sva-accent);
}
.flow-steps strong { font-size: 1.05rem; }
.flow-steps p { margin-top: .2rem; }

.example-wave {
  display: flex;
  align-items: center;
  gap: .28rem;
  width: fit-content;
  height: 1.75rem;
  padding-inline: .65rem;
  background: rgb(203 244 80 / 12%);
  border-radius: 99px;
}
.example-wave i {
  width: .2rem;
  height: .8rem;
  border-radius: 99px;
  background: var(--sva-accent);
}
.example-wave i:nth-child(3n + 1) { height: .43rem; }
.example-wave i:nth-child(3n + 2) { height: 1.06rem; }
.example-wave i:nth-child(2n) { background: var(--sva-soft); }

@media (prefers-reduced-motion: no-preference) {
  .example-wave i { animation: example-wave 1.15s ease-in-out 3 alternate; }
  .example-wave i:nth-child(2n) { animation-delay: -.35s; }
  .example-wave i:nth-child(3n) { animation-delay: -.75s; }
  .flow-steps li, .card {
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  }
  .card:focus-within {
    transform: translateY(-3px);
    border-color: var(--sva-accent);
    box-shadow: 0 8px 20px rgb(17 16 18 / 10%);
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .flow-steps li:hover, .card:hover {
    transform: translateY(-3px);
    border-color: var(--sva-accent);
    box-shadow: 0 8px 20px rgb(17 16 18 / 10%);
  }
}

@keyframes example-wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(.45); }
}

@media (max-width: 50rem) {
  .flow-diagram img { display: none; }
  .flow-steps { display: grid; gap: 2rem; }
}

.flow-section > .wrap > .eyebrow { margin-bottom: .85rem; }
.flow-process { margin-top: 1.5rem; }
.flow-process .process-marker { font-size: clamp(2.5rem, 5vw, 4.5rem); }

@media (max-width: 860px) {
  .flow-process { grid-template-columns: 1fr; }
  .flow-process ~ .flow-diagram { display: none; }
}
