/* Tally — the waiting-list page (`/`, `/split`, and their Arabic twin under `/ar/`).
   One stylesheet for both languages: the English page and the Arabic page share
   every token, rule and fragment, and the only differences are the Arabic face,
   the logical-property mirroring that `dir="rtl"` turns on by itself, and the
   handful of `html[lang="ar"]` lines at the foot of this file.
   Physical sides (left / right) are not used anywhere above that block — a
   hard-coded side is invisible in English and pinned to the wrong edge in Arabic. */

@font-face{font-family:"Inter Fallback";src:local("Arial"),local("Helvetica Neue");size-adjust:107%;ascent-override:90%;descent-override:22%;line-gap-override:0%}
:root{
  --cream:#F4F1EA;--paper:#FBF9F4;--tint:#EDE9E0;
  --ink:#0D0D0D;--ink-hover:#1C1C1A;--ink2:#3A3833;--grey:#6B675F;--white:#FFFFFF;
  --av-red:#C54F45;--av-green:#0C875D;--av-orange:#D14900;--av-purple:#7A4FE0;
  --lime:#DBFE51;--green:#0B6E4B;--red:#A8231A;
  --rule:rgba(13,13,13,.28);--hair:rgba(13,13,13,.12);
  --ease:cubic-bezier(.22,1,.36,1);
}
*{box-sizing:border-box}
/* iOS paints a grey box over anything tapped; every control here draws its own press state instead */
html{scrollbar-color:var(--ink) var(--cream);scroll-behavior:smooth;-webkit-tap-highlight-color:transparent}
body{margin:0;background:var(--cream);color:var(--ink);font-family:Inter,"Inter Fallback",-apple-system,"Helvetica Neue",Arial,sans-serif;font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;caret-color:var(--ink)}
::selection{background:var(--lime);color:var(--ink)}
a{color:inherit;text-underline-offset:.2em;text-decoration-thickness:1px}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:2px}
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
svg.i{width:1em;height:1em;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;display:inline-block;vertical-align:-.12em}
.num{font-variant-numeric:tabular-nums lining-nums}

/* ---------- the strip ---------- */
.strip{max-width:528px;margin:0 auto;padding:0 20px}
@media (min-width:560px){.strip{padding:0 24px}}

.head{display:flex;justify-content:space-between;align-items:center;height:64px;border-bottom:1px solid var(--ink)}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:16px;letter-spacing:-.02em;text-decoration:none}
.mark{display:grid;place-items:center;background:var(--ink);border-radius:8px;width:28px;height:28px}
.head .end{display:flex;align-items:center;gap:10px}
.head a.q{font-size:14px;font-weight:600;color:var(--grey);text-decoration:none;display:inline-flex;align-items:center;min-height:44px;padding:0 4px}
.head a.q:hover{color:var(--ink)}
/* the language switch: two words on the first rule, the current one in ink */
.langs{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--grey);margin-inline-end:-4px}
.langs a{text-decoration:none;display:inline-flex;align-items:center;min-height:44px;padding:0 4px}
.langs a:hover{color:var(--ink)}
.langs [aria-current="true"]{color:var(--ink);font-weight:700}
.langs .sep{color:var(--hair);color:rgba(13,13,13,.28)}

/* the top: say what this is, ask for the email, then show it */
.beta{display:flex;align-items:center;gap:8px;width:fit-content;margin:clamp(20px,6vw,36px) 0 0;height:30px;padding-inline:10px 12px;border-radius:999px;background:var(--paper);border:1px solid var(--hair);font-size:13px;font-weight:700;color:var(--ink);white-space:nowrap}
.beta .dot{width:8px;height:8px;border-radius:50%;background:var(--lime);box-shadow:0 0 0 1.5px var(--ink)}
/* the headline scales with the screen, so "Spending, income" fits line one and
   "and balances." never splits, from a 360 phone to the 480 desktop column */
h1{font-size:clamp(33px,10.2vw,56px);font-weight:800;letter-spacing:-.035em;line-height:.96;margin:14px 0 0;text-wrap:balance}
.tag{font-size:clamp(20px,4.6vw,26px);font-weight:600;letter-spacing:-.02em;line-height:1.2;color:var(--grey);margin:10px 0 0;text-wrap:balance}

