/* Sub-page shared styles */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--bg); color: var(--fg-1); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.btn { font-family: var(--font-sans); font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: 8px; border: 1px solid transparent; display: inline-flex; align-items: center; gap: 8px; transition: all 160ms var(--ease-out); white-space: nowrap; cursor: pointer; }
.btn-primary { background: var(--ink-900); color: white; }
.btn-brand { background: var(--brand-gradient); color: white; box-shadow: var(--shadow-brand); padding: 11px 18px; font-weight: 600; }
.btn-brand:hover { transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--fg-1); border-color: var(--border); }
.btn-secondary:hover { background: var(--ink-25); border-color: var(--border-strong); }
.btn-ghost { background: transparent; color: var(--fg-1); }
.btn-ghost:hover { background: var(--ink-50); }
.btn-arrow::after { content: "→"; font-family: var(--font-mono); transition: transform 160ms var(--ease-out); }
.btn-arrow:hover::after { transform: translateX(3px); }

.nav { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(12px); background: rgba(255,255,255,0.85); border-bottom: 1px solid var(--border-subtle); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; }
.brand img.logo-img { height: 34px; width: auto; display: block; }
.nav-center { display: flex; gap: 4px; align-items: center; }
.nav-item { position: relative; }
.nav-item > button { background: none; border: none; color: var(--fg-2); font-size: 14px; padding: 8px 14px; border-radius: 6px; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; transition: color 160ms; }
.nav-item > button:hover { color: var(--fg-1); }
.nav-item > button .chev { width: 10px; height: 10px; transition: transform 160ms; opacity: 0.6; }
.nav-item.open > button { color: var(--fg-1); }
.nav-item.open > button .chev { transform: rotate(180deg); }
.nav-mega { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(-4px); min-width: 540px; background: white; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-xl); padding: 20px; opacity: 0; visibility: hidden; transition: all 180ms var(--ease-out); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.nav-item.open .nav-mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-mega a { display: flex; gap: 12px; padding: 12px; border-radius: 8px; align-items: flex-start; cursor: pointer; transition: background 140ms; }
.nav-mega a:hover { background: var(--ink-25); }
.nav-mega .ico { width: 32px; height: 32px; flex: none; border-radius: 8px; background: var(--ink-50); display: grid; place-items: center; color: var(--brand-cyan-700); }
.nav-mega .nm { display: block; font-size: 14px; font-weight: 600; color: var(--fg-1); margin-bottom: 2px; }
.nav-mega .nd { display: block; font-size: 12px; color: var(--fg-3); line-height: 1.4; }
.nav-cta { display: flex; gap: 6px; align-items: center; }
a.nav-item { display: inline-block; text-decoration: none; }
a.nav-item > button { pointer-events: none; }

.breadcrumb { padding: 24px 32px 0; }
.breadcrumb ol { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); font-weight: 500; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: var(--fg-4); }
.breadcrumb a { color: var(--fg-3); transition: color 140ms; }
.breadcrumb a:hover { color: var(--fg-1); }
.breadcrumb [aria-current] { color: var(--fg-1); }

