/* "See how it works" scroll story. Everything is scoped to .flow-story so it can't touch the rest of the homepage. */
.flow-story{--fs-navy:#22344a;--fs-amber:#e3a83b;--fs-green:#2f8a5b;--fs-red:#c0453a;--fs-scene:#f6f1e7;--fs-line:#deded4;padding-block:96px 24px}
.flow-story .fs-lead{display:grid;gap:14px;max-width:640px;margin-bottom:28px}
.flow-story .fs-skip{justify-self:start;font-size:14px;font-weight:700;color:#2674a4}
.flow-story .fs-skip:hover{text-decoration:underline}

.flow-story .track{height:720vh}
.flow-story .pin{position:sticky;top:0;height:100vh;height:100svh;display:flex;flex-direction:column;justify-content:center;gap:12px}
.flow-story .stage{position:relative;background:var(--fs-scene);border:1px solid var(--fs-line);border-radius:18px;overflow:hidden;box-shadow:0 14px 44px rgba(20,34,50,.14)}
.flow-story .stage svg{display:block;width:100%;height:auto;max-height:calc(100svh - 120px);font-family:inherit}
.flow-story .badge{position:absolute;top:14px;right:14px;display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.flow-story .chip{display:flex;align-items:center;gap:8px;background:#fff;color:var(--fs-navy);border-radius:999px;padding:6px 14px 6px 6px;font-weight:700;font-size:clamp(13px,1.5vw,18px);box-shadow:0 2px 8px rgba(0,0,0,.12)}
.flow-story .chip .n{display:grid;place-items:center;width:1.5em;height:1.5em;border-radius:50%;background:var(--fs-amber);color:#fff;font-size:.8em}
.flow-story .clock{background:var(--fs-navy);color:#fff;border-radius:999px;padding:3px 12px;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}
.flow-story .what-if{font-size:13px;font-weight:700;background:#fff7e6;color:#6b4a12;border:1.5px solid var(--fs-amber);border-radius:999px;padding:6px 12px;box-shadow:0 2px 8px rgba(0,0,0,.1)}
.flow-story .what-if[aria-pressed="true"]{background:var(--fs-green);border-color:var(--fs-green);color:#fff}
.flow-story .mini-cta{font-size:13px;font-weight:700;background:var(--fs-navy);color:#fff;border-radius:999px;padding:7px 14px;box-shadow:0 2px 8px rgba(0,0,0,.14)}
.flow-story .sub{position:absolute;left:62%;bottom:14px;transform:translateX(-50%);width:min(66%,640px);margin:0;background:rgba(34,52,74,.93);color:#fff;text-align:center;border-radius:10px;padding:8px 16px;font-weight:700;font-size:clamp(12px,1.45vw,17px);line-height:1.35;text-wrap:balance}
.flow-story .sub.warn{background:rgba(160,52,40,.94)}
.flow-story .fs-steps{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin:0;padding:0}
.flow-story .fs-step{font-size:13px;font-weight:700;padding:7px 12px 7px 7px;border-radius:999px;border:1.5px solid var(--fs-line);background:transparent;color:#566775;display:flex;align-items:center;gap:7px}
.flow-story .fs-step span{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--fs-line);color:#263d54;font-size:11px}
.flow-story .fs-step[aria-current="step"]{border-color:#263d54;color:#263d54}
.flow-story .fs-step[aria-current="step"] span{background:var(--fs-amber);color:#fff}
.flow-story [hidden]{display:none!important}

/* scene animation */
.flow-story .drip circle{animation:fs-drip 1.3s ease-in infinite}
.flow-story .drip circle:nth-child(2){animation-delay:.45s}.flow-story .drip circle:nth-child(3){animation-delay:.9s}
@keyframes fs-drip{0%{transform:translateY(0);opacity:0}15%{opacity:1}100%{transform:translateY(26px);opacity:0}}
.flow-story .beads{stroke-dasharray:.01 10;animation:none}
.flow-story .flowing .beads,.flow-story .glow-beads,.flow-story .stream{animation:fs-flow .55s linear infinite}
.flow-story .fast .beads{animation-duration:.3s}
@keyframes fs-flow{to{stroke-dashoffset:-10.01}}
.flow-story .agent .ring{animation:fs-pulse 2s ease-out infinite;transform-box:fill-box;transform-origin:center}
@keyframes fs-pulse{0%{transform:scale(1);opacity:.7}100%{transform:scale(1.9);opacity:0}}
.flow-story .emit{opacity:0;animation:fs-rise 6s ease-out infinite;animation-play-state:paused}
.flow-story .emitting .emit{animation-play-state:running}
@keyframes fs-rise{0%{opacity:0;transform:translateY(12px)}6%{opacity:1;transform:translateY(0)}36%{opacity:1;transform:translateY(-34px)}46%,100%{opacity:0;transform:translateY(-50px)}}
.flow-story .ping{stroke-opacity:0}
.flow-story .emitting .ping{animation:fs-ping 1.8s ease-out infinite}
@keyframes fs-ping{0%{stroke-opacity:.7}100%{stroke-opacity:0}}
.flow-story .tag,.flow-story .fade,.flow-story .cust,.flow-story #boxesBefore,.flow-story #boxesAfter{transition:opacity .5s cubic-bezier(.2,.7,.2,1)}
.flow-story .tag rect.pill{transition:fill .3s,stroke .3s}

/* results and the story as text */
.flow-story .results{display:grid;gap:18px;padding-block:72px 24px;border-top:1px solid var(--fs-line);margin-top:24px}
.flow-story .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px}
.flow-story .stat{display:grid;gap:2px;align-content:start;min-width:0}
.flow-story .stat b{font-size:clamp(30px,3.6vw,44px);line-height:1.05;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:#263d54}
.flow-story .stat .from{font-size:15px;color:#566775;text-decoration:line-through;text-decoration-color:var(--fs-red);font-variant-numeric:tabular-nums}
.flow-story .stat span:last-child{color:#566775;font-size:15px}
.flow-story .fine{font-size:14px}
.flow-story .results .actions{display:flex;flex-wrap:wrap;gap:12px}
.flow-story .results .email{color:#2674a4;font-weight:700}
.flow-story .results .email:hover{text-decoration:underline}
.flow-story .story-text{border-top:1px solid var(--fs-line);padding-block:20px 8px;margin-top:28px}
.flow-story .story-text summary{cursor:pointer;font-weight:700;font-size:16px;color:#2674a4}
.flow-story .story-text ol{margin:18px 0 0;padding-left:1.2em;display:grid;gap:14px;max-width:68ch}
.flow-story .story-text h3{margin:0;font-size:17px;letter-spacing:-.01em}
.flow-story .story-text p{margin:2px 0 0;font-size:16px}

@media (max-width:760px){
  .flow-story{padding-block:64px 16px}
  .flow-story .track{height:660vh}
  .flow-story .badge{top:6px;right:6px}.flow-story .chip{padding:3px 9px 3px 3px;font-size:12px}.flow-story .clock{font-size:11px}
  .flow-story .what-if{font-size:11px;padding:4px 9px}
  .flow-story .mini-cta{font-size:11px;padding:4px 10px}
  .flow-story .sub{position:static;transform:none;width:auto;margin:0;border-radius:0;padding:8px 12px;font-size:13px}
  .flow-story .fs-step{font-size:12px;padding:5px 9px 5px 5px}
  .flow-story .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
}
@media (prefers-reduced-motion:reduce){
  .flow-story .drip circle,.flow-story .flowing .beads,.flow-story .glow-beads,.flow-story .stream,.flow-story .agent .ring{animation:none}
  .flow-story .tag,.flow-story .fade,.flow-story .cust,.flow-story #boxesBefore,.flow-story #boxesAfter,.flow-story .tag rect.pill{transition:none}
  .flow-story #flyStars{display:none}
  .flow-story .emit,.flow-story .emitting .emit{animation:none;opacity:0}
  .flow-story .emitting .emit.still{opacity:1}
  .flow-story .emitting .ping{animation:none;stroke-opacity:.5}
}
/* Keep the desktop introduction and story close together, including tall screens. */
@media(min-width:761px){
 .flow-story{padding-block:40px 24px}
 .flow-story .fs-lead{margin-bottom:18px;gap:12px}
 .flow-story .fs-lead .eyebrow{margin-bottom:0}
 .flow-story .pin{justify-content:flex-start;padding-top:16px}
 .flow-story .results{padding-top:40px}
}
