/* Veeva home page. Loads after styles.css; shares its tokens, header and footer.
   The phone mockups are drawn in iOS points: --u is one point at the mock's
   rendered width (402pt, an iPhone 17 Pro), so every mock scales fluidly. */

:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --app-bg: #111111;
  --app-surface: #1c1c1e;
  --app-surface-2: #232323;
  --app-border: #2c2c2e;
  --app-text: #f7f7f7;
  --app-text-2: #a1a1a6;
  --app-text-3: #6f6f74;
  --wrap: 1160px;
}

body.home { background: var(--page); overflow-x: clip; }
.home main { display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Header: translucent over the dark hero */
.home .site-header { background: rgba(17, 17, 17, .72); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); transition: background .25s ease, border-color .25s ease; }
.home .site-header.scrolled { background: rgba(17, 17, 17, .9); }
.home .site-header nav { max-width: var(--wrap); }

/* ---------- Hero ---------- */
.h-hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; isolation: isolate; }
.h-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at var(--gx, 78%) var(--gy, 30%), rgba(183, 229, 40, .22), transparent 70%),
    radial-gradient(40% 40% at 10% 100%, rgba(111, 232, 107, .10), transparent 70%); }
.h-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000, transparent 75%); mask-image: radial-gradient(70% 70% at 60% 40%, #000, transparent 75%); }
.h-hero-grid { max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 8vw, 104px) 20px clamp(56px, 8vw, 96px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.pill-tag { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); color: #d9d9de; font-size: 14px; font-weight: 500; }
.pill-tag b { background: var(--lime); color: var(--on-lime); border-radius: 999px; padding: 2px 9px; font-size: 12px; letter-spacing: .4px; text-transform: uppercase; }
.h-hero h1 { margin: 0; font-size: clamp(2.75rem, 6.2vw, 4.6rem); line-height: .98; text-wrap: balance; letter-spacing: -.045em; font-weight: 800; }
.h-hero h1 .accent { color: var(--lime); display: block; }
.h-hero .lede { margin: 24px 0 0; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #c7c7cc; max-width: 34em; line-height: 1.6; }
.h-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button .arrow { transition: transform .2s var(--ease-out); }
.h-hero .actions, .cta-panel .actions { align-items: center; gap: 14px 28px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 17px; text-decoration: none; padding: 8px 0; }
.text-link:hover { color: var(--lime); }
.text-link:hover .arrow { transform: translateX(3px); }
.text-link .arrow { transition: transform .2s var(--ease-out); }

/* Typewriter: the second line of the headline retypes itself. The static
   "Stay friends." is what screen readers and no-JS visitors get. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.h-hero h1 .type { white-space: nowrap; }
.h-hero h1 .type::after { content: ""; display: inline-block; width: .075em; height: .8em; margin-left: .06em; vertical-align: -.04em; border-radius: 2px; background: currentColor; animation: caret 1.05s steps(1) infinite; }
.h-hero h1 .type.typing::after { animation: none; }
@keyframes caret { 50% { opacity: 0; } }
.button:hover .arrow { transform: translateX(3px); }
.facts { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #a1a1a6; font-size: 14.5px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { color: var(--lime); flex: none; }

.h-stage { position: relative; display: grid; place-items: center; min-height: 0; }
.h-stage .phone { width: clamp(260px, 29vw, 350px); transform: rotate(-2deg); }
.h-stage::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(183,229,40,.35), transparent 65%); filter: blur(30px); z-index: 0; transform: translate(var(--sx, 0px), var(--sy, 0px)); }
.float-card { position: absolute; z-index: 3; background: rgba(28, 28, 30, .78); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); border: 1px solid rgba(255,255,255,.09); border-radius: 20px; padding: 12px 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); color: #fff; font-size: 13.5px; line-height: 1.35; display: flex; gap: 11px; align-items: center; max-width: 270px; text-align: start; animation: bob 7s ease-in-out infinite; }
.float-card .app-ic { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.float-card small { display: block; color: #a1a1a6; font-size: 12px; }
.float-card strong { font-weight: 600; }
.float-card.notif { top: 3%; left: -22%; }
.float-card.settled { bottom: 11%; right: -10%; animation-delay: -3.5s; }
.float-card .tick { width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; flex: none; }
.float-card .lime { color: var(--lime); font-weight: 700; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--lime); color: var(--on-lime); overflow: hidden; border-block: 1px solid rgba(0,0,0,.08); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee ul { display: flex; margin: 0; padding: 0; list-style: none; }
.marquee li { display: flex; align-items: center; gap: 22px; padding: 15px 0 15px 22px; font-weight: 700; font-size: clamp(15px, 1.6vw, 18px); letter-spacing: -.01em; white-space: nowrap; }
.marquee li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .55; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.h-section { padding: clamp(72px, 10vw, 136px) 0; }
.h-head { max-width: 760px; margin: 0 auto clamp(48px, 7vw, 88px); text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--lime-text); margin: 0 0 14px; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.h-head h2, .feature h2, .bilingual h2, .cta-panel h2 { margin: 0; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; color: var(--text); }
.h-head p { margin: 18px auto 0; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--text-2); max-width: 38em; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 110px); align-items: center; }
.feature + .feature { margin-top: clamp(96px, 13vw, 168px); }
.feature.flip .f-copy { order: 2; }
.f-step { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--lime); font-weight: 800; font-size: 15px; margin-bottom: 20px; }
.feature h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.feature p.f-lede { margin: 18px 0 0; font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--text-2); max-width: 32em; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 16px; }
.ticks li svg { flex: none; margin-top: 2px; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--soft); color: var(--lime-text); }
.try-hint { margin: 26px 0 0; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--rule); }
.try-hint span { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(183,229,40,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(183,229,40,0); } 100% { box-shadow: 0 0 0 0 rgba(183,229,40,0); } }
.f-visual { position: relative; display: grid; place-items: center; }
.f-visual::before { content: ""; position: absolute; inset: 8% 4%; border-radius: 40px; background: radial-gradient(70% 60% at 50% 45%, rgba(183,229,40,.22), transparent 70%); z-index: 0; }
.f-visual .phone { width: clamp(258px, 27vw, 330px); }

/* ---------- Phone frame ---------- */
.phone { position: relative; z-index: 1; padding: 3.1%; border-radius: 15.5% / 7.2%; background: linear-gradient(145deg, #3a3a3d, #121213 40%, #1d1d1f 70%, #3a3a3d); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12), 0 50px 100px -30px rgba(0,0,0,.55), 0 30px 60px -40px rgba(0,0,0,.6); }
.display { container-type: inline-size; border-radius: 13% / 6%; overflow: hidden; background: var(--app-bg); }
.screen { --u: calc(100cqw / 402); position: relative; aspect-ratio: 402 / 874; overflow: hidden; background: var(--app-bg); color: var(--app-text); font-size: calc(17 * var(--u)); line-height: 1.25; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; letter-spacing: -.01em; text-align: start; font-variant-numeric: tabular-nums; }
.screen svg { display: block; }
.sb { height: calc(58 * var(--u)); display: flex; align-items: center; justify-content: space-between; padding: calc(8 * var(--u)) calc(34 * var(--u)) 0 calc(50 * var(--u)); font-weight: 600; font-size: calc(17 * var(--u)); position: relative; direction: ltr; }
.sb::after { content: ""; position: absolute; left: 50%; top: calc(11 * var(--u)); width: calc(124 * var(--u)); height: calc(36 * var(--u)); transform: translateX(-50%); background: #000; border-radius: 999px; }
.sb .sys { display: flex; gap: calc(6 * var(--u)); align-items: center; }
.sb .sys svg { height: calc(13 * var(--u)); width: auto; }
.pad { padding: 0 calc(24 * var(--u)); }
.lime-t { color: #b7e528; }
.dim { color: var(--app-text-2); }
.ic-btn { width: calc(44 * var(--u)); height: calc(44 * var(--u)); border-radius: 50%; background: var(--app-surface); border: 1px solid var(--app-border); display: grid; place-items: center; color: #b7e528; }
.ic-btn svg { width: calc(20 * var(--u)); height: calc(20 * var(--u)); }
.top-actions { display: flex; justify-content: flex-end; gap: calc(12 * var(--u)); padding: calc(6 * var(--u)) calc(16 * var(--u)) 0; }
.s-title { font-size: calc(34 * var(--u)); font-weight: 700; letter-spacing: -.02em; margin: calc(18 * var(--u)) 0 0; }
.s-sub { color: var(--app-text-2); margin-top: calc(4 * var(--u)); }
.m-card { background: var(--app-surface); border: 1px solid var(--app-border); border-radius: calc(24 * var(--u)); padding: calc(20 * var(--u)); }
.sum-card { margin-top: calc(28 * var(--u)); display: flex; justify-content: space-between; gap: calc(12 * var(--u)); }
.sum-card .lbl { font-size: calc(15 * var(--u)); color: var(--app-text-2); }
.sum-card .big { font-size: calc(30 * var(--u)); font-weight: 700; color: #b7e528; margin: calc(8 * var(--u)) 0 calc(6 * var(--u)); letter-spacing: -.02em; }
.sum-card .side { display: grid; gap: calc(14 * var(--u)); align-content: start; }
.sum-card .side b { display: block; font-size: calc(18 * var(--u)); margin-top: calc(2 * var(--u)); }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; margin: calc(30 * var(--u)) 0 calc(8 * var(--u)); }
.sec-h b { font-size: calc(20 * var(--u)); font-weight: 600; }
.sec-h span { color: #b7e528; font-size: calc(16 * var(--u)); font-weight: 500; }
.row { display: flex; align-items: center; gap: calc(14 * var(--u)); padding: calc(12 * var(--u)) 0; border-bottom: 1px solid #29292b; }
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .t { display: block; font-size: calc(17 * var(--u)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .st { display: block; font-size: calc(14.5 * var(--u)); color: var(--app-text-2); margin-top: calc(2 * var(--u)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .amt { font-size: calc(17 * var(--u)); font-weight: 600; text-align: end; white-space: nowrap; }
.row .amt small { display: block; font-weight: 400; color: var(--app-text-2); font-size: calc(13.5 * var(--u)); margin-top: calc(2 * var(--u)); }
.row .chev { width: calc(10 * var(--u)); height: calc(16 * var(--u)); color: var(--app-text-3); flex: none; }
.av { --c: #4338ff; width: calc(40 * var(--u)); height: calc(40 * var(--u)); border-radius: 50%; flex: none; display: grid; place-items: center; font-size: calc(17 * var(--u)); font-weight: 500; background: color-mix(in srgb, var(--c) 36%, #111); color: color-mix(in srgb, var(--c) 75%, #fff); }
.cat { --c: #55c98a; width: calc(46 * var(--u)); height: calc(46 * var(--u)); border-radius: calc(13 * var(--u)); flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 20%, #111); color: var(--c); }
.cat svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
.c-purple { --c: #9b51e0; } .c-orange { --c: #f2994a; } .c-red { --c: #eb5757; } .c-blue { --c: #2d9cdb; } .c-indigo { --c: #4338ff; } .c-green { --c: #149b62; } .c-teal { --c: #00b8a9; } .c-pink { --c: #f76b8a; }
.cat.c-ticket { --c: #ff75c8; } .cat.c-shop { --c: #b78cff; } .cat.c-home { --c: #55c98a; } .cat.c-food { --c: #ffb84d; }

.tabbar { position: absolute; left: calc(20 * var(--u)); right: calc(20 * var(--u)); bottom: calc(22 * var(--u)); height: calc(64 * var(--u)); border-radius: 999px; background: rgba(38, 38, 40, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; justify-content: space-around; padding: 0 calc(5 * var(--u)); z-index: 2; }
.tabbar span { display: grid; justify-items: center; gap: calc(3 * var(--u)); font-size: calc(10.5 * var(--u)); font-weight: 500; color: #e5e5ea; padding: calc(7 * var(--u)) calc(10 * var(--u)); border-radius: 999px; min-width: calc(64 * var(--u)); }
.tabbar span.on { background: rgba(255,255,255,.1); color: #b7e528; }
.tabbar svg { width: calc(24 * var(--u)); height: calc(22 * var(--u)); }
.fade-b::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(150 * var(--u)); background: linear-gradient(transparent, var(--app-bg) 70%); pointer-events: none; z-index: 1; }

/* Group detail */
.nav-bar { display: flex; align-items: center; justify-content: space-between; padding: calc(6 * var(--u)) calc(16 * var(--u)) 0; }
.nav-bar .ttl { font-weight: 600; font-size: calc(18 * var(--u)); }
.nav-bar .edit { height: calc(44 * var(--u)); padding: 0 calc(16 * var(--u)); border-radius: 999px; background: var(--app-surface); border: 1px solid var(--app-border); display: grid; place-items: center; color: #b7e528; font-weight: 600; }
.ic-btn.plain { color: var(--app-text); }
.grp-card { margin-top: calc(20 * var(--u)); display: flex; justify-content: space-between; }
.grp-card .big { font-size: calc(30 * var(--u)); font-weight: 700; color: #b7e528; margin: calc(6 * var(--u)) 0; }
.grp-card .rt { text-align: end; font-size: calc(14 * var(--u)); color: var(--app-text-2); }
.grp-card .rt b { display: block; color: var(--app-text); font-size: calc(17 * var(--u)); margin: calc(2 * var(--u)) 0; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: calc(12 * var(--u)); margin-top: calc(22 * var(--u)); }
.m-btn { height: calc(50 * var(--u)); border-radius: calc(16 * var(--u)); display: flex; align-items: center; justify-content: center; gap: calc(8 * var(--u)); font-weight: 600; font-size: calc(16.5 * var(--u)); border: 1px solid var(--app-border); background: var(--app-surface); }
.m-btn.pri { background: #b7e528; border-color: #b7e528; color: #0b0c09; }
.m-btn svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.chips { display: flex; gap: calc(8 * var(--u)); margin-top: calc(20 * var(--u)); }
.chip { height: calc(36 * var(--u)); padding: 0 calc(16 * var(--u)); border-radius: 999px; display: grid; place-items: center; font-size: calc(15 * var(--u)); font-weight: 500; color: var(--app-text-2); border: 1px solid #3a3a3c; }
.chip.on { background: #b7e528; border-color: #b7e528; color: #0b0c09; font-weight: 600; }
.date-h { display: flex; justify-content: space-between; margin: calc(22 * var(--u)) 0 calc(4 * var(--u)); font-weight: 600; font-size: calc(16 * var(--u)); }
.date-h span { font-weight: 400; color: var(--app-text-2); font-size: calc(14 * var(--u)); }

/* Add expense (interactive split) */
.sheet { position: absolute; inset: calc(64 * var(--u)) 0 0; background: #181818; border-radius: calc(36 * var(--u)) calc(36 * var(--u)) 0 0; padding-top: calc(14 * var(--u)); }
.sheet-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 calc(16 * var(--u)); }
.sheet-bar .cancel { height: calc(42 * var(--u)); padding: 0 calc(16 * var(--u)); border-radius: 999px; background: var(--app-surface-2); display: grid; place-items: center; font-size: calc(16 * var(--u)); }
.sheet-bar .ttl { font-weight: 600; font-size: calc(17 * var(--u)); }
.sheet-bar .ghost-space { width: calc(78 * var(--u)); }
.amount-box { text-align: center; margin: calc(18 * var(--u)) 0 calc(4 * var(--u)); }
.amount-box .lbl { font-size: calc(13.5 * var(--u)); color: var(--app-text-2); }
.amount-box .val { font-size: calc(44 * var(--u)); font-weight: 700; letter-spacing: -.03em; margin-top: calc(2 * var(--u)); }
.amount-box .val small { font-size: calc(19 * var(--u)); color: var(--app-text-2); font-weight: 600; margin-inline-end: calc(6 * var(--u)); letter-spacing: 0; }
.desc-pill { margin: calc(6 * var(--u)) auto 0; display: flex; align-items: center; gap: calc(8 * var(--u)); width: max-content; padding: calc(6 * var(--u)) calc(14 * var(--u)); border-radius: 999px; background: var(--app-surface-2); font-size: calc(15 * var(--u)); color: var(--app-text); }
.desc-pill .cat { width: calc(24 * var(--u)); height: calc(24 * var(--u)); border-radius: calc(7 * var(--u)); }
.desc-pill .cat svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); }
.split-card { margin: calc(18 * var(--u)) calc(16 * var(--u)) 0; padding: calc(16 * var(--u)) calc(16 * var(--u)) calc(6 * var(--u)); }
.split-card .lbl { font-size: calc(14 * var(--u)); color: var(--app-text-2); }
.seg { display: grid; grid-template-columns: repeat(5, 1fr); background: #2a2a2c; border-radius: 999px; padding: calc(3 * var(--u)); margin-top: calc(8 * var(--u)); }
.seg button { all: unset; cursor: pointer; text-align: center; font-size: calc(13.5 * var(--u)); font-weight: 500; color: var(--app-text); padding: calc(7 * var(--u)) 0; border-radius: 999px; transition: background .25s var(--ease-out), color .25s var(--ease-out); }
.seg button[aria-pressed="true"] { background: #5a5a5e; font-weight: 600; }
.seg button:focus-visible { outline: 2px solid #b7e528; outline-offset: 1px; }
.split-row { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(9 * var(--u)) 0; border-bottom: 1px solid #29292b; }
.split-row:last-child { border-bottom: 0; }
.split-row:focus-visible { outline: 2px solid #b7e528; outline-offset: 2px; border-radius: 8px; }
.split-row .chk { width: calc(26 * var(--u)); height: calc(26 * var(--u)); border-radius: 50%; display: grid; place-items: center; background: #b7e528; color: #0b0c09; flex: none; transition: background .2s, box-shadow .2s; }
.split-row .chk svg { width: calc(15 * var(--u)); height: calc(15 * var(--u)); transition: opacity .2s, transform .25s var(--ease-out); }
.split-row[aria-pressed="false"] .chk { background: transparent; box-shadow: inset 0 0 0 calc(2 * var(--u)) #555558; }
.split-row[aria-pressed="false"] .chk svg { opacity: 0; transform: scale(.4); }
.split-row[aria-pressed="false"] .nm, .split-row[aria-pressed="false"] .av { opacity: .45; }
.split-row .nm { flex: 1; font-size: calc(16.5 * var(--u)); transition: opacity .2s; }
.split-row .meta { font-size: calc(13 * var(--u)); color: var(--app-text-2); margin-inline-end: calc(4 * var(--u)); }
.split-row .val { font-size: calc(16 * var(--u)); font-weight: 600; min-width: calc(74 * var(--u)); text-align: end; transition: color .2s; }
.split-row .val.zero { color: var(--app-text-3); font-weight: 500; }
.split-foot { display: flex; justify-content: space-between; font-size: calc(13.5 * var(--u)); color: var(--app-text-2); padding: calc(10 * var(--u)) 0 calc(8 * var(--u)); }
.split-foot b { color: #b7e528; font-weight: 600; }
.save-btn { position: absolute; left: calc(16 * var(--u)); right: calc(16 * var(--u)); bottom: calc(30 * var(--u)); height: calc(54 * var(--u)); border-radius: 999px; background: #b7e528; color: #0b0c09; display: grid; place-items: center; font-weight: 700; font-size: calc(17 * var(--u)); }
.flash { animation: flash .45s var(--ease-out); }
@keyframes flash { 0% { transform: translateY(-3px); opacity: .3; } 100% { transform: none; opacity: 1; } }

/* Settle up (interactive) */
.settle-intro { font-size: calc(14.5 * var(--u)); color: var(--app-text-2); padding: calc(18 * var(--u)) calc(20 * var(--u)) calc(6 * var(--u)); line-height: 1.4; }
.s-list { display: grid; gap: calc(10 * var(--u)); padding: calc(8 * var(--u)) calc(16 * var(--u)) 0; }
.s-row { display: flex; align-items: center; gap: calc(14 * var(--u)); background: var(--app-surface); border: 1px solid var(--app-border); border-radius: calc(18 * var(--u)); padding: calc(13 * var(--u)) calc(14 * var(--u)); transition: opacity .3s, background .3s; }
.s-row .grow { flex: 1; }
.s-row .t { display: block; font-size: calc(15.5 * var(--u)); font-weight: 500; }
.s-row .a { display: block; font-size: calc(17 * var(--u)); font-weight: 700; color: #b7e528; margin-top: calc(2 * var(--u)); transition: color .3s; }
.s-row button { all: unset; cursor: pointer; height: calc(40 * var(--u)); padding: 0 calc(16 * var(--u)); border-radius: 999px; background: #b7e528; color: #0b0c09; font-weight: 600; font-size: calc(15 * var(--u)); display: inline-flex; align-items: center; gap: calc(6 * var(--u)); transition: background .25s, color .25s, transform .15s; }
.s-row button:active { transform: scale(.96); }
.s-row button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.s-row button svg { width: calc(15 * var(--u)); height: calc(15 * var(--u)); display: none; }
.s-row.done { background: #161616; }
.s-row.done .a { color: var(--app-text-3); text-decoration: line-through; }
.s-row.done button { background: transparent; color: #b7e528; box-shadow: inset 0 0 0 1px #3a3a3c; }
.s-row.done button svg { display: block; }
.s-total { margin: calc(16 * var(--u)) calc(16 * var(--u)) 0; display: flex; justify-content: space-between; align-items: center; font-size: calc(14.5 * var(--u)); color: var(--app-text-2); padding: calc(14 * var(--u)) calc(16 * var(--u)); border-radius: calc(16 * var(--u)); background: rgba(183,229,40,.08); border: 1px dashed rgba(183,229,40,.35); }
.s-total b { color: var(--app-text); font-size: calc(17 * var(--u)); }
.s-total.clear b { color: #b7e528; }
.reset-link[hidden] { display: none; }
.reset-link { all: unset; cursor: pointer; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--lime-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Receipt scan ---------- */
.scan-visual { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; align-items: center; width: 100%; max-width: 540px; }
.receipt { position: relative; background: #fbfbf8; color: #1d1d1f; padding: 26px 22px 34px; font: 500 13px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; box-shadow: 0 30px 60px -25px rgba(0,0,0,.45); transform: rotate(-3deg); overflow: hidden;
  -webkit-mask: radial-gradient(circle at 8px 100%, transparent 7px, #000 7.5px) 0 0 / 16px 100% repeat-x; mask: radial-gradient(circle at 8px 100%, transparent 7px, #000 7.5px) 0 0 / 16px 100% repeat-x; border-radius: 6px 6px 0 0; }
.receipt h4 { margin: 0; text-align: center; font-size: 14px; letter-spacing: 2px; }
.receipt .sub { text-align: center; color: #6f6f74; font-size: 11px; margin-bottom: 14px; }
.receipt .ln { display: flex; justify-content: space-between; gap: 10px; }
.receipt hr { border: 0; border-top: 1.5px dashed #c4c4c7; margin: 10px 0; }
.receipt .tot { font-weight: 800; font-size: 14px; }
.beam { position: absolute; left: 0; right: 0; height: 64px; top: -64px; background: linear-gradient(transparent, rgba(183,229,40,.35) 85%, #b7e528 100%); box-shadow: 0 2px 14px rgba(183,229,40,.8); pointer-events: none; }
.in .beam { animation: beam 3.2s var(--ease-out) .3s infinite; }
@keyframes beam { 0% { top: -64px; opacity: 0; } 10% { opacity: 1; } 70% { top: 100%; opacity: 1; } 100% { top: 100%; opacity: 0; } }
.items-card { background: #1c1c1e; color: #f7f7f7; border: 1px solid #2c2c2e; border-radius: 22px; padding: 16px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); font-size: 14px; }
.items-card .hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.items-card .hd b { font-size: 15px; }
.items-card .badge { font-size: 11.5px; font-weight: 700; color: #0b0c09; background: #b7e528; padding: 3px 9px; border-radius: 999px; }
.it { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #29292b; opacity: 0; transform: translateX(14px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.it:last-of-type { border-bottom: 0; }
.in .it { opacity: 1; transform: none; }
.in .it:nth-of-type(1) { transition-delay: .9s; } .in .it:nth-of-type(2) { transition-delay: 1.15s; } .in .it:nth-of-type(3) { transition-delay: 1.4s; } .in .it:nth-of-type(4) { transition-delay: 1.65s; }
.it .n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it .p { font-weight: 600; font-variant-numeric: tabular-nums; }
.it .who { display: flex; }
.it .who i { --c: #4338ff; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: normal 600 10.5px/1 -apple-system, sans-serif; background: color-mix(in srgb, var(--c) 40%, #111); color: color-mix(in srgb, var(--c) 75%, #fff); border: 2px solid #1c1c1e; margin-inline-start: -6px; }
.it .who i:first-child { margin-inline-start: 0; }
.review { margin-top: 10px; display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: #a1a1a6; background: #232323; border-radius: 12px; padding: 9px 11px; }
.review svg { color: #b7e528; flex: none; }

/* ---------- Bilingual ---------- */
.bilingual { background: var(--ink); color: #fff; border-radius: clamp(28px, 4vw, 44px); padding: clamp(36px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; position: relative; overflow: hidden; isolation: isolate; }
.bilingual::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(183,229,40,.28), transparent 65%); z-index: -1; }
.bilingual h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.bilingual .kicker { color: var(--lime); }
.bilingual p { color: #c7c7cc; font-size: clamp(1.02rem, 1.3vw, 1.15rem); margin: 18px 0 0; max-width: 32em; }
.lang-toggle { margin-top: 28px; display: inline-grid; grid-template-columns: 1fr 1fr; background: rgba(255,255,255,.08); border-radius: 999px; padding: 4px; position: relative; }
.lang-toggle button { all: unset; cursor: pointer; padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; text-align: center; color: #c7c7cc; position: relative; z-index: 1; transition: color .25s; }
.lang-toggle button[aria-pressed="true"] { color: var(--on-lime); }
.lang-toggle button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lang-toggle .knob { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--lime); transition: transform .4s var(--ease-out); }
.lang-toggle[data-lang="ar"] .knob { transform: translateX(100%); }
.currencies { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.currencies span { font-size: 13px; font-weight: 700; letter-spacing: .5px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); color: #e5e5ea; }
.bi-visual { display: grid; place-items: center; }
.bi-visual .phone { width: clamp(250px, 26vw, 310px); }
.bi-screen [data-ar] { transition: opacity .25s; }
.bi-screen.swap [data-ar] { opacity: 0; }
.bi-screen[dir="rtl"] { font-family: -apple-system, BlinkMacSystemFont, "SF Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif; letter-spacing: 0; }
.bi-screen[dir="rtl"] .chev { transform: scaleX(-1); }

/* ---------- Trust bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.b-tile { grid-column: span 2; background: var(--card); border: 1px solid var(--rule); border-radius: 26px; padding: clamp(22px, 2.6vw, 30px); position: relative; overflow: hidden; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.b-tile:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(0,0,0,.35); }
.b-tile.wide { grid-column: span 3; }
.b-tile.dark { background: var(--ink); border-color: transparent; color: #fff; }
.b-tile.dark p { color: #c7c7cc; }
.b-tile.lime { background: var(--lime); border-color: transparent; color: var(--on-lime); }
.b-tile.lime p { color: rgba(11, 12, 9, .78); }
.b-tile.lime .b-ic { background: var(--on-lime); color: var(--lime); }
.b-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: var(--lime); display: grid; place-items: center; margin-bottom: 18px; }
.b-tile.dark .b-ic { background: rgba(183,229,40,.14); }
.b-tile h3 { margin: 0; font-size: 1.22rem; letter-spacing: -.02em; line-height: 1.25; }
.b-tile p { margin: 8px 0 0; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }
.b-tile .huge { font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin-bottom: 10px; }

/* ---------- Final CTA ---------- */
.cta-panel { position: relative; overflow: hidden; isolation: isolate; text-align: center; background: var(--ink); color: #fff; border-radius: clamp(28px, 4vw, 44px); padding: clamp(56px, 9vw, 112px) 24px; }
.cta-panel::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%; background: radial-gradient(50% 50% at 50% 50%, rgba(183,229,40,.35), transparent 70%); z-index: -1; }
.cta-panel .mark { width: 76px; height: 76px; border-radius: 20px; margin: 0 auto 26px; display: block; box-shadow: 0 20px 50px -10px rgba(183,229,40,.45); }
.cta-panel h2 { color: #fff; font-size: clamp(2.2rem, 5.4vw, 4rem); }
.cta-panel p { color: #c7c7cc; margin: 16px auto 0; max-width: 34em; font-size: clamp(1.02rem, 1.4vw, 1.18rem); }
.cta-panel .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* ---------- Reveal on scroll (only when JS runs) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="d1"] { transition-delay: .08s; } .js [data-reveal="d2"] { transition-delay: .16s; } .js [data-reveal="d3"] { transition-delay: .24s; }
.js .h-hero [data-reveal] { transition-duration: 1.1s; }
.js .stagger .row { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js .stagger.in .row { opacity: 1; transform: none; }
.js .stagger.in .row:nth-child(2) { transition-delay: .12s; } .js .stagger.in .row:nth-child(3) { transition-delay: .24s; } .js .stagger.in .row:nth-child(4) { transition-delay: .36s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .h-hero-grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .h-hero .lede { margin-inline: auto; }
  .h-hero .actions, .facts { justify-content: center; }
  .h-stage { margin-top: 12px; }
  .float-card.notif { left: 0; }
  .float-card.settled { right: 0; }
  .feature, .bilingual { grid-template-columns: minmax(0, 1fr); }
  .feature .f-copy, .feature.flip .f-copy { order: 0; text-align: center; }
  .feature p.f-lede { margin-inline: auto; }
  .ticks { justify-content: center; text-align: start; max-width: 30em; margin-inline: auto; }
  .bilingual { text-align: center; }
  .bilingual p { margin-inline: auto; }
  .currencies { justify-content: center; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-tile, .b-tile.wide { grid-column: span 1; }
}
@media (max-width: 600px) {
  .float-card { font-size: 12px; max-width: 200px; padding: 9px 11px; gap: 9px; border-radius: 16px; }
  .float-card .app-ic { width: 28px; height: 28px; }
  .float-card.notif { top: -3%; left: -4px; }
  .float-card.settled { bottom: 6%; right: -4px; }
  .scan-visual { grid-template-columns: minmax(0, 1fr); max-width: 340px; }
  .receipt { transform: rotate(-2deg); margin: 0 18px; }
  .items-card { margin-top: -30px; position: relative; }
  .bento { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .float-card, .try-hint span, .h-hero h1 .type::after { animation: none; }
  .in .beam { animation: none; opacity: 0; }
  .js [data-reveal], .js .stagger .row, .it { opacity: 1; transform: none; transition: none; }
  .flash { animation: none; }
  .b-tile, .b-tile:hover { transition: none; transform: none; }
}

/* On the dark page, the ink panels need an edge to separate them from it. */
@media (prefers-color-scheme: dark) {
  .bilingual, .cta-panel, .b-tile.dark { box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
}
