/* Our story (/about/) — one owner's day, morning to midnight. Loaded only by About.astro. The night and the register are
   the page's own materials: lamp amber, ledger paper with blue rules and a red margin, ink. Everything else is the site's
   teal. Motion: the lamp and the register on load, the day's sky and clock as you scroll (site.js sets data-step), the
   word سہل written in right to left, and the slider. Static and complete with reduced motion or no script. */
/* The night scene and its tokens live in night.css, loaded before this file. */
.story section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.story h2 { max-width: 34rem; }
/* Every section opens the same way as Our mission: a large display heading, centred, a quieter line under it. The day's
   moment titles sit one step below these. */
.story section > .col > h2 { max-width: 18ch; margin: 0 auto 1rem; text-align: center; font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; letter-spacing: -.045em; text-wrap: balance; }
html[lang='ur'] .story section > .col > h2 { line-height: 1.6; letter-spacing: 0; }
.story section > .col > h2 + .sub { margin: 0 auto; text-align: center; font-size: clamp(1.125rem, 2vw, 1.375rem); max-width: 36rem; }
/* The marketing words, after the picture: a quiet two-column read */
.story .intro { padding-block: clamp(3rem, 7vw, 5.5rem); }
.intro-in { display: grid; justify-items: center; gap: clamp(1.25rem, 3vw, 2rem); text-align: center; }
/* The owner in the middle, what's on his mind in thought bubbles around his head: a cloud and two shrinking dots
   leading back to him. Physical left/right on purpose: the drawing doesn't mirror in Urdu. */