/* the signature line */
.sign{margin-top:clamp(20px,5vw,32px)}
.form{display:flex;flex-direction:column;gap:8px}
.field{width:100%;height:56px;border-radius:10px;background:var(--paper);border:1px solid var(--ink);padding:0 16px;font-family:inherit;font-size:16px;font-weight:500;color:var(--ink);appearance:none}
.field::placeholder{color:var(--grey);opacity:1}
.field:focus{outline:2px solid var(--ink);outline-offset:2px}
.cta{width:100%;height:56px;border:0;border-radius:10px;background:var(--ink);color:var(--lime);font-family:inherit;font-size:16px;font-weight:800;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .1s var(--ease)}
.cta:hover{background:var(--ink-hover)}
.cta:active{transform:scale(.985)}
.cta[aria-disabled="true"]{cursor:default;color:rgba(219,254,81,.6)}
@media (min-width:560px){.form{flex-direction:row}.form .field{flex:1;min-width:0}.form .cta{width:auto;padding:0 24px;flex:0 0 auto}}
.fine{font-size:14px;font-weight:500;color:var(--grey);margin:12px 0 0;line-height:1.5;text-wrap:pretty}
.trust{display:flex;flex-wrap:wrap;gap:4px 16px;margin:14px 0 0;padding:0;list-style:none;font-size:14px;font-weight:600;color:var(--ink2)}
.trust li{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.trust svg{width:15px;height:15px;stroke:var(--green);fill:none;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.err{font-size:14px;font-weight:600;color:var(--red);margin:10px 0 0}
.err:empty{margin:0}
.field[aria-invalid="true"]{border-color:var(--red)}

/* the beats: one solid rule opens a section, dashed rules only inside one */
.beat,.promise{margin-top:clamp(56px,14vw,80px);border-top:1px solid var(--ink);padding-top:28px}
.kicker{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-size:14px;font-weight:700;color:var(--ink)}
.kicker::before{content:"";width:10px;height:10px;border-radius:3px;background:var(--lime);box-shadow:inset 0 0 0 1.5px var(--ink)}
.lead{font-size:16px;line-height:1.5;color:var(--ink2);font-weight:500;margin:10px 0 0;text-wrap:pretty}
.beat .list,.beat>.card,.know{margin-top:22px}
h2{font-size:clamp(26px,6vw,32px);font-weight:800;letter-spacing:-.03em;line-height:1.05;margin:0;text-wrap:balance}
.p{font-size:16px;line-height:1.5;color:var(--ink2);font-weight:500;margin:12px 0 0;text-wrap:pretty}

/* an item: the bank's line, then Tally's line */
.item+.item{border-top:1px dashed var(--rule);margin-top:20px;padding-top:20px}
.from{display:flex;justify-content:space-between;gap:12px;font-size:14px;font-weight:700;color:var(--grey)}
.from .t{font-weight:600;color:var(--grey);white-space:nowrap}
.msg{display:inline-block;max-width:min(92%,440px);margin:8px 0 0;padding:10px 14px;background:rgba(13,13,13,.06);border-radius:18px;border-start-start-radius:4px;font-size:14px;line-height:1.45;font-weight:500;color:var(--ink);text-wrap:pretty}
/* A bank that writes in the other language: the bubble keeps the PAGE's direction,
   so its sharp corner still points at the sender, and only the text inside runs in
   its own. Never put `dir` on the .msg itself. */
/* a message in the other language spans the whole column, lined up with Tally's row under it: its lines run the other way from the bubble's anchored corner, so a bubble that hugged its text stopped short of everything around it */
.msg:has(.rtl),.msg:has(.ltr),.beat .msg{display:block;max-width:none}
.msg .ltr{display:block;direction:ltr;text-align:start;text-wrap:pretty}
.msg .rtl{display:block;direction:rtl;text-align:start;text-wrap:pretty;font-family:Inter,"IBM Plex Sans Arabic","Inter Fallback",sans-serif;font-size:15px;line-height:1.6}
/* Tally's line: the app's own row, printed on white */
.tx{display:flex;align-items:center;gap:12px;background:var(--paper);border:1px solid var(--hair);border-radius:16px;padding:12px 14px;margin-top:12px}
.tx .a{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;color:var(--white);font-weight:700;font-size:14px;flex:0 0 auto}
.tx .n{flex:1;min-width:0;font-size:16px;font-weight:700;letter-spacing:-.01em;line-height:1.25;overflow-wrap:anywhere}
.tx .n small{display:block;font-size:14px;color:var(--grey);font-weight:500;margin-top:2px}
.tx .m{font-size:16px;font-weight:700;font-variant-numeric:tabular-nums lining-nums;letter-spacing:-.01em;white-space:nowrap;text-align:end}
.tx .m.in{color:var(--green)}
@media (max-width:359px){.tx{flex-wrap:wrap}.tx .m{flex:1 0 100%;padding-inline-start:48px}.from .t{white-space:normal}}

/* know: the app's account strip, scrolling sideways past the strip's edge, then its habits card */
.chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin-inline:-20px;padding-inline:20px}
.chips::-webkit-scrollbar{display:none}
@media (min-width:560px){.chips{margin-inline:-24px;padding-inline:24px}}
.know .card{margin-top:12px}
.card .hh{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px 0;font-size:14px;font-weight:700;color:var(--grey)}
.card .hh .lg{display:inline-flex;align-items:center;gap:4px;font-weight:600;font-size:12px}
.card .hh .lg i{width:8px;height:8px;border-radius:50%;display:inline-block}
.know .card .hstrip+.tx{border-top:1px solid var(--hair)}
.know .hd{transform:none}
.chip{min-height:36px;padding:8px 14px;border-radius:999px;background:var(--paper);border:1px solid var(--hair);display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--grey);white-space:nowrap}
.chip b{color:var(--ink);font-weight:700;font-variant-numeric:tabular-nums lining-nums}
.chip.on{background:var(--paper);color:var(--ink);border-color:var(--ink);font-weight:700}

