/* Ten other layouts for "How it works", to compare: open the landing page with
   ?how=1 to ?how=10 (closing-story.js builds the markup; without the parameter
   nothing here applies). Every variant is under .hw-x and its own .hw-vN, reuses
   the four scenes on their .hw-media panels, and reveals with scroll-driven
   animations only where the browser has them and motion is welcome; otherwise
   everything simply stands in place. */

/* ---- Shared ---- */
.hw-x{--w1:66cqw;--w2:84cqw;--w3:80cqw;--w4:70cqw;--hx-ink:#1c1c1e;--hx-sub:#77777c;--hx-panel:#f3f1ec;--hx-line:#ecebe8}
.hw-x .hw-media{grid-row:auto;grid-column:auto}
.hw-x .hw-s1 .hw-stack{width:var(--w1)}
.hw-x .hw-s2 .hw-stack{width:var(--w2)}
.hw-x .hw-s3 .hw-stack{width:var(--w3)}
.hw-x .hw-s4 .hw-stack{width:var(--w4)}
.hw-x .hx-lede{max-width:600px;margin:14px auto 0;color:var(--ty-sub,var(--hx-sub));font:500 17px/1.5 Inter,sans-serif;text-align:center;text-wrap:balance}
.hw-x .hx-kicker{margin:clamp(80px,9vw,128px) 0 0;color:var(--hx-ink);font:600 clamp(22px,2vw,26px)/1.2 Inter,sans-serif;letter-spacing:-.025em;text-align:center}
.hw-x .hx-kicker+.hw-rows{margin-top:clamp(40px,4.5vw,64px)}
.hw-x .hx-num{display:inline-grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:var(--hx-ink);color:#fff;font:600 13px/1 Inter,sans-serif;font-variant-numeric:tabular-nums;font-synthesis:none}
.hw-x .hx-tag{display:inline-flex;align-self:flex-start;padding:5px 11px;border-radius:99px;background:#fff;color:var(--hx-ink);font:600 12.5px/1.2 Inter,sans-serif;box-shadow:inset 0 0 0 1px rgb(0 0 0 / .06)}
.hx-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* The small caption beside a scene: a number, a bold title, a line. */
.hw-x .hx-sum-copy,.hw-x .hx-mini p{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:12px;row-gap:2px;margin:0;padding:18px 4px 0}
.hw-x .hx-sum-copy .hx-num,.hw-x .hx-mini .hx-num{grid-row:1/3;align-self:start;margin-top:1px}
.hw-x .hx-sum-copy b,.hw-x .hx-mini b{color:var(--hx-ink);font:600 18px/1.3 Inter,sans-serif;letter-spacing:-.02em}
.hw-x .hx-sum-copy>span:last-child,.hw-x .hx-mini p>span:last-child{grid-column:2;color:var(--hx-sub);font:500 14.5px/1.45 Inter,sans-serif;text-wrap:pretty}
/* A panel that holds several scenes, one shown at a time (3 and 4). */
.hw-x .hw-scene[data-manual]{opacity:0;visibility:hidden;transition:opacity .4s ease,visibility 0s linear .4s}
.hw-x .hw-scene[data-manual].is-shown{opacity:1;visibility:visible;transition-delay:0s}
.hw-x.is-still .hw-scene[data-manual]{transition:none}

/* Scroll-driven reveals: each block rises a little and fades in as it enters. */
@keyframes hx-rise{from{opacity:0;translate:0 32px}}
@keyframes hx-pop{from{opacity:0;scale:.6}}
@supports (animation-timeline:view()){
 @media(prefers-reduced-motion:no-preference){
  .hw-x .hx-rv{animation:hx-rise linear both;animation-timeline:view();animation-range:entry 0% entry 75%}
 }
}

/* ---- 1. Overview first: the photo, and the font it became ---- */
.hw-v1 .hx-pay{view-timeline:--hxpay block;display:grid;grid-template-columns:minmax(0,1.2fr) auto minmax(0,1fr);align-items:center;gap:clamp(20px,3vw,44px);max-width:1120px;margin:clamp(44px,5vw,72px) auto 0;padding:clamp(28px,4vw,56px);border-radius:28px;background:var(--hx-panel) radial-gradient(ellipse 60% 70% at 50% 40%,rgb(255 255 255 / .62),rgb(255 255 255 / 0) 72%);box-shadow:inset 0 0 0 1px rgb(48 36 24 / .045);box-sizing:border-box}
.hw-v1 .hx-pay figure{margin:0}
.hw-v1 .hx-pay figcaption{margin-top:16px;color:var(--hx-sub);font:600 14px/1.3 Inter,sans-serif;text-align:center}
.hw-v1 .hx-pay-photo{position:relative;z-index:2}
.hw-v1 .hx-pay-img{overflow:hidden;aspect-ratio:16/10;border-radius:22px;background:#3a2a2c;box-shadow:var(--fl-shadow)}
.hw-v1 .hx-pay-img img{display:block;width:100%;height:100%;object-fit:cover}
.hw-v1 .hx-pay-arrow{position:relative;z-index:3;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#fff;color:var(--hx-ink);box-shadow:var(--fl-shadow)}
.hw-v1 .hx-pay-arrow svg{width:22px;height:22px}
.hw-v1 .hx-pay-font{position:relative;z-index:1;container-type:inline-size}
.hw-v1 .hx-pay-card{padding:7cqw 7cqw 6cqw;border-radius:22px;background:#fff;box-shadow:var(--fl-shadow);color:var(--hx-ink);font-family:Inter,sans-serif}
.hw-v1 .hx-pay-set{margin:0;color:#7a1f2c;font-size:15cqw;line-height:1}
.hw-v1 .hx-pay-abc{margin:5cqw 0 0;color:#2a2a2e;font-size:6.2cqw;line-height:1.28;letter-spacing:.04em}
.hw-v1 .hx-pay-file{display:flex;align-items:center;gap:12px;margin:6cqw 0 0;padding-top:5cqw;border-top:1px solid #f0efed}
.hw-v1 .hx-pay-file b{display:block;font-size:15px;font-weight:600;letter-spacing:-.015em}
.hw-v1 .hx-pay-file small{display:block;color:#87878c;font-size:13px;font-weight:500}
.hw-v1 .hx-pay-file .hw-ficon{width:40px;height:40px;font-size:24px}
@keyframes hx-slide{from{opacity:0;translate:-72% 0;rotate:-5deg;scale:.88}}
@keyframes hx-slide-down{from{opacity:0;translate:0 -60%;rotate:-4deg;scale:.9}}
@supports (animation-timeline:view()){
 @media(prefers-reduced-motion:no-preference){
  .hw-v1 .hx-pay-font{animation:hx-slide linear both;animation-timeline:--hxpay;animation-range:entry 40% cover 50%}
  .hw-v1 .hx-pay-arrow{animation:hx-pop both cubic-bezier(.34,1.8,.5,1);animation-timeline:--hxpay;animation-range:cover 30% cover 45%}
 }
}

/* ---- 2. Three-up summary, each jumping to its row ---- */
.hw-v2 .hx-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2vw,28px);margin:clamp(44px,5vw,64px) 0 0;padding:0;list-style:none}
.hw-v2 .hx-sum{display:block;color:inherit;text-decoration:none;border-radius:24px;outline-offset:6px}
.hw-v2 .hx-sum-pane{aspect-ratio:1/.86;--w1:74cqw;--w2:88cqw;--w3:84cqw;transition:box-shadow .45s ease,scale .55s cubic-bezier(.34,1.8,.5,1)}
.hw-v2 .hx-sum:focus-visible{outline:2px solid var(--hx-ink)}
@media(hover:hover) and (pointer:fine){
 .hw-v2 .hx-sum:hover .hx-sum-pane{scale:1.02;box-shadow:inset 0 0 0 1px rgb(48 36 24 / .045),var(--fl-shadow-lift)}
}
.hw-v2 .hx-sum-copy b::after{content:'';display:inline-block;width:.5em;height:.5em;margin-left:.45em;border:solid currentColor;border-width:0 1.75px 1.75px 0;rotate:45deg;translate:0 -.2em;opacity:.45}
.hw-v2 .hw-row{scroll-margin-top:110px}
.hw-v2 .hw-row.is-flash .hw-media{animation:hx-flash 1.4s ease}
@keyframes hx-flash{25%{box-shadow:inset 0 0 0 1px rgb(48 36 24 / .045),0 0 0 4px rgb(155 29 46 / .28)}}

/* ---- 3. Sticky scrollytelling ---- */
.hw-v3 .hx-scrolly{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);column-gap:clamp(40px,6vw,96px);margin-top:clamp(8px,2vw,24px)}
.hw-v3 .hx-steps{grid-column:1;grid-row:1;margin:0;padding:0;list-style:none}
.hw-v3 .hx-step{display:flex;flex-direction:column;justify-content:center;min-height:76vh;max-width:430px;opacity:.25;transition:opacity .45s ease}
.hw-v3 .hx-step.is-current{opacity:1}
.hw-v3 .hx-step .hx-num{margin-bottom:18px}
.hw-v3 .hx-stage{grid-column:2;grid-row:1;align-self:start;position:sticky;top:max(100px,calc(50vh - 300px))}
.hw-v3 .hx-stage-pane{max-width:680px}
.hw-v3 .hx-dots{display:flex;justify-content:center;gap:2px;margin-top:14px}
.hw-x .hx-dot{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.hw-x .hx-dot::before{content:'';width:7px;height:7px;border-radius:99px;background:#cfcfd3;transition:width .35s cubic-bezier(.32,.72,0,1),background-color .35s}
.hw-x .hx-dot[aria-current=true]::before{width:20px;background:#9B1D2E}
.hw-x .hx-dot:focus-visible{outline:none}
.hw-x .hx-dot:focus-visible::before{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--hx-ink)}

/* ---- 4. Tabs over one big stage, moving on by themselves ---- */
.hw-v4 .hx-tabs{max-width:1060px;margin:clamp(32px,4vw,52px) auto 0}
.hw-v4 .hx-tabbar{display:flex;justify-content:center;align-items:center;gap:10px}
.hw-v4 .hx-pills{display:inline-flex;gap:4px;padding:5px;border-radius:99px;background:var(--hx-panel);box-shadow:inset 0 0 0 1px rgb(48 36 24 / .05)}
.hw-v4 .hx-pill{position:relative;overflow:hidden;display:inline-flex;align-items:center;gap:9px;height:44px;padding:0 20px 0 8px;border:0;border-radius:99px;background:transparent;color:var(--hx-sub);font:600 15px/1 Inter,sans-serif;letter-spacing:-.01em;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .3s,color .3s,box-shadow .3s}
.hw-v4 .hx-pill-n{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:rgb(0 0 0 / .06);font-size:13px;font-variant-numeric:tabular-nums;transition:background-color .3s,color .3s}
.hw-v4 .hx-pill[aria-selected=true]{background:#fff;color:var(--hx-ink);box-shadow:0 1px 2px rgb(20 20 28 / .08),0 4px 10px -2px rgb(20 20 28 / .1)}
.hw-v4 .hx-pill[aria-selected=true] .hx-pill-n{background:var(--hx-ink);color:#fff}
.hw-v4 .hx-pill:focus-visible{outline:2px solid var(--hx-ink);outline-offset:2px}
@media(hover:hover) and (pointer:fine){.hw-v4 .hx-pill[aria-selected=false]:hover{color:var(--hx-ink)}}
/* The bar that fills along the bottom of the current tab is its timer. */
.hw-v4 .hx-fill{position:absolute;left:16px;right:16px;bottom:4px;height:2px;border-radius:2px;background:#9B1D2E;opacity:0;transform:scaleX(0);transform-origin:0 50%}
.hw-v4 .hx-pill[aria-selected=true] .hx-fill{opacity:.9;animation:hx-fill var(--hx-dur,5000ms) linear forwards}
@keyframes hx-fill{to{transform:scaleX(1)}}
.hw-v4 .hx-tabs.is-held .hx-fill{opacity:0}
.hw-v4 .hx-tabs.is-held .hx-fill,.hw-v4 .hx-tabs.is-away .hx-fill{animation-play-state:paused}
@media(hover:hover) and (pointer:fine){.hw-v4 .hx-tabs:has(.hx-tab-stage:hover) .hx-fill{animation-play-state:paused}}
.hw-v4.is-still .hx-fill{animation:none;opacity:0}
.hw-v4 .hx-pause{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#fff;color:var(--hx-ink);box-shadow:inset 0 0 0 1px #e6e6e9;cursor:pointer}
.hw-v4 .hx-pause svg{width:16px;height:16px}
.hw-v4 .hx-pause:focus-visible{outline:2px solid var(--hx-ink);outline-offset:2px}
.hw-v4 .hx-i-play,.hw-v4 .is-held .hx-i-pause{display:none}
.hw-v4 .is-held .hx-i-play{display:block}
.hw-v4.is-still .hx-pause{display:none}
.hw-v4 .hx-tab-copy{display:grid;max-width:640px;margin:24px auto 22px;text-align:center}
.hw-v4 .hx-tc{grid-area:1/1}
.hw-v4 .hx-tc[hidden]{display:block;visibility:hidden}
.hw-v4 .hx-tc .hw-text{margin-top:6px}
.hw-v4 .hx-tab-stage{max-width:960px;margin:0 auto;aspect-ratio:2/1;--w1:46cqw;--w2:60cqw;--w3:54cqw;--w4:44cqw}

/* ---- 5. Bento: the result big, the steps round it ---- */
.hw-v5 .hx-bento{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto;gap:clamp(14px,1.6vw,20px);margin-top:clamp(44px,5vw,64px)}
.hw-v5 .hx-tile{display:flex;flex-direction:column;overflow:hidden;border-radius:28px;background:var(--hx-panel) radial-gradient(ellipse 70% 60% at 50% 70%,rgb(255 255 255 / .6),rgb(255 255 255 / 0) 72%);box-shadow:inset 0 0 0 1px rgb(48 36 24 / .045)}
.hw-v5 .hx-tile-big{grid-column:1;grid-row:1/3;background:#9B1D2E radial-gradient(ellipse 70% 60% at 50% 70%,rgb(255 255 255 / .1),rgb(255 255 255 / 0) 72%);color:#f6ecd9}
.hw-v5 .hx-t1{grid-column:2;grid-row:1}
.hw-v5 .hx-t2{grid-column:3;grid-row:1}
.hw-v5 .hx-t3{grid-column:2/4;grid-row:2}
.hw-v5 .hx-cap{display:flex;flex-direction:column;align-items:flex-start;padding:clamp(20px,2.2vw,28px) clamp(20px,2.2vw,28px) 0}
.hw-v5 .hx-cap h3{margin:12px 0 0;color:var(--hx-ink);font:600 20px/1.2 Inter,sans-serif;letter-spacing:-.02em;text-wrap:balance}
.hw-v5 .hx-cap p{margin:6px 0 0;color:var(--hx-sub);font:500 14.5px/1.5 Inter,sans-serif;text-wrap:pretty}
.hw-v5 .hx-tile-big .hx-cap h3{color:#fff;font-size:clamp(26px,2.4vw,34px);font-weight:700;line-height:1.1;letter-spacing:-.035em}
.hw-v5 .hx-tile-big .hx-cap p{color:rgb(246 236 217 / .78);max-width:360px}
.hw-v5 .hx-tpane{flex:1;border-radius:0;background:none;box-shadow:none}
.hw-v5 .hx-t1 .hx-tpane,.hw-v5 .hx-t2 .hx-tpane{aspect-ratio:1/.8;--w1:76cqw;--w2:88cqw}
.hw-v5 .hx-t3 .hx-tpane{aspect-ratio:2.6/1;--w3:44cqw}
.hw-v5 .hx-tile-big .hx-tpane{aspect-ratio:auto;min-height:340px;--w4:78cqw}

/* ---- 6. One line through the steps, drawing as you scroll ---- */
.hw-v6 .hx-pipe{position:relative;view-timeline:--hxpipe block;margin-top:clamp(48px,5vw,80px)}
.hw-v6 .hx-line{position:absolute;left:50%;top:22px;bottom:22px;width:2px;margin-left:-1px;border-radius:2px;background:#e8e6e1}
.hw-v6 .hx-line i{position:absolute;inset:0;border-radius:inherit;background:linear-gradient(#9B1D2E,#1F4FA3 36%,#1D6B48 70%,#C9930E);transform-origin:50% 0}
.hw-v6 .hx-psteps{display:grid;row-gap:clamp(72px,8vw,120px);margin:0;padding:0;list-style:none}
.hw-v6 .hx-pstep{display:grid;grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr);align-items:center;column-gap:clamp(24px,3vw,48px)}
.hw-v6 .hx-node{position:relative;z-index:1;grid-column:2;grid-row:1;justify-self:center;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--hx-ink);color:#fff;font:600 15px/1 Inter,sans-serif;box-shadow:0 0 0 8px #fff}
.hw-v6 .hx-pcopy{grid-column:1;grid-row:1;justify-self:end;max-width:400px;text-align:right}
.hw-v6 .hx-ppane{grid-column:3;grid-row:1;max-width:500px}
.hw-v6 .hx-pstep:nth-child(even) .hx-pcopy{grid-column:3;justify-self:start;text-align:left}
.hw-v6 .hx-pstep:nth-child(even) .hx-ppane{grid-column:1;justify-self:end}
.hw-v6 .hx-pend{position:relative;display:grid;justify-items:center;gap:14px;margin-top:clamp(64px,7vw,100px);text-align:center}
.hw-v6 .hx-pend p{margin:0;color:var(--hx-sub);font:500 16px/1.5 Inter,sans-serif}
.hw-v6 .hx-node-end{background:#fff;color:#1D6B48}
.hw-v6 .hx-node-end svg{width:44px;height:44px;color:#1D6B48}
@keyframes hx-draw{from{transform:scaleY(0)}}
@keyframes hx-light{from{background:#fff;color:var(--hx-ink);box-shadow:inset 0 0 0 1.5px #e0ded8,0 0 0 8px #fff;scale:.82}}
@supports (animation-timeline:view()){
 @media(prefers-reduced-motion:no-preference){
  .hw-v6 .hx-line i{animation:hx-draw linear both;animation-timeline:--hxpipe;animation-range:cover 50vh cover calc(100% - 50vh)}
  .hw-v6 .hx-node{animation:hx-light both cubic-bezier(.34,1.8,.5,1);animation-timeline:view();animation-range:cover 44% cover 52%}
 }
}

/* ---- 7. Big numbers, editorial ---- */
.hw-v7 .hx-big{margin:clamp(40px,5vw,72px) 0 0;padding:0;list-style:none}
.hw-v7 .hx-bstep{display:grid;grid-template-columns:clamp(140px,15vw,220px) minmax(0,1fr) minmax(0,460px);align-items:center;column-gap:clamp(28px,4vw,64px);padding:clamp(36px,4vw,56px) 0;border-top:1px solid var(--hx-line)}
.hw-v7 .hx-bstep:last-child{border-bottom:1px solid var(--hx-line)}
.hw-v7 .hx-bnum{display:block;padding-top:.1em;color:var(--c);font-size:clamp(150px,16vw,240px);line-height:.8;text-align:center}
.hw-v7 .hx-bcopy{max-width:420px}
.hw-v7 .hx-bpane{aspect-ratio:16/11;--w1:58cqw;--w2:78cqw;--w3:70cqw;--w4:60cqw}
@keyframes hx-num{from{opacity:0;scale:.6;rotate:-8deg}}
@supports (animation-timeline:view()){
 @media(prefers-reduced-motion:no-preference){
  .hw-v7 .hx-bnum{animation:hx-num both cubic-bezier(.34,1.8,.5,1);animation-timeline:view();animation-range:entry 20% cover 40%}
 }
}

/* ---- 8. All four on one screen ---- */
.hw-v8 .hx-quad{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(18px,1.8vw,24px) clamp(16px,1.8vw,24px);max-width:900px;margin:clamp(24px,2.6vw,32px) auto 0;padding:0;list-style:none}
.hw-v8 .hx-qpane{aspect-ratio:16/10;--w1:52cqw;--w2:72cqw;--w3:62cqw;--w4:54cqw}
.hw-v8 .hx-qcap{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin:14px 4px 0;color:var(--hx-sub);font:500 14.5px/1.45 Inter,sans-serif}
.hw-v8 .hx-qcap .hx-num{align-self:center;width:22px;height:22px;font-size:12px}
.hw-v8 .hx-qcap b{color:var(--hx-ink);font-weight:600}
.hw-v8 .hx-lede{margin-top:10px}

/* ---- 9. A timeline in seconds ---- */
@property --hx-t{syntax:'<integer>';inherits:false;initial-value:50}
.hw-v9 .hx-lede{max-width:none;color:var(--hx-ink);font-size:clamp(19px,1.8vw,22px);font-weight:600;letter-spacing:-.015em}
.hw-v9 .hx-count{--hx-t:50;counter-reset:hxt var(--hx-t);font-variant-numeric:tabular-nums}
.hw-v9 .hx-count::after{content:counter(hxt);display:inline-block;min-width:1.25em;color:#9B1D2E;text-align:center}
.hw-v9 .hx-time{margin-top:clamp(40px,5vw,64px)}
/* The count in the heading and the bar's fill share one timeline, the axis's,
   so the seconds tick up as the bar fills. */
.hw-v9{timeline-scope:--hxbar}
.hw-v9 .hx-axis{view-timeline:--hxbar block}
.hw-v9 .hx-bar{position:relative;height:42px;overflow:clip;border-radius:12px;background:var(--hx-panel);box-shadow:inset 0 0 0 1px rgb(48 36 24 / .05)}
.hw-v9 .hx-seg{position:absolute;top:0;bottom:0;left:calc(var(--a) * 2%);width:calc((var(--b) - var(--a)) * 2%);display:flex;align-items:center;padding-left:12px;box-sizing:border-box;background:color-mix(in srgb,var(--c) 14%,#fff);box-shadow:inset -2px 0 0 #fff;color:var(--c);font:600 13px/1 Inter,sans-serif;font-style:normal;white-space:nowrap}
.hw-v9 .hx-seg span{overflow:hidden;text-overflow:ellipsis}
/* A cover that pulls back to the right, so the bar fills left to right. */
.hw-v9 .hx-bar-fill{position:absolute;inset:0;background:var(--hx-panel);transform:scaleX(0);transform-origin:100% 50%}
.hw-v9 .hx-ticks{position:relative;height:18px;margin-top:10px;color:var(--hx-sub);font:600 12.5px/18px Inter,sans-serif;font-variant-numeric:tabular-nums}
.hw-v9 .hx-ticks span{position:absolute;left:calc(var(--t) * 2%);translate:-50% 0;white-space:nowrap}
.hw-v9 .hx-ticks span:first-child{translate:0 0}
.hw-v9 .hx-ticks span:last-child{translate:-100% 0}
.hw-v9 .hx-tsteps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(16px,2vw,26px);margin:clamp(36px,4vw,52px) 0 0;padding:0;list-style:none}
.hw-v9 .hx-ts{display:flex;flex-direction:column}
.hw-v9 .hx-stamp{align-self:flex-start;padding:5px 11px;border-radius:99px;background:color-mix(in srgb,var(--c) 12%,#fff);color:var(--c);font:700 13px/1.2 Inter,sans-serif;font-variant-numeric:tabular-nums}
.hw-v9 .hx-ts .hw-title{margin-top:14px;font-size:clamp(19px,1.6vw,22px)}
.hw-v9 .hx-ts .hw-text{margin-top:4px;font-size:14.5px}
.hw-v9 .hx-tspane{margin-top:18px;aspect-ratio:1/1.02;--w1:86cqw;--w2:94cqw;--w3:92cqw;--w4:94cqw}
@keyframes hx-count{from{--hx-t:0}}
@keyframes hx-uncover{from{transform:scaleX(1)}}
@supports (animation-timeline:view()){
 @media(prefers-reduced-motion:no-preference){
  .hw-v9 .hx-count{animation:hx-count linear both;animation-timeline:--hxbar;animation-range:entry 100% cover 58%}
  .hw-v9 .hx-bar-fill{animation:hx-uncover linear both;animation-timeline:--hxbar;animation-range:entry 100% cover 58%}
 }
}

/* ---- 10. Try it first, then how it was made ---- */
.hw-v10 .hx-demo{container-type:inline-size;max-width:1040px;margin:clamp(36px,4vw,56px) auto 0;padding:clamp(20px,3vw,36px) clamp(20px,3.4vw,40px);border-radius:28px;background:#fff;box-shadow:var(--fl-shadow);box-sizing:border-box;transition:box-shadow .3s}
.hw-v10 .hx-demo:has(textarea:focus-visible){box-shadow:var(--fl-shadow),0 0 0 3px rgb(155 29 46 / .22)}
.hw-v10 .hx-demo-src{display:flex;align-items:center;gap:12px;color:var(--hx-ink);font-family:Inter,sans-serif}
.hw-v10 .hx-demo-thumb{flex:none;width:64px;aspect-ratio:16/10;overflow:hidden;border-radius:10px;background:#3a2a2c}
.hw-v10 .hx-demo-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.hw-v10 .hx-demo-src b{display:block;font-size:15px;font-weight:600;letter-spacing:-.015em}
.hw-v10 .hx-demo-src small{display:block;color:var(--hx-sub);font-size:13px;font-weight:500}
.hw-v10 .hx-demo-field{display:block;margin:clamp(14px,2.4vw,28px) 0 clamp(14px,2vw,22px)}
.hw-v10 .hx-demo-input{display:block;width:100%;min-height:1.15em;margin:0;padding:.06em 0 0;border:0;outline:0;resize:none;overflow:hidden;background:none;color:#7a1f2c;font-size:var(--hx-size,96px);line-height:1.1;field-sizing:content;caret-color:#9B1D2E;box-sizing:border-box}
.hw-v10 .hx-demo-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 32px;padding-top:18px;border-top:1px solid #f0efed}
.hw-v10 .hx-demo-size{display:flex;align-items:center;gap:12px;color:var(--hx-sub);font:600 13.5px/1 Inter,sans-serif;font-variant-numeric:tabular-nums}
.hw-v10 .hx-demo-size input{width:min(220px,40vw);accent-color:var(--hx-ink)}
.hw-v10 .hx-demo-val{min-width:4em;text-align:right}
.hw-v10 .hx-demo .hw-frow{flex:0 1 auto;min-width:0;margin:0;padding:0;border:0;color:var(--hx-ink);font-family:Inter,sans-serif}
.hw-v10 .hx-demo .hw-ficon{width:44px;height:44px;font-size:26px}
.hw-v10 .hx-demo .hw-finfo b{font-size:15.5px}
.hw-v10 .hx-demo .hw-finfo small{font-size:13px}
.hw-v10 .hx-demo .hw-dl{height:40px;padding:0 17px 0 14px;font-size:14px}
.hw-v10 .hx-made{max-width:1040px;margin:clamp(56px,6vw,88px) auto 0}
.hw-v10 .hx-made-h{margin:0;color:var(--hx-ink);font:600 clamp(22px,2vw,26px)/1.2 Inter,sans-serif;letter-spacing:-.025em;text-align:center}
.hw-v10 .hx-mini{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:28px 0 0;padding:0;list-style:none}
.hw-v10 .hx-mpane{aspect-ratio:4/3;--w1:70cqw;--w2:88cqw;--w3:80cqw}
.hw-v10 .hx-mini b{font-size:16px}
.hw-v10 .hx-mini p>span:last-child{font-size:14px}

/* ---- Phones ---- */
@media(max-width:759px){
 .hw-x{--w1:76cqw;--w2:90cqw;--w3:85cqw;--w4:88cqw}
 .hw-x .hx-lede{font-size:15.5px;margin-top:10px}
 .hw-x .hx-sum-copy b,.hw-x .hx-mini b{font-size:16.5px}
 .hw-x .hx-sum-copy>span:last-child,.hw-x .hx-mini p>span:last-child{font-size:14px}

 /* 1. The photo, an arrow down, the font. */
 .hw-v1 .hx-pay{grid-template-columns:minmax(0,1fr);justify-items:center;gap:18px;margin-top:32px;padding:20px 18px 24px;border-radius:24px}
 .hw-v1 .hx-pay-photo,.hw-v1 .hx-pay-font{width:100%}
 .hw-v1 .hx-pay figcaption{margin-top:12px;font-size:13px}
 .hw-v1 .hx-pay-arrow{width:44px;height:44px;rotate:90deg}
 .hw-v1 .hx-pay-img,.hw-v1 .hx-pay-card{border-radius:18px}
 .hw-v1 .hx-kicker{margin-top:72px}
 @supports (animation-timeline:view()){
  @media(prefers-reduced-motion:no-preference){.hw-v1 .hx-pay-font{animation-name:hx-slide-down}}
 }

 /* 2 and 10. The summaries: a small scene beside its words. */
 .hw-v2 .hx-strip,.hw-v10 .hx-mini{grid-template-columns:minmax(0,1fr);gap:14px;margin-top:28px}
 .hw-v2 .hx-sum,.hw-v10 .hx-mini li{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1fr);align-items:center;column-gap:16px}
 .hw-v2 .hx-sum-pane,.hw-v10 .hx-mpane{aspect-ratio:1/1;border-radius:18px;--w1:72cqw;--w2:94cqw;--w3:90cqw}
 .hw-x .hx-sum-copy,.hw-x .hx-mini p{grid-template-columns:minmax(0,1fr);row-gap:6px;padding:0}
 .hw-x .hx-sum-copy .hx-num,.hw-x .hx-mini .hx-num{grid-row:auto;width:24px;height:24px;font-size:12px}
 .hw-x .hx-sum-copy>span:last-child,.hw-x .hx-mini p>span:last-child{grid-column:1}
 .hw-v2 .hx-kicker{margin-top:72px}

 /* 3. The stage sticks under the header; the steps pass under it. */
 .hw-v3 .hx-scrolly{grid-template-columns:minmax(0,1fr);margin-top:20px}
 .hw-v3 .hx-stage{grid-column:1;grid-row:1;z-index:2;top:80px;padding:8px 0 4px;background:#fff;box-shadow:0 -12px 0 #fff}
 .hw-v3 .hx-stage-pane{max-width:340px;margin:0 auto;border-radius:20px}
 .hw-v3 .hx-dots{margin-top:6px}
 .hw-v3 .hx-steps{grid-row:2}
 .hw-v3 .hx-step{justify-content:flex-start;min-height:58vh;padding-top:28px;box-sizing:border-box}
 .hw-v3 .hx-step:last-child{min-height:44vh}
 .hw-v3 .hx-step .hx-num{margin-bottom:12px}

 /* 4. The four tabs share the width, number over label. */
 .hw-v4 .hx-tabs{margin-top:28px}
 .hw-v4 .hx-tabbar{gap:8px}
 .hw-v4 .hx-pills{flex:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;padding:4px;border-radius:22px}
 .hw-v4 .hx-pill{flex-direction:column;justify-content:center;gap:4px;height:58px;padding:0 2px;border-radius:18px;font-size:11.5px}
 .hw-v4 .hx-pill-n{width:22px;height:22px;font-size:11.5px}
 .hw-v4 .hx-fill{left:12px;right:12px;bottom:3px}
 .hw-v4 .hx-pause{width:40px;height:40px}
 .hw-v4 .hx-tab-copy{margin:20px 0 18px;text-align:left}
 .hw-v4 .hx-tab-stage{aspect-ratio:5/4;--w1:76cqw;--w2:90cqw;--w3:85cqw;--w4:88cqw;border-radius:20px}

 /* 5. One column, the result first. */
 .hw-v5 .hx-bento{grid-template-columns:minmax(0,1fr);margin-top:28px;gap:14px}
 .hw-v5 .hx-tile-big,.hw-v5 .hx-t1,.hw-v5 .hx-t2,.hw-v5 .hx-t3{grid-column:1;grid-row:auto}
 .hw-v5 .hx-tile{border-radius:24px}
 .hw-v5 .hx-cap{padding:20px 20px 0}
 .hw-v5 .hx-tile-big .hx-cap h3{font-size:26px}
 .hw-v5 .hx-tile-big .hx-tpane{min-height:0;aspect-ratio:5/4;--w4:88cqw}
 .hw-v5 .hx-t1 .hx-tpane,.hw-v5 .hx-t2 .hx-tpane{aspect-ratio:5/3.6;--w1:62cqw;--w2:86cqw}
 .hw-v5 .hx-t3 .hx-tpane{aspect-ratio:5/3.6;--w3:72cqw}

 /* 6. The line runs down the left; each step's words, then its scene. */
 .hw-v6 .hx-pipe{margin-top:36px}
 .hw-v6 .hx-line{left:18px}
 .hw-v6 .hx-psteps{row-gap:56px}
 .hw-v6 .hx-pstep,.hw-v6 .hx-pstep:nth-child(even){grid-template-columns:36px minmax(0,1fr);column-gap:16px;row-gap:18px;align-items:start}
 .hw-v6 .hx-node{grid-column:1;width:36px;height:36px;font-size:14px;box-shadow:0 0 0 6px #fff}
 .hw-v6 .hx-pcopy,.hw-v6 .hx-pstep:nth-child(even) .hx-pcopy{grid-column:2;grid-row:1;justify-self:start;max-width:none;padding-top:4px;text-align:left}
 .hw-v6 .hx-ppane,.hw-v6 .hx-pstep:nth-child(even) .hx-ppane{grid-column:2;grid-row:2;justify-self:stretch;max-width:none;border-radius:20px}
 .hw-v6 .hx-pend{grid-template-columns:36px minmax(0,1fr);justify-items:start;align-items:center;column-gap:16px;margin-top:56px;text-align:left}
 .hw-v6 .hx-node-end svg{width:36px;height:36px}
 .hw-v6 .hx-pend p{font-size:15px}

 /* 7. The number beside the title, the scene under both. */
 .hw-v7 .hx-big{margin-top:28px}
 .hw-v7 .hx-bstep{grid-template-columns:auto minmax(0,1fr);column-gap:18px;row-gap:20px;padding:32px 0}
 .hw-v7 .hx-bnum{grid-column:1;grid-row:1;align-self:start;font-size:104px;line-height:.78}
 .hw-v7 .hx-bcopy{grid-column:2;grid-row:1;align-self:center}
 .hw-v7 .hx-bpane{grid-column:1/3;grid-row:2;aspect-ratio:5/4;--w1:76cqw;--w2:90cqw;--w3:85cqw;--w4:88cqw;border-radius:20px}

 /* 8. One column, still compact. */
 .hw-v8 .hx-quad{grid-template-columns:minmax(0,1fr);gap:22px;margin-top:24px}
 .hw-v8 .hx-qpane{--w1:64cqw;--w2:86cqw;--w3:74cqw;--w4:70cqw;border-radius:20px}
 .hw-v8 .hx-qcap{margin-top:10px;font-size:14px}

 /* 9. The bar stays across; the steps stack under it. */
 .hw-v9 .hx-lede{font-size:18px}
 .hw-v9 .hx-time{margin-top:28px}
 .hw-v9 .hx-bar{height:36px;border-radius:10px}
 .hw-v9 .hx-seg{padding-left:8px;font-size:11.5px}
 .hw-v9 .hx-ticks{font-size:11.5px}
 .hw-v9 .hx-tsteps{grid-template-columns:minmax(0,1fr);gap:44px;margin-top:32px}
 .hw-v9 .hx-ts .hw-title{margin-top:12px;font-size:22px}
 .hw-v9 .hx-tspane{aspect-ratio:5/4;margin-top:16px;--w1:76cqw;--w2:90cqw;--w3:85cqw;--w4:88cqw;border-radius:20px}

 /* 10. The tester full width, its tools stacked. */
 .hw-v10 .hx-demo{margin-top:28px;padding:18px 18px 20px;border-radius:24px}
 .hw-v10 .hx-demo-tools{flex-direction:column;align-items:stretch;gap:16px}
 .hw-v10 .hx-demo-size input{flex:1;width:auto}
 .hw-v10 .hx-demo .hw-frow{width:100%}
 .hw-v10 .hx-made{margin-top:56px}
}

/* Reduced motion: no hover lifts or fades between scenes, the tabs stay put. */
@media(prefers-reduced-motion:reduce){
 .hw-x *{transition-duration:0s!important}
 .hw-v2 .hx-sum:hover .hx-sum-pane{scale:none}
}
