/* ============================================================
   FastPay — Retell-style dark, glow, smooth animations
   Geist + Geist Mono · deep dark base · brand-red glow accents
   ============================================================ */

:root {
  --bg:          #ffffff;
  --bg-elev-1:   #f7f8fb;
  --bg-elev-2:   #eef1f6;
  --bg-card:     #ffffff;
  --border:      #e6e8ee;
  --border-soft: #eef0f4;
  --border-loud: #d1d5db;

  --text:        #0a0c14;
  --text-mid:    #4b5163;
  --text-muted:  #6b7280;
  --text-dim:    #9ca3af;

  --brand:       #1d49ff;
  --brand-deep:  #0d31cc;
  --brand-light: #4a72ff;
  --brand-glow:  rgba(29, 73, 255, 0.20);
  --brand-soft:  rgba(29, 73, 255, 0.06);

  --danger:      #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.08);
  --danger-text: #b91c1c;

  --green:       #16a34a;
  --green-soft:  rgba(22, 163, 74, 0.09);
  --amber:       #d97706;
  --amber-soft:  rgba(217, 119, 6, 0.09);
  --indigo:      #4f46e5;
  --indigo-soft: rgba(79, 70, 229, 0.09);

  --shadow-sm:   0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md:   0 4px 12px -2px rgba(15, 23, 42, 0.05), 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-lg:   0 24px 48px -12px rgba(15, 23, 42, 0.08), 0 8px 16px -4px rgba(15, 23, 42, 0.04);

  --sans:  'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'Geist Mono', 'SF Mono', Menlo, Consolas, monospace;

  --container: 1200px;
  --gutter: 28px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  letter-spacing: -0.005em;
  overflow-x: hidden;
  position: relative;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color .15s var(--ease);
}

code, .mono {
  font-family: var(--mono);
  font-size: 0.92em;
  letter-spacing: -0.005em;
}
code {
  background: var(--bg-elev-2);
  border: 1px solid var(--border-soft);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.85em;
  color: var(--brand-deep);
}

/* ===== Atmosphere ============================================ */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
  animation: float 14s ease-in-out infinite;
}
.bg-glow-1 {
  top: -15%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(29,73,255,0.16), transparent 70%);
}
.bg-glow-2 {
  bottom: 5%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(120,90,255,0.10), transparent 70%);
  animation-delay: -7s;
}
@keyframes float {
  0%,100% { transform: translate(0, 0) scale(1); }
  50%     { transform: translate(40px, -30px) scale(1.05); }
}
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15,23,42,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse at top, black 25%, transparent 70%);
  mask-image: radial-gradient(ellipse at top, black 25%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body > *:not(.bg-glow):not(.bg-grid) { position: relative; z-index: 1; }

/* ===== Type & utils ========================================= */
.muted { color: var(--text-muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding: 6px 12px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand-glow);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  50% { opacity: 0.5; transform: scale(0.85); }
}

.grad {
  background: linear-gradient(120deg, #8aa6ff 0%, var(--brand) 45%, #4a72ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

.dot-sep {
  display: inline-block;
  width: 3px;
  height: 3px;
  background: var(--text-dim);
  border-radius: 50%;
  margin: 0 2px;
}

/* ===== Buttons ============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font: 500 14px/1 var(--sans);
  letter-spacing: -0.005em;
  color: var(--text);
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all .2s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn:hover {
  background: var(--bg-elev-2);
  border-color: var(--border-loud);
  transform: translateY(-1px);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-lg {
  padding: 14px 24px;
  font-size: 14.5px;
  border-radius: 10px;
}
.btn .arrow {
  display: inline-block;
  transition: transform .25s var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: linear-gradient(180deg, #4a72ff 0%, var(--brand) 100%);
  color: #fff;
  border-color: var(--brand-deep);
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 8px 24px -8px var(--brand-glow);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #5479ff 0%, var(--brand-deep) 100%);
  border-color: var(--brand);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 12px 32px -8px var(--brand-glow);
}

.btn-glow {
  position: relative;
}
.btn-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--brand-glow);
  filter: blur(14px);
  z-index: -1;
  opacity: 0.65;
  transition: opacity .25s var(--ease);
}
.btn-glow:hover::after { opacity: 1; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-loud);
}
.btn-ghost:hover {
  background: var(--bg-elev-1);
  border-color: var(--text-muted);
}

.btn-block { width: 100%; }
.btn-setup {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 8px 24px -8px rgba(22, 163, 74, 0.40);
}
.btn-setup:hover {
  background: #15803d;
  border-color: #15803d;
  box-shadow: 0 12px 28px -8px rgba(22, 163, 74, 0.50);
  transform: translateY(-1px);
}
.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
  box-shadow: 0 8px 24px -8px rgba(255,82,82,0.35);
}
.btn-danger:hover {
  background: #ff6b6b;
  border-color: #ff6b6b;
  color: #fff;
}

form.inline { display: inline; }

/* ===== Brand ================================================ */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 26px;
  height: 26px;
  display: inline-flex;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 0 22px var(--brand-glow), 0 1px 0 rgba(255,255,255,0.12) inset;
  flex-shrink: 0;
}
.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.brand-name {
  color: var(--text);
  letter-spacing: -0.025em;
}
.brand-center {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  font-size: 22px;
}

/* ===== Nav ================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--gutter);
  gap: 32px;
}
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 14px;
}
.nav-links a {
  color: var(--text-mid);
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}
.nav-cta .btn { padding: 9px 16px; font-size: 13.5px; }

/* ===== Hero ================================================= */
.hero {
  padding: 80px 0 24px;
  text-align: center;
  position: relative;
}
.hero-inner { max-width: 880px; margin: 0 auto; }
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 12.5px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-mid);
  margin-bottom: 28px;
  opacity: 0;
  animation: rise .8s var(--ease) .05s forwards;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}
.live-sep { color: var(--text-dim); }
#live-counter { color: var(--text); font-weight: 500; transition: color .3s; }

.hero-title {
  font-size: clamp(44px, 7.5vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
  margin: 0 0 22px;
}
.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  animation: rise 1s var(--ease) forwards;
}
.hero-title .line:nth-child(1) { animation-delay: .1s; }
.hero-title .line:nth-child(2) { animation-delay: .22s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-mid);
  margin: 0 auto 36px;
  max-width: 600px;
  font-weight: 400;
  opacity: 0;
  animation: rise .9s var(--ease) .35s forwards;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise .9s var(--ease) .5s forwards;
}

.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  opacity: 0;
  animation: rise .9s var(--ease) .65s forwards;
}

