/* ==========================================================================
   ishara.lisan.com design system — v3 "Meridian" (extends v2 "Aurora")
   Dark premium marketing surface. Brand: cyan major (the Ishara Signal
   Star) — gradient #079FBF → #00829C, accent #4DDAFF, links #96E7FF.
   Fonts: Poppins (display) + Inter (body) + Noto Kufi Arabic (Arabic)
   v3 adds: real product screenshots in glass frames with 3D hero tilt,
   an animated SVG chart engine (.vz), bento grids, marquee rails,
   spotlight tabs, lightbox, full RTL + Arabic localization.
   All motion gated behind prefers-reduced-motion.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("/assets/fonts/noto-kufi-arabic-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E;
}

:root {
  --bg: #040c0e;
  --bg-raise: #071519;
  --panel: rgba(255, 255, 255, 0.032);
  --panel-solid: #0b1e24;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.055);
  --ink: #f5f3f9;
  --muted: #a8a3b8;
  --faint: #706b82;
  --faint-2: #8f8aa4; /* smallest menu text: 5.8:1 on the panel ground */
  --bg-pop: #120e1d; /* opaque menu panels; the bar keeps the glass */
  --brand-a: #079FBF;
  --brand-b: #00829C;
  --brand-grad: linear-gradient(100deg, #079FBF, #00829C);
  /* text-bearing brand surfaces: a light-to-brand gradient under near-black ink clears AA (6.0:1 at the dark end); --brand-grad stays for fills */
  --brand-grad-btn: linear-gradient(100deg, #4DDAFF, #079FBF);
  --on-brand: #03141b;
  --brand-grad-soft: linear-gradient(100deg, rgba(7, 159, 191, 0.15), rgba(0, 130, 156, 0.13));
  --brand-tint: rgba(7, 159, 191, 0.1);
  --accent: #4DDAFF;
  --good: #3ddc97;
  --warn: #ffc555;
  --bad: #ff6b6b;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Poppins", "Inter", system-ui, sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-pop: 0 24px 80px rgba(0, 0, 0, 0.5);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  /* v4 additions: secondary ink, plane hues, spacing scale */
  --ink-2: #d9d4e6;
  --plane-tender: #3b82f6;
  --plane-tender-soft: rgba(59, 130, 246, 0.14);
  --plane-investor: #8b7ff0;
  --plane-investor-soft: rgba(139, 127, 240, 0.14);
  --plane-kernel: #c77d06;
  --plane-kernel-soft: rgba(199, 125, 6, 0.14);
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 48px;
  --s-7: 64px;
  --s-8: 96px;
  --s-9: 128px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; interpolate-size: allow-keywords; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: none; }
p a, li a, td a { color: #96E7FF; text-decoration: underline; text-decoration-color: rgba(150, 231, 255, 0.35); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
p a:hover, li a:hover, td a:hover { text-decoration-color: #96E7FF; }
.nav-menu a, .dropdown a, .footer-col a, .footer-bottom a, .glossary-az a, .lesson-nav a, .toc a { text-decoration: none; }
::selection { background: rgba(7, 159, 191, 0.4); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.16; letter-spacing: -0.022em; margin: 0 0 0.5em; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 700; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.45rem); }
h3 { font-size: 1.26rem; }
h4 { font-size: 1.05rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 840px; }

/* Cross-document view transitions (progressive; Chromium 126+) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out 0.18s ease both; }
  ::view-transition-new(root) { animation: vt-in 0.24s ease both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

.grad-text {
  background: linear-gradient(100deg, #079FBF 10%, #00829C 45%, #B8EEFF 60%, #00829C 75%, #079FBF 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-shimmer 7s ease-in-out infinite;
}
@keyframes grad-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --- ambient mesh ------------------------------------------------------- */
.mesh { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.mesh::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(42% 40% at 18% 8%, rgba(7, 159, 191, 0.13), transparent 65%),
    radial-gradient(46% 44% at 85% 12%, rgba(0, 130, 156, 0.11), transparent 65%),
    radial-gradient(50% 55% at 50% 105%, rgba(14, 116, 144, 0.12), transparent 70%);
}
.mesh::after {
  content: ""; position: absolute; inset: 0; opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.4px);
  background-size: 36px 36px;
  mask-image: radial-gradient(60% 45% at 50% 0%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(60% 45% at 50% 0%, #000 0%, transparent 100%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; animation: drift 26s ease-in-out infinite alternate; }
.orb-a { width: 480px; height: 480px; left: -140px; top: -120px; background: radial-gradient(circle, rgba(7, 159, 191, 0.32), transparent 62%); }
.orb-b { width: 560px; height: 560px; right: -180px; top: 60px; background: radial-gradient(circle, rgba(0, 130, 156, 0.26), transparent 62%); animation-delay: -9s; }
.orb-c { width: 640px; height: 640px; left: 30%; bottom: -300px; background: radial-gradient(circle, rgba(14, 116, 144, 0.24), transparent 62%); animation-delay: -17s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(60px, 40px, 0) scale(1.12); }
}

/* --- scroll progress ----------------------------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: var(--brand-grad); z-index: 200; pointer-events: none;
}

/* clip-hide (not offscreen-left): left:-9999px creates horizontal scroll in RTL */
.skip-link { position: absolute; inset-inline-start: 0; top: 0; background: var(--panel-solid); padding: 10px 16px; z-index: 300; border-radius: 0 0 10px 10px; clip-path: inset(100%); }
.skip-link:focus { clip-path: none; }

/* --- floating glass header ------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 100; padding: 12px 0; pointer-events: none; }
.nav-wrap { max-width: calc(var(--container) + 8px); margin: 0 auto; padding: 0 20px; pointer-events: auto; }
.nav {
  display: flex; align-items: center; gap: 14px; height: 60px;
  padding: 0 10px 0 20px;
  background: rgba(12, 9, 19, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled .nav {
  background: rgba(12, 9, 19, 0.82);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 16px 48px rgba(0, 0, 0, 0.45);
}

.locale-scope {
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.locale-scope .container {
  padding-block: 7px;
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; letter-spacing: -0.01em; }
.brand img { transition: transform 0.5s var(--ease-spring); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }

.nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0 0 0 8px; padding: 0; flex: 1; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; background: none;
  color: var(--muted); font: inherit; font-size: 0.93rem; font-weight: 500; border-radius: 10px; cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-link:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.has-dropdown.is-active > .nav-link, a.nav-link.is-active { color: var(--ink); background: none; position: relative; }
.has-dropdown.is-active > .nav-link::after, a.nav-link.is-active::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 2px; height: 2px; border-radius: 2px; background: var(--brand-a); }
.has-dropdown.is-active > .nav-link:hover, a.nav-link.is-active:hover { background: rgba(255, 255, 255, 0.06); }
.nav.scrolled { background: rgba(4, 12, 14, 0.85); }
.nav-link svg { transition: transform 0.25s var(--ease-out); opacity: 0.6; }
/* the caret follows the panel: hover (after the same intent delay) or the script-owned open state */
.has-dropdown:hover > .nav-link svg, .has-dropdown.open > .nav-link svg { transform: rotate(180deg); }
.has-dropdown:hover > .nav-link svg { transition-delay: 0.15s; }
.has-dropdown.open > .nav-link svg { transition-delay: 0s; }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
/* nowrap like every other nav action: "Sign in" wrapped over two lines, which
   made it 66px tall beside 42px siblings and pushed the header out of line. */
.nav-signin { color: var(--muted); font-size: 0.92rem; font-weight: 500; padding: 8px 12px; border-radius: 10px; white-space: nowrap; transition: color 0.18s, background 0.18s; }
.nav-signin:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s var(--ease-out), opacity 0.2s; }
.nav-mobile-cta { display: none; }

/* --- buttons ------------------------------------------------------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 12px; padding: 11px 22px; font-weight: 600; font-size: 0.97rem;
  font-family: var(--font-display); letter-spacing: 0;
  border: 1px solid transparent; cursor: pointer; overflow: hidden;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s ease, background 0.2s, border-color 0.2s;
  white-space: nowrap; text-overflow: ellipsis; max-width: 100%;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--brand-grad-btn); color: var(--on-brand); box-shadow: 0 6px 24px rgba(7, 159, 191, 0.32); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-110%); transition: transform 0.7s var(--ease-out);
}
.btn-primary:hover { box-shadow: 0 10px 36px rgba(7, 159, 191, 0.5); transform: translateY(-2px); }
.btn-primary:hover::before { transform: translateX(110%); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.18); transform: translateY(-2px); }
.btn-lg { padding: 14px 30px; font-size: 1.04rem; border-radius: 14px; }
.btn-nav { padding: 8px 18px; font-size: 0.9rem; border-radius: 10px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* --- hero ---------------------------------------------------------------- */
.page-hero { padding: 96px 0 48px; }
.page-hero-article { padding: 72px 0 8px; }
.kicker { color: var(--plane, var(--accent)); font-family: var(--font-display); font-weight: 600; font-size: 0.84rem; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 16px; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.9vw, 1.22rem); line-height: 1.65; max-width: 46em; margin: 0 0 30px; }
.hero-home .lead { max-width: 40em !important; }
.article-meta { color: var(--faint); font-size: 0.9rem; display: flex; gap: 10px; align-items: center; }
.article-meta .dot { opacity: 0.5; }

.hero-home { padding: 108px 0 36px; text-align: center; }
.hero-home h1 { font-size: clamp(2.7rem, 6.4vw, 4.9rem); max-width: 13.5em; margin: 0 auto 0.4em; line-height: 1.08; }
.hero-home .lead { margin: 0 auto 34px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: var(--panel);
  border-radius: 999px; padding: 6px 18px 6px 8px; font-size: 0.84rem; color: var(--muted); margin-bottom: 30px;
  transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease-out);
}
.hero-badge:hover { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.055); transform: translateY(-1px); }
.hero-badge .pill { background: var(--brand-grad-btn); color: var(--on-brand); border-radius: 999px; padding: 2px 11px; font-size: 0.76rem; font-weight: 650; }
.hero-trust { color: var(--faint); font-size: 0.88rem; margin-top: 22px; }
.hero-home .btn-row { justify-content: center; gap: 18px; }
/* the live Today scene sits clear of the buttons (core.css gives .demo-stage no top margin) */
.hero-home .demo-stage { margin-top: 52px; }
.hero-home .mock-glow { animation: hero-float 9s ease-in-out infinite; }
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --- generic sections ---------------------------------------------------- */
.page-section { padding: var(--s-7) 0; }
.page-section.chapter { padding-top: var(--s-9); }
.section-title { text-align: center; margin-bottom: 14px; font-size: 2.45rem; }
.section-sub { text-align: center; color: var(--muted); max-width: 44em; margin: 0 auto 56px; font-size: 1.06rem; line-height: 1.75; }
.section-kicker { text-align: center; color: var(--plane, var(--accent)); font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 12px; }

/* --- cards ---------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  --mx: 50%; --my: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.022) 58%);
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 28px; position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.25s ease, background 0.25s, box-shadow 0.3s ease;
}
.card { display: flex; flex-direction: column; align-items: flex-start; }
.card > * { width: 100%; }
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(7, 159, 191, 0.09), transparent 60%);
  transition: opacity 0.3s ease;
}
.card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.048); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35); }
.card:hover::after { opacity: 1; }
.card h3 { margin: 16px 0 8px; font-size: 1.2rem; font-family: var(--font-display); font-weight: 600; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-top: auto; padding-top: 16px; width: auto; transition: gap 0.2s var(--ease-out); }
.card p { margin-bottom: 0; }
.card:hover .card-link { gap: 10px; }
.card-icon {
  width: 44px; height: 44px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--plane-soft, var(--brand-grad-soft)); color: var(--plane, var(--accent));
  border: 1px solid color-mix(in srgb, var(--plane, var(--brand-a)) 30%, transparent);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.3s ease;
}
.card:hover .card-icon { transform: translateY(-2px) scale(1.06); box-shadow: 0 8px 20px rgba(7, 159, 191, 0.2); }
.card-icon svg { width: 21px; height: 21px; }

/* --- feature split rows --------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 52px 0; }
.split-copy h2 { margin-bottom: 16px; font-size: clamp(1.5rem, 2.6vw, 2.05rem); line-height: 1.15; letter-spacing: -0.02em; max-width: 14em; }
.split + .split { padding-top: 32px; }
.split-copy p { color: var(--muted); }
.split-copy ul { color: var(--muted); padding-left: 0; list-style: none; margin: 20px 0 0; }
.split-copy ul li { padding-left: 32px; position: relative; margin-bottom: 12px; }
.split-copy ul li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 19px; height: 19px; border-radius: 6px;
  background: var(--brand-grad-soft); border: 1px solid rgba(7, 159, 191, 0.3);
}
.split-copy ul li::after {
  content: ""; position: absolute; left: 5px; top: 9px; width: 8px; height: 5px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.split:nth-of-type(even) .split-visual { order: -1; }
.split-visual .mock { transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease; }
.split-visual:hover .mock { transform: translateY(-6px) scale(1.012); box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55); }

/* --- product mockups (pure CSS/HTML fakes) -------------------------------- */
.mock {
  background: linear-gradient(180deg, #17131f, #100d18); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); overflow: hidden; font-size: 0.78rem;
}
.mock-titlebar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); color: var(--faint); }
.mock-titlebar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.mock-titlebar i:first-child { background: rgba(255, 90, 90, 0.7); }
.mock-titlebar i:nth-child(2) { background: rgba(255, 200, 90, 0.7); }
.mock-titlebar i:nth-child(3) { background: rgba(30, 211, 255, 0.7); }
.mock-titlebar span { margin-left: 6px; font-size: 0.74rem; }
.mock-body { padding: 16px; }
.mock table { width: 100%; border-collapse: collapse; }
.mock th { text-align: left; color: var(--faint); font-weight: 600; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; padding: 6px 8px; border-bottom: 1px solid var(--line-soft); }
.mock td { padding: 8px; color: var(--muted); border-bottom: 1px solid rgba(255, 255, 255, 0.035); }
.mock td:first-child { color: var(--ink); font-weight: 550; }
.mock .num { text-align: right; font-variant-numeric: tabular-nums; }
.mock .tag { display: inline-block; border-radius: 999px; padding: 1px 9px; font-size: 0.68rem; font-weight: 600; }
.mock .tag-common { background: rgba(61, 220, 151, 0.12); color: var(--good); }
.mock .tag-pref { background: rgba(129, 140, 248, 0.14); color: #a5b4fc; }
.mock .tag-safe { background: rgba(255, 197, 85, 0.12); color: var(--warn); }
.mock .tag-opt { background: rgba(248, 25, 211, 0.13); color: #ff7dec; }
.mock-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin: 12px 0 6px; }
.mock-bar i { display: block; height: 100%; }
.mock-legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--faint); font-size: 0.7rem; }
.mock-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mock-kpi { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; }
.mock-kpi b { display: block; color: var(--ink); font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.mock-kpi span { color: var(--faint); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; }
.mock-glow { position: relative; }
.mock-glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
  background: linear-gradient(120deg, rgba(7, 159, 191, 0.5), rgba(0, 130, 156, 0.5), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* --- tables ---------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 560px; }
.cmp th, .cmp td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.cmp thead th { background: rgba(255, 255, 255, 0.04); font-family: var(--font-display); font-weight: 600; font-size: 0.94rem; position: sticky; top: 0; }
.cmp tbody tr { transition: background 0.15s; }
.cmp tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td.y { color: var(--good); font-weight: 650; }
.cmp td.n { color: var(--faint); }
.cmp td.p { color: var(--warn); }
.cmp .row-note { color: var(--faint); font-size: 0.82rem; display: block; margin-top: 2px; font-weight: 400; }

/* --- stats band ------------------------------------------------------------ */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  text-align: center; padding: 30px 14px; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  background: var(--panel); transition: transform 0.3s var(--ease-out), border-color 0.25s;
}
.stat:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.14); }
.stat b { display: block; font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* --- FAQ ------------------------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); overflow: hidden; transition: border-color 0.25s, background 0.25s; }
.faq-item:hover, .faq-item[open] { border-color: rgba(255, 255, 255, 0.13); background: rgba(255, 255, 255, 0.042); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 600; position: relative;
  font-size: 1.0rem; font-family: var(--font-display);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.35rem; font-weight: 400; color: var(--accent); transition: transform 0.3s var(--ease-out);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size 0.35s var(--ease-out), content-visibility 0.35s allow-discrete;
}
.faq-item[open]::details-content { block-size: auto; }
.faq-a { padding: 0 22px 20px; color: var(--muted); font-size: 0.96rem; }
.faq-a p { margin: 0 0 10px; }

