/* ==========================================================================
   QoinPay Design System — light, premium, enterprise grade
   Warm-paper neutrals · deep-navy ink · deepened gold accent
   ========================================================================== */

/* ---- Inter (self-hosted; paths relative to this CSS file at /assets/css/) --- */
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  /* Surfaces — three crisp tiers: white → cool mist → navy (Paystack model).
     A cool, clean neutral reads as more global-standard than warm paper. */
  --bg-0: #ffffff;          /* page ground (white tier) */
  --bg-1: #f4f6fa;          /* mist — the grouping band for cards/sections */
  --bg-2: #ffffff;          /* card */
  --bg-3: #eef1f7;          /* inset / subtle fill */
  --bg-ink: #0a1f44;        /* deep navy (dark bands, footer) — QoinPay Midnight */
  --bg-ink-2: #06152e;      /* deepest navy for the one dark-band gradient */

  /* Lines — hairline, cool-toned */
  --line: rgba(10, 31, 68, 0.08);
  --line-strong: rgba(10, 31, 68, 0.14);
  --line-ink: rgba(255, 255, 255, 0.10);

  /* Brand gold — deepened for AA on white; used as a considered accent */
  --gold: #a97e12;
  --gold-bright: #c9a227;
  --gold-deep: #8a6a17;
  --gold-soft: rgba(169, 126, 18, 0.08);
  --gold-line: rgba(169, 126, 18, 0.26);

  /* Navy depth accent */
  --navy: #0a1f44;
  --navy-soft: rgba(10, 31, 68, 0.05);

  /* Ink / text */
  --text-0: #0a1f44;        /* headings — navy ink */
  --text-1: #40506b;        /* body */
  --text-2: #5b6b85;        /* muted */
  --text-inv-0: #f5f7fc;    /* on dark */
  --text-inv-1: #c3cbdd;
  --text-inv-2: #8b96ae;

  /* Semantic (darkened for light ground) */
  --ok: #157f4a;   --ok-soft: rgba(21, 127, 74, 0.10);
  --warn: #9a6a09; --warn-soft: rgba(154, 106, 9, 0.10);
  --bad: #b3261e;  --bad-soft: rgba(179, 38, 30, 0.09);
  --info: #1d5fbf; --info-soft: rgba(29, 95, 191, 0.09);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  /* Shadows — soft, low-alpha, navy-tinted (Paystack-style calm depth) */
  --shadow-sm: 0 1px 2px rgba(10, 31, 68, 0.06), 0 6px 18px rgba(10, 31, 68, 0.06);
  --shadow: 0 1px 2px rgba(10, 31, 68, 0.06), 0 10px 30px rgba(10, 31, 68, 0.08);
  --shadow-lg: 0 8px 30px rgba(10, 31, 68, 0.10), 0 30px 70px rgba(10, 31, 68, 0.12);
  --shadow-gold: 0 6px 22px rgba(169, 126, 18, 0.20);

  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "SF Mono", "Consolas", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { max-width: 100%; vertical-align: middle; }
a { color: var(--gold-deep); text-decoration: none; transition: color 0.15s var(--ease); }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { color: var(--text-0); line-height: 1.12; font-weight: 700; letter-spacing: -0.022em; font-family: var(--font-display); text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 4.8vw, 3.6rem); line-height: 1.06; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.4rem); letter-spacing: -0.025em; }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
p  { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 0.88em; }
::selection { background: rgba(169, 126, 18, 0.22); color: var(--text-0); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1160px, 90vw); margin-inline: auto; }
.container-narrow { width: min(800px, 90vw); margin-inline: auto; }
/* Section rhythm — generous vertical breathing room (Paystack-style) */
.section { padding: clamp(4.5rem, 8vw, 7.5rem) 0; position: relative; }
.section-tint { background: var(--bg-1); }
.section-dark { background: var(--bg-ink); color: var(--text-inv-1); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--text-inv-0); }
.stack-xs > * + * { margin-top: 0.5rem; }
.stack-sm > * + * { margin-top: 1rem; }
.stack   > * + * { margin-top: 1.7rem; }
.stack-lg > * + * { margin-top: 3rem; }
.center { text-align: center; }
.muted { color: var(--text-2); }
.small { font-size: 0.85rem; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-1); line-height: 1.62; max-width: 65ch; letter-spacing: -0.006em; }
.gold { color: var(--gold); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.max-60 { max-width: 60ch; }
.lead.center, .center .lead { margin-inline: auto; }
.flex { display: flex; gap: 1rem; align-items: center; }
.flex-between { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.flex-wrap { flex-wrap: wrap; }
.grid { display: grid; gap: 1.6rem; }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Scroll reveal (opt-in via .reveal, toggled by JS) — calm, subtle ---- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.07s; }
.reveal-d2 { transition-delay: 0.14s; }
.reveal-d3 { transition-delay: 0.21s; }
.reveal-d4 { transition-delay: 0.28s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- Eyebrow ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.74rem;
  color: var(--gold-deep); font-weight: 700;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.eyebrow.on-dark { color: var(--gold-bright); }
.eyebrow.on-dark::before { background: var(--gold-bright); }
.eyebrow.center { justify-content: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 0.95rem var(--font); letter-spacing: -0.006em; cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 60%, var(--gold-deep));
  color: #fff; box-shadow: var(--shadow-gold);
}
.btn-gold:hover { box-shadow: 0 10px 30px rgba(169, 126, 18, 0.30); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #101726; color: #fff; }
.btn-ghost { background: transparent; color: var(--text-0); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); background: var(--gold-soft); }
.btn-ghost.on-dark { color: var(--text-inv-0); border-color: var(--line-ink); }
.btn-ghost.on-dark:hover { border-color: var(--gold-bright); color: var(--gold-bright); background: rgba(255,255,255,0.05); }
.btn-subtle { background: var(--bg-3); color: var(--text-0); }
.btn-subtle:hover { background: #e6e2d5; color: var(--text-0); }
.btn-danger { background: var(--bad-soft); color: var(--bad); border-color: rgba(179, 38, 30, 0.25); }
.btn-sm { padding: 0.5rem 1.05rem; font-size: 0.85rem; }
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---- Cards / panels ---- */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
}
.card-hover { transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease); }
.card-hover:hover { transform: translateY(-4px); border-color: var(--gold-line); box-shadow: var(--shadow); }
.card-feature { padding: 2.1rem; }
.card-lg { padding: 2.5rem; border-radius: var(--radius-lg); }
.glass {
  background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.6); border-radius: var(--radius); box-shadow: var(--shadow);
}
.glass-dark {
  background: rgba(16, 23, 38, 0.55); backdrop-filter: blur(18px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius);
  color: var(--text-inv-1);
}
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }

