/* NowPay marketing site. Monochrome like the app: black, white and a neutral gray ramp. */
:root {
  --bg: #ffffff;
  --surface: #f4f4f5;
  --surface-strong: #e4e4e7;
  --border: #e4e4e7;
  --text: #09090b;
  --muted: #71717a;
  --faint: #a1a1aa;
  --primary: #09090b;
  --on-primary: #ffffff;
  --phone: #09090b;
  --radius: 24px;
  --wordmark: #3c3f45; /* lettering colour from the light logo */
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #121214;
    --surface-strong: #1f1f23;
    --border: #27272a;
    --text: #fafafa;
    --muted: #a1a1aa;
    --faint: #52525b;
    --primary: #fafafa;
    --on-primary: #09090b;
    --phone: #27272a;
    --wordmark: #c8c8cc; /* from the dark logo */
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; }
::selection { background: rgba(113, 113, 122, 0.28); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: opacity .15s, background .15s;
}
.btn:hover { opacity: .85; }
.btn-dark { background: var(--primary); color: var(--on-primary); }
.btn-ghost { background: var(--surface); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; white-space: nowrap; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 4px; color: var(--wordmark); }
.logo-mark { width: 34px; height: 34px; display: block; }
.logo .wordmark { height: 24px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
/* Language menu: a pill button that opens a card of links. */
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; background: var(--surface); color: var(--muted); cursor: pointer; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: var(--surface-strong); }
.lang summary:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.lang-current { color: var(--text); font-size: 14px; font-weight: 500; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang summary svg:last-child { transition: transform .15s; }
.lang[open] summary svg:last-child { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 230px; max-height: min(85vh, 600px); overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--bg); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .3); }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 15px; color: var(--text); }
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--surface); outline: none; }
.lang-menu a[aria-current] { font-weight: 600; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 56px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--surface); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 700; letter-spacing: -0.035em; }
.lead { font-size: 19px; color: var(--muted); margin-top: 22px; max-width: 560px; }
.downloads { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.badge { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 16px; border-radius: 14px; background: var(--primary); color: var(--on-primary); transition: opacity .15s; }
a.badge:hover { opacity: .85; }
.badge-text { display: flex; flex-direction: column; line-height: 1.1; }
.badge-text small { font-size: 11px; opacity: .75; }
.badge-text strong { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.badge-soon { background: var(--surface); color: var(--text); cursor: default; }

/* Phone mockup */
.hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
/* Soft backdrop so the phone anchors the right half instead of floating in white space. */
.hero-art::before { content: ''; position: absolute; inset: 0 2% 0 2%; border-radius: 48px; background: radial-gradient(120% 90% at 70% 20%, var(--surface-strong), var(--surface) 55%, transparent 100%); }
.hero-art > * { position: relative; }
.phone { position: relative; width: 300px; border-radius: 46px; padding: 10px; background: var(--phone); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .35); }
.phone-screen { position: relative; background: var(--bg); border-radius: 37px; padding: 44px 18px 22px; overflow: hidden; }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; border-radius: 999px; background: var(--phone); }
.ph-head { display: flex; justify-content: space-between; align-items: center; }
.ph-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.ph-eye { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--muted); }
.ph-label { margin-top: 18px; font-size: 12px; color: var(--muted); font-weight: 500; }
.ph-total { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ph-actions { display: flex; justify-content: space-between; margin: 16px 6px 8px; }
.ph-actions div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; width: 33%; text-align: center; }
.ph-actions span { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.ph-list { margin-top: 6px; }
.ph-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.ph-row-text { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.ph-row-text b { font-size: 13px; font-weight: 600; }
.ph-row-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-row-text small, .toast small { font-size: 11px; color: var(--muted); }
.ph-amt { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.toast { position: absolute; left: -54px; bottom: 74px; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--bg); border: 1px solid var(--border); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .3); }
.toast div { display: flex; flex-direction: column; line-height: 1.25; }
.toast b { font-size: 13px; }
.toast-2 { left: auto; right: -84px; top: 22px; bottom: auto; }
.toast-check { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; margin-left: 4px; }

/* Flags and coins */
.flag { display: inline-block; border-radius: 50%; overflow: hidden; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); vertical-align: middle; }
.flag svg { display: block; width: 100%; height: 100%; }
.coin { display: inline-grid; place-items: center; border-radius: 50%; flex: none; color: #fff; font-weight: 700; }
.coin-usdt { background: #26a17b; }
.coin-usdc { background: #2775ca; }

/* Services: one card per group, side by side, filling the width. */
.rails { display: grid; grid-template-columns: 1.15fr 1.3fr 0.8fr; gap: 16px; align-items: stretch; padding-top: 8px; padding-bottom: 8px; }
.rail { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); }
.rail[hidden], .svc[hidden] { display: none; }
.rail-label { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.svcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.svc { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px 8px 10px; border-radius: 16px; background: var(--surface); min-width: 0; }
.svc.is-soon { opacity: .55; }
.mark { width: 32px; height: 32px; flex: none; display: grid; place-items: center; }
.svc-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.25; min-width: 0; }
.svc-text b { font-size: 14px; font-weight: 600; }
.svc-text small { font-size: 12px; color: var(--muted); }
.flag-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.mark-letter { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-strong); color: var(--muted); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.mark-visa { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; }

/* Sections */
.section { padding-top: 96px; }
.section h2, .cta h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; max-width: 720px; letter-spacing: -0.03em; }
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 28px; border-radius: var(--radius); background: var(--surface); }
.step-n { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.step h3, .feature h3, .trust-item h3 { font-size: 19px; font-weight: 600; margin-top: 22px; }
.step p, .feature p, .trust-item p { color: var(--muted); margin-top: 8px; font-size: 15px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 44px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--bg); padding: 32px; }
.feature-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--surface); display: grid; place-items: center; }