/* --- CTA band --------------------------------------------------------------- */
@property --cta-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.cta-band { padding: 48px 0 100px; }
.cta-band-inner {
  text-align: center; border-radius: 30px; padding: 72px 36px; position: relative; overflow: hidden;
  background:
    radial-gradient(60% 120% at 20% 0%, rgba(7, 159, 191, 0.2), transparent 60%),
    radial-gradient(60% 120% at 85% 10%, rgba(0, 130, 156, 0.18), transparent 60%),
    var(--bg-raise);
  border: 1px solid transparent;
  background-clip: padding-box;
}
.cta-band-inner::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--cta-angle), rgba(7, 159, 191, 0.7), rgba(0, 130, 156, 0.15), rgba(14, 116, 144, 0.5), rgba(0, 130, 156, 0.15), rgba(7, 159, 191, 0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: cta-rotate 7s linear infinite;
}
@keyframes cta-rotate { to { --cta-angle: 360deg; } }
.cta-band-inner h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.cta-band-inner p { color: var(--muted); max-width: 40em; margin: 0 auto 28px; }
.cta-band .btn-row { justify-content: center; }
.cta-trust { font-size: 0.86rem; color: var(--faint) !important; margin-top: 22px !important; }

/* --- prose (articles, legal, academy) ---------------------------------------- */
.prose { max-width: 780px; }
.prose > * { margin-top: 0; }
.prose h2 { margin: 2.1em 0 0.6em; font-size: 1.75rem; }
.prose h2::before { content: ""; display: block; width: 32px; height: 3px; border-radius: 2px; background: var(--plane, var(--brand-a)); margin-bottom: 14px; }
.prose h3 { margin: 1.7em 0 0.5em; }
.prose p, .prose li { color: #cbc6d8; }
.prose li { margin-bottom: 7px; }
.prose ul, .prose ol { padding-left: 26px; margin: 0 0 1.2em; }
.prose blockquote {
  margin: 1.6em 0; padding: 14px 22px; border-left: 3px solid var(--accent);
  background: var(--panel); border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted);
}
.prose blockquote p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: rgba(255, 255, 255, 0.04); font-family: var(--font-display); font-weight: 600; }
.prose td { color: var(--muted); }
.prose code { background: rgba(255, 255, 255, 0.07); border-radius: 6px; padding: 2px 7px; font-size: 0.86em; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.prose pre { background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose .callout {
  display: flex; gap: 14px; padding: 16px 20px; margin: 1.6em 0;
  background: var(--brand-tint); border: 1px solid rgba(7, 159, 191, 0.25); border-radius: var(--radius);
}
.prose .callout p { margin: 0; color: var(--ink); font-size: 0.95rem; }
.prose .callout::before { content: "→"; color: var(--accent); font-weight: 700; }
.prose .example {
  padding: 18px 22px; margin: 1.6em 0; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.prose .example .example-label { color: var(--plane, var(--accent)); font-weight: 650; font-size: 0.84rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.prose .example > p:last-child { margin-bottom: 0; }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 60px; padding-block: 38px 88px; }
/* an article that opens straight after the hero: no doubled gap above its first heading */
.page-hero + .page-section .article-layout { padding-top: 16px; }
.prose > h2:first-child { margin-top: 0; }
.toc { position: sticky; top: 110px; align-self: start; font-size: 0.88rem; }
.toc h4 { color: var(--faint); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; margin-bottom: 12px; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 5px 0 5px 16px; color: var(--faint); border-left: 2px solid transparent; margin-left: -1.5px; transition: color 0.18s, border-color 0.18s; }
.toc li a:hover { color: var(--ink); }
.toc li a.active { color: var(--accent); border-left-color: var(--accent); }

/* --- article/course cards ------------------------------------------------------ */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  --mx: 50%; --my: 50%;
  display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 26px; position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.25s, box-shadow 0.3s ease;
}
.post-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(7, 159, 191, 0.08), transparent 60%);
  transition: opacity 0.3s ease;
}
.post-card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.18); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35); }
.post-card:hover::after { opacity: 1; }
.post-card .post-kicker { color: var(--accent); font-size: 0.76rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.post-card h3 { font-size: 1.12rem; margin: 0 0 8px; }
.post-card p { color: var(--muted); font-size: 0.92rem; margin: 0 0 14px; flex: 1; }
.post-card .post-meta { color: var(--faint); font-size: 0.8rem; }

.course-list { display: flex; flex-direction: column; gap: 16px; counter-reset: course; }
.course-row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 24px; align-items: center;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 24px 28px;
  transition: border-color 0.25s, transform 0.3s var(--ease-out), background 0.25s;
}
.course-row:hover { border-color: rgba(255, 255, 255, 0.18); transform: translateX(6px); background: rgba(255, 255, 255, 0.045); }
.course-row .course-n { counter-increment: course; font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.course-row .course-n::before { content: "0" counter(course); }
.course-row h3 { margin: 0 0 4px; }
.course-row p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.course-row .course-meta { color: var(--faint); font-size: 0.84rem; white-space: nowrap; }

.lesson-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.lesson-nav a { flex: 1; max-width: 46%; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; font-size: 0.9rem; color: var(--muted); transition: border-color 0.2s, color 0.2s, transform 0.25s var(--ease-out); }
.lesson-nav a:hover { border-color: rgba(255, 255, 255, 0.2); color: var(--ink); transform: translateY(-2px); }
.lesson-nav a b { display: block; color: var(--ink); font-size: 0.97rem; margin-top: 3px; }
.lesson-nav a.next { text-align: right; margin-left: auto; }

/* --- calculators ------------------------------------------------------------------ */
.calc { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: start; }
.calc-inputs { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 100px; }
.calc-field label { display: block; font-size: 0.84rem; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.calc-field input, .calc-field select {
  width: 100%; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--ink);
  border-radius: 11px; padding: 12px 14px; font: inherit; font-variant-numeric: tabular-nums;
  transition: border-color 0.2s, background 0.2s;
}
.calc-field input:hover, .calc-field select:hover { border-color: rgba(255, 255, 255, 0.18); }
.calc-field input:focus, .calc-field select:focus { outline: 2px solid rgba(7, 159, 191, 0.55); outline-offset: 1px; border-color: transparent; }
.calc-field .hint { color: var(--faint); font-size: 0.78rem; margin-top: 5px; }
.calc-results { display: flex; flex-direction: column; gap: 18px; }
.calc-out { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px; }
.calc-out h3 { font-size: 0.86rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.calc-big { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-note { color: var(--faint); font-size: 0.85rem; }
.calc-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.calc-table th { text-align: left; color: var(--faint); font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.07em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.calc-table td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); color: var(--muted); }
.calc-table td:first-child { color: var(--ink); }
.calc-table .num { text-align: right; }
.calc-table tr.hl td { color: var(--ink); font-weight: 600; background: var(--brand-tint); }

/* --- glossary ------------------------------------------------------------------ */
.glossary-az { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; }
.glossary-az a { border: 1px solid var(--line); border-radius: 10px; min-width: 36px; text-align: center; padding: 6px 0; color: var(--muted); font-weight: 600; font-size: 0.9rem; transition: color 0.15s, border-color 0.15s, background 0.15s; }
.glossary-az a:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.05); }
.glossary-group { margin-bottom: 44px; }
.glossary-group h2 { font-size: 1.9rem; color: var(--accent); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.glossary-term { margin-bottom: 20px; }
.glossary-term h3 { font-size: 1.06rem; margin-bottom: 4px; }
.glossary-term p { color: var(--muted); font-size: 0.95rem; margin: 0; max-width: 760px; }

/* --- changelog ------------------------------------------------------------------- */
.release { border-left: 2px solid var(--line); padding: 0 0 48px 34px; position: relative; }
.release::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-grad); box-shadow: 0 0 0 4px rgba(7, 159, 191, 0.18); }
.release-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.release-head h2 { margin: 0; font-size: 1.5rem; }
.release-head .ver { background: var(--brand-grad-soft); border: 1px solid rgba(7, 159, 191, 0.3); color: var(--accent); border-radius: 999px; padding: 2px 12px; font-weight: 650; font-size: 0.84rem; }
.release .prose h2 { font-size: 1.15rem; margin: 1.4em 0 0.5em; }

/* --- misc ------------------------------------------------------------------------ */
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; list-style: none; margin: 0; padding: 0; }
.pill-item { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 9px 20px; font-size: 0.9rem; color: var(--muted); transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease-out), color 0.2s; }
.pill-item:hover { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.055); transform: translateY(-2px); color: var(--ink); }
.pill-item b { color: var(--ink); font-weight: 600; }

.checklist { list-style: none; padding: 0; margin: 18px 0; }
.checklist li { padding: 7px 0 7px 32px; position: relative; color: var(--muted); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 6px; background: var(--brand-grad-soft); border: 1px solid rgba(7, 159, 191, 0.3); }
.checklist li::after { content: ""; position: absolute; left: 5px; top: 16px; width: 8px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
/* A list of what the product does NOT do must not wear affirmative ticks: a
   brand-coloured check in front of "No verified corpus" reads as the opposite
   claim. */
.checklist-negative li::before { background: rgba(255, 255, 255, 0.04); border-color: var(--line); }
.checklist-negative li::after { left: 4px; top: 19px; width: 10px; height: 0; border-left: 0; border-bottom: 2px solid var(--faint); transform: none; }

.notice { border: 1px solid rgba(255, 197, 85, 0.3); background: rgba(255, 197, 85, 0.07); border-radius: var(--radius); padding: 14px 20px; color: #e8d5ab; font-size: 0.92rem; }

/* --- footer -------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.015); margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(6, minmax(0, 1fr)); gap: 28px 22px; padding: 64px 28px 44px; }
.footer-brand p { color: var(--faint); font-size: 0.88rem; margin: 16px 0 0; max-width: 30em; }
.footer-lisan a { color: var(--muted); text-decoration: underline; }
.footer-col h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); font-family: var(--font-body); font-weight: 650; margin-bottom: 15px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--muted); font-size: 0.9rem; transition: color 0.18s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 28px 32px; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 0.84rem; }
.footer-bottom ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-bottom a { color: var(--faint); transition: color 0.18s; }
.footer-bottom a:hover { color: var(--muted); }

/* --- shared keyframes (lightbox, mobile drawer) ------------------------------------ */
@keyframes pop-in { from { opacity: 0; transform: translateY(-14px) scale(0.98); } }
@keyframes fade-in { from { opacity: 0; } }

/* --- reveal animation ---------------------------------------------------------------- */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out) var(--rd, 0s), transform 0.6s var(--ease-out) var(--rd, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; will-change: auto; }
/* sibling stagger inside grids (60 ms steps, eight slots) */
:is(.card-grid, .capability-index, .stat-tiles, .trust-strip) > :nth-child(1) { --rd: 0ms; }
:is(.card-grid, .capability-index, .stat-tiles, .trust-strip) > :nth-child(2) { --rd: 60ms; }
:is(.card-grid, .capability-index, .stat-tiles, .trust-strip) > :nth-child(3) { --rd: 120ms; }
:is(.card-grid, .capability-index, .stat-tiles, .trust-strip) > :nth-child(4) { --rd: 180ms; }
:is(.card-grid, .capability-index, .stat-tiles, .trust-strip) > :nth-child(5) { --rd: 240ms; }
:is(.card-grid, .capability-index, .stat-tiles, .trust-strip) > :nth-child(6) { --rd: 300ms; }
:is(.card-grid, .capability-index, .stat-tiles, .trust-strip) > :nth-child(7) { --rd: 360ms; }
:is(.card-grid, .capability-index, .stat-tiles, .trust-strip) > :nth-child(8) { --rd: 420ms; }

/* --- reduced motion -------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .grad-text, .cta-band-inner::before, .hero-home .mock-glow { animation: none; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .btn-primary::before { display: none; }
  .card, .post-card, .stat, .pill-item, .course-row, .btn, .lesson-nav a, .split-visual .mock { transition: none; }
  .scroll-progress { display: none; }
}

/* --- responsive ------------------------------------------------------------------------ */
@media (max-width: 1080px) {
  .card-grid, .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .prose { min-width: 0; max-width: 100%; }
}
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 34px; padding: 34px 0; }
  .mock { max-width: 100%; overflow-x: auto; }
  .split:nth-of-type(even) .split-visual { order: 0; }
  .calc { grid-template-columns: 1fr; }
  .calc-inputs { position: static; }
  .site-header { padding: 10px 0; }
  .nav-wrap { padding: 0 12px; }
  .nav { height: 56px; padding: 0 6px 0 16px; }
  /* the drawer starts under the 77px header band (10px padding x2, 56px bar, 1px rule),
     so rows can never scroll under the logo or the close button */
  .nav-menu {
    display: none; position: fixed; inset: 77px 0 0; padding: 12px 28px 28px; background: rgba(7, 5, 12, 0.97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: -1;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0; overflow-y: auto;
  }
  .nav-menu.open { display: flex; animation: fade-in 0.25s ease; }
  .nav-menu > li { border-bottom: 1px solid var(--line-soft); }
  .nav-link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.05rem; border-radius: 0; }
  .nav-link:hover { background: none; }
  .nav-mobile-cta { position: sticky; bottom: 0; display: block; padding: 16px 4px calc(16px + env(safe-area-inset-bottom)); margin-top: auto; background: rgb(7 5 12); border-top: 1px solid var(--line-soft); border-bottom: 0 !important; }
  .nav-mobile-cta .btn { width: 100%; }
  .nav-burger { display: flex; }
  .nav-signin, .btn-nav { display: none; }
  .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { z-index: 100; }
  /* backdrop-filter would make .nav the containing block for the fixed menu */
  body.nav-open .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-color: transparent; box-shadow: none; }
  body.nav-open .site-header { background: rgb(7 5 12); border-bottom: 1px solid var(--line-soft); }
  body.nav-open .scroll-progress { display: none; }
}
@media (max-width: 620px) {
  .hero-badge { font-size: 0.78rem; max-width: calc(100vw - 48px); }
  .hero-badge > :last-child { min-width: 0; }
  .card-grid, .card-grid-2, .card-grid-4, .post-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding: 60px 0 28px; }
  .hero-home { padding: 68px 0 24px; }
  .hero-home .demo-stage { margin-top: 36px; }
  .page-section { padding: 60px 0; }
  .section-sub { margin-bottom: 38px; }
  .course-row { grid-template-columns: 1fr; gap: 8px; }
  .course-row .course-n { font-size: 1.4rem; }
  .course-row:hover { transform: none; }
  .lesson-nav { flex-direction: column; }
  .lesson-nav a { max-width: none; }
  .btn-row .btn { flex: 1 1 100%; }
  .cta-band-inner { padding: 52px 24px; }
}

