/* ════════════════════════════════════════════════════════════════════════
   Muwafik · marketing.css
   Self-contained stylesheet for the public marketing page (muwafik.com).
   Deliberately independent of the app shell (tw.css / muwafik.css) so the
   marketing surface can evolve without touching the operator UI — it only
   shares the brand: deep forest green, paper white, IBM Plex, and the
   scales-of-justice seal. Fonts come from /static/fonts/fonts.css.

   Aesthetic: "The Decision Desk." Authoritative, government-grade trust.
   Paper sections for reading, deep-forest bands for gravitas, a live
   "verdict" product card as the hero anchor, hash-chain and ledger-grid
   motifs, one orchestrated page-load, and full EN/AR + RTL support.
   ════════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Brand (mirrors static/muwafik.css tokens; the single source of the
        forest-green identity) ─────────────────────────────────────────── */
  --brand:        oklch(0.38 0.095 152);
  --brand-deep:   oklch(0.26 0.075 152);
  --brand-deeper: oklch(0.19 0.055 152);   /* hero-band floor, extra depth */
  --brand-soft:   oklch(0.44 0.090 152);
  --brand-on:     oklch(0.985 0.005 145);
  --brand-on-mu:  oklch(0.90 0.018 145);
  --brand-on-fa:  oklch(0.78 0.028 150);
  --brand-tint:   oklch(0.97 0.020 152);
  --brand-line:   oklch(0.44 0.05 152 / 0.55);  /* hairline on brand surfaces */

  --paper:        oklch(1.000 0 0);
  --paper-warm:   oklch(0.985 0.004 145);
  --paper-sunk:   oklch(0.967 0.006 145);
  --ink:          oklch(0.18 0.012 155);
  --ink-muted:    oklch(0.42 0.014 155);
  --ink-faint:    oklch(0.56 0.012 155);
  --rule:         oklch(0.88 0.010 152);
  --rule-soft:    oklch(0.92 0.008 152);

  /* ── State ink (verdict words) + a single restrained warm accent for the
        seal glow and the premium edition ─────────────────────────────── */
  --state-pass:      oklch(0.42 0.12 150);
  --state-pass-tint: oklch(0.95 0.05 150);
  --state-gov:       oklch(0.55 0.10 255);
  --state-gov-tint:  oklch(0.95 0.03 260);
  --state-near:      oklch(0.62 0.12 78);
  --gold:            oklch(0.80 0.11 84);    /* seal highlight, premium ring */
  --gold-deep:       oklch(0.66 0.11 78);

  --maxw: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.75rem);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 1px 2px oklch(0.2 0.03 152 / 0.04),
                 0 18px 40px -22px oklch(0.2 0.05 152 / 0.28);
  --shadow-float: 0 2px 6px oklch(0.2 0.03 152 / 0.06),
                  0 40px 80px -36px oklch(0.2 0.06 152 / 0.42);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ════════════════════════════════════ RESET / BASE ═══════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: 'ss01', 'ss02', 'kern';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Arabic voice — swap the family and relax the leading; kill decorative
   tracking (it breaks cursive joins). Applied whenever the doc flips to AR. */
html[dir="rtl"] body,
html[lang="ar"] body {
  font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
  line-height: 1.75;
}
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .stat-num,
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] .btn { letter-spacing: 0; }
/* Latin fragments (product-card codes, hashes) stay LTR inside an RTL doc. */
html[dir="rtl"] .mono, html[dir="rtl"] code { direction: ltr; unicode-bidi: isolate; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Bilingual text: JS writes the active language into textContent from the
   data-en / data-ar attributes. No-JS falls back to the EN already in the DOM. */
[data-ar] { transition: none; }

/* Hidden ABOVE the viewport via transform — never off to the side:
   `left:-999px` extends the document in RTL (scrollWidth blows out to
   ~viewport+999) and shoves the whole page sideways. Slides in on focus. */
.skip-link {
  position: fixed; inset-block-start: 0; inset-inline-start: 0; z-index: 100;
  background: var(--brand-deep); color: var(--brand-on);
  padding: 0.75rem 1.25rem; border-radius: 0 0 10px 0;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem;
  transform: translateY(-130%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

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

/* ════════════════════════════════════ LAYOUT ═════════════════════════════ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section-tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

.band-paper { background: var(--paper); }
.band-warm  { background: var(--paper-warm); }

/* Deep-forest bands — the gravitas surfaces. A faint radial glow + ledger
   grid give them depth instead of a flat fill. */
.band-forest {
  background:
    radial-gradient(120% 90% at 82% -8%, oklch(0.34 0.09 152 / 0.55), transparent 60%),
    radial-gradient(90% 80% at 0% 110%, oklch(0.30 0.08 152 / 0.5), transparent 55%),
    var(--brand-deep);
  color: var(--brand-on);
  position: relative;
  overflow: hidden;
}
.band-forest::before {
  /* ledger hairline grid, barely there */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--brand-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--brand-line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.10;
  mask-image: radial-gradient(120% 120% at 50% 0%, #000 30%, transparent 85%);
}

/* ════════════════════════════════════ TYPE ═══════════════════════════════ */
.eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.band-forest .eyebrow { color: var(--gold); }
.eyebrow::before {
  content: ""; width: 1.6rem; height: 1px; background: currentColor; opacity: 0.6;
}

h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.02em; font-weight: 600; }
.h-display {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.h1 { font-size: clamp(2.1rem, 4.2vw, 3.25rem); line-height: 1.06; letter-spacing: -0.03em; }
.h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.1; }
.h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.25; letter-spacing: -0.012em; }
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.6; color: var(--ink-muted); max-width: 46ch; margin: 0;
}
.band-forest .lead { color: var(--brand-on-mu); }
.muted { color: var(--ink-muted); }
.faint { color: var(--ink-faint); }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-feature-settings: 'tnum'; }

