:root {
  --creme: #FCFAFB;
  --encre: #251C2A;
  --bordeaux: #7F2044;
  --prune: #55162F;
  --turquoise: #138F8D;
  --turquoise-deep: #0F7A78;
  --rose: #E7A2B6;
  --rose-pale: #FBEEF2;
  --mauve: #6F6475;
  --surface: #F1EBEE;
  --white: #FFFFFF;
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  font-feature-settings: "cv11", "ss01";
}
@supports (font-variation-settings: normal) {
  body { font-family: InterVariable, Inter, system-ui, sans-serif; }
}
h1, h2, h3, p, ol, ul, blockquote { margin: 0; }
a { color: inherit; }
img { display: block; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; border-radius: 6px; }

/* ---- top ---- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 64px);
  background: color-mix(in srgb, var(--creme) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand img { border-radius: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 26px; border-radius: 18px;
  background: var(--bordeaux); color: var(--white);
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .35s var(--ease-out), background .2s;
}
.btn:hover { background: var(--prune); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-small { height: 42px; padding: 0 18px; border-radius: 13px; font-size: 15px; }
.btn-light { background: var(--white); color: var(--prune); }
.btn-light:hover { background: var(--rose-pale); }
.link { font-weight: 600; text-decoration: none; color: var(--bordeaux); border-bottom: 2px solid var(--rose); padding-bottom: 2px; }
.link:hover { border-color: var(--bordeaux); }

/* ---- hero ---- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center; gap: clamp(32px, 6vw, 96px);
  padding: clamp(48px, 8vw, 120px) clamp(20px, 5vw, 64px) clamp(64px, 8vw, 120px);
  max-width: 1280px; margin: 0 auto;
}
.hero h1 {
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 800;
  text-wrap: balance;
}
.lead { margin-top: 28px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: #4E4455; max-width: 34em; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.fineprint { margin-top: 22px; font-size: 14px; color: var(--mauve); }

.js .hero-copy > * { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease-out) forwards; }
.js .hero-copy h1 { animation-delay: .05s; }
.js .hero-copy .lead { animation-delay: .18s; }
.js .hero-copy .hero-actions { animation-delay: .3s; }
.js .hero-copy .fineprint { animation-delay: .4s; }
.js .hero-device { opacity: 0; transform: translateY(40px) rotate(-1.5deg); animation: rise 1.3s var(--ease-out) .25s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---- phone ---- */
.phone {
  position: relative; width: 340px; max-width: 100%; aspect-ratio: 390 / 820;
  margin: 0 auto; padding: 12px;
  background: var(--encre); border-radius: 54px;
  box-shadow: 0 40px 80px -30px rgba(37,28,42,.45), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.phone::before {
  content: ""; position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 28px; border-radius: 16px; background: var(--encre); z-index: 3;
}
.phone-screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 42px; background: var(--creme);
  font-size: 13px; line-height: 1.3;
}
.phone-small { width: 300px; }