/* On-dark surfaces (for bands over photos / footer) */
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--text-inv-0); }
.on-dark .muted { color: var(--text-inv-2); }
.on-dark .lead { color: var(--text-inv-1); }
.on-dark a { color: var(--gold-bright); }

/* ---- Stats ---- */
.stat { padding: 1.4rem 1.6rem; }
.stat .stat-value { font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 800; color: var(--text-0); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; line-height: 1; }
.stat .stat-value .unit { font-size: 1.05rem; color: var(--gold); font-weight: 700; }
.stat .stat-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-2); margin-top: 0.4rem; font-weight: 600; }
.on-dark .stat .stat-value { color: #fff; }
.on-dark .stat .stat-label { color: var(--text-inv-2); }

/* ---- Badges ---- */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.22rem 0.72rem;
  border-radius: 999px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.03em;
  text-transform: uppercase; border: 1px solid transparent; line-height: 1.4;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok    { color: var(--ok);   background: var(--ok-soft);   border-color: rgba(21, 127, 74, 0.28); }
.badge-warn  { color: var(--warn); background: var(--warn-soft); border-color: rgba(154, 106, 9, 0.28); }
.badge-bad   { color: var(--bad);  background: var(--bad-soft);  border-color: rgba(179, 38, 30, 0.26); }
.badge-info  { color: var(--info); background: var(--info-soft); border-color: rgba(29, 95, 191, 0.26); }
.badge-gold  { color: var(--gold-deep); background: var(--gold-soft); border-color: var(--gold-line); }
.badge-muted { color: var(--text-2); background: var(--navy-soft); border-color: var(--line); }
.badge-lg { padding: 0.35rem 0.9rem; font-size: 0.8rem; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 640px; }
table.data th {
  text-align: left; padding: 0.85rem 1rem; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-2); border-bottom: 1px solid var(--line-strong);
  background: var(--bg-1); white-space: nowrap; font-weight: 700;
}
table.data td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text-1); }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background 0.12s ease; }
table.data tbody tr:hover td { background: var(--gold-soft); }
table.data .num { font-family: var(--mono); font-size: 0.85rem; font-variant-numeric: tabular-nums; }