/* ===== Logo strip =========================================== */
.logos {
  padding: 56px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, transparent 0%, rgba(247,248,251,0.7) 50%, transparent 100%);
}
.logos-kicker {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 0 0 28px;
  font-family: var(--mono);
}
.logos-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
}
.logos-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: scroll 38s linear infinite;
}
.logos-track span {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.015em;
  white-space: nowrap;
  opacity: 0.75;
  transition: opacity .25s, color .25s;
}
.logos-track:hover span { opacity: 0.6; }
.logos-track span:hover { opacity: 1; color: var(--text); }
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ===== Sections ============================================= */
.section { padding: 96px 0; }
.section-head {
  margin-bottom: 56px;
  max-width: 720px;
}
.section-head-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head .kicker { margin-bottom: 18px; }
.section-head h2 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 16px;
}
.section-head p {
  margin: 0;
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.5;
}
.section-head-center p { margin: 0 auto; max-width: 540px; }

/* ===== Demo widget ========================================== */
.section-demo { padding-top: 24px; }
.demo {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}
.demo-aura {
  position: absolute;
  inset: -40px;
  background: radial-gradient(60% 60% at 50% 40%, var(--brand-soft), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.demo-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.demo-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(15,23,42,0.018);
}
.demo-tab {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 4px 0;
  text-transform: uppercase;
}
.demo-tab.active { color: var(--text); }
.demo-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.demo-status.success { color: var(--green); }
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  box-shadow: 0 0 8px currentColor;
  animation: pulse 1.6s ease-in-out infinite;
}
.demo-status.success .status-dot { background: var(--green); }

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  min-height: 380px;
}
.demo-form {
  padding: 28px 28px 28px;
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.demo-flow {
  padding: 22px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(15,23,42,0.015);
}
.demo-hint {
  font-size: 11px;
  color: var(--text-dim);
  margin: 4px 0 0;
  letter-spacing: 0.04em;
  text-align: center;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.field input {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  padding: 11px 14px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.field input:focus {
  border-color: var(--brand);
  background: var(--bg-elev-1);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field-with-suffix {
  position: relative;
}
.field-with-suffix input { padding-right: 40px; }
.field-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.flow-head {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-soft);
}
.flow-time-head { color: var(--text-dim); }

.flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.flow-steps li {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  font-size: 13.5px;
  color: var(--text-dim);
  border-bottom: 1px dashed rgba(15,23,42,0.08);
  transition: color .25s var(--ease);
}
.flow-steps li:last-child { border-bottom: 0; }
.flow-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  position: relative;
  margin-left: 5px;
  transition: background .25s, box-shadow .25s;
}
.flow-time {
  color: var(--text-dim);
  font-size: 11.5px;
  transition: color .25s;
}
.flow-text code {
  background: var(--brand-soft);
  border: 1px solid rgba(29,73,255,0.18);
  color: var(--brand-deep);
  font-size: 11.5px;
}
.flow-steps li.active {
  color: var(--text);
}
.flow-steps li.active .flow-mark {
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
  animation: pulse 1s ease-in-out infinite;
}
.flow-steps li.active .flow-time { color: var(--amber); }
.flow-steps li.done {
  color: var(--text-mid);
}
.flow-steps li.done .flow-mark {
  background: var(--green);
  box-shadow: 0 0 10px rgba(74,222,128,0.6);
  animation: none;
}
.flow-steps li.done .flow-time { color: var(--green); }

.flow-success {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.flow-success.show {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(74,222,128,0.35);
  background: linear-gradient(180deg, rgba(74,222,128,0.06), transparent 80%);
  box-shadow: 0 0 32px rgba(74,222,128,0.12);
}
.success-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(74,222,128,0.15);
  border: 1.5px solid var(--green);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.success-ring svg { width: 18px; height: 18px; }
.success-body { line-height: 1.4; }
.success-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.01em;
}
.success-meta {
  font-size: 12.5px;
  color: var(--text-mid);
  margin-top: 2px;
}
.success-meta strong { color: var(--text); font-weight: 500; }

/* ===== FAQ accordion ======================================== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .2s var(--ease);
}
.faq-item:hover { border-color: var(--border-loud); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-loud);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-mid);
  flex-shrink: 0;
  transition: transform .25s var(--ease), background .2s, border-color .2s, color .2s;
}
.faq-item[open] summary::after {
  content: '−';
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 0 18px var(--brand-glow);
}
.faq-item p {
  margin: 0;
  padding: 0 22px 22px;
  font-size: 14.5px;
  color: var(--text-mid);
  line-height: 1.6;
}
.section-faq { padding-bottom: 60px; }
.t-comment { color: #5a6478; font-style: italic; }
.t-key     { color: #c4b5fd; }
.t-string  { color: #fca5a5; }
.t-num     { color: #fbbf24; }

/* ===== Features grid ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card-feature {
  position: relative;
  padding: 28px 26px 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.card-feature:hover { box-shadow: var(--shadow-md); }
.card-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 0% 0%, var(--brand-soft), transparent 50%);
  opacity: 0;
  transition: opacity .25s var(--ease);
  pointer-events: none;
}
.card-feature:hover {
  border-color: var(--border-loud);
  transform: translateY(-2px);
}
.card-feature:hover::before { opacity: 1; }
.card-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-soft), transparent);
  border: 1px solid var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--brand);
}
.card-feature-icon svg { width: 20px; height: 20px; }
.card-feature h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  position: relative;
}
.card-feature p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-mid);
  line-height: 1.55;
  position: relative;
}

/* ===== Steps flow =========================================== */
.steps-flow {
  display: grid;
  grid-template-columns: 1fr 56px 1fr 56px 1fr;
  gap: 0;
  align-items: stretch;
}
.step-flow {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--brand);
  letter-spacing: 0.05em;
  padding: 4px 10px;
  background: var(--brand-soft);
  border: 1px solid rgba(29,73,255,0.25);
  border-radius: 999px;
  margin-bottom: 16px;
}
.step-flow h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.step-flow p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-mid);
  line-height: 1.5;
}
.step-connect {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.step-connect-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--border), var(--border-loud), var(--border));
  position: relative;
}
.step-connect-line::after {
  content: '→';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--brand);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

