/* QubixPay — Docs & Test console (shared with landing theme) */

.gateway-app {
  font-family: var(--lp-font, 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif);
  color: var(--lp-text, #0f172a);
  -webkit-font-smoothing: antialiased;
}

.gateway-app .text-slate-900 { color: #0f172a !important; }
.gateway-app .text-slate-800 { color: #1e293b !important; }
.gateway-app .text-slate-700 { color: #334155 !important; }
.gateway-app .text-slate-600 { color: #334155 !important; }
.gateway-app .text-slate-500 { color: #64748b !important; }
.gateway-app .text-slate-400 { color: #64748b !important; }
.gateway-app .text-slate-300 { color: #94a3b8 !important; }

.gateway-app .shadow-soft {
  box-shadow: var(--lp-shadow-sm, 0 4px 16px rgba(15, 23, 42, 0.06)) !important;
}

/* Sidebar TOC */
.gateway-toc {
  border-radius: 24px;
  border: 1px solid var(--lp-border, #e2e8f0);
  background: #fff;
  padding: 1.25rem;
  box-shadow: var(--lp-shadow-sm, 0 4px 16px rgba(15, 23, 42, 0.06));
}

.gateway-toc__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lp-muted, #64748b);
}

.gateway-toc a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--lp-body, #334155);
  transition: background 0.15s ease, color 0.15s ease;
}

.gateway-toc a:hover {
  background: #f1f5f9;
  color: var(--lp-text, #0f172a);
}

.gateway-toc a.is-active {
  background: #ecfdf5;
  color: #047857;
  font-weight: 600;
}

/* Doc sections */
.gateway-section {
  border-radius: 32px;
  border: 1px solid var(--lp-border, #e2e8f0);
  background: #fff;
  padding: 1.5rem;
  box-shadow: var(--lp-shadow-sm, 0 4px 16px rgba(15, 23, 42, 0.06));
  scroll-margin-top: 100px;
}

@media (min-width: 768px) {
  .gateway-section {
    padding: 2.5rem;
  }
}

.gateway-section h1,
.gateway-section h2 {
  color: var(--lp-text, #0f172a);
  letter-spacing: -0.02em;
}

.gateway-section h1 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .gateway-section h1 {
    font-size: 2rem;
  }
}

.gateway-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.gateway-lead {
  font-size: 15px;
  line-height: 1.65;
  color: var(--lp-body, #334155);
  margin-top: 0.75rem;
}

.gateway-lead--sm {
  font-size: 14px;
  margin-top: 0.5rem;
}

.gateway-stat-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .gateway-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gateway-stat {
  border-radius: 16px;
  border: 1px solid var(--lp-border, #e2e8f0);
  background: #f8fafc;
  padding: 1rem 1.125rem;
}

.gateway-stat__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lp-muted, #64748b);
}

.gateway-stat__value {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--lp-text, #0f172a);
}

.gateway-inset {
  margin-top: 1rem;
  border-radius: 16px;
  border: 1px solid var(--lp-border, #e2e8f0);
  background: #f8fafc;
  padding: 1rem 1.125rem;
}

.gateway-inset__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lp-muted, #64748b);
}

.gateway-inset__body {
  margin-top: 0.5rem;
  font-size: 14px;
  line-height: 1.6;
  color: var(--lp-body, #334155);
}

.gateway-inset__body strong,
.gateway-inset__body .font-semibold {
  color: var(--lp-text, #0f172a);
}

/* Code blocks */
.gateway-code {
  margin-top: 1rem;
  border-radius: 16px;
  border: 1px solid #1e293b;
  background: #0f172a;
  padding: 1rem;
  overflow-x: auto;
}

.gateway-code__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.gateway-code__label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.gateway-code__copy {
  padding: 0.25rem 0.625rem;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.15s ease;
}

.gateway-code__copy:hover {
  background: rgba(255, 255, 255, 0.14);
}

.gateway-code pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.65;
  color: #e2e8f0;
  white-space: pre;
}

.gateway-code code {
  color: inherit;
}

.gateway-footnote {
  font-size: 13px;
  color: var(--lp-muted, #64748b);
  line-height: 1.5;
}

.gateway-nav-active {
  color: var(--lp-text, #0f172a) !important;
  font-weight: 600;
}

/* Test console */
.gateway-test-card {
  border-radius: 32px;
  border: 1px solid var(--lp-border, #e2e8f0);
  background: #fff;
  padding: 1.5rem;
  box-shadow: var(--lp-shadow-sm, 0 4px 16px rgba(15, 23, 42, 0.06));
}

@media (min-width: 768px) {
  .gateway-test-card {
    padding: 2rem;
  }
}

.gateway-test-card h1,
.gateway-test-card h2 {
  color: var(--lp-text, #0f172a);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gateway-test-card h1 {
  font-size: 1.375rem;
}

.gateway-test-card h2 {
  font-size: 1.125rem;
}

.gateway-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.gateway-label.mb-0 {
  margin-bottom: 0;
}

.gateway-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--lp-border, #e2e8f0);
  background: #fff;
  font-size: 14px;
  color: var(--lp-text, #0f172a);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gateway-input::placeholder {
  color: #94a3b8;
}

.gateway-input:focus {
  outline: none;
  border-color: #34d399;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.gateway-output {
  width: 100%;
  min-height: 10rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  border: 1px solid #1e293b;
  background: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.65;
  color: #e2e8f0;
  resize: vertical;
}

.gateway-output::placeholder {
  color: #64748b;
}

.gateway-tip {
  border-radius: 16px;
  border: 1px solid var(--lp-border, #e2e8f0);
  background: #f8fafc;
  padding: 1rem 1.125rem;
}

.gateway-tip__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lp-muted, #64748b);
}

.gateway-tip__body {
  margin-top: 0.375rem;
  font-size: 14px;
  line-height: 1.55;
  color: var(--lp-body, #334155);
}

.gateway-status {
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  border: 1px solid var(--lp-border, #e2e8f0);
  font-size: 11px;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
}

.gateway-status--ok {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.gateway-status--bad {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.gateway-status--busy {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.gateway-meta {
  font-size: 12px;
  font-weight: 500;
  color: var(--lp-muted, #64748b);
}

.gateway-meta .font-mono {
  color: var(--lp-text, #0f172a);
  font-weight: 600;
}

.gateway-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gateway-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lp-muted, #64748b);
}

.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.gateway-toc__divider {
  height: 1px;
  margin: 0.5rem 0;
  background: var(--lp-border, #e2e8f0);
}

.gateway-feature-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .gateway-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .gateway-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gateway-feature-card {
  border-radius: 16px;
  border: 1px solid var(--lp-border, #e2e8f0);
  background: #f8fafc;
  padding: 1rem 1.125rem;
}

.gateway-feature-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--lp-text, #0f172a);
}

.gateway-feature-card p {
  margin-top: 0.375rem;
  font-size: 13px;
  line-height: 1.55;
  color: var(--lp-body, #334155);
}

.gateway-steps {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (min-width: 1024px) {
  .gateway-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gateway-step {
  display: flex;
  gap: 0.875rem;
  border-radius: 16px;
  border: 1px solid var(--lp-border, #e2e8f0);
  background: #f8fafc;
  padding: 1rem 1.125rem;
}

.gateway-step__num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.gateway-step h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--lp-text, #0f172a);
}

.gateway-step p {
  margin-top: 0.375rem;
  font-size: 13px;
  line-height: 1.55;
  color: var(--lp-body, #334155);
}

.gateway-pricing-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .gateway-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gateway-pricing-card {
  border-radius: 20px;
  border: 1px solid var(--lp-border, #e2e8f0);
  background: #fff;
  padding: 1.25rem 1.5rem;
}

.gateway-pricing-card--pro {
  border-color: #a7f3d0;
  background: linear-gradient(180deg, #ecfdf5 0%, #fff 100%);
}

.gateway-pricing-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--lp-text, #0f172a);
}

.gateway-pricing-card__sub {
  margin-top: 0.25rem;
  font-size: 13px;
  color: var(--lp-muted, #64748b);
}

.gateway-pricing-card__price {
  margin-top: 1rem;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--lp-text, #0f172a);
}

.gateway-pricing-card--pro .gateway-pricing-card__price {
  color: #047857;
}

.gateway-pricing-card__period {
  font-size: 12px;
  color: var(--lp-muted, #64748b);
}

.gateway-pricing-card ul {
  margin-top: 1rem;
  font-size: 13px;
  line-height: 1.7;
  color: var(--lp-body, #334155);
}

.gateway-pricing-card--pro ul {
  color: #065f46;
}

.gateway-pricing-card__btn {
  display: block;
  margin-top: 1.25rem;
  width: 100%;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #059669;
  transition: background 0.15s ease;
}

.gateway-pricing-card__btn:hover {
  background: #047857;
}

.gateway-pricing-card__btn--outline {
  color: #047857;
  background: #fff;
  border: 1px solid #a7f3d0;
}

.gateway-pricing-card__btn--outline:hover {
  background: #ecfdf5;
}
