/* ==========================================================================
   lisan.org design system — v4 "Graphite" (shared engine, Lisan corporate skin)
   Monochrome black/grey surface in the Linear school: #08090a base, grey
   panels, silver type, light pill buttons. The ONLY color on the page is the
   product marks (per-product --pa/--pb from products.mjs) — the portfolio is
   the identity, the shell stays neutral.
   Fonts: Inter (display + body, tight tracking) + Noto Kufi Arabic (Arabic)
   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: "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: #08090a;
  --bg-raise: #0f1011;
  --panel: rgba(255, 255, 255, 0.028);
  --panel-solid: #16171a;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --ink: #f7f8f8;
  --muted: #9da3ae;
  --faint: #686d76;
  --brand-a: #c9cdd4;
  --brand-b: #f7f8f8;
  --brand-grad: linear-gradient(100deg, #f7f8f8, #c9cdd4);
  --brand-grad-soft: linear-gradient(100deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05));
  --brand-tint: rgba(255, 255, 255, 0.055);
  --accent: #d0d6e0;
  --good: #3ddc97;
  --warn: #ffc555;
  --bad: #ff6b6b;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-pop: 0 24px 80px rgba(0, 0, 0, 0.55);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; interpolate-size: allow-keywords; }
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: #e6e8eb; text-decoration: underline; text-decoration-color: rgba(230, 232, 235, 0.3); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
p a:hover, li a:hover, td a:hover { text-decoration-color: #e6e8eb; }
.nav-menu a, .dropdown a, .footer-col a, .footer-bottom a, .search-results a, .glossary-az a, .lesson-nav a, .toc a { text-decoration: none; }
::selection { background: rgba(255, 255, 255, 0.18); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.024em; margin: 0 0 0.5em; font-weight: 550; text-wrap: balance; font-variation-settings: "opsz" 32; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); font-weight: 550; letter-spacing: -0.033em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.45rem); letter-spacing: -0.028em; }
h3 { font-size: 1.2rem; font-weight: 570; letter-spacing: -0.014em; }
h4 { font-size: 1.02rem; font-weight: 570; }

.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; } }

/* Two-tone headline device (Linear school): the emphasized clause dims to
   silver-grey while the rest of the heading stays white. No shimmer. */
.grad-text {
  background: linear-gradient(180deg, #b4bcc8 12%, #6e737c 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- ambient surface ------------------------------------------------------
   Monochrome: one faint silver bloom at the top horizon, no drifting color.
   The .orb elements stay in the markup but render as still greyscale haze. */
.mesh { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.mesh::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(55% 38% at 50% -6%, rgba(255, 255, 255, 0.07), transparent 68%),
    radial-gradient(40% 30% at 82% 4%, rgba(255, 255, 255, 0.025), transparent 65%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35; }
.orb-a { width: 520px; height: 520px; left: -180px; top: -180px; background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 62%); }
.orb-b { width: 600px; height: 600px; right: -220px; top: -80px; background: radial-gradient(circle, rgba(255, 255, 255, 0.04), transparent 62%); }
.orb-c { display: 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: 58px;
  padding: 0 10px 0 20px;
  background: rgba(10, 11, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  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(10, 11, 12, 0.85);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 16px 48px rgba(0, 0, 0, 0.45);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 640; font-size: 1.16rem; letter-spacing: -0.015em; }

/* Lisan mark hover: the four chevrons drift apart like an exploded drawing,
   pause a breath, and spring back together when the pointer leaves. */
.lisan-mark { overflow: visible; }
.lisan-mark path {
  transform-origin: 120px 120px;
  transition: transform 0.6s var(--ease-spring), opacity 0.3s ease;
}
.brand:hover .lisan-mark .lp1 { transform: translateY(-7px); transition-delay: 0ms; }
.brand:hover .lisan-mark .lp2 { transform: translate(6px, 4px); transition-delay: 45ms; }
.brand:hover .lisan-mark .lp3 { transform: translateY(7px); transition-delay: 90ms; }
.brand:hover .lisan-mark .lp4 { transform: translate(-6px, 4px); transition-delay: 65ms; }
.brand:not(:hover) .lisan-mark path { transition-delay: 0ms; }
.brand span { transition: opacity 0.25s ease; }
.brand:hover span { opacity: 0.85; }
@media (prefers-reduced-motion: reduce) {
  .lisan-mark path { transition: none; }
  .brand:hover .lisan-mark path { transform: none; }
}

.nav-menu { display: flex; align-items: center; justify-content: 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;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-link:hover, .has-dropdown.is-active > .nav-link, a.nav-link.is-active { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.nav-link svg { transition: transform 0.25s var(--ease-out); opacity: 0.6; }
.has-dropdown:hover .nav-link svg, .has-dropdown:focus-within .nav-link svg { transform: rotate(180deg); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 258px;
  background: #121316; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-pop); padding: 8px; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(0.97); transform-origin: top left;
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out), visibility 0.22s;
}
.has-dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown, .has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.dropdown a { display: block; padding: 8px 12px; border-radius: 9px; font-size: 0.92rem; color: var(--muted); transition: color 0.15s, background 0.15s, transform 0.2s var(--ease-out); }
.dropdown a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); transform: translateX(3px); }
.dropdown a b { display: block; color: var(--ink); font-weight: 600; font-size: 0.93rem; }
.dropdown a span { display: block; color: var(--faint); font-size: 0.8rem; line-height: 1.45; margin-top: 1px; }
.dropdown a:hover span { color: var(--muted); }
.dropdown-mega { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 620px; padding: 14px 16px; }
.dropdown-mega a { padding: 9px 12px; }
.dropdown-mega li:last-child { grid-column: 1 / -1; }
.dropdown-mega .dropdown-all { text-align: center; border-top: 1px solid var(--line-soft); margin-top: 8px; padding: 14px 12px 8px; color: var(--accent); font-weight: 600; }
.dropdown-mega .dropdown-all:hover { transform: none; background: none; color: #fff; }

/* grouped dropdown: titled columns + footer link (Solutions) */
.dropdown-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; width: 510px; padding: 14px 16px 8px; }
.dd-col ul { list-style: none; margin: 0; padding: 0; }
.dropdown-group {
  display: block; color: var(--faint); font-family: var(--font-display); font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 12px 8px;
}
.dd-foot { grid-column: 1 / -1; }
.dd-foot .dropdown-all { display: block; text-align: center; border-top: 1px solid var(--line-soft); margin-top: 10px; padding: 12px; color: var(--accent); font-weight: 600; }
.dd-foot .dropdown-all:hover { transform: none; background: none; }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.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); }
.search-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line); color: var(--faint); border-radius: 10px; cursor: pointer;
  font: inherit; transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.search-btn:hover { color: var(--muted); border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.07); }
.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 ---------------------------------------------------------------
   Linear school: light silver pill primary (dark text), quiet grey ghost. */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 999px; padding: 10px 22px; font-weight: 560; font-size: 0.95rem;
  font-family: var(--font-display); letter-spacing: -0.006em;
  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, color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: #e6e8eb; color: #08090a; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 4px 18px rgba(0, 0, 0, 0.3); }
.btn-primary:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 8px 26px rgba(0, 0, 0, 0.35); }
.btn-ghost { background: rgba(255, 255, 255, 0.045); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.085); border-color: rgba(255, 255, 255, 0.16); transform: translateY(-1px); }
.btn-lg { padding: 13px 30px; font-size: 1.02rem; }
.btn-nav { padding: 7px 18px; font-size: 0.88rem; }
.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(--faint); font-family: var(--font-display); font-weight: 560; font-size: 0.8rem; letter-spacing: 0.14em; 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: #e6e8eb; color: #08090a; 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; }
.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: 88px 0; }
.section-title { text-align: center; margin-bottom: 14px; }
.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(--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(158, 165, 176, 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; }
.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(--brand-grad-soft); border: 1px solid rgba(158, 165, 176, 0.25); color: var(--accent);
  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(158, 165, 176, 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; }
.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(158, 165, 176, 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(80, 220, 130, 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(185, 191, 200, 0.14); color: #d0d6e0; }
.mock .tag-safe { background: rgba(255, 197, 85, 0.12); color: var(--warn); }
.mock .tag-opt { background: rgba(255, 255, 255, 0.15); color: #a89dff; }
.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(158, 165, 176, 0.5), rgba(185, 191, 200, 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 --------------------------------------------------------------- */
.cta-band { padding: 48px 0 100px; }
.cta-band-inner {
  text-align: center; border-radius: 26px; padding: 72px 36px; position: relative; overflow: hidden;
  background:
    radial-gradient(70% 110% at 50% -20%, rgba(255, 255, 255, 0.075), transparent 62%),
    var(--bg-raise);
  border: 1px solid var(--line);
}
.cta-band-inner::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}
.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.62rem; }
.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(158, 165, 176, 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 > p:first-child { color: var(--accent); font-weight: 650; font-size: 0.84rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.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: 38px 0 88px; }
.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 ------------------------------------------------------ */
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.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(158, 165, 176, 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(158, 165, 176, 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(158, 165, 176, 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(158, 165, 176, 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; }
.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(158, 165, 176, 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); }

.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.6fr repeat(5, 1fr); gap: 36px; 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); }

/* --- search modal ----------------------------------------------------------------- */
.search-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 20px 20px; }
.search-modal[hidden] { display: none; }
.search-backdrop { position: absolute; inset: 0; background: rgba(4, 3, 8, 0.7); backdrop-filter: blur(6px); animation: fade-in 0.2s ease; }
.search-panel {
  position: relative; width: 100%; max-width: 640px; background: rgba(18, 14, 30, 0.96);
  border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-pop); overflow: hidden;
  backdrop-filter: blur(24px); animation: search-pop 0.28s var(--ease-out);
}
@keyframes search-pop { from { opacity: 0; transform: translateY(-14px) scale(0.98); } }
@keyframes fade-in { from { opacity: 0; } }
.search-input { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); font: inherit; font-size: 1.05rem; padding: 19px 24px; }
.search-input:focus { outline: none; }
.search-results { list-style: none; margin: 0; padding: 8px; max-height: 46vh; overflow-y: auto; }
.search-results li a { display: block; padding: 11px 14px; border-radius: 11px; transition: background 0.12s; }
.search-results li a .sr-section { color: var(--accent); font-size: 0.72rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.09em; display: block; }
.search-results li a .sr-title { font-weight: 600; font-size: 0.97rem; }
.search-results li a .sr-desc { color: var(--faint); font-size: 0.84rem; display: block; }
.search-results li a:hover, .search-results li.sel a { background: rgba(255, 255, 255, 0.06); }
.search-hint { color: var(--faint); font-size: 0.78rem; padding: 10px 24px 14px; margin: 0; border-top: 1px solid var(--line-soft); }
.search-hint kbd { border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; font-size: 0.72rem; margin: 0 1px; }

/* --- reveal animation ----------------------------------------------------------------
   Two drivers, one contract: with html.has-motion (site-motion.js loaded, motion
   allowed) Motion springs own opacity/transform/filter inline; otherwise these
   CSS transitions run. .in is always added so dependent CSS keys keep working. */
.reveal {
  opacity: 0; transform: translateY(26px); filter: blur(7px);
  transition:
    opacity 0.75s var(--ease-out) var(--rd, 0s),
    transform 0.75s var(--ease-out) var(--rd, 0s),
    filter 0.75s var(--ease-out) var(--rd, 0s);
  will-change: opacity, transform, filter;
}
.reveal.in { opacity: 1; transform: none; filter: none; will-change: auto; }
.has-motion .reveal { transition: none; }
.has-motion .reveal.in { opacity: unset; transform: unset; filter: unset; }
/* Motion springs own transform on these; CSS keeps color/border/shadow hovers. */
.has-motion .prod-card:hover, .has-motion .const-item:hover,
.has-motion .post-card:hover, .has-motion .award-item:hover { transform: none; }
.has-motion .btn:active { transform: none; }

/* --- 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; }
  /* mock-kit staggers: show the final frame instead */
  .reveal.in .nx-ext-row, .reveal.in .nx-todo, .reveal.in .nx-flow-node, .reveal.in .nx-flow-arr,
  .reveal.in .nxa-msg, .reveal.in .nxa-row, .reveal.in .nx-srv-row, .reveal.in .nx-exp-row,
  .reveal.in .nx-bcard { animation: 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%; }
  .dropdown-mega { width: 520px; }
}
/* squeeze band between full desktop nav and the burger: drop the quiet links */
@media (max-width: 1060px) and (min-width: 861px) {
  .nav-signin { display: none; }
  .nav-menu { gap: 0; margin-left: 2px; }
  .nav-link { padding: 8px 10px; }
}
@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; }
  .nav-menu {
    display: none; position: fixed; inset: 0; padding: 92px 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; }
  .dropdown { 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 12px 14px; display: none; min-width: 0; }
  .dropdown a span { display: none; }
  .dropdown a b { font-weight: 500; color: var(--muted); }
  .dropdown a:hover b { color: var(--ink); }
  .dropdown-mega { width: auto; grid-template-columns: 1fr; gap: 0; }
  .dropdown-mega .dropdown-all { text-align: left; border-top: 0; margin-top: 0; padding-top: 9px; }
  .dropdown-groups { width: auto; grid-template-columns: 1fr; gap: 0; padding: 0 0 12px 14px; }
  .dropdown-group { padding: 10px 12px 4px 0; }
  .dd-foot .dropdown-all { text-align: left; border-top: 0; margin-top: 0; padding: 9px 12px; }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown.open > .nav-link svg { transform: rotate(180deg); }
  .has-dropdown::after { display: none; }
  .nav-mobile-cta { position: sticky; bottom: 0; display: block; padding: 16px 4px calc(16px + env(safe-area-inset-bottom)); margin-top: auto; background: rgba(7, 5, 12, 0.97); 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; }
}
@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; }
  .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);
  background: #0c0916;
  box-shadow: 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(80, 220, 130, 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: green leads, blue and violet round it out */
.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, rgba(158, 165, 176, 0.55), rgba(255, 255, 255, 0.4) 45%, rgba(255, 255, 255, 0.35) 72%, transparent 92%);
  -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%, rgba(158, 165, 176, 0.22), transparent 62%),
    radial-gradient(52% 58% at 78% 22%, rgba(255, 255, 255, 0.16), transparent 62%),
    radial-gradient(46% 52% at 55% 88%, rgba(255, 255, 255, 0.13), transparent 65%);
  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(158, 165, 176, 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: search-pop 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 --------------------------------------------------
   Categorical palette validated (dataviz six checks) on #0d0a16:
   1 #3b82f6 · 2 #0fa48b · 3 #c77d06 · 4 #e01fb5 · 5 #8b7ff0
   (blue-major; all-pairs CVD + lightness validated on #0d0a16)             */
:root {
  --vz-1: #3b82f6; --vz-2: #0fa48b; --vz-3: #c77d06; --vz-4: #e01fb5; --vz-5: #8b7ff0;
  --vz-rest: rgba(255, 255, 255, 0.13);
  --vz-grid: rgba(255, 255, 255, 0.07);
  --vz-surface: #0d0a16;
}
.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; }

/* --- 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(158, 165, 176, 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-half { grid-column: span 3; }
.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); }

/* linked feature cards: icon + copy + accent "Explore" row, arrow slides on hover */
a.bento-card { color: inherit; text-decoration: none; }
.bento-card .card-icon { margin-bottom: 16px; }
.bento-card h3 { letter-spacing: -0.01em; }
.bento-card p { flex: 1; line-height: 1.62; }
.bento-card .card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  color: var(--accent); font-weight: 600; font-size: 0.88rem;
}
.bento-card .card-link .arr { font-style: normal; transition: transform 0.25s var(--ease-out); }
.bento-card:hover .card-link .arr { transform: translateX(4px); }
.bento-card:hover .card-icon { transform: translateY(-2px) scale(1.06); box-shadow: 0 8px 20px rgba(158, 165, 176, 0.2); }
.bento-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* --- 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(158, 165, 176, 0.07); border-color: rgba(158, 165, 176, 0.35);
  box-shadow: inset 2px 0 0 var(--brand-a), 0 4px 18px rgba(158, 165, 176, 0.1);
}
[dir="rtl"] .showcase-tab.on { box-shadow: inset -2px 0 0 var(--brand-a), 0 4px 18px rgba(158, 165, 176, 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, .showcase-pane .appframe { 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) ---------------------------------------------- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: flow; }
.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; }

/* --- language switcher ----------------------------------------------------------- */
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  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.86rem; font-weight: 600;
  transition: color 0.18s, border-color 0.18s, background 0.18s; text-decoration: none; white-space: nowrap;
}
.lang-btn:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.07); }

/* ===========================================================================
   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", "Inter", 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"] .dropdown { left: auto; right: 0; transform-origin: top right; }
[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"] .dropdown a:hover { transform: translateX(-3px); }
[dir="rtl"] .course-row:hover { transform: translateX(-6px); }
[dir="rtl"] .prose .callout::before { content: "←"; }
[dir="rtl"] .lightbox-close { right: auto; left: 26px; }

/* --- 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; }
.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(158, 165, 176, 0.08); border: 1px solid rgba(158, 165, 176, 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(158, 165, 176, 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(158, 165, 176, 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: #fff; letter-spacing: 0.02em;
  background: var(--brand-grad); box-shadow: 0 4px 14px rgba(158, 165, 176, 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: #b7bdc7; box-shadow: 0 0 6px rgba(185, 191, 200, 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(#9da3ae 0deg, #e6e8eb 126deg, rgba(255, 255, 255, 0.07) 126deg 360deg);
  filter: drop-shadow(0 6px 22px rgba(158, 165, 176, 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(158, 165, 176, 0.22); border-radius: 16px; margin-top: 2px;
  background: linear-gradient(180deg, rgba(158, 165, 176, 0.09), rgba(185, 191, 200, 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: #d0d6e0; }
.phone-badge { position: absolute; top: 20px; inset-inline-end: -12px; z-index: 2;
  font-size: 0.72rem; font-weight: 700; color: #fff; background: var(--brand-grad);
  border-radius: 999px; padding: 6px 14px; box-shadow: 0 8px 24px rgba(158, 165, 176, 0.35);
  transform: rotate(6deg); }
[dir="rtl"] .phone-badge { transform: rotate(-6deg); }

/* ==========================================================================
   v3.2 "Cinema" — scripted product demos (assets/demos.js)
   Synthetic simplified product UI that plays a scripted flow on scroll.
   Layout is forced LTR (like the app itself); demos.js drives the timeline.
   ========================================================================== */
