/* ==========================================================================
   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: 1040px) {
  .site-nav { gap: 0.75rem; }
  .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; }

/* ── Brand lockup: QoinPay logo + per-app label ──────────────────────────── */
.brand-lockup { display:inline-flex; align-items:center; gap:8px; }
.brand-lockup__logo { display:block; height:24px; width:auto; }
.brand-lockup__label { font-size:14px; font-weight:700; letter-spacing:-.01em; color:var(--navy,#0a1f44);
  padding-left:8px; border-left:1px solid var(--line-strong,rgba(10,31,68,.14)); line-height:1; }

/* ══ Premium hero + card art (self-contained, no image files) ═══════════════
   Adopts the unicentral.co image-driven structure but fills the "photo" slots
   with layered navy+gold gradients + a subtle SVG grid/mesh, so it works
   offline / air-gapped with zero external dependencies. */

/* Hero: add a decorative art layer behind the existing .hero-glow. A faint
   engineering-grid SVG (data URI) + gold/blue depth radials + a soft grain. */
.hero { position: relative; isolation: isolate; }
.hero-art {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
  background-image:
    radial-gradient(900px 520px at 82% -8%, rgba(201,162,39,0.20), transparent 60%),
    radial-gradient(820px 560px at -6% 108%, rgba(48,80,168,0.30), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M48 0H0V48' fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
  background-size: cover, cover, 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
}
.hero-art::after { /* soft vignette + gold sweep for depth */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(1200px 500px at 50% -20%, rgba(255,255,255,0.06), transparent 70%);
}
.hero > .container { position: relative; z-index: 2; }
.hero .hero-glow { z-index: 1; }

/* Product / feature cards: a slim gradient "art header" rail that fills on hover,
   plus a subtle top gradient wash — the card equivalent of an image-topped card. */
.product-card { isolation: isolate; }
.product-card::after { /* faint gold corner glow */
  content: ""; position: absolute; top: -40%; right: -30%; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(201,162,39,0.10), transparent 70%);
  opacity: 0; transition: opacity .3s var(--ease); pointer-events: none; z-index: 0;
}
.product-card:hover::after { opacity: 1; }
.product-card > * { position: relative; z-index: 1; }

/* Card with a gradient art band header (opt-in via .card--art) */
.card--art { position: relative; overflow: hidden; padding-top: 0; }
.card--art .card__art {
  height: 96px; margin: -1px -1px 1.25rem; border-radius: var(--radius) var(--radius) 0 0;
  background:
    radial-gradient(120px 80px at 20% 30%, rgba(201,162,39,0.35), transparent 70%),
    linear-gradient(120deg, #0d1424, #16233f 60%, #1d2a4f);
  position: relative; display: flex; align-items: center; justify-content: center;
}
.card--art .card__art svg, .card--art .card__art .product-card__icon { color: var(--gold-bright); }

/* ══ Image-topped cards (real photos, unicentral.co style) ═══════════════════ */
.card--img { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--img .card__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0d1424; }
.card--img .card__img img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s var(--ease); }
.card--img:hover .card__img img { transform: scale(1.05); }
.card--img .card__img::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13,20,36,0.22)); pointer-events: none; }
.card--img .card__pad { padding: 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card--img .card__eyebrow { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 700; }
.card--img h3 { font-size: 1.15rem; letter-spacing: -.02em; }
.card--img .card__pad p { color: var(--text-1); font-size: .92rem; line-height: 1.6; }
.card--img .card__link { margin-top: auto; padding-top: .3rem; font-size: .88rem; font-weight: 700;
  color: var(--gold-deep); display: inline-flex; align-items: center; gap: .4rem; }
.card--img:hover .card__link span[aria-hidden] { transform: translateX(4px); display: inline-block; transition: transform .2s var(--ease); }

/* Hero photo layer: prefer webp via image-set, jpg fallback. Set --hero-img per page. */
.hero-photo { z-index: 0; }
.hero-photo.has-photo { animation: heroZoom 22s var(--ease) forwards; }

/* feature-visual real-photo helper (photo set inline via style background-image) */
.feature-visual.has-photo::after { background: linear-gradient(160deg, rgba(10,31,68,0.28) 0%, rgba(10,31,68,0.08) 100%); }

/* ══════════════════════════════════════════════════════════════════════════
   Pricing solution builder (the /pricing calculator) — .calc-*
   ══════════════════════════════════════════════════════════════════════════ */

/* Compact hero + trust badges */
.hero--compact { padding-top: clamp(5rem, 9vw, 7rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.35rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .42rem .8rem; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  color: var(--text-inv-0); font-size: .82rem; font-weight: 600; letter-spacing: .01em;
}
.hero-badge svg { color: var(--gold-bright); flex: none; }

/* Head row: title + currency */
.calc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.calc-currency { display: flex; flex-direction: column; gap: .35rem; min-width: 140px; }
.calc-currency label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }

.calc-select {
  appearance: none; -webkit-appearance: none;
  width: 100%; padding: .6rem 2.1rem .6rem .85rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6b85' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right .75rem center;
  color: var(--text-0); font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.calc-select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }

/* Two-column layout: builder + sticky summary */
.calc-layout { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 2rem; align-items: start; }
.calc-main { min-width: 0; }

/* Configured item cards */
.calc-item { padding: 1.4rem 1.5rem; }
.calc-items-empty {
  padding: 1.6rem; border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
  text-align: center; font-size: .95rem;
}
.calc-item__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.calc-item__title { display: flex; flex-direction: column; gap: .2rem; }
.calc-item__cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--gold-deep); }
.calc-item__title strong { font-size: 1.12rem; color: var(--text-0); }
.calc-item__remove {
  border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--text-2);
  font-size: .8rem; font-weight: 600; padding: .35rem .7rem; border-radius: 999px; cursor: pointer;
  transition: all .18s var(--ease);
}
.calc-item__remove:hover { color: #b3261e; border-color: rgba(179,38,30,.4); background: rgba(179,38,30,.05); }

.calc-item__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .9rem 1rem; }
.calc-field { display: flex; flex-direction: column; gap: .35rem; }
.calc-field > label { font-size: .78rem; font-weight: 700; color: var(--text-1); }