/* Arabic display counterparts — smaller than Latin so the pair reads as
   title + translation, and never letter-spaced. */
html[dir="rtl"] .h-display { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.3; font-weight: 500; }
html[dir="rtl"] .h1 { line-height: 1.35; }
html[dir="rtl"] .h2 { line-height: 1.4; }
html[dir="rtl"] .lead { max-width: 52ch; }

/* ════════════════════════════════════ BUTTONS ═══════════════════════════ */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: var(--brand-on);
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent; border-radius: 999px;
  font-family: inherit; font-size: 0.95rem; font-weight: 500;
  letter-spacing: -0.01em; cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background 0.25s ease, color 0.25s ease;
  box-shadow: 0 10px 26px -14px oklch(0.26 0.075 152 / 0.9);
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform 0.35s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -16px oklch(0.26 0.075 152 / 0.95); }
.btn:hover svg { transform: translateX(3px); }
html[dir="rtl"] .btn:hover svg { transform: translateX(-3px); }
html[dir="rtl"] .btn svg.flip { transform: scaleX(-1); }

.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--rule); box-shadow: none;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); box-shadow: none; }

.btn-on-forest { --btn-bg: var(--brand-on); --btn-fg: var(--brand-deep); }
.btn-ghost-on-forest {
  --btn-bg: transparent; --btn-fg: var(--brand-on);
  border-color: var(--brand-line); box-shadow: none;
}
.btn-ghost-on-forest:hover { border-color: var(--brand-on); color: var(--brand-on); }

.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }

.textlink {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--brand); font-weight: 500;
  border-bottom: 1px solid transparent; transition: border-color 0.25s ease;
}
.textlink svg { width: 1em; height: 1em; transition: transform 0.3s var(--ease); }
.textlink:hover { border-color: currentColor; }
.textlink:hover svg { transform: translateX(3px); }
.band-forest .textlink { color: var(--gold); }

/* ════════════════════════════════════ NAV ════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: oklch(1 0 0 / 0.72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.is-stuck { border-bottom-color: var(--rule); background: oklch(1 0 0 / 0.9); }
.nav-inner {
  display: flex; align-items: center; gap: 1.5rem;
  height: 4.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--ink); }
.brand .mark { width: 30px; height: 30px; color: var(--brand); }
.brand .word { font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; }
html[dir="rtl"] .brand .word-en { display: none; }
html:not([dir="rtl"]) .brand .word-ar { display: none; }

.nav-links {
  display: flex; align-items: center; gap: 0.4rem;
  margin-inline: auto;
}
.nav-links a {
  padding: 0.5rem 0.9rem; border-radius: 999px;
  font-size: 0.92rem; color: var(--ink-muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--paper-sunk); }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }

.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid var(--rule); border-radius: 999px; overflow: hidden;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem;
}
.lang-toggle button {
  border: 0; background: transparent; color: var(--ink-muted);
  padding: 0.4rem 0.7rem; cursor: pointer; font: inherit; letter-spacing: 0.05em;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-toggle button.is-active { background: var(--brand); color: var(--brand-on); }

.nav-burger {
  display: none; border: 1px solid var(--rule); background: transparent;
  width: 2.6rem; height: 2.6rem; border-radius: 10px; cursor: pointer;
  color: var(--ink); align-items: center; justify-content: center;
}
.nav-burger svg { width: 1.3rem; height: 1.3rem; }

/* ════════════════════════════════════ HERO ═══════════════════════════════ */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
/* atmosphere: pale moss wash + a faint ledger grid that fades downward */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(80% 60% at 78% 8%, var(--brand-tint), transparent 62%),
    radial-gradient(70% 60% at 8% 0%, oklch(0.97 0.02 150 / 0.8), transparent 55%);
}
.hero::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 78%; z-index: -1;
  background-image:
    linear-gradient(oklch(0.7 0.03 152 / 0.10) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.7 0.03 152 / 0.10) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 35%, transparent 78%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy { max-width: 40rem; }
.hero-copy .eyebrow { margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { margin-bottom: 2.2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero-note {
  margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.74rem;
  letter-spacing: 0.04em; color: var(--ink-faint); text-transform: uppercase;
}
.hero-note span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-note span::before {
  content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--state-pass);
}

/* ── Hero product card: a live "decision" panel (the signature visual) ──── */
.decision-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-4deg) rotateX(1.5deg);
  transition: transform 0.6s var(--ease);
}
.decision-card:hover { transform: perspective(1600px) rotateY(0deg) rotateX(0deg); }
html[dir="rtl"] .decision-card { transform: perspective(1600px) rotateY(4deg) rotateX(1.5deg); }
html[dir="rtl"] .decision-card:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }

.dc-head {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1.15rem;
  background: var(--brand-deep); color: var(--brand-on);
  font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; letter-spacing: 0.08em;
}
.dc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 var(--gold); animation: pulse 2.4s var(--ease) infinite; }
.dc-head .dc-id { margin-inline-start: auto; color: var(--brand-on-fa); }