.sub-hero { padding: 56px 0 72px; background: var(--paper); border-bottom: 1px solid var(--border-subtle); position: relative; overflow: hidden; }
.sub-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 100% 0%, rgba(34,211,238,0.06), transparent 40%), radial-gradient(circle at 0% 100%, rgba(225,29,116,0.04), transparent 40%); pointer-events: none; }
.sub-hero-inner { position: relative; max-width: 880px; }
.sub-hero .eyebrow { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-cyan-700); margin-bottom: 18px; display: block; }
.sub-hero h1 { font-family: var(--font-display); font-size: 52px; font-weight: 600; letter-spacing: -0.024em; line-height: 1.06; margin: 0 0 20px; color: var(--fg-1); text-wrap: balance; }
.sub-hero .lede { font-size: 19px; line-height: 1.55; color: var(--fg-2); margin: 0 0 32px; max-width: 720px; }
.sub-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.sub-article { padding: 80px 32px; }
.sub-article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
.sub-article-body { min-width: 0; }
.sub-article-body section { margin-bottom: 48px; }
.sub-article-body section:last-of-type { margin-bottom: 0; }
.sub-article-body h2 { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 16px; color: var(--fg-1); }
.sub-article-body h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.015em; margin: 24px 0 10px; color: var(--fg-1); }
.sub-article-body p { font-size: 16px; line-height: 1.68; color: var(--fg-2); margin: 0 0 16px; }
.sub-article-body ul, .sub-article-body ol { font-size: 16px; line-height: 1.68; color: var(--fg-2); padding-left: 22px; margin: 0 0 16px; }
.sub-article-body li { margin-bottom: 8px; }
.sub-article-body strong { color: var(--fg-1); font-weight: 600; }
.sub-article-body a { color: var(--brand-cyan-700); text-decoration: none; border-bottom: 1px solid rgba(34,211,238,0.3); transition: border-color 140ms; }
.sub-article-body a:hover { border-bottom-color: var(--brand-cyan-700); }
.sub-article-body code { font-family: var(--font-mono); font-size: 0.92em; background: var(--ink-50); padding: 2px 6px; border-radius: 4px; color: var(--fg-1); }
.sub-article-body pre { background: var(--ink-950); color: #E8ECF7; padding: 20px; border-radius: 10px; overflow-x: auto; margin: 0 0 16px; font-size: 12.5px; line-height: 1.6; font-family: var(--font-mono); }
.sub-article-body pre code { background: transparent; padding: 0; color: inherit; font-size: inherit; }
.sub-article-body pre .k { color: #A78BFA; }
.sub-article-body pre .s { color: #67E8F9; }
.sub-article-body pre .c { color: #6B7499; font-style: italic; }
.sub-article-body pre .f { color: #F472B6; }
.sub-article-body table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; }
.sub-article-body th, .sub-article-body td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border-subtle); }
.sub-article-body th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; background: var(--ink-25); }
.sub-article-body td { color: var(--fg-2); }
.sub-article-body td strong { color: var(--fg-1); }

.key-facts { position: sticky; top: 96px; background: var(--paper); border: 1px solid var(--border); border-radius: 14px; padding: 24px; box-shadow: var(--shadow-sm); }
.key-facts .kf-title { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); margin: 0 0 16px; }
.key-facts dl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.key-facts .kf-row { display: flex; flex-direction: column; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--border-subtle); }
.key-facts .kf-row:last-child { border-bottom: none; padding-bottom: 0; }
.key-facts dt { font-size: 12px; color: var(--fg-3); font-weight: 500; margin: 0; }
.key-facts dd { font-size: 14px; font-weight: 600; color: var(--fg-1); margin: 0; font-family: var(--font-mono); letter-spacing: -0.01em; }

.page-faq { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border-subtle); }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--paper); overflow: hidden; transition: border-color 140ms; }
.faq-item[open] { border-color: var(--border-strong); }
.faq-q { padding: 18px 22px; font-weight: 600; font-size: 15px; color: var(--fg-1); cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q .plus { font-family: var(--font-mono); font-size: 18px; color: var(--fg-3); font-weight: 400; transition: transform 180ms var(--ease-out); flex: none; margin-left: 12px; }
.faq-item[open] .faq-q .plus { transform: rotate(45deg); }
.faq-a-inner { padding: 0 22px 20px; font-size: 15px; line-height: 1.65; color: var(--fg-2); }

.related { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--border-subtle); }
.related h2 { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 24px; color: var(--fg-1); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card { display: flex; flex-direction: column; padding: 22px; background: var(--paper); border: 1px solid var(--border); border-radius: 12px; transition: all 180ms var(--ease-out); }
.related-card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.related-card .rc-kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-cyan-700); font-weight: 600; margin-bottom: 10px; }
.related-card .rc-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--fg-1); margin-bottom: 4px; letter-spacing: -0.01em; }
.related-card .rc-desc { font-size: 13px; color: var(--fg-3); line-height: 1.5; }

