/* ════════════════ HOW IT WORKS — scrollytelling: one job, from voice to bank ════════════════ */
/* The sticky column holds what's always true (bilingual, the waveform); the beats are the steps, in order. */
#how-it-works { padding-top: clamp(104px, 13vw, 184px); padding-bottom: clamp(104px, 13vw, 184px); }
.feat-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 7vw, 120px); }
/* --pull: on wide screens the column steps out past the content edge (never past the gutter), leaving open space mid-section */
.feat-sticky { --pull: clamp(0px, (100vw - 1200px) / 2 - var(--gutter), 160px); margin-left: calc(-1 * var(--pull)); margin-right: var(--pull); position: sticky; top: 120px; align-self: start; min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }
.bigwave { display: flex; align-items: center; gap: 5px; height: 120px; margin-top: 26px; max-width: 460px; }
.bigwave i { flex: 1; height: 100%; border-radius: 99px; background: linear-gradient(180deg, var(--mint-hi), var(--money)); transform: scaleY(.1); transition: transform .9s var(--ease); box-shadow: 0 0 14px rgba(123,180,148,.3); }
.bigwave i.c { background: linear-gradient(180deg, var(--icon-amber-b), var(--icon-amber-a)); }
.fprog { display: flex; align-items: center; gap: 16px; margin-top: 36px; font: 700 12px/1 var(--sans); letter-spacing: .12em; color: var(--ink-3); }
.ftrack { flex: 1; max-width: 220px; height: 1px; background: var(--hair); position: relative; }
.ffill { position: absolute; left: 0; top: -.5px; height: 2px; width: 25%; background: var(--mint); box-shadow: 0 0 10px var(--mint); transition: width .8s var(--ease); }
.beats { list-style: none; padding: 12vh 0; }
.beat { position: relative; min-height: 46vh; display: flex; flex-direction: column; justify-content: center; padding-left: 0; opacity: .22; filter: blur(2px); transition: opacity .9s var(--ease), filter .9s var(--ease); }
.beat.on { opacity: 1; filter: none; }
.beat h3 { font-family: var(--display-soft); font-weight: 700; letter-spacing: -.02em; font-size: clamp(40px, 4.6vw, 68px); line-height: 1; margin: 0 0 18px; }
.beat p { font-size: 18px; color: var(--ink-2); max-width: 46ch; }

/* each beat's vignette: a sliver of the app at that moment */
.vign { margin-top: 24px; padding: 18px 20px; border-radius: var(--r-card); background: var(--glass); box-shadow: inset 0 0 0 1px var(--hair-soft); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); max-width: 440px; }
.vign q { display: block; font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.3; color: #fff; quotes: "“" "”"; }
.miniwave { display: flex; align-items: center; gap: 3px; height: 26px; margin-top: 14px; }
.miniwave i { width: 3px; border-radius: 3px; background: var(--money); height: 20%; animation: mw 1.3s ease-in-out infinite; animation-delay: calc(var(--k) * -97ms); }
@keyframes mw { 50% { height: 100%; } }
.inv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.inv-head b { font-size: 16px; }
.inv-head span { font: 700 11px/1 var(--sans); letter-spacing: .12em; color: var(--ink-3); }
.inv-line { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--hair-soft); font-size: 14px; color: var(--ink-2); }
.inv-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.inv-total .num { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.linkchip { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.linkchip svg { width: 16px; height: 16px; color: var(--ink-3); }
.linkchip .copy { margin-left: auto; color: var(--mint); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.share-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.share-row span { font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 99px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--hair-soft); color: var(--ink-2); }
.paidrow { display: flex; align-items: center; justify-content: space-between; }
.paidrow .num { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.vign.resting { position: relative; }
.vign.resting::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--mint); filter: blur(5px); opacity: .28; pointer-events: none; }
.methods { margin-top: 10px; font-size: 13px; color: var(--ink-3); }

@media (max-width: 960px) {
  .feat-grid { grid-template-columns: 1fr; }
  .feat-sticky { position: relative; top: 0; min-height: 0; }
  .bigwave, .fprog { display: none; }
  /* phones: the steps hang on a vertical rail. Each node sits level with its title's first line (36px of padding
     + half the title), and the segment below it fills as the middle of the screen passes (main.js sets --seg) */
  .beats { --h: clamp(30px, 8vw, 40px); padding: 0; counter-reset: beat; }
  .beat { min-height: 0; padding: 36px 0 36px 46px; opacity: 1; filter: none; counter-increment: beat; }
  .beat h3 { font-size: var(--h); }
  .beat::before {
    content: counter(beat); position: absolute; z-index: 1; left: 0; top: calc(36px + var(--h) / 2 - 14px); width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center; font: 700 12px/1 var(--sans); color: var(--ink-3); background: var(--canvas); box-shadow: inset 0 0 0 1.5px var(--hair);
    transition: color .5s var(--ease), background .5s var(--ease), box-shadow .5s var(--ease);
  }
  .beat.past::before { color: var(--mint); box-shadow: inset 0 0 0 1.5px var(--mint); }
  .beat.on::before { color: var(--canvas); background: var(--mint); box-shadow: 0 0 0 5px rgba(135,189,159,.15), 0 0 16px rgba(135,189,159,.45); }
  .beat:not(:last-child)::after {
    content: ""; position: absolute; left: 13px; width: 2px; top: calc(36px + var(--h) / 2); bottom: calc(-36px - var(--h) / 2); border-radius: 2px;
    background: linear-gradient(var(--mint), var(--mint)) 0 0 / 100% calc(var(--seg, 0) * 100%) no-repeat, var(--hair-soft);
  }
}
@media (prefers-reduced-motion: reduce) {
  .miniwave i { animation: none !important; height: calc(20% + var(--k) * 6%); } /* a still waveform, not a dotted line */
  .beat::before { transition: none; }
}
