/* Furrsati v7 · how-it-works.html (both). Signature: scrollytelling, a sticky phone on the left swaps the app screens
   while the five places scroll past on the right. Then a Hire | Work subway map, the one-account role switch and the close.
   Transforms and opacity only for motion; loops run under .is-live. */

.hw .title { font-size: clamp(40px, 5.2vw, 80px); }
.hw-tag { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgba(109, 40, 217, .2); font-weight: 700; font-size: 14px; color: var(--cat-design-d); }
.hw-tag span { width: 9px; height: 9px; border-radius: 50%; background: var(--cat-design); box-shadow: 0 0 0 4px rgba(139, 92, 246, .18); }

/* ═══ 1. tour ═══ */
.tour { position: relative; padding: clamp(92px, 12vh, 120px) 0 clamp(40px, 8vh, 96px); background: radial-gradient(70% 50% at 18% 8%, #f3efff 0%, rgba(255, 255, 255, 0) 70%), #fff; }
.tour__grid { display: grid; grid-template-areas: "intro" "stage" "places"; }
.tour__intro { grid-area: intro; padding-bottom: 28px; }
.tour__title { margin-top: 18px; font-family: var(--display); font-weight: 700; font-size: clamp(46px, 5.6vw, 84px); line-height: .96; letter-spacing: -.04em; color: var(--ink); text-wrap: balance; }
.tour__hl { position: relative; display: inline-block; color: var(--cat-design-d); }
.tour__hl::after { content: ""; position: absolute; inset: auto -2% .02em; height: .14em; border-radius: 99px; background: linear-gradient(90deg, var(--cat-design), var(--cat-tech), var(--orange), var(--cat-writing), var(--teal-m)); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--spring) .3s; }
.fos .tour__hl::after { transform: scaleX(1); }
.tour__lead { margin-top: 20px; max-width: 30em; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; color: var(--text); }
.tour__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.tour__index { display: none; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tour__index a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 13px 0 6px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 13.5px; color: var(--ink); text-decoration: none; transition: transform .35s var(--spring), box-shadow .25s; }
.tour__index b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #fff; font-family: var(--display); font-size: 15px; }
.tour__index a:hover, .tour__index a.is-on { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--c), 0 10px 20px -12px rgba(3, 21, 20, .4); }

.stage { grid-area: stage; position: sticky; top: 0; z-index: 2; height: 380px; padding-top: 74px; display: grid; place-items: center; background: #fff; }
.stage::after { content: ""; position: absolute; inset: 100% 0 auto; height: 36px; background: linear-gradient(#fff, rgba(255, 255, 255, 0)); pointer-events: none; }
@media (max-width: 959px) { .stage__blobs { inset: -6% -40%; } .stage__n { display: none; } }
.stage__in { position: relative; display: grid; place-items: center; }
.stage__blobs { position: absolute; inset: -14% -60%; pointer-events: none; }
.stage__blobs i { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, var(--c) 0%, var(--c) 58%, rgba(255, 255, 255, 0) 100%); opacity: 0; transform: scale(.92); transition: opacity .7s ease, transform 1s var(--spring); }
.stage__blobs i.is-on { opacity: 1; transform: none; }
.stage__phone { position: relative; --ph: 290px; width: calc(var(--ph) * 700 / 1522 + 14px); }
.stage__frame { overflow: hidden; }
.stage__frame img { opacity: 0; transition: opacity .55s ease; }
.stage__frame img:first-child { position: relative; }
.stage__frame img:not(:first-child) { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); }
.stage__frame img.is-on { opacity: 1; }
.stage__chips { display: none; }
.stage__n { position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); font-weight: 700; font-size: 13px; letter-spacing: .12em; color: var(--muted); white-space: nowrap; }
.stage__n b { color: var(--ink); }