/* ---- Forms ---- */
label.field { display: block; }
label.field span, .field-label {
  display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--text-2); margin-bottom: 0.45rem;
}
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="url"], input[type="date"], input[type="file"], select, textarea {
  width: 100%; padding: 0.8rem 1rem; border-radius: var(--radius-sm);
  background: var(--bg-0); color: var(--text-0); border: 1px solid var(--line-strong);
  font: 500 0.95rem var(--font); outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
input::placeholder, textarea::placeholder { color: #9aa1b0; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.4rem; }
textarea { min-height: 130px; resize: vertical; }
.checkbox { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; color: var(--text-1); }
.checkbox input { width: auto; margin-top: 0.3rem; accent-color: var(--gold); }
.form-grid { display: grid; gap: 1.2rem; }
@media (min-width: 700px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }
.help { font-size: 0.8rem; color: var(--text-2); margin-top: 0.4rem; }

/* ---- Alerts ---- */
.alert { padding: 0.9rem 1.2rem; border-radius: var(--radius-sm); font-size: 0.92rem; border: 1px solid; display: flex; gap: 0.6rem; align-items: flex-start; }
.alert-success { background: var(--ok-soft); border-color: rgba(21, 127, 74, 0.3); color: #0f5d36; }
.alert-error   { background: var(--bad-soft); border-color: rgba(179, 38, 30, 0.3); color: #8f1e17; }
.alert-info    { background: var(--info-soft); border-color: rgba(29, 95, 191, 0.3); color: #164a93; }

/* ---- Code / secrets ---- */
.code-block {
  background: var(--bg-ink); border: 1px solid var(--line-ink); border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem; font-family: var(--mono); font-size: 0.84rem; color: #d7e2f5;
  overflow-x: auto; line-height: 1.7; white-space: pre;
  /* Stay inside the grid cell — min-width:0 lets a grid/flex item shrink below
     its intrinsic (pre-formatted) width so the code scrolls INSIDE this block
     instead of stretching the row past the viewport. */
  min-width: 0; max-width: 100%;
}
.secret-chip {
  display: inline-flex; align-items: center; gap: 0.6rem; background: var(--bg-3);
  border: 1px dashed var(--gold-line); padding: 0.6rem 0.95rem; border-radius: var(--radius-sm);
  font-family: var(--mono); font-size: 0.85rem; color: var(--gold-deep); word-break: break-all;
}

/* ==========================================================================
   Marketing site
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.84); backdrop-filter: blur(16px) saturate(125%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); background: rgba(255, 255, 255, 0.95); }
.site-nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-weight: 800; font-size: 1.28rem; color: var(--text-0); letter-spacing: -0.03em; }
.brand__img { display: block; height: 34px; width: auto; }
/* Legacy text mark — kept for any markup not yet migrated to brand_logo(). */
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); color: #fff; font-weight: 800; font-size: 1.1rem;
  box-shadow: var(--shadow-gold);
}
.brand .tld { color: var(--gold); }
.nav-links { display: flex; gap: 1.7rem; align-items: center; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a.nav-item { color: var(--text-1); font-size: 0.94rem; font-weight: 500; padding: 0.5rem 0; transition: color 0.15s; }
.nav-links a.nav-item:hover, .nav-links a.nav-item.active { color: var(--gold-deep); }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 560px; max-width: 92vw; padding: 1.1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem;
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-menu a { display: block; padding: 0.7rem 0.85rem; border-radius: var(--radius-sm); transition: background 0.15s; }
.dropdown-menu a:hover { background: var(--gold-soft); }
.dropdown-menu .dd-name { color: var(--text-0); font-weight: 700; font-size: 0.93rem; }
.dropdown-menu .dd-desc { color: var(--text-2); font-size: 0.8rem; }
.nav-cta { display: flex; gap: 0.7rem; align-items: center; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--text-0); border-radius: 9px; padding: 0.45rem 0.7rem; font-size: 1.1rem; cursor: pointer; }
.nav-mobile-only { display: none; }
@media (max-width: 980px) {
  .nav-links, .nav-desktop-only { display: none; }
  .nav-toggle { display: block; }
  .site-nav { gap: 0.75rem; }
  .site-nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 74px; left: 0; right: 0; background: var(--bg-2);
    padding: 1.2rem 4vw 1.6rem; border-bottom: 1px solid var(--line-strong); gap: 0.6rem;
    max-height: calc(100vh - 74px); overflow-y: auto; z-index: 70; box-shadow: var(--shadow);
  }
  .site-nav.open .nav-links > li { width: 100%; }
  .site-nav.open .nav-links a.nav-item { padding: 0.4rem 0; }
  .site-nav.open .nav-mobile-only { display: block; }
  .site-nav.open .nav-mobile-only:first-of-type { margin-top: 0.4rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
  .dropdown-menu { position: static; transform: none; min-width: 0; max-width: none; grid-template-columns: 1fr; border: none; box-shadow: none; padding: 0.3rem 0 0 0.8rem; background: transparent; opacity: 1; visibility: visible; }
}
@media (max-width: 460px) {
  .site-nav { height: 66px; }
  .brand__img { height: 28px; }
  .brand .tld { display: none; }
  .nav-desktop-cta { padding: 0.55rem 0.9rem; font-size: 0.82rem; }
}

/* ---- Hero (photographic) ---- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(4.5rem, 10vw, 8.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  background: linear-gradient(180deg, #0d1424 0%, #131d34 55%, #0f1830 100%);
  color: var(--text-inv-0);
}
.hero-photo {
  position: absolute; inset: 0;
  background-image: linear-gradient(102deg, rgba(9,14,26,0.94) 0%, rgba(11,17,32,0.82) 42%, rgba(13,20,36,0.52) 74%, rgba(13,20,36,0.38) 100%),
                    linear-gradient(0deg, rgba(9,14,26,0.62) 0%, transparent 48%),
                    var(--hero-img, url('/assets/img/hero.jpg'));
  background-size: cover; background-position: center; pointer-events: none;
  transform: scale(1.06); animation: heroZoom 22s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(680px 400px at 84% 14%, rgba(201, 162, 39, 0.16), transparent 64%),
    radial-gradient(720px 460px at 6% 92%, rgba(48, 80, 168, 0.26), transparent 62%);
  mix-blend-mode: screen;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1, .hero h2 { color: #fff; }
.hero-lede { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--text-inv-1); max-width: 640px; line-height: 1.62; letter-spacing: -0.006em; }
.hero-title { overflow-wrap: break-word; }
.gold { color: var(--gold-bright); }
.hero .gold { color: var(--gold-bright); }
@media (max-width: 560px) {
  .hero-title { font-size: clamp(1.9rem, 8.5vw, 2.6rem); }
  .br-hero { display: none; }
}

/* Trust bar / logos strip */
.trust-bar { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; justify-content: center; opacity: 0.85; }
.trust-bar .trust-item { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-inv-2); font-weight: 600; }

/* Stats band */
.stats-band { display: grid; gap: 1px; background: var(--line-ink); border: 1px solid var(--line-ink); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 700px) { .stats-band { grid-template-columns: repeat(4, 1fr); } }
.stats-band .stat { background: rgba(255,255,255,0.04); }
.stats-band.on-light { background: var(--line); border-color: var(--line); }
.stats-band.on-light .stat { background: var(--bg-2); }

/* ---- Product cards (world-class, Paystack-clarity + enterprise rail) ---- */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 620px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .product-grid { grid-template-columns: 1fr 1fr 1fr; } }

.product-card {
  position: relative; display: flex; flex-direction: column; gap: 0.85rem; height: 100%;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.9rem 1.75rem; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
/* the 3px gold top-rail — hidden until hover */
.product-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-strong); text-decoration: none; }
.product-card:hover::before { transform: scaleX(1); }