/* ==========================================================================
   v3 "Meridian" layer — screenshots, charts, bento, marquee, RTL, lightbox
   ========================================================================== */

/* --- product screenshots (real captures in glass frames) ------------------ */
.shot {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* safe placeholder while the capture loads: gradient plus the four-point Ishara mark at 6 percent */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M60 4C64.5 38 82 55.5 116 60 82 64.5 64.5 82 60 116 55.5 82 38 64.5 4 60 38 55.5 55.5 38 60 4Z' fill='%23ffffff' fill-opacity='.06'/%3E%3C/svg%3E") center / 120px 120px no-repeat,
    linear-gradient(180deg, #131a1c, #0c0916) #0c0916;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 80px rgba(0, 0, 0, 0.55);
}
.shot img { display: block; width: 100%; height: auto; }
.shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), transparent 24%);
}
.shot-bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.025);
}
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.13); flex: none; }
.shot-bar i:first-child { background: rgba(255, 90, 90, 0.65); }
.shot-bar i:nth-child(2) { background: rgba(255, 200, 90, 0.65); }
.shot-bar i:nth-child(3) { background: rgba(30, 211, 255, 0.65); }
.shot-bar span { color: var(--faint); font-size: 0.74rem; margin-left: 6px; }
[dir="rtl"] .shot-bar span { margin-left: 0; margin-right: 6px; }

/* gradient halo wrapper */
.shot-glow { position: relative; }
.shot-glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: 25px; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(120deg, color-mix(in srgb, var(--plane, var(--brand-a)) 55%, transparent), color-mix(in srgb, var(--plane, var(--brand-b)) 45%, transparent) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.shot-glow::after {
  content: ""; position: absolute; inset: -8% -14% -18%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(52% 58% at 24% 14%, color-mix(in srgb, var(--plane, var(--brand-a)) 20%, transparent), transparent 62%),
    radial-gradient(52% 58% at 78% 22%, color-mix(in srgb, var(--plane, var(--brand-b)) 17%, transparent), transparent 62%);
  filter: blur(28px);
}

/* hero screenshot: 3D perspective + cursor tilt (JS sets --rx/--ry) */
.hero-stage { perspective: 1400px; max-width: 1040px; margin: 52px auto 0; }
.hero-stage .shot {
  transform: rotateX(calc(6deg + var(--rx, 0deg))) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform 0.35s var(--ease-out);
  will-change: transform;
}
.hero-stage:hover .shot { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.hero-reflection {
  height: 110px; margin: -4px auto 0; max-width: 1040px; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 159, 191, 0.09), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%);
  mask-image: linear-gradient(180deg, #000, transparent 80%);
  border-radius: var(--radius-lg); opacity: 0.6;
}

/* split visuals: gentle float on hover */
.split-visual .shot { transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease; }
.split-visual:hover .shot { transform: translateY(-6px) scale(1.012); box-shadow: 0 34px 96px rgba(0, 0, 0, 0.6); }

/* clickable zoom affordance */
.shot-zoom { cursor: zoom-in; }

/* --- lightbox -------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw; background: rgba(4, 3, 8, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fade-in 0.22s ease;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 94vw; max-height: 90vh; width: auto; height: auto; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 40px 140px rgba(0, 0, 0, 0.8);
  animation: pop-in 0.3s var(--ease-out);
}
.lightbox-close {
  position: absolute; top: 22px; right: 26px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); color: var(--ink);
  font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.25s var(--ease-out);
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.15); transform: rotate(90deg); }
.lightbox-cap { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 0.9rem; }

/* --- vz: the chart engine --------------------------------------------------
   The categorical palette lives in site-v3.js (PAL: #079FBF #3b82f6 #c77d06
   #FF9A8A #8b7ff0, validated on #071519). CSS only carries the neutrals.   */
:root {
  --vz-rest: rgba(255, 255, 255, 0.13);
  --vz-grid: rgba(255, 255, 255, 0.07);
  --vz-surface: #071519;
}
.vz {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 24px 24px 18px; position: relative;
}
.vz-title { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; margin: 0 0 2px; }
.vz-sub { color: var(--faint); font-size: 0.8rem; margin: 0 0 16px; }
.vz svg { display: block; width: 100%; height: auto; overflow: visible; }
.vz text { font-family: var(--font-body); fill: var(--muted); font-size: 11.5px; }
.vz .vz-axis text { fill: var(--faint); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.vz .vz-gridline { stroke: var(--vz-grid); stroke-width: 1; }
.vz .vz-baseline { stroke: rgba(255, 255, 255, 0.16); stroke-width: 1; }
.vz .vz-val { fill: var(--ink); font-weight: 600; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.vz .vz-lbl { fill: var(--muted); font-size: 11px; }
.vz-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.vz-legend span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 0.8rem; }
.vz-legend i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.vz-tip {
  position: fixed; z-index: 350; pointer-events: none; opacity: 0; transform: translateY(4px);
  background: #17121f; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px;
  padding: 8px 12px; font-size: 0.8rem; color: var(--muted); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  transition: opacity 0.15s ease, transform 0.15s ease; max-width: 260px;
}
.vz-tip.on { opacity: 1; transform: translateY(0); }
.vz-tip b { color: var(--ink); font-variant-numeric: tabular-nums; }
.vz-tip .t-name { display: flex; align-items: center; gap: 7px; }
.vz-tip .t-name i { width: 8px; height: 8px; border-radius: 2px; flex: none; }

/* mark hovers */
.vz [data-vzi] { transition: opacity 0.18s ease, filter 0.18s ease; cursor: default; }
.vz.vz-dim [data-vzi] { opacity: 0.32; }
.vz.vz-dim [data-vzi].on { opacity: 1; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.12)); }