.sub-cta { padding: 0 0 96px; }
.sub-cta-card { background: var(--ink-950); border-radius: 20px; padding: 56px 56px; color: white; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; overflow: hidden; position: relative; }
.sub-cta-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 30%, rgba(34,211,238,0.12), transparent 55%), radial-gradient(circle at 80% 80%, rgba(225,29,116,0.1), transparent 50%); pointer-events: none; }
.sub-cta-card > div { position: relative; }
.sub-cta-card .eyebrow { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #67E8F9; display: block; margin-bottom: 14px; }
.sub-cta-card h2 { font-family: var(--font-display); font-size: 36px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 14px; color: white; }
.sub-cta-card p { font-size: 16px; color: #B8C0D8; line-height: 1.55; margin: 0; max-width: 480px; }
.sub-cta-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.sub-cta-card .btn-secondary { background: transparent; color: white; border-color: rgba(255,255,255,0.18); }
.sub-cta-card .btn-secondary:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.3); }

.footer { background: var(--ink-950); color: #97A2BF; padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #F5F7FB; margin: 0 0 18px; }
.footer-col a { display: block; color: #97A2BF; font-size: 14px; margin-bottom: 12px; transition: color 140ms; }
.footer-col a:hover { color: white; }
.footer-col p { font-size: 13px; color: #8A94B0; line-height: 1.6; max-width: 280px; margin: 16px 0 0; }
.footer-col img.logo-img { height: 26px; width: auto; filter: brightness(1.05); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: #5A6486; }
.footer-bottom .lr { display: flex; gap: 24px; }
.footer-bottom .lr a { color: #5A6486; transition: color 140ms; }
.footer-bottom .lr a:hover { color: white; }

/* ===== Onboard hero visual ===== */
.onboard-hero { padding: 72px 0 96px; }
.onboard-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.onboard-hero h1 { font-size: 56px; }
.onboard-hero h1 .portable { background: linear-gradient(90deg, #22D3EE 0%, #7C3AED 55%, #E11D74 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.psp-router { position: relative; aspect-ratio: 1 / 0.88; background: var(--paper); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.psp-router::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 0% 100%, rgba(34,211,238,0.08), transparent 45%), radial-gradient(circle at 100% 0%, rgba(225,29,116,0.06), transparent 45%); pointer-events: none; }
.psp-router .pr-chrome { position: absolute; top: 0; left: 0; right: 0; height: 36px; display: flex; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--border-subtle); background: rgba(255,255,255,0.6); backdrop-filter: blur(10px); gap: 8px; z-index: 3; }
.psp-router .pr-chrome .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-100); }
.psp-router .pr-chrome .label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); margin-left: 8px; }
.psp-router .pr-chrome .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--brand-cyan-700); }
.psp-router .pr-chrome .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34,197,94,0.18); animation: pr-pulse 1.6s infinite; }
@keyframes pr-pulse { 0%,100%{ box-shadow: 0 0 0 4px rgba(34,197,94,0.18); } 50%{ box-shadow: 0 0 0 8px rgba(34,197,94,0); } }