.product-card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, rgba(201,162,39,0.14), rgba(169,126,18,0.05));
  border: 1px solid var(--gold-line); color: var(--gold-deep);
  transition: transform 0.25s var(--ease);
}
.product-card:hover .product-card__icon { transform: translateY(-1px) scale(1.04); }
.product-card__cat { font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.product-card__title { font-size: 1.25rem; color: var(--text-0); letter-spacing: -0.02em; }
.product-card__tag { font-size: 0.9rem; color: var(--text-2); font-weight: 500; margin-top: -0.3rem; }
.product-card__body { font-size: 0.94rem; color: var(--text-1); line-height: 1.6; }
.product-card__link {
  margin-top: auto; padding-top: 0.4rem; font-size: 0.88rem; font-weight: 700; color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.product-card__link svg, .product-card__link span[aria-hidden] { transition: transform 0.2s var(--ease); display: inline-block; }
.product-card:hover .product-card__link svg, .product-card:hover .product-card__link span[aria-hidden] { transform: translateX(4px); }

/* Feature blocks (Fortune-500 outlining) */
.feature-row { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); align-items: center; }
/* Grid items default to min-width:auto and refuse to shrink below their content's
   intrinsic width — a wide, non-wrapping child (e.g. a .code-block) would then
   stretch the whole row past the viewport. min-width:0 lets each column shrink so
   overflow is contained inside the child instead. */
.feature-row > * { min-width: 0; }
@media (min-width: 860px) { .feature-row { grid-template-columns: 1fr 1fr; } .feature-row.flip .feature-visual { order: -1; } }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 1.2rem; }
.feature-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.feature-list .fl-icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: var(--gold-soft); color: var(--gold-deep); border: 1px solid var(--gold-line); font-weight: 800; font-size: 0.9rem;
}
.feature-list .fl-body strong { display: block; color: var(--text-0); font-weight: 700; font-size: 0.98rem; margin-bottom: 0.15rem; }
.feature-list .fl-body span { color: var(--text-2); font-size: 0.9rem; }
.feature-visual {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  position: relative; min-height: 320px; background-size: cover; background-position: center;
}
/* Gentle unifying tint so section photos share the site's cool, calm tone */
.feature-visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(13,20,36,0.05) 0%, rgba(13,20,36,0.18) 100%);
}
.feature-visual.tall { min-height: 420px; }

/* Numbered capability steps */
.steps { display: grid; gap: 1.4rem; counter-reset: qstep; }
@media (min-width: 760px) { .steps.steps-3 { grid-template-columns: repeat(3, 1fr); } .steps.steps-4 { grid-template-columns: repeat(4, 1fr); } }
.step { counter-increment: qstep; position: relative; padding-top: 0.5rem; }
.step .step-num {
  width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 1.05rem; margin-bottom: 0.9rem;
}
.step .step-num::before { content: counter(qstep, decimal-leading-zero); }
.step h3 { margin-bottom: 0.35rem; }
.step p { color: var(--text-2); font-size: 0.92rem; }

/* Spec / capability table styling reuse .data */
.spec-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
.spec-item { display: flex; gap: 0.75rem; align-items: flex-start; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); transition: border-color 0.2s, box-shadow 0.2s; }
.spec-item:hover { border-color: var(--gold-line); box-shadow: var(--shadow-sm); }
.spec-item .si-check { color: var(--ok); font-weight: 800; flex-shrink: 0; }
.spec-item .si-body strong { display: block; color: var(--text-0); font-size: 0.95rem; }
.spec-item .si-body span { color: var(--text-2); font-size: 0.86rem; }

/* Section with photo background — tone matched to .hero for a coherent site */
.photo-band { position: relative; overflow: hidden; color: var(--text-inv-0); }
.photo-band .pb-photo { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); }
.photo-band .pb-overlay { position: absolute; inset: 0; background: linear-gradient(102deg, rgba(6,21,46,0.93) 0%, rgba(10,31,68,0.80) 45%, rgba(10,31,68,0.55) 100%); }
.photo-band > .container { position: relative; z-index: 1; }