.trust { background: var(--primary); color: var(--on-primary); border-radius: 32px; padding: 64px 56px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
.trust-item p { color: color-mix(in srgb, var(--on-primary) 65%, transparent); }

.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.qas { border-top: 1px solid var(--border); }
.qa { border-bottom: 1px solid var(--border); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 17px; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { flex: none; color: var(--muted); transition: transform .2s; }
.qa[open] summary svg { transform: rotate(180deg); }
.qa p { color: var(--muted); padding: 0 40px 22px 0; }

.cta { text-align: center; padding-top: 112px; padding-bottom: 112px; display: flex; flex-direction: column; align-items: center; }
.cta .lead { margin-left: auto; margin-right: auto; }
.cta .downloads { justify-content: center; }

.footer { border-top: 1px solid var(--border); padding: 40px 0 56px; }
.footer-inner { display: flex; flex-direction: column; gap: 14px; }
.faq-more { margin-top: 24px; color: var(--muted); }
.faq-more a, .footer-contact a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact { font-size: 15px; color: var(--muted); }
.legal { font-size: 13px; color: var(--muted); max-width: 760px; }

/* Tablet */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 64px; }
  .steps, .features, .trust-grid { grid-template-columns: 1fr 1fr; }
  .faq { grid-template-columns: 1fr; gap: 28px; }
  .toast { left: -24px; }
  .toast-2 { left: auto; right: -16px; }
  .rails { grid-template-columns: 1fr 1fr; }
  .hero-art { min-height: 0; padding: 32px 0; }
}
/* Phone */
@media (max-width: 620px) {
  /* Side padding only: sections keep their own top/bottom spacing. */
  .wrap { padding-left: 16px; padding-right: 16px; }
  .nav-inner { gap: 8px; height: 60px; }
  .nav-right { gap: 8px; }
  .logo-mark { width: 30px; height: 30px; }
  .logo .wordmark { height: 20px; }
  /* Header: globe + arrow only (the menu itself lists the names). */
  .lang summary { padding: 0 10px; gap: 4px; }
  .lang-current { display: none; }
  .btn-sm { padding: 0 14px; }
  .lang-menu { right: -8px; }
  .hero { padding-top: 32px; padding-bottom: 40px; gap: 48px; }
  .lead { font-size: 17px; }
  .downloads { flex-direction: column; align-items: stretch; }
  .badge, .downloads .btn { justify-content: center; }
  .steps, .features, .trust-grid { grid-template-columns: 1fr; }
  .section { padding-top: 72px; }
  .trust { padding: 40px 24px; border-radius: 24px; }
  .phone { width: 270px; }
  .toast { left: -10px; bottom: 60px; }
  .toast-2 { left: auto; right: -6px; top: -14px; bottom: auto; }
  .rails { grid-template-columns: 1fr; }
  .faq-more { margin-top: 20px; }
  .cta { padding-top: 72px; padding-bottom: 72px; }
  .cta .downloads { align-self: stretch; }
}