/* draw-in animations (triggered by .in from the reveal observer) */
.vz .vz-bar { transform: scaleY(0); transform-box: fill-box; transform-origin: bottom; }
.vz.in .vz-bar { animation: vz-grow 0.9s var(--ease-out) forwards; animation-delay: var(--vzd, 0s); }
@keyframes vz-grow { to { transform: scaleY(1); } }
/* charts keep an LTR internal coordinate system in both site languages */
.vz svg { direction: ltr; }
.vz .vz-barh { transform: scaleX(0); transform-box: fill-box; transform-origin: left; }
.vz.in .vz-barh { animation: vz-groww 0.9s var(--ease-out) forwards; animation-delay: var(--vzd, 0s); }
@keyframes vz-groww { to { transform: scaleX(1); } }
.vz .vz-arc { transition: stroke-dashoffset 1.1s var(--ease-out); transition-delay: var(--vzd, 0s); }
.vz .vz-path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.vz.in .vz-path { animation: vz-draw 1.4s var(--ease-out) forwards; animation-delay: var(--vzd, 0s); }
@keyframes vz-draw { to { stroke-dashoffset: 0; } }
.vz .vz-fade { opacity: 0; }
.vz.in .vz-fade { animation: vz-fadein 0.7s ease forwards; animation-delay: var(--vzd, 0.6s); }
@keyframes vz-fadein { to { opacity: 1; } }
.vz-donut-total { font-family: var(--font-display); font-weight: 700; fill: var(--ink); }
.vz .vz-donutg { transform: rotate(-40deg) scale(0.92); opacity: 0; transform-box: fill-box; transform-origin: center; transition: transform 1s var(--ease-out), opacity 0.7s ease; }
.vz.in .vz-donutg { transform: none; opacity: 1; }
/* still mode: calculators re-render on every input — no re-entry animation */
.vz.vz-still .vz-bar, .vz.vz-still .vz-barh, .vz.vz-still.in .vz-bar, .vz.vz-still.in .vz-barh { animation: none; transform: none; }
.vz.vz-still .vz-path, .vz.vz-still.in .vz-path { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
.vz.vz-still .vz-fade, .vz.vz-still.in .vz-fade { animation: none; opacity: 1; }
.vz.vz-still .vz-donutg { transition: none; transform: none; opacity: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
table.sr-only { display: block; }

/* --- bento grid ------------------------------------------------------------ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento-item {
  --mx: 50%; --my: 50%;
  grid-column: span 2; position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.022) 58%);
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 26px; display: flex; flex-direction: column; min-height: 210px;
  transition: transform 0.3s var(--ease-out), border-color 0.25s, background 0.25s, box-shadow 0.3s;
}
.bento-item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(7, 159, 191, 0.09), transparent 62%);
  transition: opacity 0.3s ease;
}
.bento-item:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.045); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35); }
.bento-item:hover::after { opacity: 1; }
.bento-item h3 { font-size: 1.14rem; margin: 0 0 6px; }
.bento-item p { color: var(--muted); font-size: 0.92rem; margin: 0 0 14px; }
.bento-wide { grid-column: span 4; }
.bento-full { grid-column: span 6; }
.bento-kpi { justify-content: center; min-height: 150px; }
.bento-kpi b { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bento-kpi span { color: var(--muted); font-size: 0.92rem; }
.bento-item .shot { margin-top: auto; border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); }
.bento-item .shot img { transition: transform 0.6s var(--ease-out); }
.bento-item:hover .shot img { transform: scale(1.025); }

/* --- marquee rail ----------------------------------------------------------- */
.marquee { overflow: hidden; position: relative; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee-scroll 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll { to { transform: translateX(calc(-50% - 7px)); } }
.marquee .pill-item { white-space: nowrap; }

/* --- feature tabs / showcase -------------------------------------------------- */
.showcase { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; }
.showcase-tabs { display: flex; flex-direction: column; gap: 8px; }
.showcase-tab {
  text-align: left; background: none; border: 1px solid transparent; border-radius: 14px; cursor: pointer;
  padding: 14px 18px; color: var(--muted); font: inherit;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
[dir="rtl"] .showcase-tab { text-align: right; }
.showcase-tab b { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; margin-bottom: 2px; }
.showcase-tab span { font-size: 0.84rem; line-height: 1.5; display: block; }
.showcase-tab:hover { background: rgba(255, 255, 255, 0.04); transform: translateX(3px); }
[dir="rtl"] .showcase-tab:hover { transform: translateX(-3px); }
.showcase-tab.on {
  background: rgba(7, 159, 191, 0.07); border-color: rgba(7, 159, 191, 0.35);
  box-shadow: inset 2px 0 0 var(--brand-a), 0 4px 18px rgba(7, 159, 191, 0.1);
}
[dir="rtl"] .showcase-tab.on { box-shadow: inset -2px 0 0 var(--brand-a), 0 4px 18px rgba(7, 159, 191, 0.1); }
.showcase-tab.on b { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.showcase-pane { position: relative; }
.showcase-pane .shot, .showcase-pane .demo { animation: pane-in 0.45s var(--ease-out); }
@keyframes pane-in { from { opacity: 0; transform: translateY(10px) scale(0.99); } }

/* --- word-by-word headline reveal --------------------------------------------- */
.words .w { display: inline-block; opacity: 0; transform: translateY(20px) rotate(1.5deg); filter: blur(6px); }
.words.in .w { animation: word-in 0.65s var(--ease-out) forwards; animation-delay: calc(var(--wi) * 70ms); }
@keyframes word-in { to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .words .w, .words.in .w { opacity: 1; transform: none; filter: none; animation: none; } }

/* --- flow timeline (how it works) ---------------------------------------------- */
/* auto-fit so a 4-card flow lands 2x2 and a 5-card flow balances, instead of
   stranding the last card alone on a mostly empty row. */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; counter-reset: flow; }
.flow:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
.flow:has(> :nth-child(5):last-child) { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.flow-step {
  position: relative; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 26px 26px 24px; transition: transform 0.3s var(--ease-out), border-color 0.25s;
}
.flow-step:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.15); }
.flow-step::before {
  counter-increment: flow; content: "0" counter(flow);
  font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 14px;
}
.flow-step h3 { font-size: 1.08rem; margin: 0 0 6px; }
.flow-step p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ===========================================================================
   RTL + Arabic
   =========================================================================== */
html[lang="ar"] body { font-family: "Noto Kufi Arabic", "Inter", system-ui, sans-serif; letter-spacing: 0; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4,
html[lang="ar"] .btn, html[lang="ar"] .brand, html[lang="ar"] .kicker, html[lang="ar"] .section-kicker {
  font-family: "Noto Kufi Arabic", "Poppins", sans-serif; letter-spacing: 0;
}
html[lang="ar"] h1 { line-height: 1.42; font-size: clamp(2rem, 4.6vw, 3.3rem); }
html[lang="ar"] h2 { line-height: 1.5; }
html[lang="ar"] h3 { line-height: 1.6; }
html[lang="ar"] .lead, html[lang="ar"] p { line-height: 2; }
html[lang="ar"] .kicker, html[lang="ar"] .section-kicker, html[lang="ar"] .post-kicker { letter-spacing: 0.02em; }
html[lang="ar"] .hero-home h1 { line-height: 1.4; }

[dir="rtl"] .nav-actions { margin-left: 0; margin-right: auto; }
[dir="rtl"] .nav-menu { margin: 0 8px 0 0; }
[dir="rtl"] .split-copy ul li { padding-left: 0; padding-right: 32px; }
[dir="rtl"] .split-copy ul li::before { left: auto; right: 0; }
[dir="rtl"] .split-copy ul li::after { left: auto; right: 5px; }
[dir="rtl"] .checklist li { padding: 7px 32px 7px 0; }
[dir="rtl"] .checklist li::before { left: auto; right: 0; }
[dir="rtl"] .checklist li::after { left: auto; right: 5px; }
[dir="rtl"] .faq-item summary { padding: 18px 22px 18px 52px; }
[dir="rtl"] .faq-item summary::after { right: auto; left: 20px; }
[dir="rtl"] .prose blockquote { border-left: 0; border-right: 3px solid var(--accent); border-radius: var(--radius) 0 0 var(--radius); }
[dir="rtl"] .toc ul { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .toc li a { padding: 5px 16px 5px 0; border-left: 0; border-right: 2px solid transparent; margin-left: 0; margin-right: -1.5px; }
[dir="rtl"] .toc li a.active { border-right-color: var(--accent); }
[dir="rtl"] .release { border-left: 0; border-right: 2px solid var(--line); padding: 0 34px 48px 0; }
[dir="rtl"] .release::before { left: auto; right: -7px; }
[dir="rtl"] .lesson-nav a.next { text-align: left; margin-left: 0; margin-right: auto; }
[dir="rtl"] .course-row:hover { transform: translateX(-6px); }
[dir="rtl"] .prose .callout::before { content: "←"; }
[dir="rtl"] .lightbox-close { right: auto; left: 26px; }
[dir="rtl"] .cmp th, [dir="rtl"] .cmp td, [dir="rtl"] .prose th, [dir="rtl"] .prose td { text-align: right; }
[dir="rtl"] :is(code, kbd, samp, .lang-btn, [data-live-version], [data-live-download], .doc-num) {
  direction: ltr;
  unicode-bidi: isolate;
}

/* --- synthetic diagrams (v3.1): phone, hub card, vertical flow ---------------- */
.flow-vert { display: flex; flex-direction: column; gap: 14px; counter-reset: flow; max-width: 420px; }
.flow-vert .flow-step { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; }
.flow-vert .flow-step::before { position: static; flex: none; margin-top: 2px; }
/* The journey already numbers its steps; an inner flow must not start a second
   count beside it. */
.journey .flow-vert { counter-reset: none; }
.journey .flow-vert .flow-step::before { content: none; }
.flow-vert .flow-step > div { min-width: 0; }

.hub-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel-solid);
  box-shadow: var(--shadow-pop); overflow: hidden; max-width: 560px; margin: 0 auto;
}
.hub-card .hub-body { display: flex; align-items: flex-start; gap: 18px; padding: 28px; }
.hub-icon { flex: none; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(7, 159, 191, 0.08); border: 1px solid rgba(7, 159, 191, 0.22); }
.hub-icon svg { width: 40px; height: 40px; display: block; }
.hub-meta { min-width: 0; flex: 1; }
.hub-meta h3 { margin: 2px 0 4px; font-size: 1.3rem; }
.hub-meta p { margin: 0 0 10px; color: var(--muted); font-size: 0.94rem; }
.hub-cat { display: inline-block; font-size: 0.74rem; color: var(--faint); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 10px; }
.hub-ver { flex: none; font-size: 0.82rem; font-weight: 600; color: var(--accent);
  background: var(--brand-grad-soft); border: 1px solid rgba(7, 159, 191, 0.3); border-radius: 999px; padding: 4px 12px; }

.phone-stage { display: grid; place-items: center; position: relative; padding: 12px 0; }
.phone {
  position: relative; width: min(300px, 80vw); border-radius: 46px; padding: 10px;
  background: linear-gradient(160deg, #3a3644, #17141f 40%, #211d2c 85%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 30px 80px rgba(0, 0, 0, 0.6), 0 0 90px rgba(7, 159, 191, 0.14);
}
.phone-sbtn { position: absolute; top: 108px; inset-inline-end: -2px; width: 3px; height: 56px;
  border-radius: 2px; background: rgba(255, 255, 255, 0.22); }
.phone-screen {
  border-radius: 38px; background: linear-gradient(180deg, #0e0a18 0%, #0b0812 45%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden; padding: 12px 16px 18px; min-height: 510px; position: relative;
  display: flex; flex-direction: column;
}
/* status bar with a dynamic-island pill */
.phone-status { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding: 2px 6px 0; }
.phone-status b { font-size: 0.74rem; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.phone-island { width: 78px; height: 21px; border-radius: 999px; background: #000; border: 1px solid rgba(255, 255, 255, 0.07); flex: none; }
.phone-sices { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); opacity: 0.9; }
.phone-head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.phone-head .phone-ava { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 700; color: var(--on-brand); letter-spacing: 0.02em;
  background: var(--brand-grad-btn); box-shadow: 0 4px 14px rgba(7, 159, 191, 0.35); }
.phone-head > div { flex: 1; min-width: 0; }
.phone-head > div b { font-size: 0.88rem; display: block; line-height: 1.3; }
.phone-head > div span { font-size: 0.68rem; color: var(--faint); display: block; }
.phone-bell { position: relative; width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: var(--muted);
  border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.03); }
.phone-bell i { position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border-radius: 50%;
  background: #00829C; box-shadow: 0 0 6px rgba(0, 130, 156, 0.8); }
.phone-ring { position: relative; width: 150px; height: 150px; margin: 6px auto 14px; border-radius: 50%;
  display: grid; place-content: center; row-gap: 2px;
  background: conic-gradient(#079FBF 0deg, #00829C 126deg, rgba(255, 255, 255, 0.07) 126deg 360deg);
  filter: drop-shadow(0 6px 22px rgba(7, 159, 191, 0.22)); }
.phone-ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #0c0914; }
.phone-ring b { position: relative; z-index: 1; text-align: center; line-height: 1.05;
  font-family: var(--font-display); font-size: 1.72rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.phone-ring i { position: relative; z-index: 1; text-align: center; max-width: 92px; margin: 0 auto;
  font-style: normal; font-size: 0.6rem; line-height: 1.35; color: var(--faint); }
/* value card with sparkline */
.phone-value { display: flex; align-items: center; gap: 10px; padding: 12px 13px;
  border: 1px solid rgba(7, 159, 191, 0.22); border-radius: 16px; margin-top: 2px;
  background: linear-gradient(180deg, rgba(7, 159, 191, 0.09), rgba(0, 130, 156, 0.04)); }
.phone-value-meta { flex: 1; min-width: 0; }
.phone-value-meta span { display: block; font-size: 0.66rem; color: var(--muted); }
.phone-value-meta b { display: block; font-family: var(--font-display); font-size: 1.06rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.35; }
.phone-value-meta u { display: block; text-decoration: none; font-size: 0.62rem; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-spark { width: 86px; flex: none; }
.phone-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 11px 13px; border: 1px solid var(--line-soft); border-radius: 14px; margin-top: 9px;
  background: rgba(255, 255, 255, 0.02); }
.phone-row span { font-size: 0.72rem; color: var(--muted); }
.phone-row b { font-size: 0.84rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* bottom tab bar */
.phone-tabs { display: flex; justify-content: space-around; gap: 2px; margin-top: auto;
  padding: 12px 4px 4px; border-top: 1px solid var(--line-soft); }
.phone-tab { display: grid; justify-items: center; gap: 3px; color: var(--faint); min-width: 0; }
.phone-tab em { font-style: normal; font-size: 0.56rem; font-weight: 600; }
.phone-tab.on { color: #4DDAFF; }
.phone-badge { position: absolute; top: 20px; inset-inline-end: -12px; z-index: 2;
  font-size: 0.72rem; font-weight: 700; color: var(--on-brand); background: var(--brand-grad-btn);
  border-radius: 999px; padding: 6px 14px; box-shadow: 0 8px 24px rgba(7, 159, 191, 0.35);
  transform: rotate(6deg); }
[dir="rtl"] .phone-badge { transform: rotate(-6deg); }

/* ==========================================================================
   v3.4 microinteractions — small, consistent, blue
   ========================================================================== */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid rgba(7, 159, 191, 0.75); outline-offset: 2px; border-radius: 6px;
}
.btn:focus-visible { outline-offset: 3px; }
/* link arrows glide, never jump */
.card-link, .btn { will-change: transform; }
/* checkbox-style list ticks brighten on row hover */
.split-copy ul li { transition: color 0.2s; }
.split-copy ul li:hover { color: var(--ink); }
.split-copy ul li:hover::after { border-color: #B8EEFF; }
/* stat numbers get a soft glow on hover */
.stat { transition: transform 0.25s var(--ease-out); }
.stat:hover { transform: translateY(-2px); }
/* pills carry a faint blue wash on hover instead of plain white */
.pill-item:hover { border-color: rgba(7, 159, 191, 0.4); background: rgba(7, 159, 191, 0.07); }
/* demo cards lift very slightly under the pointer, like the shots did */
.split-visual .demo { transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease; }
.split-visual:hover .demo { transform: translateY(-6px); box-shadow: 0 34px 96px rgba(0, 0, 0, 0.6), 0 0 60px rgba(7, 159, 191, 0.08); }
@media (prefers-reduced-motion: reduce) {
  .split-visual .demo, .split-visual:hover .demo { transform: none; transition: none; }
  .showcase-tab, .showcase-tab:hover, [dir="rtl"] .showcase-tab:hover { transform: none; }
  .stat, .stat:hover { transform: none; }
}

/* --- responsive additions ----------------------------------------------------- */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-item, .bento-wide, .bento-full { grid-column: span 2; }
  .showcase { grid-template-columns: 1fr; }
  .showcase-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .showcase-tab { flex: none; max-width: 260px; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .bento-item, .bento-wide, .bento-full { grid-column: span 1; min-height: 0; }
  .flow { grid-template-columns: 1fr; }
  .hero-stage { margin-top: 36px; }
  .hero-reflection { display: none; }
  .vz { padding: 18px 14px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .hero-stage .shot, .hero-stage:hover .shot { transform: none; transition: none; }
  .vz .vz-bar, .vz.in .vz-bar, .vz .vz-barh, .vz.in .vz-barh { transform: none; animation: none; }
  .vz .vz-path, .vz.in .vz-path { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .vz .vz-fade, .vz.in .vz-fade { opacity: 1; animation: none; }
  .vz .vz-arc { transition: none; }
  .bento-item, .flow-step, .shot, .split-visual .shot, .showcase-pane .shot { transition: none; animation: none; }
}

/* --- ecosystem brand switcher (shared: websites/_shared/brand-switch.mjs) ---
   The brand stays a home link; the caret opens a directory of every product
   site + the Lisan platform. Marks under /assets/marks/ come from
   brand/gen-logos.mjs. Same block on all seven sites. */
.brand-switch { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.brand-caret {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 2px; border: 0; background: none; border-radius: 0;
  font: inherit; cursor: pointer; appearance: none; -webkit-appearance: none;
  color: var(--muted);
  transition: color 0.25s;
}
.brand-switch:hover .brand-caret, .brand-switch:focus-within .brand-caret { color: var(--ink); }
.brand-switch:hover .brand-caret svg, .brand-switch:focus-within .brand-caret svg { transform: rotate(180deg); }
.brand-caret svg { display: block; transition: transform 0.3s var(--ease-out); }
.brand-caret:focus-visible { outline: 1px solid rgba(255, 255, 255, 0.4); outline-offset: 2px; border-radius: 4px; }

.brand-menu {
  position: absolute; top: calc(100% + 14px); inset-inline-start: -8px; z-index: 200;
  width: 308px; padding: 12px;
  background: rgba(13, 14, 16, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 24px 70px rgba(0, 0, 0, 0.55);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.25s ease, visibility 0.25s, transform 0.3s var(--ease-out);
}
[dir="rtl"] .brand-menu { transform-origin: top right; }
/* hover bridge so the pointer can travel down without closing */
.brand-switch::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; }
.brand-switch:hover .brand-menu, .brand-switch:focus-within .brand-menu {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}
.bs-head {
  color: var(--faint); font-size: 0.72rem; font-weight: 640; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 6px 10px 8px; margin: 0;
}
.brand-menu ul { display: flex; flex-direction: column; gap: 2px; list-style: none; margin: 0; padding: 0; }
.brand-menu li a, .brand-menu a { text-decoration: none; }
.bs-item, .bs-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 12px;
  transition: background 0.2s ease;
}
.bs-item:hover, .bs-foot:hover { background: rgba(255, 255, 255, 0.055); }
.bs-logo {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 38px; height: 38px; border-radius: 11px;
  background: color-mix(in srgb, var(--pa, #9da3ae) 13%, rgba(255, 255, 255, 0.03));
  border: 1px solid color-mix(in srgb, var(--pa, #9da3ae) 28%, transparent);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
.bs-item:hover .bs-logo {
  transform: scale(1.06);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--pa) 30%, transparent);
}
.bs-logo img { width: 22px; height: 22px; object-fit: contain; }
.bs-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bs-text b { font-family: var(--font-display); font-weight: 600; font-size: 0.94rem; color: var(--ink); }
.bs-text i { font-style: normal; color: var(--faint); font-size: 0.78rem; }
.bs-arr {
  margin-inline-start: auto; color: var(--faint); font-size: 0.85rem;
  opacity: 0; transform: translate(-4px, 2px); transition: opacity 0.2s, transform 0.25s var(--ease-out);
}
.bs-item:hover .bs-arr, .bs-foot:hover .bs-arr { opacity: 1; transform: translate(0, 0); }
.bs-current { background: rgba(255, 255, 255, 0.04); }
.bs-foot { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line-soft); border-radius: 0 0 12px 12px; }
.bs-logo-hub { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }

@media (max-width: 980px) {
  /* On mobile the burger menu handles navigation; keep the brand simple. */
  .brand-caret, .brand-menu { display: none; }
}

/* ==========================================================================
   v4 layer — planes, proof tiles, crops and stages, CSS diagrams, pricing
   skin, comparison skin, chart chrome. Class names are the shared contract
   (plan section B); values are plan section 10.
   ========================================================================== */

/* --- planes: one hue per product plane, inherited by kickers, icons, pins --- */
.plane-tender { --plane: var(--plane-tender); --plane-soft: var(--plane-tender-soft); }
.plane-investor { --plane: var(--plane-investor); --plane-soft: var(--plane-investor-soft); }
.plane-kernel { --plane: var(--plane-kernel); --plane-soft: var(--plane-kernel-soft); }

/* --- surfaces and chapter rhythm ------------------------------------------- */
.section-raise { background: var(--bg-raise); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-mesh { position: relative; isolation: isolate; }
.section-mesh::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 0%, color-mix(in srgb, var(--plane, var(--brand-a)) 14%, transparent), transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.4px) 0 0 / 36px 36px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 40%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 40%);
}
.eyebrow-num {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--plane, var(--brand-a)); margin: 0 0 12px;
}

/* --- two-column page hero --------------------------------------------------- */
.page-hero-2col .container {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center;
}
.page-hero-copy { min-width: 0; }
.page-hero-visual { min-width: 0; position: relative; transform: perspective(1200px) rotateY(-6deg) rotateX(2deg); }
[dir="rtl"] .page-hero-visual { transform: perspective(1200px) rotateY(6deg) rotateX(2deg); }
.page-hero-visual .shot { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 90px rgba(0, 0, 0, 0.6); }

/* --- hero persona toggle (a .showcase variant) ------------------------------- */
.hero-toggle { grid-template-columns: 1fr; gap: 26px; }
.hero-toggle .showcase-tabs { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; overflow: visible; padding: 0; }
.hero-toggle .showcase-tab {
  display: inline-flex; align-items: center; justify-content: center; flex: none; max-width: none;
  height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  color: var(--muted); font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; text-align: center; box-shadow: none;
}
.hero-toggle .showcase-tab:hover, [dir="rtl"] .hero-toggle .showcase-tab:hover { transform: none; background: rgba(255, 255, 255, 0.06); color: var(--ink); }
.hero-toggle .showcase-tab.on, [dir="rtl"] .hero-toggle .showcase-tab.on {
  background: var(--brand-tint); border-color: rgba(7, 159, 191, 0.45); color: var(--ink);
  box-shadow: 0 6px 22px rgba(7, 159, 191, 0.12);
}
.hero-toggle .showcase-tab.on b { background: none; color: var(--ink); -webkit-text-fill-color: currentColor; }
.hero-toggle .showcase-pane { width: 100%; max-width: 1040px; margin: 0 auto; }

/* --- header additions ---------------------------------------------------------- */
.btn-nav-ghost { padding: 8px 16px; font-size: 0.9rem; border-radius: 10px; background: rgba(255, 255, 255, 0.05); border-color: var(--line); color: var(--ink); }
.btn-nav-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.18); }
.nav-mobile-cta .btn-nav-ghost { display: none; }
.lang-pill {
  display: inline-block; vertical-align: middle; margin-inline-start: 6px; padding: 0 8px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); color: var(--faint); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.06em; line-height: 1.7; text-transform: uppercase; direction: ltr; unicode-bidi: isolate;
}
.flag { display: inline-block; border-radius: 50%; object-fit: cover; vertical-align: middle; flex: none; }

/* --- footer coverage line ------------------------------------------------------- */
.footer-coverage {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 26px 28px 0;
  color: var(--faint); font-size: 0.86rem;
}
.footer-coverage p { margin: 0; }
.coverage-flags { display: inline-flex; align-items: center; gap: 8px; }
.cov { position: relative; display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; }
.cov .flag { width: 18px; height: 18px; }
.cov .dot {
  position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid var(--bg); background: rgba(255, 255, 255, 0.35);
}
[dir="rtl"] .cov .dot { right: auto; left: -1px; }
.cov-live .dot { background: var(--good); }
.cov-next .dot { background: var(--warn); }
.cov-planned .dot { background: var(--bg); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); }

/* --- stat tiles: label, count-up numeral, plane underline, context ------------ */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
/* six tiles: one equal row on wide screens, 3 x 2 below 1080, 2 x 3 on phones */
.stat-tiles-6, .stat-tiles:has(> :nth-child(6)) { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.stat-tiles-6 .stat-tile, .stat-tiles:has(> :nth-child(6)) .stat-tile { padding: 20px 18px 18px; }
.stat-tiles-6 .stat-tile b, .stat-tiles:has(> :nth-child(6)) .stat-tile b { font-size: 1.9rem; }
.stat-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; text-align: start;
  padding: 22px 22px 20px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel);
  transition: border-color 0.25s;
}
.stat-tile:hover { border-color: rgba(255, 255, 255, 0.14); }
.stat-tile .stat-lbl {
  color: var(--faint); font-size: 0.76rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere;
}
.stat-tile b {
  display: block; position: relative; padding-bottom: 10px; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 2.3rem; line-height: 1.05; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-tile b::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 2px; background: var(--plane, var(--brand-a)); }
[dir="rtl"] .stat-tile b::after { left: auto; right: 0; }
.stat-tile .stat-ctx { color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
.stat-tile .stat-ctx:has(> .flag-strip) { display: flex; align-self: stretch; justify-content: center; }
.stat-tile .flag-strip { display: inline-flex; flex-wrap: nowrap; justify-content: center; gap: 4px; }
.stat-tile .flag-strip .flag { width: 18px; height: 18px; }
.stat-fact {
  display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 22px 22px 20px; border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--plane, var(--brand-a)) 28%, transparent);
  background: linear-gradient(180deg, var(--plane-soft, var(--brand-tint)), transparent 85%);
}
.stat-fact b { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.3; }
.stat-fact b .flag, .stat-fact b svg { flex: none; width: 22px; height: 22px; }
.stat-fact > span { color: var(--muted); font-size: 0.86rem; line-height: 1.5; }

/* --- provenance ribbon ---------------------------------------------------------- */
.prov {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 18px 10px 16px;
  border: 1px solid var(--line-soft); border-radius: 14px; background: var(--panel); color: var(--muted); font-size: 0.9rem; line-height: 1.45;
}
.prov > svg { flex: none; width: 20px; height: 20px; color: var(--plane, var(--accent)); }
.prov > span { flex: 1; min-width: 0; }
.prov > a { flex: none; margin-inline-start: auto; color: var(--accent); font-weight: 600; font-size: 0.88rem; white-space: nowrap; }
.prov > a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --- facts grid ------------------------------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 22px 0 0; }
.facts > div { min-width: 0; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.facts dt { color: var(--faint); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 3px; }
.facts dd { margin: 0; color: var(--ink); font-size: 0.95rem; line-height: 1.5; }
[dir="rtl"] .facts { text-align: right; }

/* --- quote strip, count legend, legend bands --------------------------------------- */
.quote-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.quote-strip q {
  quotes: none; display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); color: var(--ink-2); font-size: 0.86rem; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.quote-strip .quote-src { flex-basis: 100%; color: var(--faint); font-size: 0.78rem; font-style: italic; margin-top: 2px; }
.count-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.count-legend li { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px 18px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--panel); }
.count-legend b { color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.count-legend span { color: var(--muted); font-size: 0.84rem; line-height: 1.45; }
.legend-bands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; border-radius: 12px; overflow: hidden; }
.legend-bands span {
  display: block; padding: 10px 14px; text-align: center; background: rgba(255, 255, 255, 0.05); color: var(--muted);
  font-size: 0.86rem; font-weight: 600; font-variant-numeric: tabular-nums; border-bottom: 3px solid rgba(255, 255, 255, 0.14);
}
.legend-bands span.warn { background: rgba(255, 197, 85, 0.1); color: #ffd98a; border-bottom-color: var(--warn); }

/* --- trust strip, plan panel, info notice ------------------------------------------- */
/* auto-fit: four fixed tracks left ~140px per cell, so every statement wrapped
   four or five lines deep and hyphen-broke mid-word. */
.trust-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.trust-strip a { overflow-wrap: break-word; hyphens: none; }
.trust-strip a {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 16px 18px; border: 1px solid var(--line-soft); border-radius: 14px;
  background: var(--panel); color: var(--ink-2); font-size: 0.9rem; line-height: 1.4; font-weight: 500; text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease-out), color 0.2s;
}
.trust-strip a::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18); }
.trust-strip a:hover { border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.05); transform: translateY(-2px); color: var(--ink); }
.plan-panel {
  display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--plane, var(--brand-a)) 32%, transparent);
  background: linear-gradient(180deg, var(--plane-soft, var(--brand-tint)), var(--panel) 90%);
}
.plan-panel .plan-panel-kicker { color: var(--plane, var(--accent)); font-family: var(--font-display); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; }
.plan-panel > b { color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.plan-panel p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.plan-panel > a { align-self: flex-start; color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.notice.notice-info { border-color: rgba(59, 130, 246, 0.35); background: rgba(59, 130, 246, 0.08); color: #c6dbff; }

/* --- shipped strip, chips, related reading ------------------------------------------- */
.shipped-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 18px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--panel); }
.shipped-strip .shipped-lbl { color: var(--faint); font-size: 0.74rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; margin-inline-end: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); color: var(--ink-2); font-size: 0.84rem; line-height: 1.4;
}
.chip time { color: var(--faint); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; }
.shipped-strip > a { margin-inline-start: auto; color: var(--accent); font-weight: 600; font-size: 0.88rem; }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.related a {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line-soft); border-radius: 14px;
  background: var(--panel); text-decoration: none; transition: border-color 0.2s, transform 0.25s var(--ease-out);
}
.related a:hover { border-color: rgba(255, 255, 255, 0.18); transform: translateY(-2px); }
.related small { color: var(--plane, var(--accent)); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; }
.related b { color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; line-height: 1.35; }