.intro-stage { position: relative; width: min(100%, 56rem); display: grid; justify-items: center; }
.intro-stage .owner { width: min(100%, 30rem); }
.thought { position: absolute; z-index: 1; max-width: 18rem; margin: 0; padding: .7em 1.1em; border-radius: 1.6em; background: #FAFCFB; color: #053327; font: 500 clamp(1rem, 1.6vw, 1.1875rem)/1.35 var(--f-brand); letter-spacing: -.01em; text-align: start; box-shadow: 0 1rem 2rem -1rem var(--shadow); }
html[lang='ur'] .thought { line-height: 1.75; letter-spacing: 0; }
.thought::before, .thought::after { content: ''; position: absolute; border-radius: 50%; background: inherit; box-shadow: inherit; }
.thought::before { width: .9em; height: .9em; top: calc(100% + .35em); }
.thought::after { width: .5em; height: .5em; top: calc(100% + 1.45em); }
.thought-0 { left: 2%; top: 4%; } .thought-1 { left: 0; top: 40%; }
.thought-2 { right: 2%; top: 2%; } .thought-3 { right: 0; top: 38%; }
.thought-0::before, .thought-1::before { right: 1.4em; } .thought-0::after, .thought-1::after { right: .4em; }
.thought-2::before, .thought-3::before { left: 1.4em; } .thought-2::after, .thought-3::after { left: .4em; }
/* The owner, before and after: the same man at the same counter (ChatGPT drawings, transparent WebP). */
.story .owner { display: block; width: 100%; max-width: 36rem; height: auto; margin-inline: auto; }
.after-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.after-in .owner { max-width: 28rem; }
.after h2 { max-width: 14ch; font-size: clamp(2.25rem, 4.6vw, 4rem); line-height: 1.02; letter-spacing: -.045em; margin-bottom: 1.25rem; text-wrap: balance; }
html[lang='ur'] .after h2 { line-height: 1.6; letter-spacing: 0; }
.after p { font-size: 1.1875rem; color: var(--ink-2); max-width: 30rem; margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .intro.armed .owner, .after.armed .owner { opacity: 0; translate: 0 1.5rem; transition: opacity .8s ease, translate .8s ease; }
  .intro.armed.in .owner, .after.armed.in .owner { opacity: 1; translate: 0 0; }
  .intro.armed .thought { opacity: 0; scale: .7; }
  .intro.armed.in .thought { animation: thought-in .5s cubic-bezier(.3, 1.4, .5, 1) .7s both; }
  .intro.armed.in .thought-2 { animation-delay: 1.1s; } .intro.armed.in .thought-1 { animation-delay: 1.5s; } .intro.armed.in .thought-3 { animation-delay: 1.9s; }
  @keyframes thought-in { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }
}
.intro-lede { max-width: 34rem; font: 500 clamp(1.375rem, 2.4vw, 1.875rem)/1.4 var(--f-brand); letter-spacing: -.02em; color: var(--ink); margin: 0; text-wrap: balance; }
html[lang='ur'] .intro-lede { line-height: 1.9; letter-spacing: 0; }
@media (max-width: 720px) {
  /* No room beside him on a phone: the thoughts sit two by two above the drawing, their dots trailing down to him. */
  .intro-stage { grid-template-columns: 1fr 1fr; gap: 1.6rem .75rem; }
  .intro-stage .owner { grid-column: 1 / -1; margin-top: .5rem; }
  .thought { position: relative; inset: auto; max-width: none; font-size: .9375rem; }
  .thought-0, .thought-2 { grid-row: 1; } .thought-1, .thought-3 { grid-row: 2; }
  .thought-0, .thought-1 { grid-column: 1; } .thought-2, .thought-3 { grid-column: 2; }
}

/* ── The day: the register beside five moments ─────────────────────────────
   The page of the register (ported from the user's other build, 2026-11-16) stays in view while the moments scroll;
   site.js sets .stage[data-step] and each moment does its one thing to the page. All motion sits behind
   no-preference; without script the page and its first state simply show. */
.day-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); margin-top: 2.5rem; align-items: start; }
.stage { position: sticky; top: var(--header-height, 5rem); height: calc(100vh - var(--header-height, 5rem)); display: flex; flex-direction: column; justify-content: center; }
.evidence { position: relative; isolation: isolate; width: min(100%, calc((100vh - 9rem) * .94)); aspect-ratio: .94; margin-inline: auto; background: #D8E1DE; border: 1px solid #BCCAC5; overflow: hidden; --wipe: inset(0 100% 0 0); }
html[dir='rtl'] .evidence { --wipe: inset(0 0 0 100%); }
.evidence-top, .evidence-bottom { position: absolute; inset-inline: 7%; display: flex; justify-content: space-between; align-items: center; font: 500 .5625rem var(--f-ui); letter-spacing: .12em; color: #55756C; z-index: 3; transition: color .45s ease; }
.evidence-top { top: 6%; }
.evidence-bottom { bottom: 5%; letter-spacing: 0; }
html[lang='ur'] .evidence-top, html[lang='ur'] .evidence-bottom { font-size: .75rem; letter-spacing: 0; }
.evidence-count { direction: ltr; unicode-bidi: isolate; }
.evidence-track { height: 2px; width: 85px; background: #BCCAC5; }
.evidence-track i { display: block; height: 100%; background: #00715A; width: 20%; }
.ledger-sheet { position: absolute; width: 74%; height: 69%; top: 17%; inset-inline-start: 13%; background: #FAFCFB; padding: 7%; rotate: -7deg; box-shadow: -5px 8px 0 #A7CDC4, 0 22px 35px #05332718; overflow: hidden; color: #10251F; }
.ledger-top { display: flex; justify-content: space-between; font: 500 .5rem var(--f-ui); letter-spacing: .08em; border-bottom: 1px solid #A7CDC4; padding-bottom: 14px; }
.ledger-columns { display: flex; justify-content: space-between; color: #55756C; font: 400 .5rem var(--f-ui); margin-top: 15px; }
html[lang='ur'] .ledger-top, html[lang='ur'] .ledger-columns { font-size: .6875rem; letter-spacing: 0; }
.ledger-rows { font: italic clamp(13px, 1.5vw, 24px)/1.8 Georgia, serif; margin-top: 8px; }
html[lang='ur'] .ledger-rows { font: 400 clamp(12px, 1.3vw, 21px)/1.95 Marhey, var(--f-ui); }
.ledger-rows > div { position: relative; display: flex; justify-content: space-between; padding: 3px 0; }
.ledger-rows > div > span:nth-of-type(2) { min-width: 75px; text-align: end; border-inline-start: 1px solid #BCCAC5; padding-inline-start: 12px; }
.ledger-rows i { font-style: normal; color: #A8331C; display: none; }
.entry-rule { position: absolute; bottom: -1px; inset-inline: 0; height: 1px; background: #BCCAC5; transform-origin: left; pointer-events: none; }
html[dir='rtl'] .entry-rule { transform-origin: right; }
.old-number { position: relative; display: inline-block; }
.ink-strike { position: absolute; inset-inline: -3px; top: 51%; height: 2px; background: #A8331C; rotate: -7deg; transform-origin: left; scale: 0 1; }
.ledger-scribble { font: italic 12px Georgia, serif; display: block; margin-top: 22px; color: #55756C; }
html[lang='ur'] .ledger-scribble { font: 400 13px Marhey, var(--f-ui); }
.water-ring { position: absolute; inset-inline-end: -16px; bottom: 10%; width: 120px; aspect-ratio: 1; border: 12px solid #8A5F1A12; border-radius: 50%; }
.error-badge { position: absolute; inset-inline-end: 14px; top: -13px; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #A8331C; color: #FAFCFB; border: 2px solid #EFF4F2; font: 600 15px var(--f-ui); box-shadow: 0 3px 9px #05332718; }
.total-note .error-badge { background: #B23A22; }

.evidence-overlay { position: absolute; z-index: 4; opacity: 0; visibility: hidden; transform: translateY(28px) rotate(2deg) scale(.96); pointer-events: none; }
.dispute-note { inset-inline-end: 5%; bottom: 16%; background: #FAFCFB; padding: 20px 26px; box-shadow: 0 10px 35px #05332720; border-inline-start: 3px solid #A8331C; }
.dispute-note > span { display: block; font: 500 clamp(22px, 3vw, 40px) var(--f-brand); color: #A8331C; direction: ltr; unicode-bidi: isolate; }
html[dir='rtl'] .dispute-note > span { direction: rtl; }
.dispute-note small { display: block; font-size: 11px; margin-top: 8px; color: #10251F; }
.message-note { inset-inline-end: 6%; top: 35%; width: 70%; background: #053327; color: #EFF4F2; border-radius: 18px 18px 3px 18px; padding: 28px; }
html[dir='rtl'] .message-note { border-radius: 18px 18px 18px 3px; }
.message-label { font-size: 8px; letter-spacing: .15em; color: #A7CDC4; }
.message-note p { font: 500 clamp(24px, 3vw, 45px)/1.1 var(--f-brand); letter-spacing: -.03em; margin: 20px 0; color: #EFF4F2; }
html[lang='ur'] .message-label { font-size: 11px; letter-spacing: 0; }
html[lang='ur'] .message-note p { font-size: clamp(20px, 2.4vw, 34px); line-height: 1.6; letter-spacing: 0; }
.message-time { display: block; text-align: end; font-size: 10px; color: #A7CDC4; }
.message-time span { margin-inline-start: 8px; }
.total-note { bottom: 18%; inset-inline: 18% 6%; padding: 24px; background: #053327; color: #EFF4F2; box-shadow: 0 14px 30px #05332730; }
.total-note > span { font-size: 8px; letter-spacing: .14em; color: #A7CDC4; }
html[lang='ur'] .total-note > span { font-size: 11px; letter-spacing: 0; }
.total-note strong { display: block; font: 500 clamp(40px, 6vw, 90px)/1.2 var(--f-brand); letter-spacing: .02em; direction: ltr; text-align: start; }
html[dir='rtl'] .total-note strong { text-align: end; }
.total-note small { font-size: 12px; color: #A7CDC4; }
.night-note { inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #031711E8; color: #EFF4F2; transform: none; }
.night-note strong { font: 500 clamp(50px, 7vw, 110px)/1 var(--f-brand); letter-spacing: -.05em; display: flex; align-items: baseline; gap: 10px; }
.night-note strong span { font-size: 20px; letter-spacing: 0; }
.night-note > span { font-size: 10px; letter-spacing: .2em; color: #A7CDC4; margin-top: 25px; }
html[lang='ur'] .night-note > span { font-size: 14px; letter-spacing: 0; }
.message-line, .calculator-digits > span { display: inline-block; }

/* What each moment does to the page. The crossed-out figure and the doubted total stay once they happen. */
.stage[data-step='1'] .dispute-note, .stage[data-step='2'] .message-note, .stage[data-step='3'] .total-note, .stage[data-step='4'] .night-note { opacity: 1; visibility: visible; transform: none; }
.stage:not([data-step='0']) .ink-strike { scale: 1 1; }
.stage:not([data-step='0']) .disputed i { display: inline-block; margin-inline-start: 5px; line-height: 1; }
.stage[data-step='3'] .ledger-total i, .stage[data-step='4'] .ledger-total i { display: inline; }
.stage[data-step='1'] .ledger-sheet { rotate: -3deg; translate: 0 -5px; }
.stage[data-step='2'] .ledger-sheet { rotate: -9deg; translate: 0 3px; }
.stage[data-step='3'] .ledger-sheet { rotate: -4deg; translate: 0 -5px; }
.stage[data-step='4'] .ledger-sheet { rotate: -7deg; translate: 0 12px; scale: .97; }
.stage[data-step='1'] .evidence-track i { width: 40%; } .stage[data-step='2'] .evidence-track i { width: 60%; }
.stage[data-step='3'] .evidence-track i { width: 80%; } .stage[data-step='4'] .evidence-track i { width: 100%; }
.stage[data-step='4'] .evidence-top, .stage[data-step='4'] .evidence-bottom { color: #A7CDC4; z-index: 5; }

@media (prefers-reduced-motion: no-preference) {
  .evidence-overlay { transition: opacity .45s ease, transform .55s cubic-bezier(.2, .7, .2, 1), visibility .45s; }
  .evidence-track i { transition: width .5s cubic-bezier(.2, .7, .2, 1); }
  .ledger-sheet { transition: rotate .6s cubic-bezier(.2, .7, .2, 1), translate .6s cubic-bezier(.2, .7, .2, 1), scale .6s cubic-bezier(.2, .7, .2, 1); }
  .ink-strike { transition: scale .35s cubic-bezier(.2, .7, .2, 1) .25s; }
  /* The page writes itself in the first time it comes into view (site.js adds .write, then .written). */
  .stage.write .entry-rule { animation: rule-in .45s ease-out var(--d, 0s) both; }
  .stage.write .ledger-rows > div > span { animation: wipe-in .5s ease-out calc(var(--d, 0s) + .1s) both; }
  .stage.write .ledger-rows > div > span:nth-of-type(2) { animation-delay: calc(var(--d, 0s) + .25s); }
  .stage.write .ledger-scribble { animation: rise-in .3s ease-out 1.2s both; }
  .ledger-rows > div:nth-child(2) { --d: .15s; } .ledger-rows > div:nth-child(3) { --d: .3s; } .ledger-rows > div:nth-child(4) { --d: .45s; }
  .ledger-rows > div:nth-child(5) { --d: .6s; } .ledger-rows > div:nth-child(6) { --d: .75s; }
  .stage[data-step='1'] .disputed i { animation: rise-in .25s ease-out .5s both; }
  /* Each note arrives with its own small motion: a wipe, a pop of the warning, a shake when something is wrong. */
  .stage[data-step='1'] .dispute-note > span { animation: wipe-in .4s ease-out .2s both; }
  .stage[data-step='1'] .dispute-note, .stage[data-step='3'] .total-note { animation: shake .22s ease-in-out .7s; }
  .stage[data-step='1'] .error-badge, .stage[data-step='3'] .error-badge { animation: pop .3s cubic-bezier(.3, 1.6, .5, 1) .45s both; }
  .stage[data-step='2'] .message-line { animation: wipe-in .35s ease-out .25s both; }
  .stage[data-step='2'] .message-line + br + .message-line { animation-delay: .45s; }
  .stage[data-step='2'] .message-time { animation: rise-in .25s ease-out .75s both; }
  .stage[data-step='3'] .calculator-digits > span { animation: digit-in .25s ease-out both; }
  .stage[data-step='3'] .calculator-digits > span:nth-child(2) { animation-delay: .06s; } .stage[data-step='3'] .calculator-digits > span:nth-child(3) { animation-delay: .12s; }
  .stage[data-step='3'] .calculator-digits > span:nth-child(4) { animation-delay: .18s; } .stage[data-step='3'] .calculator-digits > span:nth-child(5) { animation-delay: .24s; }
  .stage[data-step='3'] .ledger-total i { animation: rise-in .25s ease-out .4s both; }
  .stage[data-step='4'] .night-note strong { animation: rise-in .4s ease-out .15s both; --rise: 12px; }
  .stage[data-step='4'] .night-note > span { animation: rise-in .3s ease-out .4s both; }
}
@keyframes rule-in { from { scale: 0 1; } }
@keyframes wipe-in { from { clip-path: var(--wipe); translate: 0 3px; } to { clip-path: inset(0 0 0 0); } }
@keyframes rise-in { from { opacity: 0; translate: 0 var(--rise, 6px); } }
@keyframes digit-in { from { opacity: 0; translate: 0 10px; } }
@keyframes pop { from { opacity: 0; scale: .65; } }
@keyframes shake { 30% { translate: -4px 0; } 65% { translate: 3px 0; } }

.moments { list-style: none; margin: 0; padding: 0; }
.moment { min-height: 85vh; display: flex; flex-direction: column; justify-content: center; padding-block: 2rem; transition: opacity .5s ease; }
/* Only once site.js runs the stage: the moment in view is lit, the others wait. */
.day.live .moment { opacity: .35; }
.day.live .moment.now { opacity: 1; }
.moment:first-child { min-height: 55vh; justify-content: flex-start; }
.moment:last-child { min-height: 60vh; }
.m-time { font: 600 1.125rem/1.4 var(--f-ui); color: var(--accent-text); margin-bottom: .75rem; font-variant-numeric: tabular-nums; }
.moment .m-time { font: 600 clamp(1.25rem, 2.2vw, 1.75rem)/1.2 var(--f-brand); letter-spacing: -.02em; }
.moment h3 { font-size: clamp(2.125rem, 4vw, 3.5rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; margin-bottom: 1.5rem; text-wrap: balance; }
html[lang='ur'] .moment h3 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); line-height: 1.6; letter-spacing: 0; }
.moment p:last-child { font-size: 1.1875rem; color: var(--ink-2); max-width: 30rem; }
/* What someone said, as a chat bubble — the part of the day that arrives on WhatsApp. */
.bubble { position: relative; justify-self: start; align-self: flex-start; max-width: 30rem; margin: 0 0 1.5rem; padding: .9rem 1.25rem; font-size: clamp(1.125rem, 1.8vw, 1.375rem); line-height: 1.4; border-radius: 16px 16px 16px 4px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; color: var(--ink); box-shadow: 0 10px 24px -20px var(--shadow); }
html[dir='rtl'] .bubble { border-radius: 16px 16px 4px 16px; }

/* ── The turn: سہل, written in right to left ──────────────────────────────── */
.story .turn { background: var(--surface); border-block: 1px solid var(--line); }
.turn-in { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 6vw, 5rem); align-items: center; }
.turn-word { font: 700 clamp(7rem, 22vw, 15rem)/1 'Marhey', var(--f-brand); color: var(--accent); margin: 0; padding-block: .1em .35em; }
.turn h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
@media (prefers-reduced-motion: no-preference) {
    /* The clip reaches past the box on every side: ہ's hook hangs below the line, and inset(0) would trim it. */
  .turn.armed .turn-word { clip-path: inset(-.5em -.25em -.5em 100%); }
  .turn.armed.in .turn-word { clip-path: inset(-.5em -.25em -.5em -.25em); transition: clip-path 1.6s cubic-bezier(.6, 0, .2, 1); }
}

/* ── One customer, two ways: the register and the app side by side ─────────────
   Before is tinted red with a cross, After green with a tick; the arrow between them reads in the page's direction.
   site.js adds .armed then .in once half the block is in view, which draws the cross, the arrow, then the tick. */
.compare-block { --bad: #C2554A; --good: #1E8A5A; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(.75rem, 3vw, 2.5rem); max-width: 52rem; margin: 2.25rem auto 0; }
.side { margin: 0; display: grid; gap: .85rem; }
.side h3 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.625rem); text-align: center; }
.side-before h3 { color: var(--bad); }
.side-after h3 { color: var(--good); }
.side figcaption { text-align: center; color: var(--ink-3); font-size: .9375rem; }
.poster { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -36px var(--shadow); }
.side-before .poster { outline: 3px solid color-mix(in srgb, var(--bad) 55%, transparent); outline-offset: -3px; }
.side-after .poster { background: var(--band); outline: 3px solid color-mix(in srgb, var(--good) 60%, transparent); outline-offset: -3px; }
.poster > svg:first-child { display: block; width: 100%; height: 100%; }
.poster img { position: absolute; top: 6%; left: 50%; translate: -50% 0; height: 88%; width: auto; max-width: none; border-radius: 16px; border: 4px solid #0F4337; }
.tint { position: absolute; inset: 0; pointer-events: none; }
.side-before .tint { background: linear-gradient(160deg, color-mix(in srgb, var(--bad) 8%, transparent), color-mix(in srgb, var(--bad) 26%, transparent)); }
.side-after .tint { background: linear-gradient(160deg, color-mix(in srgb, var(--good) 6%, transparent), color-mix(in srgb, var(--good) 30%, transparent)); }
.compare-block .paper { fill: var(--paper, #F4EFE1); }
.compare-block .rules { stroke: #9DB3C9; stroke-width: 1.4; }
.compare-block .margin { stroke: #C2554A; stroke-width: 1.6; }
.compare-block .stain { fill: none; stroke: #B98B5B; stroke-width: 7; opacity: .25; }
.compare-block .hand text { font: 400 22px 'Marhey', var(--f-brand); fill: #1F3B6B; }
.compare-block .hand .name { font-size: 34px; }
.compare-block .hand .fix { fill: #3B5B95; font-size: 17px; }
.compare-block .hand .total { fill: #C2554A; }
.compare-block .strike { stroke: #C2554A; stroke-width: 2.4; stroke-linecap: round; }
.compare-block .circle-red { fill: none; stroke: #C2554A; stroke-width: 2.4; }
/* The cross and the tick: a filled disc in the poster's top corner with a white mark drawn into it. */
.verdict { position: absolute; top: .9rem; inset-inline-end: .9rem; width: clamp(2.5rem, 5vw, 3.25rem); height: auto; filter: drop-shadow(0 6px 10px rgb(3 23 17 / .3)); }
.verdict circle { stroke: #fff; stroke-width: 2.5; }
.side-before .verdict circle { fill: var(--bad); }
.side-after .verdict circle { fill: var(--good); }
.verdict path, .pair-arrow path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.verdict path { stroke: #fff; stroke-width: 4.5; }
.pair-arrow { width: clamp(2.5rem, 5vw, 3.75rem); height: auto; color: var(--ink-3); }
.pair-arrow path { stroke: currentColor; stroke-width: 2.6; }
[dir="rtl"] .pair-arrow { scale: -1 1; }
@media (prefers-reduced-motion: no-preference) {
  .compare-block.armed .verdict { scale: 0; }
  .compare-block.armed .verdict path, .compare-block.armed .pair-arrow path { stroke-dashoffset: 1; }
  .compare-block.armed .tint { opacity: 0; }
  .compare-block.in .tint { opacity: 1; transition: opacity .8s ease; }
  .compare-block.in .side-before .tint { transition-delay: .1s; }
  .compare-block.in .side-after .tint { transition-delay: 1.3s; }
  .compare-block.in .verdict { animation: verdict-pop .45s cubic-bezier(.34, 1.56, .64, 1) both; }
  .compare-block.in .side-before .verdict { animation-delay: .3s; }
  .compare-block.in .side-after .verdict { animation-delay: 1.5s; }
  .compare-block.in .verdict path, .compare-block.in .pair-arrow path { animation: draw .35s ease-out both; }
  .compare-block.in .side-before .verdict path:first-of-type { animation-delay: .6s; }
  .compare-block.in .side-before .verdict path:last-of-type { animation-delay: .8s; }
  .compare-block.in .pair-arrow path { animation-duration: .6s; animation-delay: 1s; }
  .compare-block.in .side-after .verdict path { animation-duration: .5s; animation-delay: 1.8s; }
  .compare-block.in .side-before .poster { animation: shake .5s ease-in-out .85s; }
  .compare-block.in .pair-arrow { animation: nudge 1.8s ease-in-out 2.4s infinite; }
}
@keyframes verdict-pop { from { scale: 0; } to { scale: 1; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes nudge { 0%, 100% { translate: 0; } 50% { translate: var(--nudge); } }
.pair-arrow { --nudge: .35rem 0; }
[dir="rtl"] .pair-arrow { --nudge: -.35rem 0; }
@media (max-width: 640px) {
  .pair { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 1rem; }
  .side { width: min(100%, 20rem); }
  .pair-arrow, [dir="rtl"] .pair-arrow { rotate: 90deg; scale: 1; --nudge: 0 .35rem; }
}


/* ── Promises ─────────────────────────────────────────────────────────────── */
.promises { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; }
.promises li { display: flex; gap: 1rem; align-items: flex-start; }
.promises li { align-items: center; }
.promise-art { flex: none; width: clamp(5rem, 8vw, 6.5rem); height: auto; }
.promises h3 { margin-bottom: .35rem; }
.promises p { color: var(--ink-2); margin: 0; }
.story .who { padding-top: 0; }
.story .who .final-card { margin-top: 3rem; }

@media (max-width: 860px) {
  .after-in { grid-template-columns: 1fr; }
  .after-in .owner { order: -1; }
  .turn-in { grid-template-columns: 1fr; text-align: start; }
}
@media (max-width: 720px) {
  /* The sky rides along at the top while the moments scroll under it. */
  .day-grid { grid-template-columns: 1fr; gap: 0; }
  /* The register rides along at the top while the moments scroll under it (as in the other build). */
  .stage { top: 0; height: auto; z-index: 2; background: var(--ground); padding-block: .75rem; }
  .evidence { width: 100%; max-width: 420px; height: clamp(180px, 30svh, 260px); aspect-ratio: auto; }
  .evidence-top { top: 7%; inset-inline: 5%; } .evidence-bottom { bottom: 5%; inset-inline: 5%; }
  .ledger-sheet { width: 64%; height: 82%; top: 12%; inset-inline-start: 18%; padding: 4% 6%; }
  .ledger-top { font-size: 6px; padding-bottom: 8px; } .ledger-columns { font-size: 6px; margin-top: 8px; }
  .ledger-rows { font-size: 12px; line-height: 1.45; margin-top: 4px; } .ledger-rows > div { padding: 1px 0; }
  html[lang='ur'] .ledger-rows { font-size: 11px; line-height: 1.55; }
  .ledger-scribble { font-size: 9px; margin-top: 10px; } .water-ring { width: 75px; border-width: 8px; }
  .dispute-note { padding: 14px 18px; bottom: 18%; } .dispute-note > span { font-size: 25px; } .dispute-note small { font-size: 9px; }
  .message-note { top: 25%; width: 62%; padding: 18px; } .message-note p { font-size: 27px; margin: 12px 0; }
  html[lang='ur'] .message-note p { font-size: 20px; }
  .total-note { padding: 18px; bottom: 15%; inset-inline: 25% 7%; } .total-note strong { font-size: 48px; }
  .night-note strong { font-size: 65px; }
  .moment h3 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .moment, .moment:first-child, .moment:last-child { min-height: 62vh; justify-content: center; }
  .promises { grid-template-columns: 1fr; }
}

/* ── Our mission: one sentence with small pictures in it ─────────────────── */
.story .mission { text-align: center; background: var(--surface); border-block: 1px solid var(--line); }
.mission h2 { margin-bottom: 1.75rem; }
.mission-text { max-width: 54rem; margin: 0 auto; font: 400 clamp(1.25rem, 2.4vw, 1.75rem)/1.85 var(--f-ui); letter-spacing: -.01em; color: var(--ink-2); text-wrap: balance; }
html[lang='ur'] .mission-text { font-family: var(--f-ui); line-height: 2.1; letter-spacing: 0; }
.chip { position: relative; display: inline-block; vertical-align: middle; width: 3.4em; height: 1.45em; margin-inline: .1em; border-radius: 999px; overflow: hidden; background: var(--surface-2); box-shadow: 0 6px 16px -10px var(--shadow), inset 0 0 0 1px rgb(3 23 17 / .08); translate: 0 -.08em; }
.chip svg { display: block; width: 100%; height: 100%; }
/* An app screen, zoomed in on the part the sentence talks about. */
.chip img { position: absolute; max-width: none; width: 210%; height: auto; left: -55%; top: var(--y, -10%); }
.keep { white-space: nowrap; }
/* Offsets are in chip heights (top) and widths (left): each crop centres the part of the screen the sentence names. */
.chip-phone img { width: 120%; left: -10%; --y: -40%; }
.chip-account img { left: -5%; --y: -466%; }
.chip-share img { --y: -444%; }
.chip-team img { left: -5%; --y: -224%; }
@media (prefers-reduced-motion: no-preference) {
  .mission.armed .chip { scale: 0; transition: scale .5s cubic-bezier(.3, 1.6, .5, 1); }
  .mission.armed.in .chip { scale: 1; }
  .mission.armed.in .chip:nth-of-type(2) { transition-delay: .12s; } .mission.armed.in .chip:nth-of-type(3) { transition-delay: .24s; }
  .mission.armed.in .chip:nth-of-type(4) { transition-delay: .36s; } .mission.armed.in .chip:nth-of-type(5) { transition-delay: .48s; }
  .mission.armed.in .chip:nth-of-type(6) { transition-delay: .6s; } .mission.armed.in .chip:nth-of-type(7) { transition-delay: .72s; }
  .chip:hover { scale: 1.12; }
}

/* Each moment of the day fills the screen; site.js glides the nearest one to the middle when scrolling settles inside
   the day (the user, 2026-11-16 — CSS proximity snapping missed most stops on a large screen, and mandatory would trap
   the page between the day and its neighbours). */
.moment, .moment:first-child, .moment:last-child { min-height: calc(100vh - var(--header-height, 5rem)); justify-content: center; }
@media (max-width: 720px) {
  .moment, .moment:first-child, .moment:last-child { min-height: 75vh; }
}


/* ── This is Sehal: the app's screens in a row ──────────────────────────────
   Without script (or with reduced motion) the row scrolls sideways by itself. With script, src/scripts/story.js pins
   the section and GSAP ScrollTrigger turns the page's downward scroll into the row moving sideways (.reel.pinned). */
.story .reel { background: var(--night); color: #AAC4BE; padding-block: 0; overflow: hidden; }
.reel-pin { min-height: calc(100vh - var(--header-height, 5rem)); display: flex; flex-direction: column; justify-content: center; gap: clamp(1.5rem, 4vh, 2.5rem); padding-block: clamp(2rem, 6vh, 4rem); }
.reel-head h2 { color: #EFF4F2; text-align: center; margin: 0 auto .75rem; font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; letter-spacing: -.045em; }
html[lang='ur'] .reel-head h2 { line-height: 1.6; letter-spacing: 0; }
.reel-head .sub { text-align: center; margin: 0 auto; max-width: 36rem; font-size: clamp(1.125rem, 2vw, 1.375rem); }
.reel-view { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: max(1.25rem, (100vw - var(--col, 1360px)) / 2); }
.reel-track { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1.5rem, 4vw, 4rem); width: max-content; }
.reel-item { scroll-snap-align: center; }
.reel-item figure { margin: 0; display: grid; gap: 1.25rem; width: clamp(14rem, 22vw, 17.5rem); }
.reel-phone { aspect-ratio: 9 / 20; max-height: 58vh; border-radius: 2.25rem; border: 9px solid #0B1F19; background: #0B1F19; overflow: hidden; box-shadow: 0 40px 70px -30px #000, inset 0 0 0 1px #ffffff14; }
.reel-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 1.6rem; }
.reel-item figcaption { display: grid; gap: .35rem; }
.reel-item figcaption b { color: #EFF4F2; font: 600 1.25rem/1.25 var(--f-brand); letter-spacing: -.02em; }
html[lang='ur'] .reel-item figcaption b { line-height: 1.7; letter-spacing: 0; }
.reel-item figcaption span { font-size: 1rem; line-height: 1.5; }
.reel.pinned .reel-view { overflow: visible; scroll-snap-type: none; }
@media (max-width: 720px) {
  .reel-item figure { width: 62vw; }
  .reel-phone { max-height: 52vh; }
}

/* ── The same day, with Sehal: the phone beside the replayed day ───────────────
   The second .day: the moments step a sticky phone (site.js sets .stage[data-step]); src/scripts/story.js plays each
   screen's taps with GSAP by stepping .scr[data-f]. The screens copy the app as it is today (mobile/src: palette.ts,
   tailwind.config.js, the Customer Details / Receive Payment / Statement / Money in hand / Payments screens), drawn at
   the app's own sizes in dp: --u is one dp of a 360 dp phone. Without script every screen shows its end state. */
.solve .was { margin: 0 0 .5rem; color: var(--ink-3); font-size: 1.125rem; text-decoration: line-through; text-decoration-color: #C2554A; text-decoration-thickness: 2px; }
.solve .moment h3 { margin-bottom: 1rem; }
.device { container-type: inline-size; width: min(100%, 21rem, calc((100vh - 8rem) * 360 / 780)); margin-inline: auto; padding: .6rem; border-radius: 2.6rem; background: #0B1F19; box-shadow: 0 40px 70px -34px var(--shadow), inset 0 0 0 1px #ffffff1a; }
.app { --u: calc(100cqw / 360); position: relative; aspect-ratio: 360 / 780; overflow: hidden; border-radius: 2rem; background: #EFF4F2; color: #053327; font: 400 calc(16 * var(--u)) / 1.6 var(--f-ui); text-align: start; }
.app svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); flex: none; }
.app small { font-size: calc(14 * var(--u)); color: #4A5B56; }
.app:lang(ur), .lang-ur { line-height: 1.75; }
.lang-en { line-height: 1.6; }
.app-status { position: absolute; z-index: 3; inset: 0 0 auto; height: calc(26 * var(--u)); display: flex; justify-content: space-between; align-items: center; padding-inline: calc(18 * var(--u)); background: #A7CDC4; font: 500 calc(13 * var(--u)) var(--f-ui); color: #053327; direction: ltr; }
.app-sig { display: flex; gap: calc(3 * var(--u)); }
.app-sig i { width: calc(9 * var(--u)); height: calc(9 * var(--u)); background: #053327; border-radius: 2px; }
.app-sig i:first-child { clip-path: polygon(50% 100%, 0 0, 100% 0); }
.app-sig i:nth-child(2) { clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.app-sig i:last-child { width: calc(6 * var(--u)); height: calc(11 * var(--u)); }
.app-gesture { position: absolute; z-index: 6; bottom: calc(8 * var(--u)); left: 50%; translate: -50% 0; width: calc(110 * var(--u)); height: calc(4 * var(--u)); border-radius: 4px; background: #053327; opacity: .85; }
.scr { position: absolute; inset: 0; padding-top: calc(26 * var(--u)); opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
.stage[data-step='0'] .scr-0, .stage[data-step='1'] .scr-1, .stage[data-step='2'] .scr-2, .stage[data-step='3'] .scr-3, .stage[data-step='4'] .scr-4, .stage[data-step='5'] .scr-5 { opacity: 1; visibility: visible; }
/* The header band: back arrow, centred title, the sync icon. */
.app-bar { display: grid; grid-template-columns: calc(40 * var(--u)) 1fr calc(40 * var(--u)); align-items: center; padding: calc(12 * var(--u)) calc(12 * var(--u)); background: #A7CDC4; border-bottom: 1px solid #8FB8AE; }
.app-bar b { text-align: center; font: 500 calc(20 * var(--u)) / 1.3 var(--f-brand); letter-spacing: calc(-.4 * var(--u)); }
.app-bar b:lang(ur) { line-height: 1.5; letter-spacing: 0; }
.app-bar b small { display: block; font: 400 calc(14 * var(--u)) / 1.4 var(--f-ui); color: #2A5247; letter-spacing: 0; }
.app-back, .app-sync { display: grid; place-items: center; height: calc(40 * var(--u)); }
.app-back svg { width: calc(24 * var(--u)); height: calc(24 * var(--u)); }
.app-back:dir(rtl) svg { scale: -1 1; }
.app-sync { color: #00614D; }
.app-sync svg { width: calc(20 * var(--u)); height: calc(20 * var(--u)); }
.app-body { display: grid; gap: calc(16 * var(--u)); padding: calc(20 * var(--u)); align-content: start; }
/* Cards, tiles and buttons: radii xs 6 · sm 10 · md 14 · lg 20; only buttons carry a shadow. */
.c-card { display: grid; gap: calc(16 * var(--u)); padding: calc(16 * var(--u)); border-radius: calc(20 * var(--u)); border: 1px solid #D8E1DE; background: #FAFCFB; }
.c-who { display: flex; align-items: center; gap: calc(14 * var(--u)); }
.c-who > div { flex: 1; display: grid; min-width: 0; }
.c-av { flex: none; display: grid; place-items: center; width: calc(56 * var(--u)); height: calc(56 * var(--u)); border-radius: 50%; background: #00715A1A; color: #00715A; font: 600 calc(20 * var(--u)) var(--f-brand); }
.c-name { font: 600 calc(26 * var(--u)) / 1.2 var(--f-brand); letter-spacing: calc(-.65 * var(--u)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-name:lang(ur) { font-size: calc(23 * var(--u)); line-height: 1.5; letter-spacing: 0; }
.c-phone { color: #4A5B56; }
.c-edit { color: #4A5B56; }
.c-btns { display: grid; grid-template-columns: 1fr 1fr; gap: calc(12 * var(--u)); }
.btn-paper, .btn-primary, .btn-sec { display: flex; align-items: center; justify-content: center; gap: calc(8 * var(--u)); height: calc(56 * var(--u)); border-radius: calc(10 * var(--u)); font: 600 calc(16 * var(--u)) var(--f-ui); white-space: nowrap; }
.btn-paper { background: #FAFCFB; border: 1px solid #D8E1DE; box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), inset 0 -2px 0 rgb(5 51 39 / .10), 0 1px 2px rgb(5 51 39 / .10); }
.btn-primary { background: linear-gradient(180deg, rgb(255 255 255 / .16) 0%, rgb(255 255 255 / 0) 55%, rgb(5 51 39 / .08) 100%), #00715A; color: #EFF4F2; box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), inset 0 -2px 0 rgb(5 51 39 / .18), 0 1px 2px rgb(5 51 39 / .18); }
.btn-sec { height: calc(44 * var(--u)); background: #E8EEEC; font-size: calc(14 * var(--u)); }
.btn-lg { height: calc(64 * var(--u)); }
.btn-lg svg { width: calc(20 * var(--u)); height: calc(20 * var(--u)); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: calc(12 * var(--u)); }
.tile { display: grid; padding: calc(16 * var(--u)); border-radius: calc(14 * var(--u)); border: 1px solid #D8E1DE; background: #FAFCFB; }
.tile b { font: 600 calc(20 * var(--u)) / 1.3 var(--f-brand); letter-spacing: calc(-.4 * var(--u)); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tile > span { font-size: calc(14 * var(--u)); }
.tile-due { background: #DFEBE6; color: #00614D; }
.c-billed { margin: calc(-8 * var(--u)) 0 0; font-size: calc(14 * var(--u)); color: #4A5B56; }
.lp-b { display: none; }
/* Receive Payment: the bottom sheet, the toast with Undo. */
.sheet { position: absolute; z-index: 4; inset: auto 0 0; display: grid; gap: calc(8 * var(--u)); padding: calc(20 * var(--u)); padding-bottom: calc(28 * var(--u)); border-radius: calc(20 * var(--u)) calc(20 * var(--u)) 0 0; background: #FAFCFB; box-shadow: 0 -10px 40px rgb(5 51 39 / .25); translate: 0 105%; transition: translate .45s cubic-bezier(.2, .8, .2, 1); }
.sheet-grip { justify-self: center; width: calc(40 * var(--u)); height: calc(4 * var(--u)); border-radius: 4px; background: #D8E1DE; }
.sheet-title { font: 500 calc(20 * var(--u)) / 1.3 var(--f-brand); letter-spacing: calc(-.4 * var(--u)); }
.sheet-owes { font-size: calc(14 * var(--u)); color: #4A5B56; margin-top: calc(-6 * var(--u)); }
.sheet label, .count label { margin-top: calc(6 * var(--u)); font: 500 calc(14 * var(--u)) var(--f-ui); color: #4A5B56; }
.field { display: flex; align-items: center; justify-content: space-between; height: calc(56 * var(--u)); padding-inline: calc(16 * var(--u)); border-radius: calc(10 * var(--u)); border: 1px solid #6C8880; background: #FAFCFB; font-variant-numeric: tabular-nums; }
.field .type:empty::before { content: '0'; color: #55756C; }
.field .type { direction: ltr; }
.caret { margin-inline-end: auto; width: 2px; height: calc(22 * var(--u)); background: #00715A; opacity: 0; }
.field-select { color: #053327; }
.chip-all { justify-self: start; padding: calc(8 * var(--u)) calc(14 * var(--u)); border-radius: 999px; background: #E8EEEC; font: 600 calc(14 * var(--u)) var(--f-ui); }
.after-line { font-size: calc(14 * var(--u)); color: #00614D; opacity: 0; }
.sheet .btn-primary { margin-top: calc(10 * var(--u)); }
.toast { position: absolute; z-index: 5; top: calc(34 * var(--u)); inset-inline: calc(16 * var(--u)); display: flex; align-items: center; justify-content: space-between; gap: calc(12 * var(--u)); padding: calc(12 * var(--u)) calc(16 * var(--u)); border-radius: calc(6 * var(--u)); background: #00715A; color: #FAFCFB; font: 600 calc(14 * var(--u)) / 1.4 var(--f-ui); box-shadow: 0 8px 24px rgb(5 51 39 / .25); opacity: 0; translate: 0 calc(-12 * var(--u)); transition: opacity .3s ease, translate .3s ease; }
.toast-undo { flex: none; min-height: calc(32 * var(--u)); display: grid; place-items: center; padding-inline: calc(12 * var(--u)); border: 1px solid #FAFCFB; border-radius: 6px; text-transform: uppercase; }
/* Statement, Share as, the text message. */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: calc(4 * var(--u)); border-radius: 999px; background: #E8EEEC; }
.seg span { padding-block: calc(10 * var(--u)); border-radius: 999px; text-align: center; font: 600 calc(14 * var(--u)) var(--f-ui); color: #4A5B56; }
.seg .on { background: #053327; color: #EFF4F2; }
.bal { display: flex; justify-content: space-between; padding: calc(12 * var(--u)); border-radius: calc(14 * var(--u)); background: #E8EEEC; font-size: calc(15 * var(--u)); }
.bal span { color: #4A5B56; }
.entry, .pay { display: flex; justify-content: space-between; align-items: center; gap: calc(10 * var(--u)); padding: calc(12 * var(--u)); border-radius: calc(14 * var(--u)); border: 1px solid #D8E1DE; background: #FAFCFB; }
.entry > div, .pay > div { display: grid; min-width: 0; }
.entry span, .pay span { font-size: calc(15 * var(--u)); line-height: 1.4; }
.entry small, .pay small { font-size: calc(13 * var(--u)); }
.entry b, .pay b { font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; direction: ltr; }
.entry b.paid, .pay b { color: #00715A; }
.pay { padding: calc(16 * var(--u)); }
.pay span { font-weight: 500; }
.pay b { font-weight: 600; }
.scrim { position: absolute; z-index: 3; inset: 0; background: rgb(3 23 17 / .45); opacity: 0; transition: opacity .3s ease; }
.dialog { position: absolute; z-index: 4; inset: auto calc(20 * var(--u)) 30%; display: grid; gap: calc(18 * var(--u)); padding: calc(24 * var(--u)); border-radius: calc(20 * var(--u)); background: #FAFCFB; opacity: 0; scale: .94; transition: opacity .3s ease, scale .3s ease; }
.dialog > b { font: 500 calc(20 * var(--u)) var(--f-brand); }
.opt { display: flex; gap: calc(16 * var(--u)); align-items: center; padding: calc(4 * var(--u)); border-radius: calc(10 * var(--u)); }
.opt > div { display: grid; }
.opt b { font-weight: 600; }
.opt-i { color: #00715A; display: grid; }
.opt-i svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
.msg { position: absolute; z-index: 4; inset: calc(110 * var(--u)) calc(16 * var(--u)) auto; opacity: 0; translate: 0 calc(20 * var(--u)); transition: opacity .35s ease, translate .35s ease; }
.msg p { margin: 0; display: grid; padding: calc(14 * var(--u)) calc(16 * var(--u)); border-radius: calc(14 * var(--u)) calc(14 * var(--u)) calc(14 * var(--u)) calc(4 * var(--u)); background: #FAFCFB; box-shadow: 0 10px 30px rgb(5 51 39 / .2); font-size: calc(13 * var(--u)); line-height: 1.5; white-space: pre-wrap; }
.msg .m0, .msg .m5 { font-weight: 600; }
.msg .m2, .msg .m5 { margin-top: calc(8 * var(--u)); }
.msg .m6 { margin-top: calc(8 * var(--u)); color: #4A5B56; }
/* The order's steps: done steps deep teal, the current one ringed, the rest waiting. */
.c-card-sm { gap: 0; }
.sub-h { font: 500 calc(20 * var(--u)) var(--f-brand); letter-spacing: calc(-.4 * var(--u)); margin-top: calc(4 * var(--u)); }
.order { display: grid; gap: calc(14 * var(--u)); padding: calc(16 * var(--u)); border-radius: calc(14 * var(--u)); border: 1px solid #D8E1DE; background: #FAFCFB; }
.order-n { font-weight: 600; }
.pipe { position: relative; display: flex; justify-content: space-between; }
.st { position: relative; z-index: 1; display: grid; justify-items: center; gap: calc(6 * var(--u)); width: calc(84 * var(--u)); }
.st-dot { display: grid; place-items: center; width: calc(44 * var(--u)); height: calc(44 * var(--u)); border-radius: 50%; background: #E8EEEC; color: #4A5B56; border: calc(4 * var(--u)) solid #FAFCFB; transition: background .3s ease, color .3s ease, box-shadow .3s ease; }
.st-dot svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
.st small { font-size: calc(13 * var(--u)); text-align: center; transition: color .3s ease; }
.pipe-line { position: absolute; top: calc(20 * var(--u)); height: calc(4 * var(--u)); width: calc(50% - 42 * var(--u)); border-radius: 4px; background: #D8E1DE; transition: background .3s ease; }
.l-0 { inset-inline-start: calc(42 * var(--u)); } .l-1 { inset-inline-end: calc(42 * var(--u)); }

/* Money in hand. */
.app .lbl { font: 600 calc(11 * var(--u)) / 1.45 var(--f-ui); letter-spacing: calc(1.54 * var(--u)); text-transform: uppercase; color: #4A5B56; }
.app .lbl:lang(ur) { font-size: calc(12 * var(--u)); letter-spacing: 0; }
.mine { display: grid; gap: calc(8 * var(--u)); padding: calc(16 * var(--u)); border-radius: calc(14 * var(--u)); background: #E8EEEC; }
.mine .row { display: flex; justify-content: space-between; }
.mine-v { font-variant-numeric: tabular-nums; direction: ltr; }
.holder { display: flex; justify-content: space-between; align-items: center; padding: calc(16 * var(--u)); border-radius: calc(14 * var(--u)); border: 1px solid #D8E1DE; background: #FAFCFB; font-weight: 500; margin-top: calc(-8 * var(--u)); }
.count { display: grid; gap: calc(8 * var(--u)); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s ease, opacity .3s ease; margin-top: calc(-8 * var(--u)); }
.count .btn-primary { margin-top: calc(6 * var(--u)); }
.scr-3 .toast { background: #00715A; }
/* Payments: the day's header with its total. */
.day-h { display: flex; justify-content: space-between; align-items: baseline; gap: calc(8 * var(--u)); }
.day-h b { color: #00715A; font: 600 calc(14 * var(--u)) var(--f-ui); direction: ltr; }
.scr-4 .app-body { gap: calc(10 * var(--u)); }
/* Any time: Profile › Language. English, the confirm dialog, the restart, then the same app in Urdu, right to left. */
.lang-ur, .restart { position: absolute; inset: calc(26 * var(--u)) 0 0; background: #EFF4F2; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
.lang-ur { z-index: 5; }
.restart { z-index: 6; display: grid; place-items: center; }
.restart i { width: calc(30 * var(--u)); height: calc(30 * var(--u)); border-radius: 50%; border: calc(3 * var(--u)) solid #D8E1DE; border-top-color: #00715A; }
.pref { display: grid; gap: calc(10 * var(--u)); margin-top: calc(-6 * var(--u)); }
.pref-l { font: 500 calc(14 * var(--u)) var(--f-ui); color: #4A5B56; }
.seg-2 { grid-template-columns: 1fr 1fr; }
.seg-lang span { transition: background .25s ease, color .25s ease; }
.scr-5 .lang-a, .scr-5:not([data-f='0']) .lang-b { background: #053327; color: #EFF4F2; }
.scr-5:not([data-f='0']) .lang-a { background: none; color: #4A5B56; }
.confirm { inset-block-end: 34%; gap: calc(12 * var(--u)); }
.confirm p { margin: 0; font-size: calc(15 * var(--u)); color: #4A5B56; line-height: 1.5; }
.confirm-btns { display: grid; grid-template-columns: 1fr 1fr; gap: calc(12 * var(--u)); margin-top: calc(8 * var(--u)); }
.confirm-btns > span { height: calc(48 * var(--u)); font-size: calc(15 * var(--u)); }
.scr-5[data-f='1'] .scrim { opacity: 1; }
.scr-5[data-f='1'] .dialog { opacity: 1; scale: 1; }
.scr-5[data-f='2'] .restart, .scr-5:is([data-f='3'], [data-f='end']) .lang-ur { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .scr-5[data-f='2'] .restart i { animation: spin .8s linear infinite; }
}
@keyframes spin { to { rotate: 1turn; } }
/* The finger that taps: story.js moves it onto each button. */
.finger { position: absolute; z-index: 7; top: 0; left: 0; width: calc(40 * var(--u)); height: calc(40 * var(--u)); margin: calc(-20 * var(--u)) 0 0 calc(-20 * var(--u)); border-radius: 50%; background: rgb(5 51 39 / .28); border: 2px solid rgb(250 252 251 / .9); opacity: 0; pointer-events: none; }

/* Each screen's frames (story.js steps .scr[data-f]; 'end' is every frame done, shown without script). */
.scr-0:is([data-f='1'], [data-f='2']) .sheet { translate: 0 0; }
.scr-0:is([data-f='1'], [data-f='2']) .scrim, .scr-1:is([data-f='1']) .scrim { opacity: 1; }
.scr-0[data-f='2'] .after-line { opacity: 1; }
.scr-0:is([data-f='3'], [data-f='end']) .toast, .scr-3:is([data-f='3'], [data-f='end']) .toast { opacity: 1; translate: 0 0; }
.scr-0:is([data-f='3'], [data-f='end']) .lp-a { display: none; }
.scr-0:is([data-f='3'], [data-f='end']) .lp-b { display: inline; }
.scr-1[data-f='1'] .dialog { opacity: 1; scale: 1; }
.scr-1:is([data-f='2'], [data-f='end']) .msg { opacity: 1; translate: 0 0; }
.scr-1:is([data-f='2'], [data-f='end']) .app-body { filter: blur(1px); opacity: .5; }
/* Received → Ready → Delivered: frame 0 has the order received, 1 ready, 2 (and the end) delivered. */
.scr-2[data-f='0'] .order-live .st-0 .st-dot, .scr-2[data-f='1'] .order-live .st-1 .st-dot, .scr-2:is([data-f='2'], [data-f='end']) .order-live .st-2 .st-dot { background: #00715A; color: #EFF4F2; box-shadow: 0 0 0 calc(2 * var(--u)) #053327; }
.scr-2:is([data-f='1'], [data-f='2'], [data-f='end']) .order-live .st-0 .st-dot, .scr-2:is([data-f='2'], [data-f='end']) .order-live .st-1 .st-dot { background: #053327; color: #EFF4F2; }
.scr-2[data-f='0'] .order-live .st-0 small, .scr-2:is([data-f='1'], [data-f='2'], [data-f='end']) .order-live :is(.st-0, .st-1) small, .scr-2:is([data-f='2'], [data-f='end']) .order-live .st-2 small { color: #053327; font-weight: 600; }
.scr-2:is([data-f='1'], [data-f='2'], [data-f='end']) .order-live .l-0, .scr-2:is([data-f='2'], [data-f='end']) .order-live .l-1 { background: #053327; }
.scr-3:is([data-f='1'], [data-f='2'], [data-f='3'], [data-f='end']) .count { max-height: calc(200 * var(--u)); opacity: 1; }
.scr-0 .scrim { z-index: 3; }
/* The customer's recent entries: today's payment joins the top once it is saved. */
.ledger { display: grid; gap: calc(8 * var(--u)); margin-top: calc(-8 * var(--u)); }
.scr-0 .lbl { margin-top: calc(4 * var(--u)); }
.entry-new { display: none; }
.scr-0:is([data-f='3'], [data-f='end']) .entry-new { display: flex; }
@media (prefers-reduced-motion: no-preference) {
  .scr-0[data-f='3'] .entry-new { animation: rise-in .4s ease-out .3s both; --rise: -10px; }
}
/* The earlier, finished order and the day before stay as they were: everything done. */
.scr-2 .order-done .st-dot { background: #053327; color: #EFF4F2; box-shadow: none; }
.scr-2 .order-done .st-2 .st-dot { background: #00715A; box-shadow: 0 0 0 calc(2 * var(--u)) #053327; }
.scr-2 .order-done small { color: #053327; font-weight: 600; }
.scr-2 .order-done .pipe-line { background: #053327; }
.day-h-2 { margin-top: calc(10 * var(--u)); }
@media (max-width: 720px) {
  /* On a phone the phone rides along at the top, half the screen tall, while the moments scroll under it. */
  .solve .device { width: calc(48svh * 360 / 780 + 1.2rem); padding: .4rem; border-radius: 1.8rem; }
  .solve .app { border-radius: 1.45rem; }
}

/* A readable story with optional chapter jumps, without forced scroll snapping. */
.story-opening { max-width: 42rem; margin-inline: auto; }
.story-opening > p { font-size: 1.1875rem; color: #C9DBD6; }
.story-chapters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin-bottom: 1.25rem; }
.story-chapters a { display: inline-flex; align-items: center; min-height: 44px; color: #8FE3C0; }
.story .night h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
.story .night .scene-wrap { max-width: 40rem; }
.story .night { padding-bottom: 0; }
.story .moment, .story .moment:first-child, .story .moment:last-child { min-height: 58vh; padding-block: 2rem; }
.story .day.live .moment { opacity: 1; }
.story .who-copy { font-size: 1.1875rem; color: var(--ink-2); }
.story-mid-cta { display: flex; justify-content: center; padding-block: 1rem 2rem; }
.story #day, .story #same-day, .story #promises { scroll-margin-top: calc(var(--header-height, 5rem) + 1rem); }
@media (max-width: 720px) {
  .story .moment, .story .moment:first-child, .story .moment:last-child { min-height: 52svh; }
  .story .solve .device { width: calc(40svh * 360 / 780 + 1.2rem); }
  .story #day, .story #same-day, .story #promises { scroll-margin-top: calc(var(--header-height, 5rem) + 1rem); }
  .story-chapters { gap: .25rem 1rem; font-size: .9375rem; }
}

.story .final .story-final-title { max-width: none; width: 100%; margin-inline: auto; font-size: clamp(1.75rem, 5vw, 4.5rem); line-height: 1.12; }
.story-final-title > span { display: block; }
.story-final-title .story-final-accent { color: #8FE3C0; }
html[lang='ur'] .story-final-title { line-height: 1.7; }

.chapter-rail { display: flex; justify-content: center; gap: .5rem; padding: .5rem; background: #053327; }
.chapter-rail a { color: #EFF4F2; min-height: 44px; display: flex; align-items: center; padding: .5rem; font-size: .875rem; text-decoration: none; }
.chapter-rail a[aria-current] { color: #8FE3C0; text-decoration: underline; text-underline-offset: .3em; }
.chapter-rail.is-ready { position: fixed; inset-inline-end: 1rem; top: 50%; translate: 0 -50%; z-index: 20; flex-direction: column; border-radius: 1rem; border: 1px solid #72998B; gap: 0; }
.chapter-rail.is-ready[hidden] { display: none; }
.chapter-rail.is-ready a { position: relative; justify-content: center; width: 44px; padding: 0; }
.chapter-bar { display: none; }
.is-ready .chapter-bar { display: block; width: 18px; height: 3px; border-radius: 3px; background: #A4BCB3; }
.is-ready a[aria-current] .chapter-bar { width: 30px; height: 5px; background: #8FE3C0; }
.is-ready .chapter-label { position: absolute; inset-inline-end: 100%; margin-inline-end: .75rem; width: max-content; max-width: 65vw; padding: .6rem .9rem; border-radius: .5rem; color: #EFF4F2; background: #053327; border: 1px solid #72998B; visibility: hidden; }
.is-ready a:is(:hover,:focus-visible) .chapter-label { visibility: visible; }
@media (prefers-reduced-motion: no-preference) { .chapter-bar { transition: width 180ms ease-out; } }
@media (max-width: 900px), (hover: none) {
 .chapter-rail.is-ready { inset: auto .5rem .5rem; translate: none; flex-direction: row; }
 .chapter-rail.is-ready a { width: auto; flex: 1; text-align: center; padding: .25rem; font-size: .75rem; }
 .is-ready .chapter-label { position: static; visibility: visible; width: auto; max-width: none; padding: 0; margin: 0; border: 0; }
 .is-ready .chapter-bar { display: none; }
 .is-ready a[aria-current] .chapter-label { color: #8FE3C0; }
 .story { padding-bottom: 4rem; }
}
