/* MultixPay landing page. Plain CSS, no build step, no script. The violet ramp is the panel's and the
   payer pages' (#7c3aed is step 600); fonts are the panel's, self-hosted (SIL OFL, see fonts/). */

@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --v-50: #f5f3ff; --v-100: #ede9fe; --v-200: #ddd6fe; --v-300: #c4b5fd; --v-400: #a78bfa;
  --v-500: #8b5cf6; --v-600: #7c3aed; --v-700: #6d28d9; --v-800: #5b21b6; --v-900: #4c1d95; --v-950: #2e1065;

  --ink: #1b1530;          /* headings */
  --body: #4f4a66;         /* body text */
  --muted: #736e8a;
  --line: #e9e6f2;
  --tint: #f7f6fc;         /* alternate section background */
  --surface: #ffffff;
  --night: #120d24;        /* developer section */
  --night-line: rgba(196, 181, 253, 0.16);
  --ok: #15803d; --ok-soft: #e6f6ec;
  --wait: #a16207; --wait-soft: #fdf4dc;

  --font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --brandfont: "Space Grotesk", "IBM Plex Sans", sans-serif;

  --wrap: 1180px;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(27, 21, 48, 0.06);
  --shadow: 0 2px 4px rgba(27, 21, 48, 0.04), 0 16px 40px -16px rgba(46, 16, 101, 0.22);
  --shadow-lg: 0 50px 100px -30px rgba(46, 16, 101, 0.35), 0 30px 60px -40px rgba(0, 0, 0, 0.3);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--body); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