/* KV panel */
.kv { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px dashed var(--line); font-size: 0.92rem; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--text-2); }
.kv .v { color: var(--text-0); font-weight: 600; text-align: right; word-break: break-word; }
.on-dark .kv { border-color: var(--line-ink); }
.on-dark .kv .k { color: var(--text-inv-2); }
.on-dark .kv .v { color: #fff; }

/* Tag row */
.tag-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--bg-ink); color: var(--text-inv-1); padding: 4rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; gap: 2.4rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }
.footer-grid h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-inv-2); margin-bottom: 1rem; font-weight: 700; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.6rem; }
.footer-grid a { color: var(--text-inv-1); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--gold-bright); }
.footer-grid .brand { color: #fff; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-ink); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-inv-2); }
.cert-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cert-chips span { border: 1px solid var(--line-ink); border-radius: 999px; padding: 0.25rem 0.8rem; font-size: 0.72rem; letter-spacing: 0.05em; color: var(--text-inv-2); }

/* ==========================================================================
   Portals (admin + merchant app shell) — light
   ========================================================================== */
.portal { display: grid; min-height: 100vh; grid-template-columns: 264px 1fr; background: var(--bg-1); }
.portal-aside {
  background: var(--bg-ink); border-right: 1px solid var(--line-ink);
  padding: 1.4rem 1rem; display: flex; flex-direction: column; gap: 1.4rem;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; color: var(--text-inv-1);
}
.portal-aside .brand { font-size: 1.08rem; color: #fff; }
.portal-aside .brand .tld { color: var(--gold-bright); }
.side-nav { list-style: none; display: flex; flex-direction: column; gap: 0.12rem; }
.side-nav .side-group { margin: 1rem 0 0.35rem; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-inv-2); padding-left: 0.85rem; font-weight: 700; }
.side-nav a {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.62rem 0.85rem;
  border-radius: var(--radius-sm); color: var(--text-inv-1); font-size: 0.92rem; font-weight: 500; transition: background 0.15s, color 0.15s;
}
.side-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.side-nav a.active { background: linear-gradient(135deg, rgba(201,162,39,0.22), rgba(201,162,39,0.08)); color: var(--gold-bright); box-shadow: inset 2px 0 0 var(--gold-bright); }
.portal-main { padding: 1.8rem clamp(1.2rem, 3vw, 2.8rem) 3rem; min-width: 0; }
.portal-topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.portal-topbar h1 { font-size: 1.55rem; }
.user-chip { display: flex; align-items: center; gap: 0.7rem; font-size: 0.88rem; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 0.88rem; border: 1px solid var(--line-strong);
}
@media (max-width: 900px) {
  .portal { grid-template-columns: 1fr; }
  .portal-aside { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .side-nav { flex-direction: row; flex-wrap: wrap; }
  .side-nav .side-group { display: none; }
}

/* Wizard */
.wizard-steps { display: flex; gap: 0.4rem; flex-wrap: wrap; counter-reset: step; margin-bottom: 1.8rem; }
.wizard-steps .wstep {
  counter-increment: step; display: flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  font-size: 0.84rem; color: var(--text-2); background: var(--bg-2);
}
.wizard-steps .wstep::before {
  content: counter(step); width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-3); color: var(--text-1); font-size: 0.76rem; font-weight: 700;
}
.wizard-steps .wstep.done { border-color: rgba(21, 127, 74, 0.4); color: var(--ok); background: var(--ok-soft); }
.wizard-steps .wstep.done::before { background: var(--ok); color: #fff; content: "✓"; }
.wizard-steps .wstep.current { border-color: var(--gold-line); color: var(--gold-deep); background: var(--gold-soft); }
.wizard-steps .wstep.current::before { background: var(--gold); color: #fff; }

/* Charts */
.chart-bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; }
.chart-bars .bar { flex: 1; background: linear-gradient(180deg, var(--gold-bright), var(--gold)); border-radius: 4px 4px 0 0; min-height: 3px; opacity: 0.9; transition: opacity 0.15s, transform 0.15s; transform-origin: bottom; }
.chart-bars .bar:hover { opacity: 1; transform: scaleY(1.03); }

/* Pagination */
.pagination { display: flex; gap: 0.4rem; margin-top: 1.4rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 0.85rem; color: var(--text-1); background: var(--bg-2);
}
.pagination a:hover { border-color: var(--gold-line); color: var(--gold-deep); }
.pagination .current { background: var(--gold-soft); color: var(--gold-deep); border-color: var(--gold-line); font-weight: 700; }

/* ==========================================================================
   Checkout — light
   ========================================================================== */
.checkout-shell { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: clamp(1.5rem, 5vw, 3.5rem) 1rem 2rem; position: relative; background: var(--bg-1); }
.checkout-shell::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(620px 340px at 50% 0%, var(--gold-soft), transparent 70%);
}
.checkout-card { width: min(470px, 100%); position: relative; z-index: 1; }
.checkout-amount { font-size: 2.2rem; font-weight: 800; color: var(--text-0); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.method-list { display: flex; flex-direction: column; gap: 0.6rem; }
.method-item { position: relative; }
.method-item input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.method-item .method-face {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg-0);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.method-item input:checked + .method-face { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 3px var(--gold-soft); }
.method-item .m-icon {
  width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-3); color: var(--gold-deep); font-size: 1.05rem; flex-shrink: 0;
}
.method-item .m-name { color: var(--text-0); font-weight: 600; font-size: 0.96rem; }
.method-item .m-kind { color: var(--text-2); font-size: 0.78rem; }
.checkout-footer { margin-top: 1.8rem; text-align: center; font-size: 0.8rem; color: var(--text-2); position: relative; z-index: 1; }
.geo-pill { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--text-2); border: 1px solid var(--line); padding: 0.3rem 0.85rem; border-radius: 999px; background: var(--bg-2); }
.receipt-check {
  width: 68px; height: 68px; border-radius: 50%; margin-inline: auto;
  background: var(--ok-soft); border: 1px solid rgba(21, 127, 74, 0.4);
  display: flex; align-items: center; justify-content: center; color: var(--ok); font-size: 1.8rem;
  animation: pop 0.5s var(--ease);
}
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* Auth pages */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr; place-items: center; padding: 2rem 1rem; position: relative; overflow: hidden; background: var(--bg-1); }
.auth-shell::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(560px 340px at 84% 10%, var(--gold-soft), transparent 64%),
    radial-gradient(680px 420px at 10% 92%, var(--navy-soft), transparent 60%);
}
.auth-card { width: min(480px, 100%); position: relative; z-index: 1; }

/* Utility */
.divider { border: none; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.copy-btn { cursor: pointer; border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--text-1); border-radius: 8px; padding: 0.3rem 0.65rem; font-size: 0.75rem; transition: all 0.15s; }
.copy-btn:hover { color: var(--gold-deep); border-color: var(--gold-line); background: var(--gold-soft); }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-2); }
.empty-state .big { font-size: 2.2rem; margin-bottom: 0.5rem; opacity: 0.5; }
.list-plain { list-style: none; }
.icon-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); display: inline-block; }

