@font-face { font-family: "Onest"; src: url("/static/fonts/Onest-var-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f3f3f0; --card: #fff; --ink: #16171b; --ink-2: #65676f; --line: #e5e5e0;
  --brand: #ff5a1f; --brand-d: #e84a10; --brand-ink: #fff; --soft: #fff0e8;
  --ok: #0f8a47; --ok-soft: #e6f6ec; --warn: #b26b00; --warn-soft: #fff4dc; --bad: #c62a1c; --bad-soft: #fdecea;
  --tile: #f3f2ee;
  --cta: #d1400a; --cta-h: #b8360a; --cta-ink: #fff;
  --sans: "Onest", system-ui, sans-serif; --ease: cubic-bezier(.16, 1, .3, 1);
}
:root[data-theme="dark"] {
  --bg: #111113; --card: #1b1b1e; --ink: #f3f2ee; --ink-2: #a3a4ab; --line: #2b2b30;
  --brand: #ff6a2c; --brand-d: #ff8150; --brand-ink: #141416; --soft: #2d1c14;
  --ok: #52c98a; --ok-soft: #15291e; --warn: #ffc35a; --warn-soft: #2a2213; --bad: #ff7b6b; --bad-soft: #2e1a18;
  --tile: #232327;
  --cta: #ff6a2c; --cta-h: #ff8150; --cta-ink: #141416;
}
:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.45 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100dvh; }
::selection { background: var(--brand); color: var(--brand-ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; color: inherit; }
svg { display: block; }

.hdr { max-width: 40rem; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 16px 10px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; }
.logo-mark svg { width: 18px; height: 18px; }
.demo-banner { max-width: 40rem; margin: 0 auto 6px; padding: 10px 16px; font-size: .86rem; color: var(--warn); background: var(--warn-soft); border-radius: 12px; width: calc(100% - 24px); }

.wrap { max-width: 40rem; margin: 0 auto; padding: 6px 12px 40px; display: grid; gap: 12px; }
.card { background: var(--card); border-radius: 22px; padding: 20px 18px; }

.status { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; }
.st-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); }
.st-ico svg { width: 26px; height: 26px; }
.st-ico.ok { background: var(--ok-soft); color: var(--ok); }
.st-ico.bad { background: var(--bad-soft); color: var(--bad); }
.st-ico.spin svg { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status h1 { margin: 0; font-size: 1.45rem; line-height: 1.15; letter-spacing: -.025em; }
.status p { margin: 4px 0 0; color: var(--ink-2); font-size: .93rem; }

.steps { list-style: none; margin: 22px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.steps::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 9px; height: 3px; background: var(--line); border-radius: 2px; }
.steps li { display: grid; justify-items: center; gap: 8px; font-size: .76rem; color: var(--ink-2); text-align: center; position: relative; }
.steps i { width: 21px; height: 21px; border-radius: 50%; background: var(--card); border: 3px solid var(--line); position: relative; z-index: 1; transition: background-color .3s, border-color .3s; }
.steps li.done i { background: var(--ok); border-color: var(--ok); }
.steps li.done { color: var(--ink); }
.steps li.now i { border-color: var(--brand); background: var(--card); box-shadow: 0 0 0 4px var(--soft); }
.steps li.now { color: var(--ink); font-weight: 600; }
.steps li.fail i { border-color: var(--bad); background: var(--bad); }

.item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 14px; background: var(--tile); border-radius: 16px; }
.art { width: 56px; height: 56px; border-radius: 14px; background: var(--card); padding: 2px; }
.art svg, .art img.clay, .art img.gift-img { width: 100%; height: 100%; object-fit: contain; }
.item-txt { display: grid; min-width: 0; }
.item-txt b { font-weight: 700; overflow-wrap: anywhere; }
.item-txt span { color: var(--ink-2); font-size: .9rem; }
.amount { font-size: 1.15rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }

