/* apay.to design system v2.
   Reserved: pandoc highlighter uses .st .co .dt .at .fu .kw .op .bu .cf .ex .ot .va .dv .fl .sourceCode; never define those globally.
   Type: Inter (variable) for everything, IBM Plex Mono for code and figures. */
:root {
  color-scheme: light;
  --navy: #0A2540; --slate: #425466; --muted: #6B7C93; --faint: #8898AA;
  --line: #E3E8EE; --line-2: #CBD5E0; --bg: #FFFFFF; --bg2: #F6F9FC; --bg3: #EEF2F7;
  --blurple: #635BFF; --blurple-2: #5851DF; --blurple-soft: #ECEBFF; --cyan: #00D4FF; --pink: #FF80B5; --violet: #9089FC; --sky: #80CAFF;
  --ok: #0E9F6E; --ok-soft: #DCF5EA; --warn: #B45309; --warn-soft: #FFF3D6; --bad: #DF1B41; --bad-soft: #FDE8EC;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 8px; --r-lg: 16px; --r-xl: 24px;
  --sh-sm: 0 2px 5px -1px rgba(50,50,93,.25), 0 1px 3px -1px rgba(0,0,0,.3);
  --sh-md: 0 13px 27px -5px rgba(50,50,93,.25), 0 8px 16px -8px rgba(0,0,0,.3);
  --sh-lg: 0 50px 100px -20px rgba(50,50,93,.25), 0 30px 60px -30px rgba(0,0,0,.3);
  --w: 1080px; --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(.2,.8,.2,1);
  /* aliases used by older content pages */
  --ink: var(--navy); --ink-2: var(--slate); --ink-3: var(--muted); --paper: var(--bg); --paper-2: var(--bg2); --code: var(--navy); --font: var(--sans); --radius: var(--r); --max: var(--w); --blurple-dark: var(--blurple-2); --green: var(--ok);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--slate); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; font-feature-settings: "cv11", "ss01"; }
