/* Layout: apple.com-style light product pages. Centered headline blocks, full-bleed bands, rounded tiles on a soft grey ground. */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --tile: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --accent: #0066cc;
  --accent-btn: #0071e3;
  --accent-btn-hover: #0077ed;
  --ok: #1e8e3e;
  --nav: rgba(251, 251, 253, 0.8);
  --card-a: #1d1d1f;
  --card-b: #3a3a3f;
  --grad-a: #0071e3;
  --grad-b: #7b4dff;
  --code-bg: #1d1d1f;
  --code-ink: #f5f5f7;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.18);
  --font-display: "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-text: "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 980px;
  --wrap-wide: 1200px;
  --gutter: 22px;
  --radius: 28px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --bg-alt: #101012; --tile: #161618; --ink: #f5f5f7; --ink-2: #a1a1a6; --ink-3: #86868b;
    --line: #333336; --accent: #2997ff; --accent-btn: #0071e3; --accent-btn-hover: #0a84ff; --ok: #34c759;
    --nav: rgba(22, 22, 23, 0.8); --card-a: #2c2c2e; --card-b: #48484a; --grad-a: #2997ff; --grad-b: #a78bfa;
    --code-bg: #161618; --code-ink: #f5f5f7; --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-alt: #101012; --tile: #161618; --ink: #f5f5f7; --ink-2: #a1a1a6; --ink-3: #86868b;
  --line: #333336; --accent: #2997ff; --accent-btn: #0071e3; --accent-btn-hover: #0a84ff; --ok: #34c759;
  --nav: rgba(22, 22, 23, 0.8); --card-a: #2c2c2e; --card-b: #48484a; --grad-a: #2997ff; --grad-b: #a78bfa;
  --code-bg: #161618; --code-ink: #f5f5f7; --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-text); font-size: 17px; line-height: 1.47; letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent-btn); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--nav); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.nav-in {
  max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter);
  height: 48px; display: flex; align-items: center; gap: 28px;
}
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 700; letter-spacing: -0.04em;
}
.nav-links { display: flex; gap: 26px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { color: var(--ink); opacity: 0.8; font-size: 12px; letter-spacing: -0.01em; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; text-decoration: none; }
.nav-links a[aria-current="page"] { font-weight: 600; }
.nav-cta { font-size: 12px; padding: 4px 12px; border-radius: 980px; background: var(--accent-btn); color: #fff; }
.nav-links .nav-cta { color: #fff; opacity: 1; }
.nav-cta:hover { background: var(--accent-btn-hover); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 17px; height: 1.5px; background: currentColor; margin: 4px 0; transition: transform .3s; }
.nav[data-open="true"] .nav-toggle span:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav[data-open="true"] .nav-toggle span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.subnav { border-bottom: 1px solid var(--line); background: var(--nav); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); position: sticky; top: calc(48px + env(safe-area-inset-top, 0px)); z-index: 40; }
.subnav-in { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.subnav-title { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: 0.011em; }
.subnav-links { display: flex; gap: 22px; align-items: center; font-size: 12px; }
.subnav-links a { color: var(--ink); opacity: .8; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 48px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line);
  }
  .nav-links[hidden] { display: none !important; }
  .nav-links a { display: block; padding: 12px 0; font-size: 20px; font-weight: 600; opacity: 1; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { background: none; color: var(--accent); opacity: 1; padding: 12px 0; border-radius: 0; }
  .subnav-links a:not(.btn) { display: none; }
}
@media (min-width: 761px) { .nav-links[hidden] { display: flex !important; } }

/* ---------- Type ---------- */
.eyebrow { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink); margin: 0 0 6px; }
.eyebrow.grad, .grad-text {
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h-hero { font-family: var(--font-display); font-weight: 600; font-size: clamp(44px, 8vw, 88px); line-height: 1.05; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
.h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 5.6vw, 64px); line-height: 1.0625; letter-spacing: -0.009em; margin: 0; text-wrap: balance; }
.h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.003em; margin: 0; text-wrap: balance; }
.h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.125; letter-spacing: 0.004em; margin: 0; text-wrap: balance; }
.lead { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.33; letter-spacing: 0.009em; color: var(--ink-2); margin: 0; text-wrap: balance; }
.lead strong { color: var(--ink); font-weight: 600; }
.body-l { font-size: 19px; line-height: 1.42; color: var(--ink-2); margin: 0; max-width: 62ch; }
.body-l strong { color: var(--ink); font-weight: 600; }
.small { font-size: 12px; color: var(--ink-3); line-height: 1.33; letter-spacing: -0.01em; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: var(--wrap-wide); margin: 0 auto; padding-inline: var(--gutter); }
.band { padding-block: clamp(64px, 10vw, 120px); }
.band.alt { background: var(--bg-alt); }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.center .stack, .stack.center { align-items: center; }

.ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 17px; padding: 11px 22px; border-radius: 980px; border: 1px solid transparent;
  background: var(--accent-btn); color: #fff; cursor: pointer; font-family: inherit; letter-spacing: -0.022em;
  transition: background .2s;
}
.btn:hover { background: var(--accent-btn-hover); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn.ghost:hover { background: var(--accent); color: #fff; }
.btn.sm { font-size: 12px; padding: 4px 12px; }
.more { font-size: 17px; }
.more::after { content: " \203A"; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 8vw, 96px) 0; text-align: center; overflow: hidden; }
.hero .lead { max-width: 640px; margin-inline: auto; }
.hero-stage { position: relative; margin: clamp(40px, 6vw, 72px) auto 0; max-width: 880px; height: clamp(300px, 46vw, 440px); perspective: 1400px; }

.paycard {
  position: absolute; left: 50%; top: 18px; width: min(420px, 82vw); aspect-ratio: 1.586; translate: -50% 0;
  border-radius: 22px; padding: clamp(18px, 3.4vw, 28px); color: #f5f5f7; text-align: left;
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--grad-b) 55%, transparent), transparent 55%),
    radial-gradient(120% 120% at 0% 100%, color-mix(in srgb, var(--grad-a) 50%, transparent), transparent 60%),
    linear-gradient(135deg, var(--card-a), var(--card-b));
  box-shadow: var(--shadow); transform-style: preserve-3d;
  transform: rotateX(14deg) rotateY(-10deg) rotateZ(2deg); transition: transform .5s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column; justify-content: space-between;
}
.paycard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255,255,255,.14); pointer-events: none; }
.pc-top { display: flex; justify-content: space-between; align-items: center; }
.pc-brand { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 4vw, 30px); letter-spacing: -0.04em; }
.pc-brand small { font-weight: 500; font-size: 0.5em; letter-spacing: 0; opacity: .8; margin-left: 4px; }
.pc-chip { width: 44px; height: 33px; border-radius: 7px; background: linear-gradient(135deg, #e6d6a8, #b39b5e); position: relative; }
.pc-chip::before { content: ""; position: absolute; inset: 7px 0; border-top: 1px solid rgba(0,0,0,.25); border-bottom: 1px solid rgba(0,0,0,.25); }
.pc-num { font-family: var(--font-mono); font-size: clamp(15px, 2.8vw, 21px); letter-spacing: 0.12em; opacity: .92; }
.pc-foot { display: flex; justify-content: space-between; align-items: end; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.pc-foot b { display: block; font-size: 14px; letter-spacing: .04em; opacity: 1; font-weight: 500; margin-top: 2px; text-transform: none; }

.txn-feed {
  position: absolute; right: max(0px, calc(50% - 440px)); bottom: 0; width: min(300px, 70vw);
  background: var(--tile); border-radius: 18px; box-shadow: var(--shadow); padding: 14px; text-align: left;
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px;
}
.txn-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); padding: 0 6px 6px; }
.txn-head .live { color: var(--ok); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.txn-head .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s infinite; }
.txn { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 7px 6px; border-radius: 10px; font-size: 13px; }
.txn.new { animation: slidein .5s cubic-bezier(.2,.8,.2,1); }
.txn-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--bg-alt); display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--ink-2); }
.txn-m { min-width: 0; }
.txn-m b { display: block; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txn-m span { color: var(--ink-3); font-size: 11px; }
.txn-a { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.txn-a span { display: block; font-size: 11px; font-weight: 500; color: var(--ok); }
.auth-pill {
  position: absolute; left: max(0px, calc(50% - 430px)); top: 52%;
  background: var(--tile); border: 1px solid var(--line); border-radius: 980px; box-shadow: var(--shadow);
  padding: 10px 16px; display: flex; gap: 10px; align-items: center; font-size: 13px;
}
.auth-pill .ok { width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 12px; }
.auth-pill b { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .auth-pill { display: none; }
  .txn-feed { right: 50%; translate: 50% 0; }
  .paycard { top: 0; }
}
@keyframes pulse { 50% { opacity: .3; } }
@keyframes slidein { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 32px; } }

/* ---------- Tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tiles.three { grid-template-columns: repeat(3, 1fr); }
.tile {
  background: var(--tile); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column; gap: 10px; min-width: 0; overflow: hidden; position: relative;
}
.band:not(.alt) .tile { background: var(--bg-alt); }
.tile.wide { grid-column: 1 / -1; }
.tile .h3 + p, .tile p { margin: 0; color: var(--ink-2); }
.tile .more { margin-top: auto; padding-top: 12px; }
.tile-art { margin-top: 18px; }
@media (max-width: 860px) { .tiles, .tiles.three { grid-template-columns: 1fr; } }

/* Tile art pieces */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; padding: 6px 12px; border-radius: 980px; border: 1px solid var(--line); color: var(--ink); background: var(--bg); white-space: nowrap; }
.band:not(.alt) .chip { background: var(--tile); }
.meter { display: grid; gap: 10px; }
.meter-row { display: grid; grid-template-columns: 110px 1fr 52px; gap: 12px; align-items: center; font-size: 13px; color: var(--ink-2); }
.meter-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.meter-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--grad-a), var(--grad-b)); width: var(--w); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.meter-row b { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.payout-list { display: grid; gap: 8px; font-size: 14px; }
.payout-list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--bg); border-radius: 12px; }
.band:not(.alt) .payout-list div { background: var(--tile); }
.payout-list b { font-variant-numeric: tabular-nums; }
.payout-list span { color: var(--ink-3); }

