/* PayNex landing: light, quiet, large tight type, dotted texture, pill buttons, horizontal showcase. */
@font-face { font-family: 'Geist'; src: url('/fonts/geist-variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #fcfcfc; --ink: #1c1c1c; --mute: #6b6b6b; --line: #e6e6e6; --sea: #f4f4f5; --blue: #111; --blue-soft: #efefef; --red: #d8353a; --green: #1f9d63;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --pad: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

/* buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s, box-shadow .15s; white-space: nowrap; }
.pill:hover { transform: translateY(-1px); }
.pill.sm { height: 36px; padding: 0 16px; font-size: 14px; }
.pill.dark { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 18px -8px rgba(0,0,0,.5); }
.pill.dark:hover { background: #000; }
.pill.light { background: #fff; border-color: var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.pill.light:hover { border-color: #cfcfcf; }
.pill.ghost { background: transparent; border-color: var(--line); }
.pill.ghost:hover { background: #fff; }
.pill.white { background: #fff; color: #111; }
.pill.wide { width: 100%; }
.pill[disabled] { opacity: .6; cursor: default; transform: none; }

/* header */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(252,252,252,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; }
.nav-in { max-width: 1280px; margin: 0 auto; height: 68px; padding: 0 var(--pad); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; }
.logo img { display: block; height: 28px; width: auto; }
.links { display: flex; gap: 6px; margin-left: 12px; }
.links a { padding: 8px 12px; font-size: 14.5px; color: var(--mute); text-decoration: none; border-radius: 999px; transition: color .15s, background .15s; }
.links a:hover { color: var(--ink); background: var(--sea); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang select { height: 36px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 0 10px; font: inherit; font-size: 13.5px; color: var(--ink); cursor: pointer; }

/* hero */
.hero { position: relative; isolation: isolate; text-align: center; padding: clamp(48px, 9vw, 120px) var(--pad) clamp(56px, 8vw, 100px); overflow: hidden; }
.dots { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(28,28,28,.55) 0.9px, transparent 1.3px); background-size: 9px 9px;
  -webkit-mask-image: linear-gradient(90deg, #000 0, rgba(0,0,0,.9) 14%, transparent 34%, transparent 66%, rgba(0,0,0,.9) 86%, #000 100%), linear-gradient(180deg, #000 55%, transparent 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, #000 0, rgba(0,0,0,.9) 14%, transparent 34%, transparent 66%, rgba(0,0,0,.9) 86%, #000 100%), linear-gradient(180deg, #000 55%, transparent 100%); mask-composite: intersect;
  opacity: .7; animation: drift 24s linear infinite; }
@keyframes drift { to { background-position: 0 -90px; } }
.hero-in { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.badge { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--mute); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(31,157,99,.16); }
h1 { font-size: clamp(40px, 7.4vw, 92px); line-height: 1; letter-spacing: -0.05em; font-weight: 600; }
.chip { display: inline-block; vertical-align: middle; transform: translateY(-.55em); margin-left: .2em; padding: .28em .6em .3em; font-size: clamp(11px, 1.5vw, 15px); font-weight: 600; letter-spacing: .04em; line-height: 1.1; text-transform: uppercase; color: #fff; background: var(--blue); border-radius: 6px; box-shadow: 0 0 0 4px rgba(31,94,255,.18); white-space: nowrap; }
.lead { max-width: 600px; font-size: clamp(16px, 1.7vw, 19px); color: var(--mute); line-height: 1.55; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.have { font-size: 14.5px; color: var(--mute); }
.have a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }

/* acceptance strip */
.accept { max-width: 1000px; margin: 0 auto; padding: 8px var(--pad) 72px; text-align: center; }
.accept p { font-size: 13.5px; color: var(--mute); margin-bottom: 22px; }
.accept ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 34px; }
.accept img { display: block; height: 26px; width: auto; }
.accept .txt { font-weight: 600; letter-spacing: -0.02em; font-size: 17px; color: #4a4a4a; }

/* statement */
.statement { max-width: 880px; margin: 0 auto; padding: 24px var(--pad) 48px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.statement h2 { font-size: clamp(30px, 5vw, 58px); line-height: 1.04; letter-spacing: -0.045em; }

/* showcase: horizontal cards */
.showcase { padding: 8px 0 72px; position: relative; }
.track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--pad) 18px; scroll-padding: 0 var(--pad); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.track::-webkit-scrollbar { display: none; }
.card { flex: 0 0 min(86vw, 640px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.035em; margin-top: 4px; }
.card p { color: var(--mute); font-size: 15.5px; max-width: 56ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-weight: 500; }
.shot { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; background: #0e0f13; overflow: hidden; display: grid; place-items: center; box-shadow: 0 30px 60px -34px rgba(0,0,0,.55); isolation: isolate; }
.shot::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 80% 0%, rgba(31,94,255,.35), transparent 60%), radial-gradient(50% 60% at 0% 100%, rgba(124,58,237,.28), transparent 60%); }
.shot .ex { position: absolute; top: 14px; right: 16px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.arrows { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.arrows button { width: 38px; height: 34px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); transition: background .15s, transform .15s; }
.arrows button:hover { background: var(--sea); transform: translateY(-1px); }

.mini-pay { width: min(64%, 270px); background: #fff; color: #111; border-radius: 16px; padding: 16px; display: grid; gap: 9px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); }
.mp-shop { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.mp-shop i { width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, #111, #6b6b6b); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 12px; }
.mp-total { font-size: 26px; font-weight: 600; letter-spacing: -0.04em; }
.mp-field { height: 30px; border-radius: 8px; background: #f1f1f3; }
.mp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mp-btn { height: 36px; border-radius: 10px; background: #111; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 500; }
.mp-3ds { text-align: center; font-size: 10.5px; color: #8a8a8a; letter-spacing: .06em; }
.mini-dash { width: min(72%, 320px); color: #fff; display: grid; gap: 6px; }
.mini-dash small { color: rgba(255,255,255,.6); font-size: 12.5px; }
.mini-dash b { font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -0.045em; font-weight: 600; }
.mini-dash svg { width: 100%; height: 76px; fill: rgba(255,255,255,.2); margin: 4px 0; }
.mini-dash svg rect:last-child { fill: #22d3ee; }
.md-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.07); font-size: 13px; }
.md-row i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; }
.md-row span { flex: 1; }
.md-row em { font-style: normal; color: #34d399; font-weight: 600; }
.mini-flow { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 80%; }
.mini-flow span { padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-size: 13.5px; border: 1px solid rgba(255,255,255,.12); }
.mini-flow .warn { background: rgba(251,113,133,.16); border-color: rgba(251,113,133,.4); color: #fecdd3; }
.mini-code { margin: 0; font: 12.5px/1.8 var(--mono); color: #cbd5e1; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 18px 20px; max-width: 88%; overflow: hidden; }
.mini-code .c { color: #7dd3fc; } .mini-code .s { color: #fcd34d; } .mini-code .ok { color: #34d399; }
.mini-geo { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 74%; }
.mini-geo span { min-width: 56px; text-align: center; padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; letter-spacing: .04em; }
.mini-geo .y { background: rgba(52,211,153,.16); color: #6ee7b7; border: 1px solid rgba(52,211,153,.35); }
.mini-geo .n { background: rgba(251,113,133,.12); color: #fda4af; border: 1px solid rgba(251,113,133,.35); text-decoration: line-through; }
.mini-shops { width: min(66%, 300px); display: grid; gap: 10px; }
.mini-shops div { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); color: #fff; }
.mini-shops span { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.12); }

/* sections */
.sec { padding: clamp(56px, 8vw, 110px) var(--pad); }
.inner { max-width: 1120px; margin: 0 auto; }
.sec h2 { font-size: clamp(30px, 4.6vw, 54px); line-height: 1.04; letter-spacing: -0.045em; max-width: 18ch; }
.tint { background: var(--sea); }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; margin-bottom: 38px; }
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { color: var(--mute); font-size: 15px; }
.facts { margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 22px; background: #fff; overflow: hidden; }
.facts div { padding: 22px 24px; display: grid; gap: 4px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts b { font-size: 21px; letter-spacing: -0.03em; font-weight: 600; }
.facts span { color: var(--mute); font-size: 14px; }

.dark { background: #0e0f13; color: #fff; }
.dark h2 { color: #fff; }
.dev { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.dev p { color: rgba(255,255,255,.68); margin: 18px 0 28px; max-width: 46ch; font-size: 17px; }
.code { margin: 0; padding: 24px 26px; border-radius: 20px; background: #15171d; border: 1px solid rgba(255,255,255,.09); font: 13.5px/1.75 var(--mono); color: #e2e8f0; overflow-x: auto; }
.code .c { color: #64748b; } .code .k { color: #c4b5fd; } .code .s { color: #fcd34d; } .code .f { color: #7dd3fc; } .code .n { color: #fda4af; }

.grid4 { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.grid4 h3 { font-size: 19px; margin-bottom: 8px; }
.grid4 p { color: var(--mute); font-size: 15px; }
.grid4 > div { padding-top: 18px; border-top: 1px solid var(--ink); }
.rules ul { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 0; max-width: 780px; }
.rules li { padding: 18px 0; border-top: 1px solid #dcdcdf; font-size: clamp(17px, 2vw, 21px); letter-spacing: -0.02em; }
.rules li:last-child { border-bottom: 1px solid #dcdcdf; }

.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--mute); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--mute); padding: 0 40px 20px 0; max-width: 60ch; }
.faq h2 { margin-bottom: 28px; }

/* account request */
.access { background: var(--sea); }
.access-in { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.access-side p { color: var(--mute); margin: 18px 0 28px; max-width: 42ch; font-size: 17px; }
.have-box { display: grid; gap: 6px; justify-items: start; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.have-box span { color: var(--mute); font-size: 14.5px; margin-bottom: 8px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 30px 60px -44px rgba(0,0,0,.4); }
.form-card form { display: grid; gap: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card label { display: grid; gap: 7px; font-size: 13.5px; font-weight: 500; }
.form-card input:not([type=checkbox]), .form-card select, .form-card textarea { width: 100%; font: inherit; font-size: 15.5px; color: var(--ink); background: #fff; border: 1px solid #d9d9dd; border-radius: 12px; padding: 0 14px; height: 46px; transition: border-color .15s, box-shadow .15s; }
.form-card textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 104px; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,94,255,.14); }
.form-card [aria-invalid=true] { border-color: var(--red) !important; box-shadow: 0 0 0 4px rgba(216,53,58,.1) !important; }
.check { grid-template-columns: 20px 1fr; align-items: start; gap: 10px !important; font-weight: 400 !important; color: var(--mute); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.check.bad span { color: var(--red); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { color: var(--red); font-size: 14px; }
.fine { font-size: 12.5px; color: var(--mute); text-align: center; }
.done { display: grid; gap: 12px; justify-items: start; padding: 10px 0; }
.done .tick { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(31,157,99,.12); color: var(--green); }
.done h3 { font-size: 26px; }
.done p { color: var(--mute); max-width: 44ch; }

.foot { border-top: 1px solid var(--line); padding: 26px var(--pad); }
.foot-in { max-width: 1280px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; color: var(--mute); font-size: 14px; }
.foot-in .logo img { height: 24px; }
.foot-in a:last-child { margin-left: auto; color: var(--ink); text-underline-offset: 3px; }

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

@media (max-width: 960px) {
  .links { display: none; }
  .steps, .grid4 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .dev, .access-in { grid-template-columns: 1fr; gap: 32px; }
  .grid4 { gap: 24px; }
}
@media (max-width: 620px) {
  .cta-nav { display: none; }
  .nav-in { gap: 10px; height: 60px; }
  .logo img { height: 24px; }
  .grid2 { grid-template-columns: 1fr; }
  .chip { display: block; width: fit-content; margin: 14px auto 0; transform: none; }
  .accept { padding-bottom: 48px; }
  .accept ul { gap: 12px 24px; }
  .foot-in a:last-child { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dots { animation: none; }
  .pill, .arrows button { transition: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .loader { display: none; }
}

/* logos strip: slow marquee, a black round button once the page is scrolled (as on the reference site) */
.marq { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.accept .marq ul { flex-wrap: nowrap; justify-content: flex-start; width: max-content; gap: 0; animation: marq 28s linear infinite; }
.accept .marq li { flex: none; padding: 0 22px; }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .accept .marq ul { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }
.float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #111; color: #fff; box-shadow: 0 10px 28px -8px rgba(0,0,0,.55); opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .25s, transform .25s; }
.float.on { opacity: 1; transform: none; pointer-events: auto; }
.float:hover { transform: translateY(-2px) scale(1.04); }
/* "how it works": title and steps centred */
#how h2 { margin-left: auto; margin-right: auto; text-align: center; }
#how .steps li { text-align: center; }
#how .num { margin-left: auto; margin-right: auto; }