.notif {
  position: absolute; top: 14px; left: 12px; right: 12px; z-index: 4;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 12px 12px 10px; border-radius: 20px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -10px rgba(37,28,42,.35);
  transform: translateY(-140%); opacity: 0;
  transition: transform .7s var(--ease-out), opacity .5s;
}
.notif.show { transform: none; opacity: 1; }
.notif.absorb { transform: translateY(215px) scale(.9); opacity: 0; transition: transform .6s var(--ease), opacity .45s .15s; }
.notif-app { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 10px; font-weight: 800; background: #FFF1E0; color: #B35C00; }
.notif-app.momo { background: #FFF9D6; color: #7A6400; }
.notif-app.uba { background: #E8EEF9; color: #27448F; }
.notif-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notif-title { font-weight: 700; font-size: 12px; }
.notif-text { font-size: 12px; color: #4E4455; }
.notif-time { font-size: 11px; color: var(--mauve); }

.app { height: 100%; padding: 64px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.app-head { display: flex; flex-direction: column; gap: 1px; padding: 0 2px 2px; }
.app-month { font-size: 11px; font-weight: 600; color: var(--bordeaux); }
.app-title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.balance { background: var(--bordeaux); color: var(--white); border-radius: 22px; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.balance-label { font-size: 11px; opacity: .85; }
.balance-amount { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.balance-amount small { font-size: 13px; font-weight: 600; opacity: .8; }
.balance-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.split { border-radius: 13px; padding: 9px 11px; display: flex; flex-direction: column; gap: 3px; font-size: 10px; }
.split b { font-size: 14px; font-weight: 700; }
.split.in { background: var(--turquoise); }
.split.out { background: var(--prune); }
.todo { display: flex; align-items: center; gap: 10px; background: var(--rose-pale); border-radius: 16px; padding: 10px 12px; }
.todo-icon { width: 30px; height: 30px; border-radius: 10px; background: var(--rose); flex: none; }
.todo-text { display: flex; flex-direction: column; gap: 1px; font-size: 11px; color: var(--mauve); }
.todo-text b { font-size: 12px; color: var(--encre); font-weight: 600; }
.ops { background: var(--white); border-radius: 20px; padding: 10px 0 0; box-shadow: 0 1px 2px rgba(37,28,42,.06); flex: 1; overflow: hidden; }
.ops-title { font-size: 13px; font-weight: 700; padding: 2px 14px 8px; }
.ops-list { list-style: none; padding: 0; margin: 0; }
.op { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--surface); }
.op.enter { animation: op-in .7s var(--ease-out); }
@keyframes op-in { from { opacity: 0; transform: translateY(-14px); background: var(--rose-pale); } to { opacity: 1; transform: none; } }
.op-src { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 9px; font-weight: 800; }
.op-src.om { background: #FFF1E0; color: #B35C00; }
.op-src.momo { background: #FFF9D6; color: #7A6400; }
.op-src.uba { background: #E8EEF9; color: #27448F; }
.op-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 10px; color: var(--mauve); }
.op-main b { font-size: 12px; color: var(--encre); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-main .tag { color: var(--bordeaux); font-weight: 600; }
.op-amt { font-size: 12px; font-weight: 700; }
.in { color: var(--turquoise-deep); }
.out { color: var(--bordeaux); }
.balance .in, .balance .out { color: inherit; }

/* categorisation sheet (sticky phone) */
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  background: var(--creme); border-radius: 26px 26px 0 0;
  padding: 10px 14px 18px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 -12px 40px rgba(37,28,42,.25);
  transform: translateY(100%); transition: transform .8s var(--ease-out);
}
.sheet-grip { width: 34px; height: 4px; border-radius: 2px; background: #D8CCD2; margin: 0 auto; }
.sheet-op { display: flex; align-items: center; gap: 10px; }
.sheet-amt { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.sheet-quote { padding: 9px 11px; border-radius: 12px; background: var(--surface); font-size: 10.5px; color: #4E4455; }
.sheet-label { font-size: 10px; font-weight: 700; color: var(--mauve); }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.cat { height: 44px; border-radius: 13px; border: 1px solid #EDE6EA; background: var(--white); display: grid; place-items: center; font-size: 10px; font-weight: 600; transition: all .4s var(--ease); }
.cat-on { border: 2px solid var(--turquoise); background: #E3F4F3; color: var(--turquoise-deep); font-weight: 700; opacity: 0; transform: scale(.96); }
.rule { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 13px; background: var(--white); box-shadow: 0 1px 2px rgba(37,28,42,.06); }
.rule-text { flex: 1; display: flex; flex-direction: column; gap: 1px; font-size: 9.5px; color: var(--mauve); }
.rule-text b { font-size: 11px; color: var(--encre); font-weight: 600; }
.toggle { flex: none; width: 36px; height: 22px; border-radius: 11px; background: #D8CCD2; position: relative; transition: background .4s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 8px; background: var(--white); transition: transform .4s var(--ease-out); }
.sheet-cta { height: 42px; border-radius: 13px; background: var(--bordeaux); color: var(--white); display: grid; place-items: center; font-size: 12px; font-weight: 700; }

/* step states on the sticky phone */
#how-phone[data-step="1"] .notif { transform: none; opacity: 1; }
#how-phone[data-step="2"] .notif { transform: translateY(-140%); opacity: 0; }
#how-phone[data-step="2"] .sheet, #how-phone[data-step="3"] .sheet { transform: none; }
#how-phone[data-step="2"] .cat-on { border-color: #EDE6EA; border-width: 1px; background: var(--white); color: var(--encre); font-weight: 600; opacity: 1; transform: none; }
#how-phone[data-step="3"] .notif { transform: translateY(-140%); opacity: 0; }
#how-phone[data-step="3"] .cat-on { opacity: 1; transform: none; transition-delay: .25s; }
#how-phone[data-step="3"] .toggle { background: var(--turquoise); transition-delay: .55s; }
#how-phone[data-step="3"] .toggle::after { transform: translateX(14px); transition-delay: .55s; }

/* ---- facts ---- */
.facts {
  max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px) clamp(64px, 8vw, 120px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px);
}
.facts p { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.35; letter-spacing: -0.01em; font-weight: 500; text-wrap: pretty; }
.facts p::first-line { color: var(--bordeaux); }

/* ---- how ---- */
.how {
  max-width: 1280px; margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px);
}
.how-sticky { position: sticky; top: 0; align-self: start; height: 100vh; display: flex; align-items: center; justify-content: center; }
.how-sticky .app { filter: saturate(.6); opacity: .55; }
#how-phone[data-step="1"] .app { filter: none; opacity: 1; }
#how-phone .op-hl { background: var(--rose-pale); }
#how-phone .op-hl .tag { color: var(--bordeaux); font-weight: 600; }
.steps { list-style: none; padding: 0; }
.step { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; max-width: 30em; opacity: .28; transition: opacity .6s var(--ease); }
.step.on { opacity: 1; }
.step-n { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--surface); color: var(--bordeaux); font-weight: 800; font-size: 15px; }
.step h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
.step p { font-size: 18px; color: #4E4455; }

/* ---- numbers ---- */
.numbers {
  max-width: 1280px; margin: 0 auto;
  padding: clamp(64px, 8vw, 120px) clamp(20px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px);
}
.number { display: flex; flex-direction: column; gap: 10px; }
.number-value { font-size: clamp(40px, 5vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.number-label { font-size: 16px; color: var(--mauve); max-width: 20em; }

/* ---- privacy ---- */
.privacy { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px) clamp(80px, 10vw, 140px); }
.privacy h2 { font-size: clamp(34px, 5vw, 68px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; max-width: 14em; text-wrap: balance; }
.privacy p { margin-top: 28px; font-size: clamp(18px, 1.5vw, 21px); color: #4E4455; max-width: 36em; }

/* ---- download ---- */
.download {
  background: var(--prune); color: var(--white);
  padding: clamp(64px, 8vw, 120px) clamp(20px, 5vw, 64px);
}
.download { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.download > * { max-width: 1280px; }
.download-copy h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
.download-copy > p { margin-top: 20px; font-size: 19px; color: var(--rose); max-width: 30em; }
.download-copy .btn { margin-top: 32px; }
.install { margin-top: 40px; padding-left: 1.4em; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: #EBD7DF; max-width: 34em; }
.install li::marker { color: var(--rose); font-weight: 700; }
.qr { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.qr img { width: 260px; height: 260px; padding: 18px; background: var(--white); border-radius: 28px; }
.qr span { font-size: 14px; color: var(--rose); }

/* ---- footer ---- */
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px clamp(20px, 5vw, 64px); font-size: 14px; color: var(--mauve); }

/* ---- responsive ---- */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-device { margin-top: 8px; }
  .phone { width: 280px; }
  .facts, .numbers { grid-template-columns: 1fr; gap: 28px; }
  .how { grid-template-columns: 1fr; }
  .how-sticky { position: static; height: auto; margin-bottom: 24px; }
  .how-sticky .app { filter: none; opacity: 1; }
  .step { min-height: 0; padding: 36px 0; opacity: 1; }
  .download { grid-template-columns: 1fr; }
  .qr { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .hero-device { animation: none; opacity: 1; transform: none; }
  .notif, .sheet, .cat, .toggle, .toggle::after, .step, .btn { transition: none; }
  .op.enter { animation: none; }
}