a { color: var(--blurple); text-decoration: none; }
a:hover { color: var(--blurple-2); }
:focus-visible { outline: 2px solid var(--blurple); outline-offset: 3px; border-radius: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
code, kbd, .num { font-family: var(--mono); font-size: .92em; }
:not(pre) > code { background: var(--bg2); border: 1px solid var(--line); padding: .06em .4em; border-radius: 5px; color: var(--navy); font-size: .86em; }
pre code { background: none; border: 0; padding: 0; font-size: 1em; color: inherit; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 12px; z-index: 200; background: #fff; padding: 8px 12px; border-radius: var(--r); box-shadow: var(--sh-md); }
.skip:focus { left: 12px; }

h1, h2, h3, h4 { color: var(--navy); margin: 0; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(2.5rem, 1.4rem + 3.2vw, 4rem); line-height: 1.02; letter-spacing: -.035em; }
h2 { font-weight: 700; font-size: clamp(1.9rem, 1.2rem + 1.9vw, 3rem); line-height: 1.1; letter-spacing: -.03em; }
h3 { font-weight: 600; font-size: 1.125rem; line-height: 1.35; letter-spacing: -.01em; }
h4 { font-weight: 600; font-size: .95rem; }
.eyebrow { display: inline-block; font-weight: 600; font-size: .8125rem; letter-spacing: .02em; color: var(--blurple); margin-bottom: 14px; }
.muted { color: var(--muted); }
.lead, .lede { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.55; color: var(--slate); max-width: 40em; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--gutter); min-width: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .9375rem; line-height: 1.2; border: 1px solid transparent; cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s, background .15s, color .15s; white-space: nowrap; text-decoration: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-primary { background: var(--blurple); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { background: var(--blurple-2); color: #fff; box-shadow: 0 6px 14px -6px rgba(99,91,255,.7); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #12325b; color: #fff; }
.btn-secondary, .btn-ghost { background: #fff; color: var(--navy); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(10,37,64,.06); }
.btn-secondary:hover, .btn-ghost:hover { border-color: #9fb0c3; color: var(--navy); box-shadow: var(--sh-sm); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #f1f4f9; color: var(--navy); }
.btn-arrow::after, .link-arrow::after, .btn-link::after { content: "→"; display: inline-block; transition: transform .2s var(--ease); margin-left: .35em; }
.btn-arrow:hover::after, .link-arrow:hover::after, .btn-link:hover::after { transform: translateX(3px); }
.link-arrow, .btn-link { font-weight: 600; color: var(--blurple); display: inline-flex; align-items: center; }
.btn-block { width: 100%; }
.btn + .btn, .btn + .link-arrow { margin-left: 10px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 6px; margin-top: 28px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.94); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 rgba(10,37,64,.08); transition: background .25s, box-shadow .25s; }
.nav.at-top { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.nav.open { background: #fff; }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.3rem; letter-spacing: -.04em; color: var(--navy); text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 4px; }
.nav-links a { color: var(--navy); font-weight: 500; font-size: .9375rem; padding: 8px 12px; border-radius: 999px; opacity: .9; transition: background .15s, opacity .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(10,37,64,.06); opacity: 1; }
.nav-links .signin { display: none; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-cta .signin { color: var(--navy); font-weight: 600; font-size: .9375rem; padding: 8px 6px; }
.menu { display: none; margin-left: auto; width: 42px; height: 42px; border: 0; background: rgba(255,255,255,.7); border-radius: 10px; cursor: pointer; position: relative; box-shadow: var(--sh-sm); }
.menu span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s var(--ease), top .25s; }
.menu span:first-child { top: 15px; } .menu span:last-child { top: 25px; }
.nav.open .menu span:first-child { top: 20px; transform: rotate(45deg); } .nav.open .menu span:last-child { top: 20px; transform: rotate(-45deg); }
@media (max-width: 880px) {
  .nav .wrap { gap: 12px; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 20px; background: #fff; box-shadow: var(--sh-md); border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1.05rem; border-radius: 10px; }
  .nav-links .signin { display: block; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; }
  .nav-cta .signin { display: none; }
  .menu { display: block; }
  .nav-cta { margin-left: 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 64px 0 40px; isolation: isolate; overflow-x: clip; }
.hero-bg { position: absolute; left: -12%; right: -12%; top: -180px; height: calc(100% + 40px); z-index: -1; overflow: hidden; transform: skewY(-9deg); transform-origin: 0 0; background: linear-gradient(105deg, #ff80b5 0%, #9089fc 34%, #80caff 66%, #635bff 100%); }
.hero-bg i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .85; mix-blend-mode: screen; animation: drift 18s ease-in-out infinite alternate; }
.hero-bg i:nth-child(1) { width: 60vw; height: 60vw; background: #ff5ea8; left: -18vw; top: -10vw; }
.hero-bg i:nth-child(2) { width: 55vw; height: 55vw; background: #6a5cff; left: 28vw; top: 4vw; animation-duration: 22s; animation-delay: -6s; }
.hero-bg i:nth-child(3) { width: 50vw; height: 50vw; background: #00d4ff; left: 62vw; top: -14vw; animation-duration: 26s; animation-delay: -12s; }
.hero-bg i:nth-child(4) { width: 42vw; height: 42vw; background: #ffd166; left: 15vw; top: 22vw; opacity: .5; animation-duration: 30s; animation-delay: -3s; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.0) 55%, rgba(255,255,255,.55) 100%); }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(8vw, 6vw, 0) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .hero-bg i { animation: none; } .reveal { opacity: 1 !important; transform: none !important; } }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.hero h1 { color: var(--navy); }
.hero .lede { color: var(--navy); opacity: .82; margin-top: 22px; }
.status { display: inline-flex; align-items: center; gap: 8px; font: 600 .8125rem/1 var(--mono); color: var(--navy); background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.7); padding: 7px 12px 7px 9px; border-radius: 999px; margin-bottom: 26px; letter-spacing: .01em; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 3px rgba(180,83,9,.15); }
.status.is-live .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(14,159,110,.2); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(14,159,110,.2); } 50% { box-shadow: 0 0 0 7px rgba(14,159,110,.05); } }
.hero-note { margin-top: 26px; font-size: .875rem; color: var(--navy); opacity: .7; }
.hero-note a { color: var(--navy); text-decoration: underline; text-decoration-color: rgba(10,37,64,.35); text-underline-offset: 3px; }

/* phone frame around the live checkout */
.device { position: relative; width: min(392px, 100%); margin: 0 auto; }
.device .frame { background: #0b1220; border-radius: 46px; padding: 12px; box-shadow: var(--sh-lg), inset 0 0 0 1px rgba(255,255,255,.08); }
.device .screen { background: #fff; border-radius: 36px; overflow: hidden; min-height: 640px; position: relative; }
.device .notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; background: #0b1220; border-radius: 16px; z-index: 3; }
.device .bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px 0; font: 600 .75rem var(--sans); color: var(--navy); }
.device .float { position: absolute; z-index: 4; background: #fff; border-radius: 12px; box-shadow: var(--sh-md); padding: 12px 14px; font-size: .8125rem; display: flex; gap: 10px; align-items: center; color: var(--navy); font-weight: 600; }
.device .float.wh { left: -84px; bottom: 22px; }
.device .float.wh i { width: 28px; height: 28px; border-radius: 8px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 15px; }
.device .float.wh small { display: block; color: var(--muted); font-weight: 500; font-family: var(--mono); font-size: .72rem; }
@media (max-width: 1100px) { .device .float.wh { left: 0; bottom: -18px; } }

/* checkout card (contract with assets/checkout.js) */
.pay { background: #fff; border-radius: var(--r-lg); padding: 20px 20px 18px; box-shadow: var(--sh-md); }
.device .pay { box-shadow: none; padding: 14px 16px 12px; border-radius: 0; }
.pay-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line-2); margin-bottom: 14px; }
.pay-title { font-weight: 600; color: var(--navy); }
.pay-sub { font-family: var(--mono); font-size: .72rem; color: var(--muted); margin-top: 4px; word-break: break-all; }
.pay .amount { font: 600 1.375rem/1 var(--sans); letter-spacing: -.02em; color: var(--navy); white-space: nowrap; }
.pay-body { position: relative; min-height: 375px; }
.skel { position: absolute; inset: 0; display: grid; gap: 12px; align-content: start; padding-top: 6px; }
.skel i, .skel .half i { display: block; height: 46px; border-radius: 8px; background: linear-gradient(90deg, var(--bg2) 25%, var(--bg3) 50%, var(--bg2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skel .half { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.pay .btn-block { margin-top: 12px; padding: 13px 18px; font-size: 1rem; border-radius: 10px; }
.pay .btn.is-done { background: var(--ok); }
.pay-msg { margin: 12px 0 0; font-size: .9rem; min-height: 0; border-radius: 8px; }
.pay-msg:not(:empty) { padding: 10px 12px; }
.pay-msg.ok { background: var(--ok-soft); color: #085f42; } .pay-msg.warn { background: var(--warn-soft); color: #7a4a06; } .pay-msg.bad { background: var(--bad-soft); color: #9f1239; } .pay-msg.neutral { background: var(--bg2); color: var(--slate); }
.pay-foot { margin: 12px 0 0; font-size: .78rem; line-height: 1.5; color: var(--muted); }
.pay-foot .num { color: var(--navy); }

/* ---------- generic sections ---------- */
.section, section { padding: 96px 0; }
.section-head { max-width: 46em; margin-bottom: 48px; }
.section-head.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; max-width: none; }
.section-head.split p { margin: 0; color: var(--slate); font-size: 1.0625rem; }
.alt { background: var(--bg2); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { display: block; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: 0 1px 2px rgba(10,37,64,.04); color: var(--slate); transition: transform .2s var(--ease), box-shadow .2s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); color: var(--slate); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: .9375rem; }
.card .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 18px; background: linear-gradient(135deg, #ecebff, #dff6ff); color: var(--blurple); font-size: 18px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.stat b { display: block; font-size: 2.25rem; font-weight: 700; letter-spacing: -.03em; color: var(--navy); line-height: 1; margin-bottom: 8px; }
.stat span { font-size: .9rem; color: var(--muted); }
.band { background: var(--navy); color: #adbdcc; padding: 88px 0; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; height: 140%; background: radial-gradient(closest-side, rgba(99,91,255,.55), transparent 70%); pointer-events: none; }
.band h2 { color: #fff; } .band .lead { color: #adbdcc; }
.band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); } .band .btn-ghost:hover { border-color: #fff; color: #fff; }

/* product feature rows */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
.feature { min-width: 0; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blurple-soft); color: var(--blurple); margin-bottom: 16px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 6px; }
.feature p { font-size: .9375rem; margin-bottom: 8px; }

/* illustration: stacked product cards */
.stack { position: relative; min-height: 460px; }
.stack .shot { position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--sh-md); overflow: hidden; border: 1px solid rgba(10,37,64,.06); }
.shot-dash { left: 0; top: 0; width: 86%; }
.shot-dash .top { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.shot-dash .top i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.shot-dash .body { display: grid; grid-template-columns: 76px 1fr; min-height: 250px; }
.shot-dash .side { background: var(--bg2); padding: 14px 10px; display: grid; gap: 8px; align-content: start; }
.shot-dash .side b { height: 8px; border-radius: 4px; background: var(--line-2); display: block; width: 70%; }
.shot-dash .side b.on { background: var(--blurple); width: 85%; }
.shot-dash .main { padding: 16px; }
.shot-dash .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.shot-dash .kpi { border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; min-width: 0; }
.shot-dash .kpi small { display: block; font-size: .6rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-dash .kpi strong { display: block; font-size: .82rem; color: var(--navy); letter-spacing: -.02em; margin-top: 2px; white-space: nowrap; }
.shot-dash .kpi em { font-style: normal; font-size: .65rem; color: var(--ok); font-weight: 600; }
.shot-dash .chart { display: flex; align-items: flex-end; gap: 6px; height: 90px; padding: 0 2px; border-bottom: 1px solid var(--line); }
.shot-dash .chart i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #7a73ff, var(--blurple)); opacity: .9; animation: grow 1.2s var(--ease) both; }
@keyframes grow { from { transform: scaleY(0); transform-origin: bottom; } }
.shot-hook { right: 0; bottom: 10px; width: 62%; background: var(--navy) !important; color: #dbe4ee; font: 500 .68rem/1.55 var(--mono); padding: 14px 16px; white-space: pre; overflow: hidden; }
.shot-hook .k { color: #7dd3fc; } .shot-hook .s { color: #c3e88d; } .shot-hook .cm { color: #7f9bb8; }
.shot-hook .head { display: flex; justify-content: space-between; align-items: center; color: #9fb3c8; margin-bottom: 8px; font-size: .68rem; }
.shot-toast { right: -8px; top: -22px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: .8125rem; color: var(--navy); font-weight: 600; }
.shot-toast i { width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 13px; }
.shot-toast small { display: block; font-weight: 500; color: var(--muted); font-family: var(--mono); font-size: .7rem; }

/* how it works steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: 0 1px 2px rgba(10,37,64,.04); display: flex; flex-direction: column; }
.step .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font: 600 .78rem var(--mono); margin-bottom: 16px; }
.step h3 { margin-bottom: 8px; }
.step p { font-size: .9375rem; }
.step .code { margin-top: auto; }
pre.code { background: var(--navy); color: #e3e8ee; border-radius: 10px; padding: 14px 16px; font: 400 .74rem/1.55 var(--mono); overflow-x: auto; margin: 0; }
pre.code .c { color: #7f9bb8; } pre.code .s { color: #c3e88d; } pre.code .k { color: #7dd3fc; } pre.code .n { color: #f78c6c; }

/* developer section (dark) */
.dev-dark { background: var(--navy); color: #adbdcc; position: relative; overflow: hidden; }
.dev-dark::before { content: ""; position: absolute; left: -10%; top: -30%; width: 50%; height: 80%; background: radial-gradient(closest-side, rgba(0,212,255,.25), transparent 70%); pointer-events: none; }
.dev-dark h2, .dev-dark h3 { color: #fff; } .dev-dark .eyebrow { color: var(--cyan); }
.dev-dark .lead { color: #adbdcc; }
.dev-dark .btn-link { color: #fff; } .dev-dark .btn-link:hover { color: var(--cyan); }
.dev { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.codebox { background: #061a33; border-radius: 14px; overflow: hidden; box-shadow: var(--sh-lg); border: 1px solid rgba(255,255,255,.08); font-size: .8rem; }
.codebox .tabs { display: flex; gap: 2px; padding: 8px 10px 0; background: #0a2540; border-bottom: 1px solid rgba(255,255,255,.08); }
.codebox .tabs button { background: transparent; border: 0; color: #9fb3c8; padding: 8px 12px; border-radius: 8px 8px 0 0; cursor: pointer; font-weight: 600; font-size: .8rem; }
.codebox .tabs button.on { background: #061a33; color: #fff; }
.codebox pre { margin: 0; padding: 18px 20px; overflow-x: auto; line-height: 1.6; color: #dbe4ee; font-family: var(--mono); }
.codebox .k { color: #7dd3fc; } .codebox .s { color: #c3e88d; } .codebox .c { color: #7f9bb8; } .codebox .n { color: #f78c6c; }
.dev-dark .stats { margin-top: 64px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 40px; }
.dev-dark .stat b { color: #fff; } .dev-dark .stat span { color: #8ea3b8; }

/* method tiles */
.methods { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.method { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 12px 14px; text-align: center; box-shadow: 0 1px 2px rgba(10,37,64,.04); transition: transform .2s var(--ease), box-shadow .2s; }
.method:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.method .m { height: 30px; display: grid; place-items: center; font-weight: 800; letter-spacing: -.03em; color: var(--navy); font-size: 1.05rem; }
.method span { display: block; font-size: .75rem; color: var(--muted); margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 .78rem var(--mono); border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; padding: 5px 10px; }

/* rails strip */
.rails { padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.rails .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.rails .lab { font-size: .8125rem; color: var(--muted); font-weight: 500; }
.rails .marks { display: flex; flex-wrap: wrap; gap: 8px 26px; font-weight: 700; color: #8898aa; letter-spacing: -.02em; font-size: 1.05rem; }

/* pricing / tables / lists (content pages) */
.price { display: flex; align-items: baseline; gap: 6px; color: var(--navy); margin: 8px 0 12px; }
.price b { font-size: 2.5rem; letter-spacing: -.04em; font-weight: 700; line-height: 1; } .price span { color: var(--muted); font-size: .9rem; }
.check { list-style: none; padding: 0; margin: 16px 0 0; }
.check li { padding-left: 28px; position: relative; margin-bottom: .55em; font-size: .9375rem; }
.check li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9375rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
table.t th, table.t td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { background: var(--bg2); color: var(--navy); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
table.t tr:last-child td { border-bottom: 0; }
.tag, .badge { display: inline-block; padding: .2em .65em; border-radius: 999px; font: 600 .74rem/1.4 var(--mono); background: var(--blurple-soft); color: var(--blurple); white-space: nowrap; }
.tag.green, .badge-ok { background: var(--ok-soft); color: #085f42; } .tag.gray, .badge-neutral { background: var(--bg3); color: var(--slate); } .tag.amber, .badge-warn { background: var(--warn-soft); color: #7a4a06; } .badge-bad { background: var(--bad-soft); color: #9f1239; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: .35em .9em; font-size: .85rem; color: var(--navy); background: #fff; }
.notice { background: var(--warn-soft); border: 1px solid #ffe2a8; border-radius: 10px; padding: 12px 14px; font-size: .9rem; color: #6b4b00; }
.notice.info { background: var(--blurple-soft); border-color: #c7c3ff; color: #2b2670; }
form.f { display: grid; gap: 14px; max-width: 560px; }
form.f label, .field { font-size: .85rem; font-weight: 600; color: var(--navy); display: grid; gap: 6px; }
form.f input, form.f select, form.f textarea, .field input, .field select { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(10,37,64,.04); }
form.f input:focus, form.f textarea:focus, form.f select:focus, .field input:focus, .field select:focus { outline: 0; border-color: var(--blurple); box-shadow: 0 0 0 3px rgba(99,91,255,.2); }
.page-hero, .page-head { padding: 72px 0 40px; background: linear-gradient(180deg, var(--bg2), #fff); }
.page-hero h1, .page-head h1 { font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.4rem); }
.page-head .lead, .page-hero .lead { margin-top: 18px; }

/* checkout page */
.checkout-page { padding: 24px 0 96px; }
.checkout-page .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.order { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(10,37,64,.04); }
.order .eyebrow { grid-column: 1 / -1; margin: 0; }
.order .full { grid-column: 1 / -1; }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--navy); font-weight: 500; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--blurple); }
.order .btn { align-self: end; }
.tl-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.tl-head .eyebrow { margin: 0; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 88px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 84px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--blurple); box-shadow: 0 0 0 3px #fff; }
.tl-time { font: 500 .72rem var(--mono); color: var(--muted); padding-top: 3px; }
.tl-item > div { padding-left: 24px; min-width: 0; }
.tl-label { font: 600 .875rem var(--mono); color: var(--navy); word-break: break-word; }
.tl-detail { font-size: .85rem; color: var(--slate); margin-top: 3px; }
.tl-empty { color: var(--muted); font-size: .9rem; }
.receipt { margin-top: 20px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; }
.receipt dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; align-items: center; font-size: .9rem; }
.receipt dt { font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.receipt dd { margin: 0; color: var(--navy); font-family: var(--mono); word-break: break-all; }
.receipt .total { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--line-2); padding-top: 14px; margin-top: 6px; font-weight: 600; color: var(--navy); }
.receipt .total .amount { font-size: 1.5rem; letter-spacing: -.02em; }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-top: 40px; padding-bottom: 96px; align-items: start; }
.docs-side { min-width: 0; position: sticky; top: 88px; display: flex; flex-direction: column; gap: 1px; font-size: .9rem; }
.docs-side a { color: var(--slate); padding: 6px 10px; border-radius: 8px; font-weight: 500; }
.docs-side a:hover { background: var(--bg2); color: var(--navy); }
.docs-side a[aria-current="page"] { background: var(--blurple-soft); color: var(--blurple); font-weight: 600; }
.docs-group { font: 700 .7rem/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 10px 8px; }
.docs-main { max-width: 780px; min-width: 0; }
.docs-main .title { font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem); margin-bottom: 12px; }
.docs-main h2 { font-size: 1.5rem; margin-top: 2.2em; padding-top: .6em; border-top: 1px solid var(--line); }
.docs-main h3 { font-size: 1.125rem; margin-top: 1.8em; margin-bottom: .5em; }
.docs-main p, .docs-main li { font-size: 1rem; }
.docs-main pre { background: var(--navy); color: #e3e8ee; padding: 16px 18px; border-radius: 12px; overflow-x: auto; font: 400 .8125rem/1.6 var(--mono); margin: 1em 0; }
.docs-main table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; margin: 1.2em 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.docs-main th, .docs-main td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.docs-main th { background: var(--bg2); color: var(--navy); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
.docs-main tr:last-child td { border-bottom: 0; }
.docs-main blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 3px solid var(--blurple); background: var(--blurple-soft); border-radius: 0 10px 10px 0; color: #2b2670; }
.docs-main blockquote p:last-child { margin: 0; }
.toc { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; font-size: .9rem; margin: 24px 0 32px; }
.toc ul { margin: 0; padding-left: 18px; } .toc > ul { padding-left: 0; list-style: none; } .toc > ul > li { margin: .25em 0; } .toc a { color: var(--navy); }
.docs-foot { margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
/* pandoc highlighting */
pre.sourceCode .kw, pre.sourceCode .cf { color: #7dd3fc; } pre.sourceCode .st, pre.sourceCode .ss { color: #c3e88d; } pre.sourceCode .co { color: #7f9bb8; } pre.sourceCode .dv, pre.sourceCode .fl, pre.sourceCode .bn { color: #f78c6c; } pre.sourceCode .fu { color: #c792ea; } pre.sourceCode .va, pre.sourceCode .dt, pre.sourceCode .at { color: #ffcb6b; } pre.sourceCode .ot, pre.sourceCode .op { color: #89ddff; } pre.sourceCode .ex, pre.sourceCode .bu { color: #f78c6c; }

/* ---------- footer ---------- */
.foot { background: var(--bg2); border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: .9rem; }
.foot .cols { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 32px; }
.foot-brand p { margin-top: 14px; max-width: 26em; color: var(--muted); font-size: .9rem; }
.foot h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--navy); margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; } .foot li { margin-bottom: .55em; } .foot a { color: var(--slate); } .foot a:hover { color: var(--blurple); }
.foot .fine { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }
.rise { animation: rise .8s var(--ease) both; } .rise-2 { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .device { width: min(392px, 100%); }
  .features, .steps, .grid-3, .grid-4, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .methods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dev, .section-head.split, .checkout-page .wrap { grid-template-columns: minmax(0, 1fr); }
  .foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack { min-height: 420px; }
  .docs { grid-template-columns: minmax(0, 1fr); gap: 24px; } .docs-side { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; } .docs-group { width: 100%; margin: 10px 6px 4px; }
}
@media (max-width: 760px) {
  table.t, .docs-main table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .docs-main pre, pre.code, .codebox pre { max-width: 100%; }
}
@media (max-width: 640px) {
  .section, section { padding: 64px 0; }
  .hero { padding-top: 32px; }
  .features, .steps, .grid-2, .grid-3, .grid-4, .stats, .foot .cols { grid-template-columns: minmax(0, 1fr); }
  .methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order { grid-template-columns: minmax(0, 1fr); }
  .tl::before { left: 6px; } .tl-item { grid-template-columns: 1fr auto; } .tl-time { grid-column: 1 / -1; padding-left: 24px; } .tl-item::before { left: 2px; top: 16px; } .tl-item > div { padding-left: 24px; }
  .stack { min-height: 380px; } .shot-dash { width: 100%; } .shot-hook { width: 82%; bottom: 0; } .shot-toast { right: 0; top: -14px; }
  .device .float.wh { left: 0; bottom: -18px; }
}

/* API reference (Scalar) inherits site type; keep its headings sane */
.scalar-wrap h1 { font-size: 2.25rem; letter-spacing: -.03em; }
.scalar-wrap h2 { font-size: 1.5rem; }

/* ---------- live demo room ---------- */
.live { background: var(--navy); color: #c9d3e0; min-height: calc(100vh - 68px); padding: 28px 0 64px; }
.live .status { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; margin: 0; }
.live-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.live-title { font-weight: 700; font-size: 1.25rem; color: #fff; letter-spacing: -.02em; }
.live-room { font: 600 .85rem var(--mono); color: var(--cyan); background: rgba(0,212,255,.1); padding: .2em .6em; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.live-actions { display: flex; gap: 10px; }
.live .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); } .live .btn-ghost:hover { border-color: #fff; color: #fff; }
.live-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px; align-items: start; }
.qr-card { background: #fff; border-radius: 20px; padding: 26px; text-align: center; box-shadow: var(--sh-lg); color: var(--navy); }
.qr { display: grid; place-items: center; min-height: 236px; }
.qr img, .qr canvas { display: block; margin: 0 auto; }
.qr-amount { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; margin-top: 14px; }
.qr-hint { color: var(--slate); font-size: .9rem; margin-top: 6px; line-height: 1.5; }
.qr-link { margin-top: 10px; font: 500 .8rem var(--mono); word-break: break-all; }
.live-order { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; align-items: end; }
.live-order label { display: grid; gap: 6px; font-size: .8rem; font-weight: 600; color: #c9d3e0; }
.live-order input, .live-order select { font: inherit; padding: 9px 11px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; }
.live-order .checkbox { color: #c9d3e0; align-self: center; }
.live-order .checkbox input { width: 16px; height: 16px; }
.live-steps { list-style: none; padding: 0; margin: 26px 0 0; counter-reset: s; display: grid; gap: 10px; font-size: .9rem; }
.live-steps li { position: relative; padding-left: 34px; color: #adbdcc; }
.live-steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font: 600 .75rem var(--mono); display: grid; place-items: center; }
.live-steps b { color: #fff; }
.live-state { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.live-state .label { font: 600 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #8ea3b8; }
.live-state .badge { font-size: .9rem; padding: .35em .9em; }
.live-feed { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow: auto; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.03); }
.live-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: start; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); animation: rise .4s var(--ease) both; }
.live-item:last-child { border-bottom: 0; }
.live-time { font: 500 .72rem var(--mono); color: #8ea3b8; padding-top: 3px; }
.live-label { font: 600 .9rem var(--mono); color: #fff; word-break: break-word; }
.live-detail { font-size: .85rem; color: #adbdcc; margin-top: 3px; word-break: break-word; }
.live-item.ev-webhook .live-label { color: var(--cyan); }
.live-order .checkbox { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; }
.live-receipt { background: #fff; border-color: transparent; margin-top: 18px; }
.phone-pay { padding: 24px 0 64px; background: var(--bg2); min-height: calc(100vh - 68px); }
.phone-pay .tag { margin-left: 6px; vertical-align: middle; }
@media (max-width: 900px) { .live-grid { grid-template-columns: 1fr; } .live-feed { max-height: 380px; } }
@media (max-width: 640px) { .live-item { grid-template-columns: 1fr auto; } .live-time { grid-column: 1 / -1; } }
