/* Kpaisa — marketing site
   Brand: logo orange (#FD6B02) on black, with the platform's peach and deep brown as supporting tones. */

:root {
  --orange: #fd6b02;
  --orange-hover: #ff8226;
  --orange-ink: #b84a00;      /* orange for small text on light surfaces (AA) */
  --peach: #f6e4d7;
  --peach-soft: #fbf1e8;
  --brown: #1f1000;

  --black: #0a0806;
  --night: #120e0a;
  --night-2: #1a140f;
  --night-line: rgba(255, 255, 255, 0.09);
  --night-muted: #a89d92;

  --paper: #faf7f3;
  --card: #ffffff;
  --ink: #18140f;
  --muted: #6b635b;
  --line: #ebe4dc;

  --ok: #2f8f3a;
  --ok-bg: #d5f4dc;
  --bad: #c9201f;
  --bad-bg: #ffdadc;
  --wait: #b5621f;
  --wait-bg: #fae1c5;

  --jazz: #d21f26;
  --easy: #1d9a4c;
  --raast: #0f7a5a;
  --zindigi: #11799b;

  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(24, 20, 15, 0.04), 0 12px 32px -12px rgba(24, 20, 15, 0.12);
  --shadow-night: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1200px;
  --gutter: 24px;
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
code, pre { font-family: var(--mono); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--orange); color: var(--black); padding: 10px 16px; border-radius: 999px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn-primary { background: var(--orange); color: var(--black); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, 0.22); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #2a2018; }
.btn-arrow { transition: transform .2s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background-color .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 8, 6, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--night-line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a {
  color: rgba(255, 255, 255, 0.72); font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background-color .2s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--night-line);
  background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }

.mobile-menu {
  display: none; position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
  background: rgba(10, 8, 6, 0.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--night-line); padding: 12px var(--gutter) 24px;
}
.mobile-menu a:not(.btn) {
  display: block; color: #fff; font-size: 18px; font-weight: 500; padding: 14px 4px;
  border-bottom: 1px solid var(--night-line);
}
.mobile-menu .mobile-cta { display: grid; gap: 10px; margin-top: 20px; }
.menu-open .mobile-menu { display: block; }
.menu-open .site-header { background: rgba(10, 8, 6, 0.97); border-bottom-color: var(--night-line); }

/* ---------- Section scaffolding ---------- */
.section { padding: 120px 0; position: relative; }
.section-dark { background: var(--black); color: #fff; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-ink);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--orange); }
.section-dark .eyebrow { color: var(--orange); }
.h2 { font-size: clamp(34px, 4.6vw, 54px); }
.lead { font-size: 19px; color: var(--muted); margin-top: 18px; max-width: 640px; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-dark .lead { color: var(--night-muted); }
.accent { color: var(--orange); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--black); color: #fff;
  padding: calc(var(--header-h) + 72px) 0 112px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 35%, rgba(253, 107, 2, 0.22), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, rgba(246, 205, 170, 0.08), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px; border-radius: 999px; font-size: 14px; color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--night-line); margin-bottom: 28px;
}
.hero-badge .pulse { position: relative; width: 22px; height: 22px; border-radius: 999px; background: rgba(253, 107, 2, 0.18); display: grid; place-items: center; }
.hero-badge .pulse::after { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--orange); box-shadow: 0 0 0 0 rgba(253, 107, 2, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(253, 107, 2, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(253, 107, 2, 0); } 100% { box-shadow: 0 0 0 0 rgba(253, 107, 2, 0); } }

.hero h1 { font-size: clamp(44px, 6.4vw, 80px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
.hero h1 .accent { display: block; }
.hero-sub { font-size: 19px; color: var(--night-muted); margin-top: 24px; max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; color: rgba(255, 255, 255, 0.7); font-size: 15px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--orange); flex: none; }

/* Speed lines — the logo's motion marks, reused as a motif */
.speedlines { position: absolute; pointer-events: none; display: grid; gap: 14px; }
.speedlines span { display: block; height: 10px; border-radius: 999px; background: linear-gradient(90deg, transparent, rgba(253, 107, 2, 0.5)); }
.hero .speedlines { left: -40px; bottom: 64px; width: 420px; opacity: 0.55; }
.hero .speedlines span:nth-child(1) { width: 62%; margin-left: 30%; }
.hero .speedlines span:nth-child(2) { width: 88%; }
.hero .speedlines span:nth-child(3) { width: 54%; margin-left: 24%; }
@media (prefers-reduced-motion: no-preference) {
  .speedlines span { animation: dash 3.6s cubic-bezier(.4, 0, .2, 1) infinite; transform-origin: right center; }
  .speedlines span:nth-child(2) { animation-delay: .25s; }
  .speedlines span:nth-child(3) { animation-delay: .5s; }
}
@keyframes dash { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(0.82); opacity: .6; } }

/* Hero product visual */
.hero-visual { position: relative; padding: 24px 0 24px 24px; }
.dash {
  position: relative; background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-night);
}
.dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dash-title { font-size: 15px; font-weight: 600; }
.dash-title small { display: block; font-size: 12px; font-weight: 400; color: var(--night-muted); }
.env-toggle { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); font-size: 12px; font-weight: 600; }
.env-toggle span { padding: 4px 12px; border-radius: 999px; color: var(--night-muted); }
.env-toggle .on { background: var(--orange); color: var(--black); }
.dash-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-card { border-radius: 16px; padding: 14px 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--night-line); }
.stat-card .label { font-size: 12px; color: var(--night-muted); }
.stat-card .amount { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat-card .amount small { font-size: 12px; font-weight: 500; color: var(--night-muted); margin-right: 4px; letter-spacing: 0; }
.stat-card .note { font-size: 12px; margin-top: 2px; }
.stat-card.peach { background: var(--peach); border-color: transparent; color: var(--brown); }
.stat-card.peach .label, .stat-card.peach .amount small { color: #7a5a40; }
.note.ok { color: #4ade80; }
.stat-card.peach .note.ok { color: var(--ok); }
.note.wait { color: #f0a35e; }

.bars { display: flex; align-items: flex-end; gap: 8px; height: 76px; margin: 18px 2px 6px; }
.bars span { flex: 1; border-radius: 6px 6px 3px 3px; background: rgba(238, 188, 148, 0.28); height: var(--h); transition: height .6s; }
.bars span.hi { background: var(--orange); }
.bars-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--night-muted); padding: 0 2px; }

.tx-head { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 8px; font-size: 13px; font-weight: 600; }
.tx-head span { font-size: 12px; font-weight: 400; color: var(--night-muted); }
.tx-list { display: grid; gap: 2px; min-height: 192px; }
.tx-row {
  display: grid; grid-template-columns: 30px 1fr auto auto; align-items: center; gap: 12px;
  padding: 9px 8px; border-radius: 12px; font-size: 13px;
}
.tx-row:first-child { background: rgba(255, 255, 255, 0.03); }
.tx-row .who { min-width: 0; }
.tx-row .who b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-row .who small { color: var(--night-muted); font-size: 11px; font-family: var(--mono); }
.tx-row .amt { font-variant-numeric: tabular-nums; font-weight: 500; }
.tx-enter { animation: txIn .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes txIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.glyph {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  font-size: 14px; font-weight: 700; flex: none;
}
.glyph-jazz { background: #fde7e7; color: var(--jazz); }
.glyph-easy { background: #e3f7ea; color: var(--easy); }
.glyph-raast { background: #e6f4ef; color: var(--raast); }
.glyph-zindigi { background: #e6f2f7; color: var(--zindigi); }
.glyph-bank { background: #efe9e3; color: var(--brown); }
.glyph svg { width: 16px; height: 16px; }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 24px; min-width: 76px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap;
}
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-wait { background: var(--wait-bg); color: var(--wait); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.section-dark .pill-ok, .hero .pill-ok { background: #15301f; color: #4ade80; }
.section-dark .pill-wait, .hero .pill-wait { background: #33240f; color: #f0a35e; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--ink); border-radius: 18px; padding: 12px 16px 12px 12px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.55); font-size: 13px; line-height: 1.35;
}
.float-card b { display: block; font-size: 14px; }
.float-card small { color: var(--muted); }
.float-approve { left: -28px; top: 32%; }
.float-webhook { right: -18px; bottom: -6px; background: var(--peach); }
.float-webhook .glyph { background: var(--black); color: var(--orange); font-family: var(--mono); font-size: 12px; }
.float-webhook code { font-size: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .float-approve { animation: bob 6s ease-in-out infinite; }
  .float-webhook { animation: bob 6s ease-in-out infinite 3s; }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Rails strip ---------- */
.rails { padding: 56px 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.rails-inner { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
.rails-label { font-size: 15px; color: var(--muted); text-align: center; line-height: 1.4; }
.rails-label b { color: var(--ink); font-weight: 600; }
.rails-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; flex: 1; }
.rail {
  display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 18px; padding: 14px 16px;
  border: 1px solid var(--line);
}
.rail .glyph { width: 38px; height: 38px; border-radius: 12px; font-size: 17px; }
.rail .glyph svg { width: 20px; height: 20px; }
.rail b { display: block; font-size: 15px; font-weight: 600; line-height: 1.2; }
.rail small { font-size: 13px; color: var(--muted); }

/* ---------- Payments (method explorer) ---------- */
.explorer { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.explorer .section-head { margin-bottom: 36px; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; background: #f0ebe5; margin-bottom: 32px; }
.tab {
  border: 0; background: transparent; cursor: pointer; padding: 10px 18px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--muted); transition: background-color .2s, color .2s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--black); color: #fff; }
.panel[hidden] { display: none; }
.panel h3 { font-size: 30px; }
.panel > p { color: var(--muted); margin-top: 12px; font-size: 18px; }
.steps { counter-reset: step; display: grid; gap: 16px; margin-top: 28px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px;
  background: var(--peach); color: var(--brown); font-weight: 600; font-size: 15px;
}
.steps b { display: block; font-weight: 600; }
.steps span { color: var(--muted); font-size: 16px; }
.steps code { font-size: 13px; color: var(--ink); background: #f0ebe5; padding: 1px 6px; border-radius: 5px; }
.method-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
.method-tag code { background: #f0ebe5; color: var(--ink); padding: 2px 8px; border-radius: 6px; font-size: 13px; }

.phone-stage { position: relative; display: grid; place-items: center; padding: 24px 0; }
.phone-stage::before {
  content: ""; position: absolute; width: 440px; max-width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(253, 107, 2, 0.18), transparent);
}
.phone {
  position: relative; width: 300px; max-width: 100%; border-radius: 44px; padding: 12px; background: var(--black);
  box-shadow: 0 40px 80px -24px rgba(24, 20, 15, 0.45);
}
.phone-screen { position: relative; border-radius: 34px; background: #fff; overflow: hidden; min-height: 560px; display: flex; flex-direction: column; }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; border-radius: 999px; background: var(--black); z-index: 2; }
.checkout-head { padding: 52px 20px 18px; background: var(--paper); border-bottom: 1px solid var(--line); }
.checkout-head small { color: var(--muted); font-size: 12px; }
.checkout-head .store { font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; }
.checkout-head .total { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; margin-top: 8px; }
.checkout-head .total small { font-size: 14px; font-weight: 500; margin-right: 4px; color: var(--muted); }
.screen { flex: 1; display: flex; flex-direction: column; }
.screen[hidden] { display: none; }
.checkout-body { flex: 1; padding: 24px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.checkout-body .title { font-weight: 600; font-size: 17px; line-height: 1.3; margin-top: 18px; }
.checkout-body .sub { color: var(--muted); font-size: 13px; margin-top: 6px; line-height: 1.45; }
.checkout-foot { padding: 0 20px 22px; }
.checkout-foot .powered { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: var(--muted); margin-top: 12px; }
.checkout-foot .powered img { height: 12px; width: auto; }
.screen-btn { width: 100%; height: 44px; border-radius: 999px; border: 0; background: var(--black); color: #fff; font-weight: 600; font-size: 14px; }
.screen-btn.soft { background: var(--peach); color: var(--brown); }

.spinner { position: relative; width: 84px; height: 84px; display: grid; place-items: center; margin-top: 12px; }
.spinner::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 4px solid var(--peach-soft); border-top-color: var(--c, var(--orange)); animation: spin 1.1s linear infinite; }
.spinner .glyph { width: 44px; height: 44px; border-radius: 14px; font-size: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
.countdown { margin-top: 18px; font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; background: var(--paper); padding: 6px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; }

.qr { width: 168px; height: 168px; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: #fff; margin-top: 4px; }
.qr svg { width: 100%; height: 100%; }
.waiting { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12px; color: var(--wait); background: var(--wait-bg); padding: 6px 12px; border-radius: 999px; }
.waiting::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.otp { display: flex; gap: 8px; margin-top: 18px; }
.otp span { width: 36px; height: 46px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; font-size: 20px; font-weight: 600; background: var(--paper); }
.otp span.filled { border-color: var(--ink); background: #fff; }
.otp span.caret { border-color: var(--orange); background: #fff; position: relative; }
.otp span.caret::after { content: ""; width: 2px; height: 20px; background: var(--orange); animation: blink 1s steps(1) infinite; }

/* ---------- Payouts ---------- */
.payouts { background: var(--card); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.check-list { display: grid; gap: 18px; margin-top: 32px; }
.check-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.check-list .tick { width: 28px; height: 28px; border-radius: 999px; background: var(--peach); color: var(--brown); display: grid; place-items: center; }
.check-list .tick svg { width: 15px; height: 15px; }
.check-list b { display: block; font-weight: 600; }
.check-list span { color: var(--muted); font-size: 16px; }
.banks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.banks span { font-size: 14px; padding: 6px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--muted); }

.payout-card {
  background: var(--paper); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.payout-card h3 { font-size: 20px; display: flex; align-items: center; justify-content: space-between; }
.payout-card h3 small { font-size: 13px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; background: #f0ebe5; border-radius: 999px; margin: 20px 0; }
.segmented span { text-align: center; padding: 8px 0; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); }
.segmented span.on { background: var(--black); color: #fff; }
.field { margin-bottom: 16px; }
.field label, .field .label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.fake-input {
  display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: 15px; font-variant-numeric: tabular-nums;
}
.fake-input .muted { color: var(--muted); }
.fake-input .i { width: 16px; height: 16px; color: var(--muted); }
.countdown .i { width: 14px; height: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.payout-timeline { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line); font-size: 13px; }
.payout-timeline .step { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.payout-timeline .step i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.payout-timeline .step.done { color: var(--ink); }
.payout-timeline .step.done i { background: var(--orange); }
.payout-timeline .step.final i { background: var(--ok); }
.payout-timeline .bar { flex: 1; height: 2px; margin: 0 10px; background: linear-gradient(90deg, var(--orange), var(--line)); border-radius: 2px; }

/* ---------- Platform bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; overflow: hidden; display: flex; flex-direction: column;
}
.tile.wide { grid-column: span 2; }
.tile h3 { font-size: 22px; }
.tile p { color: var(--muted); margin-top: 8px; font-size: 16px; }
.tile-visual { margin-top: auto; padding-top: 24px; }
.tile-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--peach); color: var(--brown); display: grid; place-items: center; margin-bottom: 20px; }
.tile-icon svg { width: 22px; height: 22px; }

.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mini-stat { background: var(--paper); border-radius: 16px; padding: 14px; border: 1px solid var(--line); }
.mini-stat.peach { background: var(--peach); border-color: transparent; }
.mini-stat .label { font-size: 12px; color: var(--muted); line-height: 1.3; }
.mini-stat .amount { font-size: 20px; font-weight: 600; margin-top: 6px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mini-stat .amount small { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-right: 3px; }
.mini-stat .note { font-size: 11px; margin-top: 2px; }
.mini-stat .note.ok { color: var(--ok); }
.mini-stat .note.wait { color: var(--wait); }

.search-mock { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.search-mock svg { width: 16px; height: 16px; }
.search-mock code { color: var(--ink); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 6px 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.chip i { font-style: normal; font-size: 11px; font-weight: 600; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; }
.chip.ok { border-color: #b8e6c2; } .chip.ok i { background: var(--ok-bg); color: var(--ok); }
.chip.bad { border-color: #f5c2c4; } .chip.bad i { background: var(--bad-bg); color: var(--bad); }
.chip.wait { border-color: #f1cfa6; } .chip.wait i { background: var(--wait-bg); color: var(--wait); }

.ledger { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.ledger th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 0 0 8px; }
.ledger td { padding: 9px 0; border-top: 1px solid var(--line); }
.ledger th:not(:first-child), .ledger td:not(:first-child) { text-align: right; }
.ledger .plus { color: var(--ok); }
.ledger .minus { color: var(--bad); }
.live-badge { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; font-size: 10px; font-weight: 600; color: var(--ok); background: var(--ok-bg); padding: 2px 7px; border-radius: 999px; vertical-align: 1px; }
.live-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.tree { display: grid; grid-template-columns: auto 1fr; gap: 0 20px; align-items: center; }
.tree-root { background: var(--black); color: #fff; border-radius: 18px; padding: 14px 18px; font-size: 14px; }
.tree-root b { display: block; font-size: 15px; }
.tree-root small { color: var(--night-muted); font-size: 12px; }
.tree-root .earn { display: inline-flex; margin-top: 8px; font-size: 12px; color: var(--black); background: var(--orange); padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.tree-children { position: relative; display: grid; gap: 10px; padding-left: 22px; }
.tree-children::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 2px; background: var(--line); border-radius: 2px; }
.tree-child { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 14px; }
.tree-child::before { content: ""; position: absolute; left: -22px; top: 50%; width: 22px; height: 2px; background: var(--line); }
.tree-child small { color: var(--muted); font-size: 12px; }
.tree-child .pill { min-width: 0; }

.roles { display: grid; gap: 8px; }
.role { display: flex; align-items: center; justify-content: space-between; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 14px; }
.role small { display: block; color: var(--muted); font-size: 12px; font-family: var(--mono); }
.switch { width: 38px; height: 22px; border-radius: 999px; background: var(--line); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: left .2s; }
.switch.on { background: var(--orange); }
.switch.on::after { left: 19px; }

.mode-mock .env-toggle { background: #f0ebe5; }
.mode-mock .env-toggle span { color: var(--muted); }
.mode-mock .env-toggle .on.test { background: var(--wait-bg); color: var(--wait); }
.mode-banner { margin-top: 12px; display: flex; gap: 10px; align-items: flex-start; background: #fff4ea; border: 1px solid #f6d3b4; color: #8a4310; border-radius: 14px; padding: 10px 14px; font-size: 13px; line-height: 1.45; }
.mode-banner svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

.inquiry { display: grid; gap: 10px; }
.inquiry .fake-input { height: 42px; background: var(--paper); font-size: 13px; font-family: var(--mono); }
.inquiry-result { display: flex; align-items: center; justify-content: space-between; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 13px; }
.inquiry-result small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- Developers ---------- */
.dev-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.dev-features { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 44px; }
.dev-feature svg { width: 22px; height: 22px; color: var(--orange); margin-bottom: 12px; }
.dev-feature b { display: block; font-weight: 600; font-size: 17px; }
.dev-feature span { color: var(--night-muted); font-size: 15px; display: block; margin-top: 4px; }
.dev-feature code { font-size: 13px; color: #fff; background: rgba(255, 255, 255, 0.08); padding: 1px 6px; border-radius: 5px; }

.code-window { position: sticky; top: calc(var(--header-h) + 24px); background: var(--night); border: 1px solid var(--night-line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-night); }
.code-bar { display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--night-line); background: rgba(255, 255, 255, 0.02); }
.code-tab { border: 0; background: transparent; color: var(--night-muted); font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.code-tab:hover { color: #fff; }
.code-tab[aria-selected="true"] { background: rgba(255, 255, 255, 0.08); color: #fff; }
.copy-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--night-line); background: transparent; color: var(--night-muted); font-size: 12px; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.copy-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.copy-btn svg { width: 14px; height: 14px; }
.code-window pre { margin: 0; padding: 22px 24px 26px; font-size: 13.5px; line-height: 1.7; color: #e9e2da; overflow-x: auto; tab-size: 2; }
.code-window pre[hidden] { display: none; }
.code-endpoint { display: flex; align-items: center; gap: 10px; padding: 14px 24px 0; font-family: var(--mono); font-size: 13px; color: var(--night-muted); }
.code-endpoint .verb { color: var(--black); background: var(--orange); font-weight: 700; font-size: 11px; padding: 3px 8px; border-radius: 6px; }
.tk-k { color: #ff9d57; }      /* keywords / flags */
.tk-s { color: #b6e3a1; }      /* strings */
.tk-p { color: #f6e4d7; }      /* properties */
.tk-c { color: #7d7268; }      /* comments */
.tk-n { color: #f2c38b; }      /* numbers / literals */

/* ---------- Steps (go live) ---------- */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.journey-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; position: relative; }
.journey-step .num { font-size: 14px; font-weight: 600; color: var(--orange-ink); display: flex; align-items: center; gap: 10px; }
.journey-step .num::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--orange), transparent); }
.journey-step h3 { font-size: 21px; margin-top: 18px; }
.journey-step p { color: var(--muted); font-size: 16px; margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: 19px; font-weight: 500;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .plus { position: relative; width: 32px; height: 32px; border-radius: 999px; background: var(--peach); flex: none; transition: background-color .2s; }
.faq-list summary .plus::before, .faq-list summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--brown); transform: translate(-50%, -50%); transition: transform .25s; }
.faq-list summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-list details[open] summary .plus { background: var(--orange); }
.faq-list details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-list details p { padding: 0 52px 24px 0; color: var(--muted); font-size: 17px; }

/* ---------- Contact ---------- */
.contact-panel {
  position: relative; overflow: hidden; background: var(--black); color: #fff; border-radius: 36px;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; padding: 64px;
}
.contact-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 0% 100%, rgba(253, 107, 2, 0.22), transparent 70%);
}
.contact-panel > * { position: relative; }
.contact-panel .h2 { font-size: clamp(36px, 4.4vw, 56px); }
.contact-panel .lead { color: var(--night-muted); }
.contact-items { display: grid; gap: 12px; margin-top: 36px; }
.contact-item {
  display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center;
  padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--night-line);
  transition: background-color .2s, border-color .2s;
}
a.contact-item:hover { background: rgba(253, 107, 2, 0.08); border-color: rgba(253, 107, 2, 0.35); }
.contact-item .ci-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--orange); color: var(--black); display: grid; place-items: center; }
.contact-item .ci-icon svg { width: 22px; height: 22px; }
.contact-item small { display: block; font-size: 13px; color: var(--night-muted); }
.contact-item b { display: block; font-weight: 500; font-size: 17px; line-height: 1.4; }
.contact-item address { font-style: normal; }
.map-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; color: var(--orange); font-weight: 500; }
.map-link svg { width: 14px; height: 14px; }
.map-frame { margin-top: 12px; border-radius: 20px; overflow: hidden; border: 1px solid var(--night-line); height: 200px; background: var(--night-2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.4) contrast(1.05); }

.form-card { background: #fff; color: var(--ink); border-radius: 28px; padding: 32px; }
.form-card h3 { font-size: 24px; }
.form-card > p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.form-grid .full { grid-column: 1 / -1; }
.input-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.input-group label .req { color: var(--orange-ink); }
.input-group input, .input-group select, .input-group textarea {
  width: 100%; height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--paper); font-size: 16px; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.input-group textarea { height: 120px; padding: 12px 16px; resize: vertical; line-height: 1.5; }
.input-group select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236b635b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.input-group input:focus, .input-group select:focus, .input-group textarea:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(253, 107, 2, 0.14); }
.input-group input[aria-invalid="true"], .input-group textarea[aria-invalid="true"] { border-color: var(--bad); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.form-foot small { color: var(--muted); font-size: 13px; max-width: 260px; line-height: 1.45; }
.form-status { margin-top: 14px; font-size: 14px; color: var(--ok); min-height: 1px; }
.form-status.err { color: var(--bad); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--night-muted); padding: 80px 0 36px; margin-top: 120px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand img { height: 34px; width: auto; }
.footer-brand p { margin-top: 18px; max-width: 300px; font-size: 15px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 0; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; font-size: 15px; }
.footer-col a:hover { color: var(--orange); }
.footer-col address { font-style: normal; font-size: 15px; line-height: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: 14px; }

/* ---------- Reveal on scroll (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .header-actions .btn-ghost-light { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-grid, .explorer, .split, .dev-grid, .faq-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 72px; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; padding-left: 0; }
  .float-approve { left: -12px; }
  .float-webhook { right: -8px; }
  .explorer { gap: 48px; }
  .code-window { position: relative; top: 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.wide { grid-column: span 2; }
  .journey { grid-template-columns: 1fr 1fr; }
  .contact-panel { grid-template-columns: 1fr; padding: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rails-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --header-h: 64px; }
  body { font-size: 16px; }
  .section { padding: 84px 0; }
  .section-head { margin-bottom: 40px; }
  .lead, .hero-sub { font-size: 17px; }
  .brand img { height: 26px; }
  .header-actions > .btn-primary { display: none; }
  .hero { padding: calc(var(--header-h) + 48px) 0 84px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero .speedlines { width: 260px; bottom: 28px; }
  .dash { padding: 16px; }
  .stat-card .amount { font-size: 19px; }
  .tx-row { grid-template-columns: 30px 1fr auto; }
  .tx-row .amt { display: none; }
  .float-approve { top: auto; bottom: -34px; left: 0; }
  .float-webhook { display: none; }
  .rails-list { grid-template-columns: 1fr 1fr; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; border-radius: 24px; width: 100%; }
  .bento { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .tile { padding: 24px; }
  .mini-stats { grid-template-columns: 1fr 1fr; }
  .tree { grid-template-columns: 1fr; gap: 16px; }
  .journey { grid-template-columns: 1fr; }
  .dev-features { grid-template-columns: 1fr; gap: 24px; }
  .code-window pre { font-size: 12.5px; padding: 18px 16px 22px; }
  .code-endpoint { padding: 14px 16px 0; }
  .faq-list summary { font-size: 17px; }
  .faq-list details p { padding-right: 0; }
  .contact-panel { padding: 32px 20px; border-radius: 28px; gap: 32px; }
  .form-card { padding: 24px 18px; border-radius: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .payout-card { padding: 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .payout-timeline { font-size: 12px; }
  .payout-timeline .bar { margin: 0 6px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer { margin-top: 84px; }
}

@media (max-width: 400px) {
  .rails-list { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: 1fr; }
}