/* the withdraw sheet that rises over the phone on place 5 (code-drawn, sample) */
.wd { position: absolute; inset: auto 7px 7px; padding: 14px 14px 16px; border-radius: 22px 22px 31px 31px; background: #fff; box-shadow: 0 -12px 30px -12px rgba(3, 21, 20, .45); transform: translateY(105%); transition: transform .7s var(--spring); }
.wd.is-on { transform: none; }
.wd__k { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 12px; color: var(--muted); }
.wd__k span { padding: 2px 8px; border-radius: 99px; background: var(--teal-soft); color: var(--teal); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.wd__amt { margin-top: 2px; font-family: var(--display); font-size: 26px; letter-spacing: -.02em; color: var(--ink); }
.wd__rails { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 8px; }
.wd__rails li { display: grid; justify-items: center; gap: 4px; padding: 7px 2px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 10px; color: var(--ink); }
.wd__rails img, .wd__bank { width: 26px; height: 26px; border-radius: 8px; }
.wd__bank { display: grid; place-items: center; background: var(--paper); }
.wd__bank svg { width: 16px; height: 16px; }
.wd__rails li.is-pick { box-shadow: inset 0 0 0 2px var(--teal-m); background: var(--teal-soft); }
.wd__note { margin-top: 8px; font-size: 10.5px; color: var(--muted); text-align: center; }

.places { grid-area: places; position: relative; z-index: 1; display: grid; gap: 18vh; padding: 40px 0 10vh; }
.pl { padding: clamp(24px, 3vw, 40px); border-radius: 30px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .5s, box-shadow .5s, transform .6s var(--spring); }
.pl.is-on { background: var(--cs); box-shadow: inset 0 0 0 1px transparent, 0 30px 60px -36px var(--c); }
.pl__n { font-family: var(--display); font-size: clamp(48px, 5vw, 72px); line-height: .9; letter-spacing: -.04em; color: var(--c); }
.pl__t { margin-top: 14px; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.2vw, 48px); line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.pl__p { margin-top: 14px; max-width: 30em; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--text); }
.pl__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pl__chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 14px; color: var(--ink); }
.pl__chips li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.pl__wd { display: flex; gap: 8px; margin-top: 18px; }
.pl__wd img, .pl__wd span { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 6px 14px -8px rgba(3, 21, 20, .5); }
.pl__wd span { display: grid; place-items: center; background: #fff; }
.pl__wd svg { width: 22px; height: 22px; color: var(--teal); }

@media (min-width: 960px) {
  .tour__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "stage intro" "stage places"; column-gap: clamp(32px, 4vw, 72px); }
  .tour { padding-top: 0; }
  .tour__index { display: flex; gap: 6px; }
  .tour__intro { min-height: calc(100vh - 40px); padding: clamp(110px, 17vh, 150px) 0 0; }
  .stage { grid-row: 1 / span 2; align-self: start; top: 0; height: 100vh; background: none; padding-top: 64px; }
  .stage::after { display: none; }
  .stage__phone { --ph: min(560px, calc(100vh - 190px)); }
  .stage__chips { display: block; position: absolute; inset: 0; pointer-events: none; }
  .stage__chips li { position: absolute; top: var(--t); left: var(--l); opacity: 0; transform: translateY(10px) scale(.9); transition: opacity .4s ease, transform .55s var(--spring); }
  .stage__chips li.is-on { opacity: 1; transform: none; transition-delay: calc(var(--d, 0) * 120ms + 150ms); }
  .stage__chips li:nth-of-type(even) { --d: 1; }
  .stage__chips i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
  .places { padding: 0 0 22vh; gap: 26vh; }
  .pl { opacity: .55; transform: scale(.97); transform-origin: left center; }
  .pl.is-on { opacity: 1; transform: none; }
}