/* ===== Pricing ============================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.pricing-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.card-price {
  position: relative;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
}
.card-price:hover { border-color: var(--border-loud); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-price-pop {
  border-color: rgba(29,73,255,0.45);
  background:
    linear-gradient(180deg, rgba(29,73,255,0.06) 0%, transparent 50%),
    var(--bg-card);
  box-shadow: 0 24px 80px -30px var(--brand-glow);
}
.card-price-pop:hover { border-color: var(--brand); }
.card-price-setup {
  border-color: rgba(22, 163, 74, 0.35);
  background:
    linear-gradient(180deg, rgba(22, 163, 74, 0.06) 0%, transparent 50%),
    var(--bg-card);
  box-shadow: 0 24px 80px -30px rgba(22, 163, 74, 0.18);
}
.card-price-setup:hover { border-color: var(--green); box-shadow: 0 24px 80px -20px rgba(22, 163, 74, 0.25); }
.card-price-flag {
  position: absolute;
  top: -1px;
  right: 24px;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--brand);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 0 14px var(--brand-glow);
}
.card-price-flag-green {
  background: var(--green);
  box-shadow: 0 0 14px rgba(22, 163, 74, 0.35);
}
.card-price-head h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.card-price-head p { margin: 0; font-size: 13.5px; }
.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 600;
  letter-spacing: -0.035em;
  border-top: 1px solid var(--border-soft);
  padding-top: 22px;
}
.price-amt { font-size: 44px; line-height: 1; }
.price-cur { font-size: 24px; color: var(--text-mid); margin-left: 2px; }
.price-per {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 6px;
  letter-spacing: 0;
  font-weight: 400;
}
.price-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.price-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-mid);
}
.check {
  color: var(--green);
  font-weight: 600;
  flex-shrink: 0;
  font-size: 13px;
}

/* ===== Setup offer banner ================================== */
/* ===== Setup add-on row ===================================== */
.setup-addon {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  background: var(--bg-elev-1);
  border: 1.5px dashed var(--border-loud);
  border-radius: var(--r-lg);
  cursor: pointer;
  user-select: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.setup-addon:hover {
  border-color: var(--green);
  background: rgba(22,163,74,0.04);
}
.setup-addon.is-checked {
  border-style: solid;
  border-color: var(--green);
  background: rgba(22,163,74,0.06);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.10);
}
.setup-addon-check { flex-shrink: 0; }
.setup-addon-check input { display: none; }
.setup-addon-box {
  display: block;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-loud);
  border-radius: 6px;
  transition: background .15s, border-color .15s;
  position: relative;
}
.setup-addon-box::after {
  content: '';
  position: absolute;
  top: 4px; left: 7px;
  width: 6px; height: 10px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity .15s;
}
.setup-addon.is-checked .setup-addon-box {
  background: var(--green);
  border-color: var(--green);
}
.setup-addon.is-checked .setup-addon-box::after { opacity: 1; }
.setup-addon-body {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.setup-addon-body strong {
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}
.setup-addon-body span {
  font-size: 13px;
}
.setup-addon-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}
.setup-addon-amt {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .setup-addon { flex-wrap: wrap; }
  .setup-addon-price { align-items: flex-start; }
}

/* ===== Card selected state ================================== */
.card-price.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29,73,255,0.12), var(--shadow-md);
}
.card-price.is-selected .js-pick,
.btn-selected {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}

/* ===== Cart summary ========================================= */
.cart-summary {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .2s;
}
.cart-empty {
  padding: 20px 28px;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}
.cart-lines {
  padding: 20px 28px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 14.5px;
}
.cart-line-addon { color: var(--text-mid); font-size: 13.5px; }
.cart-line-name { flex: 1; }
.cart-line-price {
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.cart-line-per {
  font-weight: 400;
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 3px;
}
.cart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 28px 20px;
  border-top: 1px solid var(--border-soft);
  margin-top: 16px;
}
.cart-total-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cart-total-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-family: var(--mono);
}
.cart-total-amt {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}
.cart-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 12px 24px;
}
@media (max-width: 600px) {
  .cart-footer { flex-direction: column; align-items: stretch; }
  .cart-cta { justify-content: center; }
}

/* ===== Final CTA card ======================================= */
.section-cta { padding: 60px 0 100px; }
.cta-card {
  position: relative;
  text-align: center;
  padding: 64px 32px;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elev-1) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-card-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 200%;
  background: radial-gradient(50% 30% at 50% 50%, var(--brand-soft), transparent 70%);
  pointer-events: none;
}
.cta-card h2 {
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  position: relative;
  line-height: 1.05;
}
.cta-card p {
  margin: 0 auto 32px;
  max-width: 500px;
  color: var(--text-mid);
  font-size: 17px;
  position: relative;
}
.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  position: relative;
}

/* ===== Footer =============================================== */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 56px 0 32px;
  background: var(--bg-elev-1);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand p { margin: 14px 0 0; max-width: 30ch; line-height: 1.55; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-cols h4 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
  font-weight: 500;
  font-family: var(--mono);
}
.footer-cols a {
  display: block;
  color: var(--text-mid);
  font-size: 14px;
  padding: 4px 0;
  transition: color .15s;
}
.footer-cols a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   LANDING — Vercel/Scale-inspired product surface
   ============================================================ */
body.landing {
  --bg:          #050506;
  --bg-elev-1:   #0b0b0d;
  --bg-elev-2:   #121216;
  --bg-card:     #0d0d10;
  --border:      #26262c;
  --border-soft: #1a1a1f;
  --border-loud: #3a3a42;

  --text:        #f5f5f7;
  --text-mid:    #b8bac4;
  --text-muted:  #898b96;
  --text-dim:    #5d606a;

  --brand:       #f5f5f7;
  --brand-deep:  #d9d9df;
  --brand-light: #ffffff;
  --brand-glow:  rgba(255,255,255,0.14);
  --brand-soft:  rgba(255,255,255,0.06);

  --green:       #39d98a;
  --green-soft:  rgba(57,217,138,0.10);
  --amber:       #f4b84c;
  --amber-soft:  rgba(244,184,76,0.10);

  --shadow-sm:   none;
  --shadow-md:   0 16px 36px rgba(0,0,0,0.28);
  --shadow-lg:   0 38px 90px rgba(0,0,0,0.42);

  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), transparent 540px),
    radial-gradient(900px 420px at 50% -160px, rgba(255,255,255,0.11), transparent 68%),
    var(--bg);
  color: var(--text);
}

body.landing,
body.landing * {
  letter-spacing: 0;
}

body.landing::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 72%);
  mask-image: linear-gradient(180deg, black 0%, transparent 72%);
}

body.landing .bg-glow { display: none; }
body.landing .bg-grid {
  opacity: 0.18;
  background-size: 88px 88px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.08) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse at top, black 8%, transparent 64%);
  mask-image: radial-gradient(ellipse at top, black 8%, transparent 64%);
}

body.landing .nav {
  background: rgba(5,5,6,0.72);
  border-bottom-color: rgba(255,255,255,0.08);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

body.landing .nav-inner {
  padding-top: 14px;
  padding-bottom: 14px;
}

body.landing .brand-mark {
  border-radius: 6px;
  box-shadow: none;
}

body.landing .brand-mark svg rect:first-child { fill: #ffffff; }
body.landing .brand-mark svg rect:not(:first-child),
body.landing .brand-mark svg g { fill: #050506; }

body.landing .nav-links {
  gap: 24px;
  font-size: 13px;
}

body.landing .nav-links a,
body.landing .logos-kicker,
body.landing .small,
body.landing .muted {
  color: var(--text-muted);
}

body.landing .nav-links a:hover,
body.landing .footer-cols a:hover {
  color: var(--text);
}

body.landing .btn {
  border-radius: 7px;
  transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}

body.landing .btn-primary {
  background: #f5f5f7;
  color: #050506;
  border-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset;
}

body.landing .btn-primary:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #050506;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18) inset, 0 18px 42px rgba(255,255,255,0.10);
}

body.landing .btn-glow::after { display: none; }

body.landing .btn-ghost {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-color: rgba(255,255,255,0.14);
}

body.landing .btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.28);
}