/* ---------- Motion (site.js adds .motion unless the visitor prefers reduced motion) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(70px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: translateY(14px) scale(.9); } 100% { opacity: 1; transform: none; } }
@keyframes fade-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes fade-in { to { opacity: 1; transform: none; } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--text) 22%, transparent); } 100% { box-shadow: 0 0 0 22px transparent; } }
@keyframes scan { from { top: 10%; } to { top: 88%; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(-2deg); } }
@keyframes shine { 0% { transform: translateX(-120%) skewX(-18deg); } 60%, 100% { transform: translateX(220%) skewX(-18deg); } }
@keyframes tick { to { transform: translateY(-50%); } }
@keyframes type { from { max-width: 0; } to { max-width: 16ch; } }
@keyframes travel { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(110px); opacity: 0; } }
@keyframes blink { 0%, 55% { opacity: 0; transform: scale(.9); } 65%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.motion [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.motion [data-reveal].in { opacity: 1; transform: none; }

/* Hero: the phone rises in, the two payments pop in, and everything drifts apart as you scroll. */
.motion .hero-phone { animation: rise 1s cubic-bezier(.2, .8, .2, 1) both; }
.motion .hero-art .toast { animation: pop .6s cubic-bezier(.2, .8, .2, 1) 1.1s both; }
.motion .hero-art .toast-2 { animation-delay: 1.6s; }
.hero-art .hero-phone { translate: 0 calc(var(--p, 0) * -60px); rotate: calc(var(--p, 0) * -3deg); }
.hero-art .toast { translate: 0 calc(var(--p, 0) * -150px); }
.hero-art .toast-2 { translate: 0 calc(var(--p, 0) * 60px); }

/* ---------- Big statements ---------- */
.statements { padding: 112px 0 24px; overflow: hidden; }
.big { font-size: clamp(40px, 7.4vw, 112px); font-weight: 800; letter-spacing: -0.05em; line-height: 1.02; text-wrap: balance; }
.big span { display: inline-block; translate: var(--x, 0) 0; transition: translate .1s linear; }
.big:nth-child(2) { text-align: right; color: var(--faint); }
.big:nth-child(3) { text-align: center; }
.big + .big { margin-top: 10px; }

/* ---------- Story: sticky phone that follows the step being read ---------- */
.story { padding-top: 96px; }
.story h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -0.03em; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.story-steps { list-style: none; padding: 0; margin: 0; }
/* Room after the last step, so the sticky phone stays centred while step 3 is read. */
.story-steps::after { content: ""; display: block; height: 22vh; }
.story-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; max-width: 470px; }
.motion .story-step { opacity: .3; transition: opacity .5s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.motion .story-step.in { opacity: .3; }
.motion .story-step.active { opacity: 1; }
.story-step h3 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -0.03em; margin-top: 20px; }
.story-step p { font-size: 18px; color: var(--muted); margin-top: 12px; }
.story-stage { position: sticky; top: calc(50vh - 300px); height: 600px; display: flex; justify-content: center; align-items: center; align-self: start; }
.story-stage::before { content: ''; position: absolute; inset: 20px 0; border-radius: 48px; background: radial-gradient(90% 70% at 50% 40%, var(--surface-strong), var(--surface) 60%, transparent 100%); }
.story-phone { width: 300px; }
.story-phone .phone-screen { height: 560px; }
.story-mini { display: none; }