.psp-router .pr-stage { position: absolute; inset: 36px 0 0; padding: 24px; display: grid; grid-template-rows: 1fr; }
.psp-router svg.pr-wire { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.pr-merchant { position: absolute; left: 28px; top: 50%; transform: translateY(-50%); width: 170px; background: white; border: 1px solid var(--border); border-radius: 12px; padding: 14px 14px 12px; box-shadow: var(--shadow-md); z-index: 2; }
.pr-merchant .ico { width: 30px; height: 30px; border-radius: 7px; background: var(--brand-gradient); display: grid; place-items: center; color: white; margin-bottom: 10px; }
.pr-merchant .label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 4px; }
.pr-merchant .name { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--fg-1); margin-bottom: 6px; letter-spacing: -0.01em; }
.pr-merchant .rows { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--fg-2); font-family: var(--font-mono); letter-spacing: -0.01em; }
.pr-merchant .rows .r { display: flex; justify-content: space-between; }
.pr-merchant .rows .r .k { color: var(--fg-4); }
.pr-merchant .rows .r .chk { color: #22C55E; font-weight: 600; }

.pr-hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 118px; height: 118px; border-radius: 50%; background: white; border: 1px solid var(--border); box-shadow: var(--shadow-lg), 0 0 0 8px rgba(34,211,238,0.06); display: grid; place-items: center; z-index: 2; }
.pr-hub::after { content: ""; position: absolute; inset: -14px; border: 1.5px dashed rgba(34,211,238,0.5); border-radius: 50%; animation: pr-spin 22s linear infinite; }
.pr-hub::before { content: ""; position: absolute; inset: -26px; border: 1px dashed rgba(124,58,237,0.25); border-radius: 50%; animation: pr-spin 36s linear infinite reverse; }
@keyframes pr-spin { to { transform: rotate(360deg); } }
.pr-hub .inner { text-align: center; position: relative; z-index: 1; }
.pr-hub .inner .k { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 4px; }
.pr-hub .inner .n { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--fg-1); letter-spacing: -0.01em; line-height: 1; }
.pr-hub .inner .tag { font-size: 9.5px; color: var(--fg-3); margin-top: 6px; }
.pr-hub .inner .bolt { color: var(--brand-cyan-700); font-weight: 600; font-family: var(--font-mono); letter-spacing: 0.04em; }