/* ---------- Auth flow ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 56px; position: relative; }
.flow-step { text-align: center; position: relative; padding: 0 6px; }
.flow-dot {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center;
  background: var(--tile); border: 1px solid var(--line); font-weight: 700; font-size: 13px; position: relative; z-index: 1;
  transition: background .3s, color .3s, border-color .3s;
}
.flow-step.on .flow-dot { background: var(--accent-btn); color: #fff; border-color: var(--accent-btn); }
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 32px; left: calc(50% + 32px); right: calc(-50% + 32px); height: 2px; background: var(--line);
}
.flow-step.on:not(:last-child)::after { background: var(--accent-btn); }
.flow-step b { display: block; font-size: 15px; }
.flow-step span { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.flow-total { margin-top: 36px; font-size: 14px; color: var(--ink-2); }
.flow-total b { color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .flow { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .flow-step { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; text-align: left; align-items: center; }
  .flow-dot { width: 52px; height: 52px; margin: 0; grid-row: span 2; border-radius: 16px; }
  .flow-step:not(:last-child)::after { top: 52px; left: 25px; right: auto; width: 2px; height: 18px; }
}

/* ---------- Code ---------- */
.code {
  background: var(--code-bg); color: var(--code-ink); border-radius: 20px; text-align: left; overflow: hidden;
  border: 1px solid var(--line);
}
.code-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 12px; color: #a1a1a6; }
.code-tabs { display: flex; gap: 4px; }
.code-tabs button { background: none; border: 0; color: #a1a1a6; font: inherit; padding: 4px 10px; border-radius: 980px; cursor: pointer; }
.code-tabs button[aria-selected="true"] { background: rgba(255,255,255,.12); color: #f5f5f7; }
.code .copy { background: none; border: 1px solid rgba(255,255,255,.2); color: #f5f5f7; border-radius: 980px; font: inherit; padding: 3px 10px; cursor: pointer; }
.code pre { margin: 0; padding: 20px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.65; letter-spacing: 0; }
.tk-k { color: #ff7ab2; } .tk-s { color: #fc6a5d; } .tk-n { color: #d0bf69; } .tk-c { color: #7f8c98; } .tk-p { color: #67b7a4; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Lists ---------- */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { padding-left: 30px; position: relative; color: var(--ink-2); }
.ticks li b { color: var(--ink); font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-btn); -webkit-mask: radial-gradient(circle, #000 0 100%); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 5px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 48px; }
.plan { background: var(--tile); border-radius: var(--radius); padding: 36px 30px; display: flex; flex-direction: column; gap: 14px; text-align: left; border: 1px solid transparent; }
.band:not(.alt) .plan { background: var(--bg-alt); }
.plan.featured { border-color: var(--accent-btn); }
.plan-tag { font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; min-height: 16px; }
.plan-price { font-family: var(--font-display); font-size: 40px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 15px; font-weight: 400; color: var(--ink-2); letter-spacing: 0; }
.plan .ticks { font-size: 15px; gap: 10px; }
.plan .btn { margin-top: auto; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Compare table ---------- */
.table-wrap { overflow-x: auto; margin-top: 40px; }
table.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.compare th, .compare td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare th { font-weight: 600; font-size: 13px; color: var(--ink-2); }
.compare td:first-child { color: var(--ink); font-weight: 600; }
.compare td { color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------- Region grid ---------- */
.regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 40px; text-align: left; }
.region { background: var(--tile); border-radius: 20px; padding: 22px; }
.band:not(.alt) .region { background: var(--bg-alt); }
.region b { display: block; font-size: 17px; margin-bottom: 6px; }
.region p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* ---------- Form ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-btn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-btn) 20%, transparent); }
.form-note { grid-column: 1 / -1; font-size: 12px; color: var(--ink-3); }
.form-done { grid-column: 1 / -1; padding: 16px; border-radius: 14px; background: color-mix(in srgb, var(--ok) 12%, var(--bg)); color: var(--ink); font-size: 15px; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.contact-card { background: var(--tile); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.band:not(.alt) .contact-card { background: var(--bg-alt); }
.contact-lines { display: grid; gap: 18px; }
.contact-lines div b { display: block; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.contact-lines div span { font-size: 17px; user-select: all; }

/* ---------- Timeline ---------- */
.timeline { display: grid; gap: 0; margin-top: 40px; text-align: left; border-left: 2px solid var(--line); padding-left: 28px; max-width: 640px; margin-inline: auto; }
.timeline div { position: relative; padding-bottom: 28px; }
.timeline div::before { content: ""; position: absolute; left: -36px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent-btn); }
.timeline b { display: block; font-size: 13px; color: var(--accent); font-weight: 600; }
.timeline p { margin: 2px 0 0; color: var(--ink-2); }
.timeline strong { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.foot { background: var(--bg-alt); color: var(--ink-2); font-size: 12px; padding-block: 24px 40px; border-top: 1px solid var(--line); }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.foot-note { padding-bottom: 16px; border-bottom: 1px solid var(--line); line-height: 1.5; color: var(--ink-3); }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.foot-cols h4 { margin: 0 0 8px; font-size: 12px; color: var(--ink); font-weight: 600; }
.foot-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-cols a { color: var(--ink-2); }
.foot-legal { padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--ink-3); }
@media (max-width: 640px) { .foot-cols { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Motion ---------- */
.reveal { transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.pending { opacity: 0; transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.pending { opacity: 1; transform: none; transition: none; }
  .paycard { transition: none; }
  .txn.new, .txn-head .live::before { animation: none; }
}

/* =================================================================
   3D layer
   ================================================================= */
:root { --depth: #c9c9cf; --btn-depth: #0058b0; --glare: rgba(255,255,255,.55); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --depth: #2a2a2e; --btn-depth: #003f80; --glare: rgba(255,255,255,.18); } }
:root[data-theme="dark"] { --depth: #2a2a2e; --btn-depth: #003f80; --glare: rgba(255,255,255,.18); }

/* WebGL stages */
.hero-stage { height: clamp(440px, 46vw, 520px); perspective: none; margin-top: clamp(8px, 2vw, 24px); }
.hero-stage .auth-pill { top: 18%; }
.scene-box, .scene-stage { position: relative; }
.scene-box { position: absolute; inset: 0; }
.scene-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; touch-action: pan-y; }
.scene-stage { height: clamp(300px, 42vw, 480px); margin: clamp(24px, 4vw, 48px) auto 0; max-width: 1100px; }
.scene-stage.no-3d { display: none; }
.stage-3d .paycard { display: none; }
.hero-stage .txn-feed, .hero-stage .auth-pill { z-index: 2; }
.auth-pill { animation: float 6s ease-in-out infinite; }
.txn-feed { animation: float 7s ease-in-out infinite reverse; }
@keyframes float { 50% { translate: 0 -10px; } }
@media (max-width: 760px) {
  .hero-stage { height: 560px; }
  .scene-box { bottom: 210px; }
  .txn-feed { animation: none; }
}

/* 3D buttons and keycaps */
.btn { box-shadow: 0 4px 0 var(--btn-depth), 0 10px 20px -6px color-mix(in srgb, var(--accent-btn) 55%, transparent); transition: background .2s, transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--btn-depth), 0 14px 24px -6px color-mix(in srgb, var(--accent-btn) 60%, transparent); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-depth), 0 4px 10px -4px color-mix(in srgb, var(--accent-btn) 50%, transparent); }
.btn.ghost { box-shadow: 0 4px 0 color-mix(in srgb, var(--accent) 35%, transparent); }
.btn.sm { box-shadow: 0 2px 0 var(--btn-depth); }
.chip { box-shadow: 0 3px 0 var(--depth), 0 8px 14px -8px rgba(0,0,0,.25); transition: transform .15s, box-shadow .15s; }
.chip:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--depth), 0 12px 18px -8px rgba(0,0,0,.3); }
.logo-mark { box-shadow: 0 2px 0 var(--ink-3), inset 0 1px 0 rgba(255,255,255,.25); transform: perspective(200px) rotateX(12deg); }

/* Extruded type */
.h-hero { text-shadow: 0 1px 0 var(--depth), 0 2px 0 var(--depth), 0 3px 0 var(--depth), 0 4px 0 var(--depth), 0 18px 30px rgba(0,0,0,.14); }
.stat b { text-shadow: 1px 1px 0 var(--depth), 2px 2px 0 var(--depth), 3px 3px 0 var(--depth), 4px 4px 0 var(--depth), 5px 5px 0 var(--depth), 6px 6px 0 var(--depth), 10px 16px 22px rgba(0,0,0,.18); }
.plan-price { text-shadow: 1px 1px 0 var(--depth), 2px 2px 0 var(--depth), 3px 3px 0 var(--depth), 6px 10px 16px rgba(0,0,0,.15); }

/* Tilt cards with glare */
.band { perspective: 1800px; }
.tilt {
  position: relative; transform-style: flat;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .9s cubic-bezier(.2,.8,.2,1), box-shadow .5s;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 50%, transparent), 0 18px 40px -28px rgba(0,0,0,.25);
}
.tilt::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), var(--glare), transparent 45%);
  opacity: 0; transition: opacity .4s; mix-blend-mode: soft-light;
}
.tilt.hovering { transition: transform .12s linear, opacity .9s, box-shadow .3s; box-shadow: var(--shadow); }
.tilt.hovering::before { opacity: 1; }
.code.tilt { overflow: hidden; }

/* 3D entrance on scroll */
.reveal.pending { opacity: 0; transform: perspective(1200px) rotateX(22deg) translateY(70px) translateZ(-160px); }

/* Meters as glossy cylinders */
.meter-bar { height: 12px; border-radius: 6px; box-shadow: inset 0 2px 3px rgba(0,0,0,.15); }
.meter-bar i { background: linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,0) 55%), linear-gradient(90deg, var(--grad-a), var(--grad-b)); box-shadow: 0 2px 6px -1px color-mix(in srgb, var(--grad-a) 60%, transparent); }

