/* Qut Pay landing v2 — prototype. Tokens first, then sections in page order. */
:root {
  --paper: #F3EEE4;
  --paper-2: #EAE3D4;
  --card: #FFFDF8;
  --ink: #14201C;
  --ink-2: #4A5852;
  --ink-3: #8A938E;
  --line: rgba(20, 32, 28, .12);
  --brand: #0B6E5C;
  --brand-2: #0E8C74;
  --mint: #5BE3BD;
  --gold: #E3A53A;
  --wait: #B7791F;
  --bad: #C2412D;
  --night: #0A1412;
  --night-2: #13221F;
  --night-line: rgba(220, 240, 232, .12);
  --on-night: #EAF2EE;
  --on-night-2: #A4B5AE;
  --sans: "Onest", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", "SF Mono", ui-monospace, Consolas, monospace;
  --r: 18px;
  --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 10px 30px -12px rgba(20, 32, 28, .28), 0 2px 6px -2px rgba(20, 32, 28, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper);
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
.js body { background: transparent; }
html.js { background: var(--paper); }
#bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; display: block; }
a { color: inherit; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 0; letter-spacing: 0; }
.muted { color: var(--ink-3); }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.center { text-align: center; justify-content: center; }
em { font-style: normal; color: var(--ink-3); }
.dark em { color: var(--on-night-2); }

h1, h2, h3 { margin: 0; letter-spacing: -.03em; font-weight: 650; }
h1 { font-size: clamp(42px, 5.1vw, 78px); line-height: 1; letter-spacing: -.045em; }
h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; }
h3 { font-size: 22px; letter-spacing: -.02em; }
.sub { color: var(--ink-2); font-size: clamp(16px, 1.4vw, 19px); max-width: 560px; margin: 16px 0 0; }
.dark .sub { color: var(--on-night-2); }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin: 0 0 18px; }
.dark .eyebrow { color: var(--mint); }
.fine { font-size: 13.5px; color: var(--ink-3); margin: 18px 0 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s, background .25s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(11, 110, 92, .8), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-brand:hover { background: var(--brand-2); transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); background: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.7); }
.btn-mint { background: var(--mint); color: var(--night); box-shadow: 0 0 40px -6px rgba(91, 227, 189, .55); }
.btn-mint:hover { transform: translateY(-1px); box-shadow: 0 0 56px -4px rgba(91, 227, 189, .7); }
.btn-ghost-l { color: var(--on-night); box-shadow: inset 0 0 0 1px var(--night-line); }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 8px; }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s, box-shadow .3s, color .3s; }
.nav.scrolled { background: color-mix(in oklab, var(--paper) 72%, transparent); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.nav.on-dark { color: var(--on-night); }
.nav.on-dark.scrolled { background: color-mix(in oklab, var(--night) 70%, transparent); box-shadow: 0 1px 0 var(--night-line); }
.nav.on-dark .btn-ink { background: var(--on-night); color: var(--night); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.02em; text-decoration: none; color: inherit; }
.logo svg { color: var(--brand); }
.nav.on-dark .logo svg { color: var(--mint); }
.logo svg g { fill: var(--paper); }
.nav.on-dark .logo svg g { fill: var(--night); }
.nav-links { display: flex; gap: 24px; font-size: 15px; }
.nav-links a { text-decoration: none; opacity: .78; }
.nav-links a:hover { opacity: 1; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { display: flex; font: 600 12px var(--mono); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); padding: 3px; }
.nav.on-dark .lang { box-shadow: inset 0 0 0 1px var(--night-line); }
.lang a { text-decoration: none; padding: 5px 9px; border-radius: 999px; opacity: .65; }
.l-short { display: none; }
@media (max-width: 640px) { .l-short { display: inline; } }
.lang a[aria-current] { background: var(--ink); color: var(--paper); opacity: 1; }
.nav.on-dark .lang a[aria-current] { background: var(--on-night); color: var(--night); }

/* 1. hero */
.hero { padding: 132px 0 56px; position: relative; }
#heroField { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; min-height: calc(100svh - 240px); }
.meta { display: inline-flex; align-items: center; gap: 10px; font: 500 12.5px var(--mono); letter-spacing: .04em; color: var(--ink-2); padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(255,255,255,.5); box-shadow: inset 0 0 0 1px var(--line); margin: 0 0 26px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 0 rgba(14,140,116,.5); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(14,140,116,.45); } 80%, 100% { box-shadow: 0 0 0 10px rgba(14,140,116,0); } }
.lead { font-size: clamp(17px, 1.45vw, 20px); color: var(--ink-2); max-width: 560px; margin: 26px 0 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-stage { position: relative; height: 600px; perspective: 1200px; }
.paycard {
  position: absolute; left: 50%; top: 50%; width: 330px; transform: translate(-50%, -50%) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  background: var(--card); border-radius: 28px; padding: 22px 22px 18px; box-shadow: 0 40px 80px -30px rgba(20,32,28,.45), 0 0 0 1px rgba(20,32,28,.06);
  transition: transform .5s var(--ease);
}
.pc-head { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.pc-shop { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.pc-shop i { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--gold), #d9822b); }
.pc-id { color: var(--ink-3); font-size: 12px; }
.pc-amount { font-size: 40px; font-weight: 700; letter-spacing: -.035em; margin-top: 14px; }
.pc-sub { color: var(--ink-3); font-size: 14px; margin-top: 2px; }
.pc-qr { margin: 16px auto 0; width: 230px; height: 230px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); position: relative; overflow: hidden; }
.pc-qr canvas { width: 100%; height: 100%; display: block; }
.pc-status { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; margin-top: 14px; color: var(--wait); transition: color .3s; }
.pc-status .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pc-status.paid { color: var(--brand); }
.pc-hint { text-align: center; color: var(--ink-3); font-size: 12.5px; margin-top: 4px; }

.hcard {
  position: absolute; display: flex; align-items: center; gap: 12px; background: rgba(255,253,248,.92); backdrop-filter: blur(10px);
  border-radius: 16px; padding: 11px 16px 11px 12px; box-shadow: var(--shadow); font-size: 14px; white-space: nowrap;
  opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.hcard.on { opacity: 1; transform: none; }
.hcard b { font-weight: 600; display: block; }
.hcard small { color: var(--ink-3); font-size: 12px; display: block; }
.hcard .ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-2); font-size: 15px; flex: none; }
.hcard .ic.ok { background: var(--brand); color: #fff; }
.hcard .ic.tg { background: #2AABEE22; color: #1f8fcc; }
.hc1 { right: -34px; top: 46px; }
.hc2 { left: -44px; top: 206px; font-size: 12.5px; gap: 8px; }
.hc3 { right: -46px; bottom: 176px; }
.hc4 { left: -24px; bottom: 36px; }
.pc-status.paid + .pc-hint { visibility: hidden; }
.tag { font: 700 10.5px var(--mono); padding: 3px 6px; border-radius: 6px; background: var(--ink); color: var(--paper); letter-spacing: .04em; }
.ok-t { color: var(--brand-2); font-weight: 700; }
.dark .ok-t { color: var(--mint); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.facts > div { padding: 22px 24px 0 0; display: flex; flex-direction: column; gap: 6px; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts b { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.facts span { color: var(--ink-2); font-size: 14.5px; max-width: 330px; }

/* pinned scenes */
.pin { height: var(--len, 300vh); position: relative; }
.pin > .sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* 2. chaos */
.chaos-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-top: 104px; position: relative; z-index: 2; }
.swap { display: grid; }
.swap > span, .swap2 > span { grid-area: 1 / 1; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.swap2 { display: grid; }
.swap .sb, .swap2 .sb { opacity: 0; transform: translateY(16px); }
.ordered .swap .sa, .ordered .swap2 .sa { opacity: 0; transform: translateY(-16px); }
.ordered .swap .sb, .ordered .swap2 .sb { opacity: 1; transform: none; }
.counter { text-align: right; flex: none; }
.counter b { display: block; font-size: clamp(54px, 6vw, 84px); line-height: 1; font-weight: 600; letter-spacing: -.04em; transition: color .4s; }
.counter span { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.counter.hot b { color: var(--bad); }
.counter.done b { color: var(--brand); }
.board { position: absolute; left: 0; right: 0; bottom: 0; top: 0; }
.lanes { position: absolute; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lane-h { display: flex; justify-content: space-between; border-top: 2px solid var(--ink); padding-top: 8px; font: 700 12.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease); }
.ordered .lane-h { opacity: 1; transform: none; }
.cards { position: absolute; inset: 0; pointer-events: none; }
.ccard {
  position: absolute; left: 0; top: 0; width: 260px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow);
  padding: 11px 14px; font-size: 13.5px; will-change: transform; transform-origin: 50% 50%;
}
.ccard .raw, .ccard .clean { transition: opacity .35s; }
.ccard .clean { position: absolute; inset: 11px 14px; opacity: 0; }
.ccard.is-clean .raw { opacity: 0; }
.ccard.is-clean .clean { opacity: 1; }
.ccard .src { font: 500 11.5px var(--mono); color: var(--ink-3); display: flex; justify-content: space-between; gap: 8px; }
.ccard .txt { margin-top: 3px; font-weight: 500; line-height: 1.35; }
.ccard.alert { box-shadow: var(--shadow), inset 0 0 0 1px rgba(194, 65, 45, .35); }
.ccard.alert .src b { color: var(--bad); }
.clean .c-top { display: flex; justify-content: space-between; font-weight: 600; gap: 8px; }
.clean .c-bot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.st { display: inline-flex; align-items: center; gap: 5px; font: 600 11.5px var(--sans); padding: 3px 8px; border-radius: 999px; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st.paid { color: var(--brand); background: rgba(11, 110, 92, .1); }
.st.wait { color: var(--wait); background: rgba(183, 121, 31, .12); }
.st.ref { color: #5b5bd6; background: rgba(91, 91, 214, .1); }
.scribble { position: absolute; font: italic 500 22px/1 "Segoe Print", "Bradley Hand", cursive; color: var(--bad); margin: 0; opacity: 0; transition: opacity .4s; }
/* phones: fixed-height cards; once sorted a card shows just its title (one line) and the amount */
.board.compact .ccard { padding: 7px 9px; font-size: 11px; border-radius: 10px; height: 54px; overflow: hidden; }
.board.compact .ccard .src { font-size: 9.5px; white-space: nowrap; overflow: hidden; }
.board.compact .ccard .src b { display: none; }
.board.compact .ccard .txt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
.board.compact .ccard .clean { inset: 7px 9px; }
.board.compact .clean .c-top { flex-direction: column; gap: 2px; }
.board.compact .clean .c-top span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; color: var(--ink-2); }
.board.compact .clean .c-top .mono { font-size: 13px; font-weight: 700; }
.board.compact .clean .c-bot { display: none; }

/* 3. day */
.day-sticky { color: var(--ink); transition: color .6s; }
.day-sticky.night { color: var(--on-night); }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.day-grid { position: relative; z-index: 2; display: grid; grid-template-columns: .82fr 1.18fr; gap: 48px; padding-top: 100px; height: calc(100% - 96px); }
.day-copy h2 { font-size: clamp(36px, 4.4vw, 62px); }
.day-sticky.night em { color: rgba(234, 242, 238, .55); }
.day-sticky.night .sub { color: rgba(234, 242, 238, .7); }
.clock { font-size: clamp(76px, 9.5vw, 136px); font-weight: 300; letter-spacing: -.06em; line-height: .9; margin-top: clamp(16px, 4vh, 44px); font-variant-numeric: tabular-nums; }
.clock i { font-style: normal; opacity: .35; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .1; } }
.daylabel { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; margin: 8px 0 0; }
.event { margin-top: clamp(14px, 3vh, 30px); max-width: 430px; transition: opacity .35s, transform .45s var(--ease); }
.event.out { opacity: 0; transform: translateY(10px); }
.ev-meta { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; margin: 0; display: flex; align-items: center; gap: 8px; }
.rec { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); }
.event h3 { font-size: clamp(22px, 2.2vw, 30px); margin-top: 6px; }
.event p:last-child { margin: 6px 0 0; opacity: .78; font-size: 15.5px; }

.app { align-self: center; background: rgba(255, 253, 248, .9); backdrop-filter: blur(18px) saturate(1.2); border-radius: 22px; box-shadow: 0 50px 100px -40px rgba(10, 20, 18, .55), 0 0 0 1px rgba(255,255,255,.5) inset; color: var(--ink); overflow: hidden; }
.app-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--paper-2); }
.app-title { font-size: 12px; color: var(--ink-3); }
.chip { margin-left: auto; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.app-body { position: relative; height: clamp(300px, 46vh, 400px); }
.panel { position: absolute; inset: 0; padding: 22px 24px; opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease), transform .55s var(--ease); pointer-events: none; }
.panel.on { opacity: 1; transform: none; pointer-events: auto; }
.p-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 16px; }
.p-h .muted { font-size: 12px; }
.rows { display: flex; flex-direction: column; gap: 6px; }
.row { display: grid; grid-template-columns: 58px 1fr auto auto; gap: 14px; align-items: center; padding: 11px 12px; border-radius: 12px; font-size: 14.5px; background: rgba(20, 32, 28, .03); }
.row.hl { background: rgba(11, 110, 92, .08); box-shadow: inset 0 0 0 1px rgba(11,110,92,.25); }
.log { margin-top: 12px; font-size: 12.5px; padding: 10px 12px; border-radius: 10px; background: rgba(20,32,28,.04); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.form { display: grid; gap: 8px; }
.form label { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: rgba(20, 32, 28, .04); font-size: 14.5px; }
.form label span { color: var(--ink-3); }
.steps-mini { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; font-size: 12.5px; }
.steps-mini span { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.steps-mini span::before { content: "✓"; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; background: rgba(11, 110, 92, .12); color: var(--brand); }
.steps-mini .strong { color: var(--brand); font-weight: 700; }
.kv { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: rgba(20, 32, 28, .04); font-size: 14.5px; }
.kv span { color: var(--ink-3); }
.refund { margin-top: 12px; padding: 16px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.r-top { display: flex; justify-content: space-between; font-size: 15px; }
.r-top b { font-size: 22px; }
.r-bar { height: 8px; border-radius: 99px; background: var(--paper-2); margin: 12px 0 8px; overflow: hidden; }
.r-bar i { display: block; height: 100%; background: #5b5bd6; border-radius: 99px; }
.r-foot { display: flex; justify-content: space-between; font-size: 11.5px; }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 150px; padding: 0 2px; border-bottom: 1px solid var(--line); }
.bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: rgba(11, 110, 92, .22); transform-origin: bottom; transition: transform .6s var(--ease); }
.bars i.peak { background: var(--brand); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.kpis div { display: flex; flex-direction: column; padding: 12px; border-radius: 12px; background: rgba(20,32,28,.04); }
.kpis b { font-size: 22px; }
.kpis span { font-size: 12px; color: var(--ink-3); }
.attempts { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.attempts div { display: grid; grid-template-columns: 82px 1fr auto; gap: 10px; padding: 11px 12px; border-radius: 10px; background: rgba(20, 32, 28, .04); }
.attempts .bad { color: var(--bad); }
.note { font-size: 13.5px; color: var(--ink-2); margin: 14px 0 0; }
.tg { max-width: 360px; }
.tg-h { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 10px; }
.tg-h .muted { margin-left: auto; font-size: 12px; }
.ava { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.bubble { display: flex; flex-direction: column; gap: 5px; background: #fff; border-radius: 16px 16px 16px 4px; padding: 14px 16px; box-shadow: var(--shadow); font-size: 14.5px; }
.bubble small { color: var(--ink-3); margin-top: 4px; }

.timeline { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 3; height: 54px; }
.tl-line { position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: currentColor; opacity: .18; }
.tl-line i { position: absolute; left: 0; top: 0; bottom: 0; background: currentColor; opacity: 1; width: 0; }
.tl-ticks { position: absolute; left: 0; right: 0; top: 34px; font-size: 10.5px; opacity: .55; }
.tl-ticks span { position: absolute; transform: translateX(-50%); }
.tl-marks button { position: absolute; top: 15px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; border: 2px solid currentColor; background: transparent; color: inherit; cursor: pointer; padding: 0; opacity: .6; transition: background .3s, opacity .3s, transform .3s; }
.tl-marks button.done { background: var(--bad); border-color: var(--bad); opacity: 1; }
.tl-marks button:hover { transform: scale(1.25); }
.tl-needle { position: absolute; top: -12px; transform: translateX(-50%); font-size: 11px; font-weight: 700; }
.tl-needle span { background: var(--bad); color: #fff; padding: 3px 7px; border-radius: 6px; }
.tl-needle::after { content: ""; position: absolute; left: 50%; top: 18px; width: 2px; height: 16px; background: var(--bad); margin-left: -1px; }

/* sections */
.section { padding: clamp(96px, 13vw, 160px) 0; position: relative; }
.dark { color: var(--on-night); background: var(--night); }
.gl .dark { background: transparent; }

/* 4. methods */
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 56px; align-items: center; }
.m-tabs { display: flex; flex-direction: column; gap: 6px; }
.m-tabs button { text-align: left; font: inherit; color: inherit; background: transparent; border: 0; border-radius: 16px; padding: 18px 20px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; transition: background .3s, box-shadow .3s; position: relative; }
.m-tabs button b { font-size: 19px; letter-spacing: -.01em; }
.m-tabs button span { color: var(--ink-2); font-size: 15px; }
.m-tabs button[aria-selected="true"] { background: var(--card); box-shadow: var(--shadow); }
.m-tabs button[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--brand); }
/* the line under the open tab: fills while the method is shown, then the next one opens */
.m-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 9px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2) 55%, var(--mint)) no-repeat 0 0 / calc(var(--p, 0) * 100%) 100%, rgba(11, 110, 92, .1); }
@media (prefers-reduced-motion: reduce) { .m-tabs button[aria-selected="true"]::after { display: none; } }
.m-view { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.phone { width: 280px; height: 560px; border-radius: 46px; background: #10161a; padding: 12px; box-shadow: 0 40px 80px -30px rgba(20,32,28,.5), inset 0 0 0 2px #2a3236; position: relative; }
.ph-notch { position: absolute; top: 20px; left: 50%; width: 90px; height: 26px; margin-left: -45px; border-radius: 20px; background: #10161a; z-index: 2; }
.ph-screen { height: 100%; border-radius: 36px; background: #f7f7f5; overflow: hidden; position: relative; }
.scr { position: absolute; inset: 0; padding: 62px 18px 18px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; animation: scrIn .5s var(--ease); }
@keyframes scrIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.scr .s-top { font-weight: 700; font-size: 15px; }
.scr .s-card { background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 6px 18px -10px rgba(0,0,0,.25); }
.scr .s-amt { font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.scr .s-btn { margin-top: auto; height: 46px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; }
.scr .s-btn.brand { background: var(--brand); }
.scr .s-qr { width: 170px; height: 170px; margin: 6px auto 0; border-radius: 12px; background: #fff; display: grid; grid-template-columns: repeat(13, 1fr); padding: 10px; gap: 2px; box-shadow: inset 0 0 0 1px #e6e6e6; }
.scr .s-qr i { border-radius: 2px; background: var(--ink); }
.scr .s-qr i.o { background: transparent; }
.scr .push { background: rgba(255,255,255,.95); border-radius: 18px; padding: 12px 14px; box-shadow: 0 14px 30px -12px rgba(0,0,0,.35); animation: pushIn .7s .3s both var(--ease); }
@keyframes pushIn { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: none; } }
.scr .muted { font-size: 12px; }
.m-caption { color: var(--ink-2); font-size: 14.5px; text-align: center; max-width: 340px; min-height: 44px; }

/* 5. dev */
.dev-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.dev-steps { list-style: none; padding: 0; margin: 36px 0 0; counter-reset: s; display: flex; flex-direction: column; gap: 18px; }
.dev-steps li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; gap: 2px 14px; }
.dev-steps li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--mono); color: var(--night); background: var(--mint); }
.dev-steps b { font-size: 17px; }
.dev-steps span { color: var(--on-night-2); font-size: 15px; }
code { font-family: var(--mono); font-size: .88em; padding: 1px 6px; border-radius: 6px; background: rgba(91, 227, 189, .1); color: var(--mint); }
.dev-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; font-size: 13.5px; }
.dev-links a { color: var(--mint); text-decoration: none; }
.term { background: #0d1a17; border-radius: 20px; box-shadow: 0 0 0 1px var(--night-line), 0 50px 100px -40px rgba(0,0,0,.8), 0 0 120px -40px rgba(91,227,189,.25); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 16px; padding: 12px 14px; border-bottom: 1px solid var(--night-line); }
.term .dots i { background: #22312d; }
.term-tabs { display: flex; gap: 4px; }
.term-tabs button { font: 600 12.5px var(--mono); color: var(--on-night-2); background: transparent; border: 0; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.term-tabs button[aria-selected="true"] { background: rgba(91, 227, 189, .12); color: var(--mint); }
.term pre { margin: 0; font: 13px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; }
.term-code { padding: 18px 20px; min-height: 236px; color: #d6e4de; }
.term-code::after { content: "▍"; color: var(--mint); animation: blink 1s steps(2) infinite; }
.term-code.done::after { content: ""; }
.term-out { border-top: 1px solid var(--night-line); padding: 14px 20px 20px; opacity: 0; transition: opacity .5s; }
.term-out.on { opacity: 1; }
.term-out .label { font-size: 11.5px; color: var(--mint); margin: 0 0 6px; letter-spacing: .04em; }
.term-out .label.wh { margin-top: 14px; color: var(--gold); }
.term-out pre { color: #b8cbc3; font-size: 12.5px; }
.k { color: #7fd8ff; } .s { color: #ffd38a; } .n { color: #c3a6ff; } .c { color: #5f7a72; } .f { color: var(--mint); }

/* 6. integrations */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--r); background: rgba(255, 253, 248, .66); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: transform .35s var(--ease), background .3s, box-shadow .3s; }
.tile:hover { transform: translateY(-3px); background: var(--card); box-shadow: var(--shadow); }
.t-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 700 13px var(--mono); background: var(--ink); color: var(--paper); margin-bottom: 10px; }
.tile b { font-size: 17px; }
.tile span:not(.t-ic) { color: var(--ink-2); font-size: 14px; }
.tile i { position: absolute; top: 18px; right: 18px; font: 700 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; font-style: normal; }
.tile i.now { color: var(--brand); background: rgba(11, 110, 92, .1); }
.tile i.beta { color: var(--wait); background: rgba(183, 121, 31, .12); }

.tiles.plain .tile:hover { transform: none; background: rgba(255, 253, 248, .66); box-shadow: inset 0 0 0 1px var(--line); }
#more { padding-top: 0; }
.pr-links a { color: var(--brand); }

/* 7. trust */
.trust-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }
.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.trust li { padding: 24px 22px 24px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.trust li:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
.trust b { font-size: 17px; }
.trust span { color: var(--ink-2); font-size: 14.5px; }
.trust a { color: var(--brand); }

/* 8. pricing */
.calc { margin-top: 44px; padding: 22px 24px; border-radius: var(--r); background: rgba(255,253,248,.6); box-shadow: inset 0 0 0 1px var(--line); }
.calc label { font-weight: 600; }
.calc-row { display: flex; align-items: center; gap: 24px; margin-top: 12px; }
.calc input { flex: 1; accent-color: var(--brand); height: 28px; }
.calc output { font-size: 18px; font-weight: 600; min-width: 190px; text-align: right; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.plan { padding: 24px; border-radius: var(--r); background: rgba(255, 253, 248, .66); box-shadow: inset 0 0 0 1px var(--line); transition: transform .4s var(--ease), box-shadow .4s, background .4s; }
.plan h3 { font-size: 19px; }
.price { font-size: 30px; font-weight: 600; letter-spacing: -.03em; margin-top: 12px; }
.price small { font-size: 13px; color: var(--ink-3); font-weight: 400; margin-left: 4px; }
.lim { font-size: 12.5px; color: var(--brand); margin: 6px 0 12px; }
.plan p:last-child { color: var(--ink-2); font-size: 14.5px; margin: 0; }
.plan.fit { background: var(--card); box-shadow: 0 0 0 2px var(--brand), var(--shadow); transform: translateY(-6px); }
.plan.fit h3::after { content: attr(data-fit); font: 700 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--brand); padding: 3px 7px; border-radius: 999px; margin-left: 10px; vertical-align: 3px; }

/* 9. final + footer */
.final { padding-bottom: 80px; }
.final h2 { font-size: clamp(42px, 6vw, 88px); }
.final .sub { margin-inline: auto; }
.final .cta-row { justify-content: center; }
.foot { padding: 40px 0 28px; }
.foot-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 40px; border-top: 1px solid var(--night-line); font-size: 14.5px; }
.foot-links div { display: flex; flex-direction: column; gap: 9px; }
.foot-links b { font-size: 12px; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-2); font-weight: 600; margin-bottom: 4px; }
.foot-links a { text-decoration: none; opacity: .85; }
.foot-links a:hover { opacity: 1; color: var(--mint); }
.foot .muted { color: var(--on-night-2); }
.wordmark { height: clamp(96px, 24vw, 340px); margin: 40px 0 10px; }
.wordmark canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.foot-note { display: flex; justify-content: space-between; gap: 24px; font-size: 12.5px; color: var(--on-night-2); flex-wrap: wrap; }

/* no WebGL fallback */
.no-gl body, html:not(.js) body { background: var(--paper); }
.no-gl .dark, html:not(.js) .dark { background: var(--night); }

/* responsive */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-grid, .dev-grid, .trust-grid, .methods { grid-template-columns: 1fr; }
  .hero-stage { height: 560px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .day-grid { grid-template-columns: 1fr; gap: 14px; padding-top: 84px; height: calc(100% - 80px); align-content: start; }
  .day-copy .sub { display: none; }
  .clock { font-size: 64px; margin-top: 8px; }
  .day-copy h2 { font-size: 30px; }
  .event { margin-top: 8px; }
  .event p:last-child { font-size: 14px; }
  .app-body { height: 300px; }
  .panel { padding: 16px; }
  .row { grid-template-columns: 44px 1fr auto; font-size: 13px; padding: 9px 10px; gap: 8px; }
  .row .st { display: none; }
  .timeline { bottom: 14px; }
  .tl-ticks span:nth-child(even) { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .nav-in { gap: 12px; }
  .nav-right { gap: 8px; }
  .lang a { padding: 5px 6px; }
  .l-long { display: none; }
  .hero { padding-top: 104px; }
  .hero-stage { height: 520px; margin-inline: -8px; }
  .paycard { width: 290px; padding: 18px; }
  .pc-qr { width: 200px; height: 200px; }
  .pc-amount { font-size: 34px; }
  .hc1 { right: 0; top: 18px; } .hc2 { left: 0; top: 150px; } .hc3 { right: 0; bottom: 96px; } .hc4 { left: 0; bottom: 20px; }
  .hcard { font-size: 12.5px; padding: 8px 12px 8px 9px; }
  .facts { grid-template-columns: 1fr; }
  .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
  .chaos-head { flex-direction: column; padding-top: 84px; gap: 6px; }
  .chaos-head h2 { font-size: 30px; }
  .chaos-head .sub { font-size: 14px; margin-top: 8px; }
  .chaos-head .swap2 .sb { display: none; }
  .ordered .chaos-head .swap2 { display: none; }
  .counter { text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .counter b { font-size: 34px; }
  .tiles, .plans, .trust, .foot-links { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr; }
  .trust li:nth-child(even) { padding-left: 0; border-left: 0; }
  .calc-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .calc output { text-align: left; }
  .phone { transform: scale(.86); margin: -40px 0; }
  .kpis b { font-size: 17px; }
  .app-title { display: none; }
}

/* reduced motion: no pinning, everything shown in its final state */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .pin { height: auto; }
  .pin > .sticky { position: relative; height: auto; min-height: 100vh; }
  #chaos .sticky { height: 100vh; }
  .day-sticky { min-height: 100vh; padding-bottom: 100px; }
}

/* footer: requisites and the Product Hunt badge */
.foot-req { margin-top: 14px; align-items: center; }
.foot-req .ph img { display: block; width: 250px; height: 54px; }