[data-demo] { min-height: 300px; }
.demo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(130% 110% at 50% -8%, #151126 0%, #0c0916 56%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  font-size: 0.78rem; text-align: left; min-height: 300px;
}
.demo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), transparent 24%);
}
.dm-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);
}
.dm-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.13); flex: none; }
.dm-bar i:first-child { background: rgba(255, 90, 90, 0.65); }
.dm-bar i:nth-child(2) { background: rgba(255, 200, 90, 0.65); }
.dm-bar i:nth-child(3) { background: rgba(80, 220, 130, 0.65); }
.dm-bar span { color: var(--faint); font-size: 0.74rem; margin-left: 6px; }
.dm-body { position: relative; padding: 18px; }
.dm-grid2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
.dm-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015) 55%);
  border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 12px 14px; min-width: 0;
}
.dm-ph { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.dm-ph span { color: var(--faint); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; }
.dm-faint { text-transform: none !important; letter-spacing: 0 !important; font-weight: 400 !important; }
.dm-btn {
  background: var(--brand-grad); color: #fff; border: 0; border-radius: 9px; padding: 6px 14px;
  font: inherit; font-size: 0.76rem; font-weight: 650; pointer-events: none;
  box-shadow: 0 4px 14px rgba(158, 165, 176, 0.35); transition: transform 0.15s ease, box-shadow 0.2s;
}
.dm-btn.pressed { transform: scale(0.94); box-shadow: 0 2px 8px rgba(158, 165, 176, 0.5); }
.dm-row {
  display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 9px;
  border: 1px solid transparent; margin-bottom: 3px; background: rgba(255, 255, 255, 0.015);
}
.dm-row b { color: var(--ink); font-weight: 550; font-size: 0.78rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-row u { text-decoration: none; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.76rem; white-space: nowrap; }
.dm-row.hl { border-color: rgba(158, 165, 176, 0.45); background: rgba(158, 165, 176, 0.08); }
.dm-row.hl u { color: var(--ink); font-weight: 650; }
.dm-tag {
  font-style: normal; border-radius: 999px; padding: 1px 9px; font-size: 0.66rem; font-weight: 600;
  white-space: nowrap; flex: none;
}
.t-common { background: rgba(61, 220, 151, 0.12); color: var(--good); }
.t-pref { background: rgba(185, 191, 200, 0.16); color: #d0d6e0; }
.t-safe { background: rgba(255, 197, 85, 0.13); color: var(--warn); }
.t-opt { background: rgba(255, 255, 255, 0.15); color: #a89dff; }
.dm-scan { background: rgba(255, 255, 255, 0.06); color: var(--faint); animation: dm-pulse 1.1s ease-in-out infinite; }
@keyframes dm-pulse { 50% { opacity: 0.45; } }
.dm-tag.pop, .dm-badge.pop { animation: dm-pop 0.45s var(--ease-spring); }
@keyframes dm-pop { 0% { transform: scale(0.6); } 70% { transform: scale(1.12); } }

/* ownership stack strip */
.dm-stackwrap { margin-top: 10px; }
.dm-stacklbl { color: var(--faint); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; }
.dm-stack { display: flex; gap: 2px; height: 12px; border-radius: 999px; overflow: hidden; margin-top: 5px; background: rgba(255, 255, 255, 0.04); }
.dm-stack i { display: block; height: 100%; transition: width 0.2s linear; min-width: 0; }

/* wizard steps */
.dm-step {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--line-soft); margin-bottom: 6px; background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.25s, background 0.25s;
}
.dm-step i {
  font-style: normal; width: 20px; height: 20px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.68rem; font-weight: 700;
  background: rgba(255, 255, 255, 0.06); color: var(--faint);
  transition: background 0.25s, color 0.25s;
}
.dm-step > div { flex: 1; min-width: 0; }
.dm-step b { display: block; color: var(--ink); font-size: 0.76rem; font-weight: 600; }
.dm-step span { display: block; color: var(--faint); font-size: 0.68rem; }
.dm-step u { flex: none; color: var(--good); opacity: 0; transform: scale(0.5); transition: opacity 0.3s, transform 0.35s var(--ease-spring); }
.dm-step.on { border-color: rgba(158, 165, 176, 0.45); background: rgba(158, 165, 176, 0.08); }
.dm-step.on i { background: var(--brand-grad); color: #fff; }
.dm-step.done u { opacity: 1; transform: scale(1); }
.dm-step.done { border-color: rgba(61, 220, 151, 0.25); background: rgba(61, 220, 151, 0.045); }

/* meter (pool) */
.dm-meterrow { display: flex; align-items: center; gap: 10px; margin: 10px 0 6px; }
.dm-meterrow > span { color: var(--faint); font-size: 0.7rem; flex: none; }
.dm-meterrow b { color: var(--ink); font-size: 0.76rem; font-variant-numeric: tabular-nums; flex: none; min-width: 42px; text-align: right; }
.dm-meter { flex: 1; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.dm-meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #9da3ae, #e6e8eb); transition: width 0.2s linear; }

/* chips + toast */
.dm-chip {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-soft);
  border-radius: 999px; padding: 5px 12px; color: var(--faint); font-size: 0.7rem;
  opacity: 0.45; transition: opacity 0.35s, border-color 0.35s, color 0.35s; max-width: 100%;
}
.dm-chip.on { opacity: 1; border-color: rgba(61, 220, 151, 0.35); color: var(--good); }
.dm-toast {
  grid-column: 1 / -1; justify-self: end;
  display: flex; align-items: center; gap: 8px;
  background: #17121f; border: 1px solid rgba(61, 220, 151, 0.35); border-radius: 12px;
  padding: 9px 14px; font-size: 0.76rem; color: var(--ink); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: translateY(10px); transition: opacity 0.35s ease, transform 0.4s var(--ease-spring);
}
.dm-toast i { color: var(--good); display: grid; place-items: center; }
.dm-toast.on { opacity: 1; transform: translateY(0); }

/* fake cursor */
.dm-cursor {
  position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none;
  transform: translate(40px, 40px); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}
.dm-cursor .dm-ripple {
  position: absolute; left: -7px; top: -7px; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75); opacity: 0; transform: scale(0.3);
}
.dm-cursor.click .dm-ripple { animation: dm-ripple 0.38s ease-out; }
@keyframes dm-ripple { 0% { opacity: 0.9; transform: scale(0.3); } 100% { opacity: 0; transform: scale(1.15); } }

/* vesting ring */
.dm-center { display: flex; flex-direction: column; }
.dm-ringwrap { position: relative; margin: 4px auto 10px; width: 132px; height: 132px; }
.dm-ringtxt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dm-ringtxt b { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; color: var(--ink); }
.dm-ringtxt span { color: var(--faint); font-size: 0.62rem; max-width: 90px; line-height: 1.4; }
.dm-steps text { font-family: var(--font-body); }
.dm-cliffdot, .dm-clifflbl { opacity: 0; transition: opacity 0.4s ease; }

/* data room files + extraction */
.dm-file {
  display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 9px;
  border: 1px solid var(--line-soft); margin-bottom: 5px; background: rgba(255, 255, 255, 0.015);
  opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.45s var(--ease-out);
}
.dm-file.in { opacity: 1; transform: none; }
.dm-file i { color: var(--faint); display: grid; place-items: center; flex: none; }
.dm-file b { color: var(--ink); font-weight: 550; font-size: 0.74rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-extract { margin-top: 12px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.dm-field { display: flex; align-items: baseline; gap: 10px; padding: 4px 2px; }
.dm-field span { color: var(--faint); font-size: 0.7rem; min-width: 88px; flex: none; }
.dm-field b { color: var(--ink); font-size: 0.76rem; font-variant-numeric: tabular-nums; min-height: 1.2em; }
.dm-field b:not(:empty)::after { content: ""; display: inline-block; width: 1px; height: 0.9em; background: var(--accent); margin-left: 2px; vertical-align: -1px; animation: dm-caret 0.8s steps(1) infinite; }
@keyframes dm-caret { 50% { opacity: 0; } }
.dm-score { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 8px; }
.dm-score b { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--ink); }
.dm-score b i { font-style: normal; font-size: 1rem; color: var(--faint); font-weight: 600; }
.dm-score span { color: var(--faint); font-size: 0.74rem; }
.dm-scorebar { margin-bottom: 12px; }
.dm-check { display: flex; align-items: center; gap: 9px; padding: 6px 2px; color: var(--faint); font-size: 0.76rem; transition: color 0.3s; }
.dm-check u { width: 17px; height: 17px; border-radius: 6px; flex: none; display: grid; place-items: center; color: transparent; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-soft); transition: background 0.3s, color 0.3s, border-color 0.3s; }
.dm-check.on { color: var(--muted); }
.dm-check.on u { background: rgba(61, 220, 151, 0.15); border-color: rgba(61, 220, 151, 0.4); color: var(--good); }

/* waterfall slider + cascade */
.dm-sliderrow { display: flex; align-items: center; gap: 14px; padding: 4px 4px 16px; }
.dm-sliderrow > span { color: var(--faint); font-size: 0.72rem; flex: none; }
.dm-sliderrow b { color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; flex: none; min-width: 58px; text-align: right; }
.dm-slider { position: relative; flex: 1; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
.dm-slidefill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #9da3ae, #e6e8eb); }
.dm-handle {
  position: absolute; top: 50%; left: calc(60% - 8px); width: 18px; height: 18px; border-radius: 50%;
  transform: translateY(-50%); background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(158, 165, 176, 0.3);
  transition: box-shadow 0.25s;
}
.dm-handle.grab { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 0 7px rgba(158, 165, 176, 0.4); }
.dm-wf { display: flex; gap: 10px; align-items: flex-end; height: 196px; padding: 0 4px; }
.dm-wfslot { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.dm-wfbar { width: min(38px, 100%); border-radius: 5px 5px 3px 3px; }
.dm-wfbar.hl { box-shadow: 0 0 18px rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.34) !important; }
.dm-wfval { color: var(--ink); font-size: 0.72rem; font-weight: 650; font-variant-numeric: tabular-nums; margin-bottom: 5px; }
.dm-wfslot span { color: var(--faint); font-size: 0.64rem; margin-top: 7px; text-align: center; line-height: 1.3; }
.dm-wfnote { margin: 14px 4px 0; }
.dm-wfnote b { color: inherit; font-variant-numeric: tabular-nums; }

/* overview scene */
.dm-ovbody { display: grid; gap: 14px; }
.dm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dm-kpi {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018) 60%);
  border: 1px solid var(--line-soft); border-radius: 13px; padding: 12px 14px; min-width: 0;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.55s ease, transform 0.6s var(--ease-out);
}
.dm-kpi.in { opacity: 1; transform: none; }
.dm-kpi span { display: block; color: var(--faint); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-kpi b { display: block; font-family: var(--font-display); font-size: 1.32rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.15; }
.dm-kpi u { display: block; text-decoration: none; color: var(--faint); font-size: 0.64rem; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-owngrid { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.dm-donutwrap { position: relative; width: 150px; height: 150px; }
.dm-donuttxt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dm-donuttxt span { color: var(--faint); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.dm-donuttxt b { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.dm-donuttxt.dm-rise { opacity: 0; transform: translateY(5px); transition: opacity 0.5s ease, transform 0.55s var(--ease-out); }
.dm-donuttxt.dm-rise.in { opacity: 1; transform: none; }
.dm-hrows { min-width: 0; }
.dm-hrow { padding: 5px 0; opacity: 0; transform: translateY(9px); transition: opacity 0.5s ease, transform 0.55s var(--ease-out); }
.dm-hrow.in { opacity: 1; transform: none; }
.dm-hmeta { display: flex; align-items: center; gap: 9px; min-width: 0; }
.dm-hmeta i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dm-hmeta b { color: var(--ink); font-weight: 550; font-size: 0.78rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-hmeta u { text-decoration: none; color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; font-size: 0.78rem; margin-left: auto; flex: none; }
.dm-hbar { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); margin: 5px 0 3px 17px; overflow: hidden; }
[dir="rtl"] .dm-hbar { margin: 5px 17px 3px 0; }
[dir="rtl"] .dm-bar span { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .dm-hmeta u { margin-left: 0; margin-right: auto; }
.dm-hbar i { display: block; height: 100%; border-radius: 999px; width: 0; }
.t-founder { background: rgba(158, 165, 176, 0.16); color: #d0d6e0; }
.t-vc { background: rgba(255, 255, 255, 0.15); color: #a89dff; }
.t-angel { background: rgba(185, 191, 200, 0.14); color: #62f0d1; }
.t-ent { background: rgba(255, 255, 255, 0.07); color: var(--muted); }
.dm-tl { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-top: 6px; }
.dm-tlline { position: absolute; top: 13px; left: 12.5%; right: 12.5%; height: 2px; background: rgba(255, 255, 255, 0.07); border-radius: 999px; }
.dm-tlline i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #6e737c, #c9cdd4 55%, #f819d3); }
.dm-tlnode { text-align: center; min-width: 0; }
.dm-tlnode i {
  display: block; width: 14px; height: 14px; border-radius: 50%; margin: 0 auto 7px;
  background: rgba(255, 255, 255, 0.08); border: 2px solid rgba(255, 255, 255, 0.14);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s; position: relative; z-index: 1;
}
.dm-tlnode.on i { background: #8a8f98; border-color: rgba(230, 232, 235, 0.55); box-shadow: 0 0 12px rgba(158, 165, 176, 0.4); }
.dm-tlnode.plan.on i { background: rgba(255, 255, 255, 0.22); border-color: rgba(255, 255, 255, 0.3); box-shadow: none; }
.dm-tlnode b { display: block; color: var(--ink); font-size: 0.7rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-tlnode span { display: block; color: var(--faint); font-size: 0.62rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* v3.3 scene family — shared pieces for the per-feature demos */
.dm-grid1 { display: grid; grid-template-columns: 1fr; gap: 12px; }
.dm-badge {
  font-style: normal; border-radius: 6px; padding: 1px 7px; font-size: 0.62rem; font-weight: 700;
  background: rgba(158, 165, 176, 0.16); color: #d0d6e0; white-space: nowrap; flex: none;
}
.dm-badge.amber { background: rgba(255, 170, 22, 0.14); color: #ffc45e; }
.dm-badge.teal { background: rgba(185, 191, 200, 0.14); color: #62f0d1; }
.dm-badge.grey { background: rgba(255, 255, 255, 0.07); color: var(--muted); }
.dm-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  border-top: 1px solid var(--line-soft); margin-top: 8px; padding: 9px 2px 1px;
}
.dm-total span { color: var(--faint); font-size: 0.7rem; }
.dm-total b { color: var(--ink); font-family: var(--font-display); font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; transition: opacity 0.4s ease; }
.dm-diff { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 9px; border: 1px solid var(--line-soft); margin-bottom: 4px; background: rgba(255, 255, 255, 0.015); opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.45s var(--ease-out); }
.dm-diff.in { opacity: 1; transform: none; }
.dm-diff b { color: var(--ink); font-weight: 550; font-size: 0.74rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-diff del { text-decoration: none; color: var(--faint); font-size: 0.72rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dm-diff ins { text-decoration: none; color: #62f0d1; font-size: 0.72rem; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dm-diff .dm-arrow { color: var(--faint); font-size: 0.66rem; flex: none; }
.dm-conf { font-style: normal; border-radius: 999px; padding: 0 7px; font-size: 0.62rem; font-weight: 650; background: rgba(185, 191, 200, 0.13); color: #62f0d1; flex: none; font-variant-numeric: tabular-nums; transition: opacity 0.35s ease; }
.dm-conf.low { background: rgba(255, 170, 22, 0.15); color: #ffc45e; }
.dm-tabbar { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.dm-tab {
  border: 1px solid var(--line-soft); border-radius: 999px; padding: 3px 11px;
  color: var(--faint); font-size: 0.68rem; font-weight: 600; transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.dm-tab.on { color: var(--ink); border-color: rgba(158, 165, 176, 0.5); background: rgba(158, 165, 176, 0.1); }
.dm-flow { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 0 10px; }
.dm-flownode {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-soft);
  border-radius: 11px; padding: 7px 13px; color: var(--faint); font-size: 0.74rem; font-weight: 600;
  background: rgba(255, 255, 255, 0.025);
  transition: color 0.3s, border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.dm-flownode.on {
  color: var(--ink); border-color: rgba(158, 165, 176, 0.5); background: rgba(158, 165, 176, 0.1);
  box-shadow: 0 0 14px rgba(158, 165, 176, 0.18);
}
.dm-flowarrow { position: relative; flex: none; width: 46px; height: 2px; background: rgba(255, 255, 255, 0.1); border-radius: 999px; overflow: hidden; }
.dm-flowarrow i { position: absolute; inset: 0; width: 40%; border-radius: 999px; background: linear-gradient(90deg, transparent, #c9cdd4); transform: translateX(-120%); }
.dm-flowarrow.go i { animation: dm-flow 1s linear infinite; }
@keyframes dm-flow { to { transform: translateX(300%); } }
.dm-mbars { display: flex; align-items: flex-end; gap: 6px; height: 88px; padding: 2px 2px 0; }
.dm-mbars i { flex: 1; border-radius: 4px 4px 2px 2px; min-height: 3px;
  background: linear-gradient(180deg, rgba(230, 232, 235, 0.85), rgba(230, 232, 235, 0.35));
  transition: height 0.3s var(--ease-out), opacity 0.3s, background 0.3s; }
.dm-mbars i:last-child { background: linear-gradient(180deg, #e6e8eb, rgba(230, 232, 235, 0.35)); }
.dm-mbars i.out { opacity: 0.18; background: rgba(255, 255, 255, 0.25); }
.dm-mlbls { display: flex; gap: 4px; padding: 4px 2px 0; }
.dm-mlbls span { flex: 1; text-align: center; color: var(--faint); font-size: 0.56rem; white-space: nowrap; overflow: hidden; }
.dm-sig { display: block; margin: 2px auto 0; }
.dm-sig path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.dm-paper {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 16px;
  color: var(--muted); font-size: 0.76rem; line-height: 1.85;
}
.dm-paper h5 { color: var(--ink); font-size: 0.8rem; font-weight: 650; margin: 0 0 6px; letter-spacing: 0.01em; }
.dm-mchip {
  display: inline-block; border-radius: 6px; padding: 0 6px; margin: 0 1px;
  background: rgba(158, 165, 176, 0.14); color: #d0d6e0; font-size: 0.7rem; font-weight: 600;
  font-variant-numeric: tabular-nums; white-space: nowrap; transition: background 0.3s, color 0.3s;
}
.dm-mchip.set { background: rgba(185, 191, 200, 0.13); color: #62f0d1; }
.dm-gaugelbl { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 2px 0 6px; }
.dm-gaugelbl span { color: var(--faint); font-size: 0.7rem; }
.dm-gaugelbl b { color: var(--ink); font-size: 0.82rem; font-variant-numeric: tabular-nums; font-weight: 650; }
.dm-limit { position: relative; }
.dm-limit::after { content: ""; position: absolute; top: -3px; bottom: -3px; left: 80%; width: 2px; border-radius: 2px; background: rgba(255, 170, 22, 0.7); }
.dm-vrow { display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 9px; margin-bottom: 4px; border: 1px solid transparent; background: rgba(255, 255, 255, 0.015); opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.45s var(--ease-out), border-color 0.3s, background 0.3s; }
.dm-vrow.in { opacity: 1; transform: none; }
.dm-vrow.hl { border-color: rgba(158, 165, 176, 0.45); background: rgba(158, 165, 176, 0.08); }
.dm-vrow b { color: var(--ink); font-weight: 550; font-size: 0.74rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-vrow u { text-decoration: none; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.72rem; white-space: nowrap; }
.dm-vrow em:not(.dm-tag):not(.dm-badge) { font-style: normal; color: var(--faint); font-size: 0.66rem; flex: none; font-variant-numeric: tabular-nums; }
.split-visual [data-demo] { width: 100%; }
/* the wide overview scene, when placed at split half-width, stacks like mobile */
.split-visual .dm-kpis { grid-template-columns: repeat(2, 1fr); }
.split-visual .dm-owngrid { grid-template-columns: 1fr; justify-items: center; }
.split-visual .dm-hrows { width: 100%; }
.split-visual .dm-tl { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
.split-visual .dm-tlline { display: none; }
/* at half width the funding rail makes the overview card too tall; drop it */
.split-visual [data-demo="overview"] .dm-ovbody > .dm-panel:last-of-type { display: none; }
.split-visual .dm-grid2 { grid-template-columns: 1fr; }

/* demo layout helpers */
.demo-stage { max-width: 880px; margin: 0 auto; }
.demo-cap { text-align: center; color: var(--faint); font-size: 0.8rem; margin: 12px auto 0; max-width: 46em; }
.demo-cap a { color: var(--muted); }
@media (max-width: 860px) {
  .dm-grid2 { grid-template-columns: 1fr; }
  .dm-cursor { display: none; }
  .dm-kpis { grid-template-columns: repeat(2, 1fr); }
  .dm-owngrid { grid-template-columns: 1fr; justify-items: center; }
  .dm-hrows { width: 100%; }
  .dm-tl { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .dm-tlline { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dm-cursor, .dm-toast { transition: none; }
  .dm-cursor { display: none; }
  .dm-scan { animation: none; }
  .dm-field b:not(:empty)::after { display: none; }
  .dm-file { opacity: 1; transform: none; transition: none; }
  .dm-hrow, .dm-kpi, .dm-donuttxt.dm-rise { opacity: 1; transform: none; transition: none; }
  .dm-diff, .dm-vrow { opacity: 1; transform: none; transition: none; }
  .dm-flowarrow.go i, .dm-flowarrow i { animation: none; }
}

/* ==========================================================================
   v3.4 microinteractions — small, consistent, blue
   ========================================================================== */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid rgba(158, 165, 176, 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: #dbe0ff; }
/* 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(158, 165, 176, 0.4); background: rgba(158, 165, 176, 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(158, 165, 176, 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-half, .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-half, .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; }
}

/* ======================================================================
   Vinance finance mockups v2 — synthetic app UI (no screenshots needed).
   A framed app window with an optional real shell (sidebar nav, toolbar,
   status strip) holding finance widgets: paper invoices, dark ledger
   statements, animated bank-reconciliation matches, sparkline KPI tiles,
   a chart-of-accounts tree, and activity feeds. Internal layout is LTR.
   ====================================================================== */
.appframe {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(130% 120% at 50% -10%, rgba(158, 165, 176, 0.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
  container-type: inline-size;
  direction: ltr;
  text-align: left;
}
.appframe i { font-style: normal; }
.appframe-bar {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 14px; border-bottom: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.02);
}
.af-app {
  width: 20px; height: 20px; border-radius: 6px; flex: none;
  display: grid; place-items: center; color: #08090a;
  background: var(--brand-grad);
}
.appframe-title { font-size: 0.74rem; color: var(--muted); font-weight: 600; letter-spacing: 0.01em; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-winctl { display: flex; gap: 4px; flex: none; }
.af-winctl i { width: 22px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-size: 0.58rem; font-style: normal; color: var(--faint); background: rgba(255,255,255,0.03); }
.af-winctl i:last-child { color: rgba(255, 143, 143, 0.75); }
.appframe-body { padding: 16px; min-width: 0; }

/* App shell: sidebar + main (activates when appFrame gets a nav) */
.af-shell { display: grid; grid-template-columns: 152px minmax(0, 1fr); }
.af-side {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 8px 10px; border-right: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.18); font-size: 0.72rem;
}
.af-ws { display: flex; align-items: center; gap: 7px; padding: 2px 6px 8px; border-bottom: 1px solid var(--line-soft); }
.af-ws b { font-size: 0.68rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.af-ws-dot {
  width: 18px; height: 18px; border-radius: 6px; flex: none;
  display: grid; place-items: center; font-size: 0.62rem; font-weight: 700; color: #08090a;
  background: var(--brand-grad);
}
.af-nav { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.af-nav span, .af-nav button, .af-side-foot {
  display: flex; align-items: center; gap: 8px; padding: 4.5px 8px;
  border-radius: 8px; color: var(--faint); white-space: nowrap;
}
.af-nav button { border: 0; background: none; font: inherit; text-align: left; cursor: pointer; width: 100%; transition: color 0.18s ease, background 0.18s ease; }
.af-nav button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.af-nav button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.af-nav span svg, .af-nav button svg, .af-side-foot svg { flex: none; opacity: 0.85; }
.af-nav span.on, .af-nav button.on { color: var(--accent); background: rgba(158, 165, 176, 0.12); box-shadow: inset 2px 0 0 var(--brand-a); }
.af-side-foot { border-top: 1px solid var(--line-soft); padding-top: 8px; margin-top: 4px; }
.af-main { min-width: 0; display: flex; flex-direction: column; }
.af-main .appframe-body { flex: 1; }
@container (max-width: 519px) { .af-side { display: none; } .af-shell { grid-template-columns: 1fr; } }

/* Breadcrumb toolbar + actions */
.af-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 16px; border-bottom: 1px solid var(--line-soft); font-size: 0.7rem;
}
.af-crumb { display: flex; align-items: center; gap: 6px; color: var(--faint); min-width: 0; white-space: nowrap; overflow: hidden; }
.af-crumb b { font-weight: 400; opacity: 0.5; }
.af-crumb span:last-child { color: var(--ink); font-weight: 600; }
.af-actions { display: flex; gap: 6px; flex: none; }
.af-act { padding: 3.5px 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.af-act.pri { background: var(--brand-grad); border-color: transparent; color: #08090a; }

/* Interactive shell: pre-rendered panes, demos.js switches them */
.af-pane { display: none; flex: 1; flex-direction: column; min-width: 0; }
.af-pane.on { display: flex; }
.af-pane .appframe-body { flex: 1; }
.af-live .af-pane.on { animation: af-pane-in 0.32s var(--ease-out); }
@keyframes af-pane-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

/* micro-interactions: rows and tiles respond to the pointer */
.af-live .led-kpi, .af-live .mf-row, .af-live .rec-row, .af-live .af-tr:not(.af-th) { transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease; }
.af-live .led-kpi:hover { background: rgba(255, 255, 255, 0.045); border-color: rgba(255, 255, 255, 0.14); transform: translateY(-1px); }
.af-live .mf-row:hover span { color: #fff; }
.af-live .rec-row:hover { background: rgba(255, 255, 255, 0.035); }
.af-live .af-act { cursor: pointer; transition: transform 0.15s var(--ease-out), box-shadow 0.2s ease, border-color 0.18s ease; }
.af-live .af-act:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.22); }
.af-live .af-act.pri:hover { box-shadow: 0 6px 18px rgba(158, 165, 176, 0.35); border-color: transparent; }

/* newest feed item: live pulse */
.mf-row.live i { animation: mf-pulse 2.2s ease-out infinite; }
@keyframes mf-pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.55); } 70% { box-shadow: 0 0 0 7px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }

/* records table (invoice lists etc.) */
.af-table { font-size: 0.74rem; border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden; }
.af-tr { display: grid; grid-template-columns: 1.05fr 1.5fr 0.9fr 0.8fr; gap: 10px; padding: 7px 12px; border-bottom: 1px solid var(--line-soft); align-items: center; }
.af-tr:last-child { border-bottom: none; }
.af-tr span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-tr span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.af-th { background: rgba(255, 255, 255, 0.028); color: var(--faint); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; }
.af-chip { font-style: normal; font-size: 0.62rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.af-chip.paid { color: #b7bdc7; background: rgba(158, 165, 176, 0.13); }
.af-chip.sent { color: #79b3ff; background: rgba(59, 130, 246, 0.13); }
.af-chip.over { color: #ffc555; background: rgba(199, 125, 6, 0.15); }

/* "try me" nudge inside the status strip */
.af-hint { font-style: normal; color: var(--faint); }
.af-hint::before { content: "✦ "; color: var(--accent); }

/* every shell control is a real button */
.af-nav .af-side-foot, button.af-side-foot { border: 0; background: none; font: inherit; text-align: left; cursor: pointer; width: 100%; transition: color 0.18s ease; }
button.af-side-foot:hover { color: var(--ink); }
.af-act { background: none; font: inherit; cursor: pointer; }
.af-act.af-press, .af-nav button.af-press { transform: scale(0.96); }

.af-live .af-window { position: relative; }

/* demo toast (auto-tour + button feedback) */
.af-toast {
  position: absolute; right: 14px; bottom: 44px; z-index: 7;
  display: flex; align-items: center; gap: 8px; max-width: min(320px, 80%);
  background: #231018; border: 1px solid rgba(61, 220, 151, 0.4); border-radius: 12px;
  padding: 9px 14px; font-size: 0.76rem; color: var(--ink);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.35s var(--ease-out);
}
.af-toast i { color: var(--good); display: grid; place-items: center; flex: none; }
.af-toast.on { opacity: 1; transform: translateY(0); }

/* fake cursor for the self-driving tour */
.af-cursor {
  position: absolute; left: 0; top: 0; z-index: 8; pointer-events: none; opacity: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
  transition: opacity 0.4s ease;
}
.af-cursor.on { opacity: 1; }
.af-cursor .af-ripple {
  position: absolute; left: -7px; top: -7px; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75); opacity: 0; transform: scale(0.3);
}
.af-cursor.click .af-ripple { animation: af-ripple 0.38s ease-out; }
@keyframes af-ripple { 0% { opacity: 0.9; transform: scale(0.3); } 100% { opacity: 0; transform: scale(1.15); } }

/* Match-all: suggest row settles into a matched one */
.rec-row.matching { transition: border-color 0.5s ease, background 0.5s ease; border-color: rgba(185, 191, 200, 0.4); background: rgba(185, 191, 200, 0.05); }
.rec-row.just-matched { animation: rec-settle 0.6s var(--ease-out); }
@keyframes rec-settle { 0% { transform: scale(0.985); } 55% { transform: scale(1.008); } 100% { transform: none; } }

/* --- module color identities: each sidebar icon keeps its own hue ---------- */
.af-nav [data-k] svg { opacity: 1; }
.af-nav [data-k="dash"] svg { color: #b7bdc7; }
.af-nav [data-k="meetings"] svg { color: #79b3ff; }
.af-nav [data-k="transcript"] svg { color: #6ee7d8; }
.af-nav [data-k="reports"] svg { color: #b7aaff; }
.af-nav [data-k="actions"] svg { color: #ffd166; }
.af-nav [data-k="templates"] svg { color: #c9b4ff; }
.af-nav [data-k="calendar"] svg { color: #8ad6ff; }
.af-nav [data-k="analytics"] svg { color: #c3f461; }
.af-nav [data-k="integrations"] svg { color: #ffcf6b; }
.af-nav span.on svg, .af-nav button.on svg { color: inherit; }

/* KPI tiles pick up tone accents */
.led-kpi { border-top: 2px solid transparent; }
.led-kpi:nth-child(4n+1) { border-top-color: rgba(185, 191, 200, 0.5); }
.led-kpi:nth-child(4n+2) { border-top-color: rgba(121, 179, 255, 0.5); }
.led-kpi:nth-child(4n+3) { border-top-color: rgba(183, 170, 255, 0.5); }
.led-kpi:nth-child(4n+4) { border-top-color: rgba(255, 209, 102, 0.55); }

/* paper document + dark side rail (payment timeline etc.) */
.doc-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.doc-split .doc-mock { max-width: 560px; }
.doc-rail { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 18px 20px 14px; }
.doc-rail .vz-title { margin-bottom: 6px; }
.doc-rail-note { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 0.72rem; color: var(--faint); line-height: 1.7; }
.doc-rail-note b { color: var(--ink); font-variant-numeric: tabular-nums; }
@container (max-width: 620px) { .doc-split { grid-template-columns: 1fr; } .doc-split .doc-mock { max-width: none; } }

@media (prefers-reduced-motion: reduce) {
  .af-live .af-pane.on { animation: none; }
  .mf-row.live i { animation: none; }
}

/* Status strip (structured caption under the body) */
.af-status {
  padding: 8px 16px; border-top: 1px solid var(--line-soft); font-size: 0.72rem;
  color: var(--muted); background: rgba(0, 0, 0, 0.14);
}
.af-status b { color: var(--accent); font-weight: 600; }

/* Freestanding caption under a mock */
.mock-note { font-size: 0.78rem; color: var(--muted); margin: 10px 2px 0; }
.appframe .mock-note { margin: 12px 2px 0; }

/* Document (invoice / bill) mockup — rendered as paper */
.doc-mock {
  background: linear-gradient(180deg, #fdfdfa, #f2f1ea);
  color: #22312a; border: 1px solid rgba(30, 8, 20, 0.25); border-radius: 12px;
  padding: 18px 22px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 8px 18px rgba(0, 0, 0, 0.32),
    0 28px 68px rgba(0, 0, 0, 0.5),
    0 1.5px 0 rgba(255, 255, 255, 0.09) inset;
}
.doc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid rgba(30, 8, 20, 0.1); }
.doc-brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.doc-brand b { font-family: var(--font-display); font-size: 0.86rem; color: #241740; display: block; line-height: 1.2; }
.doc-brand span { font-size: 0.64rem; color: #7b857e; display: block; }
.doc-logo {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: 0.78rem; color: #fff;
  background: linear-gradient(135deg, #34373d, #1b1c20);
}
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.doc-head h4 { font-size: 0.98rem; margin: 0 0 2px; color: #241740; letter-spacing: 0.01em; }
.doc-num { color: #2a2c31; }
.doc-head .doc-sub { font-size: 0.72rem; color: #66716a; }
.doc-chips { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; flex: none; }
.doc-chips span { font-size: 0.62rem; color: #66716a; background: rgba(30, 8, 20, 0.05); border: 1px solid rgba(30, 8, 20, 0.09); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.doc-status { font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 10px; border-radius: 999px; flex: none; }
.doc-status.paid { color: #2a2c31; background: rgba(158, 165, 176, 0.14); border: 1px solid rgba(158, 165, 176, 0.35); }
.doc-status.sent { color: #1d5fae; background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.3); }
.doc-status.over { color: #9a6a00; background: rgba(199, 125, 6, 0.12); border: 1px solid rgba(199, 125, 6, 0.35); }
.doc-lines { display: flex; flex-direction: column; gap: 7px; }
.doc-line { display: grid; grid-template-columns: 1fr auto; gap: 10px; font-size: 0.8rem; padding: 6px 0; border-bottom: 1px dashed rgba(30, 8, 20, 0.13); }
.doc-line span:last-child { font-variant-numeric: tabular-nums; color: #22312a; }
.doc-line .muted { color: #57625b; }
.doc-total { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 2px solid rgba(30, 8, 20, 0.55); font-weight: 700; color: #241740; }
.doc-total .big { font-size: 1.22rem; font-variant-numeric: tabular-nums; }
.doc-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(30, 8, 20, 0.1); font-size: 0.66rem; color: #7b857e; }

/* Mini financial statement (P&L / balance sheet) — dark ledger */
.stmt { font-size: 0.82rem; }
.stmt-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.stmt-row span:last-child { font-variant-numeric: tabular-nums; }
.stmt-row.sub { color: var(--muted); padding-left: 14px; font-size: 0.78rem; }
.stmt-row.tot { font-weight: 700; border-bottom: none; border-top: 1.5px solid var(--line); margin-top: 4px; }
.stmt-row.tot.good span:last-child { color: #b7bdc7; }

/* Bank reconciliation row (matched / suggested) with flow connector */
.rec-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 12px; margin-bottom: 8px; background: rgba(255,255,255,0.015); }
.rec-row .rec-match { display: flex; align-items: center; justify-content: center; gap: 2px; }
.rec-chip { font-size: 0.7rem; color: var(--ink); min-width: 0; }
.rec-chip .rec-amt { font-variant-numeric: tabular-nums; font-weight: 600; }
.rec-chip .rec-meta { color: var(--faint); font-size: 0.66rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-link { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(185, 191, 200, 0.14); color: #b7bdc7; }
.rec-flow { width: 26px; height: 8px; overflow: visible; }
@container (max-width: 600px) { .rec-flow { width: 12px; } .rec-row { gap: 8px; } }
.rec-flow line { stroke: rgba(185, 191, 200, 0.5); stroke-width: 1.6; stroke-dasharray: 0.12 0.1; }
.rec-row.matched { border-color: rgba(185, 191, 200, 0.28); }
.rec-row.matched .rec-flow line { animation: rec-flow-move 1.6s linear infinite; }
@keyframes rec-flow-move { to { stroke-dashoffset: -0.44; } }
.rec-row.suggest { border-style: dashed; border-color: rgba(255, 197, 85, 0.3); }
.rec-row.suggest .rec-link { background: rgba(255, 197, 85, 0.14); color: var(--warn); }
.rec-row.suggest .rec-flow line { stroke: rgba(255, 197, 85, 0.4); }

/* KPI ledger tiles (dashboard) with sparklines */
.led-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.led-kpi { position: relative; overflow: hidden; background: rgba(255,255,255,0.02); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; }
.led-kpi .k { font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.led-kpi .v { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 3px; font-family: var(--font-display); }
.led-kpi .d { font-size: 0.7rem; margin-top: 2px; }
.led-kpi .d.up { color: #b7bdc7; }
.led-kpi .d.down { color: #ff8f8f; }
.led-spark { position: absolute; right: 10px; bottom: 10px; width: 84px; height: 22px; }
.led-spark .sp-fill { fill: rgba(158, 165, 176, 0.14); }
.led-spark .sp-line { fill: none; stroke: #b7bdc7; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: spark-draw 1.3s var(--ease-out) 0.45s forwards; }
.reveal:not(.in) .led-spark .sp-line { animation-play-state: paused; }
@keyframes spark-draw { to { stroke-dashoffset: 0; } }
@container (max-width: 340px) { .led-spark { display: none; } }

/* Chart of accounts / list tree */
.coa { font-size: 0.8rem; }
.coa-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.coa-row .coa-code { color: var(--faint); font-variant-numeric: tabular-nums; font-size: 0.72rem; width: 44px; }
.coa-row .coa-bal { font-variant-numeric: tabular-nums; color: var(--muted); }
.coa-row.head { color: var(--accent); font-weight: 600; border-bottom-color: var(--line); }
.coa-row.indent .coa-name { padding-left: 16px; color: var(--muted); }

/* Activity feed */
.mini-feed { display: flex; flex-direction: column; }
.mf-row { display: flex; align-items: baseline; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.78rem; }
.mf-row:last-child { border-bottom: none; }
.mf-row i { width: 7px; height: 7px; border-radius: 50%; flex: none; align-self: center; background: var(--faint); }
.mf-row.ok i { background: var(--good); box-shadow: 0 0 8px rgba(61, 220, 151, 0.5); }
.mf-row.warn i { background: var(--warn); }
.mf-row span { color: var(--ink); flex: 1; min-width: 0; }
.mf-row em { font-style: normal; color: var(--faint); font-size: 0.68rem; white-space: nowrap; }

/* Hero dashboard: chart + activity feed side by side */
.hero-grid2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; align-items: stretch; }
.hero-feed { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 18px 20px 10px; }
.hero-feed .vz-title { margin-bottom: 6px; }
@container (max-width: 620px) { .hero-grid2 { grid-template-columns: 1fr; } }

/* Mockup motion respects reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .rec-row.matched .rec-flow line { animation: none; }
  .led-spark .sp-line, .reveal:not(.in) .led-spark .sp-line { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
}
/* RTL pages: frames stay LTR internally (like the app), notes flow with page */
[dir="rtl"] .mock-note { direction: rtl; }

/* ---- Pricing cards ---------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.price-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px; box-shadow: var(--shadow-card); }
.price-card.price-featured { border-color: rgba(158, 165, 176, 0.5); background: linear-gradient(180deg, rgba(158, 165, 176, 0.07), rgba(255,255,255,0.02)); box-shadow: var(--shadow-pop); }
.price-flag { position: absolute; top: -11px; left: 24px; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #08090a; background: var(--brand-grad); padding: 4px 11px; border-radius: 999px; }
.price-card h3 { font-size: 1.3rem; margin: 0 0 8px; }
.price-amount { font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.price-amount span { font-size: 0.9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-blurb { color: var(--muted); font-size: 0.9rem; margin: 8px 0 18px; min-height: 2.6em; }
.btn-block { display: block; text-align: center; width: 100%; }
.price-list { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 10px; }
.price-list li { position: relative; padding-left: 26px; font-size: 0.9rem; color: var(--ink); }
.price-list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 9px; border-left: 2px solid #b7bdc7; border-bottom: 2px solid #b7bdc7; transform: rotate(-45deg); }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* ==========================================================================
   MeetriX meeting mockups: transcript stream, waveform, report paper,
   action items, talk-time bars (src/mockups.mjs)
   ========================================================================== */

/* Diarized transcript stream */
.tr-stream { display: flex; flex-direction: column; gap: 12px; }
.tr-row { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.tr-av {
  width: 26px; height: 26px; border-radius: 50%; flex: none; margin-top: 1px;
  display: grid; place-items: center; font-size: 0.6rem; font-weight: 700; color: #fff;
  background: color-mix(in srgb, var(--sc, #8a8f98) 32%, #16171a);
  border: 1.5px solid color-mix(in srgb, var(--sc, #8a8f98) 65%, transparent);
}
.tr-body { min-width: 0; flex: 1; }
.tr-head { display: flex; align-items: baseline; gap: 8px; font-size: 0.7rem; }
.tr-head b { font-weight: 650; }
.tr-head em { font-style: normal; color: var(--faint); font-size: 0.64rem; font-variant-numeric: tabular-nums; }
.tr-lang { font-style: normal; font-size: 0.56rem; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }
.tr-body p { margin: 2px 0 0; font-size: 0.78rem; line-height: 1.55; color: var(--ink); }
.tr-row.live p { color: var(--muted); }
.tr-caret { display: inline-block; width: 7px; height: 13px; margin-left: 3px; vertical-align: -2px; background: var(--accent); border-radius: 1.5px; animation: tr-blink 1s steps(2) infinite; }
@keyframes tr-blink { 50% { opacity: 0; } }

/* Live waveform strip */
.wave-mock {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px; margin-bottom: 12px;
  border: 1px solid rgba(158, 165, 176, 0.3); border-radius: 999px;
  background: rgba(158, 165, 176, 0.06); font-size: 0.72rem; color: var(--muted);
}
.wave-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #9f7bff; animation: wave-pulse 1.6s ease-out infinite; }
@keyframes wave-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 126, 0.55); } 70% { box-shadow: 0 0 0 7px rgba(255, 90, 126, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 126, 0); } }
.wave-bars { display: flex; align-items: center; gap: 2.5px; height: 18px; flex: none; }
.wave-bars i { width: 2.5px; height: 30%; border-radius: 2px; background: #b7bdc7; animation: wave-bounce 1.1s ease-in-out infinite alternate; animation-delay: var(--wd, 0s); }
@keyframes wave-bounce { from { height: 22%; opacity: 0.55; } to { height: 95%; opacity: 1; } }
.wave-label { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Meeting report paper (light document on the dark site) */
.report-mock {
  background: linear-gradient(180deg, #fdfdfa, #f3f0ee);
  color: #2c2229; border: 1px solid rgba(30, 8, 20, 0.25); border-radius: 12px;
  padding: 18px 22px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 8px 18px rgba(0, 0, 0, 0.32),
    0 28px 68px rgba(0, 0, 0, 0.5),
    0 1.5px 0 rgba(255, 255, 255, 0.09) inset;
}
.rp-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid rgba(30, 8, 20, 0.1); }
.rp-brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.rp-brand b { font-family: var(--font-display); font-size: 0.84rem; color: #241740; display: block; line-height: 1.2; }
.rp-brand span { font-size: 0.6rem; color: #8a7f85; display: block; letter-spacing: 0.08em; }
.rp-logo {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: 0.78rem; color: #fff;
  background: linear-gradient(135deg, #34373d, #1b1c20);
}
.rp-date { font-size: 0.64rem; color: #8a7f85; white-space: nowrap; }
.rp-title { font-size: 0.98rem; margin: 0 0 8px; color: #241740; }
.rp-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.rp-badges i { font-style: normal; font-size: 0.6rem; font-weight: 600; color: #6b5f66; background: rgba(30, 8, 20, 0.05); border: 1px solid rgba(30, 8, 20, 0.1); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.rp-sec { margin-bottom: 11px; }
.rp-sec h5 { margin: 0 0 4px; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; color: #2a2c31; }
.rp-sec p, .rp-sec li { font-size: 0.75rem; line-height: 1.55; color: #453a41; margin: 0; }
.rp-sec ul { margin: 0; padding-left: 17px; display: flex; flex-direction: column; gap: 3px; }
.report-mock[dir="rtl"] .rp-sec ul { padding-left: 0; padding-right: 17px; }
.rp-foot { margin-top: 12px; padding-top: 9px; border-top: 1px solid rgba(30, 8, 20, 0.1); font-size: 0.62rem; color: #8a7f85; }

/* Action-item list */
.ai-list { display: flex; flex-direction: column; gap: 8px; }
.ai-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(255,255,255,0.015); }
.ai-check { width: 19px; height: 19px; border-radius: 6px; flex: none; margin-top: 1px; display: grid; place-items: center; border: 1.5px solid var(--line); color: #08090a; }
.ai-row.done .ai-check { background: linear-gradient(135deg, #3a3d44, #2a2c31); border-color: transparent; color: #fff; }
.ai-row.done .ai-body p { text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.35); color: var(--muted); }
.ai-row.pending { border-style: dashed; opacity: 0.62; }
.ai-body { min-width: 0; flex: 1; }
.ai-body p { margin: 0; font-size: 0.78rem; line-height: 1.45; color: var(--ink); }
.ai-meta { display: flex; gap: 10px; margin-top: 3px; font-size: 0.66rem; }
.ai-meta b { color: #d0d6e0; font-weight: 650; }
.ai-meta em { font-style: normal; color: var(--faint); }

/* Talk-time bars */
.tt-list { display: flex; flex-direction: column; gap: 9px; }
.tt-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 38px; gap: 10px; align-items: center; font-size: 0.72rem; }
.tt-name { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-track { height: 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.tt-track i { display: block; height: 100%; border-radius: 999px; transform-origin: left; animation: tt-grow 0.9s var(--ease-out) both; }
.reveal:not(.in) .tt-track i { animation-play-state: paused; }
@keyframes tt-grow { from { transform: scaleX(0); } }
.tt-pct { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }

/* Platform chips reuse .af-chip tones + two extra */
.af-chip.zoom { color: #79b3ff; background: rgba(59, 130, 246, 0.13); }
.af-chip.meet { color: #6ee7a8; background: rgba(31, 168, 120, 0.15); }
.af-chip.teams { color: #b7aaff; background: rgba(255, 255, 255, 0.15); }
.af-chip.webex { color: #ffc555; background: rgba(199, 125, 6, 0.15); }
.af-chip.ar, .af-chip.en { color: var(--muted); background: rgba(255, 255, 255, 0.06); }

@media (prefers-reduced-motion: reduce) {
  .wave-bars i, .wave-dot, .tr-caret { animation: none; }
  .tt-track i, .reveal:not(.in) .tt-track i { animation: none; }
}

/* Demo extraction flip: freshly captured items are NOT struck through */
.ai-row.just-matched { animation: rec-settle 0.6s var(--ease-out); }
.ai-row.just-matched .ai-body p { text-decoration: none; color: var(--ink); }

/* Click-to-play YouTube embed ([data-yt]): local poster, iframe only on click */
.video-embed {
  position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 980px; margin: 0 auto;
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); background: #000; box-shadow: var(--shadow-pop);
}
.video-embed .video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out), opacity 0.3s ease; }
.video-embed:hover .video-poster { transform: scale(1.025); }
.video-embed::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 70% at 50% 50%, rgba(11, 6, 24, 0), rgba(11, 6, 24, 0.45)); pointer-events: none; transition: opacity 0.3s ease; }
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #3a3d44, #2a2c31); color: #fff;
  box-shadow: 0 10px 40px rgba(158, 165, 176, 0.5), 0 0 0 10px rgba(158, 165, 176, 0.18);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.3s ease;
}
.video-embed:hover .video-play, .video-embed:focus-visible .video-play { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 12px 48px rgba(158, 165, 176, 0.65), 0 0 0 14px rgba(158, 165, 176, 0.22); }
.video-embed:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.video-badge {
  position: absolute; left: 18px; bottom: 16px; display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; color: #fff; background: rgba(10, 2, 7, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 6px 14px; backdrop-filter: blur(6px);
}
[dir="rtl"] .video-badge { left: auto; right: 18px; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed.playing .video-poster, .video-embed.playing .video-play, .video-embed.playing .video-badge { display: none; }
.video-embed.playing { cursor: default; }
.video-embed.playing::after { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .video-embed:hover .video-poster { transform: none; }
}

/* Hero video fills its glow wrapper exactly, so the gradient ring hugs the
   video frame instead of floating wider (the 980px cap + auto margins left
   the ring at full hero-stage width). */
.hero-stage .video-embed { max-width: none; margin: 0; }

/* ============================================================
   TranslateX domain mockups (docPair, segments, glossary, TM,
   screen grab, file rows, language chips) — appended block.
   ============================================================ */

/* chip tones used by the translation mocks */
.af-chip.ok { color: #4ade9d; background: rgba(61, 220, 151, 0.13); }
.af-chip.info { color: #b7bdc7; background: rgba(158, 165, 176, 0.13); }
.af-chip.warn { color: #ffc555; background: rgba(199, 125, 6, 0.16); }

/* ---- side-by-side document pair -------------------------------------- */
.doc-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: stretch; }
.dp-paper {
  background: #fdfdfa; color: #24222b; border-radius: 10px; padding: 14px 15px 16px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.42); font-size: 0.72rem; min-width: 0;
  display: flex; flex-direction: column; gap: 0;
}
.dp-head { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(36, 34, 43, 0.12); padding-bottom: 8px; margin-bottom: 10px; }
.dp-head b { font-weight: 700; font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dp-head span { color: #8a8494; font-size: 0.62rem; white-space: nowrap; }
.dp-lang { margin-left: auto; font-style: normal; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.06em; color: #8a8f98; background: rgba(158, 165, 176, 0.1); padding: 2px 7px; border-radius: 999px; flex: none; }
[dir="rtl"] .dp-lang, .dp-paper[dir="rtl"] .dp-lang { margin-left: 0; margin-right: auto; }
.dp-body { display: flex; flex-direction: column; gap: 7px; }
.dp-line { display: block; height: 7px; border-radius: 4px; background: rgba(36, 34, 43, 0.13); }
.dp-line.dp-headline { height: 11px; background: rgba(36, 34, 43, 0.3); }
.dp-line.dp-bar { height: 26px; border-radius: 6px; background: linear-gradient(100deg, rgba(158, 165, 176, 0.22), rgba(185, 191, 200, 0.3)); }
.dp-line.dp-table { height: 40px; border-radius: 6px; background: repeating-linear-gradient(0deg, rgba(36, 34, 43, 0.1), rgba(36, 34, 43, 0.1) 9px, rgba(36, 34, 43, 0.03) 9px, rgba(36, 34, 43, 0.03) 19px); }
.dp-text { margin: 0; line-height: 1.55; font-size: 0.7rem; color: #35323e; }
.dp-arrow {
  align-self: center; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: var(--brand-grad); box-shadow: 0 8px 26px rgba(158, 165, 176, 0.45);
}
.doc-pair .src { opacity: 0.94; }
.doc-pair .dst { box-shadow: 0 14px 44px rgba(0, 0, 0, 0.42), 0 0 0 2px rgba(158, 165, 176, 0.35); }
@container (max-width: 600px) {
  .doc-pair { grid-template-columns: 1fr; }
  .dp-arrow { transform: rotate(90deg); margin: -4px auto; }
}

/* ---- CAT review editor segment list ----------------------------------- */
.seg-list { display: flex; flex-direction: column; border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; }
.seg-row {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1.15fr); gap: 12px;
  padding: 10px 12px; border-bottom: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.015);
  font-size: 0.74rem; align-items: start;
}
.seg-row:last-child { border-bottom: 0; }
.seg-num { color: var(--faint); font-size: 0.62rem; font-weight: 700; padding-top: 3px; }
.seg-src { margin: 0; color: var(--muted); line-height: 1.55; }
.seg-dst p { margin: 0 0 6px; color: var(--ink); line-height: 1.55; }
.seg-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seg-qa { font-style: normal; font-size: 0.62rem; color: var(--warn); }
.seg-row.live { background: rgba(158, 165, 176, 0.05); }
.seg-row.just-matched { animation: rec-settle 0.6s var(--ease-out); }
@container (max-width: 560px) { .seg-row { grid-template-columns: 20px 1fr; } .seg-dst { grid-column: 2; } }

/* ---- TM match percentage ------------------------------------------------ */
.tm-pct { font-style: normal; font-size: 0.56rem; font-weight: 800; margin-left: 3px; }

/* ---- screen-translation grab ------------------------------------------- */
.grab-mock { display: flex; flex-direction: column; gap: 10px; }
.grab-label { display: flex; align-items: center; gap: 8px; font-size: 0.7rem; font-weight: 650; color: var(--muted); }
.grab-region {
  position: relative; border: 1.5px dashed rgba(185, 191, 200, 0.55); border-radius: 10px;
  background: rgba(255, 255, 255, 0.03); padding: 14px 16px;
  animation: grab-pulse 2.2s ease-in-out infinite;
}
.grab-region p { margin: 0; font-size: 0.8rem; line-height: 1.6; color: var(--ink); }
.grab-corner { position: absolute; width: 10px; height: 10px; border: 2px solid var(--accent); }
.grab-corner.tl { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-radius: 3px 0 0 0; }
.grab-corner.tr { top: -2px; right: -2px; border-left: 0; border-bottom: 0; border-radius: 0 3px 0 0; }
.grab-corner.bl { bottom: -2px; left: -2px; border-right: 0; border-top: 0; border-radius: 0 0 0 3px; }
.grab-corner.br { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-radius: 0 0 3px 0; }
@keyframes grab-pulse { 0%, 100% { border-color: rgba(185, 191, 200, 0.55); } 50% { border-color: rgba(185, 191, 200, 0.9); } }
.grab-out {
  display: flex; gap: 10px; align-items: flex-start; border-radius: 10px; padding: 12px 14px;
  background: linear-gradient(100deg, rgba(158, 165, 176, 0.14), rgba(185, 191, 200, 0.1));
  border: 1px solid rgba(158, 165, 176, 0.3);
}
.grab-out p { margin: 0; font-size: 0.8rem; line-height: 1.6; color: var(--ink); }
.grab-out-k { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: #fff; background: var(--brand-grad); }
@media (prefers-reduced-motion: reduce) { .grab-region { animation: none; } }

/* ---- language chips ------------------------------------------------------ */
.lang-chip {
  display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 0.72rem;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px;
}
.lang-chip b { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.05em; color: var(--accent); }
.lang-chip.on { color: var(--ink); border-color: rgba(158, 165, 176, 0.45); background: rgba(158, 165, 176, 0.1); }

/* ---- translating-file progress rows -------------------------------------- */
.file-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 44px; gap: 11px; align-items: center; padding: 9px 11px; border: 1px solid var(--line-soft); border-radius: 11px; margin-bottom: 8px; background: rgba(255, 255, 255, 0.015); }
.file-kind {
  width: 34px; height: 38px; border-radius: 7px; display: grid; place-items: center;
  font-size: 0.5rem; font-weight: 800; letter-spacing: 0.04em; color: #fff;
  background: linear-gradient(150deg, #34373d, #1b1c20); position: relative;
}
.file-row:nth-child(2n) .file-kind { background: linear-gradient(150deg, #2f9e8f, #1d6e63); }
.file-row:nth-child(3n) .file-kind { background: linear-gradient(150deg, #c0761f, #8f5512); }
.file-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.file-head b { font-size: 0.73rem; font-weight: 650; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.file-head em { font-style: normal; font-size: 0.62rem; color: var(--faint); white-space: nowrap; }
.file-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; margin-top: 6px; }
.file-track i { display: block; height: 100%; border-radius: 999px; background: var(--brand-grad); transition: width 0.6s var(--ease-out); }
.file-pct { font-size: 0.68rem; font-weight: 700; color: var(--accent); text-align: right; }
.file-row.done .file-pct { color: #4ade9d; }
.file-row.done .file-track i { background: #3ddc97; }

/* ==========================================================================
   NoteX mockup kit (nx-*) — note page, slash menu, page tree, extensions,
   AI chat, server picker, Explorer file list, board view. Appended after the
   shared appframe kit; translation-era mocks (dp-*, rp-*, seg-*, grab-*)
   remain above for the shared classes they define but are unused by content.
   ========================================================================== */

/* ---- note page (matches NoteX Dark: #1f1f1f surface, #cccccc ink, the
   app's own system-UI font stack — not the site's Poppins/Inter) ---------- */
.nx-page {
  --nxp-ink: #d6d6d6;
  --nxp-body: #ababab;
  --nxp-faint: #7d7d7d;
  --nxp-line: rgba(255, 255, 255, 0.075);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #1f1f1f;
  border: 1px solid #333333;
  border-radius: 14px;
  padding: 30px 34px 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  text-align: left;
}
.nx-page[dir="rtl"] { text-align: right; }
.nx-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.nx-picon { font-size: 1.8rem; line-height: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }
.nx-title { margin: 0; font-family: inherit; font-size: 1.22rem; font-weight: 650; letter-spacing: -0.012em; color: #e8e8e8; }
.nx-meta { font-size: 0.7rem; color: var(--nxp-faint); display: block; margin-top: 3px; }
.nx-body { display: flex; flex-direction: column; gap: 13px; }
.nx-h2 { margin: 10px 0 0; font-family: inherit; font-size: 0.95rem; font-weight: 650; letter-spacing: -0.008em; color: var(--nxp-ink); }
.nx-h3 { margin: 6px 0 0; font-family: inherit; font-size: 0.8rem; color: var(--nxp-body); }
.nx-p { margin: 0; font-size: 0.82rem; line-height: 1.75; color: var(--nxp-body); }
.nx-p b { color: var(--nxp-ink); }
.nx-p mark { background: rgba(158, 165, 176, 0.25); color: var(--nxp-ink); border-radius: 3px; padding: 0 3px; }
.nx-live { min-height: 1.1em; }
.nx-skel { display: block; height: 9px; border-radius: 4px; background: rgba(255,255,255,0.07); }
.nx-todos { display: flex; flex-direction: column; gap: 10px; }
.nx-todo { display: flex; align-items: center; gap: 11px; font-size: 0.82rem; color: var(--nxp-body); }
.reveal.in .nx-todo { animation: nxh-block-in 0.45s var(--ease-out) both; animation-delay: calc(120ms + var(--i, 0) * 90ms); }
.nx-todo i {
  width: 16px; height: 16px; border-radius: 4.5px; flex: none;
  border: 1.4px solid rgba(255, 255, 255, 0.26);
  display: inline-flex; align-items: center; justify-content: center; color: #1f1f1f;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.nx-todo.done i { background: var(--brand-a); border-color: var(--brand-a); }
.nx-todo.done span { text-decoration: line-through; color: var(--nxp-faint); }
.nx-ul { margin: 0; padding-left: 21px; font-size: 0.82rem; color: var(--nxp-body); display: flex; flex-direction: column; gap: 7px; }
.nx-page[dir="rtl"] .nx-ul { padding-left: 0; padding-right: 21px; }
.nx-callout {
  display: flex; gap: 12px; align-items: flex-start;
  border-radius: 10px; padding: 14px 16px; font-size: 0.8rem;
  border: 1px solid rgba(158, 165, 176, 0.22); background: rgba(158, 165, 176, 0.06);
}
.nx-callout p { margin: 0; line-height: 1.65; color: var(--nxp-body); }
.nx-callout p b { color: var(--nxp-ink); }
.nx-callout.blue { border-color: rgba(96, 165, 250, 0.3); background: rgba(96, 165, 250, 0.08); }
.nx-callout.green { border-color: rgba(61, 220, 151, 0.28); background: rgba(61, 220, 151, 0.07); }
.nx-callout.purple { border-color: rgba(167, 139, 250, 0.3); background: rgba(167, 139, 250, 0.08); }
.nx-callout.red { border-color: rgba(255, 107, 107, 0.3); background: rgba(255, 107, 107, 0.08); }
.nx-co-ic { font-size: 0.95rem; line-height: 1.3; }
.nx-toggle { display: flex; gap: 9px; align-items: flex-start; font-size: 0.82rem; padding: 4px 2px; }
.nx-toggle b { color: var(--nxp-ink); font-weight: 600; }
.nx-toggle p { margin: 4px 0 0; color: var(--nxp-body); line-height: 1.65; }
.nx-tg-arr { color: var(--faint); font-style: normal; transition: transform 0.2s; margin-top: 1px; }
.nx-toggle.open .nx-tg-arr { transform: rotate(90deg); }
.nx-page[dir="rtl"] .nx-tg-arr { transform: scaleX(-1); }
.nx-page[dir="rtl"] .nx-toggle.open .nx-tg-arr { transform: rotate(-90deg); }
.nx-code {
  position: relative; background: #181818; border: 1px solid var(--nxp-line, var(--line-soft));
  border-radius: 10px; padding: 13px 15px 12px; direction: ltr; text-align: left;
}
.nx-code pre {
  margin: 0; font-family: "JetBrains Mono", "Cascadia Code", ui-monospace, Consolas, monospace;
  font-size: 0.72rem; line-height: 1.65; color: #cccccc; white-space: pre; overflow-x: auto;
}
.nx-code .tok-k { color: #b7bdc7; }
.nx-code .tok-s { color: #7dd3a8; }
.nx-code .tok-c { color: #6d6a5e; }
.nx-code .tok-f { color: #93c5fd; }
.nx-code-lang { position: absolute; top: 7px; right: 10px; font-size: 0.56rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
.nx-quote { margin: 0; padding: 3px 0 3px 14px; border-left: 2.5px solid var(--brand-a); font-size: 0.82rem; color: var(--nxp-body); font-style: italic; }
.nx-page[dir="rtl"] .nx-quote { padding: 3px 14px 3px 0; border-left: 0; border-right: 2.5px solid var(--brand-a); }
.nx-table { border: 1px solid var(--nxp-line, var(--line-soft)); border-radius: 9px; overflow: hidden; font-size: 0.76rem; }
.nx-tr { display: grid; grid-template-columns: 1.4fr 1fr 1fr; }
.nx-tr span { padding: 8px 13px; border-bottom: 1px solid var(--nxp-line, var(--line-soft)); color: var(--nxp-body, var(--muted)); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-tr:last-child span { border-bottom: 0; }
.nx-th span { background: rgba(255,255,255,0.035); color: var(--nxp-ink, var(--ink)); font-weight: 600; font-size: 0.7rem; }
.nx-eq {
  text-align: center; font-family: Georgia, "Times New Roman", serif; font-style: italic;
  font-size: 0.98rem; color: var(--nxp-ink, var(--ink)); padding: 13px 10px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--nxp-line, var(--line-soft)); border-radius: 10px;
}
/* rendered Mermaid-style diagram block */
.nx-dg {
  position: relative; background: #181818; border: 1px solid var(--nxp-line, var(--line-soft));
  border-radius: 10px; padding: 12px 10px 6px; direction: ltr;
}
.nx-dg svg { display: block; width: 100%; height: auto; }
.nx-dg text {
  fill: #c4c4c4; font-size: 13px; text-anchor: middle;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.nx-dg .nx-dg-lbl { fill: #8f8779; font-size: 11px; font-style: italic; }
/* draw-in: edges trace, nodes fade up — replayed by hero-demo via .nxh-enter */
.nx-dg-e { stroke-dasharray: 1; stroke-dashoffset: 0; }
.nx-dg-n { opacity: 1; }
.nxh .nxh-enter .nx-dg-e { animation: nx-dg-draw 0.6s ease-out both; }
.nxh .nxh-enter .nx-dg-n { animation: nxh-block-in 0.5s var(--ease-out) both; }
.nxh .nxh-enter .nx-dg-n:nth-of-type(1) { animation-delay: 0.05s; }
.nxh .nxh-enter .nx-dg-n:nth-of-type(2) { animation-delay: 0.4s; }
.nxh .nxh-enter .nx-dg-n:nth-of-type(3) { animation-delay: 0.75s; }
.nxh .nxh-enter .nx-dg-n:nth-of-type(4) { animation-delay: 1.05s; }
.nxh .nxh-enter .nx-dg-e:nth-of-type(1) { animation-delay: 0.3s; }
.nxh .nxh-enter .nx-dg-e:nth-of-type(2) { animation-delay: 0.65s; }
.nxh .nxh-enter .nx-dg-e:nth-of-type(3) { animation-delay: 0.95s; }
@keyframes nx-dg-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.nx-flow { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 8px 4px; direction: ltr; }
.nx-flow-node {
  font-size: 0.66rem; font-weight: 600; color: var(--ink);
  border: 1px solid rgba(158, 165, 176, 0.4); background: rgba(158, 165, 176, 0.08);
  padding: 4px 11px; border-radius: 7px; white-space: nowrap;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.nx-flow-node:hover { background: rgba(158, 165, 176, 0.16); box-shadow: 0 3px 12px rgba(158, 165, 176, 0.12); }
.nx-flow-arr { color: var(--faint); font-size: 0.7rem; }
.reveal.in .nx-flow-node, .reveal.in .nx-flow-arr { animation: nxh-node-in 0.45s var(--ease-out) both; animation-delay: calc(160ms + var(--i, 0) * 110ms); }
.nx-hr { border: 0; border-top: 1px solid var(--line-soft); margin: 4px 0; }

/* ---- slash menu (mirrors the app's #slash-menu: #1f1f1f popover, 32px
   icon tiles, 0.875rem labels, app font) ---------------------------------- */
.nx-slash {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #232323; border: 1px solid #3a3a3a; border-radius: 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.3);
  padding: 8px; max-width: 300px;
  text-align: left; font-size: 0.8rem;
}
.nx-slash[dir="rtl"] { text-align: right; }
.nx-slash-q {
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: 0.74rem; color: var(--accent);
  padding: 6px 10px 9px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); margin-bottom: 6px;
  /* a slash command is always LTR, even in the Arabic UI */
  direction: ltr; text-align: left;
}
.nx-slash[dir="rtl"] .nx-slash-q { text-align: right; }
.nx-slash-row { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 6px; }
.nx-slash-row.on { background: rgba(158, 165, 176, 0.13); }
.nx-slash-row b { display: block; font-size: 0.8rem; color: #e2e2e2; font-weight: 550; line-height: 1.3; }
.nx-slash-row span { display: block; font-size: 0.69rem; color: #8a8a8a; line-height: 1.3; margin-top: 1px; }
.nx-slash-row > div { min-width: 0; flex: 1; }
.nx-slash-row kbd {
  font-size: 0.62rem; color: #ababab; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 4px; padding: 1px 5px;
}
.nx-slash-ic {
  font-size: 0.95rem; width: 32px; height: 32px; flex: none;
  display: inline-grid; place-items: center; line-height: 1;
  color: #d0d0d0; background: #1f1f1f;
  border: 1px solid #3a3a3a; border-radius: 6px;
}
.nx-slash-row.on .nx-slash-ic { color: var(--accent); border-color: rgba(158, 165, 176, 0.4); background: rgba(158, 165, 176, 0.09); }
.nx-slash-ic svg { display: block; width: 17px; height: 17px; }
.nx-bic-txt { font-family: inherit; font-size: 0.72rem; font-weight: 600; letter-spacing: -0.01em; }

/* ---- page tree (notes explorer) ------------------------------------------ */
.nx-tree { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.nx-tree[dir="rtl"] { text-align: right; }
.nx-tree-h { display: block; font-size: 0.58rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--faint); margin: 0 6px 4px; }
.nx-tree-row {
  display: flex; align-items: center; gap: 8px; font-size: 0.74rem; color: var(--muted);
  padding: 4.5px 8px; border-radius: 7px; margin-left: calc(var(--d, 0) * 14px);
}
.nx-tree[dir="rtl"] .nx-tree-row { margin-left: 0; margin-right: calc(var(--d, 0) * 14px); }
.nx-tree-row.on { background: rgba(158, 165, 176, 0.12); color: var(--ink); }
.nx-tree-ic { font-size: 0.82rem; width: 18px; text-align: center; flex: none; }
.nx-tree-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }

/* ---- extensions panel ----------------------------------------------------- */
.nx-ext { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.nx-ext[dir="rtl"] { text-align: right; }
.nx-ext-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--line-soft); border-radius: 11px; background: rgba(255,255,255,0.015);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.3s var(--ease-out);
}
.nx-ext-row:hover { border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.035); transform: translateY(-1.5px); }
.nx-ext-ic {
  width: 34px; height: 34px; flex: none; border-radius: 9px; font-size: 1.05rem;
  display: inline-grid; place-items: center; line-height: 1;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line-soft);
}
.nx-ext-ic svg { display: block; }
/* real brand logo tiles: brand-tinted plate, exact logo color */
.nx-ext-ic.brand { background: var(--tile, rgba(255,255,255,0.05)); color: var(--logo, var(--ink)); border-color: rgba(255, 255, 255, 0.08); }
.nx-ext-ic.block { color: var(--accent); background: rgba(158, 165, 176, 0.09); border-color: rgba(158, 165, 176, 0.22); }
.nx-ext-row:hover .nx-ext-ic { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
/* staggered entrance once the .reveal parent flips in */
.reveal.in .nx-ext-row { animation: nxh-block-in 0.5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
.nx-ext-body { min-width: 0; flex: 1; }
.nx-ext-body b { display: block; font-size: 0.76rem; line-height: 1.3; }
.nx-ext-body em { font-style: normal; font-size: 0.6rem; color: var(--faint); }
.nx-ext-body span { display: block; font-size: 0.65rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- AI chat panel --------------------------------------------------------- */
.nxa {
  display: flex; flex-direction: column; gap: 11px; text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.nxa[dir="rtl"] { text-align: right; }
.reveal.in .nxa-msg, .reveal.in .nxa-row { animation: nxh-block-in 0.5s var(--ease-out) both; animation-delay: calc(140ms + var(--i, 0) * 160ms); }
.nxa-msg { max-width: 90%; }
.nxa-msg p {
  margin: 0; font-size: 0.77rem; line-height: 1.65; padding: 10px 13px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06); background: rgba(255,255,255,0.035); color: #b4b4b4;
}
.nxa-msg.user { align-self: flex-end; }
.nxa-msg.user p { background: rgba(158, 165, 176, 0.1); border-color: rgba(158, 165, 176, 0.22); color: #dcdcdc; border-bottom-right-radius: 4px; }
.nxa-msg.ai p { border-bottom-left-radius: 4px; }
.nxa[dir="rtl"] .nxa-msg.user { align-self: flex-start; }
.nxa-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 3px; }
.nxa-row {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 10px; background: rgba(255,255,255,0.02);
  transition: border-color 0.4s ease, background 0.4s ease;
}
.nxa-row-body { min-width: 0; flex: 1; }
.nxa-row-body b { display: block; font-size: 0.75rem; line-height: 1.4; color: #dcdcdc; }
.nxa-row-body em { font-style: normal; font-size: 0.65rem; color: #8a8a8a; }
.nxa-row .ai-check {
  width: 17px; height: 17px; flex: none; border-radius: 50%;
  border: 1.4px solid rgba(255, 255, 255, 0.22);
  display: inline-flex; align-items: center; justify-content: center; color: #3ddc97;
}
.nxa-row.done { border-color: rgba(61, 220, 151, 0.3); }
.nxa-row.done .ai-check { border-color: rgba(61, 220, 151, 0.6); }
.nxa-row.just-matched { animation: rec-settle 0.6s var(--ease-out); }

/* ---- server / workspace picker --------------------------------------------- */
.nx-srv { display: flex; flex-direction: column; gap: 7px; text-align: left; }
.nx-srv[dir="rtl"] { text-align: right; }
.nx-srv-row {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px;
  border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(255,255,255,0.015);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nx-srv-row:hover { border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.03); }
.reveal.in .nx-srv-row { animation: nxh-block-in 0.5s var(--ease-out) both; }
.reveal.in .nx-srv-row:nth-child(2) { animation-delay: 80ms; }
.reveal.in .nx-srv-row:nth-child(3) { animation-delay: 160ms; }
.nx-srv-row.on { border-color: rgba(158, 165, 176, 0.35); background: rgba(158, 165, 176, 0.05); }
.nx-srv-row > div { flex: 1; min-width: 0; }
.nx-srv-row b { display: block; font-size: 0.74rem; }
.nx-srv-row em { font-style: normal; font-size: 0.62rem; color: var(--faint); font-family: ui-monospace, Consolas, monospace; }
.nx-srv-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: rgba(255,255,255,0.2); }
.nx-srv-dot.live { background: #3ddc97; box-shadow: 0 0 0 3.5px rgba(61, 220, 151, 0.18); }

/* ---- Windows Explorer file list (UltraIcon story) ---------------------------- */
.nx-exp {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #17130b; text-align: left;
}
.nx-exp[dir="rtl"] { text-align: right; }
.nx-exp-bar {
  font-size: 0.62rem; color: var(--faint); padding: 8px 13px;
  background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--line-soft);
}
.nx-exp-row { display: flex; align-items: center; gap: 11px; padding: 7.5px 13px; border-bottom: 1px solid var(--line-soft); transition: background 0.2s ease; }
.nx-exp-row:hover { background: rgba(255, 255, 255, 0.03); }
.nx-exp-row:last-child { border-bottom: 0; }
.reveal.in .nx-exp-row { animation: nxh-node-in 0.42s var(--ease-out) both; }
.reveal.in .nx-exp-row:nth-child(3) { animation-delay: 60ms; }
.reveal.in .nx-exp-row:nth-child(4) { animation-delay: 120ms; }
.reveal.in .nx-exp-row:nth-child(5) { animation-delay: 180ms; }
.reveal.in .nx-exp-row:nth-child(6) { animation-delay: 240ms; }
.nx-exp-ic {
  width: 26px; height: 26px; flex: none; font-size: 0.9rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(158, 165, 176, 0.24), rgba(217, 119, 6, 0.14));
  border: 1px solid rgba(158, 165, 176, 0.3); border-radius: 6.5px;
}
.nx-exp-row b { font-size: 0.72rem; font-weight: 500; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-exp-row em { font-style: normal; font-size: 0.62rem; color: var(--faint); white-space: nowrap; }

/* ---- database board view ------------------------------------------------------ */
.nx-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: left; }
.nx-board[dir="rtl"] { text-align: right; }
.nx-bcol { border: 1px solid var(--line-soft); border-radius: 11px; padding: 9px; background: rgba(255,255,255,0.012); min-width: 0; }
.nx-bcol-h { display: flex; align-items: center; justify-content: space-between; margin: 0 3px 8px; }
.nx-bcol-h b { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.nx-bcol-h span { font-size: 0.62rem; color: var(--faint); }
.nx-bcard {
  border: 1px solid var(--line-soft); border-radius: 9px; padding: 8px 10px;
  background: rgba(255,255,255,0.03); margin-bottom: 7px;
  transition: transform 0.3s var(--ease-out), border-color 0.25s ease, box-shadow 0.3s ease;
}
.nx-bcard:hover { transform: translateY(-2px) rotate(-0.4deg); border-color: rgba(255, 255, 255, 0.15); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); }
.nx-bcard:last-child { margin-bottom: 0; }
.reveal.in .nx-bcard { animation: nxh-block-in 0.5s var(--ease-out) both; }
.reveal.in .nx-bcol:nth-child(2) .nx-bcard { animation-delay: 110ms; }
.reveal.in .nx-bcol:nth-child(3) .nx-bcard { animation-delay: 220ms; }
.nx-bcard b { display: block; font-size: 0.69rem; font-weight: 600; line-height: 1.35; margin-bottom: 5px; }
.nx-bcard > div { display: flex; gap: 4px; flex-wrap: wrap; }
.nx-bchip {
  font-style: normal; font-size: 0.56rem; font-weight: 600; padding: 1.5px 7px; border-radius: 999px;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
}

/* ---- NoteX brand mark in appframe title bars ------------------------------------ */
.nx-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 4.5px; flex: none;
  background: linear-gradient(135deg, #4b4f57, #d97706);
  color: #fff; font-size: 0.6rem; font-weight: 800; font-family: var(--font-display);
}

@media (max-width: 720px) {
  .nx-board { grid-template-columns: 1fr; }
  .nx-tr { grid-template-columns: 1.4fr 1fr; }
  .nx-tr span:nth-child(3) { display: none; }
}

/* ==========================================================================
   nxh — the living hero demo (note page + AI rail, driven by hero-demo.js)
   Server markup is the final frame; the script rewinds and replays it.
   Gradient system inspired by Linear: one giant faint ellipse anchored above
   the card (no blur filters), plus a slow conic border light.
   ========================================================================== */
@property --nxh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.nxh {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 304px; gap: 26px;
  align-items: start; text-align: left;
  max-width: 1010px; margin: 0 auto;
}
.nxh[dir="rtl"] { text-align: right; }
/* the Linear ellipse: huge, faint, anchored above — cheap (no filter) */
.nxh::before {
  content: ""; position: absolute; inset: -22% -12%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 72% 48% at 50% -14%, rgba(158, 165, 176, 0.1), transparent 68%),
    radial-gradient(ellipse 42% 54% at 90% 44%, rgba(255, 255, 255, 0.06), transparent 70%);
}

/* note column: conic border light runs around the page card */
.nxh-note { position: relative; min-width: 0; border-radius: 15px; }
.nxh-note::before {
  content: ""; position: absolute; inset: -1px; border-radius: 16px; padding: 1px;
  pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--nxh-angle) at 50% 50%,
    transparent 0 68%, rgba(158, 165, 176, 0.5) 78%, rgba(255, 233, 184, 0.9) 82%,
    rgba(158, 165, 176, 0.5) 86%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
@supports (animation-timing-function: linear(0, 1)) {
  .nxh-note::before { animation: nxh-spin 9s linear infinite; }
}
@keyframes nxh-spin { to { --nxh-angle: 360deg; } }
.nxh-note .nx-page { box-shadow: var(--shadow-pop), inset 0 1px 0 rgba(255, 255, 255, 0.04); }

/* slash popover floats over the note, opening upward from the typing line
   (kept fully inside the card so it never bleeds into the next section) */
.nxh-slash {
  position: absolute; z-index: 5; width: min(285px, 86%);
  inset-inline-start: 42px; bottom: 40px;
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.55));
}
.nxh-slash[hidden] { display: none; }

/* AI rail — same app surface family as the note */
.nxh-ai {
  position: relative; background: #232323;
  border: 1px solid #333333; border-radius: 14px; padding: 16px;
  box-shadow: var(--shadow-card);
  margin-top: 26px;
}
.nxh-ai::before {
  content: ""; position: absolute; inset: -1px; border-radius: 15px; padding: 1px;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(158, 165, 176, 0.35), transparent 42%, rgba(255, 255, 255, 0.18) 88%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.nxh-ai-head {
  display: flex; align-items: center; gap: 8px; margin: 1px 2px 13px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem; font-weight: 600; color: #b4b4b4;
  letter-spacing: 0.02em;
}
.nxh-ai-spark { color: var(--accent); font-size: 0.8rem; }
.nxh-ai-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.18); margin-inline-start: auto; transition: background 0.3s, box-shadow 0.3s; }
.nxh-ai-dot.live { background: #3ddc97; box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.16); }

/* thinking dots the orchestrator swaps in while "AI is working" */
.nxa-think { display: inline-flex; gap: 4px; padding: 2px 0; }
.nxa-think i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); opacity: 0.4; animation: nxa-think 1.1s ease-in-out infinite; }
.nxa-think i:nth-child(2) { animation-delay: 0.18s; }
.nxa-think i:nth-child(3) { animation-delay: 0.36s; }
@keyframes nxa-think { 0%, 100% { opacity: 0.25; transform: translateY(0); } 45% { opacity: 1; transform: translateY(-2.5px); } }

/* pause/play — WCAG 2.2.2 control for the auto-playing demo */
.nxh-pause {
  position: absolute; z-index: 6; right: 10px; bottom: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 9px; cursor: pointer;
  color: var(--muted); background: rgba(13, 10, 4, 0.72);
  border: 1px solid var(--line); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.25s ease, color 0.2s, border-color 0.2s;
}
.nxh[dir="rtl"] .nxh-pause { right: auto; left: 10px; }
.nxh:hover .nxh-pause, .nxh-pause:focus-visible, .nxh-pause[aria-pressed="true"] { opacity: 1; }
.nxh-pause:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.2); }
.nxh-pause:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nxh-pause .ic-play { display: none; }
.nxh-pause[aria-pressed="true"] .ic-pause { display: none; }
.nxh-pause[aria-pressed="true"] .ic-play { display: block; }

/* demo state helpers (hero-demo.js contract) --------------------------------
   .nxh-hide  = block rewound (collapses, then grows back in)
   .nxh-enter = block re-inserted (rise + settle) */
.nxh .nxh-hide { display: none; }
/* (specificity ≥ the .reveal.in stagger rules so replay animations win) */
.reveal.in .nxh .nxh-enter, .nxh .nxh-enter { animation: nxh-block-in 0.55s var(--ease-spring) both; animation-delay: 0s; }
@keyframes nxh-block-in {
  from { opacity: 0; transform: translateY(9px) scale(0.985); }
  60% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
.nxh .nx-todo.nxh-check i { animation: nxh-pop 0.45s var(--ease-spring); }
@keyframes nxh-pop { 0% { transform: scale(0.6); } 55% { transform: scale(1.22); } 100% { transform: scale(1); } }
.reveal.in .nxh .nx-flow-node.nxh-enter, .nxh .nx-flow-node.nxh-enter { animation: nxh-node-in 0.5s var(--ease-spring) both; animation-delay: 0s; }
@keyframes nxh-node-in { from { opacity: 0; transform: translateX(-7px) scale(0.92); } to { opacity: 1; transform: none; } }
.nxh[dir="rtl"] .nx-flow-node.nxh-enter { animation-name: nxh-node-in-rtl; }
@keyframes nxh-node-in-rtl { from { opacity: 0; transform: translateX(7px) scale(0.92); } to { opacity: 1; transform: none; } }

/* typed line caret (hero-demo) */
.nx-slash-caret {
  display: inline-block; width: 7px; height: 12px; margin-inline-start: 2px;
  vertical-align: -1.5px; background: var(--accent); border-radius: 1.5px;
  animation: tr-blink 1s step-end infinite;
}

/* slash menu pop-in when the demo opens it */
.nxh-slash .nx-slash { transform-origin: bottom left; animation: nxh-slash-pop 0.34s var(--ease-spring) both; }
.nxh[dir="rtl"] .nxh-slash .nx-slash { transform-origin: bottom right; }
@keyframes nxh-slash-pop { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }
.nxh-slash .nx-slash-row { animation: nxh-block-in 0.4s var(--ease-out) both; animation-delay: calc(60ms + var(--i, 0) * 45ms); }

@media (max-width: 900px) {
  .nxh { grid-template-columns: 1fr; }
  .nxh-ai { margin-top: 0; }
  .nxh-slash { bottom: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .nxh-note::before { animation: none; }
  .nxh-slash .nx-slash, .nxh-slash .nx-slash-row, .nxh-enter, .nx-flow-node.nxh-enter { animation: none; }
  .nx-slash-caret, .nxa-think i { animation: none; }
  .nxh-pause { display: none; }
}

/* ==========================================================================
   lisan.org corporate additions — product portfolio components
   ========================================================================== */

/* --- product cards: each tile carries its product's own brand ------------ */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .prod-grid { grid-template-columns: 1fr; } }
.prod-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 26px 24px 22px; border-radius: var(--radius-lg);
  background: var(--panel); border: 1px solid var(--line-soft);
  overflow: hidden; transition: transform 0.3s var(--ease-out), border-color 0.3s, background 0.3s;
}
.prod-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--pa), var(--pb));
  opacity: 0.85;
}
.prod-card::after {
  content: ""; position: absolute; inset: -40% -40% auto auto; width: 65%; aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in srgb, var(--pa) 22%, transparent), transparent 65%);
  opacity: 0; transition: opacity 0.35s;
  pointer-events: none;
}
.prod-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--pa) 45%, transparent); background: rgba(255, 255, 255, 0.05); }
.prod-card:hover::after { opacity: 1; }
.prod-head { display: flex; align-items: center; gap: 12px; }
.prod-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--pa), var(--pb));
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--pa) 35%, transparent);
}
/* Real brand-mark tile (assets/marks/): the mark carries its own art, so the
   gradient square becomes a soft brand-tinted well behind it. */
.prod-logo-img { background: color-mix(in srgb, var(--pa) 13%, rgba(255, 255, 255, 0.04)); padding: 7px; }
.prod-logo-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.prod-head h3 { margin: 0; font-size: 1.18rem; }
.prod-head .prod-cat { display: block; color: var(--faint); font-size: 0.76rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.prod-card > p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.65; flex: 1; }
.prod-tagline { color: var(--ink); font-weight: 500; font-size: 0.98rem; }
.prod-meta { display: flex; align-items: center; gap: 10px; margin-top: 4px; color: var(--faint); font-size: 0.8rem; }
.prod-links { display: flex; gap: 14px; margin-top: 8px; }
.prod-links a { font-size: 0.9rem; font-weight: 600; color: color-mix(in srgb, var(--pb) 75%, #fff); }
.prod-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --- the constellation: home hero product ring --------------------------- */
.constellation { position: relative; margin: 54px auto 0; max-width: 1060px; }
.const-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
@media (max-width: 900px) { .const-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .const-grid { grid-template-columns: repeat(2, 1fr); } }
.const-item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 22px 10px 18px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line-soft);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, background 0.3s;
}
.const-item:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--pa) 50%, transparent); background: rgba(255, 255, 255, 0.055); }
.const-item .prod-logo { width: 46px; height: 46px; font-size: 1.25rem; }
.const-item b { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.const-item span { color: var(--faint); font-size: 0.74rem; text-align: center; line-height: 1.4; }

/* --- platform layers diagram --------------------------------------------- */
.layers { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin: 0 auto; }
.layer {
  display: flex; align-items: center; gap: 16px; padding: 16px 22px;
  border-radius: var(--radius); border: 1px solid var(--line-soft); background: var(--panel);
}
.layer b { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; min-width: 150px; }
.layer span { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.layer.lead { border-color: rgba(185, 191, 200, 0.35); background: rgba(158, 165, 176, 0.08); }
@media (max-width: 640px) { .layer { flex-direction: column; align-items: flex-start; gap: 4px; } .layer b { min-width: 0; } }

/* --- success stories --------------------------------------------------------- */
.stories { display: flex; flex-direction: column; gap: 22px; margin-top: 34px; }
.story {
  padding: 30px 32px; border-radius: var(--radius-lg);
  background: var(--panel); border: 1px solid var(--line-soft);
}
.story-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.story-logo {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 76px; height: 60px; border-radius: 12px; background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft); padding: 9px;
}
.story-logo img { max-width: 100%; max-height: 100%; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.92; }
.story-head h3 { margin: 0; font-size: 1.12rem; }
.story-meta { margin: 2px 0 0; color: var(--faint); font-size: 0.82rem; }
.story h4 { font-size: 1.3rem; margin: 0 0 10px; letter-spacing: -0.018em; }
.story p { color: var(--muted); font-size: 0.97rem; line-height: 1.7; margin: 0 0 10px; }
.story .checklist { margin-top: 14px; }

/* --- customer logo wall (pitch-deck style) ------------------------------------
   White-rendered marks on dark tiles: transparent PNGs pushed to white with
   brightness(0) invert(1), abbreviation + full name beneath. */
.logo-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
@media (max-width: 900px) { .logo-wall { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .logo-wall { grid-template-columns: 1fr; } }
.logo-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 26px 20px 20px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line-soft);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, background 0.3s;
}
.logo-tile:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.045); }
.logo-tile-art { display: flex; align-items: center; justify-content: center; height: 76px; margin-bottom: 10px; }
.logo-tile-art img {
  max-width: 170px; max-height: 76px; object-fit: contain;
  filter: brightness(0) invert(1); opacity: 0.92;
}
.logo-tile b { font-family: var(--font-display); font-weight: 640; font-size: 1.05rem; color: var(--ink); letter-spacing: -0.01em; }
.logo-tile > span:last-child { color: var(--muted); font-size: 0.85rem; line-height: 1.45; }
.logo-wall-note { text-align: center; color: var(--faint); font-size: 0.9rem; margin-top: 22px; }

/* --- awards -----------------------------------------------------------------
   Trophy-cabinet cards: a fixed 64px logo stage (inline height from the
   optical-area formula in kit.mjs equalizes visual weight), year as a corner
   chip, title, then the awarding body. Everything aligns across the grid. */
.award-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .award-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .award-grid { grid-template-columns: 1fr; } }
.award-item {
  position: relative; display: flex; flex-direction: column;
  padding: 26px 24px 22px; border-radius: var(--radius);
  background:
    radial-gradient(90% 70% at 50% -20%, rgba(255, 255, 255, 0.045), transparent 65%),
    var(--panel);
  border: 1px solid var(--line-soft);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, background 0.3s;
}
.award-item:hover { border-color: rgba(255, 255, 255, 0.16); }
.award-item .award-year {
  position: absolute; top: 16px; inset-inline-end: 16px;
  color: var(--faint); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.07em;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.025);
}
.award-logo {
  display: flex; align-items: center; justify-content: flex-start;
  height: 64px; margin-bottom: 16px;
}
.award-logo img {
  max-width: 190px; width: auto; object-fit: contain;
  filter: brightness(0) invert(1); opacity: 0.92;
  transition: opacity 0.3s ease;
}
.award-item:hover .award-logo img { opacity: 1; }
.award-mono {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; font-style: normal;
  font-family: var(--font-display); font-weight: 640; font-size: 1.3rem; color: var(--ink);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-soft);
}
.award-item b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.35; margin-bottom: 6px; padding-inline-end: 40px; }
.award-item .award-by { color: var(--muted); font-size: 0.88rem; margin-top: auto; }

/* Award marquee: recognition strip with meaning (mark + title + body). */
.marquee-awards .marquee-item { padding: 0 14px; height: auto; }
.am-item { flex-direction: row; gap: 14px; }
.am-item .am-logo {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 92px; height: 56px;
}
.am-item .am-logo img { max-width: 88px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.75; }
.am-item .am-text { display: flex; flex-direction: column; gap: 2px; }
.am-item .am-text b { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--ink); white-space: nowrap; }
.am-item .am-text i { font-style: normal; color: var(--faint); font-size: 0.8rem; white-space: nowrap; }
.marquee-awards .am-item {
  border: 1px solid var(--line-soft); border-radius: 14px;
  background: var(--panel); padding: 12px 20px; margin: 0 10px;
}
.marquee-awards .marquee-track { animation-duration: 72s; }

/* --- audience door cards --------------------------------------------------- */
a.card-door { cursor: pointer; }
a.card-door .card-link { margin-top: auto; }
a.card-door:hover { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.05); }

/* --- developers code sample --------------------------------------------------- */
.dev-code {
  border-radius: var(--radius); border: 1px solid var(--line); background: #0c0d0f;
  box-shadow: var(--shadow-card); overflow: hidden;
}
.dev-code pre { margin: 0; padding: 22px 24px; overflow-x: auto; }
.dev-code code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.86rem; line-height: 1.75; color: #cfd3da; }
.dev-code .tok-c { color: var(--faint); }
.dev-code .tok-s { color: #b7bdc7; }

/* --- brand kit mark cards --------------------------------------------------- */
.mark-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 34px; }
@media (max-width: 760px) { .mark-grid { grid-template-columns: 1fr; } }
.mark-card {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px;
  border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-soft);
}
.mark-card .mark-tile {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 76px; height: 76px; border-radius: 16px; padding: 10px;
  background: color-mix(in srgb, var(--pa) 12%, rgba(255, 255, 255, 0.04));
  border: 1px solid color-mix(in srgb, var(--pa) 25%, transparent);
}
.mark-card .mark-tile img { width: 100%; height: 100%; object-fit: contain; }
.mark-card b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.mark-card span { display: block; color: var(--muted); font-size: 0.88rem; line-height: 1.5; margin: 2px 0 8px; }
.mark-card a { font-size: 0.86rem; font-weight: 600; color: color-mix(in srgb, var(--pb) 75%, #fff); }
.mark-card a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --- trust logo wall (text-based, honest) ---------------------------------- */
.trust-band { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: center; opacity: 0.85; }
.trust-band span { color: var(--muted); font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.02em; white-space: nowrap; }

/* --- workspace app chips ---------------------------------------------------- */
.app-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 860px) { .app-chips { grid-template-columns: repeat(2, 1fr); } }
.app-chip {
  display: flex; align-items: baseline; gap: 8px; padding: 11px 16px;
  border-radius: 12px; background: var(--panel); border: 1px solid var(--line-soft);
  font-size: 0.9rem;
}
.app-chip b { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.app-chip span { color: var(--faint); font-size: 0.8rem; }

/* --- fx layer (site-fx.js: WebGL mesh, dust, presence globe) ---------------
   Monochrome silver on graphite, mounted only where hosts exist. Everything
   here is progressive enhancement over the static CSS surface. */
.hero-home { position: relative; }
.fx-stage { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.fx-stage::after {
  /* soft vignette so canvas edges never read as a rectangle */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 9, 10, 0.5), transparent 22%, transparent 62%, var(--bg, #08090a) 96%),
    radial-gradient(120% 90% at 50% 10%, transparent 55%, rgba(8, 9, 10, 0.75));
}
.fx-mesh, .fx-dust { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx-mesh { opacity: 0; transition: opacity 1.1s ease; }
.fx-mesh.is-live { opacity: 1; }
/* While the shader owns the hero, dim the fixed CSS haze so blooms don't stack. */
.fx-mesh-live .mesh { opacity: 0.45; }

.fx-globe-wrap { position: relative; aspect-ratio: 1; max-width: 560px; margin: 0 auto; }
.fx-globe { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.fx-globe.is-grabbing { cursor: grabbing; }
.fx-globe-wrap .fx-globe-fallback { display: none; }
.fx-globe-wrap:not(:has(canvas)) .fx-globe-fallback { display: flex; }
.fx-globe-wrap:not(:has(canvas)) { aspect-ratio: auto; }
.fx-globe-wrap:not(:has(canvas)) .fx-globe-hint { display: none; }
.fx-globe-hint {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  color: var(--faint); font-size: 0.78rem; letter-spacing: 0.02em; white-space: nowrap;
  pointer-events: none;
}

/* --- aurora header wash -----------------------------------------------------
   Faint silver curtains behind interior page heroes. Pure CSS, two blurred
   conic slivers drifting very slowly; still frames under reduced motion. */
.page-hero { position: relative; overflow: clip; } /* rotated washes must not create scroll */
.page-hero::before, .page-hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: -40%; height: 150%; width: 44%;
  background: radial-gradient(50% 46% at 50% 40%, rgba(216, 222, 230, 0.055), transparent 70%);
  filter: blur(46px);
  animation: aurora-drift 26s ease-in-out infinite alternate;
}
.page-hero::before { left: 6%; transform: rotate(14deg); }
.page-hero::after { right: 4%; transform: rotate(-18deg); animation-delay: -13s; animation-duration: 32s; }
@keyframes aurora-drift {
  from { translate: 0 0; opacity: 0.75; }
  to { translate: 42px 26px; opacity: 1; }
}
/* The home hero has the shader; keep its CSS wash off. */
.hero-home::before, .hero-home::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  .page-hero::before, .page-hero::after { animation: none; }
}

/* --- sticky product stack (home showcase, locai-school scroll deck) --------
   Each card is position:sticky; as you scroll, the next card slides over the
   pinned one. --si staggers the pin offset so the pile shows its edges. */
.product-stack { display: flex; flex-direction: column; gap: 26px; margin-top: 40px; }
.stack-card {
  position: sticky;
  top: calc(88px + var(--si) * 14px);
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 44px;
  min-height: 420px; padding: 46px 52px;
  border-radius: 26px;
  background:
    radial-gradient(120% 130% at 85% -10%, color-mix(in srgb, var(--pa) 9%, transparent), transparent 55%),
    linear-gradient(180deg, #101113, #0b0c0d);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -14px 44px rgba(0, 0, 0, 0.5), 0 26px 70px rgba(0, 0, 0, 0.35);
}
.stack-kicker {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted); font-size: 0.86rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 18px;
}
.stack-index {
  font-family: var(--font-display); font-weight: 640; font-size: 0.82rem;
  color: color-mix(in srgb, var(--pb) 80%, #fff);
  padding: 3px 9px; border-radius: 8px;
  background: color-mix(in srgb, var(--pa) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--pa) 30%, transparent);
}
.stack-name { font-family: var(--font-display); font-weight: 640; font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: -0.028em; margin-bottom: 8px; }
.stack-tagline { font-family: var(--font-display); font-weight: 550; font-size: 1.18rem; color: var(--ink); opacity: 0.92; margin-bottom: 14px; }
.stack-blurb { color: var(--muted); font-size: 1.02rem; line-height: 1.65; max-width: 34em; }
.stack-links { margin-top: 26px; }

.stack-visual {
  position: relative; align-self: stretch; min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px; overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.stack-glow {
  position: absolute; width: 68%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--pa) 26%, transparent), transparent 65%);
  filter: blur(30px);
}
.stack-ring { position: absolute; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--pa) 22%, transparent); }
.stack-ring.r1 { width: 44%; aspect-ratio: 1; }
.stack-ring.r2 { width: 64%; aspect-ratio: 1; opacity: 0.6; }
.stack-ring.r3 { width: 86%; aspect-ratio: 1; opacity: 0.3; }
.has-motion .stack-ring { animation: stack-spin 40s linear infinite; }
.has-motion .stack-ring.r2 { animation-duration: 60s; animation-direction: reverse; }
.has-motion .stack-ring.r3 { animation-duration: 90s; }
@keyframes stack-spin { to { rotate: 360deg; } }
.stack-mark {
  position: relative; width: 108px; height: 108px; border-radius: 26px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--pa) 13%, rgba(255, 255, 255, 0.03));
  border: 1px solid color-mix(in srgb, var(--pa) 32%, transparent);
  box-shadow: 0 18px 50px color-mix(in srgb, var(--pa) 25%, transparent);
  font-family: var(--font-display); font-weight: 640; font-size: 2.6rem;
  color: color-mix(in srgb, var(--pb) 85%, #fff);
}
.stack-mark img { width: 62px; height: 62px; object-fit: contain; }
.stack-surfaces {
  position: absolute; bottom: 16px;
  color: var(--faint); font-size: 0.8rem; letter-spacing: 0.03em;
}
@media (max-width: 900px) {
  .stack-card { grid-template-columns: 1fr; gap: 26px; padding: 30px 24px; position: static; min-height: 0; }
  .stack-visual { min-height: 220px; order: -1; }
}
@media (prefers-reduced-motion: reduce) { .stack-ring { animation: none; } }

/* Real product screenshot inside a stack card: brand-lit frame, the shot
   fills the panel and crops from the leading edge (UI starts left). */
.stack-visual-shot { padding: 0; background: #0a0b0c; }
.stack-visual-shot .stack-glow { opacity: 0.5; }
.stack-shot {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; object-position: left top;
  border-radius: inherit;
}
@media (max-width: 900px) {
  .stack-visual-shot { min-height: 0; }
  .stack-shot { max-height: 300px; }
}

/* --- product demo video (real UI, muted loop) ------------------------------ */
.demo-frame {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #0a0b0c;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}
.demo-frame video, .demo-frame img { display: block; width: 100%; height: auto; }
.demo-caption {
  text-align: center; color: var(--faint); font-size: 0.86rem; margin-top: 16px;
}
.demo-badge {
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(8, 9, 10, 0.72); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
}
.demo-badge i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 8px #34d39988;
}

/* --- client logo marquee ----------------------------------------------------
   Seamless loop: the track holds two identical runs and translates -50%.
   Edges masked; hover pauses; reduced motion = static strip. */
.logo-marquee { margin-top: 10px; }
.marquee-label {
  text-align: center; color: var(--faint); font-size: 0.86rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 22px;
}
.marquee-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee-scroll 46s linear infinite; }
.marquee-viewport:hover .marquee-track { animation-play-state: paused; }
.marquee-run { display: flex; align-items: center; }
.marquee-item {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 10px; padding: 0 30px; height: 104px; flex: none;
}
/* Fixed art stage: inline height (optical-area formula in kit.mjs) sizes the
   mark; the stage bottom-aligns everything so captions sit on one baseline. */
.marquee-art { display: flex; align-items: center; justify-content: center; height: 58px; }
.marquee-item img {
  max-width: 168px; width: auto; object-fit: contain;
  filter: brightness(0) invert(1); opacity: 0.55;
  transition: opacity 0.3s ease;
}
.marquee-item:hover img { opacity: 0.95; }
.marquee-caption {
  font-style: normal; color: var(--faint); font-size: 0.72rem; font-weight: 550;
  letter-spacing: 0.04em; white-space: nowrap; opacity: 0.85;
  transition: color 0.3s ease;
}
.marquee-item:hover .marquee-caption { color: var(--muted); }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }
html[dir="rtl"] .marquee-track { animation-name: marquee-scroll-rtl; }
@keyframes marquee-scroll-rtl { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee-viewport { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; }
  .marquee-run[aria-hidden] { display: none; }
}

/* --- brand switcher (top-left product-site directory) -----------------------
   The Lisan mark stays a home link; the caret (hover or focus) opens a glass
   directory of the six product sites + Lisan Hub. One hop to any product. */
.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;
}
.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-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; }
}

/* --- animated platform architecture (/platform/ four layers) -----------------
   One account feeds a beam down through four layer cards. Entrances key off
   the shared .reveal.in contract (CSS transitions or Motion springs both add
   .in); the beam pulse and orb are the only loops, and they live under .in so
   nothing runs offscreen. Reduced motion shows the finished diagram. */
.arch { position: relative; max-width: 880px; margin: 38px auto 0; }
.arch-rail {
  position: absolute; inset-block: 8px; inset-inline-start: 27px; width: 2px;
  pointer-events: none;
}
.arch-beam {
  position: absolute; inset: 0; border-radius: 2px;
  background: linear-gradient(180deg, rgba(247, 248, 248, 0.5), rgba(158, 165, 176, 0.28) 30%, rgba(158, 165, 176, 0.1));
  transform: scaleY(0); transform-origin: top;
}
.reveal.in .arch-beam { animation: arch-beam-grow 1.6s var(--ease-out) 0.15s both; }
@keyframes arch-beam-grow { to { transform: scaleY(1); } }
.arch-pulse {
  position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(247, 248, 248, 0.05) 30%, rgba(247, 248, 248, 0.9) 50%, rgba(247, 248, 248, 0.05) 70%, transparent) no-repeat;
  background-size: 100% 180px;
}
.reveal.in .arch-pulse { opacity: 1; animation: arch-pulse-run 5.2s ease-in-out 1.9s infinite; }
@keyframes arch-pulse-run {
  from { background-position-y: -180px; }
  to { background-position-y: calc(100% + 180px); }
}
.arch-col { display: flex; flex-direction: column; gap: 14px; }

/* the account node */
.arch-acct {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; margin-inline-start: 54px;
  border-radius: var(--radius); border: 1px solid rgba(185, 191, 200, 0.3);
  background: rgba(158, 165, 176, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 40px rgba(0, 0, 0, 0.3);
  position: relative; z-index: 1;
}
.reveal .arch-acct { opacity: 0; }
.reveal.in .arch-acct { animation: arch-rise 0.7s var(--ease-out) both; }
.arch-acct-mark {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px; color: var(--ink);
  background: rgba(247, 248, 248, 0.07); border: 1px solid rgba(247, 248, 248, 0.18);
  box-shadow: 0 0 24px rgba(247, 248, 248, 0.12);
}
.arch-acct-text { display: flex; flex-direction: column; gap: 1px; }
.arch-acct-text b { font-family: var(--font-display); font-weight: 620; font-size: 1.02rem; color: var(--ink); }
.arch-acct-text span { color: var(--faint); font-size: 0.84rem; }

/* layer cards */
.arch-layer {
  position: relative; margin-inline-start: 54px;
  padding: 18px 22px 16px; border-radius: var(--radius);
  border: 1px solid var(--line-soft); background: var(--panel);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}
.reveal .arch-layer { opacity: 0; }
.reveal.in .arch-layer {
  animation: arch-rise 0.75s var(--ease-out) both;
  animation-delay: calc(0.2s + var(--i) * 0.22s);
}
@keyframes arch-rise { from { opacity: 0; transform: translateY(22px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
.arch-layer:hover {
  transform: translateY(-2px);
  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);
}
.arch-node {
  position: absolute; top: 26px; inset-inline-start: -31px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #c9cdd4; box-shadow: 0 0 0 4px rgba(201, 205, 212, 0.14), 0 0 14px rgba(201, 205, 212, 0.45);
  transform: scale(0);
}
.reveal.in .arch-node { animation: arch-node-pop 0.5s var(--ease-spring) both; animation-delay: calc(0.35s + var(--i) * 0.22s); }
@keyframes arch-node-pop { to { transform: scale(1); } }
.arch-lhead { display: flex; align-items: baseline; gap: 10px; margin-bottom: 13px; }
.arch-idx { font-style: normal; font-family: var(--font-display); font-weight: 650; font-size: 0.74rem; color: var(--faint); letter-spacing: 0.08em; }
.arch-lhead b { font-family: var(--font-display); font-weight: 620; font-size: 1.04rem; color: var(--ink); letter-spacing: -0.012em; }
.arch-tag {
  margin-inline-start: auto; flex: none;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; color: var(--muted);
  border: 1px solid var(--line-soft); border-radius: 999px; padding: 3px 10px;
  background: rgba(255, 255, 255, 0.03);
}
.arch-lp { margin: 12px 0 0; color: var(--faint); font-size: 0.86rem; line-height: 1.55; }

/* layer 1: the six flagship marks, in their true colors */
.arch-marks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.arch-mark {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 12px 4px 10px; border-radius: 12px; text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.3s var(--ease-out);
}
.reveal .arch-mark { opacity: 0; }
.reveal.in .arch-mark {
  animation: arch-mark-pop 0.55s var(--ease-spring) both;
  animation-delay: calc(0.55s + var(--i) * 0.22s + var(--mi) * 70ms);
}
@keyframes arch-mark-pop { from { opacity: 0; transform: translateY(10px) scale(0.75); } to { opacity: 1; transform: none; } }
.arch-mark:hover {
  background: color-mix(in srgb, var(--pa) 8%, transparent);
  border-color: color-mix(in srgb, var(--pa) 35%, transparent);
  transform: translateY(-3px);
}
.arch-mark-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px; padding: 7px;
  background: color-mix(in srgb, var(--pa) 13%, rgba(255, 255, 255, 0.04));
  border: 1px solid color-mix(in srgb, var(--pa) 26%, transparent);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--pa) 22%, transparent);
  transition: box-shadow 0.3s ease;
}
.arch-mark:hover .arch-mark-logo { box-shadow: 0 10px 26px color-mix(in srgb, var(--pa) 40%, transparent); }
.arch-mark-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.arch-mark b { font-family: var(--font-display); font-weight: 590; font-size: 0.8rem; color: var(--muted); letter-spacing: 0; transition: color 0.25s; }
.arch-mark:hover b { color: var(--ink); }

/* layer 2: workspace app chips */
.arch-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.arch-chip {
  font-size: 0.78rem; font-weight: 550; color: var(--muted);
  border: 1px solid var(--line-soft); border-radius: 999px; padding: 4px 11px;
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.reveal .arch-chip { opacity: 0; }
.reveal.in .arch-chip {
  animation: arch-chip-in 0.45s var(--ease-out) both;
  animation-delay: calc(0.6s + var(--i, 2) * 0.22s + var(--ci) * 40ms);
}
@keyframes arch-chip-in { from { opacity: 0; transform: translateY(7px) scale(0.9); } to { opacity: 1; transform: none; } }
.arch-chip:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); }
.arch-chip-more { color: var(--faint); border-style: dashed; }

/* layer 3: the AI core orb + capability pills */
.arch-core { display: flex; align-items: center; gap: 16px; }
.arch-orb {
  position: relative; flex: none; width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--ink);
  background: radial-gradient(circle at 32% 30%, rgba(247, 248, 248, 0.16), rgba(247, 248, 248, 0.05) 60%);
  border: 1px solid rgba(247, 248, 248, 0.2);
  box-shadow: 0 0 30px rgba(247, 248, 248, 0.1);
}
.arch-orb i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(247, 248, 248, 0.22); opacity: 0; }
.reveal.in .arch-orb i { animation: arch-orb-ring 3.2s ease-out calc(1.2s + var(--i, 3) * 0.22s) infinite; }
.reveal.in .arch-orb i:nth-child(2) { animation-delay: calc(1.2s + var(--i, 3) * 0.22s + 1.6s); }
@keyframes arch-orb-ring {
  0% { transform: scale(1); opacity: 0.55; }
  75%, 100% { transform: scale(1.85); opacity: 0; }
}
.arch-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.arch-pill {
  font-size: 0.78rem; font-weight: 550; color: var(--muted);
  border: 1px solid var(--line-soft); border-radius: 999px; padding: 4px 11px;
  background: rgba(255, 255, 255, 0.03);
}
.reveal .arch-pill { opacity: 0; }
.reveal.in .arch-pill {
  animation: arch-chip-in 0.45s var(--ease-out) both;
  animation-delay: calc(0.6s + var(--i, 3) * 0.22s + var(--ci) * 55ms);
}

/* layer 4: deployment targets */
.arch-deploy { display: flex; flex-wrap: wrap; gap: 8px; }
.arch-dep {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 570; color: var(--muted);
  border: 1px solid var(--line-soft); border-radius: 11px; padding: 8px 13px;
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.3s var(--ease-out);
}
.arch-dep svg { color: var(--faint); transition: color 0.2s; }
.reveal .arch-dep { opacity: 0; }
.reveal.in .arch-dep {
  animation: arch-chip-in 0.5s var(--ease-out) both;
  animation-delay: calc(0.6s + var(--i, 4) * 0.22s + var(--ci) * 80ms);
}
.arch-dep:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); transform: translateY(-2px); }
.arch-dep:hover svg { color: var(--ink); }

@media (max-width: 640px) {
  .arch-rail { display: none; }
  .arch-acct, .arch-layer { margin-inline-start: 0; }
  .arch-node { display: none; }
  .arch-marks { grid-template-columns: repeat(3, 1fr); }
  .arch-core { flex-direction: column; align-items: flex-start; }
}

/* --- animated one-account flow (sign in once, data flows) --------------------
   One account card with the six flagships lit, then meeting to tasks to page
   flowing down brand-lit step cards. Wires carry marching dashes; a 9s cycle
   passes the "live" glow from step to step. Same .reveal.in contract. */
.oaf { display: flex; flex-direction: column; align-items: stretch; max-width: 440px; margin-inline: auto; }
.oaf-acct {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px;
  padding: 15px 18px; border-radius: var(--radius);
  border: 1px solid rgba(185, 191, 200, 0.3); background: rgba(158, 165, 176, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 40px rgba(0, 0, 0, 0.3);
}
.reveal .oaf-acct { opacity: 0; }
.reveal.in .oaf-acct { animation: arch-rise 0.7s var(--ease-out) both; }
.oaf-acct-mark {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 38px; height: 38px; border-radius: 11px; color: var(--ink);
  background: rgba(247, 248, 248, 0.07); border: 1px solid rgba(247, 248, 248, 0.18);
  box-shadow: 0 0 20px rgba(247, 248, 248, 0.1);
}
.oaf-acct-text { display: flex; flex-direction: column; gap: 0; }
.oaf-acct-text b { font-family: var(--font-display); font-weight: 620; font-size: 0.98rem; color: var(--ink); }
.oaf-acct-text span { color: var(--faint); font-size: 0.8rem; }
.oaf-dots { grid-column: 1 / -1; display: flex; gap: 7px; margin-top: 9px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.oaf-dot {
  position: relative; display: inline-flex;
  width: 30px; height: 30px;
}
.reveal .oaf-dot { opacity: 0; }
.reveal.in .oaf-dot {
  animation: arch-mark-pop 0.5s var(--ease-spring) both;
  animation-delay: calc(0.45s + var(--di) * 90ms);
}
.oaf-dot-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px; padding: 5px;
  background: color-mix(in srgb, var(--pa) 13%, rgba(255, 255, 255, 0.04));
  border: 1px solid color-mix(in srgb, var(--pa) 26%, transparent);
}
.oaf-dot-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.oaf-tick {
  position: absolute; inset-inline-end: -4px; top: -4px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--good); color: #06251a;
  border: 2px solid #101113;
  transform: scale(0);
}
.reveal.in .oaf-tick { animation: arch-node-pop 0.4s var(--ease-spring) both; animation-delay: calc(0.75s + var(--di) * 90ms); }

/* connectors: marching-dash wires with a "no export" label */
.oaf-link { position: relative; display: flex; justify-content: center; height: 44px; flex: none; }
.reveal .oaf-link { opacity: 0; }
.reveal.in .oaf-link { animation: vz-fadein 0.5s ease both; animation-delay: calc(0.55s + var(--i) * 0.5s); }
.oaf-wire {
  stroke: rgba(185, 191, 200, 0.45); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 0.09 0.08;
}
.reveal.in .oaf-wire { animation: oaf-wire-flow 1.5s linear infinite; }
@keyframes oaf-wire-flow { to { stroke-dashoffset: -0.51; } }
.oaf-link-label {
  position: absolute; top: 50%; inset-inline-start: 50%; transform: translateY(-50%);
  margin-inline-start: 14px; white-space: nowrap;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; color: var(--faint);
  border: 1px dashed var(--line); border-radius: 999px; padding: 2px 9px;
  background: rgba(8, 9, 10, 0.7);
}

/* step cards: brand-lit, take turns being "live" on a 9s cycle */
.oaf-step {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 15px 18px; border-radius: var(--radius);
  border: 1px solid var(--line-soft); background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.reveal .oaf-step { opacity: 0; }
.reveal.in .oaf-step { animation: arch-rise 0.7s var(--ease-out) both; animation-delay: calc(0.35s + var(--i) * 0.5s); }
.oaf-step::after {
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius); pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--pa) 55%, transparent);
  box-shadow: 0 0 34px color-mix(in srgb, var(--pa) 18%, transparent), inset 0 0 22px color-mix(in srgb, var(--pa) 7%, transparent);
  opacity: 0;
}
.reveal.in .oaf-step::after { animation: oaf-live 9s ease-in-out calc(2s + var(--ph) * 3s) infinite; }
@keyframes oaf-live {
  0%, 30%, 100% { opacity: 0; }
  8%, 22% { opacity: 1; }
}
.oaf-logo {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 42px; height: 42px; border-radius: 12px; padding: 7px;
  background: color-mix(in srgb, var(--pa) 13%, rgba(255, 255, 255, 0.04));
  border: 1px solid color-mix(in srgb, var(--pa) 28%, transparent);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--pa) 20%, transparent);
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
}
.oaf-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.oaf-step-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.oaf-step-text b { font-family: var(--font-display); font-weight: 610; font-size: 0.96rem; color: var(--ink); letter-spacing: -0.01em; }
.oaf-prod { color: color-mix(in srgb, var(--pb) 72%, #fff); font-size: 0.74rem; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase; }
.oaf-sub { color: var(--faint); font-size: 0.82rem; }

/* step art: content lines that shimmer while the step is live */
.oaf-art { display: flex; flex-direction: column; gap: 5px; margin-inline-start: auto; flex: none; }
.oaf-art i {
  display: block; width: 54px; height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), color-mix(in srgb, var(--pa) 38%, rgba(255, 255, 255, 0.16)), rgba(255, 255, 255, 0.1));
  background-size: 200% 100%;
}
.oaf-art i:nth-child(2) { width: 42px; }
.oaf-art i:nth-child(3) { width: 48px; }
.reveal.in .oaf-art i { animation: oaf-shimmer 9s ease-in-out calc(2s + var(--ph) * 3s + var(--ai, 0) * 0.15s) infinite; }
.oaf-art i:nth-child(2) { --ai: 1; }
.oaf-art i:nth-child(3) { --ai: 2; }
@keyframes oaf-shimmer {
  0%, 30%, 100% { background-position: 130% 0; }
  8%, 22% { background-position: -30% 0; }
}
.oaf-art-tasks i { position: relative; padding-inline-start: 10px; background-clip: content-box; }
.oaf-art-tasks i::before {
  content: ""; position: absolute; inset-inline-start: 0; top: -1px;
  width: 7px; height: 7px; border-radius: 2px;
  border: 1px solid color-mix(in srgb, var(--pa) 60%, rgba(255, 255, 255, 0.3));
}

@media (max-width: 420px) { .oaf-art { display: none; } .oaf-link-label { margin-inline-start: 10px; } }

/* reduced motion: both diagrams show their finished state, loops off */
@media (prefers-reduced-motion: reduce) {
  .reveal .arch-acct, .reveal .arch-layer, .reveal .arch-mark, .reveal .arch-chip,
  .reveal .arch-pill, .reveal .arch-dep,
  .reveal .oaf-acct, .reveal .oaf-dot, .reveal .oaf-link, .reveal .oaf-step { opacity: 1; }
  .reveal.in .arch-acct, .reveal.in .arch-layer, .reveal.in .arch-mark, .reveal.in .arch-chip,
  .reveal.in .arch-pill, .reveal.in .arch-dep, .reveal.in .arch-node, .reveal.in .arch-beam,
  .reveal.in .oaf-acct, .reveal.in .oaf-dot, .reveal.in .oaf-tick, .reveal.in .oaf-link,
  .reveal.in .oaf-step { animation: none; }
  .arch-beam { transform: none; }
  .arch-node, .oaf-tick { transform: scale(1); }
  .reveal.in .arch-pulse, .reveal.in .arch-orb i { animation: none; opacity: 0; }
  .reveal.in .oaf-wire { animation: none; }
  .reveal.in .oaf-step::after { animation: none; }
  .reveal.in .oaf-art i { animation: none; }
}

/* --- animated consolidation diagram (home problem section) --------------------
   Grey vendor pile, tangled wires with marching dashes, one lit platform card.
   Entrances key off .reveal.in (works under CSS and Motion drivers); loops
   live under .in only; reduced motion shows the settled end state. */
.cvg { display: grid; grid-template-columns: minmax(200px, 1fr) 96px minmax(250px, 1.15fr); align-items: center; gap: 0; max-width: 860px; margin: 40px auto 0; }
.cvg-pile { display: flex; flex-direction: column; gap: 10px; }
.cvg-tiles { display: flex; flex-direction: column; gap: 7px; }
.cvg-tile {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 13px; border-radius: 10px;
  border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.025);
  color: var(--faint); font-size: 0.82rem; font-weight: 550;
  transform: rotate(calc((var(--ti) - 3.5) * -0.5deg));
}
.cvg-tile:nth-child(odd) { margin-inline-start: 14px; }
.cvg-tile:nth-child(3n) { margin-inline-start: 26px; }
.reveal .cvg-tile { opacity: 0; }
.reveal.in .cvg-tile {
  animation: cvg-tile-in 0.5s var(--ease-out) both;
  animation-delay: calc(var(--ti) * 70ms);
}
@keyframes cvg-tile-in { from { opacity: 0; transform: translateX(-14px) rotate(0deg); } to { opacity: 1; } }
[dir="rtl"] .cvg-tile { transform: rotate(calc((var(--ti) - 3.5) * 0.5deg)); }
.cvg-bill {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 17px; height: 17px; border-radius: 5px; font-style: normal;
  font-size: 0.62rem; font-weight: 700; color: var(--faint);
  border: 1px dashed var(--line); background: rgba(255, 255, 255, 0.02);
}
.cvg-note { margin: 4px 0 0; color: var(--faint); font-size: 0.76rem; letter-spacing: 0.02em; }
.reveal .cvg-note { opacity: 0; }
.reveal.in .cvg-note { animation: vz-fadein 0.6s ease 0.7s both; }

.cvg-wires svg { display: block; width: 100%; height: 234px; overflow: visible; }
.cvg-wire {
  fill: none; stroke: rgba(158, 165, 176, 0.3); stroke-width: 1.4;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.reveal.in .cvg-wire {
  animation: vz-draw 1s var(--ease-out) both, cvg-wire-march 2.2s linear calc(1.1s + var(--wi) * 0.12s) infinite;
  animation-delay: calc(0.45s + var(--wi) * 90ms), calc(1.4s + var(--wi) * 0.12s);
}
@keyframes cvg-wire-march { from { stroke-dasharray: 0.06 0.05; stroke-dashoffset: 0; } to { stroke-dasharray: 0.06 0.05; stroke-dashoffset: -0.33; } }
[dir="rtl"] .cvg-wires svg { transform: scaleX(-1); }

.cvg-one {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 26px 24px 22px; border-radius: var(--radius-lg);
  border: 1px solid rgba(185, 191, 200, 0.32); background: rgba(158, 165, 176, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 60px rgba(0, 0, 0, 0.4), 0 0 44px rgba(201, 205, 212, 0.05);
}
.reveal .cvg-one { opacity: 0; }
.reveal.in .cvg-one { animation: cvg-one-in 0.8s var(--ease-spring) 0.9s both; }
@keyframes cvg-one-in { from { opacity: 0; transform: scale(0.88); } to { opacity: 1; transform: none; } }
.cvg-one-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px; color: var(--ink);
  background: rgba(247, 248, 248, 0.07); border: 1px solid rgba(247, 248, 248, 0.2);
  box-shadow: 0 0 26px rgba(247, 248, 248, 0.13);
}
.cvg-one > b { font-family: var(--font-display); font-weight: 640; font-size: 1.14rem; color: var(--ink); letter-spacing: -0.015em; }
.cvg-one-sub { color: var(--muted); font-size: 0.85rem; }
.cvg-marks { display: flex; gap: 7px; margin-top: 10px; }
.cvg-mark { display: inline-flex; }
.reveal .cvg-mark { opacity: 0; }
.reveal.in .cvg-mark { animation: arch-mark-pop 0.5s var(--ease-spring) both; animation-delay: calc(1.25s + var(--mi) * 80ms); }
.cvg-mark-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px; padding: 5px;
  background: color-mix(in srgb, var(--pa) 13%, rgba(255, 255, 255, 0.04));
  border: 1px solid color-mix(in srgb, var(--pa) 28%, transparent);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--pa) 20%, transparent);
}
.cvg-mark-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cvg-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.cvg-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem; font-weight: 620; color: var(--good);
  border: 1px solid color-mix(in srgb, var(--good) 32%, transparent);
  background: color-mix(in srgb, var(--good) 8%, transparent);
  border-radius: 999px; padding: 4px 11px;
}
.reveal .cvg-chip { opacity: 0; }
.reveal.in .cvg-chip { animation: arch-chip-in 0.5s var(--ease-out) both; animation-delay: calc(1.7s + var(--ci) * 130ms); }

@media (max-width: 860px) {
  .cvg { grid-template-columns: 1fr; gap: 8px; max-width: 460px; }
  .cvg-wires { display: none; }
  .cvg-tiles { flex-direction: row; flex-wrap: wrap; }
  .cvg-tile, .cvg-tile:nth-child(odd), .cvg-tile:nth-child(3n) { margin-inline-start: 0; }
  .cvg-pile { align-items: center; }
  .cvg-tiles { justify-content: center; }
  .cvg-one { margin-top: 16px; }
}

/* --- animated workspace data bus (home workspace split) -----------------------
   App chips over a glowing bus bar; a pulse travels the bus, chip pins blink
   in sequence, so "one data layer" reads as live wiring, not a caption. */
.wsd { max-width: 520px; margin-inline: auto; }
.wsd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wsd-app {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 11px 6px 13px; border-radius: 11px;
  border: 1px solid var(--line-soft); background: var(--panel);
  transition: border-color 0.25s, background 0.25s, transform 0.3s var(--ease-out);
}
.wsd-app:hover { border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.05); transform: translateY(-2px); }
.reveal .wsd-app { opacity: 0; }
.reveal.in .wsd-app { animation: arch-chip-in 0.5s var(--ease-out) both; animation-delay: calc(var(--ci) * 60ms); }
.wsd-app b { font-family: var(--font-display); font-weight: 590; font-size: 0.82rem; color: var(--muted); }
.wsd-app:hover b { color: var(--ink); }
.wsd-pin {
  position: absolute; bottom: -5px; inset-inline-start: 50%; margin-inline-start: -3px;
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(201, 205, 212, 0.35);
}
.reveal.in .wsd-pin { animation: wsd-pin-blink 3.6s ease-in-out calc(1.2s + var(--ci) * 0.3s) infinite; }
@keyframes wsd-pin-blink {
  0%, 14%, 100% { background: rgba(201, 205, 212, 0.35); box-shadow: none; }
  7% { background: #f7f8f8; box-shadow: 0 0 10px rgba(247, 248, 248, 0.8); }
}
.wsd-bus {
  position: relative; height: 34px; margin-top: 12px; border-radius: 10px;
  border: 1px solid rgba(185, 191, 200, 0.3);
  background: linear-gradient(180deg, rgba(158, 165, 176, 0.1), rgba(158, 165, 176, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.reveal .wsd-bus { opacity: 0; }
.reveal.in .wsd-bus { animation: arch-rise 0.7s var(--ease-out) 0.5s both; }
.wsd-pulse {
  position: absolute; inset-block: 0; width: 90px;
  background: linear-gradient(90deg, transparent, rgba(247, 248, 248, 0.16), transparent);
}
.reveal.in .wsd-pulse { animation: wsd-pulse-run 3.6s ease-in-out 1.2s infinite; }
@keyframes wsd-pulse-run { from { transform: translateX(-120px); } to { transform: translateX(560px); } }
[dir="rtl"] .reveal.in .wsd-pulse { animation-name: wsd-pulse-run-rtl; }
@keyframes wsd-pulse-run-rtl { from { transform: translateX(120px); } to { transform: translateX(-560px); } }
.wsd-bus-label {
  position: relative; font-family: var(--font-display); font-weight: 620; font-size: 0.82rem;
  color: var(--ink); letter-spacing: 0.02em;
}
.wsd-note { margin: 10px 0 0; text-align: center; color: var(--faint); font-size: 0.78rem; }
.reveal .wsd-note { opacity: 0; }
.reveal.in .wsd-note { animation: vz-fadein 0.6s ease 1s both; }
@media (max-width: 480px) { .wsd-grid { grid-template-columns: repeat(3, 1fr); } }

/* --- animated desktop Hub diagram (home + download) ----------------------
   A miniature Lisan Hub window where the one-click story plays out: each app
   row's Install button becomes a filling progress bar, then a green "Open"
   state. Ends on a breathing "everything up to date" pill. Rows stagger via
   --ri; interior states are keyed off .reveal.in so both reveal drivers work.
   Fail-visible base state = the window with Install buttons (a fine still). */
.dhub { display: flex; flex-direction: column; align-items: center; max-width: 430px; margin-inline: auto; }
.dhub-win {
  width: 100%; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(185, 191, 200, 0.22); background: rgba(13, 14, 16, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 70px rgba(0, 0, 0, 0.45), 0 0 40px rgba(201, 205, 212, 0.04);
}
.reveal .dhub-win { opacity: 0; }
.reveal.in .dhub-win { animation: arch-rise 0.7s var(--ease-out) both; }
/* hero header: one big glowing Hub tile instead of window chrome */
.dhub-head {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 30px 18px 22px; border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  overflow: hidden;
}
.dhub-halo {
  position: absolute; top: -46px; left: 50%; transform: translateX(-50%);
  width: 240px; height: 150px; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(247, 248, 248, 0.11), transparent 68%);
}
.dhub-hero-logo {
  position: relative; display: inline-flex; width: 64px; height: 64px; flex: none;
  border-radius: 15px;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 22px rgba(247, 248, 248, 0.08));
}
.dhub-hero-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.reveal.in .dhub-hero-logo { animation: dhub-logo-land 0.85s var(--ease-spring) both; }
@keyframes dhub-logo-land { from { opacity: 0; transform: translateY(-14px) scale(0.7); } to { opacity: 1; transform: none; } }
.dhub-head-name { margin-top: 13px; font-family: var(--font-display); font-weight: 640; font-size: 1.12rem; letter-spacing: -0.015em; color: var(--ink); }
.dhub-head-sub { margin-top: 2px; color: var(--faint); font-size: 0.78rem; }
.reveal .dhub-head-name, .reveal .dhub-head-sub { opacity: 0; }
.reveal.in .dhub-head-name { animation: vz-fadein 0.5s ease 0.35s both; }
.reveal.in .dhub-head-sub { animation: vz-fadein 0.5s ease 0.45s both; }
.dhub-body { display: flex; flex-direction: column; padding: 8px 10px; }
.dhub-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 10px; border-radius: 11px;
}
.dhub-row:hover { background: rgba(255, 255, 255, 0.03); }
.reveal .dhub-row { opacity: 0; }
.reveal.in .dhub-row { animation: arch-chip-in 0.5s var(--ease-out) both; animation-delay: calc(0.55s + var(--ri) * 0.14s); }
.dhub-row-logo {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; border-radius: 9px; padding: 5px;
  background: color-mix(in srgb, var(--pa) 13%, rgba(255, 255, 255, 0.04));
  border: 1px solid color-mix(in srgb, var(--pa) 26%, transparent);
}
.dhub-row-logo.prod-logo-tile { padding: 0; background: none; border: 0; }
.dhub-row-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dhub-row-text { display: flex; flex-direction: column; min-width: 0; }
.dhub-row-text b { font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; color: var(--ink); }
.dhub-row-text span { color: var(--faint); font-size: 0.72rem; }
/* action stack: Install button -> progress -> Open, one on top of another */
.dhub-act { position: relative; margin-inline-start: auto; flex: none; width: 86px; height: 26px; }
.dhub-btn, .dhub-prog, .dhub-open {
  position: absolute; inset: 0; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-size: 0.72rem; font-weight: 640; letter-spacing: 0.02em;
}
.dhub-btn { background: #e6e8eb; color: #08090a; }
.dhub-prog { opacity: 0; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); overflow: hidden; }
.dhub-prog i {
  position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, color-mix(in srgb, var(--pa) 55%, #6b7280), var(--pa));
  opacity: 0.75;
}
[dir="rtl"] .dhub-prog i { transform-origin: 100% 50%; }
.dhub-open { opacity: 0; gap: 5px; color: var(--good); border: 1px solid color-mix(in srgb, var(--good) 32%, transparent); background: color-mix(in srgb, var(--good) 8%, transparent); }
/* the install story: btn out -> progress fills -> open pops. --rt = row story start */
.dhub-row { --rt: calc(1.25s + var(--ri) * 1.15s); }
.reveal.in .dhub-btn { animation: dhub-swap-out 0.22s ease both; animation-delay: var(--rt); }
.reveal.in .dhub-prog { animation: dhub-prog-live 1.15s ease both; animation-delay: var(--rt); }
.reveal.in .dhub-prog i { animation: dhub-prog-fill 0.95s cubic-bezier(0.3, 0, 0.4, 1) both; animation-delay: calc(var(--rt) + 0.08s); }
.reveal.in .dhub-open { animation: dhub-open-in 0.45s var(--ease-spring) both; animation-delay: calc(var(--rt) + 1.12s); }
@keyframes dhub-swap-out { to { opacity: 0; transform: scale(0.86); } }
@keyframes dhub-prog-live { 0% { opacity: 0; } 8%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes dhub-prog-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dhub-open-in { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: scale(1); } }
.dhub-foot { display: flex; justify-content: center; padding: 11px 14px 13px; border-top: 1px solid var(--line-soft); }
.dhub-fresh {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.72rem; font-weight: 620; letter-spacing: 0.03em; color: var(--good);
  border: 1px solid color-mix(in srgb, var(--good) 28%, transparent);
  background: color-mix(in srgb, var(--good) 7%, transparent);
  border-radius: 999px; padding: 4px 11px;
}
.dhub-fresh i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--good);
  box-shadow: 0 0 8px color-mix(in srgb, var(--good) 70%, transparent);
}
.reveal .dhub-fresh { opacity: 0; }
.reveal.in .dhub-fresh { animation: vz-fadein 0.6s ease both; animation-delay: 4.95s; }
.reveal.in .dhub-fresh i { animation: dhub-fresh-breathe 2.6s ease-in-out 5.55s infinite; }
@keyframes dhub-fresh-breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.dhub-note { margin: 12px 0 0; text-align: center; color: var(--faint); font-size: 0.78rem; }
.reveal .dhub-note { opacity: 0; }
.reveal.in .dhub-note { animation: vz-fadein 0.6s ease 1.2s both; }

/* --- animated trust gauntlet (home government band) ---------------------------
   A runner light crosses four review gates; each flashes green as it passes.
   The loop is slow and quiet on purpose: certification, not fireworks. */
.gauntlet { max-width: 760px; margin: 36px auto 0; }
.gate-track {
  position: relative; display: flex; justify-content: space-between; align-items: flex-start;
  padding-top: 5px;
}
.gate-track::before {
  content: ""; position: absolute; top: 10px; inset-inline: 40px; height: 2px;
  background: linear-gradient(90deg, rgba(158, 165, 176, 0.28), rgba(158, 165, 176, 0.12));
  border-radius: 2px;
}
.gate-runner {
  position: absolute; top: 7px; inset-inline-start: 40px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #f7f8f8; box-shadow: 0 0 14px rgba(247, 248, 248, 0.9);
  opacity: 0;
}
.reveal.in .gate-runner { animation: gate-run 7s ease-in-out 1.6s infinite; }
@keyframes gate-run {
  0% { inset-inline-start: 5%; opacity: 0; }
  6% { opacity: 1; }
  30% { inset-inline-start: 32%; }
  58% { inset-inline-start: 61%; }
  86% { inset-inline-start: 90%; opacity: 1; }
  92%, 100% { inset-inline-start: 92%; opacity: 0; }
}
.gate { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; width: 25%; }
.reveal .gate { opacity: 0; }
.reveal.in .gate { animation: arch-rise 0.6s var(--ease-out) both; animation-delay: calc(var(--gi) * 160ms); }
.gate-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.6px solid rgba(158, 165, 176, 0.5); background: #101113;
  color: transparent;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.reveal.in .gate-dot { animation: gate-flash 7s ease-in-out calc(1.6s + var(--gi) * 1.85s) infinite; }
@keyframes gate-flash {
  0%, 4%, 100% { border-color: rgba(158, 165, 176, 0.5); color: transparent; background: #101113; box-shadow: none; }
  8%, 26% { border-color: var(--good); color: #06251a; background: var(--good); box-shadow: 0 0 16px color-mix(in srgb, var(--good) 55%, transparent); }
  34% { border-color: rgba(158, 165, 176, 0.5); color: transparent; background: #101113; }
}
.gate b { font-family: var(--font-display); font-weight: 580; font-size: 0.85rem; color: var(--muted); text-align: center; line-height: 1.35; }
.gate-final .gate-dot { border-color: color-mix(in srgb, var(--good) 55%, transparent); }
.gate-final b { color: var(--ink); }
@media (max-width: 560px) {
  .gate b { font-size: 0.72rem; }
  .gate-track::before { inset-inline: 24px; }
}

/* --- hero constellation: quiet sequential brand breathing --------------------- */
.const-item.reveal.in { animation: const-breathe 9s ease-in-out calc(2.5s + var(--ci, 0) * 1.5s) infinite; }
@keyframes const-breathe {
  0%, 12%, 100% { border-color: var(--line-soft); box-shadow: none; }
  5% { border-color: color-mix(in srgb, var(--pa) 45%, transparent); box-shadow: 0 6px 26px color-mix(in srgb, var(--pa) 16%, transparent); }
}

/* reduced motion: home diagrams settle to their finished state, loops off */
@media (prefers-reduced-motion: reduce) {
  .reveal .cvg-tile, .reveal .cvg-note, .reveal .cvg-one, .reveal .cvg-mark, .reveal .cvg-chip,
  .reveal .wsd-app, .reveal .wsd-bus, .reveal .wsd-note,
  .reveal .dhub-win, .reveal .dhub-row, .reveal .dhub-fresh, .reveal .dhub-note,
  .reveal .dhub-head-name, .reveal .dhub-head-sub,
  .reveal .gate { opacity: 1; }
  .reveal.in .cvg-tile, .reveal.in .cvg-note, .reveal.in .cvg-one, .reveal.in .cvg-mark,
  .reveal.in .cvg-chip, .reveal.in .cvg-wire,
  .reveal.in .wsd-app, .reveal.in .wsd-bus, .reveal.in .wsd-note, .reveal.in .wsd-pin, .reveal.in .wsd-pulse,
  .reveal.in .dhub-win, .reveal.in .dhub-row, .reveal.in .dhub-btn, .reveal.in .dhub-prog,
  .reveal.in .dhub-prog i, .reveal.in .dhub-open, .reveal.in .dhub-fresh, .reveal.in .dhub-fresh i,
  .reveal.in .dhub-note, .reveal.in .dhub-hero-logo, .reveal.in .dhub-head-name, .reveal.in .dhub-head-sub,
  .reveal.in .gate, .reveal.in .gate-dot, .reveal.in .gate-runner,
  .const-item.reveal.in { animation: none; }
  /* reduced-motion finished state: installs done, Open showing */
  .dhub-btn { opacity: 0; } .dhub-open { opacity: 1; }
  .cvg-wire { stroke-dasharray: none; stroke-dashoffset: 0; }
  .gate-runner { opacity: 0; }
}

/* --- animated ASR benchmark chart (home "under the hood") ---------------------
   Horizontal error-rate bars, lower = better. Bars grow via scaleX keyed off
   .reveal.in; the Lisan row is green and lands with a glow. Reduced motion
   shows the finished chart. */
.bench { max-width: 660px; margin: 38px auto 0; }
.bench-title {
  margin: 0 0 16px; text-align: center;
  font-family: var(--font-display); font-weight: 620; font-size: 0.95rem; color: var(--ink);
}
.bench-rows { display: flex; flex-direction: column; gap: 8px; }
.bench-row { display: grid; grid-template-columns: 92px 1fr 58px; align-items: center; gap: 12px; }
.reveal .bench-row { opacity: 0; }
.reveal.in .bench-row { animation: vz-fadein 0.5s ease both; animation-delay: calc(var(--bi) * 90ms); }
.bench-name { font-size: 0.84rem; font-weight: 550; color: var(--faint); text-align: end; }
.bench-track {
  position: relative; height: 14px; border-radius: 7px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-soft);
  overflow: hidden;
}
.bench-bar {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--bw);
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(158, 165, 176, 0.35), rgba(158, 165, 176, 0.55));
  transform: scaleX(0); transform-origin: left;
}
[dir="rtl"] .bench-bar { transform-origin: right; }
.reveal.in .bench-bar {
  animation: bench-grow 1s var(--ease-out) both;
  animation-delay: calc(0.2s + var(--bi) * 90ms);
}
@keyframes bench-grow { to { transform: scaleX(1); } }
.bench-val { font-family: var(--font-display); font-weight: 640; font-size: 0.84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bench-us .bench-name { color: var(--ink); font-weight: 650; }
.bench-us .bench-bar {
  background: linear-gradient(90deg, color-mix(in srgb, var(--good) 65%, transparent), var(--good));
  box-shadow: 0 0 16px color-mix(in srgb, var(--good) 40%, transparent);
}
.bench-us .bench-val { color: var(--good); font-size: 0.95rem; }
.bench-us .bench-track { border-color: color-mix(in srgb, var(--good) 30%, transparent); }
.bench-note { margin: 14px 0 0; text-align: center; color: var(--faint); font-size: 0.78rem; line-height: 1.5; }
@media (max-width: 480px) { .bench-row { grid-template-columns: 74px 1fr 52px; gap: 8px; } .bench-name { font-size: 0.76rem; } }
@media (prefers-reduced-motion: reduce) {
  .reveal .bench-row { opacity: 1; }
  .reveal.in .bench-row, .reveal.in .bench-bar { animation: none; }
  .bench-bar { transform: none; }
}

/* --- research page: paper cards + patent list --------------------------------- */
.paper-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 860px) { .paper-grid { grid-template-columns: 1fr; } }
.paper-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px 26px; border-radius: var(--radius-lg);
  background: var(--panel); border: 1px solid var(--line-soft);
  transition: border-color 0.25s, background 0.25s, transform 0.3s var(--ease-out);
}
.paper-card:hover { border-color: rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.04); transform: translateY(-3px); }
.paper-domain {
  align-self: flex-start; font-size: 0.7rem; font-weight: 650; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}
.paper-card h3 { margin: 4px 0 0; font-size: 1.06rem; letter-spacing: -0.014em; line-height: 1.4; }
.paper-card p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.62; flex: 1; }
.paper-meta { color: var(--faint); font-size: 0.76rem; }

.patent-list { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.patent-item {
  display: flex; align-items: baseline; gap: 14px;
  padding: 16px 20px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line-soft);
}
.patent-item.lead { border-color: rgba(185, 191, 200, 0.35); background: rgba(158, 165, 176, 0.08); }
.patent-item b { font-family: var(--font-display); font-weight: 620; font-size: 0.95rem; color: var(--ink); min-width: 210px; }
.patent-item span { color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.patent-status {
  margin-inline-start: auto; flex: none; align-self: center;
  font-size: 0.68rem; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase;
  border-radius: 999px; padding: 3px 10px; color: var(--faint);
  border: 1px dashed var(--line);
}
.patent-status.filed { color: var(--good); border: 1px solid color-mix(in srgb, var(--good) 32%, transparent); background: color-mix(in srgb, var(--good) 7%, transparent); }
@media (max-width: 640px) { .patent-item { flex-direction: column; gap: 6px; } .patent-item b { min-width: 0; } .patent-status { margin-inline-start: 0; } }

/* --- animated Relay + Morphological Compression diagram (research page) -------
   Stage 1: a real Arabic word explodes into morpheme chips and collapses into
   the 99.97% block. Stage 2: a runner light crosses the four Relay spaces.
   Same .reveal.in contract; reduced motion = finished frame. */
.rly { display: flex; flex-direction: column; max-width: 760px; margin: 38px auto 0; }
.rly-stage {
  padding: 20px 24px 18px; border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft); background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.reveal .rly-stage { opacity: 0; }
.reveal.in .rly-stage { animation: arch-rise 0.7s var(--ease-out) both; }
.reveal.in .rly-stage:last-of-type { animation-delay: 0.5s; }
.rly-comp { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 6px 0 12px; }
.rly-word {
  font-family: var(--font-display); font-weight: 650; font-size: 1.3rem; color: var(--ink);
  padding: 8px 16px; border-radius: 11px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
}
.rly-arr { color: var(--faint); font-size: 1rem; }
[dir="rtl"] .rly-arr { transform: scaleX(-1); display: inline-block; }
.rly-morphs { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rly-morph {
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--muted);
  padding: 4px 11px; border-radius: 9px;
  border: 1px dashed var(--line); background: rgba(255, 255, 255, 0.02);
}
.reveal .rly-morph { opacity: 0; }
.reveal.in .rly-morph { animation: arch-chip-in 0.45s var(--ease-out) both; animation-delay: calc(0.4s + var(--ci) * 110ms); }
.rly-root {
  font-size: 0.78rem; font-weight: 600; color: var(--accent);
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.03);
}
.reveal .rly-root { opacity: 0; }
.reveal.in .rly-root { animation: arch-chip-in 0.45s var(--ease-out) 0.9s both; }
.rly-saved {
  display: inline-flex; flex-direction: column; align-items: center; text-align: center;
  padding: 10px 18px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--good) 35%, transparent);
  background: color-mix(in srgb, var(--good) 8%, transparent);
  box-shadow: 0 0 26px color-mix(in srgb, var(--good) 12%, transparent);
}
.reveal .rly-saved { opacity: 0; }
.reveal.in .rly-saved { animation: cvg-one-in 0.7s var(--ease-spring) 1.1s both; }
.rly-saved b { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--good); font-variant-numeric: tabular-nums; }
.rly-saved span { color: var(--muted); font-size: 0.72rem; }
.rly-note { font-style: normal; color: var(--faint); font-size: 0.78rem; display: block; margin-top: 3px; }

.rly-pipe {
  position: relative; display: flex; justify-content: space-between;
  margin: 14px 0 4px; padding: 14px 8px;
}
.rly-pipe::before {
  content: ""; position: absolute; top: 50%; inset-inline: 30px; height: 2px; margin-top: -12px;
  background: linear-gradient(90deg, rgba(158, 165, 176, 0.3), rgba(158, 165, 176, 0.12));
}
.rly-runner {
  position: absolute; top: 50%; margin-top: -15px; inset-inline-start: 30px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #f7f8f8; box-shadow: 0 0 12px rgba(247, 248, 248, 0.9);
  opacity: 0;
}
.reveal.in .rly-runner { animation: rly-run 5.5s ease-in-out 1.8s infinite; }
@keyframes rly-run {
  0% { inset-inline-start: 4%; opacity: 0; }
  6% { opacity: 1; }
  30% { inset-inline-start: 34%; }
  60% { inset-inline-start: 64%; }
  88% { inset-inline-start: 92%; opacity: 1; }
  94%, 100% { inset-inline-start: 94%; opacity: 0; }
}
.rly-gate { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 25%; }
.reveal .rly-gate { opacity: 0; }
.reveal.in .rly-gate { animation: arch-rise 0.55s var(--ease-out) both; animation-delay: calc(0.8s + var(--gi) * 140ms); }
.rly-gate-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.6px solid rgba(158, 165, 176, 0.5); background: #101113;
}
.reveal.in .rly-gate-dot { animation: rly-gate-flash 5.5s ease-in-out calc(1.8s + var(--gi) * 1.5s) infinite; }
@keyframes rly-gate-flash {
  0%, 5%, 100% { border-color: rgba(158, 165, 176, 0.5); background: #101113; box-shadow: none; }
  10%, 24% { border-color: #f7f8f8; background: rgba(247, 248, 248, 0.16); box-shadow: 0 0 14px rgba(247, 248, 248, 0.35); }
  32% { border-color: rgba(158, 165, 176, 0.5); background: #101113; }
}
.rly-gate b { font-family: var(--font-display); font-weight: 580; font-size: 0.8rem; color: var(--muted); text-align: center; }
@media (max-width: 560px) {
  .rly-gate b { font-size: 0.68rem; }
  .rly-comp { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal .rly-stage, .reveal .rly-morph, .reveal .rly-root, .reveal .rly-saved, .reveal .rly-gate { opacity: 1; }
  .reveal.in .rly-stage, .reveal.in .rly-morph, .reveal.in .rly-root, .reveal.in .rly-saved,
  .reveal.in .rly-gate, .reveal.in .rly-gate-dot, .reveal.in .rly-runner { animation: none; }
  .rly-runner { opacity: 0; }
}

/* ==== download page (dlx-): the merged get.lisan.org experience ========== */
/* Full-bleed brand tiles (marks that carry their own background art, like the
   Hub tile): kill the padded well so the mark renders whole. */
.prod-logo-tile { padding: 0; background: none; border: 0; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); }
.prod-logo-tile img { width: 100%; height: 100%; object-fit: contain; display: block; }

.dlx-hero h1 { font-size: clamp(2.5rem, 5.4vw, 3.9rem); line-height: 1.07; margin: 0 0 18px; }
.dlx-hero .lead { margin-bottom: 26px; }
.dlx-hero .split { padding: 26px 0 10px; }
.dlx-trust { color: var(--faint); font-size: 0.88rem; margin-top: 16px; }

.dlx-btnrow { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.dlx-btnrow .btn svg { margin-right: 2px; }
.dlx-meta { color: var(--faint); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.dlx-alt { color: var(--faint); font-size: 0.83rem; margin: 10px 0 0; }
.dlx-alt a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.dlx-grid { margin-top: 10px; }
.dlx-card { position: relative; }
.dlx-card:hover { border-color: color-mix(in srgb, var(--pa) 40%, transparent); }
.dlx-card-head { display: flex; align-items: center; gap: 13px; }
.dlx-card-head h3 { margin: 0; font-size: 1.16rem; }
.dlx-logo {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 46px; height: 46px; border-radius: 12px;
}
.dlx-letter {
  background: color-mix(in srgb, var(--pa) 14%, rgba(255, 255, 255, 0.04));
  border: 1px solid color-mix(in srgb, var(--pa) 30%, transparent);
  color: var(--muted); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.dlx-ver {
  display: inline-block; margin-top: 3px; padding: 1px 8px; border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; font-weight: 600;
  color: color-mix(in srgb, var(--pa, #9da3ae) 75%, #fff); letter-spacing: 0.02em;
  background: color-mix(in srgb, var(--pa, #9da3ae) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--pa, #9da3ae) 30%, transparent);
}
.dlx-tagline { margin: 15px 0 6px; color: var(--ink); font-weight: 560; font-size: 0.95rem; }
.dlx-card .dlx-note { color: var(--muted); font-size: 0.9rem; margin: 0 0 18px; }
.dlx-card .dlx-btnrow { margin-bottom: 4px; }
.dlx-card .dlx-btnrow .btn { font-size: 0.88rem; padding: 9px 16px; }
.dlx-soon { opacity: 0.68; }
.dlx-soon:hover { opacity: 0.9; }
.dlx-soon-pill {
  display: inline-block; margin-top: 3px; padding: 1px 8px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; color: var(--faint);
  border: 1px dashed rgba(255, 255, 255, 0.22);
}
.dlx-soon-head {
  margin: 40px 0 16px; color: var(--faint); font-family: var(--font-display); font-weight: 560;
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.dlx-grid-soon .dlx-card-head h3 { font-size: 1.02rem; }
.dlx-grid-soon .dlx-logo { width: 38px; height: 38px; border-radius: 10px; }
.dlx-grid-soon .dlx-tagline { font-size: 0.88rem; }
.dlx-grid-soon .dlx-note { font-size: 0.83rem; margin-bottom: 0; }

.dlx-details summary .dlx-ver { margin: 0 0 0 10px; vertical-align: 1px; }
.dlx-tablewrap { overflow-x: auto; }
.dlx-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.dlx-table th {
  text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line-soft);
  color: var(--faint); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.07em; text-transform: uppercase;
}
.dlx-table td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); color: var(--muted); white-space: nowrap; }
.dlx-table td.dlx-file, .dlx-table .dlx-file { white-space: normal; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; }
.dlx-table tr:last-child td { border-bottom: 0; }
.dlx-muted { color: var(--faint); }
.dlx-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.dlx-link:hover { color: #fff; }

.dlx-notes { margin-top: 14px; }
.dlx-notes .note-version { padding: 12px 0 2px; border-top: 1px solid var(--line-soft); }
.dlx-notes .note-head { display: flex; align-items: baseline; gap: 10px; }
.dlx-notes .note-head strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; color: var(--ink); }
.dlx-notes .note-date { color: var(--faint); font-size: 0.78rem; }
.dlx-notes .note-version:first-child { border-top: 0; padding-top: 0; }
.dlx-older { margin-top: 18px; }
.dlx-older .dlx-notes { margin-top: 0; }
.dlx-older .dlx-notes .note-version:first-child { border-top: 0; }
.dlx-notes ul { margin: 8px 0 10px; padding-left: 20px; color: var(--muted); font-size: 0.88rem; }
.dlx-notes li { margin-bottom: 5px; }
.dlx-feed { color: var(--faint); font-size: 0.86rem; margin-top: 22px; }
.dlx-feed a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .dlx-hero .split { padding-top: 6px; }
}

/* ==== per-app download pages (/download/<id>/) =========================== */
.dlx-crumb { color: var(--faint); font-size: 0.85rem; margin: 0 0 26px; }
.dlx-crumb a { color: var(--muted); }
.dlx-crumb a:hover { color: var(--ink); }
.dlx-crumb span { margin: 0 7px; opacity: 0.5; }
.dlx-apphero { display: flex; gap: 26px; align-items: flex-start; }
.dlx-apphero-logo {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 84px; height: 84px; border-radius: 20px; padding: 13px;
  background: color-mix(in srgb, var(--pa) 13%, rgba(255, 255, 255, 0.04));
  border: 1px solid color-mix(in srgb, var(--pa) 28%, transparent);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4), 0 0 34px color-mix(in srgb, var(--pa) 12%, transparent);
}
.dlx-apphero-logo.prod-logo-tile { padding: 0; background: none; border: 0; }
.dlx-apphero-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dlx-apphero-logo.dlx-letter { font-size: 2rem; }
.dlx-apphero-text { min-width: 0; max-width: 640px; }
.dlx-apphero-id { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.dlx-apphero-id h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); margin: 0; line-height: 1.1; }
.dlx-chip {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--faint); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}
.dlx-apphero-tag { margin: 10px 0 12px; color: var(--ink); font-weight: 570; font-size: 1.08rem; }
.dlx-apphero-text > p:not(.dlx-apphero-tag):not(.dlx-trust):not(.dlx-alt) { color: var(--muted); font-size: 0.98rem; margin: 0 0 12px; }
.dlx-apphero .dlx-btnrow { margin-top: 20px; }
.dlx-shots { display: flex; flex-direction: column; gap: 34px; margin-top: 36px; }
.dlx-shot img { width: 100%; height: auto; display: block; }
.dlx-shot figcaption { padding: 12px 4px 0; text-align: center; color: var(--faint); font-size: 0.86rem; }
@media (max-width: 720px) {
  .dlx-apphero { flex-direction: column; gap: 18px; }
  .dlx-apphero-logo { width: 68px; height: 68px; border-radius: 16px; }
}