/* --- crops: a detail window at native scale ------------------------------------------
   --fx/--fy: focal point in percent of the capture; --z: zoom. Both the object-position
   and the transform-origin sit on the focal point, so the crop stays on the detail.   */
.shot-crop { --fx: 50%; --fy: 50%; --z: 1.5; }
.shot-crop .shot-win { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.shot-crop .shot-win img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: var(--fx, 50%) var(--fy, 50%);
  transform: scale(var(--z, 1.5)); transform-origin: var(--fx, 50%) var(--fy, 50%);
}
/* one scan-line sweep when the crop reveals */
.shot-crop .shot-win::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.16) 50%, transparent 100%) 0 -40% / 100% 28% no-repeat;
}
.shot-crop.in .shot-win::before { animation: shot-scan 0.9s var(--ease-out) 0.15s 1 both; }
@keyframes shot-scan { 0% { opacity: 1; background-position: 0 -40%; } 100% { opacity: 0; background-position: 0 140%; } }
/* bleeds: the figure runs to the viewport edge on its side; the section clips it. The
   offset is measured from the container, which is what the figure sits in either
   directly or through a split column (28 px is the container padding). */
.bleed-right, .bleed-left { --bleed: max(0px, calc((100vw - var(--container)) / 2 + 28px)); }
.bleed-right { margin-inline-end: calc(-1 * var(--bleed)); border-radius: 0; border-start-start-radius: var(--radius-lg); border-end-start-radius: var(--radius-lg); }
.bleed-left { margin-inline-start: calc(-1 * var(--bleed)); border-radius: 0; border-start-end-radius: var(--radius-lg); border-end-end-radius: var(--radius-lg); }
.page-section:has(.bleed-left, .bleed-right) { overflow: hidden; }

/* --- captions, pairs, ground wash -------------------------------------------------- */
.shot-cap {
  display: block; margin: 12px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--plane, var(--brand-a));
  color: var(--muted); font-size: 0.86rem; line-height: 1.55; text-align: start;
}
.shot > .shot-cap { margin: 14px 16px 16px; position: relative; z-index: 1; }
.shot-cap-center { position: relative; max-width: 46em; margin: 14px auto 0; padding: 12px 0 0; border-left: 0; text-align: center; }
.shot-cap-center::before { content: ""; position: absolute; top: 0; left: 50%; width: 32px; height: 2px; transform: translateX(-50%); border-radius: 2px; background: var(--plane, var(--brand-a)); }
[dir="rtl"] .shot-cap { border-left: 0; border-right: 2px solid var(--plane, var(--brand-a)); padding: 0 14px 0 0; }
[dir="rtl"] .shot-cap-center { border-right: 0; padding: 12px 0 0; }
.shot-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.shot-ground {
  height: 120px; margin: -36px auto 0; max-width: 1040px; pointer-events: none;
  background: radial-gradient(50% 100% at 50% 0%, color-mix(in srgb, var(--plane, var(--brand-a)) 22%, transparent), transparent 70%);
  filter: blur(8px); opacity: 0.9;
}

/* --- stage: a capture with numbered pins and a legend -------------------------------- */
.stage { position: relative; }
.stage-img { position: relative; }
.stage-img img { display: block; width: 100%; height: auto; }
.pin {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); z-index: 3;
  width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--plane, var(--brand-a)); color: #012; font-family: var(--font-display); font-weight: 700; font-size: 13px; line-height: 1;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--plane, var(--brand-a)) 22%, transparent), 0 6px 16px rgba(0, 0, 0, 0.4);
  text-decoration: none; transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
.pin:hover, .pin:focus-visible { transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 0 0 9px color-mix(in srgb, var(--plane, var(--brand-a)) 30%, transparent), 0 8px 20px rgba(0, 0, 0, 0.45); }
[dir="rtl"] .pin { left: auto; right: var(--x); transform: translate(50%, -50%); }
[dir="rtl"] .pin:hover, [dir="rtl"] .pin:focus-visible { transform: translate(50%, -50%) scale(1.12); }
.pin-notes {
  list-style: none; counter-reset: pin; margin: 18px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 24px;
}
.pin-notes li { counter-increment: pin; position: relative; padding-inline-start: 38px; min-height: 28px; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.pin-notes li::before {
  content: counter(pin); position: absolute; inset-inline-start: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--plane, var(--brand-a)); color: #012; font: 700 12px/26px var(--font-display); text-align: center;
}
.pin-notes li:target { color: var(--ink); }

/* --- product tour: sticky rail plus body --------------------------------------------- */
.tour { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; }
.tour-rail { position: sticky; top: 96px; align-self: start; font-size: 0.88rem; }
.tour-rail h4 { margin: 18px 0 8px; }
.tour-rail h4:first-child { margin-top: 0; }
.tour-rail ul { margin-bottom: 4px; }
.tour-rail li a.active { color: var(--plane, var(--accent)); border-left-color: var(--plane, var(--accent)); }
.tour-body { min-width: 0; }
.tour-body > section { scroll-margin-top: 96px; }
/* RTL keeps the same column order: grid column 1 sits on the right, so the rail stays at the reading start */
[dir="rtl"] .tour-rail li a.active { border-right-color: var(--plane, var(--accent)); }

/* --- persona journey card ------------------------------------------------------------ */
.card-journey { padding: 26px; }
.card-journey .mini-steps { list-style: none; counter-reset: ms; margin: 6px 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.card-journey .mini-steps li { counter-increment: ms; position: relative; padding-inline-start: 30px; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.card-journey .mini-steps li::before {
  content: counter(ms); position: absolute; inset-inline-start: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--plane-soft, var(--brand-tint)); color: var(--plane, var(--accent)); font: 700 11px/20px var(--font-display); text-align: center;
}
.plan-chip {
  display: inline-flex; align-items: center; align-self: flex-start; width: auto; margin-top: auto; padding: 5px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.04);
  color: var(--ink-2); font-size: 0.8rem; font-weight: 600; font-variant-numeric: tabular-nums; transition: border-color 0.2s;
}
.card-journey:hover .plan-chip { border-color: rgba(255, 255, 255, 0.22); }