.scr { position: absolute; inset: 46px 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.story-phone .scr { opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.story-phone[data-active="1"] .scr-1, .story-phone[data-active="2"] .scr-2, .story-phone[data-active="3"] .scr-3 { opacity: 1; transform: none; }
.scr-top { display: flex; justify-content: space-between; align-items: center; min-height: 34px; }
.scr-top b { font-size: 16px; }
.scr-center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-top: 26px; }
.pulse-ring { width: 84px; height: 84px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; margin-bottom: 10px; animation: ring 1.8s ease-out infinite; }
.scr-title { font-size: 21px; letter-spacing: -0.02em; }
.scr-center small, .merchant small, .incoming small { color: var(--muted); font-size: 12px; }
.scr-checks { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.scr-checks span { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); font-size: 13px; font-weight: 500; }
.scr-checks svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--primary); color: var(--on-primary); flex: none; }
.nets { display: flex; flex-wrap: nowrap; gap: 4px; }
.nets span { font-size: 11px; font-weight: 600; padding: 5px 8px; white-space: nowrap; border-radius: 999px; background: var(--surface); color: var(--muted); }
.nets span.on { background: var(--primary); color: var(--on-primary); }
.scr-qr { align-self: center; padding: 14px; border-radius: 20px; border: 1px solid var(--border); color: var(--text); background: var(--bg); }
.qr-art { display: block; }
.addr { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--surface); font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; color: var(--muted); }
.addr-text { overflow: hidden; white-space: nowrap; }
.incoming { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .35); }
.incoming div { display: flex; flex-direction: column; line-height: 1.25; flex: 1; }
.incoming b { font-size: 13px; }
.incoming-amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.motion .incoming { opacity: 0; transform: translateY(12px); }
.motion .story-phone[data-active="2"] .incoming, .motion .story-step.in .incoming { animation: fade-in .6s .7s cubic-bezier(.2, .8, .2, 1) forwards; }
.merchant { display: flex; align-items: center; gap: 10px; }
.merchant > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.merchant b { font-size: 14px; }
.pay-amount { text-align: center; font-size: 34px; font-weight: 700; letter-spacing: -0.03em; margin: 30px 0 10px; font-variant-numeric: tabular-nums; }
.pay-lines div { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.pay-lines span { color: var(--muted); }
.locked { display: inline-flex; align-items: center; gap: 5px; }
.pay-btn { position: relative; margin-top: auto; height: 52px; border-radius: 999px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 600; font-size: 15px; }
.pay-btn > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 8px; }
.pay-done { opacity: 0; transform: translateY(8px); }
.motion .story-phone[data-active="3"] .pay-label, .motion .story-step.in .pay-label { animation: fade-out .3s 1.3s forwards; }
.motion .story-phone[data-active="3"] .pay-done, .motion .story-step.in .pay-done { animation: fade-in .45s 1.55s cubic-bezier(.2, .8, .2, 1) forwards; }
html:not(.motion) .pay-label { display: none; }
html:not(.motion) .pay-done { opacity: 1; transform: none; }