/* ==========================================================================
   Developer docs — 3-column (nav · content · on-this-page), premium
   ========================================================================== */
.dv-shell { width: min(1240px, 94vw); margin-inline: auto; }
.dv-kicker { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); display: block; margin-bottom: .5rem; }
.dv-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 40px; padding: 2rem 0 5rem; align-items: start; }
@media (min-width: 1120px) { .dv-layout { grid-template-columns: 232px minmax(0, 1fr) 200px; } }
.dv-side { position: sticky; top: 88px; align-self: start; }
.dv-side__title { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); margin: 1.1rem 0 .4rem; }
.dv-side nav { display: flex; flex-direction: column; gap: 1px; }
.dv-side nav a { font-size: 13.5px; color: var(--text-2); padding: 6px 11px; border-radius: 7px; border-left: 2px solid transparent; text-decoration: none; transition: color .15s, border-color .15s, background .15s; }
.dv-side nav a:hover { color: var(--text-0); background: var(--bg-1); }
.dv-side nav a.is-active { color: var(--gold-deep); border-left-color: var(--gold); background: var(--gold-soft); font-weight: 600; }
.dv-article { min-width: 0; }
.dv-article > section { scroll-margin-top: 92px; padding-bottom: 1.6rem; }
.dv-article h1 { font-size: clamp(28px, 3.8vw, 36px); margin-bottom: .5rem; }
.dv-article h2 { font-size: 22px; margin: 2.2rem 0 .7rem; padding-top: .6rem; letter-spacing: -.02em; }
.dv-article h3 { font-size: 16px; margin: 1.5rem 0 .5rem; color: var(--text-0); }
.dv-article p { color: var(--text-1); max-width: 74ch; line-height: 1.7; margin-bottom: .8rem; }
.dv-article ul, .dv-article ol { color: var(--text-1); max-width: 74ch; padding-left: 1.2rem; line-height: 1.7; margin-bottom: .8rem; }
.dv-article code { background: #eef2f8; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-family: var(--mono); font-size: .86em; color: var(--navy); }
/* Any <pre> in the docs body scrolls its long lines INSIDE the block (max-width
   caps it to the column; overflow-x handles the rest) so a wide code sample never
   stretches the page past the viewport on mobile. */
.dv-article pre { overflow-x: auto; max-width: 100%; }
.dv-article pre code { background: none; border: none; padding: 0; color: inherit; white-space: pre; }

/* On-this-page TOC (right rail) */
.dv-toc { position: sticky; top: 88px; align-self: start; display: none; }
@media (min-width: 1120px) { .dv-toc { display: block; } }
.dv-toc__title { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); margin-bottom: .5rem; }
.dv-toc a { display: block; font-size: 12.5px; color: var(--text-2); padding: 4px 0 4px 10px; border-left: 2px solid var(--line); text-decoration: none; }
.dv-toc a:hover, .dv-toc a.is-active { color: var(--gold-deep); border-left-color: var(--gold); }

/* Method pills */
.dv-verb { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 6px; margin-right: 9px; letter-spacing: .02em; vertical-align: middle; }
.dv-verb--get { background: var(--ok-soft); color: var(--ok); border: 1px solid rgba(21,127,74,.25); }
.dv-verb--post { background: var(--info-soft); color: var(--info); border: 1px solid rgba(29,95,191,.25); }
.dv-verb--put, .dv-verb--patch { background: var(--warn-soft); color: var(--warn); border: 1px solid rgba(154,106,9,.25); }
.dv-verb--delete { background: var(--bad-soft); color: var(--bad); border: 1px solid rgba(179,38,30,.25); }
.dv-endpoint { display: flex; align-items: center; gap: 0; font-family: var(--mono); font-size: 15px; }