/* a stacked product card: the split */
.card{background:var(--paper);border:1px solid var(--hair);border-radius:16px;padding:2px 0;margin-top:12px}
.card .tx{background:none;border:0;border-radius:0;padding:12px 14px;margin:0}
.card .tx+.tx{border-top:1px solid var(--hair)}
.card .pill{background:var(--lime);border-radius:999px;padding:6px 12px;font-size:14px;font-weight:700;color:var(--ink)}
.card .sum{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:12px 14px;border-top:1px solid var(--ink);font-size:14px;font-weight:600;color:var(--grey)}
.card .sum b{font-size:16px;font-weight:800;color:var(--ink);font-variant-numeric:tabular-nums lining-nums}

/* the lime total: the one number that matters */
.total{background:var(--lime);margin-top:12px;padding:20px 20px 18px;border-radius:16px;display:block}
.total .l{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:16px;font-weight:600}
.total .big{font-size:clamp(32px,8vw,40px);font-weight:800;letter-spacing:-.03em;line-height:1;margin:10px 0 14px;font-variant-numeric:tabular-nums lining-nums}
.total .bar{height:6px;border-radius:3px;background:rgba(13,13,13,.14);overflow:hidden}
.total .bar i{display:block;height:100%;width:62%;background:var(--ink);border-radius:3px;transform-origin:left center}

.ok{color:var(--green);font-size:18px}

/* private */
.promise h2{margin:0}
.priv{margin-top:16px;list-style:none;padding:0}
.priv li{padding:14px 0;font-size:16px;font-weight:600;line-height:1.4;text-wrap:pretty}
.priv li:first-child{padding-top:4px}
.priv li+li{border-top:1px dashed var(--rule)}
.more{font-size:14px;font-weight:500;color:var(--grey);margin:12px 0 0}

/* the close */
.band{background:var(--lime);margin-top:clamp(80px,20vw,112px);padding:56px 0 48px}
.band h2{font-size:clamp(34px,8vw,44px)}
.band .p{color:var(--ink)}
.band .field{background:var(--paper)}
.band .fine{color:var(--ink2)}
.band .err{color:var(--red)}
.band .sign{margin-top:24px}
footer{display:flex;justify-content:space-between;gap:16px;padding:20px 0 28px;font-size:14px;font-weight:600;color:var(--grey)}
footer a{color:var(--grey);text-decoration:none;display:inline-flex;align-items:center;min-height:44px;padding:0 4px;margin:-12px -4px}
footer a:hover{color:var(--ink)}

