/* ===== Hero: motion graphics, the app's tiles become a payment ===== */
.intro { position: relative; overflow: hidden; }
.hero { position: relative; overflow: hidden; isolation: isolate; height: 100vh; height: 100svh; min-height: 640px; }
/* --sx/--sy: where the card floats. --fy: the floor's top row, the row every card lifts from. */
.hero { --sx: 69%; --sy: 52%; --fy: 40%; }
.mh-light { position: absolute; inset: 0; z-index: -3; pointer-events: none; background: radial-gradient(ellipse 34% 44% at var(--sx) var(--sy), rgb(var(--fg) / .085), rgb(var(--fg) / 0) 70%); }
.mh-spot { position: absolute; left: var(--sx); top: var(--sy); width: 520px; height: 520px; translate: -50% -50%; z-index: -2; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgb(var(--fg) / .16), rgb(var(--fg) / 0)); opacity: 0; }
.mh-spot--paid { background: radial-gradient(closest-side, rgb(var(--money-c) / .2), rgb(var(--money-c) / 0)); }
.mh-stage { position: absolute; inset: 0; z-index: -1; perspective: 1300px; perspective-origin: 50% 30%; pointer-events: none; }
.mh-plane { position: absolute; left: var(--sx); top: var(--fy); width: 0; height: 0; transform-style: preserve-3d; transform: rotateZ(0deg) rotateX(58deg); }
.mh-zoom { position: absolute; left: 0; top: 0; transform-style: preserve-3d; --gs: 1; scale: calc(var(--ps, 1) * var(--gs)) calc(var(--ps, 1) * var(--gs)) calc(var(--ps, 1) * var(--gs)); }
.mh-grid { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.mh-t { position: absolute; width: 150px; height: 178px; margin: -89px 0 0 -75px; padding: 15px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 22px; background: var(--tile); border: 1px solid rgb(var(--fg) / .08); box-shadow: 0 16px 34px rgb(var(--sh-c) / calc(.45 * var(--sh-k))); backface-visibility: hidden; }
.mh-t .mt__flag { width: 38px; height: 38px; border-radius: 11px; }
.mh-t .ic { width: 38px; height: 38px; border-radius: 11px; }
.mh-t .ic svg { width: 19px; height: 19px; }
.mh-t p { margin: 0; font-size: 12.5px; line-height: 1.3; color: rgb(var(--fg) / .55); }
.mh-t b { display: block; margin-top: 3px; font: 500 21px/1.1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.mh-t--paid { background: var(--tile-paid); }
/* the tile that lifts: a twin of a real floor tile, in the same 3D space, so the start and the landing are exact */
.mh-clone { visibility: hidden; opacity: 0; transform: translate3d(0, 0, var(--tz, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotateZ(var(--rz, 0deg)); }
/* the same tile drawn on the card's face, so the card takes over without a jump */
.mh-tl { position: absolute; z-index: 2; left: 0; top: 0; margin: 0; width: 150px; height: 178px; transform: scale(2.1334); transform-origin: 0 0; background: none; border-color: transparent; box-shadow: none; backface-visibility: visible; pointer-events: none; opacity: 0; }
.mh-t--paid b { color: var(--num); }
.mh-t--paid .ic { color: var(--money); background: rgb(var(--money-c) / .14); }
.mh-veil { position: absolute; inset: 0; z-index: 0; pointer-events: none; background:
  linear-gradient(90deg, var(--bg) 0%, var(--bg) 42%, rgb(var(--bg-c) / .9) 50%, rgb(var(--bg-c) / 0) 61%, rgb(var(--bg-c) / 0) 90%, rgb(var(--bg-c) / .8) 100%),
  linear-gradient(to bottom, var(--bg) 0%, var(--bg) 11%, rgb(var(--bg-c) / .55) 20%, rgb(var(--bg-c) / 0) 30%, rgb(var(--bg-c) / 0) 72%, var(--bg) 90%),
  radial-gradient(ellipse 40% 70% at var(--sx) var(--sy), rgb(var(--bg-c) / 0) 45%, rgb(var(--bg-c) / .9) 100%); }
.hero .glow--top { z-index: 0; }
.mh-lift { position: absolute; z-index: 1; left: var(--sx); top: calc(var(--sy) + 1.5%); width: 0; height: 0; perspective: 1100px; pointer-events: none; --lz: 1; transform: scale(var(--lz)); }
.mh-card { position: absolute; left: -160px; top: -190px; width: 320px; height: 380px; transform-style: preserve-3d; }
.motion .mh-card { opacity: 0; }
.mh-face { position: absolute; inset: 0; border-radius: 34px; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--tile-hi); border: 1px solid rgb(var(--fg) / .13); box-shadow: 0 50px 100px -30px rgb(var(--sh-c) / calc(.9 * var(--sh-k))), inset 0 1px 0 rgb(var(--fg) / .12); overflow: hidden; }
.mh-face::after { content: ""; position: absolute; inset: -30%; background: linear-gradient(115deg, rgb(var(--fg) / 0) 42%, rgb(var(--fg) / .12) 50%, rgb(var(--fg) / 0) 58%); transform: translateX(var(--sh, -80%)); pointer-events: none; }
.mh-face--back { transform: rotateY(180deg); background: var(--tile-paid); border-color: rgb(var(--money-c) / .45); box-shadow: 0 50px 100px -30px rgb(var(--sh-c) / calc(.9 * var(--sh-k))), inset 0 1px 0 rgb(var(--fg) / .12); }
.mh-mode { position: absolute; inset: 26px; display: none; flex-direction: column; justify-content: space-between; }
.mh-face--back .mh-mode, .mh-card[data-mode="acct"] .mh-mode--acct, .mh-card[data-mode="link"] .mh-mode--link { display: flex; }
.mh-top { display: flex; justify-content: space-between; align-items: center; }
.mh-top .mt__flag { width: 54px; height: 54px; border-radius: 16px; }
.mh-bigic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgb(var(--fg) / .09); color: var(--ink); }
.mh-bigic svg { width: 26px; height: 26px; }
.mh-tag { height: 30px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; background: rgb(var(--fg) / .07); font: 600 12.5px/1 var(--body); color: var(--ink-2); }
.mh-tag--paid { background: rgb(var(--money-c) / .14); color: var(--money); }
.mh-tag--paid::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mh-mode p { margin: 0; font-size: 15px; color: rgb(var(--fg) / .6); }
.mh-mode b { display: block; margin-top: 6px; font: 500 46px/1 var(--display); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mh-face--back .mh-mode b { color: var(--num); }
.mh-mode small { display: block; margin-top: 10px; font-size: 13px; color: rgb(var(--fg) / .5); }
.mh-pay { margin-top: 16px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--hi); color: var(--btn-ink); font: 700 15px/1 var(--body); transition: background-color .35s, color .35s; }
.mh-pay.is-paid { background: rgb(var(--money-c) / .16); color: var(--money); }
.mh-pay.is-paid::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='4.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 25l9 8.5L39 13'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='4.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 25l9 8.5L39 13'/%3E%3C/svg%3E") center / contain no-repeat; }
.mh-mode .mh-under { margin-top: 10px; text-align: center; font-size: 12px; }
.mh-ring { position: absolute; left: -180px; top: -210px; width: 360px; height: 420px; border-radius: 40px; border: 1.5px solid rgb(var(--money-c) / .6); opacity: 0; visibility: hidden; pointer-events: none; }
.hero__left { position: absolute; z-index: 3; left: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); top: calc(50% + var(--nav-h) / 2); transform: translateY(-50%); width: min(560px, 44vw); display: grid; gap: 30px; }
.hero__copy { display: grid; gap: 22px; justify-items: start; }
.hero__title { margin: 0; font: 500 clamp(3rem, 5.6vw, 5.6rem)/.9 var(--display); letter-spacing: -.035em; }
.hero__copy .lead { max-width: 30rem; font-size: clamp(1.02rem, 1.3vw, 1.15rem); }
.hero__foot { display: grid; gap: 22px; justify-items: start; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__price { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 0; border-top: 1px solid var(--line); padding-top: 18px; }
.hero__price div { padding: 0 22px; border-left: 1px solid var(--line); }
.hero__price div:first-child { padding-left: 0; border-left: 0; }
.hero__price dt { font-size: 13px; color: var(--muted); white-space: nowrap; }
.hero__price dd { margin: 4px 0 0; font: 500 26px/1.1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.hero__price dd span { font: 500 14px var(--body); letter-spacing: 0; color: var(--ink-2); }
.hero__trust { margin: 0; font-size: 12.5px; color: var(--muted); }
@media (max-width: 1023.98px), (min-width: 1024px) and (max-width: 1199.98px) and (min-height: 1200px) {
  .hero { --sx: 50%; --sy: 55%; --fy: calc(var(--sy) + 2%); }
  .hero__left { display: contents; }
  .hero__copy { position: absolute; z-index: 3; left: var(--gut); right: var(--gut); top: calc(var(--nav-h) + 18px); gap: 12px; justify-items: center; text-align: center; }
  .hero__title { font-size: clamp(2.7rem, 12.4vw, 4rem); }
  .hero__copy .lead { font-size: 15px; max-width: 26rem; }
  .hero__foot { position: absolute; z-index: 3; left: var(--gut); right: var(--gut); bottom: 22px; gap: 14px; justify-items: center; }
  .hero__ctas { justify-content: center; }
  .hero__price { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 14px; text-align: center; }
  .hero__price div { padding: 0 6px; }
  .hero__price div:first-child { padding-left: 6px; }
  .hero__price dt { font-size: 11.5px; white-space: normal; }
  .hero__price dd { font-size: 19px; }
  .hero__price dd span { display: block; font-size: 11.5px; margin-top: 2px; }
  .hero__trust { display: none; }
  .mh-zoom { --gs: .5; }
  .mh-lift { scale: .52; }
  .btn { height: 46px; padding: 0 20px; }
  .mh-veil { background:
    linear-gradient(to bottom, var(--bg) 0%, var(--bg) calc(var(--sy) - 22%), rgb(var(--bg-c) / .5) calc(var(--sy) - 15%), rgb(var(--bg-c) / 0) calc(var(--sy) - 9%), rgb(var(--bg-c) / 0) calc(var(--sy) + 9%), rgb(var(--bg-c) / .92) calc(var(--sy) + 16%), var(--bg) calc(var(--sy) + 21%)),
    radial-gradient(ellipse 90% 60% at 50% var(--sy), rgb(var(--bg-c) / 0) 50%, rgb(var(--bg-c) / .95) 100%); }
}
@media (max-width: 1023.98px) and (min-height: 701px) and (max-height: 780px) { .hero { --sy: 57%; } }
@media (max-width: 1023.98px) and (max-height: 700px) {
  .hero { --sy: 59%; }
  .hero__copy { gap: 9px; top: calc(var(--nav-h) + 10px); }
  .hero__copy .eyebrow { height: 30px; font-size: 12.5px; }
  .hero__title { font-size: clamp(2.4rem, 10.8vw, 3.3rem); }
  .hero__copy .lead { font-size: 14px; line-height: 1.45; }
  .mh-lift { scale: .45; }
  .mh-zoom { --gs: .44; }
  .hero__foot { gap: 10px; bottom: 16px; }
  .hero__price { padding-top: 10px; }
}
/* tablets held upright, up to iPad Pro 13: the stacked hero, sized up so the floor and card fill the screen */
@media (min-width: 600px) and (max-width: 1023.98px) and (min-height: 860px), (min-width: 1024px) and (max-width: 1199.98px) and (min-height: 1200px) {
  .hero { --sy: 56%; }
  .hero__copy { top: calc(var(--nav-h) + 44px); gap: 18px; }
  .hero__title { font-size: clamp(4.2rem, 10vw, 6.2rem); }
  .hero__copy .lead { font-size: 18px; max-width: 34rem; }
  .mh-zoom { --gs: .82; }
  .mh-lift { scale: .9; }
  .mh-spot { width: 760px; height: 760px; }
  .hero__foot { bottom: 40px; gap: 22px; }
  .hero__price { max-width: 600px; padding-top: 18px; }
  .hero__price dt { font-size: 13px; }
  .hero__price dd { font-size: 25px; }
  .hero__price dd span { font-size: 13px; }
  .btn { height: 52px; padding: 0 26px; }
  .mh-veil { background:
    linear-gradient(to bottom, var(--bg) 0%, var(--bg) calc(var(--sy) - 26%), rgb(var(--bg-c) / .5) calc(var(--sy) - 19%), rgb(var(--bg-c) / 0) calc(var(--sy) - 13%), rgb(var(--bg-c) / 0) calc(var(--sy) + 12%), rgb(var(--bg-c) / .92) calc(var(--sy) + 19%), var(--bg) calc(var(--sy) + 24%)),
    radial-gradient(ellipse 90% 60% at 50% var(--sy), rgb(var(--bg-c) / 0) 50%, rgb(var(--bg-c) / .95) 100%); }
}
@media (min-width: 1024px) and (max-height: 780px) { .hero__left { gap: 22px; } .hero__copy { gap: 16px; } .hero__title { font-size: clamp(2.8rem, 5vw, 4.6rem); } .hero__trust { display: none; } }

/* Light: the floor and the card that lifts out of it are paper, the sheen is white, and the light behind the card becomes a soft shadow */
[data-theme="light"] .mh-face { box-shadow: 0 50px 90px -34px rgb(20 20 24 / .28), 0 1px 2px rgb(20 20 24 / .07), inset 0 1px 0 #fff; }
[data-theme="light"] .mh-face--back { border-color: rgb(var(--money-c) / .35); box-shadow: 0 50px 90px -34px rgb(20 20 24 / .26), inset 0 1px 0 #fff; }
[data-theme="light"] .mh-face::after { background: linear-gradient(115deg, rgb(255 255 255 / 0) 42%, rgb(255 255 255 / .8) 50%, rgb(255 255 255 / 0) 58%); }
[data-theme="light"] .mh-light { display: none; }
[data-theme="light"] .mh-spot { background: radial-gradient(closest-side, rgb(20 20 24 / .12), rgb(20 20 24 / 0)); }
[data-theme="light"] .mh-spot--paid { background: radial-gradient(closest-side, rgb(var(--money-c) / .16), rgb(var(--money-c) / 0)); }
/* Price row labels: full words on wide screens, one short word on phones so all four sit on one line */
.hero__price .sm-only { display: none; }
@media (max-width: 560px) {
  .hero__price .lg-only { display: none; }
  .hero__price .sm-only { display: inline; }
  .hero__price dt { white-space: nowrap; }
}
/* Tall phones: more room between the words and the buttons, so the card and its floor step up a size */
@media (max-width: 599px) and (min-height: 800px) { .mh-lift { scale: .6; } .mh-zoom { --gs: .6; } }
@media (max-width: 599px) and (min-height: 900px) { .mh-lift { scale: .66; } .mh-zoom { --gs: .68; } }
/* The positioning line above the headline: plain text, no chip */
.hero__copy .hero__pos { height: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; margin-bottom: -4px; font: 600 clamp(16px, 1.35vw, 19px)/1.3 var(--body); letter-spacing: 0; color: var(--ink); }
@media (max-width: 1023.98px) { .hero__copy .hero__pos { margin-bottom: 0; font-size: 15px; } }

/* tiles used by the closing wall */
.wall__col { --tw: 168px; width: var(--tw); height: calc((var(--tw) * 1.19 + 14px) * var(--per, 10)); }
.wall__col:nth-child(3n+2) { margin-top: 110px; }
.wall__col:nth-child(3n) { margin-top: 36px; }
.wall__run { display: flex; flex-direction: column; }
.rv .wall__run { animation: wall-up var(--d, 46s) linear infinite; }
.rv .wall__col[data-dir="down"] .wall__run { animation-name: wall-down; }
@keyframes wall-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes wall-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.mt { width: var(--tw); height: calc(var(--tw) * 1.19); margin-bottom: 14px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 24px; border: 1px solid var(--line); background: var(--tile); box-shadow: 0 10px 24px rgb(var(--sh-c) / calc(.4 * var(--sh-k))); }
.mt--paid { background: var(--tile-paid); }
.rv .mt--paid { animation: paid-glow 4.8s ease-in-out infinite; }
@keyframes paid-glow { 0%, 70%, 100% { border-color: var(--line); } 82% { border-color: rgb(var(--money-c) / .5); box-shadow: 0 14px 30px rgb(var(--sh-c) / calc(.42 * var(--sh-k))); } }
.mt p { margin: 0; font-size: 13px; line-height: 1.3; color: var(--subtle); }
.mt b { display: block; margin-top: 3px; font: 500 22px/1.1 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--ink); }
.mt b.pos { color: var(--num); }
.mt__bars { display: flex; align-items: flex-end; gap: 6px; height: 48px; }
.mt__bars i { width: 12px; border-radius: 3px; background: rgb(var(--fg) / .25); }
.mt__bars i:last-child { background: var(--hi); }

/* ===== They pay their way, you get rupees: a ledger of payments turning into INR ===== */
.flow { padding-block: var(--sec); border-top: 1px solid var(--line); }
.flow__in { display: grid; gap: clamp(28px, 4vw, 52px); }
.flow__title { margin: 0; font: 500 clamp(3rem, 8vw, 7.4rem)/.95 var(--display); letter-spacing: -.035em; }
.flow__l { display: block; }
.flow__l--dim { color: rgb(var(--fg) / .3); }
.flow__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .12em .08em 0; margin: 0 -.12em -.08em 0; }
.flow__title .wi { display: inline-block; }
.lg { list-style: none; margin: 0; padding: 0; }
.lg__row:first-child { border-top: 1px solid var(--line); }
.lg__row { display: grid; grid-template-columns: minmax(170px, 230px) 1fr 200px minmax(150px, 190px); align-items: center; padding: clamp(14px, 1.6vw, 20px) 0; border-bottom: 1px solid var(--line); }
.lg__from { display: flex; align-items: center; gap: 12px; font: 500 clamp(16px, 1.5vw, 19px)/1 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lg__from .mt__flag { width: 22px; height: 22px; border-radius: 7px; flex: none; }
.lg__line { position: relative; height: 1px; margin: 0 clamp(16px, 2.4vw, 32px); background: rgb(var(--fg) / .08); }
.lg__line i { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(var(--fg) / .1), rgb(var(--fg) / .5)); transform-origin: left; }
.lg__line i::after { content: ""; position: absolute; right: -1px; top: -4px; border: 4.5px solid transparent; border-left: 7px solid rgb(var(--fg) / .5); }
.lg__how { padding-right: clamp(16px, 2.4vw, 32px); text-align: right; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.lg__inr { text-align: right; font: 500 clamp(19px, 2vw, 25px)/1 var(--display); letter-spacing: -.02em; color: var(--num); font-variant-numeric: tabular-nums; }
.flow__note { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 40px; font-size: 14px; color: var(--muted); }
@media (max-width: 700px) {
  .lg__row { grid-template-columns: 1fr auto; row-gap: 6px; }
  .lg__line { display: none; }
  .lg__how { grid-row: 2; grid-column: 1 / -1; padding: 0; text-align: left; font-size: 12.5px; }
  .lg__inr { grid-row: 1; grid-column: 2; }
}
.motion .flow { position: absolute; left: 0; right: 0; bottom: 0; height: 100vh; height: 100svh; z-index: 4; padding: calc(var(--nav-h) + 8px) 0 28px; border: 0; display: flex; align-items: center; pointer-events: none; }
.motion .flow__in { width: 100%; }
/* The ledger sits over the hero until home.js hides its words, so it stays hidden until then (never shown over the headline on first paint). */
.motion .flow { visibility: hidden; }
.motion .flow.is-set { visibility: visible; }
.motion .lg__row, .motion .flow__note { opacity: 0; }
@media (min-width: 701px) and (max-height: 820px) { .motion .flow__title { font-size: clamp(2.6rem, 6.4vw, 5.6rem); } .motion .flow__in { gap: 26px; } }
@media (max-width: 700px) { .motion .flow__title { font-size: clamp(2.5rem, 12vw, 3.4rem); } .motion .flow__in { gap: 22px; } }
@media (max-width: 700px) and (max-height: 720px) { .motion .lg__row:nth-child(4) { display: none; } }

/* ===== Product chapters ===== */
.ch { position: relative; border-top: 1px solid var(--line); }
.ch__rail { display: none; }
.ch__item { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: var(--sec); }
.ch__item + .ch__item { border-top: 1px solid var(--line); }
.ch__copy { display: grid; gap: 22px; align-content: center; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 15.5px; line-height: 1.45; }
.ticks li::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 7px; background: rgb(var(--fg) / .08) var(--tick) center / 12px no-repeat; }
.ch__vis { position: relative; height: 600px; }
.fitbox { position: absolute; left: 50%; top: 50%; width: 560px; height: 600px; transform: translate(-50%, -50%) scale(var(--s, 1)); }
.scn { position: absolute; inset: 0; perspective: 1500px; }
@media (max-width: 900px) {
  .ch__item { grid-template-columns: minmax(0, 1fr); }
  .ch__vis { height: auto; aspect-ratio: 560 / 600; }
  .ch__vis { --s: .6; }
}
.ch__segs { display: flex; gap: 10px; width: min(460px, 100%); }
.ch__seg { flex: 1; display: grid; gap: 9px; margin: 0; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: 600 12.5px/1 var(--body); color: var(--muted); transition: color .3s; }
.ch__seg:hover, .ch__seg.is-on { color: var(--ink); }
.ch__seg i { position: relative; height: 2px; border-radius: 2px; background: rgb(var(--fg) / .12); overflow: hidden; }
.ch__seg .ch__fill { position: absolute; inset: 0; background: var(--hi); transform-origin: left; transform: scaleX(0); }
/* Motion, 761px and up: the copy scrolls in the page's own flow, and one sticky panel beside it shows the active
   chapter's scene. No pin, so the page is as tall as it looks. clip, not hidden: sticky needs no scrolling ancestor.
   The articles step aside (display: contents) so every copy block and every scene sits in one grid:
   copy down column 1, all five scenes stacked in the same sticky slot in column 2. Behaviour: src/js/home.js. */
@media (min-width: 761px) {
  /* --ch-top is where the space under the nav and rail starts; --ch-room ends above the floating bar (nav.css), which is up
     all through this section. The scene panel and the active copy are both centred in that room. */
  .motion .ch { --ch-top: calc(var(--nav-h) + 72px); --ch-room: calc(100vh - var(--ch-top) - 96px); overflow: clip; padding-block: clamp(28px, 4vw, 48px) clamp(56px, 7vw, 104px); }
  /* The rail lives in the scene column, held just above the sticky panel. Its box runs down to the panel's bottom edge,
     so the two let go together at the end of the section and the rail never slides over the scene. */
  .motion .ch__rail { display: block; grid-column: 2; grid-row: 1 / -1; align-self: start; height: calc(min(600px, var(--ch-room)) + 62px); position: sticky; top: calc(var(--ch-top) + (var(--ch-room) - min(600px, var(--ch-room))) / 2 - 62px); z-index: 5; pointer-events: none; }
  .motion .ch__segs { pointer-events: auto; width: min(560px, 100%); margin-inline: auto; padding: 11px 16px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgb(var(--bg-c) / .78); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
  /* The last row is spare room, so the panel can stay held while the fifth chapter is read on a short screen. */
  .motion .ch__grid { width: 100%; max-width: var(--max); margin-inline: auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: repeat(5, auto) 6vh; column-gap: clamp(32px, 5vw, 80px); }
  .motion .ch__item { display: contents; }
  /* The padding moves the centre of the copy to the centre of the room, level with the panel. */
  .motion .ch__copy { grid-column: 1; min-height: 78vh; padding-block: var(--ch-top) 96px; opacity: .45; transform: translateX(-10px); transition: opacity .5s, transform .5s; }
  .motion .ch__item:nth-of-type(1) .ch__copy { grid-row: 1; }
  .motion .ch__item:nth-of-type(2) .ch__copy { grid-row: 2; }
  .motion .ch__item:nth-of-type(3) .ch__copy { grid-row: 3; }
  .motion .ch__item:nth-of-type(4) .ch__copy { grid-row: 4; }
  .motion .ch__item:nth-of-type(5) .ch__copy { grid-row: 5; }
  .motion .ch__item.is-active .ch__copy { opacity: 1; transform: none; }
  /* All five scenes share one sticky slot, never taller than the room. Inactive ones fade out, then leave the tab order. */
  .motion .ch__vis { grid-column: 2; grid-row: 1 / -1; align-self: start; margin-top: 62px; position: sticky; top: calc(var(--ch-top) + (var(--ch-room) - min(600px, var(--ch-room))) / 2); height: min(600px, var(--ch-room)); aspect-ratio: auto; min-width: 0; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(18px) scale(.98); transition: opacity .5s, transform .5s var(--ease), visibility 0s linear .5s; }
  .motion .ch__item.is-active .ch__vis { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .5s, transform .5s var(--ease), visibility 0s; }
}
@media (min-width: 761px) and (max-height: 760px) { .motion .ch .h2 { font-size: clamp(2.2rem, 8.4vh, 4.6rem); } }
@media (min-width: 761px) and (max-width: 900px) {
  .motion .ch__grid { column-gap: 28px; }
  .motion .ch .h2 { font-size: clamp(2rem, 4.6vw, 2.6rem); }
  .motion .ch .lead { font-size: 15px; }
}

/* Scene: invoice */
.scn--inv { display: grid; place-items: center; }
.doc { position: relative; width: 480px; padding: 28px; border-radius: 28px; }
.doc__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.doc__brand { display: flex; align-items: center; gap: 10px; font: 600 13px/1 var(--body); letter-spacing: .3em; }
.doc__brand img { width: 22px; }
.doc__title { margin: 22px 0 4px; font: 500 38px/1 var(--display); letter-spacing: -.03em; }
.doc__no { color: var(--muted); font-size: 14px; }
.doc__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 6px; padding: 14px 0; border-block: 1px solid var(--line); }
.doc__meta dt { font-size: 12.5px; color: var(--muted); }
.doc__meta dd { margin: 2px 0 0; font-size: 14.5px; }
.doc__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 12px 0; border-bottom: 1px dashed rgb(var(--fg) / .09); font-size: 15px; }
.doc__row span:first-child { color: var(--ink-2); }
.doc__row span:last-child { font-variant-numeric: tabular-nums; }
.doc__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; }
.doc__total span { color: var(--muted); font-size: 14px; }
.doc__total b { font: 500 36px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.doc__lut { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: rgb(var(--fg) / .06); color: var(--ink-2); font-size: 13px; }
.doc__pay { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.paybtn { height: 46px; padding: 0 20px; border-radius: 12px; background: var(--hi); color: var(--btn-ink); font: 700 15px/1 var(--body); display: inline-flex; align-items: center; }
.doc__pay small { font-size: 12.5px; color: var(--muted); line-height: 1.3; max-width: 15ch; }
.doc__fira { position: absolute; right: 28px; bottom: 28px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border-radius: 12px; background: var(--tile-paid); border: 1px solid rgb(var(--money-c) / .3); font: 600 13px/1 var(--body); }
.doc__fira .ic { width: 28px; height: 28px; border-radius: 8px; color: var(--money); background: rgb(var(--money-c) / .12); }
.doc__fira .ic svg { width: 15px; height: 15px; }
.cursor { position: absolute; left: 0; top: 0; width: 28px; height: 28px; z-index: 5; opacity: 0; pointer-events: none; filter: drop-shadow(0 4px 8px rgb(var(--sh-c) / calc(.5 * var(--sh-k)))); }
.ripple { position: absolute; left: 0; top: 0; width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--hi); opacity: 0; pointer-events: none; z-index: 4; }

/* Scene: payment link */
.plink { position: absolute; left: 14px; top: 34px; width: 362px; padding: 22px; border-radius: 26px; z-index: 1; }
.plink__top { display: flex; align-items: center; gap: 10px; }
.plink__lbl { flex: 1; font: 600 13px/1 var(--body); color: var(--ink-2); }
.plink .plink__t { margin: 20px 0 2px; color: var(--ink); font: 500 26px/1.15 var(--display); letter-spacing: -.02em; }
.plink p { margin: 0; font-size: 13.5px; color: var(--muted); }
.plink__amt { display: block; margin-top: 18px; font: 500 46px/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plink__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.plink__btns { display: flex; gap: 8px; }
.btn--xs { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; gap: 6px; }
.btn--xs svg { width: 15px; height: 15px; }
.paycard { position: absolute; left: 262px; top: 300px; width: 284px; padding: 20px; border-radius: 26px; z-index: 2; background: var(--tile-hi); }
.paycard__amt { display: block; margin-top: 6px; font: 500 34px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.paycard__for { margin: 4px 0 12px; font-size: 13px; color: var(--muted); }
.paycard__field { margin-top: 8px; padding: 9px 12px; border-radius: 12px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); }
.paycard__field span { display: block; font-size: 11.5px; color: var(--muted); }
.paycard__field b { display: block; margin-top: 2px; font: 600 14px/1.25 var(--body); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.paycard__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.paycard__btn { margin-top: 14px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--hi); color: var(--btn-ink); font: 700 15px/1 var(--body); transition: background-color .3s, color .3s; }
.paycard__btn.is-paid { background: rgb(var(--money-c) / .14); color: var(--money); }
.paycard__btn.is-paid::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 25l9 8.5L39 13'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 25l9 8.5L39 13'/%3E%3C/svg%3E") center / contain no-repeat; }
.psettle { position: absolute; left: 18px; top: 410px; width: 228px; padding: 14px 16px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; border-radius: 20px; z-index: 2; }
.psettle p { margin: 0; font-size: 12.5px; color: var(--subtle); }
.psettle b { display: block; margin-top: 2px; font: 500 24px/1.05 var(--display); color: var(--num); font-variant-numeric: tabular-nums; }

/* Scene: accounts */
.acard { position: absolute; left: 40px; top: 70px; width: 480px; padding: 22px 24px 24px; border-radius: 28px; z-index: 2; }
.acard__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.acard__top b { font: 500 18px/1.2 var(--display); letter-spacing: -.01em; }
.acc__tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.ctab { justify-content: center; min-width: 0; height: 36px; padding: 0 6px; border: 0; border-radius: 10px; background: rgb(var(--fg) / .06); color: var(--ink-2); font: 600 12.5px/1 var(--body); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; transition: background-color .25s, color .25s; }
.ctab img { width: 18px; height: 18px; border-radius: 5px; object-fit: cover; flex: none; }
.ctab:hover { background: rgb(var(--fg) / .1); }
.ctab[aria-selected="true"] { background: var(--btn); color: var(--btn-ink); }
.ctab__ic { flex: none; width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; background: rgb(var(--fg) / .12); }
.ctab__ic svg { width: 13px; height: 13px; }
.ctab--more { cursor: default; padding: 0 12px; color: var(--muted); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.acc__panel { margin-top: 18px; padding: 20px; border-radius: 20px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); min-height: 284px; }
.acc__head { display: flex; align-items: center; gap: 14px; }
.acc__flag { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; flex: none; }
.acc__flag img { width: 100%; height: 100%; object-fit: cover; }
.acc__name { flex: 1; min-width: 0; }
.acc__name b { display: block; font: 500 19px/1.2 var(--display); letter-spacing: -.01em; }
.acc__name span { font-size: 13.5px; color: var(--muted); }
.acc__dl { margin: 14px 0 0; }
.acc__dl div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.acc__dl dt { font-size: 14px; color: var(--muted); }
.acc__dl dd { margin: 0; font: 500 15.5px/1.3 var(--body); font-variant-numeric: tabular-nums; letter-spacing: .02em; text-align: right; }
.acc__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.copybtn { height: 34px; padding: 0 12px 0 10px; border-radius: 10px; border: 0; background: rgb(var(--fg) / .08); color: var(--ink); font: 600 13px/1 var(--body); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.copybtn svg { width: 15px; height: 15px; }
.fl { position: absolute; width: 76px; height: 76px; display: grid; place-items: center; border-radius: 22px; z-index: 1; }
.fl img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }

/* Scene: FIRA */
.fstack { position: absolute; left: 0; right: 0; top: 0; height: 470px; }
.fdoc { position: absolute; left: 115px; top: 122px; width: 330px; padding: 20px; }
.fdoc:nth-child(1) { transform: translate(-90px, -110px) rotate(-8deg); }
.fdoc:nth-child(2) { transform: translate(-40px, -60px) rotate(-5deg); }
.fdoc:nth-child(3) { transform: translate(10px, -10px) rotate(-1.5deg); }
.fdoc:nth-child(4) { transform: translate(60px, 40px) rotate(2.5deg); }
.fdoc__top { display: flex; justify-content: space-between; align-items: center; }
.fdoc h3 { margin: 18px 0 2px; font: 500 22px/1.2 var(--display); letter-spacing: -.01em; }
.fdoc p { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.fdoc dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.fdoc dt { font-size: 12px; color: var(--muted); }
.fdoc dd { margin: 2px 0 0; font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fbar { position: absolute; left: 60px; right: 60px; bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 18px; border-radius: 20px; }
.fbar__t b { display: block; font: 500 17px/1.2 var(--display); }
.fbar__t span { font-size: 13px; color: var(--muted); }
.fbar .btn { height: 42px; padding: 0 16px; font-size: 14px; }
.fbar .btn svg { width: 16px; height: 16px; }

/* Scene: income */
.scn--trk { display: grid; grid-template-columns: 300px 248px; grid-template-rows: 318px 270px; gap: 12px; align-content: center; }
.dsum { grid-row: span 2; padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.dsum__big { margin-top: 4px; font: 500 46px/1 var(--display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.up { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--num); }
.up svg { width: 13px; height: 13px; flex: none; }
.bars { margin-top: auto; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; height: 330px; }
.bar { display: grid; grid-template-rows: auto 1fr auto; gap: 8px; height: 100%; }
.bar i { display: block; align-self: end; border-radius: 7px 7px 4px 4px; background: rgb(var(--fg) / .25); transform-origin: bottom; }
.bar.is-now i { background: var(--hi); }
.bar span { font-size: 12px; color: var(--muted); text-align: center; }
.bar em { font-style: normal; font-size: 11.5px; text-align: center; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dcli { padding: 20px 20px 8px; }
.dtitle { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.dtitle b { font: 500 17px/1.2 var(--display); }
.crow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.crow b { display: block; font-weight: 600; font-size: 14px; line-height: 1.25; }
.crow span { font-size: 12px; color: var(--muted); }
.crow .amt { display: grid; gap: 4px; justify-items: end; font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 600; color: var(--ink); }
.crow .pill { height: 22px; padding: 0 8px; font-size: 11.5px; }
.dtax { padding: 20px; display: grid; gap: 18px; align-content: center; }
.meter b { display: flex; justify-content: space-between; align-items: baseline; font: 500 17px/1.2 var(--display); }
.meter b span { font: 500 13px var(--body); color: var(--muted); }
.meter p { margin: 4px 0 10px; font-size: 13px; color: var(--muted); }
.track { height: 8px; border-radius: 99px; background: rgb(var(--fg) / .08); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: inherit; background: var(--hi); transform-origin: left; }

/* Freelance marketplaces: three tiles, joined by a line the money travels along */
.mkt__tl { list-style: none; margin: 0; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); padding: clamp(26px, 3vw, 40px); }
/* the track the money moves along, drawn once the card is on screen */
.mkt__tl::before, .mkt__tl::after { content: ""; position: absolute; top: calc(clamp(26px, 3vw, 40px) + 7px); left: calc(clamp(26px, 3vw, 40px) + 8px); right: clamp(26px, 3vw, 40px); height: 2px; border-radius: 2px; }
.mkt__tl::before { background: var(--line); }
.mkt__tl::after { background: linear-gradient(90deg, rgb(var(--fg) / .45), var(--num)); transform-origin: left; }
.rv .mkt__tl::after { transform: scaleX(0); transition: transform 1.6s var(--ease) .35s; }
.rv .mkt__tl.in::after { transform: none; }
.mkt__sp { position: relative; display: flex; flex-direction: column; gap: 6px; }
.mkt__dot { position: relative; z-index: 1; width: 16px; height: 16px; margin-bottom: 26px; border-radius: 50%; background: var(--hi); box-shadow: 0 0 0 4px var(--panel), 0 0 0 5px rgb(var(--fg) / .15); }
.mkt__sp:last-child .mkt__dot { background: var(--num); }
.rv .mkt__dot { transform: scale(0); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.rv .mkt__tl.in .mkt__dot { transform: none; }
.rv .mkt__tl.in .mkt__sp:nth-child(1) .mkt__dot { transition-delay: .3s; }
.rv .mkt__tl.in .mkt__sp:nth-child(2) .mkt__dot { transition-delay: .95s; }
.rv .mkt__tl.in .mkt__sp:nth-child(3) .mkt__dot { transition-delay: 1.6s; }
.mkt__sp small { font-size: 13px; color: var(--muted); }
.mkt__sp b { font: 500 18px/1.2 var(--display); letter-spacing: -.01em; }
.mkt__v { margin-top: 4px; font: 500 clamp(30px, 3.1vw, 42px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mkt__v--in { color: var(--num); }
.mkt__sp p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.mkt__sp .mkt__fira { margin-top: 10px; }
.mkt__fira { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 10px; border-radius: 999px; background: rgb(var(--money-c) / .12); color: var(--money); font: 600 12.5px/1 var(--body); }
.mkt__fira svg { width: 15px; height: 15px; }
.mkt__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; margin-top: clamp(28px, 3.4vw, 40px); }
.mkt__foot .note { max-width: 62ch; }
@media (max-width: 760px) {
  /* phones: the steps run downwards, along a vertical track */
  .mkt__tl { grid-template-columns: minmax(0, 1fr); row-gap: 26px; padding-left: 58px; }
  .mkt__tl::before, .mkt__tl::after { top: calc(clamp(26px, 3vw, 40px) + 8px); bottom: clamp(26px, 3vw, 40px); left: 30px; right: auto; width: 2px; height: auto; }
  .mkt__tl::after { background: linear-gradient(180deg, rgb(var(--fg) / .45), var(--num)); transform-origin: top; }
  .rv .mkt__tl::after { transform: scaleY(0); }
  .mkt__dot { position: absolute; left: -36px; top: 0; margin: 0; }
}

/* ===== Inside the app: a tilted wall of real screens on desktop, one screen at a time on phones ===== */
.appw { padding-top: 0; overflow: hidden; }
.appw .sp__phone { width: var(--w); }
.appw__mob { display: none; }
@media (max-width: 900px) { .appw { padding: 0; } .appw__desk { display: none; } .appw__mob { display: block; } }
.appw .g__item .sp__phone { box-shadow: inset 0 0 0 1.5px rgb(var(--fg) / .16), inset 0 1px 0 rgb(var(--fg) / .3), 0 40px 60px -30px rgb(var(--sh-c) / calc(.95 * var(--sh-k))); }
/* ---------- G: wall ---------- */

.g__stage { position: relative; height: 760px; perspective: 1400px; overflow: hidden; }
.g__wall { opacity: .45; position: absolute; left: 50%; top: 50%; display: grid; gap: 34px; transform: translate(-50%, -50%) rotateX(30deg) rotateZ(-12deg); transform-style: preserve-3d; }
.g__row { display: flex; gap: 26px; width: max-content; }
.g__item { margin: 0; }
.g__item .sp__phone { --w: 170px; }
.g__item figcaption { margin-top: 10px; font: 500 15px/1.2 var(--display); color: var(--ink-2); }
.g__veil { position: absolute; inset: 0; background: radial-gradient(ellipse 46% 40% at 50% 50%, var(--bg) 0%, rgb(var(--bg-c) / .86) 55%, rgb(var(--bg-c) / .2) 100%), linear-gradient(to bottom, var(--bg) 0%, rgb(var(--bg-c) / 0) 20%, rgb(var(--bg-c) / 0) 78%, var(--bg) 100%); }
.g__head { position: absolute; left: 0; right: 0; top: 380px; transform: translateY(-50%); text-align: center; }
.g__head .lead { margin-left: auto; margin-right: auto; }
.g__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 36px; margin-top: 8px; }
@media (max-width: 1100px) { .g__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.g__f { padding-top: 18px; border-top: 1px solid var(--line-2); }
.g__f b { display: block; font: 500 20px/1.2 var(--display); letter-spacing: -.01em; }
.g__f span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); }
@media (max-width: 900px) { .g__stage { height: 600px; } .g__head { top: 300px; } .g__item .sp__phone { --w: 130px; } .g__list { grid-template-columns: minmax(0, 1fr); gap: 22px; } }

/* ---------- G2: lit wall, one screen lifts out ---------- */
.g2 { position: relative; }
/* Phones: the stage sticks while the section scrolls past it. --g2-run is the scroll length, set by home.js. */
@media (max-width: 900px) {
  .appw { overflow: visible; overflow-x: clip; }
  .g2 { height: calc(100svh + var(--g2-run, 0px)); min-height: 600px; }
  .g2 .g2__stage { position: sticky; top: 0; background: var(--bg); }
}
.g2__stage { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; isolation: isolate; --cx: 60%; --cy: 52%; --pw: min(300px, calc((100svh - 240px) * .4772)); }
.g2__glow { position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse 38% 46% at var(--cx) var(--cy), rgb(var(--fg) / .075), rgb(var(--fg) / 0) 70%); }
.g2__wall { display: none; position: absolute; inset: -10% -10%; z-index: -1; perspective: 1500px; opacity: .85;
  -webkit-mask-image: radial-gradient(ellipse 46% 50% at var(--cx) var(--cy), #000 0%, rgba(0,0,0,.6) 42%, rgba(0,0,0,.18) 70%, transparent 88%);
  mask-image: radial-gradient(ellipse 46% 50% at var(--cx) var(--cy), #000 0%, rgba(0,0,0,.6) 42%, rgba(0,0,0,.18) 70%, transparent 88%); }
.g2__tilt { position: absolute; left: var(--cx); top: var(--cy); display: grid; gap: 40px; transform: translate(-50%, -50%) rotateX(34deg) rotateZ(-12deg); transform-style: preserve-3d; }
.g2__row { display: flex; gap: 34px; width: max-content; transform-style: preserve-3d; --sh: 50%; }
.g2__row[data-r="0"] { transform: translateZ(-140px); }
.g2__row[data-r="2"] { transform: translateZ(70px); }
.g2__row .sp__phone { --w: 196px; }
/* light on the glass, and a lit metal edge */
.g2 .sp__phone { box-shadow: inset 0 0 0 1.5px rgb(var(--fg) / .16), inset 0 1px 0 rgb(var(--fg) / .35), 0 50px 70px -30px rgb(var(--sh-c) / calc(.95 * var(--sh-k))); }
.g2 .sp__phone::before { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, rgb(var(--fg) / 0) 40%, rgb(var(--fg) / .11) 48%, rgb(var(--fg) / .03) 55%, rgb(var(--fg) / 0) 62%) no-repeat;
  background-size: 320% 100%; background-position: var(--sh, 50%) 0; }
.g2__lift { position: absolute; left: var(--cx); top: var(--cy); width: 0; height: 0; z-index: 2; perspective: 1200px; }
.g2__card { position: absolute; left: calc(var(--pw) / -2); top: calc(var(--pw) * -878 / 419 / 2); width: var(--pw); transform-style: preserve-3d; --sh: 100%; }
.g2__lift::before { content: ""; position: absolute; left: calc(var(--pw) * -.9); top: calc(var(--pw) * 878 / 419 / 2 - 30px); width: calc(var(--pw) * 1.8); height: 70px; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--fg) / .07), rgb(var(--fg) / 0)); pointer-events: none; }
.sp__phone.g2__phone { --w: var(--pw); box-shadow: inset 0 0 0 1.5px rgb(var(--fg) / .2), inset 0 1px 0 rgb(var(--fg) / .4), 0 80px 120px -40px rgb(var(--sh-c) / calc(.95 * var(--sh-k))), 0 0 0 1px rgb(var(--sh-c) / calc(.4 * var(--sh-k))) !important; }
.g2__view { position: absolute; left: 0; right: 0; top: calc(var(--w) * .135); bottom: 0; overflow: hidden; }
.g2__view img { position: absolute; left: 0; top: 0; width: 100%; height: auto; -webkit-mask-image: none; mask-image: none; }
.g2__img:not(:first-child) { opacity: 0; }
.g2__ui { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.g2__h { position: absolute; left: var(--gut); top: calc(var(--nav-h) + 16px); font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
.g2__copy { position: absolute; left: var(--gut); top: 50%; width: min(34%, 400px); height: 220px; transform: translateY(-40%); }
.g2__name { position: absolute; inset: 0; }
.g2__name:not(:first-child) { opacity: 0; }
.g2__name b { display: block; font: 500 clamp(2.2rem, 3.8vw, 3.4rem)/1 var(--display); letter-spacing: -.03em; }
.g2__name p { margin: 16px 0 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.g2__name small { display: block; margin-top: 14px; font-size: 14px; color: var(--muted); }
.g2__index { position: absolute; left: var(--gut); right: var(--gut); bottom: 36px; display: flex; gap: 6px 28px; flex-wrap: wrap; pointer-events: auto; }
.g2__ix { position: relative; min-height: 40px; padding: 8px 0; border: 0; background: none; cursor: pointer; font: 500 15px/1 var(--display); letter-spacing: -.005em; color: rgb(var(--fg) / .6); transition: color .25s; }
.g2__ix::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--hi); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.g2__ix:hover { color: var(--ink); }
.g2__ix[aria-current="true"] { color: var(--ink); }
.g2__ix[aria-current="true"]::after { transform: scaleX(1); }
.g2__ix:focus-visible { outline: 2px solid var(--hi); outline-offset: 4px; border-radius: 4px; }
@media (max-width: 1100px) { .g2__stage { --pw: min(260px, calc((100svh - 240px) * .4772)); } }
@media (max-width: 900px) {
  .g2__stage { --cx: 50%; --cy: 47%; min-height: 560px; --pw: min(210px, 54vw, calc((100svh - 330px) * .4772)); }
  .g2__row .sp__phone { --w: 140px; }
  .g2__tilt { gap: 28px; } .g2__row { gap: 24px; }
  .g2__h { left: 0; right: 0; top: 40px; text-align: center; font-size: clamp(2rem, 9vw, 2.6rem); }
  .g2__copy { left: var(--gut); right: var(--gut); top: auto; bottom: 84px; width: auto; height: 104px; transform: none; text-align: center; }
  .g2__name b { font-size: 26px; }
  .g2__name p { margin-top: 8px; font-size: 14.5px; }
  .g2__name small { display: none; }
  .g2__index { left: 0; right: 0; bottom: 22px; flex-wrap: nowrap; overflow-x: auto; padding: 0 var(--gut); gap: 22px; scrollbar-width: none; }
  .g2__index::-webkit-scrollbar { display: none; }
  .g2__ix { flex: none; font-size: 14.5px; }
}
@media (max-width: 900px) and (max-height: 720px) { .g2__name p { display: none; } .g2__copy { height: 40px; } }

/* Light: the app section stays a dark room, so the real screens read at full contrast instead of fading into the paper */
[data-theme="light"] .appw { --bg: #141414; --bg-c: 20 20 20; background: var(--bg); border-top-color: transparent; }

.g__cta { margin-top: 26px; }

/* Phones (760px and under): option A. The product chapters stack and scroll naturally, each scene laid out
   for the phone's own width at full size. Desktop and tablets keep the pinned stage
   from chapters.css. The app section keeps its pinned phone on every screen (app.css). Behaviour: src/js/home.js (stack mode). */
@media (max-width: 760px) {
  /* Chapters: no stage, no rail, every chapter in the flow */
  .ch, .motion .ch { height: auto; overflow: visible; }
  .ch__rail, .motion .ch__rail { display: none; }
  .ch__item, .motion .ch__item { position: relative; inset: auto; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 22px; padding-block: 56px; visibility: visible; pointer-events: auto; align-items: start; }
  .ch__item + .ch__item, .motion .ch__item + .ch__item { border-top: 1px solid var(--line); }
  .ch__copy, .motion .ch__copy { gap: 12px; align-content: start; }
  .ch .h2, .motion .ch .h2 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .ch .lead, .motion .ch .lead { display: block; font-size: 15.5px; }
  .ch .ticks { display: none; }

  /* Scenes at real size: the drawing frame is let go, cards take the screen's width */
  .ch__vis, .motion .ch__vis { height: auto; aspect-ratio: auto; }
  .fitbox { position: static; width: auto; height: auto; transform: none; }
  .scn { position: relative; inset: auto; display: grid; gap: 12px; perspective: none; }
  .scn .tile { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; }

  /* Payment link: the link, then the rupees landing. The client's card view is for wider screens. */
  .plink { padding: 20px; }
  .plink__amt { font-size: 40px; }
  .paycard { display: none; }
  .psettle { justify-self: start; min-width: 62%; }

  /* Global accounts: the account card alone, no floating flags */
  .scn--acc .fl { display: none; }
  .acard { padding: 18px; }
  .acc__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .acc__panel { min-height: 0; padding: 16px; }

  /* Invoice */
  .doc { padding: 20px; }
  .doc__title { font-size: 32px; margin-top: 18px; }
  .doc__total b { font-size: 30px; }
  .doc__fira { position: relative; right: auto; bottom: auto; margin-top: 16px; }
  .cursor, .ripple { display: none; }

  /* FIRAs: a neat pile, the top one fully readable, then the bar to send them */
  .fstack { position: relative; height: 262px; }
  .fdoc, .fdoc:nth-child(n), .scn .fdoc { position: absolute; left: 0; right: 0; width: auto; transform: none; }
  .fdoc:nth-child(1) { top: 0; } .fdoc:nth-child(2) { top: 10px; } .fdoc:nth-child(3) { top: 20px; } .fdoc:nth-child(4) { top: 30px; }
  .fbar { position: relative; left: auto; right: auto; bottom: auto; }

  /* Income: one column, a shorter chart */
  .scn--trk { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .dsum { grid-row: auto; }
  .dsum__big { font-size: 40px; }
  .bars { height: 170px; margin-top: 18px; }
  .bar span, .bar em, .crow span, .crow .pill, .scn .pill { font-size: 12px; }

  /* Phone scale: the scenes sit a step smaller than the headline, so the copy leads and the cards support it */
  .scn .tile { border-radius: 20px; }
  .plink { padding: 16px; }
  .plink .plink__t { margin-top: 14px; font-size: 20px; }
  .plink__amt { margin-top: 12px; font-size: 32px; }
  .psettle { padding: 12px 14px; }
  .acard { padding: 14px; }
  .acc__panel { margin-top: 12px; padding: 14px; }
  .acc__name b { font-size: 16.5px; }
  .acc__dl dt { font-size: 13px; }
  .acc__dl dd { font-size: 14px; }
  .acc__dl div { padding: 9px 0; }
  .doc { padding: 16px; }
  .doc__title { margin-top: 14px; font-size: 26px; }
  .doc__meta dd { font-size: 13.5px; }
  .doc__row { padding: 9px 0; font-size: 14px; }
  .doc__total b { font-size: 26px; }
  .doc__lut { font-size: 12.5px; }
  .fdoc { padding: 16px; }
  .fdoc h3 { margin-top: 12px; font-size: 19px; }
  .fstack { height: 232px; }
  .dsum { padding: 18px; }
  .dsum__big { font-size: 32px; }
  .bars { height: 128px; margin-top: 14px; }
  .crow b { font-size: 13px; }
  .crow .amt { font-size: 13px; }
}

/* Marketplaces card on phones: the same step down */
@media (max-width: 760px) {
  .mkt__v { font-size: 25px; }
}

/* ===== Phone frame (used by the app section) ===== */
.sp__phone { --w: clamp(176px, 17vw, 240px); position: relative; aspect-ratio: 419 / 878; padding: calc(var(--w) * .031); border-radius: calc(var(--w) * .165); background: linear-gradient(140deg, #3d3d41 0%, #1c1c1f 22%, #101012 55%, #2a2a2d 100%); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16), 0 40px 70px -34px rgba(0, 0, 0, .9); }
.sp__screen { position: relative; height: 100%; border-radius: calc(var(--w) * .135); overflow: hidden; background: #141414; }
.sp__screen img { position: absolute; left: 0; top: calc(var(--w) * .135); width: 100%; height: auto; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 calc(var(--w) * .05)); mask-image: linear-gradient(to bottom, transparent 0, #000 calc(var(--w) * .05)); }
.sp__screen::before { content: ""; position: absolute; z-index: 3; top: calc(var(--w) * .034); left: 50%; width: 31%; height: calc(var(--w) * .086); transform: translateX(-50%); border-radius: 999px; background: #000; }
.sp__screen::after { content: "9:41"; position: absolute; z-index: 2; left: 0; right: 0; top: calc(var(--w) * .034); height: calc(var(--w) * .086); display: flex; align-items: center; padding-left: calc(var(--w) * .1); font: 600 calc(var(--w) * .052)/1 -apple-system, "SF Pro Text", var(--body); letter-spacing: .01em; color: #fff; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 12' fill='%23fff'%3E%3Crect x='0' y='8' width='3' height='4' rx='1'/%3E%3Crect x='4.5' y='6' width='3' height='6' rx='1'/%3E%3Crect x='9' y='3.5' width='3' height='8.5' rx='1'/%3E%3Crect x='13.5' y='1' width='3' height='11' rx='1'/%3E%3Cpath d='M29 3.2a10 10 0 0 1 13 0l-1.5 1.6a7.8 7.8 0 0 0-10 0z M31.6 6a6.2 6.2 0 0 1 7.8 0l-1.5 1.6a4 4 0 0 0-4.8 0z M34.2 8.9a2.4 2.4 0 0 1 2.6 0L35.5 10.4z'/%3E%3Crect x='47.5' y='1' width='17' height='10' rx='3' fill='none' stroke='%23fff' stroke-opacity='.5' stroke-width='1'/%3E%3Crect x='49.3' y='2.8' width='13.4' height='6.4' rx='1.6'/%3E%3Crect x='65.6' y='4' width='1.6' height='4' rx='.8' fill-opacity='.5'/%3E%3C/svg%3E") no-repeat right calc(var(--w) * .09) center / auto calc(var(--w) * .03); }
.sp__phone::after { content: ""; position: absolute; z-index: 3; left: 50%; bottom: calc(var(--w) * .058); width: 34%; height: max(3px, calc(var(--w) * .015)); transform: translateX(-50%); border-radius: 99px; background: rgba(255, 255, 255, .75); }

/* ===== Trust ===== */
.tlist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 44px); }
.tt { padding-top: 22px; border-top: 1px solid var(--line-2); }
.tt b { display: block; font: 500 22px/1.2 var(--display); letter-spacing: -.015em; }
.tt p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
@media (max-width: 900px) { .tlist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 28px; } }
@media (max-width: 560px) { .tlist { grid-template-columns: minmax(0, 1fr); gap: 28px; } .tt b { font-size: 20px; } }

/* Home: what $1,000 leaves you, and the Learn row */
.learn__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.learn__ex { display: grid; gap: 22px; align-content: center; }
.learn__k { margin: 0; font: 400 16px/1.4 var(--body); color: var(--muted); }
.sum { margin: 0; display: grid; gap: .08em; font: 500 clamp(2rem, 4vw, 3.3rem)/1.12 var(--display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.sum__l { display: block; }
.sum__l--dim { color: rgb(var(--fg) / .32); }
.sum b { font-weight: 500; color: var(--num); }
.learn__ex .note { max-width: 52ch; }
.learn__ex .note a { color: var(--ink-2); text-underline-offset: 3px; }
.learn__links ul { list-style: none; margin: 0; padding: 0; display: grid; }
.learn__links a { position: relative; display: grid; gap: 4px; padding: 22px 40px 22px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.learn__links li:last-child a { border-bottom: 1px solid var(--line); }
.learn__links b { font: 500 18px/1.3 var(--display); letter-spacing: -.01em; }
.learn__links span { font-size: 14px; color: var(--muted); }
.learn__links a::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease); }
.learn__links a:hover::after { transform: translateX(4px) rotate(45deg); }
.learn__links a:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
@media (max-width: 900px) { .learn__in { grid-template-columns: minmax(0, 1fr); } }
.learn__more { margin: 16px 0 0; }
.learn__more a { position: static; display: inline; padding: 0; border: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.learn__more a::after { content: none; }

/* ===== FAQ ===== */
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; font: 500 clamp(18px, 1.8vw, 23px)/1.3 var(--display); letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa .pm { position: relative; width: 36px; height: 36px; flex: none; border-radius: 12px; background: rgb(var(--fg) / .06); }
.qa .pm::before, .qa .pm::after { content: ""; position: absolute; left: 11px; top: 17px; width: 14px; height: 2px; border-radius: 2px; background: var(--ink); }
.qa .pm::after { transform: rotate(90deg); transition: transform .3s var(--ease); }
.qa[open] .pm::after { transform: rotate(0deg); }
.qa.is-closing .pm::after { transform: rotate(90deg); }
.qa p { margin: -8px 0 26px; color: var(--ink-2); max-width: 64ch; }
.faq .lead a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }
.faq__in { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq .sec__head { grid-template-columns: minmax(0, 1fr); margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + 40px); }
@media (max-width: 900px) { .faq__in { grid-template-columns: minmax(0, 1fr); gap: 0; } .faq .sec__head { position: static; margin-bottom: clamp(36px, 5vw, 56px); } }

/* ===== Closing: the wall rebuilds ===== */
.get { position: relative; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); min-height: max(720px, 100svh); display: grid; place-items: center; text-align: center; padding-block: var(--sec); }
.gwall { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.gwall__tilt { position: absolute; left: 50%; top: 50%; display: flex; gap: 14px; transform: translate(-50%, -50%) rotate(-12deg); }
.gwall { --per: 7; }
.gwall .wall__col { --tw: 160px; }
.gwall__tilt { opacity: .62; }
.gwall__veil { position: absolute; inset: 0; background: radial-gradient(ellipse 52% 58% at 50% 50%, var(--bg) 0%, var(--bg) 30%, rgb(var(--bg-c) / .9) 52%, rgb(var(--bg-c) / .35) 82%, rgb(var(--bg-c) / .2) 100%), linear-gradient(to bottom, var(--bg) 0%, rgb(var(--bg-c) / 0) 18%, rgb(var(--bg-c) / 0) 82%, var(--bg) 100%); }
.get__in { display: grid; justify-items: center; gap: 28px; }
.get .h2 { font-size: clamp(2.8rem, 7.4vw, 6.4rem); max-width: 12ch; letter-spacing: -.035em; line-height: .92; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.stores a { display: block; border-radius: 9px; transition: transform .2s var(--ease); }
.stores a:hover { transform: translateY(-2px); }
.stores img { height: 48px; width: auto; }
.qr-tile { display: inline-flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: 20px; text-align: left; }
.qr { width: 76px; height: 76px; padding: 7px; border-radius: 12px; background: #fff; flex: none; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); }
.qr svg { width: 100%; height: 100%; display: block; color: #141414; }
.qr-tile b { display: block; font: 500 16px/1.2 var(--display); }
.qr-tile span { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .gwall .wall__col { --tw: 140px; } .gwall__veil { background: radial-gradient(ellipse 80% 44% at 50% 50%, var(--bg) 0%, rgb(var(--bg-c) / .94) 50%, rgb(var(--bg-c) / .4) 85%, rgb(var(--bg-c) / .25) 100%), linear-gradient(to bottom, var(--bg) 0%, rgb(var(--bg-c) / 0) 14%, rgb(var(--bg-c) / 0) 86%, var(--bg) 100%); } }

.web-btn svg { width: 18px; height: 18px; }
/* Light: the closing wall becomes paper tiles, so the last screen stays bright */
[data-theme="light"] .gwall__tilt { opacity: .9; }
.get__cta { height: 54px; padding: 0 30px; font-size: 16px; }
@media (min-width: 901px) { .get__cta--phone { display: none; } }

/* A QR code is for a computer screen. On phones and tablets the store buttons above already open the right store. */
@media (max-width: 1024px) and (pointer: coarse) { .qr-tile { display: none; } }

.iw .hero__title, .iw .hero__copy .eyebrow, .iw .hero__copy .lead, .iw .hero__foot > *, .iw .mh-t { opacity: 0; }
.iw [data-intro] { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .stores a, .qa .pm::after { transition: none; } }
/* Opening, homepage only, once per visit: the page fades in from black. The head script adds .curtain (build.mjs)
   and takes it off when the fade ends. Pure CSS, so it plays from the first paint and never waits on a script. */
html.curtain::after { content: ""; position: fixed; inset: 0; z-index: 200; background: #0A0A0A; pointer-events: none; animation: zc-fade .8s cubic-bezier(.4, 0, .2, 1) .15s forwards; }
@keyframes zc-fade { to { opacity: 0; } }