body.landing .hero {
  padding: 92px 0 36px;
  text-align: left;
}

body.landing .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: 56px;
}

body.landing .hero-copy {
  max-width: 640px;
}

body.landing .badge-live {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
  color: var(--text-mid);
  border-radius: 7px;
  padding: 7px 10px;
  margin-bottom: 26px;
}

body.landing .live-dot {
  background: var(--green);
  box-shadow: 0 0 18px rgba(57,217,138,0.55);
}

body.landing #live-counter {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

body.landing .hero-title {
  font-size: 84px;
  line-height: 0.95;
  font-weight: 650;
  margin-bottom: 24px;
  max-width: 720px;
  text-wrap: balance;
}

body.landing .hero-title .line {
  transform: translateY(18px);
}

body.landing .hero-lead {
  margin: 0 0 34px;
  max-width: 620px;
  color: var(--text-mid);
  font-size: 18px;
}

body.landing .hero-cta {
  justify-content: flex-start;
  margin-bottom: 34px;
}

body.landing .hero-trust {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 12px;
}

body.landing .dot-sep {
  background: rgba(255,255,255,0.22);
}

body.landing .hero-visual {
  min-width: 0;
  position: relative;
  opacity: 0;
  transform: translateY(18px);
  animation: rise .9s var(--ease) .34s forwards;
  perspective: 1200px;
  min-height: 520px;
  display: flex;
  align-items: center;
}

body.landing .hero-visual::before {
  content: '';
  position: absolute;
  inset: 32px 10px;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.46;
  background:
    conic-gradient(from 220deg, transparent 0deg, rgba(57,217,138,0.34) 46deg, transparent 92deg, transparent 180deg, rgba(255,255,255,0.18) 228deg, transparent 286deg, transparent 360deg);
  filter: blur(0.2px);
  animation: orbit-spin 18s cubic-bezier(.32,.72,0,1) infinite;
}

body.landing .hero-visual::after {
  content: '';
  position: absolute;
  inset: 84px 76px;
  pointer-events: none;
  border-radius: 50%;
  border: 1px solid rgba(57,217,138,0.22);
  box-shadow: 0 0 60px rgba(57,217,138,0.08);
  animation: orbit-breathe 4.8s cubic-bezier(.32,.72,0,1) infinite alternate;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes orbit-breathe {
  from { transform: scale(0.96); opacity: 0.32; }
  to { transform: scale(1.03); opacity: 0.68; }
}

body.landing .payment-orbit {
  position: absolute;
  inset: -58px -44px;
  width: calc(100% + 88px);
  height: calc(100% + 116px);
  pointer-events: none;
  opacity: 1;
}

body.landing .payment-events {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

body.landing .payment-event {
  position: absolute;
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(245,245,247,0.74);
  background: rgba(255,255,255,0.065);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 20px 60px rgba(0,0,0,0.26);
}

body.landing .payment-event::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 8px;
  background: var(--green);
  box-shadow: 0 0 14px rgba(57,217,138,0.7);
}

body.landing .payment-event-a {
  top: 6px;
  left: 18px;
}

body.landing .payment-event-b {
  top: 118px;
  right: 18px;
}

body.landing .payment-event-c {
  bottom: -6px;
  left: 72px;
}

body.landing .console-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.018)),
    #08080a;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform-style: preserve-3d;
}

body.landing .console-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
  background:
    linear-gradient(115deg, transparent 0%, transparent 34%, rgba(255,255,255,0.08) 43%, transparent 52%, transparent 100%);
  transform: translateX(-120%);
  animation: console-scan 4.6s cubic-bezier(.32,.72,0,1) infinite;
}

@keyframes console-scan {
  0%, 18% { transform: translateX(-120%); opacity: 0; }
  38% { opacity: 0.68; }
  68%, 100% { transform: translateX(120%); opacity: 0; }
}

body.landing .console-top {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.035);
}

body.landing .console-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.26);
}

body.landing .console-path {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}

body.landing .console-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 20px;
}

body.landing .console-code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  padding: 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
}

body.landing .console-code pre {
  margin: 12px 0 0;
  white-space: pre-wrap;
  color: #d7d7dc;
  line-height: 1.58;
}

body.landing .code-muted { color: var(--green); }
body.landing .code-path { color: #ffffff; }

body.landing .console-result {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
  background: rgba(57,217,138,0.08);
  border: 1px solid rgba(57,217,138,0.22);
  transition: background .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}

body.landing .console-result[data-status="sent"] {
  background: rgba(244,184,76,0.085);
  border-color: rgba(244,184,76,0.24);
}

body.landing .console-result[data-status="refund"] {
  background: rgba(255,255,255,0.075);
  border-color: rgba(255,255,255,0.17);
}

body.landing .console-result strong {
  font-size: 28px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

body.landing .console-result > span:last-child {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}

body.landing .status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(57,217,138,0.16);
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  border: 1px solid rgba(57,217,138,0.28);
  transition: color .5s var(--ease), background .5s var(--ease), border-color .5s var(--ease);
}

body.landing .status-pill[data-status="sent"] {
  background: rgba(244,184,76,0.16);
  color: var(--amber);
  border-color: rgba(244,184,76,0.28);
}

body.landing .status-pill[data-status="refund"] {
  background: rgba(255,255,255,0.12);
  color: var(--text);
  border-color: rgba(255,255,255,0.24);
}

body.landing .console-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.10);
}

body.landing .console-metrics div {
  padding: 16px;
  border-right: 1px solid rgba(255,255,255,0.10);
}

body.landing .console-metrics div:last-child {
  border-right: 0;
}

body.landing .console-metrics strong,
body.landing .console-metrics span {
  display: block;
}

body.landing .console-metrics strong {
  font-size: 22px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

body.landing .console-metrics span {
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 12px;
}

body.landing .logos {
  padding: 34px 0;
  background: rgba(255,255,255,0.018);
  border-color: rgba(255,255,255,0.08);
}

body.landing .logos-track-wrap {
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}

body.landing .logos-track {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  animation: none;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
}

body.landing .logos-track span {
  color: var(--text-mid);
  font-size: 18px;
  font-family: var(--mono);
  font-weight: 500;
  padding: 18px;
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.018);
}

body.landing .logos-track span:nth-child(4n) {
  border-right: 0;
}