/* the confirmation */
.done{margin-top:8px}
.done:focus-visible{outline:none}
.done .big{border-top:1px solid var(--ink);border-bottom:1px solid var(--ink);padding:20px 0 18px}
.done .big .f{font-size:clamp(26px,6vw,32px);font-weight:800;letter-spacing:-.03em;line-height:1.05;margin:0 0 10px}
.done .big p{margin:0;font-size:16px;line-height:1.5;font-weight:500;color:var(--ink2)}
.done .big p+p{margin-top:4px}
.done .big b{font-weight:700;color:var(--ink);overflow-wrap:anywhere}
.ghost{height:52px;padding:0 20px;border-radius:10px;background:transparent;border:1px solid var(--ink);color:var(--ink);font-family:inherit;font-size:16px;font-weight:700;display:inline-flex;align-items:center;gap:10px;margin-top:12px;cursor:pointer}
.ghost:hover{background:var(--paper)}
.band .done{margin-top:8px}
.band .ghost:hover{background:rgba(13,13,13,.06)}

/* the lime total's bar fills once when it first comes into view */
html.js .total:not(.seen) .bar i{transform:scaleX(0)}
.total.seen .bar i{animation:grow 1s var(--ease) .7s forwards}
@keyframes grow{from{transform:scaleX(0)}}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  .total .bar i{transform:none}
  html{scroll-behavior:auto}
}

/* ---------- Arabic ----------
   Inter stays FIRST in the stack, so Latin words and every figure keep Inter's
   tabular lining numerals; only the Arabic glyphs fall through to IBM Plex Sans
   Arabic, whose heaviest weight is 700 (an 800 clamps to it). Letter-spacing is
   reset everywhere: negative tracking on Arabic fights the cursive join. Line
   heights that were set for Latin caps open up for the dots and descenders. */
html[lang="ar"] body{font-family:Inter,"IBM Plex Sans Arabic","Inter Fallback",-apple-system,"Helvetica Neue",Arial,sans-serif}
html[lang="ar"] *{letter-spacing:normal}
html[lang="ar"] h1{line-height:1.15}
html[lang="ar"] .tag{line-height:1.35}
html[lang="ar"] h2,html[lang="ar"] .done .big .f{line-height:1.3}
html[lang="ar"] .total .big{line-height:1.25}
html[lang="ar"] .tx .n{line-height:1.35}
html[lang="ar"] .priv li{line-height:1.6}
/* the bar fills from the reading edge */
html[dir="rtl"] .total .bar i{transform-origin:right center}