.dc-body { padding: 1.25rem 1.35rem 1.4rem; }
.dc-row { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.55rem;
  border-bottom: 1px solid var(--rule-soft); }
.dc-row:last-of-type { border-bottom: 0; }
.dc-k { font-size: 0.78rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.dc-v { font-size: 0.92rem; font-weight: 500; }
.dc-v.mono { font-weight: 500; }

.dc-verdict {
  margin-top: 1.1rem; padding: 1rem 1.15rem;
  background: var(--state-pass-tint);
  border: 1px solid oklch(0.42 0.12 150 / 0.25);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 0.85rem;
}
.dc-stamp {
  font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em;
  color: var(--state-pass); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.dc-stamp svg { width: 1.2rem; height: 1.2rem; }
.dc-conf { margin-inline-start: auto; text-align: end; }
.dc-conf b { font-family: 'IBM Plex Mono', monospace; font-size: 1.15rem; color: var(--state-pass); }
.dc-conf span { display: block; font-size: 0.68rem; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: 0.08em; }

.dc-alt { margin-top: 0.75rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; letter-spacing: 0.05em;
  padding: 0.3rem 0.6rem; border-radius: 999px; border: 1px solid var(--rule);
  color: var(--ink-muted); display: inline-flex; align-items: center; gap: 0.35rem;
}
.chip.gov { color: var(--state-gov); border-color: oklch(0.55 0.1 255 / 0.35); background: var(--state-gov-tint); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* hash-chain strip along the card foot */
.dc-chain {
  margin-top: 1.15rem; padding-top: 0.9rem; border-top: 1px dashed var(--rule);
  display: flex; align-items: center; gap: 0.4rem;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: var(--ink-faint);
}
.dc-chain .lock { color: var(--state-pass); }
.dc-chain .lock svg { width: 0.95rem; height: 0.95rem; }
.dc-chain .blocks { display: flex; gap: 0.3rem; margin-inline-start: auto; }
.dc-chain .blocks i {
  font-style: normal; padding: 0.15rem 0.4rem; border-radius: 5px;
  background: var(--paper-sunk); border: 1px solid var(--rule-soft);
}

/* scan-line sweep across the card */
.decision-card .scan {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: var(--radius);
}
.decision-card .scan::after {
  content: ""; position: absolute; left: 0; right: 0; height: 40%;
  background: linear-gradient(oklch(0.6 0.12 150 / 0), oklch(0.6 0.12 150 / 0.10), oklch(0.6 0.12 150 / 0));
  animation: scan 6s var(--ease) infinite;
}

/* ════════════════════════════════════ TRUST STRIP ═══════════════════════ */
.trust {
  border-block: 1px solid var(--rule);
  background: var(--paper-warm);
}
.trust-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 2rem;
  padding-block: 1.4rem; justify-content: center;
}
.trust-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint); margin-inline-end: 0.5rem;
}
.trust-item {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.86rem; font-weight: 500; color: var(--ink-muted);
}
.trust-item svg { width: 1.05rem; height: 1.05rem; color: var(--brand); }

/* ════════════════════════════════════ SECTION HEADS ═════════════════════ */
.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { margin-bottom: 1rem; }

/* ════════════════════════════════════ FEATURE CARDS ═════════════════════ */
.cards-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.feature {
  position: relative; padding: 1.9rem 1.75rem 2rem;
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
  overflow: hidden;
}
.feature::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-soft));
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
html[dir="rtl"] .feature::after { transform-origin: right; }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-color: transparent; }
.feature:hover::after { transform: scaleX(1); }
.feature-ico {
  width: 3rem; height: 3rem; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 1.35rem;
  background: var(--brand-tint); color: var(--brand);
  border: 1px solid oklch(0.44 0.05 152 / 0.2);
}
.feature-ico svg { width: 1.5rem; height: 1.5rem; }
.feature h3 { margin-bottom: 0.65rem; }
.feature p { margin: 0; color: var(--ink-muted); font-size: 0.95rem; line-height: 1.6; }
.feature .feature-tag {
  margin-top: 1.1rem; font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem;
  letter-spacing: 0.06em; color: var(--brand); text-transform: uppercase;
}

/* ════════════════════════════════════ SPLIT: BIG STAT + PIPELINE ════════ */
.split {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.bigstat .kicker { font-family: 'IBM Plex Mono', monospace; color: var(--brand);
  letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.72rem; }
.bigstat .num {
  font-size: clamp(4.5rem, 11vw, 8rem); line-height: 0.9; font-weight: 600;
  letter-spacing: -0.05em; color: var(--brand); margin: 0.75rem 0 1rem;
  font-feature-settings: 'tnum';
}
.bigstat p { color: var(--ink-muted); max-width: 30ch; font-size: 1.02rem; }

/* pipeline diagram */
.pipeline {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-card);
}
.pipe-title { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1.25rem; }
.pipe-flow { display: flex; flex-direction: column; gap: 0.65rem; }
.pipe-step {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.85rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--rule); background: var(--paper-warm);
}
.pipe-step .n {
  width: 1.7rem; height: 1.7rem; border-radius: 7px; flex: none;
  display: grid; place-items: center; font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem; background: var(--brand); color: var(--brand-on);
}
.pipe-step .t { font-size: 0.9rem; font-weight: 500; }
.pipe-step .t small { display: block; font-weight: 400; color: var(--ink-faint); font-size: 0.76rem; }
.pipe-step.accent { border-color: oklch(0.42 0.12 150 / 0.3); background: var(--state-pass-tint); }
.pipe-step.accent .n { background: var(--state-pass); }
.pipe-arrow { display: grid; place-items: center; color: var(--rule-deep, var(--ink-faint)); }
.pipe-arrow svg { width: 1rem; height: 1rem; opacity: 0.6; }
html[dir="rtl"] .pipe-arrow svg { transform: rotate(180deg); }
.pipe-foot {
  margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--rule);
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: var(--ink-faint);
}
.pipe-foot svg { width: 0.95rem; height: 0.95rem; color: var(--state-pass); }