/* Quantity stepper */
.calc-qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; max-width: 140px; }
.calc-qty__btn { width: 2.2rem; border: none; background: var(--bg-3); color: var(--text-0); font-size: 1.1rem; cursor: pointer; line-height: 1; }
.calc-qty__btn:hover { background: var(--gold-soft); color: var(--gold-deep); }
.calc-qty__input { flex: 1; min-width: 0; border: none; text-align: center; font: inherit; font-weight: 700; color: var(--text-0); background: var(--bg-2); }
.calc-qty__input:focus { outline: none; }

/* Module / pack chips */
.calc-chips { margin-top: 1.1rem; }
.calc-chips__label { display: block; font-size: .78rem; font-weight: 700; color: var(--text-1); margin-bottom: .5rem; }
.calc-chips__row { display: flex; flex-wrap: wrap; gap: .5rem; }
.calc-chip {
  border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--text-1);
  font-size: .83rem; font-weight: 600; padding: .42rem .8rem; border-radius: 999px; cursor: pointer;
  transition: all .16s var(--ease);
}
.calc-chip:hover { border-color: var(--gold-line); color: var(--gold-deep); }
.calc-chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.calc-chip.is-on:hover { background: var(--bg-ink-2); }

.calc-item__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.15rem; padding-top: .95rem; border-top: 1px solid var(--line); }
.calc-item__foot strong { font-size: 1.02rem; color: var(--text-0); }

/* Add-product card + picker grid */
.calc-add__head h3 { display: flex; align-items: center; gap: .5rem; }
.calc-add__head h3 svg { color: var(--gold-deep); }
.calc-add__head p { margin-top: .25rem; }
.calc-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; margin-top: 1.1rem; }
.calc-pick {
  display: flex; flex-direction: column; gap: .25rem; text-align: left;
  padding: 1rem 1.05rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--bg-2); cursor: pointer; transition: all .2s var(--ease);
}
.calc-pick:hover { border-color: var(--gold-line); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.calc-pick__cat { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--gold-deep); }
.calc-pick__name { font-size: 1rem; font-weight: 700; color: var(--text-0); }
.calc-pick__tag { font-size: .82rem; color: var(--text-2); line-height: 1.4; }
.calc-pick__add { margin-top: .35rem; font-size: .82rem; font-weight: 700; color: var(--navy); }
.calc-pick:hover .calc-pick__add { color: var(--gold-deep); }

.calc-suite .calc-field { max-width: 340px; }
.calc-hint { font-size: .82rem; color: var(--text-2); margin-top: .1rem; line-height: 1.5; }