body.landing .logos-track span:nth-last-child(-n + 4) {
  border-bottom: 0;
}

body.landing .section {
  padding: 108px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

body.landing .section-demo {
  padding-top: 82px;
}

body.landing .section-head {
  max-width: 760px;
}

body.landing .section-head h2 {
  font-size: 52px;
  line-height: 1.02;
  font-weight: 650;
  text-wrap: balance;
}

body.landing .section-head p {
  color: var(--text-mid);
}

body.landing .kicker {
  border-radius: 7px;
  background: rgba(255,255,255,0.045);
  border-color: rgba(255,255,255,0.12);
  color: var(--text-muted);
}

body.landing .grad {
  background: none;
  color: var(--text);
}

body.landing .demo-aura { display: none; }

body.landing .demo-card,
body.landing .card-feature,
body.landing .step-flow,
body.landing .card-price,
body.landing .setup-addon,
body.landing .cart-summary,
body.landing .cta-card,
body.landing .faq-item {
  border-radius: 12px;
  background: rgba(255,255,255,0.035);
  border-color: rgba(255,255,255,0.10);
  box-shadow: none;
}

body.landing .demo-tabs,
body.landing .demo-flow,
body.landing .flow-success,
body.landing .field input,
body.landing .cart-empty,
body.landing .footer,
body.landing .cta-card {
  background: rgba(255,255,255,0.025);
}

body.landing .field input {
  color: var(--text);
  border-color: rgba(255,255,255,0.11);
}

body.landing .field input:focus {
  border-color: rgba(255,255,255,0.40);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}

body.landing .features-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

body.landing .card-feature:nth-child(1),
body.landing .card-feature:nth-child(2) {
  grid-column: span 2;
}

body.landing .card-feature {
  padding: 26px;
}

body.landing .card-feature:hover,
body.landing .card-price:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.24);
  box-shadow: 0 20px 42px rgba(0,0,0,0.28);
}

body.landing .card-feature::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent 56%);
}

body.landing .card-feature-icon {
  color: var(--text);
  background: rgba(255,255,255,0.045);
  border-color: rgba(255,255,255,0.12);
  border-radius: 8px;
}

body.landing .step-num {
  color: var(--text);
  background: rgba(255,255,255,0.055);
  border-color: rgba(255,255,255,0.12);
  border-radius: 6px;
}

body.landing .step-connect-line {
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.28), rgba(255,255,255,0.08));
}

body.landing .step-connect-line::after {
  background: var(--bg);
  border-color: rgba(255,255,255,0.12);
  color: var(--text);
}

body.landing .card-price-pop {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03)),
    var(--bg-card);
  border-color: rgba(255,255,255,0.30);
}

body.landing .card-price-flag {
  border-radius: 6px;
  background: #f5f5f7;
  color: #050506;
  box-shadow: none;
}

body.landing .price {
  border-top-color: rgba(255,255,255,0.08);
}

body.landing .price-amt {
  font-size: 42px;
  font-variant-numeric: tabular-nums;
}

body.landing .check {
  color: var(--green);
}

body.landing .setup-addon {
  border-style: solid;
}

body.landing .setup-addon:hover,
body.landing .setup-addon.is-checked {
  background: rgba(57,217,138,0.08);
  border-color: rgba(57,217,138,0.28);
  box-shadow: none;
}

body.landing .cart-footer,
body.landing .cart-lines,
body.landing .footer-bottom,
body.landing .flow-head,
body.landing .demo-tabs,
body.landing .demo-form {
  border-color: rgba(255,255,255,0.08);
}

body.landing .flow-steps li {
  border-bottom-color: rgba(255,255,255,0.08);
}

body.landing .cta-card {
  padding: 72px 32px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02)),
    #08080a;
}

body.landing .cta-card h2 {
  font-size: 48px;
  line-height: 1.04;
  font-weight: 650;
  text-wrap: balance;
}

body.landing .cta-card-glow { display: none; }

body.landing .footer {
  border-top-color: rgba(255,255,255,0.08);
}

body.motion-ready.landing .motion-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .85s cubic-bezier(.32,.72,0,1), transform .85s cubic-bezier(.32,.72,0,1);
}