/* ---------- Feature tiles with small live screens ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.tile { display: flex; flex-direction: column; border-radius: 28px; background: var(--surface); overflow: hidden; }
.motion .tile:nth-child(3n + 2) { transition-delay: .08s; }
.motion .tile:nth-child(3n) { transition-delay: .16s; }
.tile-art { position: relative; height: 240px; display: flex; align-items: center; justify-content: center; gap: 28px; overflow: hidden; }
.tile-copy { padding: 0 28px 28px; }
.tile h3 { font-size: 19px; font-weight: 600; }
.tile p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.t-qr { grid-column: span 2; }
.t-price { grid-column: span 3; flex-direction: row; align-items: center; }
.t-price .tile-art { flex: 1.3; }
.t-price .tile-copy { flex: 1; padding: 28px 40px 28px 0; }

.scanner { position: relative; width: 168px; height: 168px; display: grid; place-items: center; color: var(--text); }
.scanner .qr-art { width: 128px; height: 128px; }
.corner { position: absolute; width: 26px; height: 26px; border: 3px solid var(--text); }
.c1 { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.c2 { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.c3 { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.c4 { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.laser { position: absolute; left: 14px; right: 14px; top: 50%; height: 2px; border-radius: 2px; background: var(--text); box-shadow: 0 0 14px 2px color-mix(in srgb, var(--text) 35%, transparent); }
.motion .laser { animation: scan 1.6s ease-in-out infinite alternate; }
.price-pop { position: relative; padding: 14px 18px; border-radius: 18px; background: var(--bg); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 4px; }
.pp-row { display: flex; align-items: center; gap: 10px; font-size: 20px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price-pop small { color: var(--muted); font-size: 12px; }
.pp-ok { position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; }
.motion .tile.in .price-pop { animation: pop .6s .5s cubic-bezier(.2, .8, .2, 1) both, bob 4s 1.2s ease-in-out infinite; }

.vcard { position: relative; width: 250px; height: 158px; border-radius: 18px; padding: 18px; color: #fafafa; background: linear-gradient(135deg, #09090b, #3f3f46); box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .55); overflow: hidden; transform: rotate(-4deg); }
.motion .vcard { animation: float 5s ease-in-out infinite; }
@media (prefers-color-scheme: dark) { .vcard { background: linear-gradient(135deg, #3f3f46, #71717a); } }
.vcard-shine { position: absolute; top: -20%; bottom: -20%; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent); transform: translateX(-120%) skewX(-18deg); }
.motion .vcard-shine { animation: shine 3.6s ease-in-out infinite; }
.vcard-mark { display: block; filter: grayscale(1) brightness(1.6); }
.vcard-chip { position: absolute; left: 18px; top: 66px; width: 34px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #d4d4d8, #71717a); }
.vcard-num { position: absolute; left: 18px; bottom: 16px; font-size: 14px; letter-spacing: .12em; font-variant-numeric: tabular-nums; opacity: .9; }
.vcard-visa { position: absolute; right: 18px; bottom: 12px; font-size: 22px; font-weight: 800; font-style: italic; letter-spacing: -0.02em; }

.ticker { height: 200px; width: 260px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.motion .ticker-track { animation: tick 12s linear infinite; }
.tk-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 8px; border-radius: 14px; background: var(--bg); font-size: 13px; }
.tk-row > .flag, .tk-row > .coin { flex: none; }
.tk-code { width: 44px; }
.tk-amt { margin-left: auto; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.wallet-ui { display: flex; flex-direction: column; gap: 14px; width: min(300px, 88%); }
.wallet-ui .addr { background: var(--bg); position: relative; }
.motion .tile.in .typing .addr-text { animation: type 1.4s steps(16) .4s both; }
.copied { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; flex: none; }
.motion .copied { opacity: 0; }
.motion .tile.in .copied { animation: fade-in .3s 1.9s forwards; }

.flow { display: flex; align-items: center; gap: 0; }
.flow-node { width: 58px; height: 58px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .35); }
.flow-node.dark { background: var(--primary); color: var(--on-primary); }
.flow-line { position: relative; width: 120px; height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, var(--faint) 0 6px, transparent 6px 12px); }
.flow-line i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--text); opacity: 0; }
.motion .flow-line i { animation: travel 2.4s ease-in-out infinite; }
.motion .flow-line i:nth-child(2) { animation-delay: .8s; }
.motion .flow-line i:nth-child(3) { animation-delay: 1.6s; }
.flow-sent { position: absolute; bottom: 30px; left: 50%; translate: -50% 0; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--bg); font-size: 12px; font-weight: 600; }
.flow-sent svg { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: var(--primary); color: var(--on-primary); }
.motion .flow-sent { animation: blink 2.4s ease-in-out infinite; }

.tiers { width: min(440px, 86%); }
.tier-bar { height: 8px; border-radius: 999px; background: var(--surface-strong); overflow: hidden; }
.tier-fill { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--primary); }
.motion .tier-fill { width: 8%; transition: width 2s cubic-bezier(.4, 0, .2, 1) .3s; }
.motion .tile.in .tier-fill { width: 100%; }
.tier-names { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; font-weight: 600; }
.tier-names span { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tier-names span:first-child { align-items: flex-start; }
.tier-names span:last-child { align-items: flex-end; }
.tier-names i { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); }
.motion .tier-names i { background: var(--surface-strong); transition: background .3s calc(.4s + var(--i) * .5s); }
.motion .tile.in .tier-names i { background: var(--primary); }
.tier-fee { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.fee-arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bg); color: var(--text); }
.fee-arrow svg { transform: scaleY(-1); }

/* ---------- Price receipt ---------- */
.receipt-section { margin-top: 96px; padding: 96px 0; background: var(--surface); }
.receipt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.receipt-copy h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -0.03em; }
.receipt { position: relative; width: 100%; padding: 30px 28px 26px; background: var(--bg); font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 13.5px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); rotate: -2deg; }
.receipt::before, .receipt::after { content: ''; position: absolute; left: 0; right: 0; height: 10px; background: radial-gradient(circle at 8px 0, var(--surface) 6px, transparent 6.5px) 0 0 / 16px 10px repeat-x; }
.receipt::before { top: 0; }
.receipt::after { bottom: 0; transform: scaleY(-1); }
/* The paper prints out once its slot is on screen (a fully clipped element never counts as visible). */
.receipt-slot { justify-self: center; width: min(400px, 100%); }
.motion .receipt-slot[data-reveal] { opacity: 1; transform: none; }
.motion .receipt-slot .receipt { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s cubic-bezier(.4, 0, .2, 1) .15s; }
.motion .receipt-slot.in .receipt { clip-path: inset(-20px -20px -60px -20px); }
.rc-head { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-bottom: 16px; border-bottom: 1px dashed var(--faint); }
.rc-head b { font-family: Inter, system-ui, sans-serif; font-size: 18px; letter-spacing: -0.02em; }
.rc-head small { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.rc-group { padding: 12px 0; border-bottom: 1px dashed var(--faint); }
.rc-line { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; }
.rc-line span:first-child { color: var(--muted); }
.rc-dots { flex: 1; border-bottom: 1px dotted var(--faint); transform: translateY(-4px); min-width: 12px; }
.rc-line b { font-weight: 700; text-align: right; }
.rc-line.strong { font-size: 16px; }
.rc-line.strong span:first-child { color: var(--text); font-weight: 700; }
.rc-thanks { text-align: center; color: var(--muted); padding: 16px 0 12px; font-size: 12px; }
.rc-barcode { height: 38px; margin: 0 20px; background: repeating-linear-gradient(90deg, var(--text) 0 2px, transparent 2px 4px, var(--text) 4px 5px, transparent 5px 8px, var(--text) 8px 11px, transparent 11px 12px); opacity: .85; }

/* Trust: four points now, including "not a bank". */
.trust-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; }