/* ════════════════════════════════════ DARK FEATURE BAND ═════════════════ */
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.dcol .dcol-ico { width: 2.75rem; height: 2.75rem; border-radius: 11px; display: grid;
  place-items: center; margin-bottom: 1.15rem; color: var(--gold);
  background: oklch(0.8 0.11 84 / 0.12); border: 1px solid oklch(0.8 0.11 84 / 0.25); }
.dcol .dcol-ico svg { width: 1.4rem; height: 1.4rem; }
.dcol h3 { margin-bottom: 0.6rem; }
.dcol p { color: var(--brand-on-mu); margin: 0; font-size: 0.95rem; line-height: 1.65; }

/* ════════════════════════════════════ STATS ROW ════════════════════════ */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden;
  background: var(--paper);
}
.stat { padding: clamp(1.8rem, 4vw, 2.75rem); border-inline-end: 1px solid var(--rule); }
.stat:last-child { border-inline-end: 0; }
.stat-num {
  font-size: clamp(2.6rem, 5vw, 3.75rem); font-weight: 600; letter-spacing: -0.04em;
  color: var(--brand); font-feature-settings: 'tnum'; line-height: 1;
}
.stat-label { margin-top: 0.7rem; color: var(--ink-muted); font-size: 0.95rem; }
.stat-sub { margin-top: 0.3rem; color: var(--ink-faint); font-size: 0.82rem; }

/* ════════════════════════════════════ EDITIONS (pricing analog) ═════════ */
.editions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; align-items: stretch; }
.edition {
  position: relative; display: flex; flex-direction: column;
  padding: 2.1rem 2rem; background: var(--paper);
  border: 1px solid var(--rule); border-radius: var(--radius);
}
.edition.featured {
  border-color: transparent;
  background:
    linear-gradient(var(--brand-deep), var(--brand-deeper));
  color: var(--brand-on);
  box-shadow: var(--shadow-float);
  outline: 1px solid oklch(0.8 0.11 84 / 0.4); outline-offset: -1px;
}
.edition .ed-tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brand);
}
.edition.featured .ed-tag { color: var(--gold); }
.edition .ed-name { font-size: 1.6rem; font-weight: 600; margin: 0.35rem 0 0.15rem; letter-spacing: -0.02em; }
.edition .ed-price { font-size: 0.95rem; color: var(--ink-faint); margin-bottom: 1.4rem; }
.edition.featured .ed-price { color: var(--brand-on-fa); }
.ed-list { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: 0.7rem; }
.ed-list li { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.92rem; line-height: 1.5; }
.ed-list li svg { width: 1.05rem; height: 1.05rem; flex: none; margin-top: 0.15rem; color: var(--state-pass); }
.edition.featured .ed-list li svg { color: var(--gold); }
.edition .btn { margin-top: auto; justify-content: center; }
.ed-ribbon {
  position: absolute; top: 1.4rem; inset-inline-end: 1.4rem;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.64rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brand-deep); background: var(--gold);
  padding: 0.25rem 0.6rem; border-radius: 999px;
}
.editions-note { text-align: center; margin-top: 1.5rem; color: var(--ink-faint); font-size: 0.9rem; }

/* ════════════════════════════════════ FINAL CTA ════════════════════════ */
.cta-band { text-align: center; }
.cta-band .h1 { max-width: 20ch; margin-inline: auto; margin-bottom: 1.1rem; }
.cta-band .lead { margin-inline: auto; margin-bottom: 2.2rem; color: var(--brand-on-mu); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.cta-seal {
  width: 3.5rem; height: 3.9rem; margin: 0 auto 1.75rem; color: var(--gold);
  filter: drop-shadow(0 8px 20px oklch(0.8 0.11 84 / 0.25));
}

/* ════════════════════════════════════ FOOTER ═══════════════════════════ */
.footer { background: var(--brand-deeper); color: var(--brand-on); }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between;
  align-items: flex-start; padding-block: clamp(3rem, 6vw, 4rem) 2rem;
}
.footer .brand { color: var(--brand-on); align-items: flex-start; flex-direction: column; gap: 1rem; max-width: 22rem; }
.footer .brand .row { display: inline-flex; align-items: center; gap: 0.6rem; }
.footer .brand .mark { color: var(--gold); }
.footer .tagline { color: var(--brand-on-mu); font-size: 0.92rem; line-height: 1.6; }
.footer-nav { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col h4 { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand-on-fa); margin: 0 0 0.9rem; font-weight: 500; }
.footer-col a { display: block; color: var(--brand-on-mu); font-size: 0.9rem; padding-block: 0.3rem;
  transition: color 0.2s ease; }