body.motion-ready.landing .motion-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  body.landing *,
  body.landing *::before,
  body.landing *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  body.landing .payment-orbit,
  body.landing .payment-events {
    display: none;
  }

  body.motion-ready.landing .motion-reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1000px) {
  body.landing .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  body.landing .hero-visual {
    min-height: 470px;
  }

  body.landing .hero-title {
    font-size: 68px;
  }

  body.landing .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  body.landing .hero {
    padding-top: 64px;
  }

  body.landing .hero-title {
    font-size: 48px;
  }

  body.landing .hero-lead {
    font-size: 16px;
  }

  body.landing .hero-cta .btn,
  body.landing .hero-cta {
    width: 100%;
  }

  body.landing .hero-cta .btn {
    justify-content: center;
  }

  body.landing .hero-trust {
    gap: 9px;
  }

  body.landing .console-metrics {
    grid-template-columns: 1fr;
  }

  body.landing .hero-visual {
    min-height: 500px;
    overflow: hidden;
    border-radius: 14px;
  }

  body.landing .payment-orbit {
    inset: -30px -18px;
    width: calc(100% + 36px);
    height: calc(100% + 60px);
  }

  body.landing .payment-events {
    display: none;
  }

  body.landing .console-metrics div {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.10);
  }

  body.landing .console-metrics div:last-child {
    border-bottom: 0;
  }

  body.landing .section {
    padding: 82px 0;
  }

  body.landing .section-head h2 {
    font-size: 36px;
  }

  body.landing .cta-card h2 {
    font-size: 34px;
  }

  body.landing .features-grid {
    grid-template-columns: 1fr;
  }

  body.landing .logos-track {
    grid-template-columns: repeat(2, 1fr);
  }

  body.landing .logos-track span:nth-child(4n) {
    border-right: 1px solid rgba(255,255,255,0.08);
  }

  body.landing .logos-track span:nth-child(2n) {
    border-right: 0;
  }

  body.landing .logos-track span:nth-last-child(-n + 4) {
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  body.landing .logos-track span:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  body.landing .card-feature:nth-child(1),
  body.landing .card-feature:nth-child(2) {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  body.landing .hero-title {
    font-size: 42px;
  }

  body.landing .console-body,
  body.landing .console-code,
  body.landing .console-result {
    padding: 14px;
  }

  body.landing .price-amt {
    font-size: 36px;
  }
}

/* ============================================================
   LANDING — clear white/blue payment product
   ============================================================ */
body.landing {
  --bg:          #f7faff;
  --bg-elev-1:   #eef5ff;
  --bg-elev-2:   #e5efff;
  --bg-card:     #ffffff;
  --border:      #d8e5fb;
  --border-soft: #eaf1ff;
  --border-loud: #b8cdf5;

  --text:        #07111f;
  --text-mid:    #354154;
  --text-muted:  #667085;
  --text-dim:    #98a2b3;

  --brand:       #1d49ff;
  --brand-deep:  #1236c7;
  --brand-light: #5278ff;
  --brand-glow:  rgba(29,73,255,0.18);
  --brand-soft:  rgba(29,73,255,0.075);

  --green:       #16a34a;
  --green-soft:  rgba(22,163,74,0.09);
  --amber:       #d97706;
  --amber-soft:  rgba(217,119,6,0.10);

  --shadow-sm:   0 1px 2px rgba(29,73,255,0.05), 0 1px 3px rgba(15,23,42,0.06);
  --shadow-md:   0 16px 40px -22px rgba(29,73,255,0.35), 0 8px 22px -18px rgba(15,23,42,0.18);
  --shadow-lg:   0 34px 90px -44px rgba(29,73,255,0.42), 0 18px 46px -34px rgba(15,23,42,0.22);

  background:
    radial-gradient(900px 460px at 76% 12%, rgba(29,73,255,0.13), transparent 68%),
    radial-gradient(720px 360px at 8% 18%, rgba(82,120,255,0.10), transparent 64%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 52%, #f3f7ff 100%);
  color: var(--text);
}

body.landing::before {
  opacity: 0.52;
  background-image:
    linear-gradient(rgba(29,73,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,73,255,0.055) 1px, transparent 1px);
}

body.landing .bg-grid {
  opacity: 0.34;
  background-image:
    linear-gradient(to right, rgba(29,73,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(29,73,255,0.06) 1px, transparent 1px);
}

body.landing .nav {
  background: rgba(255,255,255,0.82);
  border-bottom-color: rgba(29,73,255,0.10);
}

body.landing .brand-mark svg rect:first-child { fill: var(--brand); }
body.landing .brand-mark svg rect:not(:first-child),
body.landing .brand-mark svg g { fill: #ffffff; }

body.landing .nav-links a,
body.landing .logos-kicker,
body.landing .small,
body.landing .muted {
  color: var(--text-muted);
}

body.landing .nav-links a:hover,
body.landing .footer-cols a:hover {
  color: var(--brand-deep);
}

body.landing .btn-primary {
  background: linear-gradient(180deg, #4e73ff 0%, var(--brand) 100%);
  color: #ffffff;
  border-color: #1236c7;
  box-shadow: 0 1px 0 rgba(255,255,255,0.24) inset, 0 16px 34px -22px rgba(29,73,255,0.75);
}

body.landing .btn-primary:hover {
  background: linear-gradient(180deg, #5e80ff 0%, #183ce0 100%);
  color: #ffffff;
  border-color: #1d49ff;
}

body.landing .btn-ghost {
  background: rgba(255,255,255,0.72);
  color: var(--text);
  border-color: rgba(29,73,255,0.16);
}

body.landing .btn-ghost:hover {
  background: #ffffff;
  border-color: rgba(29,73,255,0.32);
  color: var(--brand-deep);
}

body.landing .badge-live,
body.landing .kicker {
  background: rgba(255,255,255,0.82);
  border-color: rgba(29,73,255,0.14);
  color: var(--text-mid);
  box-shadow: 0 12px 32px -26px rgba(29,73,255,0.42);
}

body.landing .hero-title,
body.landing .section-head h2,
body.landing .cta-card h2 {
  color: var(--text);
}

body.landing .hero-lead,
body.landing .section-head p,
body.landing .card-feature p,
body.landing .step-flow p,
body.landing .price-features li,
body.landing .faq-item p,
body.landing .cta-card p {
  color: var(--text-mid);
}

body.landing .hero-trust {
  color: var(--text-muted);
}

body.landing .dot-sep {
  background: rgba(29,73,255,0.28);
}

body.landing .hero-visual::before {
  opacity: 0.40;
  background:
    conic-gradient(from 220deg, transparent 0deg, rgba(29,73,255,0.25) 46deg, transparent 92deg, transparent 180deg, rgba(82,120,255,0.16) 228deg, transparent 286deg, transparent 360deg);
}

body.landing .hero-visual::after {
  border-color: rgba(29,73,255,0.16);
  box-shadow: 0 0 70px rgba(29,73,255,0.10);
}

body.landing .payment-event {
  color: var(--brand-deep);
  background: rgba(255,255,255,0.86);
  border-color: rgba(29,73,255,0.18);
  box-shadow: 0 18px 44px -28px rgba(29,73,255,0.42);
}

body.landing .payment-event::before {
  background: var(--brand);
  box-shadow: 0 0 14px rgba(29,73,255,0.46);
}

body.landing .console-shell {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,249,255,0.96)),
    #ffffff;
  border-color: rgba(29,73,255,0.14);
  box-shadow: var(--shadow-lg);
}

body.landing .console-shell::before {
  background:
    linear-gradient(115deg, transparent 0%, transparent 34%, rgba(29,73,255,0.08) 43%, transparent 52%, transparent 100%);
}

body.landing .console-top {
  background: rgba(240,246,255,0.86);
  border-bottom-color: rgba(29,73,255,0.12);
}

body.landing .console-dot {
  background: rgba(29,73,255,0.28);
}

body.landing .console-path,
body.landing .console-result > span:last-child,
body.landing .console-metrics span {
  color: var(--text-muted);
}

body.landing .console-code {
  color: var(--text);
  background: #f7faff;
  border-color: rgba(29,73,255,0.12);
}

body.landing .console-code pre {
  color: #25314a;
}

body.landing .code-muted,
body.landing .code-path {
  color: var(--brand-deep);
}

body.landing .console-result {
  background: rgba(22,163,74,0.08);
  border-color: rgba(22,163,74,0.22);
}

body.landing .console-result[data-status="sent"] {
  background: rgba(29,73,255,0.08);
  border-color: rgba(29,73,255,0.22);
}

body.landing .console-result[data-status="webhook"] {
  background: rgba(82,120,255,0.08);
  border-color: rgba(82,120,255,0.22);
}

body.landing .status-pill {
  background: rgba(22,163,74,0.11);
  color: #15803d;
  border-color: rgba(22,163,74,0.22);
}

body.landing .status-pill[data-status="sent"],
body.landing .status-pill[data-status="webhook"] {
  background: rgba(29,73,255,0.11);
  color: var(--brand-deep);
  border-color: rgba(29,73,255,0.22);
}

body.landing .logos,
body.landing .section {
  background: transparent;
  border-color: rgba(29,73,255,0.08);
}

body.landing .logos-track {
  border-color: rgba(29,73,255,0.12);
  background: rgba(255,255,255,0.58);
}

body.landing .logos-track span {
  color: var(--text-mid);
  background: rgba(255,255,255,0.50);
  border-color: rgba(29,73,255,0.10);
}

body.landing .demo-card,
body.landing .card-feature,
body.landing .step-flow,
body.landing .card-price,
body.landing .setup-addon,
body.landing .cart-summary,
body.landing .cta-card,
body.landing .faq-item,
body.landing .flow-success {
  background: rgba(255,255,255,0.88);
  border-color: rgba(29,73,255,0.12);
  box-shadow: var(--shadow-sm);
}

body.landing .demo-tabs,
body.landing .demo-flow,
body.landing .field input,
body.landing .cart-empty {
  background: rgba(247,250,255,0.88);
}

body.landing .field input {
  color: var(--text);
  border-color: rgba(29,73,255,0.14);
}

body.landing .field input:focus {
  border-color: rgba(29,73,255,0.48);
  box-shadow: 0 0 0 3px rgba(29,73,255,0.10);
}

body.landing .card-feature-icon,
body.landing .step-num {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: rgba(29,73,255,0.16);
}

body.landing .card-feature:hover,
body.landing .card-price:hover {
  border-color: rgba(29,73,255,0.28);
  box-shadow: var(--shadow-md);
}

body.landing .card-price-pop {
  background:
    linear-gradient(180deg, rgba(29,73,255,0.07), rgba(255,255,255,0.90)),
    #ffffff;
  border-color: rgba(29,73,255,0.34);
}

body.landing .card-price-flag {
  background: var(--brand);
  color: #ffffff;
}

body.landing .price,
body.landing .cart-footer,
body.landing .cart-lines,
body.landing .footer-bottom,
body.landing .flow-head,
body.landing .demo-tabs,
body.landing .demo-form,
body.landing .flow-steps li {
  border-color: rgba(29,73,255,0.10);
}

body.landing .setup-addon:hover,
body.landing .setup-addon.is-checked {
  background: rgba(29,73,255,0.06);
  border-color: rgba(29,73,255,0.30);
}

body.landing .cta-card {
  background:
    radial-gradient(640px 240px at 50% 0%, rgba(29,73,255,0.12), transparent 70%),
    rgba(255,255,255,0.92);
}

body.landing .footer {
  background: rgba(255,255,255,0.68);
  border-top-color: rgba(29,73,255,0.10);
}

@media (max-width: 760px) {
  body.landing .logos-track span:nth-child(4n) {
    border-right-color: rgba(29,73,255,0.10);
  }

  body.landing .logos-track span:nth-last-child(-n + 4) {
    border-bottom-color: rgba(29,73,255,0.10);
  }
}

/* ============================================================
   AUTH (login)
   ============================================================ */
body.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px var(--gutter);
}
.auth-shell {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}
.auth-card {
  position: relative;
  padding: 40px 36px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.auth-card-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 80%;
  background: radial-gradient(50% 50% at 50% 50%, var(--brand-soft), transparent 70%);
  pointer-events: none;
}
.auth-card .kicker {
  margin-bottom: 18px;
  position: relative;
}
.auth-title {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 10px;
  position: relative;
}
.auth-sub {
  margin: 0 0 28px;
  font-size: 14.5px;
  color: var(--text-muted);
  position: relative;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.auth-form .field-label { letter-spacing: 0.14em; }
.auth-form .field input {
  font-size: 15px;
  padding: 12px 14px;
}
.alert {
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 13.5px;
  background: var(--danger-soft);
  border: 1px solid rgba(255,82,82,0.3);
  border-radius: var(--r-sm);
  color: var(--danger-text);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  position: relative;
}
.alert-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.auth-foot {
  margin: 24px 0 0;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  position: relative;
}
.auth-foot a {
  color: var(--brand);
  font-weight: 500;
}
.auth-foot a:hover { color: var(--brand-light); }
.auth-back {
  display: block;
  text-align: center;
  margin-top: 24px;
  letter-spacing: 0.06em;
}
.auth-back:hover { color: var(--text); }

/* ============================================================
   DASHBOARD
   ============================================================ */
body.dashboard {
  background: var(--bg-elev-1);
}
body.dashboard > * { position: relative; z-index: 1; }

/* ── Topbar ──────────────────────────────────────────────── */
body.dashboard .topbar {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.topbar .logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--text);
}
.topbar .logo::before {
  content: '';
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background-image: url('/fastpay/logo.svg');
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
  flex-shrink: 0;
}
.topnav {
  display: flex;
  gap: 12px;
  align-items: center;
}
.topnav .btn {
  padding: 7px 13px;
  font-size: 13px;
  height: auto;
}

/* ── App shell ───────────────────────────────────────────── */
.app-shell {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 28px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  align-items: start;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1px;
  position: sticky;
  top: 72px;
  align-self: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 6px;
  box-shadow: var(--shadow-sm);
}
.sidebar a {
  padding: 8px 10px;
  color: var(--text-mid);
  font-size: 13.5px;
  border-radius: var(--r-sm);
  transition: background .12s, color .12s;
  display: flex;
  align-items: center;
  gap: 9px;
}
.sidebar a svg { flex-shrink: 0; opacity: 0.7; }
.sidebar a:hover {
  background: var(--bg-elev-1);
  color: var(--text);
}
.sidebar a:hover svg { opacity: 1; }
.sidebar a.active {
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 500;
}
.sidebar a.active svg { opacity: 1; color: var(--brand); }
.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 6px;
}

/* ── Content ─────────────────────────────────────────────── */
.content { min-width: 0; }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.page-header h1 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb-sep { color: var(--text-dim); }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 10px;
}
.section-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.section-link {
  font-size: 13px;
  color: var(--brand);
  text-decoration: none;
}
.section-link:hover { text-decoration: underline; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

/* ── Stat cards ──────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.stat:hover { border-color: var(--border-loud); box-shadow: var(--shadow-md); }
.stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon-blue   { background: var(--brand-soft);  color: var(--brand); }
.stat-icon-green  { background: var(--green-soft);   color: var(--green); }
.stat-icon-amber  { background: var(--amber-soft);   color: var(--amber); }
.stat-icon-brand  { background: var(--brand-soft);   color: var(--brand); }
.stat-body { flex: 1; min-width: 0; }
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-value {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}
.stat-value-money {
  font-size: 18px;
}

/* ── Table wrap ──────────────────────────────────────────── */
.table-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  font-size: 13.5px;
}
.table th, .table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
.table th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg-elev-1);
  white-space: nowrap;
}
.table tbody tr { transition: background .1s; }
.table tbody tr:hover td { background: var(--bg-elev-1); }
.table tbody tr:last-child td { border-bottom: 0; }
.table a { color: var(--brand); font-weight: 500; }
.table a:hover { color: var(--brand-deep); }
.table .mono { font-family: var(--mono); font-size: 12.5px; }