/* Dark code cards */
.dv-code { background: #0a1a30; border: 1px solid #12294a; border-radius: 12px; overflow: hidden; margin: .8rem 0; }
.dv-code__bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; background: #08152a; border-bottom: 1px solid #12294a; }
.dv-code__bar span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7f9bc4; }
.dv-code__copy { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #c3d4ec; font-size: 11.5px; font-weight: 600; padding: 3px 11px; border-radius: 6px; cursor: pointer; font-family: var(--font); }
.dv-code__copy:hover { background: rgba(255,255,255,.12); }
.dv-code__copy.is-copied { background: rgba(21,127,74,.3); border-color: rgba(21,127,74,.5); color: #7ee2a8; }
.dv-code pre { margin: 0; padding: 14px 16px; overflow-x: auto; }
.dv-code code { font-family: var(--mono); font-size: 12.8px; line-height: 1.7; color: #dbe7f5; white-space: pre; }

/* Language tabs */
.dv-tabs { margin: .8rem 0; }
.dv-tabs__bar { display: flex; gap: 2px; }
.dv-tabs__btn { background: #08152a; border: 1px solid #12294a; border-bottom: none; color: #7f9bc4; font-size: 12.5px; font-weight: 600; padding: 7px 14px; border-radius: 8px 8px 0 0; cursor: pointer; font-family: var(--font); }
.dv-tabs__btn.is-active { background: #0a1a30; color: #dbe7f5; }
.dv-tabs__pane { display: none; }
.dv-tabs__pane.is-active { display: block; }
.dv-tabs__pane .dv-code { margin-top: 0; border-top-left-radius: 0; }

/* Parameter tables */
.dv-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: .8rem 0; }
.dv-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 13.5px; }
.dv-table th { text-align: left; padding: 10px 14px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-2); background: #f7fafd; border-bottom: 1px solid var(--line); }
.dv-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--text-1); vertical-align: top; }
.dv-table tr:last-child td { border-bottom: none; }
.dv-table code { background: #eef2f8; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-family: var(--mono); font-size: 12px; color: var(--navy); }

/* Callouts */
.dv-callout { border: 1px solid var(--info); border-left-width: 4px; background: var(--info-soft); border-radius: 10px; padding: 13px 16px; margin: 1rem 0; font-size: 13.8px; color: var(--text-1); }
.dv-callout b { color: var(--text-0); }
.dv-callout--warn { border-color: var(--warn); background: var(--warn-soft); }
.dv-callout--success { border-color: var(--ok); background: var(--ok-soft); }
.dv-callout--danger { border-color: var(--bad); background: var(--bad-soft); }

/* Facts / definition table */
.dv-facts { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: .6rem 0; }
.dv-facts td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.dv-facts td:first-child { color: var(--text-2); width: 200px; font-weight: 600; }
.dv-check { display: flex; flex-direction: column; gap: .5rem; list-style: none; padding-left: 0; }
.dv-check li { padding-left: 1.8rem; position: relative; }
.dv-check li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

@media (max-width: 860px) {
  /* minmax(0, 1fr) — NOT plain 1fr — so the single column can shrink below its
     min-content (a wide API table / code block) and the child's own overflow-x
     scrolls it, instead of the grid stretching the page past the viewport. */
  .dv-layout { grid-template-columns: minmax(0, 1fr); }
  .dv-side { position: static; }
  .dv-side nav { flex-direction: row; flex-wrap: wrap; }
}


/* ==========================================================================
   Dark-ground text corrections
   --------------------------------------------------------------------------
   The component library is light-first: .muted/.lead/.stat/.kv/.badge all
   resolve to navy ink tokens, which are invisible on a navy surface
   (--text-0 #0a1f44 on --bg-ink #0a1f44 is literally 1.00:1).

   Previously these were only corrected under an .on-dark ANCESTOR, but the
   dark surfaces themselves (.hero, .section-dark, .photo-band, .glass-dark,
   .site-footer) never carried that class, so authors had to remember to add
   it by hand — and mostly did not. Every dark surface now implies dark-ground
   text, so a component dropped into a dark band is readable by default.
   ========================================================================== */

/* Headings + body copy */
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4,
.photo-band h1, .photo-band h2, .photo-band h3, .photo-band h4,
.glass-dark h1, .glass-dark h2, .glass-dark h3, .glass-dark h4 { color: var(--text-inv-0); }

.section-dark .muted, .photo-band .muted, .hero .muted,
.glass-dark .muted, .site-footer .muted { color: var(--text-inv-2); }

.section-dark .lead, .photo-band .lead, .hero .lead,
.glass-dark .lead { color: var(--text-inv-1); }

.section-dark a:not(.btn), .photo-band a:not(.btn),
.glass-dark a:not(.btn) { color: var(--gold-bright); }

/* Stats — the headline numbers were rendering navy-on-navy */
.section-dark .stat .stat-value, .photo-band .stat .stat-value,
.hero .stat .stat-value, .glass-dark .stat .stat-value { color: #fff; }

.section-dark .stat .stat-label, .photo-band .stat .stat-label,
.hero .stat .stat-label, .glass-dark .stat .stat-label { color: var(--text-inv-2); }

.section-dark .stat .stat-value .unit, .photo-band .stat .stat-value .unit,
.hero .stat .stat-value .unit, .glass-dark .stat .stat-value .unit,
.on-dark .stat .stat-value .unit { color: var(--gold-bright); }

/* Key/value panels */
.section-dark .kv, .photo-band .kv, .glass-dark .kv { border-color: var(--line-ink); }
.section-dark .kv .k, .photo-band .kv .k, .glass-dark .kv .k { color: var(--text-inv-2); }
.section-dark .kv .v, .photo-band .kv .v, .glass-dark .kv .v { color: #fff; }

/* Feature/spec lists — .fl-body strong and .si-body strong use --text-0 */
.section-dark .feature-list .fl-body strong, .photo-band .feature-list .fl-body strong,
.glass-dark .feature-list .fl-body strong, .on-dark .feature-list .fl-body strong { color: var(--text-inv-0); }
.section-dark .feature-list .fl-body span, .photo-band .feature-list .fl-body span,
.glass-dark .feature-list .fl-body span, .on-dark .feature-list .fl-body span { color: var(--text-inv-1); }

/* .spec-item is a WHITE card; on a dark band give it a dark glass surface so
   its (dark) default text keeps its contrast instead of being inverted. */
.section-dark .spec-item, .photo-band .spec-item {
  background: rgba(255, 255, 255, 0.05); border-color: var(--line-ink);
}
.section-dark .spec-item .si-body strong, .photo-band .spec-item .si-body strong { color: var(--text-inv-0); }
.section-dark .spec-item .si-body span, .photo-band .spec-item .si-body span { color: var(--text-inv-1); }
.section-dark .spec-item .si-check, .photo-band .spec-item .si-check { color: #5fd398; }
.section-dark .spec-item:hover, .photo-band .spec-item:hover { border-color: var(--gold-line); }

/* Badges — the *-soft fills are near-transparent, so on dark the dark ink
   showed through at ~2.9:1. Brighten ink and firm up the fill. */
.on-dark .badge-gold, .section-dark .badge-gold, .photo-band .badge-gold, .glass-dark .badge-gold {
  color: var(--gold-bright); background: rgba(201, 162, 39, 0.16); border-color: rgba(201, 162, 39, 0.42);
}
.on-dark .badge-ok, .section-dark .badge-ok, .photo-band .badge-ok, .glass-dark .badge-ok {
  color: #5fd398; background: rgba(21, 127, 74, 0.24); border-color: rgba(95, 211, 152, 0.38);
}
.on-dark .badge-warn, .section-dark .badge-warn, .photo-band .badge-warn, .glass-dark .badge-warn {
  color: #f0c05a; background: rgba(154, 106, 9, 0.26); border-color: rgba(240, 192, 90, 0.38);
}
.on-dark .badge-bad, .section-dark .badge-bad, .photo-band .badge-bad, .glass-dark .badge-bad {
  color: #ff8f86; background: rgba(179, 38, 30, 0.26); border-color: rgba(255, 143, 134, 0.38);
}
.on-dark .badge-info, .section-dark .badge-info, .photo-band .badge-info, .glass-dark .badge-info {
  color: #7fb2ff; background: rgba(29, 95, 191, 0.26); border-color: rgba(127, 178, 255, 0.38);
}
.on-dark .badge-muted, .section-dark .badge-muted, .photo-band .badge-muted, .glass-dark .badge-muted {
  color: var(--text-inv-1); background: rgba(255, 255, 255, 0.08); border-color: var(--line-ink);
}

/* .cert-chips is a dark-ground component by default; correct it on light
   grounds so the views can drop their repeated inline patch. */
.section:not(.section-dark):not(.photo-band) .cert-chips span {
  color: var(--text-2); border-color: var(--line-strong);
}
.section-dark .cert-chips span, .photo-band .cert-chips span,
.hero .cert-chips span, .site-footer .cert-chips span, .on-dark .cert-chips span {
  color: var(--text-inv-2); border-color: var(--line-ink);
}

/* Form controls sitting in a dark band (help.php search) */
.hero input[type="text"], .hero input[type="search"], .hero input[type="email"],
.section-dark input[type="text"], .section-dark input[type="search"], .section-dark input[type="email"],
.photo-band input[type="text"], .photo-band input[type="search"], .photo-band input[type="email"] {
  border-color: rgba(255, 255, 255, 0.22);
}
.hero input::placeholder, .section-dark input::placeholder, .photo-band input::placeholder { color: #6b7690; }
/* ---- Print (receipts) ----
   The receipt page tells payers to Ctrl+P it, so make that output presentable:
   drop the page chrome, keep the wordmark, and force logo colours to print
   even when "background graphics" is off. */
.receipt-brand__img { display: inline-block; height: 24px; width: auto; }

@media print {
  body { background: #fff; }
  .site-header, .site-footer, .checkout-footer, .nav-toggle,
  #support-chat, .support-chat, .flash, .alert { display: none !important; }
  .checkout-shell { display: block; padding: 0; min-height: 0; }
  .checkout-card {
    max-width: none; margin: 0; border: none; box-shadow: none; padding: 0;
    border-radius: 0; background: #fff;
  }
  .brand__img, .receipt-brand__img {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .receipt-brand { margin-top: 1.2rem; }
  .kv { break-inside: avoid; }
  a[href]::after { content: ""; }
}

/* Secondary payment options on checkout — a payer's local rails are listed
   first, with everything else the platform supports behind a disclosure. */
.more-methods { margin-top: 0.6rem; border-top: 1px solid var(--line); padding-top: 0.6rem; }
.more-methods summary {
  cursor: pointer; font-size: 0.88rem; font-weight: 650; color: var(--gold-deep);
  list-style: none; display: inline-flex; align-items: center; gap: 6px;
}
.more-methods summary::before { content: "+"; font-weight: 800; }
.more-methods[open] summary::before { content: "−"; }
.more-methods > p { margin: 0.4rem 0 0.6rem; }

/* ══ Cloud → Enterprise bridge (relationship with enterprise.qoinpay.com) ════ */
.nav-item--enterprise { color: var(--gold-deep) !important; font-weight: 600; }
.nav-item--enterprise:hover { color: var(--gold) !important; }
.xbridge { display:grid; grid-template-columns:1.4fr 1fr; gap:2.5rem; align-items:center;
  background:var(--bg-2, #fff); border:1px solid var(--gold-line, rgba(169,126,18,0.26)); border-radius:var(--radius-lg, 22px); padding:2.5rem; box-shadow:var(--shadow); }
.xbridge__body h2 { margin:.3rem 0 .6rem; }
.xbridge__models { display:flex; flex-direction:column; gap:.75rem; align-items:center; }
.xmodel { width:100%; text-align:center; padding:1.1rem 1.25rem; border:1px solid var(--line, rgba(10,31,68,0.08)); border-radius:var(--radius, 14px); background:var(--bg-1, #f4f6fa); display:flex; flex-direction:column; gap:.2rem; }
.xmodel strong { font-size:1.05rem; color:var(--text-0, #0a1f44); }
.xmodel--active { border-color:var(--gold-line, rgba(169,126,18,0.26)); background:var(--gold-soft, rgba(169,126,18,0.08)); }
.xmodel__tag { align-self:center; font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; padding:.15rem .55rem; border-radius:999px; background:var(--navy-soft, rgba(10,31,68,0.05)); color:var(--navy, #0a1f44); }
.xmodel__tag--gold { background:#fff; color:var(--gold-deep, #8a6a17); }
.xmodel__vs { font-size:.8rem; font-weight:700; color:var(--text-2, #5b6b85); text-transform:uppercase; letter-spacing:.08em; }
@media (max-width:820px){ .xbridge { grid-template-columns:1fr; gap:1.5rem; padding:1.75rem; } }