.footer-col a:hover { color: var(--brand-on); }
.footer-bottom {
  border-top: 1px solid var(--brand-line); padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; justify-content: space-between;
  font-size: 0.82rem; color: var(--brand-on-fa);
}
.footer-bottom .mono { letter-spacing: 0.04em; }

/* ════════════════════════════════════ MOTION ═══════════════════════════ */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 oklch(0.8 0.11 84 / 0.6); }
  70% { box-shadow: 0 0 0 8px oklch(0.8 0.11 84 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.8 0.11 84 / 0); }
}
@keyframes scan {
  0% { transform: translateY(-45%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(240%); opacity: 0; }
}

/* Orchestrated load-in — staggered fade-up on the hero. */
.load-up { opacity: 0; transform: translateY(18px); animation: loadUp 0.9s var(--ease-out) forwards; }
.load-up.d1 { animation-delay: 0.05s; }
.load-up.d2 { animation-delay: 0.15s; }
.load-up.d3 { animation-delay: 0.25s; }
.load-up.d4 { animation-delay: 0.35s; }
.load-up.d5 { animation-delay: 0.5s; }
@keyframes loadUp { to { opacity: 1; transform: none; } }

/* Scroll reveal — JS adds .in when the element enters the viewport. */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .load-up, .reveal { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .decision-card, .decision-card:hover { transform: none; }
  .dc-dot, .decision-card .scan::after { animation: none; }
  .btn:hover, .feature:hover { transform: none; }
}

/* ════════════════════════════════════ RESPONSIVE ═══════════════════════ */
@media (max-width: 1000px) {
  .split { grid-template-columns: 1fr; }
  .bigstat { text-align: center; }
  .bigstat p { margin-inline: auto; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .decision-card, html[dir="rtl"] .decision-card { transform: none; max-width: 30rem; }
  .cards-3 { grid-template-columns: 1fr; }
  .cols-3 { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  /* mobile menu panel */
  .nav-links.open {
    display: flex; position: absolute; inset-inline: 0; top: 4.5rem;
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 0.75rem var(--gutter) 1.1rem; margin: 0;
    box-shadow: var(--shadow-card);
  }
  .nav-links.open a { padding: 0.75rem 0.5rem; font-size: 1rem; }
  .nav .hide-sm { display: none; }
}
@media (max-width: 680px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-inline-end: 0; border-bottom: 1px solid var(--rule); }
  .stat:last-child { border-bottom: 0; }
  .editions { grid-template-columns: 1fr; }
  .hero-cta .btn, .cta-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* CSP hardening — externalised inline styles (style-src 'self') */
.mk-svg-defs { position: absolute; }
.mk-mb-1 { margin-bottom: 1rem; }
.mk-ico-check { width: 0.9rem; height: 0.9rem; }
.mk-mx-auto { margin-inline: auto; }
.mk-mark-32 { width: 32px; height: 32px; }

/* ════════════════════════════════════════════════════════════════════════
   v2 — floating pill nav + centered hero + framed console preview.
   (Supersedes the split hero; older .nav / .hero-grid / .decision-card rules
   above are unused by the current markup.)
   ════════════════════════════════════════════════════════════════════════ */
:root { --state-deny: oklch(0.44 0.16 25); --state-deny-tint: oklch(0.96 0.03 25); }

/* ── Floating pill nav ── */
.mk-topbar { position: sticky; top: 0; z-index: 50; padding-top: 0.9rem; }
.mk-topbar-inner { max-width: 64rem; }
.mk-nav {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.5rem 0.55rem 0.5rem 1.1rem;
  border: 1px solid var(--rule); border-radius: 15px;
  background: oklch(1 0 0 / 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 12px 34px -20px oklch(0.2 0.05 152 / 0.4);
}
html[dir="rtl"] .mk-nav { padding: 0.5rem 1.1rem 0.5rem 0.55rem; }
.mk-nav .brand { margin-inline-end: 0.4rem; }
.mk-nav-links { display: flex; align-items: center; gap: 0.25rem; margin-inline-end: auto; }
.mk-nav-links a {
  padding: 0.4rem 0.8rem; border-radius: 9px; font-size: 0.9rem; color: var(--ink-faint);
  transition: color 0.2s ease, background 0.2s ease;
}
.mk-nav-links a:hover { color: var(--ink); background: var(--paper-sunk); }
.mk-nav-actions { display: flex; align-items: center; gap: 0.55rem; }
.mk-divider { width: 1px; height: 1.4rem; background: var(--rule); }
.mk-signin { font-size: 0.88rem; color: var(--ink-faint); padding: 0.35rem 0.4rem; transition: color 0.2s ease; }
.mk-signin:hover { color: var(--ink); }
.mk-cta {
  display: inline-flex; align-items: center; white-space: nowrap;
  background: var(--brand-deep); color: var(--brand-on);
  padding: 0.5rem 1.05rem; border-radius: 999px; font-size: 0.88rem; font-weight: 500;
  transition: background 0.2s ease, transform 0.3s var(--ease);
}
.mk-cta:hover { background: var(--brand); transform: translateY(-1px); }

/* ── Centered hero ── */
.hero-center { text-align: center; }
.wrap-hero { max-width: 62rem; }
.hero-center .hero-cta { justify-content: center; margin-top: 2.2rem; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.35rem 0.9rem; margin-bottom: 1.75rem;
  border: 1px solid var(--rule); border-radius: 999px;
  background: var(--paper-warm); color: var(--ink-muted);
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 0.72rem; letter-spacing: 0.05em;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.hero-chip:hover { border-color: var(--brand); color: var(--brand); }
html[dir="rtl"] .hero-chip { letter-spacing: 0; }
.hero-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--state-pass); box-shadow: 0 0 0 3px var(--state-pass-tint); }
.hero-title {
  font-size: clamp(2.7rem, 6vw, 4.7rem); font-weight: 600; line-height: 1.02;
  letter-spacing: -0.04em; margin: 0 auto; max-width: 16ch;
}
html[dir="rtl"] .hero-title { letter-spacing: 0; line-height: 1.25; }
.hero-lead {
  margin: 1.5rem auto 0; max-width: 40rem;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink-muted);
}
.hero-tech {
  margin-top: 3rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.4rem;
  font-size: 0.9rem;
}
.hero-tech .t-on { color: var(--brand); font-weight: 500; }
.hero-tech .t-mut { color: var(--ink-faint); }
.hero-tech-cap { margin-top: 0.85rem; font-size: 0.82rem; color: var(--ink-faint); }

/* ── Framed console preview (crafted mock, not an image) ── */
.hero-frame {
  margin-top: 3.5rem; padding: 0.6rem;
  border: 1px solid var(--rule); border-radius: 26px;
  background: oklch(0.99 0.004 145 / 0.6);
}
.app-mock {
  position: relative; overflow: hidden; text-align: start;
  border: 1px solid var(--rule); border-radius: 20px; background: var(--paper);
  box-shadow: 0 40px 80px -44px oklch(0.2 0.06 152 / 0.5);
}
.mock-bar {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--rule); background: var(--paper-warm);
}
.mock-bar .d { width: 10px; height: 10px; border-radius: 50%; background: oklch(0.86 0.008 152); }
.mock-url { margin-inline-start: 0.8rem; font-size: 0.72rem; color: var(--ink-faint); }
.mock-body { display: grid; grid-template-columns: 210px 1fr; min-height: 340px; }
.mock-side {
  background: linear-gradient(var(--brand-deep), var(--brand-deeper)); color: var(--brand-on);
  padding: 1rem 0.85rem; display: flex; flex-direction: column; gap: 0.1rem;
}
.mock-brand { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; font-weight: 600; font-size: 0.95rem; }
.mock-brand .mark { width: 22px; height: 22px; color: var(--brand-on); }
.mock-nav-label {
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 0.6rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-on-fa);
  margin: 0.7rem 0 0.3rem;
}
.mock-nav-item {
  display: flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.55rem;
  border-radius: 8px; font-size: 0.82rem; color: var(--brand-on-mu);
}
.mock-nav-item svg { width: 0.95rem; height: 0.95rem; }
.mock-nav-item.is-active { background: oklch(1 0 0 / 0.12); color: var(--brand-on); }
.mock-main { padding: 1.25rem 1.4rem; min-width: 0; }
.mock-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.mock-h1 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.mock-sub { font-size: 0.75rem; color: var(--ink-faint); margin-top: 0.15rem; }
.mock-pill { font-size: 0.66rem; color: var(--ink-faint); border: 1px solid var(--rule); border-radius: 999px; padding: 0.2rem 0.6rem; white-space: nowrap; }
.mock-rows { display: flex; flex-direction: column; }
.mock-row {
  display: grid; grid-template-columns: 1.4fr 1.3fr auto 3rem; align-items: center; gap: 1rem;
  padding: 0.7rem 0.25rem; border-bottom: 1px solid var(--rule-soft);
}
.mock-name { font-weight: 500; font-size: 0.9rem; }
.mock-meta { font-size: 0.76rem; color: var(--ink-faint); }
.mock-verdict { justify-self: start; font-size: 0.7rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px; }
.mock-verdict.pass { color: var(--state-pass); background: var(--state-pass-tint); }
.mock-verdict.gov  { color: var(--state-gov);  background: var(--state-gov-tint); }
.mock-verdict.deny { color: var(--state-deny); background: var(--state-deny-tint); }
.mock-conf { font-size: 0.8rem; color: var(--ink-muted); text-align: end; }
.mock-fade { position: absolute; inset-inline: 0; bottom: 0; height: 42%; background: linear-gradient(to top, var(--paper), transparent); pointer-events: none; }