/* Sticky summary */
.calc-summary { position: sticky; top: 1.5rem; }
.calc-summary__card { background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.calc-summary__head { padding: 1.5rem 1.5rem 1.25rem; background: linear-gradient(155deg, #0f1d3a, #06152e); color: #fff; }
.calc-summary__head .eyebrow { color: var(--gold-bright); }
.calc-total { font-size: 2.05rem; line-height: 1.1; margin: .35rem 0 .3rem; color: #fff; font-weight: 800; letter-spacing: -.01em; transition: opacity .2s var(--ease); }
.calc-total.is-busy { opacity: .45; }
.calc-summary__sub { font-size: .85rem; color: var(--text-inv-1); line-height: 1.45; }
.calc-summary__body { padding: 1.25rem 1.5rem; }
.calc-empty { text-align: center; color: var(--text-2); padding: 1.5rem 0; }
.calc-empty svg { color: var(--line-strong); margin-bottom: .6rem; }
.calc-empty p { font-size: .9rem; }

.calc-break__item { padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.calc-break__item:first-child { padding-top: 0; }
.calc-break__row { display: flex; justify-content: space-between; gap: 1rem; }
.calc-break__row--head { font-weight: 700; color: var(--text-0); font-size: .95rem; }
.calc-break__meta { font-size: .78rem; color: var(--text-2); margin-top: .15rem; }

.calc-totals { margin-top: 1rem; padding-top: 1rem; border-top: 1.5px solid var(--line-strong); display: flex; flex-direction: column; gap: .5rem; }
.calc-total-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; color: var(--text-1); }
.calc-total-row.is-discount { color: var(--gold-deep); font-weight: 600; }
.calc-total-row.is-strong { font-weight: 700; color: var(--text-0); font-size: 1rem; padding-top: .35rem; border-top: 1px solid var(--line); }
.calc-total-row.is-muted { color: var(--text-2); }
.calc-note { margin-top: .9rem; font-size: .8rem; color: var(--text-2); line-height: 1.5; background: var(--gold-soft); border-radius: var(--radius-sm); padding: .6rem .75rem; }

.calc-summary__foot { padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid var(--line); }
.calc-disclaimer { display: flex; align-items: flex-start; gap: .4rem; margin-top: .85rem; font-size: .76rem; color: var(--text-2); line-height: 1.5; }
.calc-disclaimer svg { flex: none; margin-top: .12rem; color: var(--text-2); }

/* Formal-quote modal */
.calc-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.calc-modal[hidden] { display: none; }
.calc-modal__backdrop { position: absolute; inset: 0; background: rgba(6, 21, 46, 0.55); backdrop-filter: blur(4px); }
.calc-modal__dialog { position: relative; z-index: 1; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; border-radius: var(--radius-lg); animation: calcIn .28s var(--ease); }
@keyframes calcIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.calc-modal__x { position: absolute; top: 1rem; right: 1rem; border: none; background: var(--bg-3); color: var(--text-1); width: 2rem; height: 2rem; border-radius: 999px; cursor: pointer; display: grid; place-items: center; }
.calc-modal__x:hover { background: var(--line-strong); color: var(--text-0); }
.calc-modal__estimate { margin-bottom: 1.25rem; }
.calc-modal__figure { display: flex; flex-direction: column; gap: .1rem; padding: 1rem 1.15rem; border-radius: var(--radius); background: linear-gradient(155deg, #0f1d3a, #06152e); color: #fff; }
.calc-modal__figure span { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--gold-bright); font-weight: 700; }
.calc-modal__figure strong { font-size: 1.7rem; font-weight: 800; }
.calc-modal__figure em { font-size: .82rem; color: var(--text-inv-1); font-style: normal; }
.calc-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.calc-textarea { min-height: 4.5rem; resize: vertical; padding-top: .6rem; line-height: 1.5; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: .75rem 1.5rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; cursor: pointer; font-weight: 700; color: var(--text-0); font-size: 1.02rem; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-mark { position: relative; flex: none; width: 18px; height: 18px; }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; background: var(--gold-deep); border-radius: 2px; transition: transform .22s var(--ease); }
.faq-mark::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-mark::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq-item[open] .faq-mark::after { transform: scaleY(0); }
.faq-body { padding: 0 0 1.2rem; }
.faq-body p { color: var(--text-1); font-size: .95rem; line-height: 1.65; max-width: 60ch; }

/* Responsive */
@media (max-width: 900px) {
  .calc-layout { grid-template-columns: 1fr; }
  .calc-summary { position: static; }
  .calc-summary__card { margin-top: .5rem; }
}
@media (max-width: 560px) {
  .calc-form__row { grid-template-columns: 1fr; }
  .calc-head { flex-direction: column; align-items: stretch; }
  .calc-currency { min-width: 0; }
}

/* ══════════════════════════════════════════════════════════════════════════
   Contact consultation booking (the /contact multi-step widget) — .ct-*
   ══════════════════════════════════════════════════════════════════════════ */

.ct-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 2rem; align-items: start; }
.ct-main { min-width: 0; }
.ct-card { padding: 2rem; }

/* Stepper */
.ct-steps { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.75rem; }
.ct-step { display: flex; align-items: center; gap: .55rem; flex: 1; min-width: 0; color: var(--text-2); font-size: .82rem; font-weight: 600; }
.ct-step__n { flex: none; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 999px; background: var(--bg-3); color: var(--text-2); font-weight: 700; border: 1.5px solid var(--line-strong); transition: all .2s var(--ease); }
.ct-step__l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-step.is-active .ct-step__n { background: var(--navy); color: #fff; border-color: var(--navy); }
.ct-step.is-active { color: var(--text-0); }
.ct-step.is-done .ct-step__n { background: var(--gold); color: #fff; border-color: var(--gold); }
@media (max-width: 560px) { .ct-step__l { display: none; } .ct-step { flex: none; } }

/* Panels */
.ct-panel { display: none; }
.ct-panel.is-active { display: block; animation: ctFade .25s var(--ease); }
@keyframes ctFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Form fields */
.ct-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ct-field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.ct-field > span { font-size: .82rem; font-weight: 700; color: var(--text-1); }
.ct-field b { color: var(--gold-deep); }
.ct-field input, .ct-field select, .ct-field textarea {
  width: 100%; padding: .7rem .85rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font: inherit; font-size: .95rem; color: var(--text-0); background: var(--bg-2); transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.ct-field textarea { resize: vertical; line-height: 1.5; }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.ct-field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6b85' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; }

/* Product chips */
.ct-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.ct-chip { position: relative; }
.ct-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ct-chip span { display: inline-block; padding: .45rem .85rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--text-1); cursor: pointer; transition: all .16s var(--ease); }
.ct-chip span:hover { border-color: var(--gold-line); color: var(--gold-deep); }
.ct-chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.ct-chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--gold-soft); }

.ct-actions { display: flex; gap: .75rem; margin-top: 1.25rem; }
.ct-actions--split { justify-content: space-between; }
.ct-error { margin-top: .85rem; color: #b3261e; font-size: .86rem; font-weight: 600; }

/* Route preview */
.ct-route { display: flex; align-items: flex-start; gap: .6rem; padding: .85rem 1rem; border-radius: var(--radius-sm); background: var(--gold-soft); border: 1px solid var(--gold-line); font-size: .88rem; color: var(--text-1); line-height: 1.5; margin-bottom: 1.5rem; }
.ct-route__i { flex: none; color: var(--gold-deep); margin-top: .1rem; }

/* Slots */
.ct-slots__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.ct-slots__head h3 { margin: 0; }
.ct-tz { font-size: .8rem; color: var(--text-2); }
.ct-slots { max-height: 420px; overflow-y: auto; padding-right: .25rem; }
.ct-slots__loading, .ct-slots__empty { padding: 2rem 0; text-align: center; color: var(--text-2); font-size: .92rem; }
.ct-day { padding: .5rem 0 1rem; border-bottom: 1px dashed var(--line); }
.ct-day:last-child { border-bottom: none; }
.ct-day__label { font-size: .8rem; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .6rem; }
.ct-day__slots { display: flex; flex-wrap: wrap; gap: .5rem; }
.ct-slot { padding: .5rem .9rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg-2); font: inherit; font-size: .88rem; font-weight: 600; color: var(--text-0); cursor: pointer; transition: all .15s var(--ease); }
.ct-slot:hover { border-color: var(--gold-line); color: var(--gold-deep); transform: translateY(-1px); }
.ct-slot.is-sel { background: var(--gold); border-color: var(--gold); color: #fff; }

/* Confirmation */
.ct-confirm { text-align: center; padding: 1rem 0; }
.ct-confirm.is-active { display: block; }
.ct-confirm__icon { color: #1f9d55; display: flex; justify-content: center; margin-bottom: .75rem; }
.ct-confirm h3 { margin: 0 0 1.25rem; }
.ct-confirm__box { max-width: 420px; margin: 0 auto 1.25rem; text-align: left; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 1.25rem; background: var(--bg-1); }
.ct-confirm__row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.ct-confirm__row:last-of-type { border-bottom: none; }
.ct-confirm__row span { color: var(--text-2); }
.ct-confirm__row a { color: var(--gold-deep); word-break: break-all; }
.ct-confirm__host { margin-top: .85rem; font-size: .9rem; color: var(--text-1); }
.ct-confirm__note { max-width: 460px; margin: 0 auto 1.5rem; color: var(--text-2); font-size: .88rem; line-height: 1.6; }

.ct-fallback { margin-top: 1rem; text-align: center; }
.ct-simple { margin-top: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.25rem; }
.ct-simple summary { cursor: pointer; font-weight: 600; color: var(--text-1); font-size: .92rem; }

/* Aside */
.ct-aside { position: sticky; top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.ct-aside__card { padding: 1.5rem; }
.ct-aside__card h3 { margin: 0 0 1rem; font-size: 1.05rem; }
.ct-expect { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.ct-expect li { display: flex; gap: .75rem; }
.ct-expect__i { flex: none; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 8px; background: var(--gold-soft); color: var(--gold-deep); }
.ct-expect strong { display: block; font-size: .92rem; color: var(--text-0); margin-bottom: .15rem; }
.ct-expect span { font-size: .84rem; color: var(--text-2); line-height: 1.5; }
.ct-aside__stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; text-align: center; }
.ct-stat__v { display: block; font-size: 1.1rem; font-weight: 800; color: var(--navy); }
.ct-stat__l { display: block; font-size: .72rem; color: var(--text-2); margin-top: .2rem; line-height: 1.3; }

@media (max-width: 900px) {
  .ct-layout { grid-template-columns: 1fr; }
  .ct-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .ct-aside__card { flex: 1; min-width: 240px; }
}
@media (max-width: 560px) {
  .ct-form__row { grid-template-columns: 1fr; }
  .ct-card { padding: 1.5rem; }
  .ct-aside { flex-direction: column; }
}

/* ══ Support AI chat widget ═════════════════════════════════════════════════ */
.supw { position:fixed; right:20px; bottom:20px; z-index:300; font-family:var(--font,system-ui,sans-serif); }
.supw__launch { display:inline-flex; align-items:center; gap:8px; border:none; cursor:pointer;
  background:linear-gradient(135deg,var(--accent-bright,#c9a227),var(--accent-deep,#8a6a17)); color:#fff;
  padding:12px 18px; border-radius:999px; box-shadow:0 6px 22px rgba(184,144,31,.35); font-size:14px; font-weight:700;
  transition:transform .18s, box-shadow .18s; }
.supw__launch:hover { transform:translateY(-2px); box-shadow:0 10px 28px rgba(184,144,31,.45); }
.supw__launch svg { width:22px; height:22px; }
.supw__panel { position:absolute; right:0; bottom:64px; width:min(370px,calc(100vw - 40px)); height:520px; max-height:calc(100vh - 120px);
  display:flex; flex-direction:column; background:var(--surface,#fff); color:var(--text,#1a2236);
  border:1px solid var(--border,rgba(10,31,68,.1)); border-radius:16px; box-shadow:0 24px 60px rgba(10,31,68,.28); overflow:hidden;
  animation:supwIn .22s ease; }
.supw__panel[hidden] { display:none; }
@keyframes supwIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
.supw__head { display:flex; align-items:center; justify-content:space-between; padding:14px 16px;
  background:linear-gradient(135deg,#16233f,#0d1424); color:#fff; }
.supw__head-title { display:flex; align-items:center; gap:8px; font-weight:700; font-size:14px; }
.supw__head-title svg { color:var(--accent-bright,#c9a227); }
.supw__close { background:rgba(255,255,255,.12); border:none; color:#fff; width:28px; height:28px; border-radius:8px; cursor:pointer; display:grid; place-items:center; }
.supw__close:hover { background:rgba(255,255,255,.22); }
.supw__log { flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:10px; background:var(--bg,#f2f0ea); }
.supw-msg { max-width:85%; }
.supw-msg--user { align-self:flex-end; }
.supw-msg--assistant { align-self:flex-start; }
.supw-msg__body { padding:9px 13px; border-radius:14px; font-size:13.5px; line-height:1.5; }
.supw-msg--user .supw-msg__body { background:var(--primary,#16233f); color:#fff; border-bottom-right-radius:4px; }
.supw-msg--assistant .supw-msg__body { background:var(--surface,#fff); color:var(--text,#1a2236); border:1px solid var(--border,rgba(10,31,68,.1)); border-bottom-left-radius:4px; }
.supw-msg__src { font-size:11px; color:var(--text-muted,#5b6b85); margin-top:4px; padding:0 4px; }
.supw-typing .supw-msg__body { display:inline-flex; gap:4px; }
.supw-typing span { width:6px; height:6px; border-radius:50%; background:var(--text-muted,#5b6b85); animation:supwDot 1s infinite; }
.supw-typing span:nth-child(2){ animation-delay:.15s; } .supw-typing span:nth-child(3){ animation-delay:.3s; }
@keyframes supwDot { 0%,60%,100%{ opacity:.3; } 30%{ opacity:1; } }
.supw__form { display:flex; gap:8px; padding:12px; border-top:1px solid var(--border,rgba(10,31,68,.1)); background:var(--surface,#fff); }
.supw__input { flex:1; border:1px solid var(--border-strong,rgba(10,31,68,.16)); border-radius:10px; padding:9px 12px; font:inherit; font-size:13.5px; color:var(--text,#1a2236); background:var(--surface,#fff); }
.supw__input:focus { outline:none; border-color:var(--accent,#b8901f); box-shadow:0 0 0 3px var(--accent-soft,rgba(184,144,31,.12)); }
.supw__send { flex:none; width:40px; border:none; border-radius:10px; background:var(--accent,#b8901f); color:#fff; cursor:pointer; display:grid; place-items:center; }
.supw__send:hover { background:var(--accent-deep,#8a6a17); }
.supw__foot { font-size:11px; color:var(--text-muted,#5b6b85); padding:8px 14px 12px; background:var(--surface,#fff); text-align:center; }
.supw__foot a { color:var(--accent-deep,#8a6a17); }
@media (max-width:480px){ .supw__launch-label { display:none; } }

/* ══ Docs (public) ══════════════════════════════════════════════════════════ */
.docs-search { display:flex; gap:.5rem; margin-top:1rem; max-width:520px; }
.docs-search input { flex:1; padding:.7rem .9rem; border:1px solid var(--line-strong); border-radius:var(--radius-sm); font:inherit; background:var(--bg-2); color:var(--text-0); }
.docs-search input:focus { outline:none; border-color:var(--gold); box-shadow:0 0 0 3px var(--gold-soft); }
.doc-space-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:1rem; }
.doc-space-card { display:flex; flex-direction:column; gap:.35rem; padding:1.4rem; border:1px solid var(--line); border-radius:var(--radius); background:var(--bg-2); transition:all .2s var(--ease); }
.doc-space-card:hover { border-color:var(--gold-line); box-shadow:var(--shadow-sm); transform:translateY(-2px); }
.doc-space-card__eyebrow { font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--gold-deep); }
.doc-space-card h3 { font-size:1.1rem; color:var(--text-0); }
.doc-space-card p { font-size:.9rem; color:var(--text-2); line-height:1.5; }
.doc-space-card__link { margin-top:auto; font-size:.85rem; font-weight:700; color:var(--navy); }
.docs-layout { display:block; }
.docs-layout--sidebar { display:grid; grid-template-columns:240px 1fr; gap:2.5rem; align-items:start; }
.docs-sidebar { position:sticky; top:1.5rem; }
.docs-sidebar__title { font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text-2); margin-bottom:.75rem; }
.docs-sidebar__nav { display:flex; flex-direction:column; gap:.15rem; }
.docs-sidebar__nav a { padding:.45rem .65rem; border-radius:8px; font-size:.9rem; color:var(--text-1); }
.docs-sidebar__nav a:hover { background:var(--bg-1); color:var(--gold-deep); }
.docs-sidebar__nav a.is-active { background:var(--gold-soft); color:var(--gold-deep); font-weight:600; }
.doc-article-list { display:flex; flex-direction:column; gap:.6rem; }
.doc-article-item { padding:1.1rem 1.3rem; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--bg-2); transition:all .18s var(--ease); }
.doc-article-item:hover { border-color:var(--gold-line); box-shadow:var(--shadow-sm); }
.doc-article-item h3 { font-size:1.02rem; color:var(--text-0); margin-bottom:.2rem; }
.doc-article-item p { font-size:.88rem; color:var(--text-2); }
.docs-prose { max-width:70ch; line-height:1.7; color:var(--text-1); }
.docs-prose h1 { font-size:1.9rem; margin:0 0 1rem; color:var(--text-0); }
.docs-prose h2 { font-size:1.4rem; margin:2rem 0 .8rem; color:var(--text-0); }
.docs-prose h3 { font-size:1.15rem; margin:1.5rem 0 .6rem; color:var(--text-0); }
.docs-prose p { margin:0 0 1rem; }
.docs-prose ul, .docs-prose ol { margin:0 0 1rem 1.3rem; }
.docs-prose li { margin:.3rem 0; }
.docs-prose code { font-family:var(--mono,monospace); font-size:.88em; background:var(--bg-1); padding:.1em .4em; border-radius:5px; }
.docs-prose pre { background:#0d1424; color:#e6ebf5; padding:1rem 1.2rem; border-radius:var(--radius-sm); overflow-x:auto; margin:0 0 1rem; }
.docs-prose pre code { background:none; padding:0; color:inherit; }
.docs-prose a { color:var(--gold-deep); text-decoration:underline; }
@media (max-width:760px){ .docs-layout--sidebar { grid-template-columns:1fr; } .docs-sidebar { position:static; } }

/* ══ Forum (public) ═════════════════════════════════════════════════════════ */
.fo-head { display:flex; align-items:flex-end; justify-content:space-between; gap:1.5rem; flex-wrap:wrap; }
.fo-cats { display:flex; flex-direction:column; gap:.75rem; }
.fo-cat { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1.3rem 1.5rem; border:1px solid var(--line); border-radius:var(--radius); background:var(--bg-2); transition:all .2s var(--ease); }
.fo-cat:hover { border-color:var(--gold-line); box-shadow:var(--shadow-sm); }
.fo-cat__body h3 { font-size:1.1rem; color:var(--text-0); }
.fo-cat__body p { font-size:.9rem; color:var(--text-2); margin-top:.15rem; }
.fo-cat__count { text-align:center; flex:none; }
.fo-cat__count strong { display:block; font-size:1.3rem; color:var(--navy); font-weight:800; }
.fo-cat__count span { font-size:.75rem; color:var(--text-2); }
.fo-topics { display:flex; flex-direction:column; gap:.5rem; }
.fo-topic { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 1.3rem; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--bg-2); transition:all .16s var(--ease); }
.fo-topic:hover { border-color:var(--gold-line); }
.fo-topic__title { display:block; font-weight:650; color:var(--text-0); }
.fo-topic__meta { font-size:.82rem; color:var(--text-2); }
.fo-topic__stats { text-align:center; flex:none; }
.fo-topic__stats strong { display:block; font-weight:800; color:var(--navy); }
.fo-topic__stats span { font-size:.72rem; color:var(--text-2); }
.fo-badge { display:inline-block; font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; padding:.1rem .45rem; border-radius:999px; background:var(--gold-soft); color:var(--gold-deep); margin-right:.4rem; }
.fo-badge--lock { background:rgba(10,31,68,.08); color:var(--text-1); }
.fo-post { padding:1.4rem; border:1px solid var(--line); border-radius:var(--radius); background:var(--bg-2); margin-bottom:1rem; }
.fo-post--op { border-color:var(--gold-line); }
.fo-post__head { display:flex; align-items:center; gap:.75rem; margin-bottom:.9rem; }
.fo-avatar { width:38px; height:38px; border-radius:50%; display:grid; place-items:center; background:var(--navy); color:#fff; font-weight:700; flex:none; }
.fo-post__head strong { display:block; color:var(--text-0); font-size:.95rem; }
.fo-post__meta { font-size:.8rem; color:var(--text-2); }
.fo-post__title { font-size:1.5rem; margin:0 0 .8rem; color:var(--text-0); }
.fo-post__body { color:var(--text-1); line-height:1.7; }

/* ══ Documentation figures (self-hosted illustrations) ══════════════════════ */
.doc-figure { margin:1.5rem 0; text-align:center; }
.doc-figure img { max-width:100%; height:auto; border:1px solid var(--line); border-radius:var(--radius-sm); background:#fff; }
.doc-figure figcaption { margin-top:.5rem; font-size:.82rem; color:var(--text-2); font-style:italic; }

/* ══ Responsive hardening — public site (qoinpay.css) ═══════════════════════ */
@media (max-width: 1040px){
  /* On mobile keep only the primary CTA + hamburger; sign-in lives in the drawer. */
  .nav-cta .btn-ghost { display:none; }
}
@media (max-width: 640px){
  /* Hero typography scales down; stat bands + grids stack */
  .hero-title { font-size:clamp(1.7rem, 8vw, 2.4rem); }
  .hero-lede { font-size:1rem; }
  .stats-band { flex-direction:column; gap:1rem; align-items:flex-start; }
  .feature-row, .feature-row.flip { grid-template-columns:1fr; }
  .grid-3, .grid-2, .product-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; gap:1.5rem; }
  .section { padding:clamp(3rem, 9vw, 4.5rem) 0; }
  /* Docs + community rows stack their trailing stat */
  .fo-cat, .fo-topic { flex-direction:column; align-items:flex-start; gap:.6rem; }
  .fo-cat__count, .fo-topic__stats { text-align:left; }
  .doc-space-grid { grid-template-columns:1fr; }
  .docs-search { flex-direction:column; }
  .docs-search .btn { width:100%; }
  /* Calculator + contact builders already stack their grids; tighten padding */
  .calc-card, .ct-card, .card-lg { padding:1.25rem; }
}
/* The support chat panel must never exceed the viewport on small phones. */
@media (max-width: 400px){
  .supw { right:12px; bottom:12px; }
  .supw__panel { width:calc(100vw - 24px); height:min(70vh, 480px); }
}

/* ══ Cloud vs Enterprise — deployment comparison ════════════════════════════ */
.deploy-cards { display:grid; grid-template-columns:1fr 1fr; gap:1.5rem; }
.deploy-card { display:flex; flex-direction:column; gap:1.1rem; padding:2rem; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--bg-2); box-shadow:var(--shadow-sm); }
.deploy-card--featured { border-color:var(--gold-line); box-shadow:var(--shadow); position:relative; }
.deploy-card--featured::before { content:""; position:absolute; inset:0; border-radius:var(--radius-lg); padding:1.5px; background:linear-gradient(135deg,var(--gold-line),transparent 60%); -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); -webkit-mask-composite:xor; mask-composite:exclude; pointer-events:none; }
.deploy-card__head h3 { font-size:1.5rem; margin:.5rem 0 .25rem; color:var(--text-0); }
.deploy-card__badge { display:inline-block; font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; padding:.25rem .7rem; border-radius:999px; background:var(--navy-soft); color:var(--navy); }
.deploy-card__badge--gold { background:var(--gold-soft); color:var(--gold-deep); }
.deploy-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:.7rem; flex:1; }
.deploy-list li { display:flex; gap:.6rem; font-size:.95rem; color:var(--text-1); line-height:1.5; }
.dl-ic { flex:none; width:1.3rem; height:1.3rem; border-radius:50%; display:grid; place-items:center; background:var(--navy-soft); color:var(--navy); font-size:.7rem; font-weight:800; margin-top:.1rem; }
.dl-ic--gold { background:var(--gold-soft); color:var(--gold-deep); }

.cmp-table { width:100%; }
.cmp-table th { text-align:left; padding:1rem; font-size:.95rem; }
.cmp-table thead th { background:var(--bg-1); border-bottom:2px solid var(--line-strong); font-weight:700; color:var(--text-0); }
.cmp-table thead th.cmp-ent { color:var(--gold-deep); }
.cmp-table td { padding:.85rem 1rem; border-bottom:1px solid var(--line); font-size:.92rem; color:var(--text-1); vertical-align:top; }
.cmp-table td.cmp-label { font-weight:650; color:var(--text-0); white-space:nowrap; }
.cmp-table td.cmp-ent { background:var(--gold-soft); color:var(--text-0); font-weight:500; }

@media (max-width:760px){ .deploy-cards { grid-template-columns:1fr; } }

/* ══ Cloud ↔ Enterprise cross-links + home bridge ═══════════════════════════ */
.nav-cloud-link { color:var(--gold-deep) !important; font-weight:600; }
.nav-cloud-link:hover { color:var(--gold) !important; }
.footer-cloud { display:inline-block; margin-top:1rem; font-size:.88rem; font-weight:600; color:var(--gold-bright); }
.footer-cloud:hover { color:#fff; }

.cloud-bridge { display:grid; grid-template-columns:1.4fr 1fr; gap:2.5rem; align-items:center;
  background:var(--bg-2); border:1px solid var(--gold-line); border-radius:var(--radius-lg); padding:2.5rem; box-shadow:var(--shadow); }
.cloud-bridge__body h2 { margin:.3rem 0 .6rem; }
.cloud-bridge__models { display:flex; flex-direction:column; gap:.75rem; align-items:center; }
.cloud-model { width:100%; text-align:center; padding:1.1rem 1.25rem; border:1px solid var(--line); border-radius:var(--radius); background:var(--bg-1); display:flex; flex-direction:column; gap:.2rem; }
.cloud-model strong { font-size:1.05rem; color:var(--text-0); }
.cloud-model--active { border-color:var(--gold-line); background:var(--gold-soft); }
.cloud-model__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); color:var(--navy); }
.cloud-model__tag--gold { background:#fff; color:var(--gold-deep); }
.cloud-model__vs { font-size:.8rem; font-weight:700; color:var(--text-2); text-transform:uppercase; letter-spacing:.08em; }
@media (max-width:820px){ .cloud-bridge { grid-template-columns:1fr; gap:1.5rem; padding:1.75rem; } }

/* ══ Public nav — layout fix (compact dropdown, caret, tighter row) ══════════ */
.nav-links { gap: 1.35rem; flex-wrap: nowrap; }
.nav-links a.nav-item { white-space: nowrap; }
.nav-item--has-menu { display: inline-flex; align-items: center; gap: .25rem; cursor: pointer; }
.nav-caret { font-size: .7rem; transition: transform .18s var(--ease); opacity: .7; }
.dropdown:hover .nav-caret, .dropdown:focus-within .nav-caret { transform: rotate(180deg); }

/* Compact single-column dropdown for the Resources menu (overrides the wide 2-col mega menu). */
.dropdown-menu--compact {
  min-width: 300px; max-width: 340px; grid-template-columns: 1fr; padding: .5rem; gap: 0;
}
.dropdown-menu--compact a { padding: .65rem .8rem; }

/* Cloud cross-link keeps its accent but sits at nav-item scale. */
.nav-links a.nav-cloud-link { font-size: .94rem; }

/* Collapse to the mobile drawer earlier (1040px) so the wider enterprise nav
   never overflows into a scattered/overlapping row. The drawer styling itself is
   defined in the existing max-width:980px block, which also applies below 1040. */
@media (max-width: 1040px) {
  .nav-links, .nav-desktop-only, .nav-desktop-cta { display: none; }
  .nav-toggle { display: block; }
  .site-nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-2);
    padding: 1rem 4vw 1.4rem; border-bottom: 1px solid var(--line-strong); gap: .35rem;
    max-height: calc(100vh - 74px); overflow-y: auto; z-index: 70; box-shadow: var(--shadow-lg);
  }
  .site-nav.open .nav-links > li { width: 100%; }
  .site-nav.open .nav-links a.nav-item { padding: .45rem 0; }
  .site-nav.open .nav-mobile-only { display: block; }
  /* In the drawer the Resources dropdown expands inline (no hover). */
  .site-nav.open .dropdown-menu--compact {
    position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; max-width: none;
    box-shadow: none; border: none; background: transparent; padding: .2rem 0 .4rem .8rem;
  }
  .site-nav.open .nav-caret { display: none; }
  .site-nav.open .btn-block { margin-top: .5rem; }
}