svg { display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.86em; }
:focus-visible { outline: 3px solid var(--v-400); outline-offset: 3px; border-radius: 6px; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 22px; border-radius: 999px; font: 600 15.5px/1.2 var(--font); text-decoration: none; white-space: nowrap; border: 1px solid transparent; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.btn .i { width: 17px; height: 17px; stroke-width: 2.2; transition: transform .15s; }
.btn:hover .i { transform: translateX(2px); }
.btn-sm { min-height: 38px; padding: 8px 18px; font-size: 14.5px; }
.btn-primary { background: var(--v-600); color: #fff; box-shadow: 0 6px 18px -8px rgba(124, 58, 237, 0.8); }
.btn-primary:hover { background: var(--v-700); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--v-300); }
.btn-white { background: #fff; color: var(--v-800); }
.btn-white:hover { background: var(--v-50); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.8); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid rgba(233, 230, 242, 0.7); }
.site-header .wrap { display: flex; align-items: center; gap: 36px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 20px/1 var(--brandfont); letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 30px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; opacity: .82; }
.nav a:hover { opacity: 1; color: var(--v-700); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.signin { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.signin .i { width: 15px; height: 15px; stroke-width: 2.2; }
.signin:hover { color: var(--v-700); }

/* Hero */
.hero { position: relative; overflow: hidden; margin-top: -68px; padding: 140px 0 112px; } /* runs up under the header */
.hero-bg {
  position: absolute; inset: 0 0 auto 0; height: 86%;
  background:
    radial-gradient(40% 60% at 92% 10%, #f0abfc 0%, transparent 60%),
    radial-gradient(45% 70% at 70% 0%, #a78bfa 0%, transparent 65%),
    radial-gradient(40% 60% at 100% 70%, #6366f1 0%, transparent 60%),
    radial-gradient(50% 70% at 55% 40%, #c4b5fd 0%, transparent 70%),
    linear-gradient(120deg, #ede9fe 0%, #c4b5fd 40%, #8b5cf6 70%, #6d28d9 100%);
  background-size: 140% 140%;
  clip-path: polygon(0 0, 100% 0, 100% 64%, 0 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 28%, #000 62%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 28%, #000 62%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { from { background-position: 0% 30%; } to { background-position: 100% 60%; } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 4.4vw, 60px); line-height: 1.06; letter-spacing: -0.035em; max-width: 12em; }
.hero .lede { margin-top: 22px; font-size: 19px; line-height: 1.55; max-width: 30em; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points .i { width: 18px; height: 18px; color: var(--v-600); stroke-width: 2.4; }

.hero-visual { position: relative; padding: 0 0 40px 24px; }
.dash { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(255, 255, 255, .6); }
.dash-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #faf9fd; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 999px; background: #e4e0ee; }
.dash-url { font: 500 12px/1 var(--mono); color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }
.dash-body { display: grid; grid-template-columns: 56px 1fr; }
.dash-side { border-right: 1px solid var(--line); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; background: #fcfbfe; }
.dash-side svg { width: 28px; height: 28px; margin-bottom: 8px; }
.dash-side i { width: 22px; height: 6px; border-radius: 4px; background: var(--line); }
.dash-side i.on { background: var(--v-500); }
.dash-main { padding: 20px 22px 22px; min-width: 0; }
.dash-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dash-kpis div { display: grid; gap: 2px; }
.dash-kpis span { font-size: 12.5px; color: var(--muted); }
.dash-kpis strong { font-size: 21px; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.dash-chart { margin-top: 14px; width: 100%; height: 86px; }
.dash-table { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 13px; }
.dash-row { display: grid; grid-template-columns: 1.5fr 1fr 0.9fr; gap: 8px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--line); color: var(--ink); font-variant-numeric: tabular-nums; }
.dash-row:first-child { border-top: 0; }
.dash-row.head { background: #faf9fd; color: var(--muted); font-size: 12px; font-weight: 500; }
.dash-row span:first-child { display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; }
.tag { font: 600 9.5px/1 var(--mono); padding: 4px 5px; border-radius: 5px; letter-spacing: .04em; }
.tag.in { background: var(--v-50); color: var(--v-700); }
.tag.out { background: #eef2ff; color: #4338ca; }
.st { justify-self: start; font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: 999px; }
.st.ok { background: var(--ok-soft); color: var(--ok); }
.st.wait { background: var(--wait-soft); color: var(--wait); }

.toast-card { position: absolute; left: -8px; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); font-size: 13.5px; animation: float 6s ease-in-out infinite; }
.toast-card strong { display: block; color: var(--ink); font-weight: 600; }
.toast-card small { display: block; color: var(--muted); font-size: 12.5px; }
.toast-card b { margin-left: 14px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.toast-ico { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.toast-ico .i { width: 18px; height: 18px; stroke-width: 2.6; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Sections */
section { scroll-margin-top: 68px; } /* the sticky header's height */
.section { padding: 112px 0; }
.section.tint { background: var(--tint); }
.kicker { display: inline-block; font: 600 14px/1 var(--font); color: var(--v-600); }
.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 { margin-top: 14px; font-size: clamp(32px, 3.8vw, 46px); letter-spacing: -0.03em; }
.section-head p { margin-top: 16px; font-size: 18.5px; }

/* Products */
.products { margin-top: 60px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product { padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; }
.product:hover { border-color: var(--v-200); box-shadow: var(--shadow); }
.p-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--v-500), var(--v-700)); color: #fff; box-shadow: 0 8px 18px -8px rgba(124, 58, 237, .8); }
.p-ico .i { width: 22px; height: 22px; }
.product h3 { margin-top: 22px; font-size: 20px; }
.product p { margin-top: 10px; font-size: 15.5px; }
.ticks { margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 9px; font-size: 14.5px; color: var(--ink); }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--v-600); border-bottom: 2px solid var(--v-600); transform: rotate(-45deg); }

/* Payment methods */
.methods { margin-top: 52px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.method { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.m-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.m-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--v-50); color: var(--v-700); border: 1px solid var(--v-100); }
.badge { font: 600 11.5px/1 var(--font); padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.badge.live { background: var(--ok-soft); color: var(--ok); }
.badge.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 999px; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.badge.soon { background: var(--v-50); color: var(--v-700); }
.method h3 { margin-top: 20px; font-size: 18px; }
.method p { margin-top: 8px; font-size: 14.5px; flex: 1; }
.m-dir { margin-top: 18px; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Use cases */
.cases { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.case { padding: 34px 32px; border-left: 1px solid var(--line); }
.case:first-child { border-left: 0; }
.c-ico { display: block; color: var(--v-600); }
.c-ico .i { width: 28px; height: 28px; stroke-width: 1.6; }
.case h3 { margin-top: 20px; font-size: 20px; }
.case p { margin-top: 10px; font-size: 15.5px; }

/* Developers */
.dev { background: radial-gradient(60% 80% at 100% 0%, rgba(124, 58, 237, .35), transparent 60%), radial-gradient(40% 60% at 0% 100%, rgba(91, 33, 182, .3), transparent 60%), var(--night); color: #c9c3df; }
.dev h2 { color: #fff; margin-top: 14px; font-size: clamp(32px, 3.8vw, 46px); letter-spacing: -0.03em; }
.dev .kicker { color: var(--v-300); }
.dev-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.dev-copy > p { margin-top: 16px; font-size: 18px; }
.dev-list { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; font-size: 15.5px; }
.dev-list li { display: flex; gap: 14px; }
.dev-list .i { margin-top: 2px; color: var(--v-300); }
.dev-list strong { color: #fff; font-weight: 600; }
.dev-list code { color: var(--v-200); background: rgba(139, 92, 246, .16); padding: 1px 6px; border-radius: 5px; overflow-wrap: anywhere; }

/* Code samples: radio inputs switch the panels, so the tabs work without script. */
.code-tabs { display: flex; flex-wrap: wrap; background: #0c0819; border: 1px solid var(--night-line); border-radius: 18px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.tab-in { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.code-tabs label { padding: 14px 18px; font-size: 14px; font-weight: 500; color: #9a93b5; cursor: pointer; border-bottom: 2px solid transparent; user-select: none; }
.code-tabs label:hover { color: #fff; }
.tab-in:checked + label { color: #fff; border-bottom-color: var(--v-400); }
.tab-in:focus-visible + label { outline: 2px solid var(--v-400); outline-offset: -4px; border-radius: 8px; }
.panels { flex-basis: 100%; border-top: 1px solid var(--night-line); min-width: 0; }
.panel { display: none; }
#t-checkout:checked ~ .panels .p-checkout, #t-payout:checked ~ .panels .p-payout, #t-webhook:checked ~ .panels .p-webhook { display: block; }
.panel pre { margin: 0; padding: 22px 24px; overflow-x: auto; font: 400 13px/1.75 var(--mono); color: #ded9f0; }
.panel code { font-size: inherit; }
.panel .c { color: #7f789a; }
.panel .h { color: var(--v-300); }
.panel .k { color: #c4b5fd; }
.panel .s { color: #a7f3d0; }
.panel .n { color: #fcd34d; }
.panel .p { color: #f0abfc; font-weight: 500; }

/* Security */
.pillars { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
.pillar .i { width: 26px; height: 26px; color: var(--v-600); stroke-width: 1.6; }
.pillar h3 { margin-top: 18px; font-size: 19px; }
.pillar p { margin-top: 10px; font-size: 15.5px; }

/* Getting started */
.steps { margin: 52px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { padding: 30px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps .num { font: 600 14px/1 var(--mono); color: var(--v-600); }
.steps h3 { margin-top: 18px; font-size: 21px; }
.steps p { margin-top: 10px; font-size: 15.5px; }

/* CTA */
.cta { padding: 112px 0; }
.cta-box { position: relative; overflow: hidden; border-radius: 28px; padding: 72px 64px; color: #fff; display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 40px; align-items: center;
  background: radial-gradient(50% 90% at 100% 0%, rgba(240, 171, 252, .45), transparent 60%), radial-gradient(40% 80% at 0% 100%, rgba(99, 102, 241, .45), transparent 60%), linear-gradient(135deg, var(--v-600), var(--v-900)); }
.cta-box h2 { color: #fff; font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -0.03em; }
.cta-box p { margin-top: 14px; color: var(--v-100); font-size: 18px; max-width: 32em; }
.cta-actions { display: grid; gap: 14px; justify-items: center; }
.cta-actions .btn { width: 100%; min-height: 54px; font-size: 16.5px; }
.cta-mail { color: var(--v-200); font-size: 14.5px; }
.cta-mail a { color: #fff; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.foot-brand p { margin-top: 14px; color: var(--muted); max-width: 18em; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer h4 { font-size: 14px; margin-bottom: 6px; letter-spacing: 0; }
.site-footer nav a { color: var(--body); text-decoration: none; }
.site-footer nav a:hover { color: var(--v-700); }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }

/* Grid children may shrink below their content (code scrolls inside its panel). */
.hero-grid > *, .products > *, .methods > *, .cases > *, .dev-grid > *, .pillars > *, .steps > *, .cta-box > *, .foot-grid > * { min-width: 0; }

/* Responsive */
@media (max-width: 1100px) {
  .methods { grid-template-columns: repeat(3, 1fr); }
  .products { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .hero-grid, .dev-grid, .cta-box { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; padding-left: 0; }
  .hero-bg { height: 70%; }
  .cases { grid-template-columns: 1fr; }
  .case { border-left: 0; border-top: 1px solid var(--line); }
  .case:first-child { border-top: 0; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { height: 60px; gap: 12px; }
  section { scroll-margin-top: 60px; }
  .signin { display: none; }
  .hero { margin-top: -60px; padding: 112px 0 72px; }
  .hero .lede { font-size: 17.5px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-bg { height: 52%; -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .35) 100%); mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .35) 100%); }
  .dash-body { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .dash-main { padding: 16px; }
  .dash-kpis strong { font-size: 17px; }
  .dash-row { grid-template-columns: 1.4fr 1fr; font-size: 12px; }
  .dash-row span:last-child { display: none; }
  .toast-card { position: relative; left: 0; margin: -24px 12px 0; }
  .toast-card b { display: none; }
  .hero-visual { padding-bottom: 0; }
  .section, .cta { padding: 80px 0; }
  .products, .methods, .pillars { grid-template-columns: 1fr; }
  .cta-box { padding: 40px 24px; border-radius: 22px; }
  .foot-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