/* ── v2 responsive ── */
@media (max-width: 820px) {
  .mk-nav-links { display: none; }
  .mk-nav-links.open {
    display: flex; position: absolute; inset-inline: var(--gutter); top: 4.6rem;
    flex-direction: column; align-items: stretch; gap: 0.1rem;
    background: var(--paper); border: 1px solid var(--rule); border-radius: 14px;
    padding: 0.6rem; box-shadow: var(--shadow-card);
  }
  .mk-nav-links.open a { padding: 0.7rem 0.6rem; font-size: 1rem; }
  .mk-nav .nav-burger { display: inline-flex; }
  .mk-divider, .mk-signin { display: none; }
}
@media (max-width: 700px) {
  .mock-side { display: none; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-row { grid-template-columns: 1fr auto; }
  .mock-row .mock-meta { display: none; }
}

/* ════════════════════════════════════════════════════════════════════════
   v3 — registers marquee · bento capabilities · FAQ accordion
   ════════════════════════════════════════════════════════════════════════ */

/* ── Registers marquee (honest "logo cloud" analog) ── */
.mq { border-block: 1px solid var(--rule); background: var(--paper-warm); padding-block: 1.75rem; overflow: hidden; }
.mq-lead { text-align: center; color: var(--ink-muted); font-size: 0.95rem; margin: 0 auto 1.25rem; padding-inline: var(--gutter); max-width: 44rem; }
.mq-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.mq-track { display: flex; gap: 0.9rem; width: max-content; animation: mq-scroll 44s linear infinite; }
.mq:hover .mq-track { animation-play-state: paused; }
@keyframes mq-scroll { to { transform: translateX(-50%); } }
html[dir="rtl"] .mq-track { animation-name: mq-scroll-rtl; }
@keyframes mq-scroll-rtl { to { transform: translateX(50%); } }
.mq-chip {
  display: inline-flex; align-items: center; gap: 0.55rem; white-space: nowrap;
  padding: 0.55rem 1.05rem; border: 1px solid var(--rule); border-radius: 999px;
  background: var(--paper); font-size: 0.9rem; font-weight: 500; color: var(--ink-muted);
}
.mq-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }

/* ── Bento capabilities grid ── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.bento .cell {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.9rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
}
.bento .cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: transparent; }
.cell-4 { grid-column: span 4; } .cell-3 { grid-column: span 3; } .cell-2 { grid-column: span 2; }
.bento .b-ico {
  width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center;
  margin-bottom: 1.15rem; background: var(--brand-tint); color: var(--brand);
  border: 1px solid oklch(0.44 0.05 152 / 0.2);
}
.bento .b-ico svg { width: 1.3rem; height: 1.3rem; }
.bento h3 { margin-bottom: 0.55rem; }
.bento p { margin: 0; color: var(--ink-muted); font-size: 0.92rem; line-height: 1.6; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } .cell-4, .cell-3, .cell-2 { grid-column: span 1; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } }

/* ── FAQ accordion (native <details>, no JS) ── */
.faq { max-width: 52rem; margin-inline: auto; display: grid; gap: 0.75rem; }
.faq details {
  border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); padding-inline: 1.3rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq details[open] { border-color: oklch(0.44 0.05 152 / 0.35); box-shadow: var(--shadow-card); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; cursor: pointer; list-style: none;
  font-weight: 500; font-size: 1.02rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.q-plus { position: relative; width: 1.05rem; height: 1.05rem; flex: none; color: var(--brand); }
.q-plus::before, .q-plus::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.q-plus::before { inset-inline: 0; top: 50%; height: 2px; transform: translateY(-50%); }
.q-plus::after { inset-block: 0; left: 50%; width: 2px; transform: translateX(-50%); transition: transform 0.3s var(--ease); }
.faq details[open] .q-plus::after { transform: translateX(-50%) scaleY(0); }
.q-body { padding: 0 0 1.25rem; margin: 0; max-width: 60ch; color: var(--ink-muted); font-size: 0.95rem; line-height: 1.65; }

@media (prefers-reduced-motion: reduce) {
  .mq-track { animation: none; }
  .mq-viewport { overflow-x: auto; }
}

/* ════════════════════════════════════ GLOBAL REACH: WORLD MAP ════════════
   Dotted world map (static/world-dots.svg) with arcs converging on Riyadh.
   Pure SVG + CSS: arcs draw in (dash offset), travelling dots ride each arc
   (offset-path), endpoints pulse. All motion honours prefers-reduced-motion.
   Coordinates are in the map's own viewBox (0 0 210 100 → aspect 21/10);
   the container is locked to that ratio so the img, the arc SVG and the %
   label chips all register pixel-for-pixel.
   ═════════════════════════════════════════════════════════════════════════ */
.reach-map {
  position: relative;
  max-width: 1000px;
  margin: clamp(2.25rem, 5vw, 3.5rem) auto 0;
  aspect-ratio: 21 / 10;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.reach-dots,
.reach-arcs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* Fade the dotted field top & bottom so it melts into the paper band. */
.reach-dots {
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}
.reach-arcs { overflow: visible; }

/* ── Arc lines (origin → Riyadh) ─────────────────────────────────────────── */
.reach-arcs stop { stop-color: var(--gold); }
.reach-arc {
  fill: none;
  stroke: url(#reach-grad);
  stroke-width: 0.4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: reach-draw 1.5s var(--ease-out) forwards;
}
.reach-arc.a0 { animation-delay: 0.15s; }
.reach-arc.a1 { animation-delay: 0.35s; }
.reach-arc.a2 { animation-delay: 0.55s; }
.reach-arc.a3 { animation-delay: 0.75s; }
.reach-arc.a4 { animation-delay: 0.95s; }
.reach-arc.a5 { animation-delay: 1.15s; }
.reach-arc.a6 { animation-delay: 1.35s; }
.reach-arc.a7 { animation-delay: 1.55s; }
@keyframes reach-draw { to { stroke-dashoffset: 0; } }

/* ── Travelling dots — one comet per arc, riding the same curve ───────────── */
.reach-comet {
  fill: var(--gold);
  offset-rotate: 0deg;
  offset-distance: 0%;
  opacity: 0;
  filter: drop-shadow(0 0 0.6px var(--gold));
  animation: reach-fly 3.8s linear infinite;
}
.reach-comet.c0 { offset-path: path("M 105 25.11 Q 118.8 17.6 132.5 45.03"); animation-delay: 0.6s; }
.reach-comet.c1 { offset-path: path("M 62 33.77 Q 97.3 18.1 132.5 45.03");  animation-delay: 1.1s; }
.reach-comet.c2 { offset-path: path("M 77.5 74.48 Q 105.0 31.3 132.5 45.03"); animation-delay: 1.6s; }
.reach-comet.c3 { offset-path: path("M 107 56.29 Q 119.8 38.9 132.5 45.03"); animation-delay: 2.1s; }
.reach-comet.c4 { offset-path: path("M 123.5 41.57 Q 128.0 36.6 132.5 45.03"); animation-delay: 2.6s; }
.reach-comet.c5 { offset-path: path("M 147.5 48.5 Q 140.0 40.0 132.5 45.03"); animation-delay: 3.1s; }
.reach-comet.c6 { offset-path: path("M 167.5 64.09 Q 150.0 36.3 132.5 45.03"); animation-delay: 0.35s; }
.reach-comet.c7 { offset-path: path("M 186.5 38.11 Q 159.5 26.1 132.5 45.03"); animation-delay: 1.85s; }
@keyframes reach-fly {
  0%   { offset-distance: 0%;   opacity: 0; }
  8%   { opacity: 1; }
  85%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* ── Endpoints: origin nodes + Riyadh hub ─────────────────────────────────── */
.reach-node .dot  { fill: var(--brand); }
.reach-node .ring { fill: var(--brand); opacity: 0.5; r: 0.7; animation: reach-pulse 2.6s ease-out infinite; }
.reach-node.hub .dot  { fill: var(--gold); filter: drop-shadow(0 0 1.4px var(--gold)); }
.reach-node.hub .ring { fill: var(--gold); opacity: 0.6; r: 1.1; animation: reach-pulse-hub 2.6s ease-out infinite; }
@keyframes reach-pulse     { from { r: 0.7; opacity: 0.5; } to { r: 3;   opacity: 0; } }
@keyframes reach-pulse-hub { from { r: 1.1; opacity: 0.6; } to { r: 4.5; opacity: 0; } }

/* ── City chips (HTML overlay, positioned by % of the 21:10 box) ──────────── */
.reach-labels { position: absolute; inset: 0; pointer-events: none; }
.reach-pin {
  position: absolute;
  font-size: clamp(0.58rem, 1.15vw, 0.72rem);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  padding: 0.25em 0.55em;
  border-radius: 6px;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  border: 1px solid var(--rule);
  color: var(--ink-muted);
  box-shadow: 0 1px 3px oklch(0.2 0.03 152 / 0.12);
  backdrop-filter: blur(2px);
}
.reach-pin.hub {
  font-weight: 700;
  color: var(--brand-deep);
  border-color: color-mix(in oklab, var(--gold) 60%, var(--rule));
  box-shadow: 0 2px 8px oklch(0.66 0.11 78 / 0.35);
}
/* Position = dot's % coordinate in the box; transform nudges the chip clear of it. */
.rp-riyadh  { left: 63.1%; top: 45.0%; transform: translate(-12%, 0.7rem); }
.rp-london  { left: 50.0%; top: 25.1%; transform: translate(-50%, -150%); }
.rp-nyc     { left: 29.5%; top: 33.8%; transform: translate(-62%, -150%); }
.rp-sao     { left: 36.9%; top: 74.5%; transform: translate(-45%, 70%); }
.rp-tokyo   { left: 88.8%; top: 38.1%; transform: translate(-92%, -150%); }
.rp-jakarta { left: 79.8%; top: 64.1%; transform: translate(-28%, 70%); }

@media (prefers-reduced-motion: reduce) {
  .reach-arc  { stroke-dashoffset: 0; animation: none; }
  .reach-comet { display: none; }
  .reach-node .ring, .reach-node.hub .ring { animation: none; opacity: 0; }
}

/* ════════════════════════════════════ WALKTHROUGH EMBED (How it works) ════
   Self-driving product tour iframed from the CSP-clean /static/demo build.
   Desktop-only choreography (needs ≥1000px) — below that the frame is hidden
   and only the "open in a new tab" affordance shows.
   ═════════════════════════════════════════════════════════════════════════ */
.how-demo { margin-top: clamp(2.5rem, 5vw, 3.75rem); text-align: center; }
.how-demo-head { max-width: 46rem; margin: 0 auto clamp(1.75rem, 3.5vw, 2.5rem); }
.how-demo-head .eyebrow { justify-content: center; margin-bottom: 1rem; }
.how-demo-head h3 { margin-bottom: 0.85rem; }

.how-demo-frame {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-float);
}
.how-demo-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

.how-demo-mobile { display: none; }

.how-demo-open {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.25rem;
  font-weight: 500; font-size: 0.95rem; color: var(--brand);
}
.how-demo-open:hover { color: var(--brand-deep); }
.how-demo-open svg { width: 1.05rem; height: 1.05rem; }
html[dir="rtl"] .how-demo-open svg.flip { transform: scaleX(-1); }

@media (max-width: 999px) {
  .how-demo-frame { display: none; }
  .how-demo-mobile {
    display: flex; flex-direction: column; align-items: center; gap: 0.85rem;
    max-width: 32rem; margin: 0 auto;
    padding: 2.25rem 1.5rem;
    border: 1px dashed var(--rule); border-radius: var(--radius);
    background: var(--paper); color: var(--ink-muted);
  }
  .how-demo-mobile svg { width: 2rem; height: 2rem; color: var(--brand); }
  .how-demo-mobile p { margin: 0; max-width: 26rem; }
}