/* --- capability index: compact row cards ---------------------------------------------- */
.capability-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card-compact { flex-direction: row; align-items: flex-start; gap: 14px; padding: 18px; border-radius: var(--radius); }
.card-compact > * { width: auto; }
.card-compact .card-icon { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.card-compact .card-icon svg { width: 18px; height: 18px; }
.card-compact > div { min-width: 0; flex: 1; }
.card-compact h3 { margin: 2px 0 4px; font-size: 1rem; }
.card-compact p { font-size: 0.86rem; line-height: 1.5; }
.card-compact:hover { transform: none; }
.card-compact:hover .card-icon { transform: none; box-shadow: none; }

/* --- proof card: a crop on top, a UI string, one line ----------------------------------- */
.card-proof { padding: 0; }
.card-proof > .shot {
  width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; border: 0; border-bottom: 1px solid var(--line-soft);
  box-shadow: none; cursor: default;
}
.card-proof > .shot .shot-win { aspect-ratio: 16 / 10; }
.card-proof > q, .card-proof > p, .card-proof > .card-link { width: auto; }
.card-proof > q { quotes: none; display: block; margin: 20px 24px 8px; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.4; }
.card-proof > q::before { content: "\201C"; color: var(--plane, var(--accent)); margin-inline-end: 2px; }
.card-proof > q::after { content: "\201D"; color: var(--plane, var(--accent)); }
.card-proof > p { margin: 0 24px 22px; }
.card-proof > .card-link { margin: 0 24px 22px; padding-top: 0; }

/* --- integration wall, doors ------------------------------------------------------------- */
.integration-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.int-group { display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 8px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--panel); }
.int-group > b { flex-basis: 100%; color: var(--faint); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; }
.int-pill {
  display: inline-flex; align-items: center; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); color: var(--ink-2); font-size: 0.86rem; font-weight: 500;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.int-pill:hover { border-color: color-mix(in srgb, var(--plane, var(--brand-a)) 50%, transparent); background: var(--plane-soft, var(--brand-tint)); color: var(--ink); }
.doors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.door {
  display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px 18px 16px; border: 1px solid var(--line-soft); border-radius: 14px;
  background: var(--panel); text-decoration: none; transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease-out);
}
.door:hover { border-color: color-mix(in srgb, var(--plane, var(--brand-a)) 45%, transparent); background: rgba(255, 255, 255, 0.045); transform: translateY(-3px); }
.door b { color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.door span { color: var(--plane, var(--accent)); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; font-variant-numeric: tabular-nums; }

/* --- comparison skin: verdict, summary, glyph cells, concede, wide, plan matrix ----------- */
.verdict { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); overflow: hidden; margin: 0 0 22px; }
/* In a hero column there is no room for three tracks: stack instead of wrapping
   every line after two words. */
.page-hero-visual .verdict { grid-template-columns: 1fr; }
.page-hero-visual .verdict > div + div { border-inline-start: 0; border-top: 1px solid var(--line-soft); }
.verdict > div { padding: 22px 24px; min-width: 0; }
.verdict > div + div { border-inline-start: 1px solid var(--line-soft); }
.verdict b { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1rem; margin-bottom: 8px; }
.verdict > div:nth-child(2) b { color: var(--accent); }
.verdict p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.cmp-summary { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin: 0 0 16px; color: var(--muted); font-size: 0.9rem; }
.cmp-summary span { display: inline-flex; align-items: baseline; gap: 6px; }
.cmp-summary b { color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.cmp-summary span:first-child b { color: var(--accent); }
.cmp-summary .nc, .cmp-summary .nc b { color: var(--faint); }
.cmp td.y, .cmp td.p, .cmp td.n, .cmp td.nc { position: relative; padding-inline-start: 42px; }
.cmp td.y::before, .cmp td.p::before, .cmp td.n::before, .cmp td.nc::before {
  content: ""; position: absolute; inset-inline-start: 16px; top: 15px; width: 16px; height: 16px; border-radius: 50%;
}
.cmp td.y::before { background: rgba(61, 220, 151, 0.16); box-shadow: inset 0 0 0 1px rgba(61, 220, 151, 0.55); }
.cmp td.y::after { content: ""; position: absolute; inset-inline-start: 20px; top: 19px; width: 7px; height: 4px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg); }
.cmp td.p::before { background: linear-gradient(90deg, var(--warn) 50%, rgba(255, 197, 85, 0.18) 50%); }
.cmp td.n::before { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.cmp td.n::after { content: ""; position: absolute; inset-inline-start: 20px; top: 22px; width: 8px; height: 2px; border-radius: 1px; background: var(--faint); }
.cmp td.nc { color: var(--faint); font-style: italic; }
.cmp td.nc::before { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.cmp td.nc::after { content: "?"; position: absolute; inset-inline-start: 16px; top: 15px; width: 16px; height: 16px; line-height: 16px; text-align: center; font-size: 11px; font-weight: 700; font-style: normal; color: var(--faint); }
.cmp td:nth-child(2) { background: rgba(7, 159, 191, 0.035); }
.cmp tr.concede th { box-shadow: inset 3px 0 0 var(--warn); }
[dir="rtl"] .cmp tr.concede th { box-shadow: inset -3px 0 0 var(--warn); }
.article-layout .table-wrap.wide { grid-column: 1 / -1; }
.plan-matrix th:first-child, .plan-matrix td:first-child { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--panel-solid); min-width: 180px; }
.plan-matrix thead th { background: #0d1c21; z-index: 2; }
.plan-matrix thead th:first-child { z-index: 3; }
.plan-matrix tr.cmp-group th {
  position: sticky; inset-inline-start: 0; background: var(--panel-solid); color: var(--faint);
  font-family: var(--font-body); font-size: 0.74rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 18px;
}
.plan-matrix td:nth-child(2) { background: none; }
.plan-matrix td:nth-child(4) { background: rgba(7, 159, 191, 0.06); }

/* --- keycaps ------------------------------------------------------------------------------ */
.keycaps { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.keycaps > span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.86rem; }
.keycaps kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 7px;
  background: var(--panel-solid); border: 1px solid var(--line); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--ink); font: 600 0.8rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; direction: ltr;
}

/* --- stage flow: the lifecycle stepper ------------------------------------------------------ */
.stage-flow { --node: var(--plane, var(--brand-a)); list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; }
.stage-flow li {
  position: relative; flex: 1 1 0; min-width: 0; padding: 26px 8px 0; text-align: center;
  color: var(--ink-2); font-size: 0.86rem; font-weight: 600; line-height: 1.35;
}
.stage-flow li::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: rgba(255, 255, 255, 0.14); }
.stage-flow li:first-child::before { left: 50%; }
.stage-flow li:last-child::before { right: 50%; }
.stage-flow li::after {
  content: ""; position: absolute; top: 0; left: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translateX(-50%); z-index: 1;
  box-sizing: border-box; background: var(--bg); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
}
.stage-flow li small { display: block; margin-top: 3px; color: var(--faint); font-size: 0.74rem; font-weight: 400; line-height: 1.35; }
.stage-flow li.is-done::before { background: var(--node); }
.stage-flow li.is-done::after {
  box-shadow: none;
  background: var(--node) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2.1 2.1L8 3.2' fill='none' stroke='%23001122' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 9px 9px no-repeat;
}
.stage-flow li.is-hollow::after { background: var(--bg); box-shadow: inset 0 0 0 2px var(--node); }
.stage-flow li.is-dashed::before { background: none; height: 0; border-top: 2px dashed rgba(255, 255, 255, 0.3); }
.stage-flow li.is-dashed::after { background: var(--bg); box-shadow: none; border: 2px dashed rgba(255, 255, 255, 0.45); }
.stage-flow li.is-branch { padding-top: 50px; color: #ffb3b3; }
.stage-flow li.is-branch::before {
  top: 6px; left: 0; right: 50%; height: 26px; background: none;
  border-top: 2px dashed rgba(255, 107, 107, 0.5); border-right: 2px dashed rgba(255, 107, 107, 0.5); border-radius: 0 12px 0 0;
}
.stage-flow li.is-branch::after { top: 26px; background: var(--bad); box-shadow: none; }
.stage-flow li.is-locked::after {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Crect x='2.2' y='4.4' width='5.6' height='4.2' rx='1' fill='%23ffffff' fill-opacity='.75'/%3E%3Cpath d='M3.5 4.4V3.2a1.5 1.5 0 0 1 3 0v1.2' fill='none' stroke='%23ffffff' stroke-opacity='.75' stroke-width='1.1'/%3E%3C/svg%3E") center / 8px 8px no-repeat;
}
.stage-flow li.is-current { color: var(--ink); }
.stage-flow li.is-current::after { background: var(--node); box-shadow: 0 0 0 2px var(--accent), 0 0 0 5px color-mix(in srgb, var(--accent) 30%, transparent); }
[dir="rtl"] .stage-flow li:first-child::before { left: 0; right: 50%; }
[dir="rtl"] .stage-flow li:last-child::before { right: 0; left: 50%; }
[dir="rtl"] .stage-flow li.is-branch::before { left: 50%; right: 0; border-right: 0; border-left: 2px dashed rgba(255, 107, 107, 0.5); border-radius: 12px 0 0 0; }

/* --- lane diagram: two rows of nodes with chevrons ------------------------------------------- */
.lane-diagram { display: flex; flex-direction: column; gap: 14px; }
.lane-diagram .lane { display: flex; align-items: center; gap: 10px; }
.lane-node {
  flex: 1 1 0; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  color: var(--ink-2); font-size: 0.86rem; line-height: 1.45;
}
.lane-node.warn { border-color: rgba(255, 197, 85, 0.55); background: rgba(255, 197, 85, 0.08); color: #ffe0a3; }
.lane-node.block { border-color: rgba(255, 107, 107, 0.6); background: rgba(255, 107, 107, 0.08); color: #ffc2c2; }
.lane-diagram i { flex: none; width: 10px; height: 10px; border-top: 2px solid rgba(255, 255, 255, 0.35); border-right: 2px solid rgba(255, 255, 255, 0.35); transform: rotate(45deg); }
[dir="rtl"] .lane-diagram i { transform: rotate(-135deg); }

/* --- flow lanes: three sources, one hub, one onward row ---------------------------------------- */
.flow-lanes { display: grid; grid-template-columns: minmax(0, 1.25fr) 56px minmax(0, 1fr); gap: 12px 0; align-items: center; }
.flow-lanes::before { content: ""; grid-column: 2; grid-row: 1 / 4; justify-self: center; align-self: stretch; width: 2px; margin: 32px 0; background: rgba(255, 255, 255, 0.18); }
.flow-lanes .lane { grid-column: 1; position: relative; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); min-width: 0; }
.flow-lanes .lane:nth-of-type(1) { grid-row: 1; }
.flow-lanes .lane:nth-of-type(2) { grid-row: 2; }
.flow-lanes .lane:nth-of-type(3) { grid-row: 3; }
.flow-lanes .lane::after { content: ""; position: absolute; top: 50%; inset-inline-end: -28px; width: 28px; height: 2px; background: rgba(255, 255, 255, 0.18); }
.flow-lanes .lane b, .flow-lanes .hub b { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; margin-bottom: 3px; }
.flow-lanes .lane span, .flow-lanes .hub span { display: block; color: var(--muted); font-size: 0.84rem; line-height: 1.45; }
.flow-lanes .hub {
  grid-column: 3; grid-row: 1 / 4; position: relative; align-self: center; padding: 22px 24px; border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--plane, var(--brand-a)) 45%, transparent);
  background: linear-gradient(180deg, var(--plane-soft, var(--brand-tint)), var(--panel));
}
.flow-lanes .hub b { font-size: 1.1rem; }
.flow-lanes .hub::before { content: ""; position: absolute; top: 50%; inset-inline-start: -28px; width: 28px; height: 2px; background: rgba(255, 255, 255, 0.18); }
.flow-lanes .onward { grid-column: 3; grid-row: 4; position: relative; padding: 12px 14px 12px 40px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
[dir="rtl"] .flow-lanes .onward { padding: 12px 40px 12px 14px; }
.flow-lanes .onward::before { content: ""; position: absolute; top: -12px; inset-inline-start: 18px; width: 2px; height: 12px; background: rgba(255, 255, 255, 0.18); }
.flow-lanes .onward::after { content: ""; position: absolute; top: 50%; inset-inline-start: 15px; width: 7px; height: 7px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); }
.flow-lanes .onward span { display: block; }

/* --- ladder: rungs proportional to --v, a dashed floor ------------------------------------------- */
.ladder { --lad: var(--plane, var(--brand-a)); list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ladder li {
  position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 14px; min-height: 40px; color: var(--ink-2); font-size: 0.88rem;
}
.ladder li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; z-index: -1; width: calc(var(--v, 0) * 1%); max-width: 100%; border-radius: 8px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--lad) 55%, transparent), color-mix(in srgb, var(--lad) 22%, transparent));
}
.ladder li b { color: var(--ink); font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; }
.ladder li.floor { justify-content: flex-start; min-height: 0; padding: 2px 14px; color: var(--faint); font-size: 0.74rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.ladder li.floor::before { display: none; }
.ladder li.floor::after { content: ""; flex: 1; border-top: 1px dashed rgba(255, 255, 255, 0.35); }
.ladder li.floor b { order: -1; color: var(--faint); font-size: 0.8rem; }
.ladder li.floor ~ li { opacity: 0.5; }

/* --- feed mock: a typographic change feed ---------------------------------------------------------- */
.feed-mock { list-style: none; margin: 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-solid); font-size: 0.88rem; }
.feed-mock li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; color: var(--ink-2); border-bottom: 1px solid var(--line-soft); line-height: 1.45; }
.feed-mock li:last-child { border-bottom: 0; }
.feed-mock li.day { display: block; padding: 12px 0 6px; color: var(--faint); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 0; }
.feed-mock li.day:first-child { padding-top: 0; }
.feed-mock i { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 2px; background: var(--faint); }
.feed-mock .k-awarded, .feed-mock .k-won { background: var(--good); }
.feed-mock .k-cancelled, .feed-mock .k-lost { background: var(--bad); }

/* --- spokes (SVG from mockups; sizing only) ---------------------------------------------------------- */
.spokes { display: block; width: 100%; max-width: 560px; margin: 0 auto; }
.spokes svg { display: block; width: 100%; height: auto; }