/* ---------- the hero: one order, read, counted and split ---------- */
.hero .total{margin-top:0;padding:20px}
.hero .total .big{margin:8px 0 14px;transition:opacity .25s}
.hero .total .bar i{width:31.3%;transition:width .9s var(--ease)}
.hsay{display:inline-flex;align-items:center;height:32px;margin-top:12px;font-size:14px;font-weight:600;color:var(--ink2);white-space:nowrap;border-radius:999px;transition:opacity .22s,transform .3s cubic-bezier(.34,1.6,.64,1)}
.hsay.pill{background:var(--ink);color:var(--lime);font-weight:700;padding:0 14px}
@media (max-width:420px){.hero .total{padding:18px}.hsay{font-size:13px}.hsay.pill{font-weight:600;padding:0 11px;letter-spacing:-.01em}}
.hslot{display:grid;margin-top:12px}
.hslot>.hc,.hslot>.hread{grid-area:1/1;align-self:center}
.hread{display:flex;flex-direction:column;gap:10px}
.hc{background:var(--paper);border:1px solid var(--hair);border-radius:16px;opacity:0;transform:translateY(22px);transition:opacity .45s ease,transform .6s cubic-bezier(.34,1.35,.64,1)}
.hc.on{opacity:1;transform:none}
.hc.out{opacity:0;transform:translateY(-14px) scale(.97);transition:opacity .3s ease,transform .35s ease}
.hc .tx{background:none;border:0;margin:0;border-radius:0}
.hnotif{padding:14px}
.hnotif .msg{margin-top:8px;max-width:100%}
.hrow .a,.hhabit .a,.hsplit .a{transition:transform .5s cubic-bezier(.34,1.8,.64,1) .12s}
.hrow:not(.on) .a{transform:scale(0)}
.hstrip{display:flex;justify-content:space-between;padding:0 14px 14px;margin-inline-start:48px}
.hd{width:8px;height:8px;border-radius:50%;transform:scale(0);transition:transform .35s cubic-bezier(.34,1.8,.64,1)}
.hhabit.on .hd{transform:none}
.hd.l0{background:var(--tint)}.hd.l1{background:#B8B3A6}.hd.l2{background:var(--grey)}.hd.l3{background:var(--ink)}
.hd.last{background:var(--tint);transition:background .2s,transform .35s cubic-bezier(.34,1.8,.64,1)}
.hd.last.fill{background:var(--ink);animation:hpulse .7s ease-out}
@keyframes hpulse{0%{box-shadow:0 0 0 0 rgba(13,13,13,.35)}100%{box-shadow:0 0 0 10px rgba(13,13,13,0)}}
.hhabit .n small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hswap{display:inline-block;transition:transform .3s,opacity .3s}
.hsplit .tx+.tx{border-top:1px solid var(--hair)}
.hsplit .tx.p{opacity:0;transform:translateX(12px);transition:all .45s cubic-bezier(.34,1.4,.64,1)}
html[dir="rtl"] .hsplit .tx.p{transform:translateX(-12px)}
html[dir="rtl"] .hsplit.on .tx.p{transform:none}
.hsplit.on .tx.p{opacity:1;transform:none}
.hsplit .st{background:var(--lime);border-radius:999px;padding:6px 12px;font-size:14px;font-weight:700;color:var(--ink);transition:all .3s}
.hsplit .st.paid{background:#E3F4EC;color:var(--green)}
/* three labelled steps under the scenes, each with a track that fills over its scene */
.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:4px 2px 0}
.step{appearance:none;border:0;background:none;padding:10px 0 2px;font:inherit;font-size:13px;font-weight:700;color:var(--grey);text-align:start;cursor:pointer;min-height:44px;display:flex;flex-direction:column;gap:8px;transition:opacity .15s}
.step:active{opacity:.55}
.step .track{display:block;height:3px;border-radius:2px;background:rgba(13,13,13,.12);overflow:hidden}
.step .track i{display:block;height:100%;width:0;background:var(--ink)}
.step[aria-current="step"],.step:hover{color:var(--ink)}
@media (prefers-reduced-motion:reduce){.hc.on,.hsplit.on .tx.p,.hd{opacity:1;transform:none}}

#topBlock .sign{margin-top:22px}
.hero{margin-top:28px}
.from{align-items:center}
.from .bank{display:inline-flex;align-items:center;gap:10px;color:var(--ink)}
.from .bank img{width:28px;height:28px;border-radius:7px;display:block}
.tx .a.logo{background:#fff;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.tx .a.logo img{width:100%;height:100%;display:block}

.hhabit .ht{border-top:1px solid var(--hair)}
.hstrip2 .hd{transform:none;transition:none}
.nw{white-space:nowrap}
/* the hero sits in one rounded panel, the way the deck did: paper, hair edge, 12 inset */
.hero{background:var(--paper);border:1px solid var(--hair);border-radius:24px;padding:12px}
.hero .total{border-radius:16px}
.hero .hc,.hero .hread>.hc{background:var(--white)}
.hslot{grid-template-columns:minmax(0,1fr)}
.hero .tx .n{min-width:0}
@media (max-width:420px){.hero{padding:10px}.hero .total{padding:16px}.hsay{font-size:12.5px}.hsay.pill{padding:0 10px}}
/* a 360 phone: the habit rows' second line needs every pixel the row can give it */
@media (max-width:380px){.hero .tx{padding:12px;gap:10px}.hero .tx .n small{font-size:13px}}