/* ── Status badges ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  background: var(--bg-elev-2);
  color: var(--text-mid);
  border: 1px solid var(--border);
}
.badge-paid, .badge-success, .badge-completed {
  background: var(--green-soft);
  color: var(--green);
  border-color: rgba(22,163,74,0.2);
}
.badge-pending, .badge-processing, .badge-retrying {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: rgba(217,119,6,0.2);
}
.badge-cancelled, .badge-failed, .badge-error {
  background: var(--danger-soft);
  color: var(--danger-text);
  border-color: rgba(220,38,38,0.2);
}
.badge-refunded, .badge-partially_refunded {
  background: var(--indigo-soft);
  color: var(--indigo);
  border-color: rgba(79,70,229,0.2);
}

/* ── Filters ─────────────────────────────────────────────── */
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.filters input,
.filters select {
  height: 36px;
  padding: 0 12px;
  font-family: var(--sans);
  font-size: 13.5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.filters input:focus,
.filters select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

/* ── KV (key-value) ──────────────────────────────────────── */
.kv {
  display: grid;
  grid-template-columns: 160px 1fr;
  row-gap: 14px;
  column-gap: 20px;
  align-items: baseline;
}
.kv dt {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.kv dd { margin: 0; font-size: 14px; }
.kv-sm { row-gap: 12px; }
.kv-sm dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Card forms ──────────────────────────────────────────── */
.card label {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.card label input,
.card label select {
  display: block;
  width: 100%;
  max-width: 480px;
  height: 38px;
  padding: 0 12px;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--r-sm);
  letter-spacing: normal;
  font-weight: 400;
  transition: border-color .15s, box-shadow .15s;
}
.card label input:focus,
.card label select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.card label input[type="password"],
.card label input[type="text"],
.card label input[type="email"],
.card label input[type="url"],
.card label input[type="number"] {
  height: 38px;
}
.label-checkbox {
  display: flex !important;
  align-items: center;
  gap: 7px;
  font-size: 13.5px !important;
  color: var(--text) !important;
  letter-spacing: normal !important;
  cursor: pointer;
}
.label-checkbox input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--brand);
}