/* --- bilingual demo: two radios, rows written twice --------------------------------------------------- */
.bilingual-demo {
  position: relative; width: 100%; max-width: 560px; min-height: 320px; margin: 0 auto; padding: 16px 18px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-solid); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 12px;
}
.bilingual-demo > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.bl-tabs { display: inline-flex; align-self: flex-start; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.04); }
.bl-tabs label { padding: 5px 16px; border-radius: 8px; color: var(--muted); font-family: var(--font-display); font-size: 0.8rem; font-weight: 650; cursor: pointer; transition: background 0.2s, color 0.2s; }
.bl-tabs label:hover { color: var(--ink); }
#bl-en:checked ~ .bl-tabs label[for="bl-en"], #bl-ar:checked ~ .bl-tabs label[for="bl-ar"] { background: var(--plane-tender); color: #fff; }
#bl-en:focus-visible ~ .bl-tabs label[for="bl-en"], #bl-ar:focus-visible ~ .bl-tabs label[for="bl-ar"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.bl-rows { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.bl-rows .row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 12px; align-items: center; padding: 9px 12px;
  border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(255, 255, 255, 0.025); font-size: 0.84rem; color: var(--ink-2);
}
.bl-rows .row-en { direction: ltr; text-align: left; }
.bl-rows .row-ar { direction: rtl; text-align: right; font-family: "Noto Kufi Arabic", "Inter", sans-serif; }
.bl-rows .bl-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 500; }
.bl-rows .bl-date, .bl-rows .bl-amt { color: var(--faint); font-size: 0.78rem; font-variant-numeric: tabular-nums; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.badge-missing { display: inline-block; padding: 1px 8px; border-radius: 999px; background: rgba(255, 197, 85, 0.14); color: var(--warn); font-size: 0.68rem; font-weight: 650; letter-spacing: 0.04em; white-space: nowrap; }
.bl-rows .badge-missing { grid-column: 1 / -1; justify-self: start; }
#bl-en:checked ~ .bl-rows .row-ar { display: none; }
#bl-ar:checked ~ .bl-rows .row-en { display: none; }
.bl-cap { margin: 0; color: var(--faint); font-size: 0.78rem; font-style: italic; line-height: 1.5; }

/* --- journey: numbered splits with a centre connector ---------------------------------------------- */
.journey { position: relative; }
.journey > .split { position: relative; }
@media (min-width: 1400px) {
  .journey::before { content: ""; position: absolute; left: 50%; top: 48px; bottom: 48px; width: 1px; background: var(--line-soft); pointer-events: none; }
}

/* --- pricing: persona pick (radios inside .persona-pick, notes and plans elsewhere: :has) -------- */
.pricing-pick { display: flex; flex-direction: column; gap: 18px; }
.persona-pick { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.persona-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.persona-pick label {
  display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--muted); font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.persona-pick label:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.persona-pick input:checked + label { background: var(--brand-tint); border-color: rgba(7, 159, 191, 0.5); color: var(--ink); }
.persona-pick input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.pick-note { display: none; margin: 0 auto; max-width: 46em; text-align: center; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.pricing-pick:has(#pick-founder:checked) .pick-note[data-for="founder"],
.pricing-pick:has(#pick-bid:checked) .pick-note[data-for="bid"],
.pricing-pick:has(#pick-adv:checked) .pick-note[data-for="adv"] { display: block; }
.pricing-pick:has(#pick-founder:checked) .plans .plan-pro,
.pricing-pick:has(#pick-bid:checked) .plans .plan-business,
.pricing-pick:has(#pick-adv:checked) .plans .plan-business,
.pricing-pick:has(#pick-adv:checked) .plans .plan-enterprise {
  background: linear-gradient(180deg, var(--plane-soft, var(--brand-tint)), var(--bg-raise) 60%);
  border-color: rgba(77, 218, 255, 0.35);
  box-shadow: inset 0 2px 0 var(--accent), 0 18px 48px rgba(0, 0, 0, 0.35);
}

/* --- plan adds: a chevron strip ------------------------------------------------------------------ */
.plan-adds { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; }
[dir="rtl"] .plan-adds i { transform: scaleX(-1); }
.plan-adds span { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink-2); font-size: 0.88rem; font-weight: 500; }
.plan-adds span:first-child { color: var(--muted); }
.plan-adds i { flex: none; width: 9px; height: 9px; border-top: 2px solid rgba(255, 255, 255, 0.35); border-right: 2px solid rgba(255, 255, 255, 0.35); transform: rotate(45deg); }
[dir="rtl"] .plan-adds i { transform: rotate(-135deg); }

/* --- plan cards ------------------------------------------------------------------------------------ */
.plans { display: grid; grid-template-columns: 1fr 1fr 1.12fr 1fr; gap: 18px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 30px 26px 26px;
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg); background: var(--panel);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.3s;
}
.plan h3 { margin: 0; font-size: 1.3rem; }
.plan .price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 3rem; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.plan .price small { color: var(--faint); font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; letter-spacing: 0; }
.plan .plan-tag { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.plan .checklist { margin: 4px 0 8px; flex: 1; }
.plan .checklist li { font-size: 0.9rem; padding: 5px 0 5px 30px; }
[dir="rtl"] .plan .checklist li { padding: 5px 30px 5px 0; }
.plan .btn { width: 100%; margin-top: auto; }
.plan-note { margin: 0; color: var(--faint); font-size: 0.8rem; line-height: 1.5; }
.plan-badge {
  position: absolute; top: -13px; inset-inline-start: 22px; padding: 4px 12px; border-radius: 999px; background: var(--brand-grad-btn); color: var(--on-brand);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; box-shadow: 0 6px 18px rgba(7, 159, 191, 0.35);
}
.plan.featured {
  background: var(--bg-raise); border-color: rgba(77, 218, 255, 0.35); transform: translateY(-8px);
  box-shadow: inset 0 0 0 1px rgba(77, 218, 255, 0.18), inset 0 2px 0 var(--accent), 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* --- calculator KPIs and presets ------------------------------------------------------------------ */
.calc-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.calc-kpis .calc-out { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.calc-kpis .calc-lbl { color: var(--faint); font-size: 0.76rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; }
.calc-kpis .calc-big { font-size: 3.2rem; line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.calc-kpis .calc-why { color: var(--muted); font-size: 0.84rem; line-height: 1.5; }
.calc-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.calc-presets .btn { padding: 7px 14px; font-size: 0.82rem; border-radius: 10px; }
.calc-presets .btn[aria-pressed="true"] { background: var(--brand-tint); border-color: rgba(7, 159, 191, 0.5); color: var(--ink); }

/* --- two-column FAQ ------------------------------------------------------------------------------- */
.faq-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }

/* --- chart chrome (the engine in site-v3.js renders into these) -------------------------------------- */
.vz-card { background: var(--bg-raise); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 24px 28px; }
.vz-card .vz { background: none; border: 0; padding: 0; }
.vz-cap { color: var(--faint); font-size: 0.78rem; font-style: italic; margin: 12px 0 0; line-height: 1.5; }
.vz-rows { display: grid; grid-template-columns: minmax(120px, 30%) 1fr auto; gap: 6px 14px; align-items: center; }
.vz-rows > * { min-width: 0; }
.vz-rows .lbl { color: var(--muted); font-size: 0.8rem; line-height: 1.35; overflow-wrap: anywhere; }
.vz-rows .val { color: var(--ink); font-weight: 600; font-size: 0.86rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vz-rows svg { display: block; width: 100%; height: auto; }
.vz-rate { color: var(--muted); font-size: 0.78rem; }
[dir="rtl"] .vz-rows .lbl { text-align: right; }
table.vz-grid { width: 100%; border-collapse: separate; border-spacing: 2px; font-size: 0.86rem; margin: 0 -2px; }
.vz-grid th, .vz-grid td { padding: 10px 12px; background: var(--panel); border-radius: 6px; text-align: start; color: var(--muted); vertical-align: middle; }
.vz-grid thead th { background: none; color: var(--faint); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; padding-bottom: 6px; }
.vz-grid tr.hl td, .vz-grid tr.hl th { color: var(--ink); }
.vz-grid td i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 8px; vertical-align: -1px; }
.vz-grid .vz-st-live i, .vz-grid .vz-st-yes i { background: var(--good); }
.vz-grid .vz-st-next i, .vz-grid .vz-st-partial i { background: var(--warn); }
.vz-grid .vz-st-planned i, .vz-grid .vz-st-no i { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); }
.vz-grid .flag { width: 28px; height: 28px; }
/* a status cell is swatch + glyph + word; the glyph needs its own space off the word */
.vz-st { white-space: normal; }
.vz-grid .vz-glyph { margin-inline-end: 6px; }
/* the row header keeps its flag off the market name, and a wrapped name lines up under itself */
.vz-grid tbody th .flag { margin-inline-end: 8px; }
.vz-grid tbody th span { display: inline-block; vertical-align: middle; max-width: calc(100% - 36px); }
/* the two short status columns keep a floor and stay on one line; the prose column takes the remainder */
.vz-grid thead th:nth-child(2), .vz-grid thead th:nth-child(4) { width: 15ch; }
.vz-grid td:nth-child(2), .vz-grid td:nth-child(4),
.vz-grid td:nth-child(2) .vz-st, .vz-grid td:nth-child(4) .vz-st { white-space: nowrap; }
.vz .vz-pending { fill: none; stroke-width: 2; }
.vz .vz-cross { stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; }
.vz-tip .t-row { display: flex; justify-content: space-between; gap: 14px; }
.vz-tip .t-row i.k { display: inline-block; width: 12px; height: 2px; border-radius: 1px; flex: none; align-self: center; }
.vz [data-vzi]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vz-multi { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 18px; }

/* --- Arabic and RTL for the v4 layer ------------------------------------------------------------- */
html[lang="ar"] .hero-home h1 { font-weight: 600; font-size: clamp(2rem, 4.4vw, 3.1rem); }
html[lang="ar"] .stat-tile b { font-size: 2rem; }
html[lang="ar"] .btn { font-weight: 600; }
[dir="rtl"] .grad-text { background-image: linear-gradient(-100deg, #079FBF, #00829C); }

/* --- reduced motion for the v4 layer -------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .shot-crop .shot-win::before, .shot-crop.in .shot-win::before { animation: none; display: none; }
  :is(.card-grid, .capability-index, .stat-tiles, .trust-strip) > * { --rd: 0ms; }
  .stat-tile, .trust-strip a, .related a, .door, .plan, .pin, .int-pill, .card-compact, .persona-pick label, .bl-tabs label, .plan-chip { transition: none; }
  .trust-strip a:hover, .related a:hover, .door:hover, .pin:hover, [dir="rtl"] .pin:hover { transform: none; }
  [dir="rtl"] .pin:hover { transform: translate(50%, -50%); }
  .pin:hover { transform: translate(-50%, -50%); }
  .page-hero-visual, [dir="rtl"] .page-hero-visual { transform: none; }
}

/* --- responsive: 1080 ------------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .stat-tiles-6, .stat-tiles:has(> :nth-child(6)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-hero-2col .container { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .page-hero-visual, [dir="rtl"] .page-hero-visual { transform: none; }
  .bleed-left, .bleed-right { margin-inline: 0; border-radius: var(--radius-lg); }
  .tour, [dir="rtl"] .tour { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tour-rail, [dir="rtl"] .tour-rail {
    display: flex; order: 0; position: sticky; top: 74px; z-index: 20; gap: 6px; overflow-x: auto; scrollbar-width: none;
    margin: 0 -28px; padding: 8px 28px; background: var(--bg);
  }
  .tour-rail::-webkit-scrollbar { display: none; }
  .tour-rail h4 { display: none; }
  .tour-rail ul, [dir="rtl"] .tour-rail ul { display: contents; border: 0; }
  .tour-rail li a, [dir="rtl"] .tour-rail li a { margin: 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; color: var(--muted); }
  .tour-rail li a.active, [dir="rtl"] .tour-rail li a.active { background: var(--plane-soft, var(--brand-tint)); color: var(--ink); border-color: color-mix(in srgb, var(--plane, var(--brand-a)) 45%, transparent); }
  .capability-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan.featured { transform: none; }
  .doors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .count-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verdict { grid-template-columns: minmax(0, 1fr); }
  .verdict > div + div { border-inline-start: 0; border-top: 1px solid var(--line-soft); }
  .nav-actions .btn-nav-ghost { display: none; }
}

/* --- responsive: 860 -------------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .pin { display: none; }
  .shot-pair { grid-template-columns: minmax(0, 1fr); }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-lanes { grid-template-columns: minmax(0, 1fr); }
  .flow-lanes::before, .flow-lanes .lane::after, .flow-lanes .hub::before { display: none; }
  .flow-lanes .lane, .flow-lanes .lane:nth-of-type(1), .flow-lanes .lane:nth-of-type(2), .flow-lanes .lane:nth-of-type(3), .flow-lanes .hub, .flow-lanes .onward { grid-column: 1; grid-row: auto; }
  .nav-mobile-cta .btn-nav-ghost { display: flex; width: 100%; margin-top: 8px; }
  .faq-2col { grid-template-columns: minmax(0, 1fr); }
  .persona-pick label { height: 40px; padding: 0 14px; font-size: 0.84rem; }
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-matrix th:first-child, .plan-matrix td:first-child { min-width: 150px; }
}

/* --- responsive: 620 -------------------------------------------------------------------------------- */
@media (max-width: 620px) {
  .stat-tiles-6, .stat-tiles:has(> :nth-child(6)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-title { font-size: 1.9rem; }
  .shot-crop .shot-win { aspect-ratio: 16 / 10; }
  .shot-crop .shot-win img { transform: scale(min(var(--z, 1.5), 1.2)); }
  .capability-index, .plans, .count-legend, .calc-kpis, .vz-multi, .facts, .legend-bands, .doors, .integration-wall { grid-template-columns: minmax(0, 1fr); }
  .plans .plan.featured { order: -1; }
  .hero-toggle .showcase-tabs { flex-direction: column; align-items: stretch; }
  .hero-toggle .showcase-tab { width: 100%; }
  .lane-diagram .lane { flex-direction: column; align-items: stretch; }
  .lane-diagram i, [dir="rtl"] .lane-diagram i { transform: rotate(135deg); align-self: center; }
  .prov { flex-wrap: wrap; }
  .prov > a { margin-inline-start: 34px; }
  .plan .price { font-size: 2.6rem; }
  .bilingual-demo { min-height: 0; }
  .quote-strip q { font-size: 0.8rem; }
  .cmp-summary { gap: 8px 16px; }
  /* the lifecycle stepper turns vertical */
  .stage-flow { flex-direction: column; align-items: stretch; }
  .stage-flow li { flex: none; padding: 0 0 18px; padding-inline-start: 32px; text-align: start; }
  .stage-flow li::before, .stage-flow li:first-child::before, [dir="rtl"] .stage-flow li:first-child::before {
    top: 8px; bottom: -8px; left: auto; right: auto; inset-inline-start: 6px; width: 2px; height: auto;
  }
  .stage-flow li.is-dashed::before { width: 0; height: auto; border-top: 0; border-inline-start: 2px dashed rgba(255, 255, 255, 0.3); }
  .stage-flow li:last-child::before, [dir="rtl"] .stage-flow li:last-child::before { display: none; }
  .stage-flow li.is-branch { padding-top: 0; }
  .stage-flow li.is-branch::before, [dir="rtl"] .stage-flow li.is-branch::before { display: none; }
  .stage-flow li::after { top: 2px; left: auto; right: auto; inset-inline-start: 0; transform: none; }
  .stage-flow li.is-branch::after { top: 2px; }
}

/* --- v4 fixes from the smoke render ------------------------------------------------------------- */
/* a plan button is a block so a long label ellipsizes instead of clipping at both ends */
.plan .btn { display: block; width: 100%; margin-top: auto; text-align: center; line-height: 1.45; }
/* a card that holds a status grid scrolls sideways on narrow screens; charts keep their visible overflow */
.vz-card:has(> table.vz-grid) { overflow-x: auto; }
@media (max-width: 620px) {
  .prov { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px 14px; align-items: start; }
  .prov > svg { margin-top: 2px; }
  .prov > a { grid-column: 2; margin-inline-start: 0; justify-self: start; white-space: normal; }
}

/* six-market flag strip: replaces every status grid and coverage sentence */
.flag-strip { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.flag-strip .flag { border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08); }
.flag-strip.lg { gap: 10px; }
.markets-line { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 0.95rem; }

/* Six-up tiles: reserve two label lines so a wrapped label never pushes its
   numeral below its neighbours' (the Saudi ecosystem tile wrapped alone). */
.stat-tiles-6 .stat-lbl, .stat-tiles:has(> :nth-child(6)) .stat-lbl { min-height: 2.3em; display: flex; align-items: flex-end; }

/* ===========================================================================
   Navigation menus (v4): grouped panels, a centered Product panel with icons
   and an Explore card, a language menu. Panels open on hover and on click,
   close on Escape and outside click; the mobile drawer folds each menu.
   =========================================================================== */
.nav { position: relative; }
.has-dropdown { position: relative; }
.has-dropdown.mega { position: static; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 5; min-width: 264px;
  background: var(--bg-pop); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, var(--shadow-pop); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transform-origin: top left;
  transition: opacity 0.18s var(--ease-out), transform 0.22s var(--ease-out), visibility 0s linear 0.22s;
}
/* an invisible bridge over the gap keeps the panel open while the pointer crosses */
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
/* open on hover after a short intent delay (a sweep along the bar opens nothing) or on the
   script-owned .open state; keyboard focus alone never opens a panel */
.has-dropdown:hover > .dropdown, .has-dropdown.open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.has-dropdown:hover > .dropdown { transition-delay: 0.15s; }
.has-dropdown.open > .dropdown { transition-delay: 0s; }
/* the trigger stays lit while its panel is open */
.has-dropdown:hover > .nav-link, .has-dropdown.open > .nav-link { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
[dir="rtl"] .dropdown { left: auto; right: 0; transform-origin: top right; }
.dropdown-cols { min-width: 0; }
.dropdown-mega { left: 8px; right: 8px; max-width: 1120px; margin: 0 auto; padding: 18px 18px 12px; transform-origin: top center; }
[dir="rtl"] .dropdown-mega { left: 8px; right: 8px; }
/* --cols counts tracks (a wide column is two); the Explore card adds one more track.
   The three-group Product shape gets an explicit template: the card sits under the
   first group, so the wide CRM group gets the width its descriptions need. */
.menu-cols { display: grid; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); gap: 12px 22px; }
.menu-col.wide { grid-column: span 2; }
.dropdown-mega .menu-cols.has-feature { grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)) minmax(200px, 0.9fr); }
.dropdown-mega .menu-cols.cols-3 { grid-template-columns: 1fr 1.05fr 2.3fr; grid-template-areas: "a b c"; }
.dropdown-mega .menu-cols.cols-3.has-feature { grid-template-rows: auto 1fr; grid-template-areas: "a b c" "f b c"; }
.dropdown-mega .menu-cols.cols-4 { grid-template-columns: 0.95fr 1.05fr 1fr 1fr; grid-template-areas: "a b c d"; }
.dropdown-mega .menu-cols.cols-4.has-feature { grid-template-rows: auto 1fr; grid-template-areas: "a b c d" "f b c d"; }
.dropdown-mega :is(.cols-3, .cols-4) > .menu-col:nth-child(1) { grid-area: a; }
.dropdown-mega :is(.cols-3, .cols-4) > .menu-col:nth-child(2) { grid-area: b; }
.dropdown-mega :is(.cols-3, .cols-4) > .menu-col:nth-child(3) { grid-area: c; }
.dropdown-mega .cols-4 > .menu-col:nth-child(4) { grid-area: d; }
.dropdown-mega :is(.cols-3, .cols-4) > .menu-feature { grid-area: f; align-self: stretch; }
.menu-col { min-width: 0; }
.menu-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; align-content: start; }
.menu-col.wide ul { grid-template-columns: 1fr 1fr; column-gap: 12px; }
.menu-group {
  display: block; margin: 0 0 6px; padding: 0 10px; color: var(--faint-2); font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.6;
}
/* one pill on the heading when every link in the column is English-only */
.menu-group .lang-pill { margin-inline-start: 8px; letter-spacing: 0.06em; vertical-align: 1px; }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; color: var(--muted); transition: background 0.15s ease, color 0.15s ease; }
.menu-item-2 { align-items: flex-start; padding: 8px 10px; }
.menu-item:hover, .menu-item:focus-visible { background: rgba(255, 255, 255, 0.06); color: var(--ink); }
.menu-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.menu-ico {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.06); color: var(--menu-tint, var(--brand-a));
  transition: background 0.15s ease, border-color 0.15s ease;
}
.menu-item:hover .menu-ico { background: color-mix(in srgb, var(--menu-tint, var(--brand-a)) 16%, transparent); border-color: color-mix(in srgb, var(--menu-tint, var(--brand-a)) 35%, transparent); }
.menu-ico svg { width: 15px; height: 15px; }
.menu-flag .flag { width: 18px; height: 18px; }
.menu-txt { min-width: 0; }
/* label line: the text at the start, an optional pill at the end, so a pill never wraps the title */
.menu-txt b { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: var(--ink); font-weight: 600; font-size: 0.9rem; line-height: 1.3; }
.menu-txt b .lang-pill { flex: none; margin: 0; }
.menu-txt .lang-pill, .menu-group .lang-pill { color: var(--faint-2); }
.menu-item:not(.menu-item-2) .menu-txt b { font-weight: 500; color: var(--muted); }
.menu-item:not(.menu-item-2):hover .menu-txt b { color: var(--ink); }
.menu-txt small { display: block; color: var(--faint-2); font-size: 0.78rem; line-height: 1.42; margin-top: 2px; }
.menu-item:hover .menu-txt small { color: var(--muted); }
.menu-item .lang-pill { margin-inline-start: 6px; }
[data-plane="raise"] { --menu-tint: var(--plane-investor, #8b7ff0); }
[data-plane="bid"] { --menu-tint: var(--plane-tender, #3b82f6); }
[data-plane="crm"] { --menu-tint: var(--plane-crm, var(--brand-a)); }
[data-plane="platform"] { --menu-tint: var(--plane-kernel); }
/* the Explore card */
.menu-feature {
  display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px; align-self: start;
  background: linear-gradient(160deg, rgba(7, 159, 191, 0.16), rgba(7, 159, 191, 0.04) 60%, rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(7, 159, 191, 0.22); color: var(--muted); transition: border-color 0.2s ease, background 0.2s ease;
}
.menu-feature:hover { border-color: rgba(7, 159, 191, 0.45); background: linear-gradient(160deg, rgba(7, 159, 191, 0.22), rgba(7, 159, 191, 0.06) 60%, rgba(255, 255, 255, 0.03)); }
.menu-feature .menu-group { padding: 0; margin: 0 0 4px; color: var(--accent); }
.menu-feature b { color: var(--ink); font-family: var(--font-display); font-size: 1.02rem; font-weight: 650; line-height: 1.25; }
.menu-feature small { font-size: 0.82rem; line-height: 1.45; color: var(--muted); }
.menu-feature-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.menu-feature-stats i { font-style: normal; font-size: 0.72rem; font-weight: 600; color: var(--ink); padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); font-variant-numeric: tabular-nums; }
.menu-feature-cta { margin-top: auto; padding-top: 8px; color: var(--ink); font-size: 0.86rem; font-weight: 600; }
.menu-feature-cta .arrow { display: inline-block; transition: transform 0.2s var(--ease-out); }
.menu-feature:hover .menu-feature-cta .arrow { transform: translateX(3px); }
[dir="rtl"] .menu-feature:hover .menu-feature-cta .arrow { transform: translateX(-3px) scaleX(-1); }
[dir="rtl"] .arrow { display: inline-block; transform: scaleX(-1); }
/* the footer row */
.menu-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; margin: 12px -2px 0; padding: 10px 2px 0; border-top: 1px solid var(--line-soft); }
.menu-foot a { padding: 6px 10px; border-radius: 9px; color: var(--muted); font-size: 0.86rem; font-weight: 500; transition: color 0.15s, background 0.15s; }
.menu-foot a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.menu-foot .menu-all { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; color: var(--accent); font-weight: 600; }
.menu-foot .menu-all:hover { color: var(--ink); background: none; }
/* the Explore card's destination, as a plain footer link wherever the card is hidden */
.menu-foot .menu-foot-feature { display: none; }
.dropdown:not(.dropdown-mega) .menu-foot { margin-top: 8px; padding-top: 8px; }
.dropdown:not(.dropdown-mega) .menu-foot .menu-all { margin-inline-start: 0; }
.dropdown-cols .menu-cols { gap: 8px 14px; }
.dropdown-cols { min-width: 580px; padding: 14px; }

/* --- language menu ------------------------------------------------------------- */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 9px 0 10px;
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line); color: var(--muted);
  border-radius: 10px; cursor: pointer; font: inherit; font-size: 0.82rem; font-weight: 650; letter-spacing: 0.04em;
  transition: color 0.18s, border-color 0.18s, background 0.18s; white-space: nowrap;
}
.lang-btn .globe { opacity: 0.85; }
.lang-btn .caret { opacity: 0.6; transition: transform 0.25s var(--ease-out); }
.lang-btn:hover, .lang:hover .lang-btn, .lang.open .lang-btn { color: var(--ink); border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.07); }
.lang:hover .lang-btn .caret, .lang.open .lang-btn .caret { transform: rotate(180deg); }
.lang:hover .lang-btn .caret { transition-delay: 0.15s; }
.lang.open .lang-btn .caret { transition-delay: 0s; }
.lang-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang-list {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 6; min-width: 172px; margin: 0; padding: 6px; list-style: none;
  background: var(--bg-pop); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, var(--shadow-pop);
  opacity: 0; visibility: hidden; transform: translateY(6px); transform-origin: top right;
  transition: opacity 0.18s var(--ease-out), transform 0.22s var(--ease-out), visibility 0s linear 0.22s;
}
.lang-list::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.lang:hover .lang-list, .lang.open .lang-list { opacity: 1; visibility: visible; transform: none; }
.lang:hover .lang-list { transition-delay: 0.15s; }
.lang.open .lang-list { transition-delay: 0s; }
[dir="rtl"] .lang-list { right: auto; left: 0; transform-origin: top left; }
.lang-list a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-size: 0.9rem; font-weight: 500; text-decoration: none; transition: background 0.15s, color 0.15s; }
.lang-list a:hover, .lang-list a:focus-visible { background: rgba(255, 255, 255, 0.06); color: var(--ink); }
.lang-list a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.lang-list a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.lang-list a .check { color: var(--accent); flex: none; }
.lang-list a[lang="ar"] span { font-family: "Noto Kufi Arabic", "Inter", system-ui, sans-serif; }
.nav-mobile-signin { display: none; }

@media (max-width: 1180px) {
  /* the Explore card folds into the footer row as a plain link */
  .dropdown-mega .menu-cols.has-feature { grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); }
  .dropdown-mega .menu-cols.cols-3, .dropdown-mega .menu-cols.cols-3.has-feature { grid-template-columns: 1fr 1.05fr 2.3fr; grid-template-rows: auto; grid-template-areas: "a b c"; }
  .dropdown-mega .menu-cols.cols-4, .dropdown-mega .menu-cols.cols-4.has-feature { grid-template-columns: 0.95fr 1.05fr 1fr 1fr; grid-template-rows: auto; grid-template-areas: "a b c d"; }
  .menu-feature { display: none; }
  .menu-foot .menu-foot-feature { display: inline-flex; }
  /* two-column panels center under the bar, like the Product panel, so they never run off a narrow window */
  .has-dropdown.cols { position: static; }
  .dropdown-cols, [dir="rtl"] .dropdown-cols { left: 8px; right: 8px; width: 580px; min-width: 0; max-width: calc(100% - 16px); margin: 0 auto; transform-origin: top center; }
}
@media (max-width: 1080px) {
  .menu-txt small { display: none; }
  .menu-item-2 { align-items: center; }
}
@media (max-width: 860px) {
  /* the drawer: every panel folds under its heading */
  .dropdown, .dropdown-mega, .dropdown-cols { position: static; opacity: 1; visibility: visible; transform: none; border: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0 0 14px; margin: 0; min-width: 0; max-width: none; display: none; }
  .dropdown::before { display: none; }
  .has-dropdown.open > .dropdown { display: block; }
  .menu-cols, .dropdown-mega .menu-cols, .dropdown-mega .menu-cols.has-feature, .dropdown-mega .menu-cols:is(.cols-3, .cols-4), .dropdown-mega .menu-cols:is(.cols-3, .cols-4).has-feature { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: none; gap: 10px; }
  .dropdown-mega .menu-cols:is(.cols-3, .cols-4) > .menu-col:nth-child(n), .dropdown-mega .menu-cols:is(.cols-3, .cols-4) > .menu-feature, .menu-col.wide { grid-area: auto; grid-column: auto; }
  .has-dropdown:hover > .nav-link, .has-dropdown.open > .nav-link { background: none; }
  .nav-link.is-active::after, .has-dropdown.is-active > .nav-link::after { display: none; }
  .menu-foot .menu-foot-feature { display: block; }
  .menu-col.wide ul { grid-template-columns: 1fr; }
  .menu-group { padding: 6px 4px 2px; }
  .menu-item { padding: 9px 4px; gap: 12px; border-radius: 8px; }
  .menu-item:hover { background: none; }
  .menu-ico { width: 26px; height: 26px; border-radius: 7px; }
  .menu-ico svg { width: 13px; height: 13px; }
  .menu-txt b, .menu-item:not(.menu-item-2) .menu-txt b { font-size: 0.98rem; font-weight: 500; color: var(--muted); }
  .menu-item:hover .menu-txt b { color: var(--ink); }
  .menu-txt small, .menu-feature { display: none; }
  .menu-foot { margin: 6px 0 0; padding: 8px 0 0; gap: 0; flex-direction: column; align-items: stretch; }
  .menu-foot a { padding: 9px 4px; font-size: 0.98rem; }
  .menu-foot .menu-all { margin-inline-start: 0; }
  .nav-mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .nav-mobile-cta .btn { width: 100%; margin: 0; }
  .nav-mobile-cta .btn-primary { grid-column: 1 / -1; }
  .nav-mobile-cta .nav-mobile-signin { display: flex; }
  .nav-mobile-cta .btn:nth-child(2):last-child { grid-column: 1 / -1; }
  /* a 34px chip with a 44px hit area */
  .lang-btn { height: 34px; padding: 0 8px 0 9px; position: relative; }
  .lang-btn::before { content: ""; position: absolute; inset: -5px; }
  .lang-btn .lang-code { display: none; }
  .lang-btn .caret { display: none; }
  .lang-btn { gap: 0; }
  .lang-list { position: fixed; top: 64px; right: 12px; left: auto; }
  [dir="rtl"] .lang-list { right: auto; left: 12px; }
  body.nav-open .lang-list { top: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  .dropdown, .lang-list, .lang-btn .caret, .menu-feature-cta .arrow, .nav-link svg { transition: none; }
  .nav-menu.open { animation: none; }
}