.err { margin: 12px 0 0; color: var(--bad); }
.actions { display: grid; gap: 8px; margin-top: 16px; }
.btn { appearance: none; border: 0; cursor: pointer; border-radius: 14px; font-weight: 700; padding: 15px; text-align: center; text-decoration: none; display: block; font-size: 1.02rem; transition: background-color .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn--main { background: var(--cta); color: var(--cta-ink); }
.btn--main:hover { background: var(--cta-h); }
.btn--soft { background: var(--soft); color: var(--ink); }

.details dl { margin: 0; display: grid; gap: 0; }
.details dl div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--ink-2); }
.details dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.help { margin: 14px 0 0; color: var(--ink-2); font-size: .88rem; }
.help a { color: var(--ink); font-weight: 600; }
.copy { appearance: none; border: 0; background: transparent; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; padding: 0; cursor: pointer; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.actions form, .actions form .btn { width: 100%; }

img.clay { display: block; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.item--noart { grid-template-columns: 1fr auto; }

/* virtual number */
.num h2 { margin: 0 0 12px; font-size: 1.15rem; letter-spacing: -.02em; }
.mono { font-family: "Fragment Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.num-box { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 14px 16px; background: var(--tile); border-radius: 16px; }
.num-box b { font-size: clamp(1.1rem, 5.2vw, 1.5rem); font-weight: 600; overflow-wrap: anywhere; }
.num-demo { grid-row: 2; color: var(--warn); font-size: .8rem; font-weight: 600; }
.num-code { margin-top: 10px; background: var(--ok-soft); }
.num-code span { grid-column: 1 / -1; font-size: .82rem; color: var(--ink-2); font-weight: 600; }
.num-code b { color: var(--ink); letter-spacing: .18em; }
.chip { appearance: none; border: 0; cursor: pointer; background: var(--card); color: var(--ink); font-weight: 700; font-size: .88rem; padding: 9px 13px; border-radius: 11px; }
.num-how { margin: 14px 0 6px; padding-left: 1.3em; color: var(--ink-2); font-size: .93rem; display: grid; gap: 6px; }
.num-msg { margin: 10px 0 0; color: var(--ink-2); font-size: .92rem; min-height: 1.2em; }
.num-msg.bad { color: var(--bad); }
.num .btn { width: 100%; margin-top: 8px; }
.num .btn:disabled { opacity: .6; cursor: default; }
.num-fine { margin: 10px 0 0; color: var(--ink-2); font-size: .82rem; }
.num-warn { display: grid; gap: 4px; background: var(--bad-soft); color: var(--bad); border: 1.5px solid currentColor; border-radius: 16px; padding: 12px 14px; margin: 0 0 12px; font-size: .92rem; }
.num-warn b { font-size: 1rem; }
.num-warn span { color: var(--ink); }
.follow { margin-top: 10px; }
.follow .btn { width: 100%; }
.follow-note { margin: 8px 2px 0; color: var(--ink-2); font-size: .88rem; }
.follow-note:empty { display: none; }
.follow-note.ok { color: var(--ok); font-weight: 600; }

/* ---------- motion ---------- */
.card { animation: rise .5s cubic-bezier(.16, 1, .3, 1) both; }
.card + .card { animation-delay: .06s; }
.card + .card + .card { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
/* status icon: the new state pops in; the check draws itself */
.st-ico svg { animation: icopop .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes icopop { from { transform: scale(.6); opacity: 0; } }
.st-ico.ok { transition: background-color .4s; }
.st-ico.ok svg path { stroke-dasharray: 26; stroke-dashoffset: 0; animation: draw .5s .12s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes draw { from { stroke-dashoffset: 26; } }
/* steps fill in one after another as the order moves on */
.steps li i { transition: background-color .35s, border-color .35s, box-shadow .35s; }
.steps li.done i { animation: dotpop .4s cubic-bezier(.16, 1, .3, 1); }
.steps li.now i { animation: pulse 1.6s ease-in-out infinite; }
@keyframes dotpop { 40% { transform: scale(1.25); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px var(--soft); } }
/* the number and the login code arrive with weight */
.num:not([hidden]) { animation: rise .5s cubic-bezier(.16, 1, .3, 1) both; }
.num-code:not([hidden]) { animation: codein .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes codein { from { opacity: 0; transform: scale(.94); } }
.btn, .chip, .copy { transition: background-color .15s, transform .15s cubic-bezier(.16, 1, .3, 1); }
.btn:active:not(:disabled), .chip:active { transform: scale(.96); transition-duration: .08s; }
.follow:not([hidden]), .num-warn { animation: rise .45s cubic-bezier(.16, 1, .3, 1) both; }


/* UZ / RU switch (added by m/i18n.js) */
.hdr { display: flex; align-items: center; justify-content: space-between; }
.lang-btn { appearance: none; border: 1px solid var(--line); background: transparent; color: var(--ink); height: 34px; min-width: 40px; padding: 0 9px; border-radius: 10px; font: 700 .8rem/1 inherit; letter-spacing: .04em; cursor: pointer; }
.legal-links { max-width: 40rem; margin: -18px auto 0; padding: 0 16px calc(24px + env(safe-area-inset-bottom)); text-align: center; color: var(--ink-2); font-size: .85rem; }
.steps.is-off { display: none; }
