/* Landing page (Views/Home/Index.cshtml). The phone in the hero is the app rebuilt from FrimoMobile:
   sizes are in points on a 430 x 932 iPhone, scaled by --s. Icons come from landing-icons.css. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --brand: #5043FF; --brand-600: #3E32E6; --brand-50: #F1F0FF; --brand-100: #E4E2FF;
  --ink: #16152B; --ink-2: #45445F; --ink-3: #6E6D88; --ink-4: #A3A2B8; --line: #ECEBF3; --bg: #F5F5FA;
  --pos: #08845A; --pos-bg: #E3F4EC; --neg: #D6334A; --neg-bg: #FCE9EC;
}
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { font-family: Inter, -apple-system, 'Segoe UI', sans-serif; color: var(--ink-2); background: #fff; line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
section { scroll-margin-top: 80px; }
.ic { display: inline-block; flex: none; width: var(--sz, 22px); height: var(--sz, 22px); background-color: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }

.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px 11px 16px; border-radius: 14px; background: var(--ink); color: #fff; transition: transform .25s, box-shadow .25s; }
.store:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(22, 21, 43, .3); }
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store small { display: block; font-size: .64rem; line-height: 1.1; opacity: .8; }
.store b { display: block; font-size: 1.05rem; line-height: 1.2; }

.nav { position: sticky; top: 0; z-index: 20; background: rgba(245, 245, 250, .8); backdrop-filter: blur(16px) saturate(170%); border-bottom: 1px solid rgba(22, 21, 43, .05); }
.nav .container { height: 66px; display: flex; align-items: center; justify-content: space-between; }
.nav img { height: 30px; width: auto; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 100px; background: var(--brand); color: #fff; font-weight: 700; font-size: .9rem; box-shadow: 0 8px 20px -8px var(--brand); }

/* hero */
.hero { background: var(--bg); padding: 44px 0 72px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 72px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 100px; background: #fff; border: 1px solid var(--line); font-size: .86rem; font-weight: 600; color: var(--ink); }
.badge .faces { display: flex; }
.badge .faces span { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; margin-left: -6px; background: var(--c); color: #fff; font-size: .5rem; font-weight: 700; display: grid; place-items: center; }
.badge .faces span:first-child { margin-left: 0; }
h1 { margin: 22px 0 18px; font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.04em; color: var(--ink); font-weight: 800; }
.rotator { display: block; position: relative; height: 1.14em; overflow: hidden; color: var(--brand); }
.rotator span { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; transform: translateY(80%); transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .55s; }
.rotator span.is-on { opacity: 1; transform: none; }
.rotator span.is-out { opacity: 0; transform: translateY(-80%); }
.lead { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 600; color: var(--ink-2); margin-bottom: 30px; }

/* preview stage */
.stage { --s: .74; position: relative; display: flex; flex-direction: column; align-items: center; isolation: isolate; }
.stage::before { content: ''; position: absolute; z-index: -1; left: -45%; right: -45%; top: -4%; bottom: 4%; pointer-events: none;
  background: radial-gradient(42% 38% at 50% 40%, rgba(80, 67, 255, .24), rgba(80, 67, 255, 0) 72%), radial-gradient(26% 24% at 66% 74%, rgba(238, 79, 124, .14), rgba(238, 79, 124, 0) 72%); }
.device { position: relative; padding: 9px; border-radius: calc(55px * var(--s) + 9px); background: #0f0f17; border: 1px solid #2c2b38;
  box-shadow: 0 50px 90px -30px rgba(22, 21, 43, .5), 0 14px 30px rgba(22, 21, 43, .14); }
.screen { position: relative; width: calc(430px * var(--s)); height: calc(932px * var(--s)); border-radius: calc(55px * var(--s)); overflow: hidden; background: #F5F5FA; isolation: isolate; }

/* scenes and pause */
.story { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.story-btn { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 12px rgba(22, 21, 43, .06); }
.story-btn svg { width: 14px; height: 14px; fill: currentColor; }
.story-btn .ico-play, .story.paused .story-btn .ico-pause { display: none; }
.story.paused .story-btn .ico-play { display: block; }
.step { display: flex; flex-direction: column; gap: 7px; width: 104px; padding: 6px 0; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; }
.step .bar { position: relative; height: 4px; border-radius: 2px; background: rgba(22, 21, 43, .1); overflow: hidden; }
.step .bar i { position: absolute; inset: 0; border-radius: inherit; background: var(--brand); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.step b { font-size: .8rem; font-weight: 600; color: var(--ink-3); }
.step.on b { color: var(--ink); }
.story-btn:focus-visible, .step:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }

/* notifications on the friends' phones (iOS banners) */
.pushes { position: absolute; left: -252px; top: 132px; z-index: 3; width: 342px; height: 300px; pointer-events: none; }
.pcard { position: absolute; left: 0; right: 0; top: 0; transform: translateY(calc(var(--i, 0) * 94px)); transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .35s; }
.pcard.enter { opacity: 0; transform: translateY(-18px) scale(.96); }
.pcard.leave { opacity: 0; }
.pwho { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px 10px; padding: 2px 10px 2px 2px; border-radius: 100px; background: #fff; box-shadow: 0 4px 12px rgba(22, 21, 43, .1);
  font-size: .74rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; transition: opacity .3s; }
.pav { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-size: .5rem; font-weight: 700; }
.pbody { display: flex; align-items: center; gap: 10px; padding: 11px 14px 11px 11px; border-radius: 22px; background: rgba(246, 246, 248, .88);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); box-shadow: 0 22px 40px -18px rgba(22, 21, 43, .4), 0 0 0 1px rgba(22, 21, 43, .05);
  font-family: -apple-system, 'SF Pro Text', Inter, 'Segoe UI', sans-serif; line-height: 1.28; text-align: left; }
.pbody img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.ptx { flex: 1; min-width: 0; }
.ptop { display: flex; align-items: flex-start; gap: 8px; }
.ptop b { flex: 1; min-width: 0; font-size: .84rem; font-weight: 600; color: #000; }
.ptop span { flex: none; font-size: .74rem; color: rgba(60, 60, 67, .6); }
.pmsg { font-size: .84rem; color: #000; }

/* ---------- the app, rebuilt from FrimoMobile (points on a 430 x 932 iPhone, then scaled) ---------- */
.app { position: absolute; left: 0; top: 0; width: 430px; height: 932px; transform: scale(var(--s)); transform-origin: 0 0; overflow: hidden; pointer-events: none;
  font-family: Inter, -apple-system, sans-serif; color: #16152B; background: #F5F5FA; line-height: normal; text-align: left; user-select: none; -webkit-user-select: none; transition: opacity .35s; }
.app.fade { opacity: 0; }
.app.instant, .app.instant * { transition: none !important; }
.app [hidden] { display: none !important; }
.t-title3 { font: 700 20px/26px Inter, sans-serif; letter-spacing: -.3px; }
.t-headline { font: 700 17px/22px Inter, sans-serif; }
.t-bodyStrong { font: 600 15px/20px Inter, sans-serif; }
.t-calloutStrong { font: 600 14px/19px Inter, sans-serif; }
.t-callout { font: 500 14px/19px Inter, sans-serif; }
.t-subheadStrong { font: 600 13px/18px Inter, sans-serif; }
.t-subhead { font: 500 13px/18px Inter, sans-serif; }
.t-captionStrong { font: 600 12px/16px Inter, sans-serif; }
.t-caption { font: 500 12px/16px Inter, sans-serif; }
.t-overline { font: 700 11.5px/15px Inter, sans-serif; letter-spacing: .7px; text-transform: uppercase; }
.t-amount { font: 700 15px/20px Inter, sans-serif; font-variant-numeric: tabular-nums; }
.t-amountM { font: 800 24px/30px Inter, sans-serif; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.t-amountL { font: 800 38px/46px Inter, sans-serif; letter-spacing: -1.2px; font-variant-numeric: tabular-nums; }
.c-2 { color: #45445F; } .c-3 { color: #6E6D88; } .c-brand { color: #5043FF; } .c-neg { color: #D6334A; } .c-pos { color: #08845A; }
.center { text-align: center; }

/* status bar: dark text, white over a sheet's dimmed backdrop (as on the Settle up screenshot) */
.sb { position: absolute; left: 0; right: 0; top: 0; height: 59px; z-index: 50; color: #16152B; transition: color .25s; }
.app.modal .sb { color: #fff; }
.sb-time { position: absolute; left: 44px; top: 19px; width: 52px; text-align: center; font: 600 17px/22px Inter, sans-serif; letter-spacing: -.3px; }
.sb-island { position: absolute; left: 152px; top: 11px; width: 126px; height: 37px; border-radius: 20px; background: #000; }
.sb-icons { position: absolute; right: 30px; top: 22px; display: flex; gap: 6px; align-items: center; }

.av { position: relative; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; font-weight: 600; }
.av36 { width: 36px; height: 36px; font-size: 12px; }
.av40 { width: 40px; height: 40px; font-size: 14px; }
.av48 { width: 48px; height: 48px; font-size: 16px; }
.av52 { width: 52px; height: 52px; font-size: 18px; }
.av56 { width: 56px; height: 56px; font-size: 19px; }
.av64 { width: 64px; height: 64px; font-size: 22px; }
.av .ring { position: absolute; inset: -5px; border-radius: 50%; border: 2.5px solid #5043FF; }
.av .chk { position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; background: #5043FF; display: grid; place-items: center; color: #fff; }
/* IconButton: radius 35% of the size, icon 55% */
.ibtn { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; color: #16152B; }
.ibtn.ghost { background: #F5F5FA; }
.ibtn.card { background: #fff; border: 1px solid #ECEBF3; }
.ibtn.s44 { width: 44px; height: 44px; border-radius: 15px; }
.ibtn.s36 { width: 36px; height: 36px; border-radius: 13px; }

/* tab screens: Home, and a friend's page pushed over it (the tab bar stays) */
.tabs { position: absolute; inset: 0; }
.v-home, .v-friend { position: absolute; inset: 0; transition: transform .5s cubic-bezier(.32, .72, 0, 1); }
.v-friend { z-index: 2; background: #F5F5FA; transform: translateX(100%); box-shadow: -8px 0 24px rgba(22, 21, 43, 0); transition: transform .5s cubic-bezier(.32, .72, 0, 1), box-shadow .5s; }
.app.is-friend .v-home { transform: translateX(-30%); }
.app.is-friend .v-friend { transform: none; box-shadow: -8px 0 24px rgba(22, 21, 43, .1); }

/* Home */
.home-scroll { position: absolute; inset: 0; overflow: hidden; padding: 70px 16px 130px; }
.h-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.h-head .who { flex: 1; min-width: 0; }
.bal { border-radius: 28px; border: 1px solid; padding: 18px 18px 16px; }
.bal.pos { background: #E3F4EC; border-color: #C8EAD8; color: #08845A; }
.bal.neg { background: #FCE9EC; border-color: #F5CDD4; color: #D6334A; }
.bal.settled { background: #fff; border-color: #ECEBF3; color: #45445F; }
.bal-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bal-label { display: flex; align-items: center; gap: 8px; color: #45445F; }
.bal-ic { width: 34px; height: 34px; border-radius: 11px; background: #fff; display: grid; place-items: center; }
.bal.settled .bal-ic { background: #F5F5FA; color: #6E6D88; }
.bal-amt { display: flex; align-items: baseline; font-variant-numeric: tabular-nums; }
.bal-amt b { font: 800 30px/36px Inter, sans-serif; }
.bal-amt span { font: 700 17px/22px Inter, sans-serif; opacity: .72; }
.bal-sides { display: flex; flex-wrap: wrap; column-gap: 16px; row-gap: 4px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(22, 21, 43, .08); color: #45445F; }
.bal-side { display: flex; align-items: center; gap: 6px; }
.bal-side i { width: 8px; height: 8px; border-radius: 4px; background: #08845A; }
.bal-side.neg i { background: #D6334A; }
.bal-side b { color: #16152B; font-weight: 600; font-variant-numeric: tabular-nums; }
.qa { display: flex; gap: 10px; margin-top: 14px; }
.qa > span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px; border-radius: 18px; border: 1px solid #ECEBF3; background: #fff; }
.qa > span.pressed { background: #F1F0FF; }
.qa .qi { width: 40px; height: 40px; border-radius: 14px; background: #F1F0FF; display: grid; place-items: center; color: #5043FF; }
.sec { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-bottom: 12px; }
.flist { list-style: none; }
.frow { background: #fff; padding: 0 16px; border-left: 1px solid #ECEBF3; border-right: 1px solid #ECEBF3; }
.frow.first { border-top: 1px solid #ECEBF3; border-radius: 22px 22px 0 0; padding-top: 4px; }
.frow.last { border-bottom: 1px solid #ECEBF3; border-radius: 0 0 22px 22px; padding-bottom: 4px; }
.frow.first.last { border-radius: 22px; }
.frow-in { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 11px 0; border-bottom: 1px solid #ECEBF3; }
.frow-in.pressed { opacity: .7; }
.frow.last .frow-in { border-bottom: 0; }
.frow-in .fname { flex: 1; min-width: 0; font: 600 15px/20px Inter, sans-serif; color: #16152B; }
.famt { text-align: right; }
.famt b { display: block; font: 700 15px/20px Inter, sans-serif; font-variant-numeric: tabular-nums; }
.famt small { display: block; font: 600 12px/16px Inter, sans-serif; }
.famt.pos { color: #08845A; } .famt.neg { color: #D6334A; } .famt.zero { color: #6E6D88; }
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: flex-start; padding: 8px 0 34px; background: #fff; border-top: 1px solid #ECEBF3; box-shadow: 0 -6px 12px rgba(22, 21, 43, .08); }
.tab { flex: 1; min-height: 50px; display: flex; flex-direction: column; align-items: center; color: #6E6D88; }
.tab.on { color: #5043FF; }
.tab .tic { position: relative; }
.tab .tl { margin-top: 4px; font: 600 10.5px/13px Inter, sans-serif; }
.tab .badge { position: absolute; top: -6px; left: 14px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; border: 2px solid #fff; background: #D6334A; color: #fff; font: 700 11px/15px Inter, sans-serif; text-align: center; }
.fab-slot { width: 80px; display: flex; justify-content: center; }
.fab { position: relative; width: 64px; height: 64px; margin-top: -36px; border-radius: 50%; display: grid; place-items: center; background: #5043FF; border: 3px solid #E6E9FF; color: #fff; box-shadow: 0 8px 14px rgba(80, 67, 255, .35); }
.fab .ic { width: 36px; height: 36px; }

/* a friend's page (FriendRelationShip): header bar, FriendHeader card, open expenses by day */
.fp-bar { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 8px; padding: 65px 16px 8px; }
.fp-bar .mid { flex: 1; }
.fp-bar .side { display: flex; gap: 8px; }
.fp-scroll { position: absolute; left: 0; right: 0; top: 113px; bottom: 0; overflow: hidden; padding: 0 16px; }
.fh { margin: 4px 0 16px; padding: 16px; border-radius: 28px; border: 1px solid; }
.fh.neg { background: #FCE9EC; border-color: #F5CDD4; }
.fh.pos { background: #E3F4EC; border-color: #C8EAD8; }
.fh.settled { background: #fff; border-color: #ECEBF3; }
.fh-id { display: flex; align-items: center; gap: 14px; }
.fh-tx { flex: 1; min-width: 0; }
.fh-bal { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; margin-top: 2px; }
.fh.neg .fh-bal { color: #D6334A; } .fh.pos .fh-bal { color: #08845A; }
.fh-acts { display: flex; gap: 8px; margin-top: 16px; }
.fh-act { flex: 1; min-width: 0; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 4px;
  border-radius: 18px; background: #fff; color: #5043FF; box-shadow: 0 4px 20px rgba(22, 21, 43, .06); }
.fh-act span { font: 600 12px/16px Inter, sans-serif; color: #45445F; white-space: nowrap; }
.fh-act.primary { background: #5043FF; color: #fff; box-shadow: 0 8px 28px rgba(80, 67, 255, .35); }
.fh-act.primary span { color: #fff; }
.fh-act.off { opacity: .45; }
.fh-act.pressed { opacity: .7; }
.day { margin-top: 12px; padding: 16px 16px 4px; background: #fff; border: 1px solid #ECEBF3; border-bottom: 0; border-radius: 22px 22px 0 0; color: #6E6D88; }
.txn { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 10px 16px 14px; background: #fff; border: 1px solid #ECEBF3; border-top: 0; border-radius: 0 0 22px 22px; }
.txn .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.txn .rt { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ctile44 { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--tile); color: var(--glyph); }
.ctile44 .ic { --sz: 23px; }
.fp-done { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 20px; border-radius: 22px; border: 1px solid #ECEBF3; background: #fff; text-align: center; }
.fp-done .okc { width: 56px; height: 56px; margin-bottom: 6px; border-radius: 28px; display: grid; place-items: center; background: #E3F4EC; color: #08845A; }
.fp-more { display: flex; justify-content: center; padding-top: 12px; }
.ghost-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 11px 18px; color: #5043FF; font: 700 16px/20px Inter, sans-serif; }
/* Rain: 30 pieces, one every 30 ms, falling for 2 s +/- 20 % */
.confetti { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; left: 0; top: 0; }

/* Frimo (slides up from the bottom): Split with, amount, options, description, keypad, send */
.v-frimo { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; background: #fff; padding-bottom: var(--kbpad, 0px); transform: translateY(100%);
  transition: transform .45s cubic-bezier(.32, .72, 0, 1), padding-bottom .3s cubic-bezier(.38, .7, .125, 1); }
.v-frimo.no-pad-anim { transition: transform .45s cubic-bezier(.32, .72, 0, 1); }
.app.is-frimo .v-frimo { transform: none; }
.fr-head { display: flex; align-items: center; gap: 10px; padding: 67px 16px 8px; }
.seg { flex: 1; display: flex; gap: 2px; padding: 4px; border-radius: 14px; background: #EFEFF5; }
.seg span { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px 10px; border-radius: 11px; font: 600 14px/19px Inter, sans-serif; color: #6E6D88; }
.seg span.on { background: #fff; color: #16152B; box-shadow: 0 1px 6px rgba(22, 21, 43, .12); }
/* a ScrollView: when the keyboard leaves less room, the bottom is cut off, not squeezed */
.fr-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.fr-body > * { flex-shrink: 0; }
.fr-sec { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px 0; }
.people { display: flex; overflow: hidden; padding: 6px 12px 4px; }
.ptile { flex: none; width: 66px; display: flex; flex-direction: column; align-items: center; padding: 6px 4px 0; }
.ptile .pn { max-width: 100%; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 12px/16px Inter, sans-serif; color: #45445F; }
.ptile.sel .pn { color: #5043FF; }
.search-circle { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid #ECEBF3; background: #F5F5FA; display: grid; place-items: center; color: #45445F; }
.amt-area { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px 12px; }
.expr { min-height: 19px; font: 600 14px/19px Inter, sans-serif; color: #6E6D88; }
.amt-row { display: flex; align-items: flex-start; gap: 4px; }
.amt-row .cur { margin-top: 8px; font: 800 24px/30px Inter, sans-serif; letter-spacing: -.6px; color: #45445F; }
.amt-row .num { font: 800 64px/72px Inter, sans-serif; letter-spacing: -2.5px; color: #16152B; white-space: nowrap; font-variant-numeric: tabular-nums; }
.amt-area.empty .cur, .amt-area.empty .num { color: #A3A2B8; }
.pill { display: flex; align-items: center; gap: 8px; max-width: 100%; margin-top: 4px; padding: 8px 16px; border-radius: 999px; font: 600 14px/19px Inter, sans-serif; white-space: nowrap; }
.pill span { overflow: hidden; text-overflow: ellipsis; }
.pill.pos { background: #E3F4EC; color: #08845A; }
.pill.neg { background: #FCE9EC; color: #D6334A; }
.pill.none { visibility: hidden; }
.opts { display: flex; gap: 10px; padding: 0 16px; margin-bottom: 12px; }
.opt { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #ECEBF3; background: #fff; }
.opt .l { font: 500 14px/19px Inter, sans-serif; color: #6E6D88; }
.opt .v { font: 600 14px/19px Inter, sans-serif; color: #16152B; }
.dock { padding: 8px 16px 0; }
.field { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 0 10px 0 6px; border-radius: 18px; background: #F5F5FA; border: 2px solid #F5F5FA; }
.field.focus { background: #fff; border-color: #5043FF; }
.cat-btn { position: relative; flex: none; }
.ctile { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--tile); color: var(--glyph); transition: background .25s, color .25s; }
.ctile .ic { --sz: 23px; }
.cb { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; background: #5043FF; color: #fff; display: grid; place-items: center; }
.desc { flex: 1; min-width: 0; display: flex; align-items: center; min-height: 44px; font: 500 16px/20px Inter, sans-serif; color: #16152B; white-space: pre; overflow: hidden; }
.desc .ph { color: #A3A2B8; }
.desc .caret { display: none; flex: none; width: 2px; height: 22px; margin: 0 1px; border-radius: 1px; background: #5043FF; }
.field.focus .caret { display: block; animation: caret 1s steps(1) infinite; }
.field.typing .caret { animation: none; }
@keyframes caret { 50% { opacity: 0; } }
.ftag { max-width: 42%; padding: 4px 10px; border-radius: 999px; background: #F1F0FF; color: #5043FF; font: 600 12px/16px Inter, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ftag:empty { display: none; }
.fmsg { min-height: 16px; margin: 6px 4px 0; font: 500 12px/16px Inter, sans-serif; color: #6E6D88; }
.pad { display: grid; gap: 8px; padding: 8px 16px; }
.prow { display: flex; gap: 8px; }
.key { flex: 1; min-height: 52px; border-radius: 14px; background: #F5F5FA; display: grid; place-items: center; text-align: center; font: 600 24px/30px Inter, sans-serif; color: #16152B; }
.key.op { background: #F1F0FF; color: #5043FF; }
.key.pressed { background: #D9D8E6; }
.foot { padding: 10px 16px 34px; background: #fff; border-top: 1px solid #ECEBF3; }
.note { min-height: 16px; margin-bottom: 8px; text-align: center; font: 500 12px/16px Inter, sans-serif; color: #6E6D88; }

/* AppButton (primary, large): opacity .85 when pressed; while sending, a spinner on brandDisabled */
.abtn { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 14px 18px; border-radius: 18px; background: #5043FF; color: #fff;
  font: 700 16px/20px Inter, sans-serif; text-align: center; box-shadow: 0 8px 28px rgba(80, 67, 255, .35); }
.abtn.pressed { opacity: .85; }
.abtn.loading { background: #C9C6FF; box-shadow: none; }
.abtn.loading > :not(.spin) { visibility: hidden; }
.spin { display: none; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; }
.abtn.loading .spin { display: block; }
.spin i { position: absolute; left: 8.75px; top: 0; width: 2.5px; height: 6px; border-radius: 2px; background: #fff; transform-origin: 1.25px 10px;
  transform: rotate(calc(var(--k) * 45deg)); animation: spoke .8s linear infinite; animation-delay: calc(var(--k) * .1s - .8s); }
@keyframes spoke { 0% { opacity: 1; } 100% { opacity: .2; } }

/* toast: fades in 24 pt above its place, stays 4 s */
.toast { position: absolute; left: 4%; top: 67px; z-index: 40; width: 92%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #16152B; color: #fff;
  box-shadow: 0 4px 20px rgba(22, 21, 43, .06); opacity: 0; transform: translateY(-24px); transition: opacity .18s cubic-bezier(.11, 0, .5, 0), transform .18s cubic-bezier(.11, 0, .5, 0); }
.toast.show { opacity: 1; transform: none; transition: opacity .22s cubic-bezier(.33, 1, .68, 1), transform .22s cubic-bezier(.33, 1, .68, 1); }
.toast .ti { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #08845A; }

/* BottomSheet: rises from the bottom of the window in 260 ms, closes in 200 ms */
.sheet-wrap { position: absolute; inset: 0; z-index: 35; visibility: hidden; transition: visibility 0s .2s; }
.sheet-wrap.open { visibility: visible; transition: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(18, 17, 40, .5); opacity: 0; transition: opacity .2s cubic-bezier(.32, 0, .67, 0); }
.sheet-wrap.open .sheet-bg { opacity: 1; transition: opacity .26s cubic-bezier(.33, 1, .68, 1); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 0 34px; border-radius: 28px 28px 0 0; background: #fff; box-shadow: 0 -6px 40px rgba(22, 21, 43, .18);
  transform: translateY(932px); transition: transform .2s cubic-bezier(.32, 0, .67, 0); }
.sheet-wrap.open .sheet { transform: none; transition: transform .26s cubic-bezier(.33, 1, .68, 1); }
.handle { width: 40px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: #D9D8E6; }
.sh-head { display: flex; align-items: flex-start; gap: 12px; padding: 0 20px 4px; }
.sh-head .tx { flex: 1; padding-top: 2px; }
.su-body { padding: 10px 20px 8px; }
.su-flow { display: flex; align-items: flex-start; justify-content: center; gap: 10px; margin-bottom: 16px; }
.su-person { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 96px; }
.su-conn { position: relative; flex: 1; max-width: 170px; height: 56px; display: grid; place-items: center; }
.su-line { position: absolute; left: 0; right: 7px; top: 27px; height: 2px; border-radius: 1px; background: #D6334A; }
.su-head { position: absolute; right: 0; top: 21px; width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 10px solid #D6334A; }
.su-chip { position: relative; max-width: 86%; padding: 4px 10px; border-radius: 999px; border: 2px solid #fff; background: #FCE9EC; color: #D6334A; font: 600 12px/16px Inter, sans-serif; font-variant-numeric: tabular-nums; }
.su-amt { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 2px 0 14px; }
.su-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 13px; border-radius: 999px; border: 1px solid #ECEBF3; background: #fff; color: #45445F; font: 600 13px/18px Inter, sans-serif; }
.chip.on { background: #F1F0FF; border-color: #5043FF; color: #5043FF; }
.su-ip { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px; border-radius: 18px; border: 1px solid #ECEBF3; background: #fff; }
.su-logo { flex: none; width: 48px; height: 48px; border-radius: 14px; border: 1px solid #ECEBF3; background: #fff; display: grid; place-items: center; }
.su-logo img { width: 36px; height: 24px; object-fit: contain; }
.su-ip-tx { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.su-foot { padding: 10px 20px 0; }

/* the iOS keyboard (light, "done" return key), 346 pt on this iPhone */
.kb { position: absolute; left: 0; right: 0; bottom: 0; z-index: 45; height: 346px; background: #D3D5DC; transform: translateY(100%); transition: transform .3s cubic-bezier(.38, .7, .125, 1);
  font-family: -apple-system, 'SF Pro Text', system-ui, 'Segoe UI', sans-serif; color: #000; }
.app.kb-on .kb { transform: none; }
.kb-sug { position: absolute; left: 0; right: 0; top: 0; height: 45px; display: flex; align-items: center; }
.kb-sug span { flex: 1; min-width: 0; padding: 0 6px; text-align: center; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-sug i { flex: none; width: 1px; height: 26px; background: rgba(60, 60, 67, .22); }
.kk { position: absolute; height: 46px; border-radius: 5.5px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .3); display: grid; place-items: center; font-size: 24px; line-height: 1; }
.kb.upper .kk.l { text-transform: uppercase; }
.kk.sp { background: #ABB0BA; }
.kb.upper .kk.shift { background: #fff; }
.kk svg { width: 24px; height: 24px; }
.kk .on { display: none; }
.kb.upper .kk .on { display: block; } .kb.upper .kk .off { display: none; }
.kk.num, .kk.space, .kk.done { font-size: 16px; }
.kk.done { background: #007AFF; color: #fff; }
.kk.space.down { background: #ABB0BA; }
.kb-pop { position: absolute; z-index: 2; display: none; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .35)); }
.kb-pop.on { display: block; }
.kb-pop b { position: absolute; left: 0; right: 0; top: 0; height: 56px; border-radius: 10px; background: #fff; display: grid; place-items: center; font-size: 38px; font-weight: 400; line-height: 1; }
.kb-pop i { position: absolute; bottom: 0; height: 58px; border-radius: 0 0 6px 6px; background: #fff; }
.kb-ic { position: absolute; top: 282px; width: 28px; height: 28px; color: #50555C; }

/* where the demo touches the screen */
.finger { position: absolute; left: 0; top: 0; z-index: 60; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(22, 21, 43, .16);
  border: 3px solid rgba(255, 255, 255, .95); box-shadow: 0 8px 20px rgba(22, 21, 43, .3); opacity: 0; transition: transform var(--ft, .5s) cubic-bezier(.3, .7, .2, 1), opacity .25s; }
.finger.show { opacity: 1; }
.finger.tap::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; background: rgba(80, 67, 255, .45); animation: tapfx .42s ease-out forwards; }
@keyframes tapfx { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.65); opacity: 0; } }
.stage.paused .app *, .stage.paused .app *::after { animation-play-state: paused !important; }

/* more in the app */
.more { padding: 104px 0; }
.h2c { text-align: center; font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.06; letter-spacing: -.035em; color: var(--ink); font-weight: 800; }
.more .h2c { margin-bottom: 44px; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.tile { grid-column: span 4; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 24px 0; border-radius: 30px; background: var(--tint); overflow: hidden; }
.tile.wide { grid-column: span 6; }
.tile h3 { max-width: 300px; margin-bottom: 26px; font-size: 1.32rem; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); font-weight: 800; }
.shot { position: relative; width: 100%; max-width: 330px; margin-top: auto; container-type: inline-size; }
.shot img { width: 100%; border-radius: 26px 26px 0 0; box-shadow: 0 0 0 1px rgba(22, 21, 43, .05), 0 18px 40px -16px rgba(22, 21, 43, .35); }
.tag { position: absolute; left: var(--x); top: var(--y); z-index: 2; width: 0; height: 0; }
.tag::before { content: ''; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(22, 21, 43, .35); }
.tag::after { content: ''; position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.3); opacity: 0; } }
.tag span { position: absolute; white-space: nowrap; padding: .5em .85em; border-radius: 100px; background: var(--ink); color: #fff; font: 700 clamp(10px, 3.4cqw, 11.5px)/1.15 Inter, sans-serif;
  box-shadow: 0 8px 18px -6px rgba(22, 21, 43, .45); transition: opacity .45s, scale .45s cubic-bezier(.2, .8, .2, 1); }
.tag.r span { left: 14px; top: 0; transform: translateY(-50%); }
.tag.l span { right: 14px; top: 0; transform: translateY(-50%); }
.tag.b span { left: 0; top: 14px; transform: translateX(-50%); }
.tag.t span { left: 0; bottom: 14px; transform: translateX(-50%); }
.motion .tile .tag span { opacity: 0; scale: .85; }
.motion .tile.in .tag span { opacity: 1; scale: 1; }
.motion .tile.in .tag:nth-of-type(2) span { transition-delay: .25s; }

/* share anything */
.cats { padding: 96px 0; background: var(--bg); overflow: hidden; }
.cats p { text-align: center; margin-top: 12px; font-size: 1.12rem; font-weight: 500; }
.cat-rail { margin-top: 40px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.cat-track { display: flex; gap: 18px; width: max-content; padding-right: 18px; animation: slide 45s linear infinite; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 88px; }
.cat .tilebox { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--tile); color: var(--glyph); }
.cat .ic { --sz: 33px; }
.cat span { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
@keyframes slide { to { transform: translateX(-50%); } }

/* download */
.cta { position: relative; overflow: hidden; margin: 24px; padding: 88px 24px; border-radius: 36px; text-align: center; color: #fff;
  background: radial-gradient(70% 90% at 90% 0%, #8378FF 0%, #6256FF 32%, transparent 64%), linear-gradient(180deg, #3A2ED6, #291EB6); }
.cta .arcs { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cta > :not(.arcs) { position: relative; }
.cta img { width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 22%; box-shadow: 0 16px 40px rgba(0, 0, 0, .3), 0 0 0 1px rgba(255, 255, 255, .25); }
.cta .h2c { color: #fff; margin-bottom: 30px; }
.cta .stores { justify-content: center; }
.cta .store { background: #fff; color: var(--ink); }

footer { padding: 28px 0 44px; font-size: .88rem; color: var(--ink-3); }
footer .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer img { height: 26px; width: auto; }
footer nav { display: flex; gap: 24px; }


@media (prefers-reduced-motion: reduce) {
  .rotator span { transition: none; }
  .tag::after { animation: none; }
  .cat-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; padding: 0 24px; }
  .cat-track .dup { display: none; }
  .cat-rail { -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 1180px) {
  /* one stack of banners over the top of the phone */
  .pushes { left: 50%; top: -44px; width: min(342px, calc(100vw - 32px)); height: 120px; transform: translateX(-50%); }
  .pcard { transform: translateY(calc(var(--i, 0) * 9px)) scale(calc(1 - var(--i, 0) * .05)); }
  .pcard.enter { transform: translateY(-18px) scale(.96); }
  .pcard:not(:first-child) .pwho { opacity: 0; }
  .pcard.old { opacity: 0; }
}
@media (max-width: 1020px) {
  .hero .container { grid-template-columns: 1fr; gap: 52px; text-align: center; }
  .rotator span { left: 0; right: 0; }
  .hero .stores { justify-content: center; }
  .tile, .tile.wide { grid-column: span 6; }
  .tile:last-child { grid-column: span 12; }
}
@media (max-width: 640px) {
  .hero { padding: 32px 0 56px; }
  .stage { --s: .68; }
  .tile, .tile.wide, .tile:last-child { grid-column: span 12; }
  .tile { padding: 26px 20px 0; }
  .more, .cats { padding: 72px 0; }
  .cta { margin: 12px; padding: 64px 20px; border-radius: 28px; }
}
@media (max-width: 360px) {
  .stage { --s: .62; }
}