/* Payout rows stacked in depth */
.payout-list div { box-shadow: 0 3px 0 var(--depth), 0 10px 16px -10px rgba(0,0,0,.25); transition: transform .3s; }
.payout-list div:hover { transform: translateY(-3px) scale(1.01); }

/* Isometric auth flow */
.flow { transform: perspective(1400px) rotateX(26deg); transform-origin: 50% 0; padding-bottom: 12px; }
.flow-dot {
  box-shadow: 0 8px 0 var(--depth), 0 22px 30px -12px rgba(0,0,0,.3);
  transition: background .3s, color .3s, border-color .3s, transform .3s, box-shadow .3s;
}
.flow-step.on .flow-dot { transform: translateY(-6px); box-shadow: 0 14px 0 var(--btn-depth), 0 30px 34px -12px color-mix(in srgb, var(--accent-btn) 60%, transparent); }
.flow-step:not(:last-child)::after { height: 4px; border-radius: 2px; }
@media (max-width: 700px) { .flow { transform: none; } }

/* Exploded security layers */
.layers { position: relative; height: clamp(360px, 44vw, 460px); perspective: 1600px; }
.layers-in { position: absolute; left: 50%; top: 52%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-36deg); }
.layer {
  position: absolute; width: clamp(200px, 26vw, 280px); aspect-ratio: 1.586; left: 0; top: 0;
  translate: -50% -50%; border-radius: 18px; transform: translateZ(calc(var(--i) * var(--gap, 22px)));
  transition: transform .2s linear; display: flex; align-items: flex-end; padding: 14px 16px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #fff;
  border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(2px);
  box-shadow: 0 30px 40px -20px rgba(0,0,0,.35);
}
.layer:nth-child(1) { background: linear-gradient(135deg, rgba(52,199,89,.85), rgba(30,142,62,.85)); }
.layer:nth-child(2) { background: linear-gradient(135deg, rgba(255,159,10,.85), rgba(255,95,0,.85)); }
.layer:nth-child(3) { background: linear-gradient(135deg, rgba(123,77,255,.85), rgba(80,40,200,.85)); }
.layer:nth-child(4) { background: linear-gradient(135deg, rgba(0,113,227,.85), rgba(0,70,160,.85)); }
.layer:nth-child(5) { background: radial-gradient(120% 140% at 100% 0%, rgba(123,77,255,.6), transparent 55%), linear-gradient(135deg, #1d1d1f, #3a3a3f); align-items: stretch; flex-direction: column; justify-content: space-between; }
.layer b { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.03em; }
.layer .lnum { font-family: var(--font-mono); font-size: 14px; letter-spacing: .1em; opacity: .85; }
.layer-key { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.layer-key li { display: grid; grid-template-columns: 14px 1fr; gap: 14px; align-items: start; color: var(--ink-2); }
.layer-key li::before { content: ""; width: 14px; height: 14px; border-radius: 4px; margin-top: 5px; background: var(--c); box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 60%, #000); }
.layer-key b { color: var(--ink); font-weight: 600; }

/* Spheres on timeline */
.timeline div::before { border: 0; background: radial-gradient(circle at 35% 30%, #fff, var(--accent-btn) 45%, var(--btn-depth)); box-shadow: 0 4px 8px -2px color-mix(in srgb, var(--accent-btn) 60%, transparent); width: 16px; height: 16px; left: -37px; }

/* Form fields inset */
.field input, .field select, .field textarea { box-shadow: inset 0 2px 4px rgba(0,0,0,.06); }

@media (prefers-reduced-motion: reduce) {
  .tilt, .tilt.hovering { transform: none; transition: none; }
  .reveal.pending { transform: none; opacity: 1; }
  .auth-pill, .txn-feed { animation: none; }
  .flow-step.on .flow-dot { transform: none; }
}

main { overflow-x: clip; }

/* =================================================================
   Scroll storytelling (ported from the Executive Hunt build)
   ================================================================= */
.hero { position: relative; }
.scroll-cue { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 8px auto 28px; font-size: 12px; color: var(--ink-3); letter-spacing: .06em; transition: opacity .6s; }
.scroll-cue i { display: block; width: 56px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateX(-100%); animation: cue 2.6s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }
body.scrolled .scroll-cue { opacity: 0; }

/* Split words */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transition: transform 1s cubic-bezier(.2,.8,.2,1) calc(var(--wi, 0) * 55ms), opacity 1s calc(var(--wi, 0) * 55ms); }
.pending [data-split] .w > span, [data-split].pending .w > span { transform: translateY(105%) rotateX(-40deg); opacity: 0; }
.reveal.pending [data-split] { opacity: 1; }
.h-hero[data-split] .w { overflow: visible; }

/* Narrative statements */
.narr { min-height: 92vh; display: flex; align-items: center; justify-content: center; text-align: center; padding-inline: var(--gutter); }
.narr.short { min-height: 70vh; }
.statement { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 7vw, 96px); line-height: 1.04; letter-spacing: -0.03em; margin: 0 auto; max-width: 1080px; text-wrap: balance;
  text-shadow: 0 1px 0 var(--depth), 0 2px 0 var(--depth), 0 3px 0 var(--depth); }
.statement .grad-text { text-shadow: none; }
.whisper { font-size: clamp(19px, 2vw, 26px); color: var(--ink-3); margin: 26px 0 0; transition: opacity 1.2s .6s, transform 1.2s .6s; }
.reveal.pending .whisper { opacity: 0; transform: translateY(12px); }
.narr .reveal.pending { transform: perspective(1200px) rotateX(16deg) translateY(40px); }

/* Sticky story: how a payment works */
.story { height: 420vh; position: relative; }
.story .stick, .markets .stick { position: sticky; top: calc(48px + env(safe-area-inset-top, 0px)); height: calc(100vh - 48px); overflow: hidden; }
.story .stick { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 3vw; align-items: center; max-width: var(--wrap-wide); margin: 0 auto; padding-inline: var(--gutter); }
.story-copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.story-copy .h1 { font-size: clamp(32px, 4vw, 52px); }
.story-stage { height: 100%; max-height: 640px; margin: 0; width: 100%; }
.stages { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 2px; counter-reset: st; }
.stages li { counter-increment: st; display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; padding: 7px 10px; border-radius: 12px; color: var(--ink-3); transition: color .4s, background .4s, transform .4s; }
.stages li::before { content: counter(st, decimal-leading-zero); font-family: var(--font-mono); font-size: 12px; grid-row: span 2; padding-top: 4px; }
.stages li b { font-weight: 600; font-size: 17px; }
.stages li span { font-size: 13px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s, opacity .5s; }
.stages li.done { color: var(--ink-2); }
.stages li.on { color: var(--ink); background: var(--bg-alt); transform: translateX(6px); box-shadow: 0 3px 0 var(--depth); }
.stages li.on::before { color: var(--accent); }
.stages li.on span { max-height: 40px; opacity: 1; color: var(--ink-2); }
.story-reveal { position: absolute; right: var(--gutter); bottom: 7vh; text-align: right; font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0; opacity: 0; transform: translateY(20px); transition: opacity .8s, transform .8s; }
.story-reveal.on { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .story { height: 520vh; }
  .story .stick { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; padding-top: 24px; gap: 0; }
  .story-copy .body-l, .story-copy .eyebrow { display: none; }
  .story-copy .h1 { font-size: 30px; }
  .stages { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: none; }
  .stages li { grid-template-columns: auto; padding: 6px 12px; }
  .stages li::before { display: none; }
  .stages li span { display: none; }
  .stages li b { font-size: 14px; }
  .stages li.on { transform: none; }
  .story-stage { max-height: none; min-height: 0; }
  .story-reveal { left: var(--gutter); text-align: left; bottom: 4vh; font-size: 22px; }
}

/* Sticky markets */
.markets { height: calc(6 * 70vh + 100vh); position: relative; background: var(--bg-alt); }
.markets .stick { max-width: var(--wrap-wide); margin: 0 auto; padding-inline: var(--gutter); }
.markets-head { position: absolute; top: 6vh; left: var(--gutter); max-width: 460px; display: flex; flex-direction: column; gap: 12px; z-index: 2; }
.markets-head .h1 { font-size: clamp(32px, 4vw, 52px); }
.markets-stage { position: absolute; inset: 0; height: auto; max-width: none; margin: 0; }
.market-index { position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); z-index: 2; }
.market-index li { transition: color .3s, transform .3s; }
.market-index li.on { color: var(--accent); transform: translateX(-6px); font-weight: 600; }
.market-copy { position: absolute; left: var(--gutter); bottom: 8vh; width: min(420px, calc(100% - 2 * var(--gutter))); height: 230px; z-index: 2; }
.market-copy article { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; pointer-events: none;
  background: color-mix(in srgb, var(--tile) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); height: max-content; }
.market-copy article.on { opacity: 1; transform: none; pointer-events: auto; }
.market-copy p { margin: 0; color: var(--ink-2); font-size: 15px; }
.mk-name { font-family: var(--font-mono); font-size: 12px !important; letter-spacing: .08em; text-transform: uppercase; color: var(--accent) !important; }
@media (max-width: 860px) {
  .markets-head { top: 3vh; right: var(--gutter); }
  .markets-head .body-l { display: none; }
  .market-index { display: none; }
  .market-copy { bottom: 3vh; }
}

/* Service rows with drawn charts */
.service { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; max-width: var(--wrap-wide); margin: 0 auto; padding: clamp(64px, 10vw, 120px) var(--gutter); }
.service:nth-of-type(even) .viz { order: -1; }
.service .copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.service .name, .case .name { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0; }
.viz { background: var(--bg-alt); border-radius: var(--radius); padding: clamp(16px, 3vw, 32px); min-width: 0; }
.viz svg { width: 100%; height: auto; display: block; overflow: visible; }
.viz .grid line { stroke: var(--line); stroke-width: 1; }
.viz .ax, .viz .lbl { fill: var(--ink-3); font: 500 12px var(--font-text); }
.viz .val { fill: var(--ink); font: 600 15px var(--font-text); }
.viz .area { fill: color-mix(in srgb, var(--accent-btn) 12%, transparent); transition: opacity 1.2s .6s; }
.viz .draw { fill: none; stroke: var(--accent-btn); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(.2,.8,.2,1) calc(var(--i, 0) * .2s); }
.viz .pop circle { fill: var(--bg); stroke: var(--accent-btn); stroke-width: 3; }
.viz .pop { transition: opacity .6s calc(.8s + var(--i, 0) * .2s), transform .6s calc(.8s + var(--i, 0) * .2s); transform-box: fill-box; transform-origin: center; }
.viz .bar { fill: var(--accent-btn); rx: 6; transform-box: fill-box; transform-origin: left; transition: transform 1.2s cubic-bezier(.2,.8,.2,1) calc(var(--i, 0) * .15s); }
.viz .bars g:nth-child(2) .bar { fill: #7b4dff; } .viz .bars g:nth-child(3) .bar { fill: #ff9f0a; } .viz .bars g:nth-child(4) .bar { fill: var(--ok); }
.viz .node { fill: var(--tile); stroke: var(--line); }
.viz .hubn { fill: var(--accent-btn); stroke: none; }
.viz .nt { fill: var(--ink); font: 600 14px var(--font-text); }
.viz .ns { fill: var(--ink-3); font: 500 12px var(--font-text); }
.reveal.pending .viz .draw { stroke-dashoffset: 900; }
.reveal.pending .viz .area { opacity: 0; }
.reveal.pending .viz .pop { opacity: 0; transform: scale(.4); }
.reveal.pending .viz .bar { transform: scaleX(0); }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; } .service:nth-of-type(even) .viz { order: 0; } }

/* Hub text on payouts chart */
.viz rect.hubn + text.nt, .viz rect.hubn + text.nt + text.ns { fill: #fff; }

/* Discovery network */
.discovery { padding-block: clamp(64px, 10vw, 120px) 32px; background: var(--bg-alt); position: relative; }
.disc-head { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.disc-stage { height: clamp(380px, 52vw, 600px); max-width: 1200px; cursor: grab; }
.disc-stage.dragging { cursor: grabbing; }
.disc-foot { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.scene-tip { position: absolute; z-index: 5; pointer-events: none; translate: 14px -50%; background: var(--tile); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; box-shadow: var(--shadow); display: grid; gap: 2px; font-size: 13px; white-space: nowrap; }
.scene-tip b { font-weight: 600; }
.scene-tip span { color: var(--ink-2); font-size: 12px; }

/* Case studies */
.cases { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.case { padding-block: clamp(64px, 10vw, 120px); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.case .intro { font-size: clamp(19px, 2vw, 24px); color: var(--ink-2); margin: 0; max-width: 46ch; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 20px; }
.case-grid h4 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; }
.objective { margin: 0; font-size: 19px; color: var(--ink); }
.steps { list-style: none; padding: 0 0 0 22px; margin: 0; display: grid; gap: 12px; position: relative; }
.steps::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); transform-origin: top; transition: transform 1.2s; }
.steps li { position: relative; color: var(--ink-2); transition: opacity .6s calc(.3s + var(--i) * .2s), transform .6s calc(.3s + var(--i) * .2s); }
.steps li::before { content: ""; position: absolute; left: -21px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--accent-btn) 50%, var(--btn-depth)); }
.reveal.pending .steps li { opacity: 0; transform: translateX(-10px); }
.reveal.pending .steps::before { transform: scaleY(0); }
.case-stat { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.case-stat .num { font-family: var(--font-display); font-size: clamp(72px, 12vw, 150px); font-weight: 700; letter-spacing: -0.05em; line-height: .9; font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(4px 6px 0 var(--depth)); }
.case-stat .label { font-size: 19px; color: var(--ink-2); max-width: 22ch; }
@media (max-width: 700px) { .case-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Insights list */
.ilist { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--line); }
.ilist a { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: baseline; padding: 24px 4px; border-bottom: 1px solid var(--line); color: var(--ink); transition: padding .3s, background .3s; }
.ilist a:hover { text-decoration: none; padding-left: 14px; background: var(--bg-alt); }
.ilist .t { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.015em; }
.ilist .meta { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.ilist a::after { content: "\203A"; display: none; }
@media (max-width: 640px) { .ilist a { grid-template-columns: 1fr; gap: 8px; } }

.final .h-hero { font-size: clamp(40px, 7vw, 88px); }

/* Chapter label */
.chapter { position: fixed; left: max(var(--gutter), env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 45; font-size: 12px; padding: 7px 12px 7px 10px; border-radius: 980px;
  background: var(--nav); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); color: var(--ink-2); display: flex; gap: 8px; align-items: center;
  opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s; pointer-events: none; box-shadow: 0 3px 0 var(--depth); }
.chapter.on { opacity: 1; transform: none; }
.chapter b { font-family: var(--font-mono); font-weight: 500; color: var(--accent); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fadein .3s; }
.modal-card { position: relative; width: min(620px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--bg); border-radius: 28px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 40px 80px -20px rgba(0,0,0,.45); display: flex; flex-direction: column; gap: 16px; animation: popin .45s cubic-bezier(.2,.8,.2,1); }
.modal-card form { display: flex; flex-direction: column; gap: 16px; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg-alt); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend { margin-bottom: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 9px 16px; border-radius: 980px; border: 1px solid var(--line); font-size: 14px; box-shadow: 0 3px 0 var(--depth); transition: background .2s, color .2s, transform .15s; }
.seg input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--accent-btn); outline-offset: 2px; }
.modal-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.modal-done { text-align: center; padding: 40px 0; }
body.modal-open { overflow: hidden; }
@keyframes fadein { from { opacity: 0; } }
@keyframes popin { from { opacity: 0; transform: perspective(900px) rotateX(12deg) translateY(30px) scale(.96); } }

/* Full-screen mobile menu */
@media (max-width: 760px) {
  .nav-links { position: fixed; top: calc(48px + env(safe-area-inset-top, 0px)); bottom: 0; left: 0; right: 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
    padding: 24px var(--gutter); border: 0; justify-content: flex-start; }
  .nav-links li { transform: translateY(14px); opacity: 0; animation: menuin .5s cubic-bezier(.2,.8,.2,1) forwards; }
  .nav-links li:nth-child(1) { animation-delay: .04s; } .nav-links li:nth-child(2) { animation-delay: .09s; } .nav-links li:nth-child(3) { animation-delay: .14s; }
  .nav-links li:nth-child(4) { animation-delay: .19s; } .nav-links li:nth-child(5) { animation-delay: .24s; } .nav-links li:nth-child(6) { animation-delay: .29s; }
  .nav-links a { font-size: 28px; border-bottom: 0; padding: 10px 0; }
}
@keyframes menuin { to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .pending [data-split] .w > span, [data-split].pending .w > span { transform: none; opacity: 1; }
  .scroll-cue i::after { animation: none; }
  .modal-card, .modal-backdrop, .nav-links li { animation: none; opacity: 1; transform: none; }
}

/* Dotted world map behind the opening frames */
.bgmap { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; transition: opacity .2s linear; }
.hero, .narrative, .narr { background: transparent; }
.statement, .whisper, .hero .lead { position: relative; }
.whisper { text-shadow: 0 0 18px var(--bg), 0 0 6px var(--bg); }
.hero .lead { text-shadow: 0 0 20px var(--bg), 0 0 8px var(--bg); }

.hero .h-hero[data-split] { text-shadow: 0 1px 0 var(--depth), 0 2px 0 var(--depth), 0 3px 0 var(--depth), 0 4px 0 var(--depth); }

/* Keltasis wordmark on the fallback card */
.pc-brand small { font-size: 1em; font-weight: inherit; letter-spacing: inherit; margin-left: 0; opacity: .6; }

/* Headlines in front of the map: heavier, darker, lifted */
:root { --ink-strong: #0a0a0c; --ink-mid: #45454a; --lift: rgba(16, 24, 48, .2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ink-strong: #ffffff; --ink-mid: #c7c7cc; --lift: rgba(0, 0, 0, .85); } }
:root[data-theme="dark"] { --ink-strong: #ffffff; --ink-mid: #c7c7cc; --lift: rgba(0, 0, 0, .85); }
.hero .h-hero, .statement { font-weight: 700; color: var(--ink-strong); letter-spacing: -0.035em; }
.hero .h-hero[data-split], .statement {
  text-shadow: 0 1px 0 var(--depth), 0 2px 0 var(--depth), 0 3px 0 var(--depth), 0 4px 0 var(--depth), 0 5px 0 var(--depth), 0 16px 22px var(--lift);
}
.hero .lead, .whisper { color: var(--ink-mid); font-weight: 500; text-shadow: none; }
.hero .lead strong { color: var(--ink-strong); font-weight: 700; }
.hero .eyebrow { font-weight: 700; }
.hero .stack, .narr .reveal { position: relative; z-index: 1; }
/* words keep their slide-up reveal, then release the clip so the depth shadow shows in full */
[data-split] .w { overflow: visible; clip-path: inset(-60% -12% -70% -12%); transition: clip-path 0s 1.6s; }
.pending [data-split] .w, [data-split].pending .w { clip-path: inset(-60% -12% 0 -12%); transition: none; }
/* statements arrive from behind and settle forward */
.narr .reveal { transition: opacity 1s cubic-bezier(.2,.8,.2,1), transform 1.2s cubic-bezier(.2,.8,.2,1); transform: perspective(1200px) translateZ(30px); }
.narr .reveal.pending { transform: perspective(1200px) rotateX(16deg) translateY(40px) translateZ(-120px); }
@media (prefers-reduced-motion: reduce) { .narr .reveal, .narr .reveal.pending { transform: none; } [data-split] .w { clip-path: none; } }

/* ===== Keltasis brand: double tick logo (4A ink + electric blue) ===== */
:root { --brand-blue: #1f5bff; --btn-a: #8b5cff; --btn-b: #6a3df0; --btn-ink: #ffffff; --btn-soft: rgba(123, 77, 255, .1); --btn-line: rgba(123, 77, 255, .38); --btn-text: #5a2fe0; --wm-opacity: .05; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --brand-blue: #4d7dff; --btn-soft: rgba(139, 92, 255, .16); --btn-line: rgba(167, 139, 250, .45); --btn-text: #c4b5fd; --wm-opacity: .08; } }
:root[data-theme="dark"] { --brand-blue: #4d7dff; --btn-soft: rgba(139, 92, 255, .16); --btn-line: rgba(167, 139, 250, .45); --btn-text: #c4b5fd; --wm-opacity: .08; }

.logo { gap: 9px; }
.logo-tick { width: 26px; height: 26px; flex: none; }
.logo-tick path { fill: none; stroke: var(--ink); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.logo-tick path.t2 { stroke: var(--brand-blue); }
.logo-word { font-family: "Outfit", var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.035em; line-height: 1; }
.logo-word span { color: var(--brand-blue); }

/* Giant see-through logo behind the home page */
.bg-logo { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.bg-logo svg { position: absolute; width: min(165vw, 1900px); height: auto; left: 50%; top: 50%; margin-left: max(-82vw, -950px); margin-top: max(-60vw, -700px); opacity: var(--wm-opacity); transform: rotate(-6deg); will-change: transform; }
.bg-logo path { fill: none; stroke: var(--ink); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.bg-logo path.t2 { stroke: var(--brand-blue); }
@media (max-width: 760px) { .bg-logo svg { width: 190vw; margin-left: -95vw; margin-top: -70vw; } }

/* Modern purple buttons */
.btn, .btn:hover, .btn:active, .btn.sm, .btn.ghost { box-shadow: none; }
.btn {
  position: relative; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; padding: 14px 24px 14px 26px; border: 0; border-radius: 999px;
  color: var(--btn-ink); background: linear-gradient(135deg, var(--btn-a), var(--btn-b));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 1px 2px rgba(60, 20, 160, .25), 0 12px 28px -10px rgba(106, 61, 240, .65);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, filter .25s; gap: 10px;
}
.btn::after { content: ""; width: 16px; height: 16px; flex: none; background: currentColor; transition: transform .25s cubic-bezier(.2,.8,.2,1);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.btn:hover { background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); filter: brightness(1.07) saturate(1.05); transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 2px 4px rgba(60, 20, 160, .22), 0 18px 34px -12px rgba(106, 61, 240, .75); }
.btn:hover::after { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); filter: brightness(.97); }
.btn.ghost { color: var(--btn-text); background: var(--btn-soft); box-shadow: inset 0 0 0 1px var(--btn-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn.ghost:hover { color: var(--btn-text); background: var(--btn-soft); filter: none; box-shadow: inset 0 0 0 1px var(--btn-a), 0 12px 26px -14px rgba(106, 61, 240, .5); }
.btn.sm { font-size: 13px; padding: 7px 14px; }
.btn.sm::after { display: none; }
button.btn[type="submit"] { padding-inline: 28px; }
.nav-cta, .nav-links .nav-cta { font-size: 12px; font-weight: 600; padding: 6px 14px; color: #fff; background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 16px -8px rgba(106, 61, 240, .7); transition: filter .2s, transform .2s; }
.nav-cta:hover { background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); filter: brightness(1.08); transform: translateY(-1px); }
@media (max-width: 760px) { .nav-links .nav-cta { background: none; box-shadow: none; color: var(--btn-text); padding: 12px 0; } }
.btn:focus-visible, .nav-cta:focus-visible { outline: 2px solid var(--btn-a); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .btn, .btn::after, .nav-cta { transition: none; } .btn:hover { transform: none; } }

/* ===== Hero product composition (dashboard + checkout + live approval) ===== */
.hero { padding-bottom: clamp(24px, 4vw, 48px); }
.hero-ui { position: relative; width: 100%; height: clamp(300px, 46vw, 560px); margin-top: clamp(36px, 5vw, 64px); }
.hui-scale { position: absolute; top: 0; left: 50%; width: 1100px; height: 560px; transform-origin: top center; transform: translateX(-50%) scale(var(--s, 1)); perspective: 2200px; }
.hui-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -6deg)); transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.hui-tilt > * { position: absolute; }
.hui-dash { left: 160px; top: 30px; width: 780px; height: 470px; display: flex; border-radius: 22px; background: var(--tile); border: 1px solid var(--line); overflow: hidden; text-align: left;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 50px 90px -40px rgba(20, 24, 60, .45), 0 18px 40px -24px rgba(20, 24, 60, .25); transform: translateZ(0); }
.hui-side { width: 168px; flex: none; padding: 20px 14px; border-right: 1px solid var(--line); background: var(--bg-alt); display: flex; flex-direction: column; gap: 22px; }
.hui-brand { display: flex; align-items: center; gap: 7px; padding: 0 6px; }
.hui-brand svg { width: 20px; height: 20px; }
.hui-brand path { fill: none; stroke: var(--ink); stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; }
.hui-brand path.t2 { stroke: var(--brand-blue); }
.hui-brand span { font-family: "Outfit", var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: -0.035em; }
.hui-brand i { font-style: normal; color: var(--brand-blue); }
.hui-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 13px; color: var(--ink-2); }
.hui-side li { padding: 8px 10px; border-radius: 9px; }
.hui-side li.on { background: var(--tile); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.hui-main { flex: 1; min-width: 0; padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.hui-top { display: flex; justify-content: space-between; align-items: center; }
.hui-top b { font-size: 17px; }
.hui-range { font-size: 12px; color: var(--ink-2); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); }
.hui-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hui-kpis > div { padding: 12px 14px; border-radius: 14px; background: var(--bg-alt); display: flex; flex-direction: column; gap: 2px; }
.hui-kpis span { font-size: 11.5px; color: var(--ink-2); }
.hui-kpis b { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hui-kpis em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--ok); }
.hui-chart { height: 130px; }
.hui-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hui-chart line { stroke: var(--line); stroke-width: 1; }
.hui-chart .ga { stop-color: var(--brand-blue); stop-opacity: .22; }
.hui-chart .gb { stop-color: var(--brand-blue); stop-opacity: 0; }
.hui-chart .area { fill: url(#huiArea); }
.hui-chart .line { fill: none; stroke: var(--brand-blue); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.hui-chart circle { fill: var(--tile); stroke: var(--brand-blue); stroke-width: 3; vector-effect: non-scaling-stroke; }
.hero-ui.pre .hui-chart .line { stroke-dashoffset: 1; }
.hui-chart .line { transition: stroke-dashoffset 1.8s cubic-bezier(.2,.8,.2,1) .3s; }
.hui-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; font-size: 12px; }
.hui-methods div { display: grid; grid-template-columns: 70px 1fr 44px; gap: 10px; align-items: center; color: var(--ink-2); }
.hui-methods i { height: 6px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.hui-methods i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--brand-blue), var(--btn-a)); transition: width 1.4s cubic-bezier(.2,.8,.2,1) .5s; }
.hero-ui.pre .hui-methods i::after { width: 0; }
.hui-methods b { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }

.hui-pay { left: 0; top: 150px; width: 290px; padding: 20px; border-radius: 22px; background: var(--tile); border: 1px solid var(--line); text-align: left; display: flex; flex-direction: column; gap: 11px;
  box-shadow: 0 60px 90px -40px rgba(20, 24, 60, .55), 0 20px 40px -24px rgba(20, 24, 60, .3); transform: translateZ(110px); }
.hui-pay-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 4px; }
.hui-pay-head span { font-size: 12px; color: var(--ink-2); }
.hui-pay-head b { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.02em; }
.hui-wallets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hui-wallets span { height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.w-apple { background: #000; color: #fff; }
.w-google { background: #fff; color: #1f1f1f; box-shadow: inset 0 0 0 1px #d2d2d7; }
.hui-or { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-3); }
.hui-or::before, .hui-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hui-field { height: 40px; border-radius: 10px; border: 1px solid var(--line); padding: 0 12px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink); background: var(--bg); }
.hui-field i { font-style: italic; font-weight: 800; font-size: 12px; color: #1a1f71; letter-spacing: .02em; }
.hui-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hui-paybtn { height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 14px; background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 12px 24px -10px rgba(106, 61, 240, .6); }
.hui-secure { font-size: 10.5px; color: var(--ink-3); text-align: center; }

.hui-toast { right: 0; top: 0; width: 330px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; text-align: left;
  background: color-mix(in srgb, var(--tile) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line);
  box-shadow: 0 40px 70px -30px rgba(20, 24, 60, .45); transform: translateZ(150px); animation: huiPop 5.2s cubic-bezier(.2,.8,.2,1) infinite; }
.hui-toast .ok { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 15px; }
.hui-toast div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hui-toast b { font-size: 13.5px; }
.hui-toast span { font-size: 11.5px; color: var(--ink-2); }
.hui-toast strong { font-size: 15px; font-variant-numeric: tabular-nums; }
@keyframes huiPop { 0%, 8% { opacity: 0; translate: 0 -10px; } 14%, 86% { opacity: 1; translate: 0 0; } 94%, 100% { opacity: 0; translate: 0 -6px; } }
.hero-ui .hui-feed { left: auto; right: 10px; bottom: 0; top: auto; translate: none; width: 300px; transform: translateZ(70px); animation: none; }

@media (max-width: 760px) {
  .hui-scale { left: 6px; transform-origin: top left; transform: scale(var(--s, .5)); }
  .hui-toast, .hero-ui .hui-feed { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hui-tilt { transition: none; } .hui-toast { animation: none; } .hui-chart .line, .hui-methods i::after { transition: none; } }

/* Payment methods marquee */
.methods-strip { overflow: hidden; padding-block: 18px 6px; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ms-track { display: flex; width: max-content; animation: msScroll 38s linear infinite; }
.methods-strip ul { list-style: none; margin: 0; padding: 0 0 0 56px; display: flex; gap: 56px; }
.methods-strip li { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--ink-3); white-space: nowrap; }
.methods-strip:hover .ms-track { animation-play-state: paused; }
@keyframes msScroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ms-track { animation: none; } }

/* ===== Checkout-style hero ===== */
.hero.hero-co { text-align: left; min-height: min(88vh, 900px); display: flex; flex-direction: column; justify-content: flex-end; padding-block: clamp(72px, 12vh, 140px) clamp(48px, 9vh, 104px); }
.hero-co-in { width: 100%; max-width: var(--wrap-wide); margin: 0 auto; padding-inline: var(--gutter); box-sizing: border-box; display: flex; flex-direction: column; gap: clamp(28px, 4vw, 44px); position: relative; z-index: 1; }
.h-mega { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(54px, 11vw, 164px); line-height: .9; letter-spacing: -0.058em; color: var(--ink-strong);
  text-shadow: 0 1px 0 var(--depth), 0 2px 0 var(--depth), 0 3px 0 var(--depth), 0 4px 0 var(--depth), 0 18px 26px var(--lift); }
.h-mega[data-split] .w { overflow: visible; }
.h-mega .grad-text { text-shadow: none; filter: drop-shadow(0 4px 0 color-mix(in srgb, var(--btn-b) 30%, transparent)); background: linear-gradient(90deg, var(--brand-blue), var(--btn-a)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.hero-co-row { display: flex; flex-wrap: wrap; gap: 24px 56px; align-items: flex-end; justify-content: space-between; }
.hero-co .lead { max-width: 520px; text-align: left; margin: 0; color: var(--ink-mid); font-weight: 500; }
.hero-co .ctas { justify-content: flex-start; margin: 0; }
.hero-live { position: absolute; right: max(var(--gutter), calc(50% - 600px + var(--gutter))); top: clamp(90px, 16vh, 170px); display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; font-size: 13px;
  background: color-mix(in srgb, var(--tile) 85%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(20,24,60,.4); animation: huiPop 6s cubic-bezier(.2,.8,.2,1) infinite; z-index: 1; }
.hero-live .ok { width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 13px; }
.hero-live span:last-child { color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .hero.hero-co { min-height: 0; padding-top: 56px; } .hero-live { display: none; } }

/* ===== Tabbed product section ===== */
.co-product { position: relative; background: var(--bg-alt); padding-block: clamp(72px, 10vw, 128px); border-top: 1px solid var(--line); }
.co-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: clamp(32px, 4vw, 56px); }
.co-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 5.4vw, 72px); line-height: .98; letter-spacing: -0.045em; color: var(--ink-strong); text-wrap: balance; }
.co-title span { color: var(--ink-3); }
.co-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; background: var(--tile); border: 1px solid var(--line); box-shadow: 0 10px 24px -18px rgba(20,24,60,.35); }
.co-tabs button { position: relative; overflow: hidden; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2); background: transparent; border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; transition: color .2s, background .2s; }
.co-tabs button:hover { color: var(--ink); }
.co-tabs button[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 18px -8px rgba(106,61,240,.6); }
.co-tabs button i { position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 1px; background: rgba(255,255,255,.35); transform-origin: left; transform: scaleX(0); display: none; }
.co-tabs button[aria-selected="true"] i { display: block; }
.co-tabs.run button[aria-selected="true"] i { animation: coProg var(--dur, 7s) linear forwards; }
.co-tabs.paused button[aria-selected="true"] i { animation-play-state: paused; }
@keyframes coProg { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.co-tabs button:focus-visible { outline: 2px solid var(--btn-a); outline-offset: 2px; }
.co-panel { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; animation: coIn .7s cubic-bezier(.2,.8,.2,1); }
@keyframes coIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.co-copy { display: flex; flex-direction: column; gap: 16px; }
.co-h { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.035em; color: var(--ink-strong); text-wrap: balance; }
.co-stage { position: relative; width: 100%; height: 470px; min-width: 0; }
.fit-inner { position: absolute; top: 0; left: 50%; transform-origin: top center; transform: translateX(-50%) scale(var(--s, 1)); perspective: 2000px; }
.co-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 7deg)) rotateY(var(--ry, -9deg)); transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.co-tilt > * { position: absolute; }
.co-card { background: var(--tile); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; text-align: left; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 50px 80px -40px rgba(20,24,60,.45), 0 16px 34px -22px rgba(20,24,60,.25); }
.co-card-h { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.co-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.co-card-top b { font-size: 16px; }
.co-chip { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-2); white-space: nowrap; }
.co-chip.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.co-chip.warn { background: rgba(255, 159, 10, .16); color: #b26a00; }
.co-chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* accept */
.co-a-pay { left: 40px; top: 20px; transform: translateZ(60px); }
.co-a-methods { right: 10px; top: 110px; width: 270px; transform: translateZ(120px); gap: 8px; }
.co-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.co-opt em { margin-left: auto; font-style: normal; font-weight: 500; font-size: 12px; color: var(--ink-3); }
.co-opt .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.co-opt.on { border-color: var(--btn-a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--btn-a) 18%, transparent); }
.co-opt.on .dot { border: 5px solid var(--btn-a); }
.co-a-toast { left: 250px; top: 0; transform: translateZ(170px); width: 300px; }
/* route */
.co-r-base { left: 30px; top: 30px; width: 580px; transform: translateZ(40px); }
.co-route { display: grid; grid-template-columns: 130px 1fr 54px 84px; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); font-size: 13.5px; }
.co-route .nm { font-weight: 600; }
.co-route b { font-variant-numeric: tabular-nums; text-align: right; }
.co-route .co-chip { justify-self: end; }
.co-route .bar { height: 6px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.co-route .bar i { position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: var(--ink-3); }
.co-route.on { border-color: var(--btn-a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--btn-a) 16%, transparent); background: color-mix(in srgb, var(--btn-a) 5%, var(--tile)); }
.co-route.on .bar i { background: linear-gradient(90deg, var(--brand-blue), var(--btn-a)); }
.co-rule { font-size: 12px; color: var(--ink-3); padding-top: 2px; }
.co-r-toast { right: 0; top: 360px; width: 320px; transform: translateZ(150px); }
/* protect */
.co-p-base { left: 30px; top: 30px; width: 400px; transform: translateZ(40px); }
.co-gauge { position: relative; display: flex; flex-direction: column; align-items: center; }
.co-gauge svg { width: 260px; height: 143px; }
.co-gauge path { fill: none; stroke-width: 16; stroke-linecap: round; }
.co-gauge .trk { stroke: var(--line); }
.co-gauge .val { stroke: var(--ok); stroke-dasharray: 12 100; transition: stroke-dasharray 1.4s cubic-bezier(.2,.8,.2,1) .2s; }
.co-panel.pre .co-gauge .val { stroke-dasharray: 0 100; }
.co-gauge div { position: absolute; bottom: 4px; text-align: center; display: flex; flex-direction: column; }
.co-gauge b { font-family: var(--font-display); font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.co-gauge span { font-size: 12px; color: var(--ink-2); }
.co-p-dispute { right: 10px; top: 230px; width: 290px; transform: translateZ(140px); gap: 8px; }
.co-kv { display: flex; justify-content: space-between; font-size: 13px; }
.co-kv span { color: var(--ink-2); }
/* payout */
.co-o-base { left: 20px; top: 30px; width: 600px; transform: translateZ(40px); gap: 8px; }
.co-pay-row { display: grid; grid-template-columns: 38px 1fr auto 72px; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); font-size: 13.5px; }
.co-pay-row .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--bg-alt); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--ink-2); }
.co-pay-row div { display: flex; flex-direction: column; min-width: 0; }
.co-pay-row div span { font-size: 12px; color: var(--ink-3); }
.co-pay-row strong { font-variant-numeric: tabular-nums; }
.co-pay-row .co-chip { justify-self: end; }
.co-o-toast { right: 0; top: 330px; width: 330px; transform: translateZ(150px); }
/* report */
.co-tilt .co-dash { left: 20px; top: 20px; transform: translateZ(30px); }
.co-panel.pre .hui-chart .line { stroke-dashoffset: 1; }
.co-panel.pre .hui-methods i::after { width: 0; }
.co-tilt .hui-toast { animation: none; }
@media (max-width: 900px) {
  .co-panel { grid-template-columns: 1fr; }
  .co-tabs { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) { .co-panel { animation: none; } .co-tilt { transition: none; } }
.co-p-base { width: 450px; }
.co-p-dispute { top: 260px; }
@media (max-width: 900px) { .co-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 999px; max-width: 100%; } .co-tabs button { flex: none; } }

/* every control uses the brand type */
button, input, select, textarea { font-family: inherit; }
.modal-x { font-family: var(--font-text); line-height: 1; }
/* stat numbers: inner counter span must not inherit the caption style */
.stat b span { font-size: inherit; color: inherit; font-weight: inherit; display: inline; }

.stat b { text-shadow: 0 1px 0 var(--depth), 0 2px 0 var(--depth), 0 3px 0 var(--depth), 0 12px 18px var(--lift); font-weight: 800; letter-spacing: -0.04em; }
.plan-price { text-shadow: 0 1px 0 var(--depth), 0 2px 0 var(--depth), 0 8px 14px var(--lift); }
.h1, .h2, .h3, .co-h { font-weight: 700; letter-spacing: -0.03em; }
@media (max-width: 760px) { .chapter { display: none !important; } }

/* ===== Audit fixes ===== */
/* readable greys (WCAG AA on white and on the light grey bands) */
:root { --ink-2: #4f4f55; --ink-3: #66666c; --ok: #188038; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ink-2: #b4b4ba; --ink-3: #9a9aa1; --ok: #34c759; } }
:root[data-theme="dark"] { --ink-2: #b4b4ba; --ink-3: #9a9aa1; --ok: #34c759; }
/* hero: approval bubble sits above the headline, never on it */
.hero.hero-co { padding-top: clamp(132px, 17vh, 190px); }
.hero-live { top: clamp(56px, 7vh, 84px); }
/* product tabs fit on small phones without scrolling */
@media (max-width: 480px) {
  .co-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 4px; overflow: visible; width: 100%; box-sizing: border-box; }
  .co-tabs button { font-size: 12.5px; padding: 9px 2px; letter-spacing: -0.02em; white-space: nowrap; }
}
/* market cards: outgoing card leaves before the next one arrives (no overlapping text) */
.market-copy article { transition: opacity .28s ease, transform .28s ease; }
.market-copy article.on { transition: opacity .45s ease .3s, transform .45s cubic-bezier(.2,.8,.2,1) .3s; }
@media (prefers-reduced-motion: reduce) { .market-copy article, .market-copy article.on { transition: none; } }

/* one content grid: every left edge lines up with the logo and the hero */
:root { --wrap: 1200px; }
/* card titles stay darker than the text under them */
.tile p.eyebrow, .tile .eyebrow { color: var(--ink-strong); }
/* code samples fit a phone screen without cutting the first line */
@media (max-width: 480px) { .code pre { font-size: 11px; padding: 16px 14px; } }

/* ===== Independent review fixes ===== */
/* the corner chapter label kept landing on content: removed */
.chapter { display: none !important; }
/* sub-nav button keeps white text */
.subnav-links a.btn { color: #fff; opacity: 1; }
/* payout rows: amount never wraps */
.payout-list div > span { min-width: 0; }
.payout-list b { white-space: nowrap; flex: none; }
/* compare table fits a phone, no hidden columns */
@media (max-width: 640px) {
  table.compare { min-width: 0; font-size: 12.5px; table-layout: fixed; }
  .compare th, .compare td { padding: 10px 6px; word-break: normal; overflow-wrap: break-word; }
  .compare th:first-child, .compare td:first-child { width: 31%; }
}
/* code and JSON wrap on phones instead of being cut */
@media (max-width: 480px) { .code pre { white-space: pre-wrap; overflow-wrap: anywhere; } }
/* service charts stay legible on phones */
@media (max-width: 600px) {
  .viz .ax, .viz .lbl, .viz .ns { font-size: 19px; }
  .viz .val { font-size: 22px; }
  .viz .nt { font-size: 20px; }
}
/* scroll strips show a soft fade where they continue */
@media (max-width: 860px) {
  .stages { -webkit-mask: linear-gradient(90deg, #000 82%, transparent); mask: linear-gradient(90deg, #000 82%, transparent); }
}
@media (max-width: 600px) {
  .methods-strip { -webkit-mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
}
/* balanced headlines, no orphans */
.cta-h { max-width: none; text-wrap: balance; }
@media (max-width: 600px) { .br-d { display: none; } }
p, li, h3, .co-h, .insights a, .insights b { text-wrap: pretty; }
/* price roles look the same in every plan */
.plan-price.custom { font-size: 40px; font-weight: 600; }
/* market card stays in one place as countries change */
.market-copy article { top: 0; bottom: auto; }
/* steps heading lines up with the steps */
.steps-block { max-width: 640px; margin-inline: auto; }
.steps-block .timeline { margin-inline: 0; max-width: none; }
/* crisp headline depth, no muddy halo */
.h-hero { text-shadow: 0 1px 0 var(--depth), 0 2px 0 var(--depth), 0 3px 0 var(--depth), 0 4px 0 var(--depth), 0 10px 14px rgba(16, 24, 48, .1); }
/* phone 3D scenes: less empty space above and below */
@media (max-width: 600px) { .scene-stage:not(.story-stage):not(.markets-stage):not(.disc-stage) { height: clamp(240px, 66vw, 320px); } }
.plan-price.custom { font-size: 34px; }
.market-copy { height: auto; display: grid; align-items: start; }
.market-copy article { position: relative; grid-area: 1 / 1; top: auto; left: auto; right: auto; bottom: auto; }

@media (max-width: 600px) { .viz .lbl { font-size: 17px; } }
.hero:not(.hero-co) .h-hero[data-split] { text-shadow: 0 1px 0 var(--depth), 0 2px 0 var(--depth), 0 3px 0 var(--depth), 0 4px 0 var(--depth), 0 8px 10px rgba(16, 24, 48, .08); }

.cta-h .nw { white-space: nowrap; }

/* ===== Descender fix: gradient words paint their full letters (y, p, g tails) ===== */
.grad-text { padding: .08em .06em .2em; margin: -.08em -.06em -.2em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* headline words drop their reveal mask once revealed, so no letter edge is ever clipped */
[data-split] .w { clip-path: none; transition: none; }
.pending [data-split] .w, [data-split].pending .w { clip-path: inset(-60% -12% 0 -12%); }
.eyebrow.grad { padding-bottom: .18em; margin-bottom: calc(6px - .18em); }

/* ===== Mastercard Gateway (MPGS) ===== */
.mpgs-badge { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin: 0; padding: 9px 16px 9px 12px; border-radius: 980px; font-size: 14px; line-height: 1.35; color: var(--ink-mid); background: color-mix(in srgb, var(--bg) 78%, transparent); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mpgs-badge b { color: var(--ink-strong); font-weight: 700; }
.mpgs-badge svg { width: 20px; height: 20px; flex: none; }
.mpgs-badge svg path { fill: none; stroke: var(--btn-text); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.mpgs-badge svg path.k { stroke: var(--brand-blue); stroke-width: 2.2; }
.mpgs-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.mpgs-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mpgs-grid li { padding: 22px 22px 24px; border-radius: 20px; background: var(--tile); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; box-shadow: 0 3px 0 var(--depth), 0 18px 30px -22px rgba(16, 24, 48, .35); }
.mpgs-grid b { font-size: 17px; font-weight: 700; color: var(--ink-strong); letter-spacing: -0.01em; }
.mpgs-grid b::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 4px; margin-bottom: 14px; background: linear-gradient(90deg, var(--btn-a), var(--brand-blue)); }
.mpgs-grid span { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 860px) { .mpgs-in { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .mpgs-grid { grid-template-columns: 1fr; } .mpgs-badge { font-size: 13px; } }