@media (max-width: 960px) {
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .story-stage { display: none; }
  .story-step { min-height: 0; max-width: none; padding: 40px 0 8px; }
  .story-steps::after { display: none; }
  .motion .story-step, .motion .story-step.in { opacity: 1; }
  .story-mini { display: flex; justify-content: center; margin-top: 28px; }
  .mini-phone { width: 270px; border-radius: 42px; padding: 9px; background: var(--phone); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); }
  .mini-phone .phone-screen { position: relative; height: 470px; padding: 0; }
  .mini-phone .nets span { font-size: 10px; padding: 4px 6px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .t-qr, .t-price { grid-column: span 2; }
  .receipt-grid { grid-template-columns: 1fr; gap: 40px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .big:nth-child(2) { text-align: left; }
  .big:nth-child(3) { text-align: left; }
}
@media (max-width: 620px) {
  .statements { padding-top: 72px; }
  .big span { translate: none; }
  .tiles { grid-template-columns: 1fr; }
  .t-qr, .t-price { grid-column: auto; }
  .t-price { flex-direction: column; align-items: stretch; }
  .t-price .tile-copy { padding: 0 24px 24px; }
  .tile-copy { padding: 0 24px 24px; }
  .tile-art { height: 220px; gap: 16px; }
  .t-qr .tile-art { flex-direction: column; height: 330px; }
  .receipt-section { margin-top: 72px; padding: 72px 0; }
  .receipt { rotate: 0deg; padding: 28px 20px 24px; }
  .trust-grid { grid-template-columns: 1fr; }
}

/* ---------- Creator program page ---------- */
.cr-hero { padding-top: 88px; padding-bottom: 24px; max-width: 980px; }
.cr-hero h1 { font-size: clamp(40px, 6.4vw, 80px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; }
.cr-hero .lead { max-width: 640px; }
.cr-hero .btn svg { margin-left: 2px; }
.reward-pill { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px; border-radius: 999px; background: var(--surface); font-weight: 600; }
.reward-pill[hidden] { display: none; }

.cr-model { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cr-card { padding: 32px; border-radius: 28px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.cr-card small { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cr-card p { color: var(--muted); font-size: 15px; }
.cr-card.dark { background: var(--primary); color: var(--on-primary); }
.cr-card.dark small, .cr-card.dark p { color: color-mix(in srgb, var(--on-primary) 65%, transparent); }
.cr-big { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.motion .cr-model .cr-card:nth-child(2) { transition-delay: .08s; }
.motion .cr-model .cr-card:nth-child(3) { transition-delay: .16s; }

.cr-dash-section { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.cr-dash-copy h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -0.03em; }
.cr-dash { padding: 26px; border-radius: 28px; border: 1px solid var(--border); background: var(--bg); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .3); }
.cr-dash-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cr-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; }
.badge-mini { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.cr-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.cr-kpis div { padding: 14px 16px; border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.cr-kpis small { color: var(--muted); font-size: 12px; }
.cr-kpis b { font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.funnel { display: flex; flex-direction: column; gap: 8px; }
.fn-row { display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 8px; padding: 11px 14px; border-radius: 12px; background: var(--surface); font-size: 14px; }
.fn-row b { font-variant-numeric: tabular-nums; }
.fn-row i { grid-column: 1 / -1; display: block; height: 6px; width: var(--w); border-radius: 999px; background: var(--faint); }
.fn-row:last-child i { background: var(--primary); }
.motion .cr-dash .fn-row i { width: 0; transition: width 1.2s cubic-bezier(.2, .8, .2, 1) calc(.3s + var(--i) * .15s); }
.motion .cr-dash.in .fn-row i { width: var(--w); }

.cr-apply { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.cr-apply-copy h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -0.03em; }
.cr-note { margin-top: 22px; padding: 14px 16px; border-radius: 16px; background: var(--surface); color: var(--muted); font-size: 14px; }
.cr-form { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 28px; background: var(--surface); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 14px; font-weight: 600; }
.field input, .field textarea, .csearch input { width: 100%; font: inherit; font-size: 15px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus, .csearch input:focus { border-color: var(--faint); box-shadow: 0 0 0 3px color-mix(in srgb, var(--faint) 25%, transparent); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); font-size: 14px; font-weight: 500; transition: background .15s, color .15s, border-color .15s; }
.pill:hover span { border-color: var(--faint); }
.pill input:checked + span { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.pill input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.csearch { position: relative; }
.csearch.picked input[type=text] { font-weight: 600; }
.csearch ul { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); max-height: 260px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .3); scrollbar-width: thin; }
.csearch ul[hidden] { display: none; }
.csearch li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.csearch li[hidden] { display: none; }
.csearch li img { border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); flex: none; }
.csearch li:hover, .csearch li.on { background: var(--surface); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #dc2626; font-size: 14px; font-weight: 500; }
.form-error[hidden] { display: none; }
.cr-form .btn { align-self: flex-start; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.cr-form .btn:disabled { opacity: .5; cursor: default; }
.form-done { display: flex; gap: 14px; align-items: flex-start; }
.form-done[hidden] { display: none; }
.form-done svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--primary); color: var(--on-primary); }
.form-done p { color: var(--muted); margin-top: 4px; }
.cr-form.sent > :not(.form-done) { display: none; }

@media (max-width: 960px) {
  .cr-model { grid-template-columns: 1fr; }
  .cr-dash-section, .cr-apply { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 620px) {
  .cr-hero { padding-top: 48px; }
  .field-row { grid-template-columns: 1fr; }
  .cr-form { padding: 20px; }
  .cr-kpis { grid-template-columns: 1fr 1fr; }
  .cr-kpis div:last-child { grid-column: span 2; }
  .reward-pill { justify-content: center; }
}

/* ---------- Footer (shared) ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 460px; }
.footer-col h4 { margin: 0 0 14px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 15px; color: var(--text); }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-bottom a { color: var(--muted); }

/* ---------- Legal documents ---------- */
.legal-doc { max-width: 820px; padding-top: 64px; padding-bottom: 96px; }
.legal-doc h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.04em; }
.legal-meta { color: var(--muted); margin-top: 12px; }
.legal-flags { display: flex; flex-direction: column; gap: 8px; margin: 24px 0 8px; }
.legal-draft, .legal-lang { padding: 12px 16px; border-radius: 14px; background: var(--surface); font-size: 14px; }
.legal-draft { font-weight: 600; }
.legal-lang { color: var(--muted); }
.legal-doc article section { padding-top: 32px; }
.legal-doc article h2 { display: flex; align-items: baseline; gap: 12px; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.legal-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: inline-grid; place-items: center; font-size: 13px; transform: translateY(-2px); }
.legal-doc article p { color: var(--text); margin-top: 12px; padding-left: 40px; line-height: 1.7; }

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
  .legal-doc { padding-top: 40px; }
  .legal-doc article p { padding-left: 0; }
}

/* Room between the last section and the footer on the creators page (the home page has its CTA). */
.creators { padding-bottom: 112px; }
@media (max-width: 620px) { .creators { padding-bottom: 72px; } }
