/* How it works — the five pinned scenes (moved from the home in v3), size vs. risk and pool blocks. */
/* ---------- how it works: five scenes, one per step ---------- */
.how{position:relative}
.how__stage{position:relative;padding:110px var(--pad) 56px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:24px}
.how__head{display:flex;align-items:baseline;justify-content:space-between;gap:24px}
.how__head .label{order:2}
.how__steps{display:grid;gap:110px;min-height:0;list-style:none;margin:0;padding:0}
.hstep{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:clamp(24px,4vw,64px);align-items:center;min-height:0}
.hstep__txt{display:grid;grid-template-columns:auto minmax(0,1fr);gap:20px;align-items:start}
.hstep__n{font:900 clamp(4.5rem,9vw,9.5rem)/.8 var(--display);letter-spacing:-.02em}
.hstep h3{font-size:clamp(2.4rem,4.4vw,4.6rem);line-height:.88;margin-bottom:16px}
.hstep p{color:var(--dim);max-width:34ch;font-size:1.0625rem}
.hstep p.hstep__pt{margin-top:14px;max-width:36ch;font-size:.9375rem}
.hstep p.hstep__pt b{display:block;font:900 clamp(1.7rem,2.6vw,2.6rem)/.9 var(--display);text-transform:uppercase;color:var(--ink);margin-bottom:6px}
.hstep p.hstep__code{margin-top:18px;max-width:40ch;font-size:.6875rem;color:var(--ink);padding-left:14px;border-left:2px solid #795f8c}
.scene{margin:0;width:100%;max-width:640px;justify-self:center}
.sc{display:block;width:100%;height:auto;overflow:visible}
.sc text{font-family:var(--mono);fill:#ECEDE6}
.sc .sc-k{font-size:12.5px;letter-spacing:.06em;fill:rgba(236,237,230,.85)}
@media (max-width:600px){.sc .sc-k{fill:rgba(236,237,230,.9)}} /* C1l 30/11 : contraste des micro-libellés à 390 px (couleur seule, tailles inchangées) */
.sc .sc-ink{fill:#ECEDE6}
.sc .sc-v{font-size:15px}
.sc .sc-p{font-family:var(--text);font-size:15px}
.sc .sc-d{font-family:var(--display);font-weight:900}
.sc .sc-coral-t{fill:#df7a6c}
.sc .s4-own{font-size:12px}
.sc .s1-tok,.sc .s5-w,.sc .s4-realt,.sc .s4-buy,.sc .s4-filled{fill:#fff}
.sc .s1-tok{font-size:9px;letter-spacing:.04em}
.sc .s5-dk{fill:#000}
.sc-card{fill:#0b0b0b;stroke:rgba(236,237,230,.26);stroke-width:1}
.sc-row{fill:#0b0b0b;stroke:rgba(236,237,230,.2);stroke-width:1}
.sc-glow{fill:none;stroke-width:1.6}
.sc-dash{stroke-dasharray:none} /* C1d 29/11: dashes are for SL/TP orders only (Léo) */
.sc-faint{stroke:rgba(236,237,230,.32);stroke-width:1;fill:none}
.sc-pill{fill:none;stroke:rgba(236,237,230,.5);stroke-width:1}
.sc-slot{fill:none;stroke:rgba(236,237,230,.35)}
.sc-cover{fill:#0b0b0b;opacity:0}
.sc-gone{opacity:0}
.s1-wire{fill:none;stroke:rgba(236,237,230,.5);stroke-width:1.2;stroke-dasharray:1}
.s1-ring{fill:none;stroke:rgba(236,237,230,.4)}
.s1-tick{fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1}
.s2-target{stroke-width:2;stroke-dasharray:1}
.s2-floor,.s4-floor{stroke:#df7a6c;stroke-width:2;stroke-dasharray:1}
.s2-eq,.s4-eq{fill:none;stroke:#ECEDE6;stroke-width:2;stroke-linejoin:round;stroke-linecap:round;stroke-dasharray:1}
.s4-eq{stroke-width:1.5;opacity:.85}
.s2-stamp-r{fill:rgba(0,0,0,.78);stroke-width:2.5}
.s3-youfill{opacity:.16}
.s4-res{fill:none;stroke-width:1.2;stroke-dasharray:1}
.s4-resbar{stroke-width:2;stroke-dasharray:1}
.s4-asks rect{fill:#df7a6c;opacity:.55}
.s4-bids rect{fill:#446da2;opacity:.75}
.s5-cap{fill:rgba(236,237,230,.22)}
.s5-firm{fill:rgba(236,237,230,.72)}
.how__foot{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 24px;align-items:center}
.how__bar{grid-column:1/-1;height:2px;background:var(--line);margin-top:8px}
.how__bar i{display:block;height:100%;background:var(--grad);transform-origin:0 50%;transform:scaleX(0)}
.how__note{color:var(--dim)}
html:not(.js-motion) .how__bar{display:none}
@media (min-width:861px){
  .js-motion .how__stage{height:100svh;min-height:640px}
  .js-motion .how__steps{gap:0}
  .js-motion .hstep{grid-area:1/1}
  .js-motion .scene{width:min(100%,calc((100svh - 300px) * 1.368))}
}

@media (max-width:860px){
  .how__stage{padding-top:96px}
  .how__head{flex-direction:column;align-items:flex-start;gap:10px}
  .how__head .label{order:0}
  .how__steps{gap:80px}
  .hstep{grid-template-columns:1fr;gap:24px}
  .hstep__txt{order:-1;grid-template-columns:1fr;gap:6px}
  .hstep__n{font-size:4rem}
  .hstep h3{font-size:2.6rem;margin-bottom:8px}
  .hstep p{font-size:1rem}
  .how__bar{display:none}
  .how__foot{grid-template-columns:1fr}
}
/* liste 27/11 — solid wires/links (dashes are reserved for order levels), payout scene */
.sc-wire{fill:none;stroke-width:1.6;stroke-linecap:round;stroke-dasharray:1}
.sc-arrow{fill:none;stroke:#a25755;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.sc-link{fill:none;stroke:rgba(236,237,230,.38);stroke-width:1.2;stroke-linejoin:round;stroke-dasharray:1}
.s5-link--you{stroke-width:1.8}
.sc-node{fill:#ECEDE6;opacity:.7}
.sc-soft{stroke:rgba(236,237,230,.16);stroke-width:1;fill:none}
.sc-receipt{stroke:rgba(236,237,230,.34)}
.sc-slot--solid{stroke-dasharray:none;stroke:rgba(236,237,230,.22)}
/* liste 27/11 — size (home variant): four numbers, top-up value */
.size__sum--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.sc .z-topv{fill:#ECEDE6}
@media (max-width:860px){.size__sum--4{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}}

/* liste2 27/11: payout split, capital set apart from the 90/10 bar */
.s5-sep{stroke:rgba(236,237,230,.45);stroke-width:1}

/* v3 refine: two stroke weights only (lines 1.75, frames 1), page hero and closing call */
.sc-card,.sc-row,.sc-faint,.sc-pill,.sc-soft,.s5-sep{stroke-width:1}
.s1-wire,.sc-link,.s4-res{stroke-width:1.25}
.s1-tick,.s2-target,.s2-floor,.s4-floor,.s2-eq,.sc-glow,.s4-resbar,.sc-wire,.sc-arrow,.s5-link--you{stroke-width:1.75}
.s4-eq{stroke-width:1.5}
.s2-stamp-r{stroke-width:2}
.sc text{font-kerning:normal}
.pg-howitworks .phero__bg{font-size:clamp(14rem,34vw,34rem)}
.hw-end{border-top:1px solid var(--line)}
.hw-end__row{display:flex;justify-content:space-between;align-items:flex-end;gap:32px 48px;flex-wrap:wrap}
.hw-end .label{margin-bottom:20px}
.hw-end__body{margin-top:20px;max-width:44ch}
.hw-end__act{display:flex;flex-direction:column;align-items:flex-start;gap:20px}
.btn--lg{height:62px;padding:0 34px;font-size:.875rem!important}
@media (max-width:860px){.hw-end__act{width:100%}.hw-end__act .btn{width:100%;justify-content:center;height:56px}}
/* v3: diagrams readable at 390 px — the 520-wide viewBox shrinks to ~0.7, so the labels grow to compensate */
@media (max-width:560px){
  .sc .sc-k{font-size:13.5px;letter-spacing:.03em;fill:rgba(236,237,230,.92)}
  .sc .sc-v{font-size:16px}
  .sc .sc-p{font-size:16px}
  .sc .s4-own{font-size:13px}
  .sc .s1-tok{font-size:10px}
}
