/* Lagos Life · B5 "Live in three steps" = a phone held by a lady, the 3-step checkout plays on its screen.
   Client pick 9 Oct (direction 3 of Design/variations/2026-10-09-brands-b5, then: phone only, centred, hand from below).
   Everything is scoped to #steps .b5. Logic: assets/b5.js. Owambe Sticker Book tokens; no tilts; hover = colour/light only. */
#steps .b5 {
  --b5-ink: #101634; --b5-ink2: rgba(16,22,52,.68); --b5-ink3: rgba(16,22,52,.14);
  --b5-paper: #FFFCF7; --b5-cotton: #F3F1EA; --b5-etu: #1B2350; --b5-green: #22B573; --b5-greenS: #D7F4E6;
  --b5-gold: #E9A512; --b5-fuch: #E8558A;
  --b5-disp: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --b5-text: "Plus Jakarta Sans", system-ui, sans-serif;
  --k: .8;
  --k: min(.92, calc((100vh - 150px) / 760px));
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
@media (max-width: 600px) { #steps .b5 { --k: min(.82, calc((100vw - 32px) / 455px)); } }
/* the P5 hand (same art, same geometry as #phone .pp-held), cropped by an ink baseline like P5 */
#steps .b5__stage { position: relative; width: calc(455px * var(--k)); height: calc(860px * var(--k)); overflow-x: clip; overflow-y: visible; clip-path: inset(-200px 0 0 0); }
#steps .b5__stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5px; background: var(--b5-ink); z-index: 5; }
#steps .b5__hand { position: absolute; left: 0; width: 455px; height: 728px; pointer-events: none; overflow: visible; }
#steps .b5__hand--back { top: 112px; z-index: 1; height: 865px; }
#steps .b5__hand--front { top: 240px; z-index: 3; }
#steps .b5__held { position: absolute; left: 0; top: 0; width: 455px; height: 968px; transform: scale(var(--k)); transform-origin: 0 0; }
/* scroll-in scrub sets --p (0 → 1) from b5.js; phone and hand move as one unit */
#steps .b5__held { --p: 1; }
#steps .b5__float { position: absolute; inset: 0; transform-origin: 50% 60%; transform: translateY(calc((1 - var(--p)) * 60px)) scale(calc(.72 + .28 * var(--p))); opacity: calc(.6 + .4 * var(--p)); filter: blur(calc((1 - var(--p)) * 2px)); will-change: transform, opacity, filter; }
/* ---------- the phone ---------- */
#steps .b5__phone { position: absolute; z-index: 2; left: 58px; top: 0; width: 340px; height: 700px; padding: 12px; border-radius: 50px; background: var(--b5-etu); border: 3px solid var(--b5-ink); box-shadow: 0 30px 60px -36px rgba(16,22,52,.45); }
#steps .b5__phone::before { content: ""; position: absolute; left: 50%; top: 24px; translate: -50% 0; width: 92px; height: 26px; border-radius: 999px; background: #05081A; z-index: 6; }
#steps .b5__scr { position: relative; height: 100%; border-radius: 38px; background: var(--b5-paper); overflow: hidden; color: var(--b5-ink); font: 500 14px/1.45 var(--b5-text); text-align: left; }
#steps .b5__bar { display: flex; justify-content: space-between; padding: 20px 28px 0; font: 700 12px/1 var(--b5-text); }
#steps .b5__top { display: flex; align-items: center; gap: 10px; padding: 26px 20px 0; }
#steps .b5__app { font: 800 13px/1 var(--b5-text); letter-spacing: .02em; color: var(--b5-ink2); }
#steps .b5__of { margin-left: auto; font: 700 12px/1 var(--b5-text); color: var(--b5-ink2); font-variant-numeric: tabular-nums; }
#steps .b5__dash { display: flex; gap: 4px; }
#steps .b5__dash i { width: 18px; height: 5px; border-radius: 4px; background: var(--b5-ink3); transition: background 280ms; }
#steps .b5__dash i.is-on { background: var(--b5-green); }
#steps .b5__pause { display: grid; place-items: center; width: 32px; height: 32px; margin-right: -6px; border: 0; border-radius: 50%; background: none; color: var(--b5-ink); cursor: pointer; transition: background 180ms; }
#steps .b5__pause:hover { background: var(--b5-cotton); }
#steps .b5__pause svg { width: 14px; height: 14px; fill: currentColor; }
#steps .b5__title { padding: 14px 20px 0; font: 800 28px/1 var(--b5-disp); font-variation-settings: "wdth" 80; text-transform: uppercase; letter-spacing: -.01em; }
#steps .b5__sub { padding: 6px 20px 0; font-size: 13px; color: var(--b5-ink2); min-height: 3.2em; }

#steps .b5__view { position: absolute; left: 0; right: 0; top: 196px; bottom: 76px; padding: 0 20px; display: flex; flex-direction: column; gap: 10px; opacity: 0; visibility: hidden; transform: translateX(20px); transition: opacity 280ms cubic-bezier(.22,1,.36,1), transform 280ms cubic-bezier(.22,1,.36,1), visibility 0s linear 280ms; }
#steps .b5__view.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 280ms cubic-bezier(.22,1,.36,1), transform 280ms cubic-bezier(.22,1,.36,1); }
#steps .b5__view.is-back { transform: translateX(-20px); }

/* step 1: drop zone */
#steps .b5__drop { position: relative; display: grid; place-items: center; height: 200px; border: 2.5px dashed rgba(16,22,52,.35); border-radius: 20px; background: #fff; text-align: center; font-size: 13px; color: var(--b5-ink2); cursor: pointer; overflow: hidden; transition: background 180ms, border-color 180ms; }
#steps .b5__drop:hover, #steps .b5__drop:focus-within { background: var(--b5-greenS); border-color: var(--b5-ink); }
#steps .b5__drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
#steps .b5__din { display: grid; gap: 6px; justify-items: center; pointer-events: none; transition: opacity 200ms; }
#steps .b5__din svg { width: 30px; height: 30px; fill: none; stroke: var(--b5-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#steps .b5__din b { color: var(--b5-ink); font-size: 14px; }
/* the sample ad (a white 3:1 Vanish frame) sat edge-less on the white drop zone and read as a faint ghost; it now reads as the uploaded picture: its own box, outlined */
#steps .b5__thumb { position: absolute; inset: 0; margin: auto; width: calc(100% - 24px); height: auto; max-height: calc(100% - 24px); object-fit: contain; background: #fff; border: 2px solid var(--b5-ink); border-radius: 12px; box-shadow: 0 10px 22px -12px rgba(16,22,52,.35); opacity: 0; transform: translateY(-40px); transition: opacity 240ms, transform 460ms cubic-bezier(.34,1.56,.64,1); pointer-events: none; }
#steps .b5__drop.has-img .b5__thumb { opacity: 1; transform: none; }
#steps .b5__drop.has-img .b5__din { opacity: 0; }
#steps .b5__ok { display: flex; gap: 8px; align-items: center; font: 600 13px/1.3 var(--b5-text); opacity: 0; transition: opacity 280ms; }
#steps .b5__ok i { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--b5-green); font: 800 11px/1 var(--b5-text); font-style: normal; }
#steps .b5__drop.has-img ~ .b5__ok { opacity: 1; }

/* step 2: details + pay sheet */
#steps .b5__f { display: grid; gap: 4px; font: 600 11.5px/1.2 var(--b5-text); color: var(--b5-ink2); }
#steps .b5__f span { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border: 2px solid var(--b5-ink3); border-radius: 12px; background: #fff; font: 600 14px/1 var(--b5-text); color: var(--b5-ink); overflow: hidden; white-space: nowrap; }
#steps .b5__f span.is-typing::after { content: ""; width: 2px; height: 16px; margin-left: 1px; background: var(--b5-ink); animation: b5blink 1s steps(1) infinite; }
@keyframes b5blink { 50% { opacity: 0; } }
#steps .b5__payb { margin-top: 4px; min-height: 44px; border: 2.5px solid var(--b5-ink); border-radius: 999px; background: var(--b5-green); font: 800 15px/1 var(--b5-text); color: var(--b5-ink); cursor: pointer; transition: background 180ms; }
#steps .b5__payb:hover { background: #3fd08f; }
#steps .b5__scrim { position: absolute; inset: 0; z-index: 3; background: rgba(16,22,52,.3); opacity: 0; pointer-events: none; transition: opacity 280ms; }
#steps .b5__sheet { position: absolute; left: 0; right: 0; bottom: 64px; z-index: 4; padding: 14px 18px 16px; background: #fff; border-top: 2.5px solid var(--b5-ink); border-radius: 24px 24px 0 0; box-shadow: 0 -20px 40px -20px rgba(16,22,52,.4); transform: translateY(calc(100% + 70px)); transition: transform 420ms cubic-bezier(.22,1,.36,1); }
#steps .b5__scr.is-sheet .b5__sheet { transform: none; }
#steps .b5__scr.is-sheet .b5__scrim { opacity: 1; }
#steps .b5__grab { width: 40px; height: 5px; margin: 0 auto 10px; border-radius: 4px; background: var(--b5-ink3); }
#steps .b5__stop { display: flex; justify-content: space-between; align-items: baseline; font: 700 13px/1.2 var(--b5-text); }
#steps .b5__stop b { font: 800 24px/1 var(--b5-disp); font-variation-settings: "wdth" 80; font-variant-numeric: tabular-nums; }
#steps .b5__cur { margin-top: 4px; font-size: 11.5px; color: var(--b5-ink2); }
#steps .b5__seg { display: flex; gap: 4px; margin-top: 10px; padding: 4px; border-radius: 999px; background: var(--b5-cotton); }
#steps .b5__seg button { flex: 1; min-height: 34px; border: 0; border-radius: 999px; background: none; font: 700 12.5px/1 var(--b5-text); color: var(--b5-ink); cursor: pointer; transition: background 180ms, color 180ms; }
#steps .b5__seg button:hover { background: #fff; }
#steps .b5__seg button[aria-pressed="true"] { background: var(--b5-ink); color: var(--b5-paper); }
#steps .b5__mbody { margin-top: 10px; min-height: 58px; font-size: 12.5px; color: var(--b5-ink2); }
#steps .b5__mbody .b5__f span { color: var(--b5-ink2); }
#steps .b5__paid { display: flex; align-items: center; gap: 8px; margin-top: 6px; font: 700 13px/1.2 var(--b5-text); opacity: 0; transition: opacity 280ms; }
#steps .b5__paid.is-on { opacity: 1; }
#steps .b5__paid i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--b5-green); font: 800 12px/1 var(--b5-text); font-style: normal; }

/* step 3: live */
#steps .b5__live { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 2px solid var(--b5-ink); border-radius: 999px; background: var(--b5-green); font: 800 12px/1.2 var(--b5-text); letter-spacing: .06em; }
#steps .b5__live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; }
#steps .b5__bb { margin: 8px auto 0; width: 100%; }
#steps .b5__board { position: relative; aspect-ratio: 3 / 1; border: 3px solid var(--b5-ink); border-radius: 8px; background: #fff; overflow: hidden; }
#steps .b5__board img { width: 100%; height: 100%; object-fit: contain; opacity: .1; filter: grayscale(1); transition: opacity 500ms 200ms, filter 500ms 200ms; }
#steps .b5__view.is-on .b5__board img { opacity: 1; filter: none; }
#steps .b5__board em { position: absolute; right: 6px; top: 6px; padding: 1px 6px; border-radius: 4px; background: var(--b5-gold); font: 800 10px/1.4 var(--b5-text); font-style: normal; color: var(--b5-ink); }
#steps .b5__legs { display: flex; justify-content: space-around; width: 56%; margin: 0 auto; }
#steps .b5__legs i { width: 8px; height: 30px; background: var(--b5-ink); }
#steps .b5__done { font-size: 13px; color: var(--b5-ink2); }
#steps .b5__book { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 2.5px solid var(--b5-ink); border-radius: 999px; background: var(--b5-green); font: 800 14px/1 var(--b5-text); color: var(--b5-ink); text-decoration: none; transition: background 180ms; }
#steps .b5__book:hover { background: #3fd08f; }

/* on-screen nav */
#steps .b5__nav { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 64px; display: flex; align-items: center; gap: 8px; padding: 0 16px 8px; background: var(--b5-paper); border-top: 1px solid var(--b5-ink3); }
#steps .b5__nav button { min-height: 40px; padding: 0 16px; border: 2px solid var(--b5-ink); border-radius: 999px; background: #fff; font: 700 13.5px/1 var(--b5-text); color: var(--b5-ink); cursor: pointer; transition: background 180ms, opacity 180ms; }
#steps .b5__nav button:hover:not(:disabled) { background: var(--b5-cotton); }
#steps .b5__nav button:disabled { opacity: .3; cursor: default; }
#steps .b5__nav [data-b5-next] { margin-left: auto; background: var(--b5-ink); color: var(--b5-paper); }
#steps .b5__nav [data-b5-next]:hover:not(:disabled) { background: #2a3270; }
#steps .b5__prog { position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--b5-green); }
#steps .b5 :focus-visible { outline: 3px solid var(--b5-fuch); outline-offset: 2px; }
#steps .b5__note { margin: 0 auto; text-align: center; max-width: 52ch; }
#steps .b5__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* calm: no autoplay, no pause control, no slide/typing motion */
#steps .b5.is-calm .b5__pause, #steps .b5.is-calm .b5__prog { display: none; }
#steps .b5.is-calm .b5__held { --p: 1 !important; }
#steps .b5.is-calm .b5__float { will-change: auto; }
#steps .b5.is-calm *, #steps .b5.is-calm *::before, #steps .b5.is-calm *::after { transition-duration: 1ms !important; transition-delay: 0ms !important; animation: none !important; }

/* real phone status bar: live time, signal, wifi, battery (client, 9 Oct; matches P5) */
#steps .b5__bar { align-items: center; font: 700 13px/1 var(--b5-text); font-variant-numeric: tabular-nums; }
#steps .b5__right { display: flex; gap: 5px; align-items: center; }
#steps .b5__sig { display: flex; gap: 2px; align-items: flex-end; }
#steps .b5__sig i { width: 3px; background: currentColor; border-radius: 1px; }
#steps .b5__sig i:nth-child(1) { height: 4px; } #steps .b5__sig i:nth-child(2) { height: 6px; }
#steps .b5__sig i:nth-child(3) { height: 8.5px; } #steps .b5__sig i:nth-child(4) { height: 11px; }
#steps .b5__wifi { width: 14px; height: 10px; background: currentColor; -webkit-mask: radial-gradient(circle at 50% 100%, #000 0 2px, transparent 2.5px 4px, #000 4.5px 6px, transparent 6.5px 8px, #000 8.5px 10px, transparent 10.5px) 50% 100% / 14px 14px no-repeat; mask: radial-gradient(circle at 50% 100%, #000 0 2px, transparent 2.5px 4px, #000 4.5px 6px, transparent 6.5px 8px, #000 8.5px 10px, transparent 10.5px) 50% 100% / 14px 14px no-repeat; }
#steps .b5__bat { width: 22px; height: 11px; border: 1.6px solid currentColor; border-radius: 3.5px; padding: 1.4px; position: relative; }
#steps .b5__bat::after { content: ""; position: absolute; right: -3.5px; top: 2.5px; width: 2px; height: 3.5px; background: currentColor; border-radius: 0 2px 2px 0; }
#steps .b5__bat i { display: block; height: 100%; width: 72%; background: currentColor; border-radius: 1.2px; }

/* client 9 Oct: close the gap after B5 so the next section follows straight on */
#steps { padding-bottom: 40px !important; }
#steps + .sec { padding-top: 72px !important; }
@media (max-width: 600px) { #steps { padding-bottom: 24px !important; } #steps + .sec { padding-top: 48px !important; } }