.pr-psp { position: absolute; right: 28px; width: 150px; background: white; border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; box-shadow: var(--shadow-sm); z-index: 2; display: flex; align-items: center; gap: 10px; }
.pr-psp .pl { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); font-size: 13px; flex: none; color: white; }
.pr-psp .meta { min-width: 0; }
.pr-psp .nm { font-size: 13px; font-weight: 600; color: var(--fg-1); line-height: 1.1; }
.pr-psp .sub { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); letter-spacing: 0.02em; }
.pr-psp[data-psp="stripe"] { top: 14%; }
.pr-psp[data-psp="stripe"] .pl { background: #635BFF; }
.pr-psp[data-psp="adyen"] { top: 39%; }
.pr-psp[data-psp="adyen"] .pl { background: #0ABF53; }
.pr-psp[data-psp="airwallex"] { top: 64%; }
.pr-psp[data-psp="airwallex"] .pl { background: #612FFF; }
.pr-psp[data-psp="tapped"] { bottom: 14%; border: 1.5px solid transparent; background: linear-gradient(white,white) padding-box, var(--brand-gradient) border-box; }
.pr-psp[data-psp="tapped"] .pl { background: var(--brand-gradient); }
.pr-psp[data-psp="tapped"] .tag { margin-left: auto; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; color: var(--brand-cyan-700); font-weight: 600; background: rgba(34,211,238,0.1); padding: 2px 6px; border-radius: 4px; }

/* Flowing particles */
.pr-wire .wire { stroke: var(--border); stroke-width: 1.4; fill: none; }
.pr-wire .wire.active { stroke: url(#pr-grad); stroke-width: 1.8; stroke-dasharray: 4 6; animation: pr-dash 1.2s linear infinite; }
@keyframes pr-dash { to { stroke-dashoffset: -40; } }
.pr-wire .pkt { fill: #22D3EE; filter: drop-shadow(0 0 6px rgba(34,211,238,0.6)); }

/* ---------- MOBILE NAV TOGGLE (hidden on desktop) ---------- */
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--border);
  width: 40px; height: 40px; border-radius: 8px; color: var(--fg-1);
  align-items: center; justify-content: center; cursor: pointer;
  padding: 0; transition: background 140ms;
}
.nav-toggle:hover { background: var(--ink-25); }
.nav-toggle svg { width: 20px; height: 20px; display: block; }
.nav-toggle .x { display: none; }
.nav.is-open .nav-toggle .ham { display: none; }
.nav.is-open .nav-toggle .x { display: block; }
a.nav-mobile-aux, .nav-item.nav-mobile-aux { display: none; }

/* Responsive */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .nav-inner { position: relative; flex-wrap: wrap; gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .nav-center {
    display: none; order: 3; flex-basis: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 0 16px; margin-top: 8px;
    border-top: 1px solid var(--border-subtle);
    max-height: calc(100vh - 140px); overflow-y: auto;
  }
  .nav.is-open .nav-center { display: flex; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-ghost { display: none; }
  a.nav-mobile-aux, .nav-item.nav-mobile-aux { display: block; width: 100%; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border-subtle); }
  .nav-mobile-aux > button { width: 100%; text-align: left; padding: 12px 14px; font-size: 15px; border-radius: 8px; background: none; border: 0; color: var(--fg-2); font-family: inherit; cursor: pointer; }
  .nav-mobile-aux > button:hover { background: var(--ink-25); color: var(--fg-1); }
  .nav-item, a.nav-item { width: 100%; }
  .nav-item > button {
    width: 100%; justify-content: space-between; text-align: left;
    padding: 12px 14px; font-size: 15px; border-radius: 8px;
  }
  .nav-item > button:hover { background: var(--ink-25); color: var(--fg-1); }
  .nav-mega {
    position: static; transform: none; min-width: 0; width: 100%;
    box-shadow: none; border: none; background: var(--ink-25);
    border-radius: 8px; padding: 6px; margin: 0 0 4px;
    grid-template-columns: 1fr;
    opacity: 0; visibility: hidden; max-height: 0; overflow: hidden;
    transition: opacity 180ms, max-height 240ms;
  }
  .nav-item.open .nav-mega { opacity: 1; visibility: visible; max-height: 800px; }

  .sub-hero { padding: 40px 0 56px; }
  .sub-hero h1 { font-size: 38px; }
  .onboard-hero h1 { font-size: 40px; }
  .sub-hero .lede { font-size: 17px; }
  .sub-article { padding: 56px 24px; }
  .sub-article-grid { grid-template-columns: 1fr; gap: 40px; }
  .key-facts { position: static; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .sub-cta-card { padding: 40px 32px; grid-template-columns: 1fr; }
  .sub-cta-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .onboard-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .psp-router { max-width: 560px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav-inner { padding: 12px 16px; }
  .brand img.logo-img { height: 28px; }
  .nav-cta .btn { font-size: 13px; padding: 8px 12px; }
  .nav-cta .btn-brand { padding: 9px 14px; }
  .breadcrumb { padding: 18px 16px 0; }
  .breadcrumb ol { font-size: 10px; gap: 6px; }
  .sub-hero { padding: 32px 0 40px; }
  .sub-hero h1, .onboard-hero h1 { font-size: 28px; line-height: 1.1; }
  .sub-hero .lede { font-size: 15.5px; margin-bottom: 24px; }
  .sub-hero-cta { flex-direction: column; align-items: stretch; }
  .sub-hero-cta .btn { justify-content: center; }
  .sub-article { padding: 40px 16px; }
  .sub-article-body h2 { font-size: 22px; }
  .sub-article-body p, .sub-article-body ul, .sub-article-body ol { font-size: 15px; }
  .sub-article-body pre { font-size: 11.5px; padding: 16px; border-radius: 8px; }
  .sub-article-body table { display: block; overflow-x: auto; }
  .related-grid { grid-template-columns: 1fr; }
  .sub-cta { padding: 0 0 64px; }
  .sub-cta-card { padding: 28px 20px; border-radius: 16px; }
  .sub-cta-card h2 { font-size: 24px; }
  .sub-cta-card p { font-size: 15px; }
  .sub-cta-actions .btn { width: 100%; justify-content: center; }
  .footer { padding: 56px 0 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Onboard PSP-router visual: collapse to a stacked, container-relative layout */
  .psp-router { aspect-ratio: auto; min-height: 460px; }
  .psp-router .pr-stage { padding: 16px; }
  .pr-merchant { position: static; transform: none; width: 100%; max-width: 280px; margin: 4px auto 12px; padding: 10px 12px 10px; }
  .pr-hub { position: static; transform: none; width: 92px; height: 92px; margin: 6px auto 12px; }
  .pr-hub::before, .pr-hub::after { display: none; }
  .pr-psp { position: static; width: 100%; max-width: 280px; margin: 6px auto; right: auto; top: auto; bottom: auto; padding: 10px 12px; }
  .pr-wire { display: none; }
}