/* ── Input row (key reveal) ──────────────────────────────── */
.input-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}
.input-row input {
  flex: 1;
  min-width: 200px;
  height: 38px;
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--r-sm);
  transition: border-color .15s;
}
.input-row input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

/* ── Inline form (refund etc) ────────────────────────────── */
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.inline-form {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.inline-form input {
  height: 36px;
  padding: 0 12px;
  font-family: var(--sans);
  font-size: 13.5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--r-sm);
  transition: border-color .15s;
}
.inline-form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

/* ── Create user form ────────────────────────────────────── */
.create-user-form .form-row-inline {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Pager ───────────────────────────────────────────────── */
.pager {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
}

/* ── Empty state ─────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.empty-state p {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 340px;
}

/* ── Code block ──────────────────────────────────────────── */
pre.code {
  background: #0e1018;
  color: #e6e8ee;
  padding: 16px 18px;
  border-radius: var(--r-md);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  overflow-x: auto;
  border: 1px solid #1c1f2a;
  margin: 12px 0 0;
}

/* ── Utilities ───────────────────────────────────────────── */
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.text-danger { color: var(--danger-text); }
.text-green  { color: var(--green); }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .features-grid, .pricing-grid, .pricing-grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .hero { padding-top: 56px; }
  .demo-grid { grid-template-columns: 1fr; min-height: 0; }
  .demo-form { border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .features-grid, .pricing-grid, .pricing-grid-4 { grid-template-columns: 1fr; }
  .steps-flow { grid-template-columns: 1fr; gap: 12px; }
  .step-connect { display: none; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .app-shell { grid-template-columns: 1fr; gap: 20px; padding: 24px var(--gutter); }
  .sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .sidebar a { padding: 7px 12px; }
  .nav-cta .btn-ghost { display: none; }
  .auth-card { padding: 32px 24px; }
  .auth-title { font-size: 32px; }
}

@media (max-width: 480px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 4px 0; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Legal pages (terms / privacy)
   ============================================================ */

body.legal {
  background: var(--bg);
  color: var(--text);
}

.legal-doc {
  padding: 80px 0 120px;
  min-height: 70vh;
}

.legal-inner {
  max-width: 780px;
}

.legal-doc .kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}

.legal-doc h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
}

.legal-meta {
  font-size: 13px;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.legal-content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-mid);
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 12px;
}

.legal-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 8px;
}

.legal-content p {
  margin: 0 0 16px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
  margin: 0 0 16px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: var(--brand-glow);
  text-underline-offset: 3px;
}

.legal-content a:hover {
  text-decoration-color: var(--brand);
}

.legal-content strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 600px) {
  .legal-doc { padding: 48px 0 80px; }
}

/* ── Error pages (404 etc.) ──────────────────────────────── */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.error-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px var(--gutter) 80px;
}

.error-inner {
  text-align: center;
  max-width: 560px;
}

.error-code {
  display: block;
  font-size: clamp(96px, 18vw, 160px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: transparent;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 50%, var(--bg-elev-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 24px;
}

.error-inner h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin: 0 0 16px;
}

.error-inner p {
  color: var(--text-mid);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 40px;
}

.error-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .error-shell { padding-top: 80px; }
  .error-cta .btn { width: 100%; justify-content: center; }
}

/* ── Alert banners ───────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.alert-success {
  background: var(--green-soft);
  border-color: rgba(22, 163, 74, 0.2);
  color: var(--green);
}
.alert-danger {
  background: var(--danger-soft);
  border-color: rgba(220, 38, 38, 0.2);
  color: var(--danger-text);
}

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--bg-elev-2);
  color: var(--text-mid);
}
.badge-green  { background: var(--green-soft);  color: var(--green); }
.badge-red    { background: var(--danger-soft);  color: var(--danger-text); }
.badge-amber  { background: var(--amber-soft);   color: var(--amber); }
.badge-blue   { background: var(--brand-soft);   color: var(--brand); }

/* ── btn-sm ──────────────────────────────────────────────── */
.btn-sm {
  padding: 4px 10px;
  font-size: 13px;
  height: auto;
}

/* ── Numbered steps list ─────────────────────────────────── */
.steps {
  padding-left: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 0 24px;
}
.steps li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.6;
}
.steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ── FAQ accordion (dashboard) ───────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-list details {
  border-top: 1px solid var(--border);
  padding: 12px 0;
}
.faq-list details:last-child {
  border-bottom: 1px solid var(--border);
}
.faq-list summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.faq-list summary::after {
  content: '+';
  font-size: 18px;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
}
.faq-list details p {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ── Table row dim for inactive ──────────────────────────── */
.row-muted td {
  opacity: 0.45;
}

/* ── Topnav email link ───────────────────────────────────── */
.topnav-email {
  text-decoration: none;
  transition: color .15s;
}
.topnav-email:hover {
  color: var(--text);
}