/* ═══ 2. steps · subway map ═══ */
.steps { background: var(--paper); }
.steps__head { display: grid; gap: 28px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.steps__seg { justify-self: start; }
.steps__seg .seg__b { min-height: 50px; font-size: 16px; padding: 0 20px 0 8px; }
.steps__seg .seg__b[data-line="hire"][aria-selected="true"] { background: var(--orange); color: var(--ink); }
.steps__seg .seg__b[data-line="work"][aria-selected="true"] { background: var(--teal); color: #fff; }
.ln { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; font-family: var(--display); font-style: normal; font-size: 15px; }
.ln--hire { background: var(--orange); color: var(--ink); box-shadow: 0 0 0 3px #fff; }
.ln--work { background: var(--teal); color: #fff; box-shadow: 0 0 0 3px #fff; }

.map { max-width: 1180px; }
@media (min-width: 1000px) {
  .st { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 40px; align-items: start; }
  .st__a { padding-top: 18px; }
  .st__a p:last-child { padding-bottom: 18px; }
}
.line { --lc: var(--orange); --lcs: #fde4bd; --lcd: var(--orange-text); }
.line--work { --lc: var(--teal-m); --lcs: #c9ebe8; --lcd: var(--teal); }
.line__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-weight: 700; font-size: 17px; color: var(--ink); }
.line__name span { flex-basis: 100%; padding-inline-start: 44px; font-weight: 300; font-size: 15px; color: var(--muted); }
.line__stops { position: relative; margin-top: 18px; }
.line__stops::before, .line__stops::after { content: ""; position: absolute; left: 25px; top: 28px; bottom: 28px; width: 10px; border-radius: 10px; background: var(--lcs); }
.line__stops::after { background: var(--lc); transform-origin: top; transform: scaleY(var(--p, 0)); transition: transform .25s linear; }
.line__train { position: absolute; left: 19px; top: 28px; z-index: 2; width: 22px; height: 40px; margin-top: -7px; border-radius: 11px; background: var(--lcd); box-shadow: 0 0 0 5px #fff, 0 6px 14px -4px rgba(3, 21, 20, .5); transform: translateY(var(--y, 0px)); transition: transform .25s linear; }
.line__train::after { content: ""; position: absolute; left: 6px; right: 6px; top: 7px; height: 9px; border-radius: 3px; background: rgba(255, 255, 255, .85); }
.is-live .line__train::before { content: ""; position: absolute; inset: -5px; border-radius: 16px; box-shadow: 0 0 0 2px var(--lc); animation: hw-ping 1.8s ease-out infinite; }
@keyframes hw-ping { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }

.st { position: relative; padding-inline-start: 74px; }
.st + .st { margin-top: 4px; }
.st__b { position: relative; display: grid; width: 100%; gap: 2px; padding: 14px 52px 14px 0; border: 0; background: none; text-align: start; cursor: pointer; }
.st__b::after { content: ""; position: absolute; right: 18px; top: 50%; width: 11px; height: 11px; margin-top: -8px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: transform .35s var(--spring); }
.st__b[aria-expanded="true"]::after { transform: translateY(5px) rotate(-135deg); }
.st__dot { position: absolute; left: -64px; top: 18px; width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 6px var(--lc); transition: transform .4s var(--spring), background-color .3s; }
.st--x .st__dot { box-shadow: inset 0 0 0 5px var(--lcd), inset 0 0 0 9px #fff, inset 0 0 0 13px var(--lc); }
.st.is-past .st__dot { background: var(--lcs); }
.st__b:hover .st__dot, .st__b[aria-expanded="true"] .st__dot { transform: scale(1.15); }
.st__k { font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--lcd); }
.st__t { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.08; letter-spacing: -.025em; color: var(--ink); transition: transform .4s var(--spring); }
.st__b:hover .st__t { transform: translateX(6px); }
.st__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.st.is-open .st__a { grid-template-rows: 1fr; }
.st__a > div { min-height: 0; overflow: hidden; }
.st__a p { max-width: 58ch; padding-bottom: 12px; font-size: 17px; line-height: 1.55; color: var(--text); }
.st__a p:last-child { padding-bottom: 22px; color: var(--muted); }
.line__cta { margin: 26px 0 0 74px; }
.line:not([hidden]) .line__stops { animation: hw-in .6s var(--spring); }
@keyframes hw-in { from { opacity: 0; transform: translateY(16px); } }

@media (min-width: 900px) {
  .steps__head { grid-template-columns: minmax(0, 1fr) auto; }
  .steps__seg { justify-self: end; }
}

/* ═══ 3. roles ═══ */
.roles__in { display: grid; gap: 48px; align-items: center; }
.roles__btn { margin-top: 28px; }
.acct { position: relative; justify-self: center; width: min(420px, 100%); padding: clamp(28px, 4vw, 56px); }
.acct::before { content: ""; position: absolute; inset: 0; border-radius: 40px; background: linear-gradient(150deg, #ffe2b8, #fff1da); transition: opacity .6s; }
.acct::after { content: ""; position: absolute; inset: 0; border-radius: 40px; background: linear-gradient(150deg, #bfe9e5, var(--teal-soft)); opacity: 0; transition: opacity .6s; }
.acct[data-role="work"]::after { opacity: 1; }
.acct__card { position: relative; z-index: 1; padding: 22px; border-radius: 26px; background: #fff; box-shadow: var(--shadow-l); }
.acct__top { display: flex; align-items: center; gap: 12px; }
.acct__top img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.acct__top div { flex: 1; display: grid; line-height: 1.2; }
.acct__top b { font-size: 18px; color: var(--ink); }
.acct__top small { font-size: 13px; color: var(--muted); }
.acct__sw { position: relative; width: 58px; height: 32px; border-radius: 99px; background: var(--orange); transition: background-color .4s; }
.acct__sw i { position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(3, 21, 20, .3); transition: transform .45s var(--spring); }
.acct[data-role="work"] .acct__sw { background: var(--teal-m); }
.acct[data-role="work"] .acct__sw i { transform: translateX(26px); }
.acct__role { display: grid; margin-top: 18px; font-family: var(--display); font-size: 40px; line-height: 1; letter-spacing: -.03em; }
.acct__role > *, .acct__row > span { grid-area: 1 / 1; }
.acct__r { transition: opacity .35s ease, transform .5s var(--spring); }
.acct__r--hire { color: var(--orange-text); }
.acct__r--work { color: var(--teal); }
.acct__rows .acct__r { color: var(--ink); }
.acct[data-role="hire"] .acct__r--work, .acct[data-role="work"] .acct__r--hire { opacity: 0; transform: translateY(12px); }
.acct__rows { display: grid; gap: 8px; margin-top: 18px; }
.acct__row { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 0 10px; padding: 11px 12px; border-radius: 14px; background: var(--paper); font-weight: 700; font-size: 15.5px; }
.acct__row > span { grid-column: 2; }
.acct__row i { grid-area: 1 / 1; width: 30px; height: 30px; border-radius: 9px; background: var(--orange); transition: background-color .4s, transform .5s var(--spring); }
.acct[data-role="work"] .acct__row i { background: var(--teal-m); transform: rotate(90deg); }
.acct__row .acct__r { transition-delay: calc(var(--i) * 70ms); }
@media (min-width: 900px) { .roles__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ═══ 4. close ═══ */
.close { position: relative; overflow: clip; text-align: center; background: radial-gradient(60% 70% at 50% 100%, #f3efff, rgba(255, 255, 255, 0)), #fff; border-top: 1px solid var(--line); }
.close__in { display: grid; justify-items: center; }
.close__icon { width: 96px; height: 96px; border-radius: 26px; box-shadow: var(--shadow-l); }
.close__lead { margin-inline: auto; }
.close__stores { justify-content: center; }
.close__more { display: flex; gap: 24px; margin-top: 18px; }

@media (prefers-reduced-motion: reduce) {
  .stage__phone { animation: none !important; }
  .line__train::before { display: none; }
}
