/* BrainsMingle design system v2
   Layout concept: a calm violet-tinted paper page with dark "stage" bands where the real
   product is shown. Product areas are colour-coded (live = coral, networking = mint,
   courses = amber, consult = violet, community = sky) and the colour follows them across the site. */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-500.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-700.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-800.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-400.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Sans"; font-weight: 400; font-display: swap; src: url("../fonts/thmanyahsans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Sans"; font-weight: 500; font-display: swap; src: url("../fonts/thmanyahsans-Medium.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Sans"; font-weight: 700; font-display: swap; src: url("../fonts/thmanyahsans-Bold.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Sans"; font-weight: 900; font-display: swap; src: url("../fonts/thmanyahsans-Black.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Serif Display"; font-weight: 500; font-display: swap; src: url("../fonts/thmanyahserifdisplay-Medium.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Serif Display"; font-weight: 700; font-display: swap; src: url("../fonts/thmanyahserifdisplay-Bold.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Serif Display"; font-weight: 900; font-display: swap; src: url("../fonts/thmanyahserifdisplay-Black.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Serif Text"; font-weight: 400; font-display: swap; src: url("../fonts/thmanyahseriftext-Regular.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Serif Text"; font-weight: 500; font-display: swap; src: url("../fonts/thmanyahseriftext-Medium.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-500.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --bg: #f6f5fb;
  --bg-2: #eeecf7;
  --surface: #ffffff;
  --surface-2: #f3f2fa;
  --ink: #0c0b17;
  --ink-2: #3a3854;
  --ink-3: #66637f;
  --ink-4: #6a6783;     /* QA: was #9a97b2 (2.6:1); now AA on bg, bg-2, surface */
  --line: rgba(28, 20, 74, .10);
  --line-2: rgba(28, 20, 74, .18);

  --violet: #5a2ee0;
  --violet-hi: #6d42ff;
  --violet-ink: #4a1fd0;
  --violet-soft: rgba(90, 46, 224, .08);
  --violet-line: rgba(90, 46, 224, .26);
  --on-violet: #ffffff;
  --mint: #00a77e;
  --mint-bright: #00ffc6;
  --mint-soft: rgba(0, 167, 126, .10);

  /* product hues (text-safe on bg) */
  --c-live: #ad372d;     --c-live-soft: rgba(224, 71, 58, .10);
  --c-net: #006e53;      --c-net-soft: rgba(0, 147, 111, .10);
  --c-learn: #8e5500;    --c-learn-soft: rgba(184, 110, 0, .10);
  --c-consult: #5a2ee0;  --c-consult-soft: rgba(90, 46, 224, .09);
  --c-comm: #1a5ebe;     --c-comm-soft: rgba(31, 111, 224, .10);
  --on-tone: #ffffff;   /* text on a solid tone fill */
  --c-pay: #ab286f;      --c-pay-soft: rgba(196, 46, 127, .10);

  /* stage: always dark, in both themes */
  --stage: #0b0a16;
  --stage-2: #141226;
  --stage-3: #1d1a36;
  --stage-ink: #f4f2ff;
  --stage-ink-2: rgba(244, 242, 255, .72);
  --stage-ink-3: rgba(244, 242, 255, .5);
  --stage-line: rgba(244, 242, 255, .12);

  --shadow-sm: 0 1px 2px rgba(20, 14, 60, .06);
  --shadow: 0 1px 2px rgba(20, 14, 60, .05), 0 12px 32px -14px rgba(20, 14, 60, .22);
  --shadow-lg: 0 2px 6px rgba(20, 14, 60, .06), 0 40px 80px -30px rgba(30, 14, 100, .38);

  --f-display: "Thmanyah Serif Display", "Iowan Old Style", Georgia, serif;
  --f-brand: "Montserrat", "Avenir Next", system-ui, sans-serif;
  --f-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --t-hero: clamp(2.6rem, 1.2rem + 5.2vw, 5.4rem);
  --t-h1: clamp(2.3rem, 1.3rem + 3.6vw, 4.1rem);
  --t-h2: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem);
  --t-h3: clamp(1.25rem, 1.05rem + .6vw, 1.55rem);
  --t-lede: clamp(1.08rem, 1rem + .35vw, 1.3rem);
  --t-body: 1.0625rem;
  --t-sm: .9375rem;
  --t-xs: .8125rem;

  --r-sm: 8px; --r: 14px; --r-lg: 22px; --r-xl: 30px;
  --wrap: 1220px;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  --sec: clamp(56px, 3.2vw + 36px, 100px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09080f; --bg-2: #0f0d1a; --surface: #12101f; --surface-2: #181528;
    --ink: #f1effa; --ink-2: #bcb8d4; --ink-3: #8d89a8; --ink-4: #827e9c;
    --line: rgba(220, 212, 255, .10); --line-2: rgba(220, 212, 255, .18);
    --violet: #7b52ff; --violet-hi: #9271ff; --violet-ink: #b39dff; --violet-soft: rgba(123, 82, 255, .14); --violet-line: rgba(160, 135, 255, .38);
    --mint: #2ee6b5; --mint-soft: rgba(46, 230, 181, .12);
    --c-live: #ff7b6e; --c-live-soft: rgba(255, 123, 110, .13);
    --c-net: #2ee6b5; --c-net-soft: rgba(46, 230, 181, .12);
    --c-learn: #ffb547; --c-learn-soft: rgba(255, 181, 71, .12);
    --c-consult: #a68bff; --c-consult-soft: rgba(166, 139, 255, .14);
    --c-comm: #6aa8ff; --c-comm-soft: rgba(106, 168, 255, .13);
    --c-pay: #ff79c0; --c-pay-soft: rgba(255, 121, 192, .13);
    --stage: #05040b; --stage-2: #0e0c1b; --stage-3: #17142b; --on-tone: #0b0a16;
    --shadow-sm: 0 0 0 1px rgba(255,255,255,.03);
    --shadow: 0 0 0 1px rgba(255,255,255,.04), 0 16px 40px -18px rgba(0,0,0,.8);
    --shadow-lg: 0 0 0 1px rgba(255,255,255,.05), 0 40px 90px -30px rgba(0,0,0,.9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09080f; --bg-2: #0f0d1a; --surface: #12101f; --surface-2: #181528;
  --ink: #f1effa; --ink-2: #bcb8d4; --ink-3: #8d89a8; --ink-4: #827e9c;
  --line: rgba(220, 212, 255, .10); --line-2: rgba(220, 212, 255, .18);
  --violet: #7b52ff; --violet-hi: #9271ff; --violet-ink: #b39dff; --violet-soft: rgba(123, 82, 255, .14); --violet-line: rgba(160, 135, 255, .38);
  --mint: #2ee6b5; --mint-soft: rgba(46, 230, 181, .12);
  --c-live: #ff7b6e; --c-live-soft: rgba(255, 123, 110, .13);
  --c-net: #2ee6b5; --c-net-soft: rgba(46, 230, 181, .12);
  --c-learn: #ffb547; --c-learn-soft: rgba(255, 181, 71, .12);
  --c-consult: #a68bff; --c-consult-soft: rgba(166, 139, 255, .14);
  --c-comm: #6aa8ff; --c-comm-soft: rgba(106, 168, 255, .13);
  --c-pay: #ff79c0; --c-pay-soft: rgba(255, 121, 192, .13);
  --stage: #05040b; --stage-2: #0e0c1b; --stage-3: #17142b; --on-tone: #0b0a16;
  --shadow-sm: 0 0 0 1px rgba(255,255,255,.03);
  --shadow: 0 0 0 1px rgba(255,255,255,.04), 0 16px 40px -18px rgba(0,0,0,.8);
  --shadow-lg: 0 0 0 1px rgba(255,255,255,.05), 0 40px 90px -30px rgba(0,0,0,.9);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: var(--t-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
/* Region variants: the head script sets html[data-region] from the bm_region cookie (gcc or global). */
html:not([data-region="gcc"]) [data-only="gcc"], html[data-region="gcc"] [data-only="global"] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; letter-spacing: -.02em; line-height: 1.06; text-wrap: balance; font-weight: 700; }
h3, h4 { font-family: var(--f-body); font-weight: 650; letter-spacing: -.012em; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
/* QA: violet ring is 2.7:1 on the dark stage; use a light ring there (WCAG 1.4.11). */
.stage :focus-visible, .on-stage :focus-visible, .fork__card--dark :focus-visible, .cta-band :focus-visible { outline-color: #c9b8ff; }
::selection { background: var(--violet); color: var(--on-violet); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--violet); color: var(--on-violet); padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 40px); margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.wrap--narrow { max-width: 860px; }
.wrap--wide { max-width: 1400px; }
.section { padding-block: var(--sec); position: relative; }
.section--tight { padding-block: calc(var(--sec) * .6); }
.section--flush-top { padding-top: 0; }
.section--alt { background: var(--bg-2); }
.stack { display: grid; gap: var(--gap, 20px); align-content: start; }
.stack > * { min-width: 0; }
.row { display: flex; flex-wrap: wrap; gap: var(--gap, 12px); align-items: center; }
.center { text-align: center; justify-items: center; margin-inline: auto; }
.grid { display: grid; gap: var(--gap, 24px); }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* text + media split */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--rev > :first-child { order: 2; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .split, .split--rev, .split--even { grid-template-columns: minmax(0, 1fr); } .split--rev > :first-child { order: 0; } }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent, var(--violet-ink)); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow--plain::before { display: none; }
.h-hero { font-size: var(--t-hero); letter-spacing: -.025em; line-height: 1.0; font-weight: 900; }
.h1 { font-size: var(--t-h1); letter-spacing: -.022em; line-height: 1.04; }
.h2 { font-size: var(--t-h2); letter-spacing: -.018em; line-height: 1.08; }
.h3 { font-size: var(--t-h3); }
.serif { font-family: var(--f-display); font-weight: 700; letter-spacing: -.015em; }
.strike { position: relative; display: inline-block; color: var(--ink-4); }
.strike::after { content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: .085em; min-height: 3px; border-radius: 2px; background: var(--c-live); transform-origin: left center; }
[dir="rtl"] .strike::after { transform-origin: right center; }
.js .strike.draw::after { transform: scaleX(0); animation: strike .7s .35s var(--ease) forwards; }
@keyframes strike { to { transform: scaleX(1); } }
.note { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--bg); font-family: var(--f-mono); font-size: 11px; font-weight: 500; box-shadow: 0 0 0 4px color-mix(in srgb, var(--bg) 70%, transparent); }
.notes { list-style: none; display: grid; gap: 16px; counter-reset: note; }
.notes li { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 12px; counter-increment: note; color: var(--ink-2); font-size: var(--t-sm); }
.notes li::before { content: counter(note, decimal-leading-zero); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 10.5px; color: var(--ink); }
.notes b { color: var(--ink); display: block; font-weight: 650; }
.stage .notes li { color: var(--stage-ink-2); } .stage .notes b { color: var(--stage-ink); } .stage .notes li::before { border-color: var(--stage-line); color: var(--stage-ink); }
.bignum { font-family: var(--f-display); font-weight: 900; font-size: clamp(3rem, 2rem + 4vw, 6rem); line-height: .9; letter-spacing: -.03em; font-variant-numeric: lining-nums; color: var(--accent, var(--ink)); }
.lede { font-size: var(--t-lede); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.body { color: var(--ink-2); max-width: 62ch; }
.small { font-size: var(--t-sm); color: var(--ink-3); }
.mono { font-family: var(--f-mono); font-size: .88em; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.hl { color: var(--accent, var(--violet)); }
.hl-ink { background: linear-gradient(transparent 62%, var(--accent-soft, var(--violet-soft)) 62%); }
.sec-head { display: grid; gap: 18px; max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head.center { text-align: center; justify-items: center; }
.prose { max-width: 70ch; color: var(--ink-2); }
.prose h2 { font-size: 1.6rem; margin: 2.2em 0 .6em; color: var(--ink); }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 .5em; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin: .3em 0; }
.prose a { color: var(--violet-ink); }

/* product accents */
[data-tone="live"] { --accent: var(--c-live); --accent-soft: var(--c-live-soft); }
[data-tone="net"] { --accent: var(--c-net); --accent-soft: var(--c-net-soft); }
[data-tone="learn"] { --accent: var(--c-learn); --accent-soft: var(--c-learn-soft); }
[data-tone="consult"] { --accent: var(--c-consult); --accent-soft: var(--c-consult-soft); }
[data-tone="comm"] { --accent: var(--c-comm); --accent-soft: var(--c-comm-soft); }
[data-tone="pay"] { --accent: var(--c-pay); --accent-soft: var(--c-pay-soft); }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--surface); --b-fg: var(--ink); --b-line: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--b-line);
  background: var(--b-bg); color: var(--b-fg); font-weight: 600; font-size: .975rem; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform .18s var(--ease), background-color .18s, border-color .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--ink-3); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn--primary { --b-bg: var(--violet); --b-fg: var(--on-violet); --b-line: var(--violet); box-shadow: 0 8px 24px -10px var(--violet); }
.btn--primary:hover { --b-bg: var(--violet-hi); border-color: var(--violet-hi); }
.btn--ink { --b-bg: var(--ink); --b-fg: var(--bg); --b-line: var(--ink); }
.btn--ghost { --b-bg: transparent; --b-line: transparent; padding-inline: 10px; }
.btn--ghost:hover { --b-bg: var(--violet-soft); border-color: transparent; }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 1.04rem; }
.btn--sm { min-height: 38px; padding: 0 15px; font-size: .9rem; }
.on-stage .btn:not(.btn--primary) { --b-bg: rgba(255,255,255,.06); --b-fg: var(--stage-ink); --b-line: var(--stage-line); }
.on-stage .btn:not(.btn--primary):hover { border-color: var(--stage-ink-3); }
.link { color: var(--violet-ink); font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.link svg { width: 15px; height: 15px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* Section CTA (shared): the button row that ends a section. Always buttons, never a small text link.
   <div class="sec-cta"> primary + secondary .btn, optional <span class="small"> note. Options: --center, --nowrap. */
.sec-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(24px, 3vw, 40px); }
.sec-cta .btn { min-height: 44px; }
.sec-cta .small { color: var(--ink-3); }
.stage .sec-cta .small, .on-stage .sec-cta .small { color: var(--stage-ink-3); }
.sec-cta--center { justify-content: center; }
@media (min-width: 1024px) { .sec-cta--nowrap { flex-wrap: nowrap; } .sec-cta--nowrap .btn { white-space: nowrap; padding-inline: 18px; } }
@media (max-width: 480px) { .sec-cta .btn { white-space: normal; text-align: center; } }
.cta-note { font-size: var(--t-sm); color: var(--ink-3); }

/* ---------- Chips / pills ---------- */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--accent-soft, var(--violet-soft)); color: var(--accent, var(--violet-ink)); font-size: var(--t-xs); font-weight: 600; line-height: 1.2; }
.chip--line { background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-live); position: relative; flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--c-live); opacity: 0; animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 2.4vw, 32px); display: grid; gap: 14px; align-content: start; min-width: 0; }
.card--hover { transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; text-decoration: none; }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.6; }
.icon-tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft, var(--violet-soft)); color: var(--accent, var(--violet)); flex: none; }
.icon-tile svg { width: 22px; height: 22px; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.55; }
.ticks li::before {
  content: ""; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  background: var(--accent-soft, var(--violet-soft)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6' fill='none' stroke='%237a5cf0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}
.on-stage .ticks li { color: var(--stage-ink-2); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.bento > * { grid-column: span 2; min-width: 0; }
.bento .span-3 { grid-column: span 3; } .bento .span-4 { grid-column: span 4; } .bento .span-6 { grid-column: span 6; }
@media (max-width: 980px) { .bento > *, .bento .span-3, .bento .span-4 { grid-column: span 3; } .bento .span-6 { grid-column: span 6; } }
@media (max-width: 680px) { .bento > *, .bento .span-3, .bento .span-4, .bento .span-6 { grid-column: span 6; } }
.tile { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); padding: 26px; display: grid; gap: 12px; align-content: start; text-decoration: none; }
.tile__media { margin: 8px -26px -26px; border-top: 1px solid var(--line); background: var(--surface-2); overflow: hidden; }
.tile__media img { width: 100%; object-fit: cover; object-position: top left; }
a.tile { transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
a.tile:hover { border-color: var(--accent, var(--violet-line)); transform: translateY(-3px); box-shadow: var(--shadow); }

/* ---------- Product frames (real screenshots) ---------- */
.frame { position: relative; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); overflow: hidden; isolation: isolate; }
.frame__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.frame__bar span { margin-inline-start: 12px; direction: ltr; flex: 1; max-width: 360px; height: 20px; border-radius: 6px; background: var(--bg); font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); display: flex; align-items: center; padding: 0 10px; overflow: hidden; white-space: nowrap; }
.frame img, .frame video { width: 100%; height: auto; }
.frame--bare { border-radius: 12px; }
.frame--phone { border-radius: 34px; padding: 9px; background: var(--stage); border: 1px solid var(--stage-line); max-width: 300px; }
.frame--phone img, .frame--phone video { border-radius: 26px; }
/* Video pause button (shared): site.js adds it to every .frame that holds a video[data-autoplay]. */
.frame.has-vpp { position: relative; }
.vpp { position: absolute; z-index: 4; inset-inline-end: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid rgba(255,255,255,.22); background: rgba(9, 8, 15, .72); color: #fff; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.vpp:hover { background: rgba(9, 8, 15, .9); }
.vpp:focus-visible { outline: 2px solid #c9b8ff; outline-offset: 2px; }
.vpp svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.vpp .i-play { fill: currentColor; stroke: none; }
.frame:not(.is-held) .vpp .i-play, .frame.is-held .vpp .i-pause { display: none; }

/* Crop (shared): a real screen (img or video) cropped on purpose. The image covers the box, sits at --x/--y
   (object-position, % of the overflow) and zooms by --z around that point. --ar sets the box.
   Phones (600px and below) can reframe with --mar, --mx, --my, --mz. Options: .crop--dark (dark backdrop).
   .crop-mask hides a clashing name on a real screen; .crop-cap is the caption under it. */
.crop { position: relative; overflow: hidden; aspect-ratio: var(--ar, 16 / 10); background: var(--crop-bg, var(--surface-2)); }
.crop--dark { --crop-bg: #0e0c18; }
.frame .crop { border-radius: 0; }
.crop > img, .crop > video, .crop > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--x, 0%) var(--y, 0%); transform: scale(var(--z, 1)); transform-origin: var(--x, 0%) var(--y, 0%); }
@media (max-width: 600px) {
  .crop { aspect-ratio: var(--mar, var(--ar, 16 / 10)); }
  .crop > img, .crop > video, .crop > picture > img { object-position: var(--mx, var(--x, 0%)) var(--my, var(--y, 0%)); transform: scale(var(--mz, var(--z, 1))); transform-origin: var(--mx, var(--x, 0%)) var(--my, var(--y, 0%)); }
}
/* .crop--fit: a native-crop panel shown whole (contain) on its own dark backdrop. */
.crop--fit { --crop-bg: #16171d; }
.crop--fit > img, .crop--fit > picture > img { object-fit: contain; object-position: 50% 50%; transform: none; padding: 4% 6%; }
@media (max-width: 600px) { .crop--fit > img, .crop--fit > picture > img { object-position: 50% 50%; transform: none; padding: 3% 4%; } }
/* .crop-mask: place it with --left/--top/--width/--height (% of the box); on phones --mleft/--mtop/--mwidth/--mheight
   move it with a --mx/--my/--mz reframe. Inline left/top/width/height still work but can't follow a phone reframe. */
.crop-mask { position: absolute; z-index: 1; left: var(--left, auto); top: var(--top, auto); width: var(--width, auto); height: var(--height, auto); border-radius: 6px; background: rgba(22, 20, 36, .55); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
@media (max-width: 600px) { .crop-mask { left: var(--mleft, var(--left, auto)); top: var(--mtop, var(--top, auto)); width: var(--mwidth, var(--width, auto)); height: var(--mheight, var(--height, auto)); } }
.crop-cap { margin-top: 10px; font-size: var(--t-xs); color: var(--ink-3); }
.on-stage .frame { border-color: var(--stage-line); background: var(--stage-2); }
.on-stage .frame__bar { background: var(--stage-3); border-color: var(--stage-line); }
.on-stage .frame__bar span { background: var(--stage); color: var(--stage-ink-3); }
.on-stage .frame__bar i { background: var(--stage-line); }
.media-stack { position: relative; }
.media-stack .float { position: absolute; border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--line-2); background: var(--surface); overflow: hidden; }
@media (max-width: 680px) { .media-stack .float { display: none; } }
/* QA: single-column tablets put the stack against the viewport edge, so a negative inline offset overflows. */
@media (max-width: 960px) { .media-stack .float { right: 0 !important; left: auto !important; } [dir="rtl"] .media-stack .float { right: auto !important; left: 0 !important; } }
.callout { position: absolute; display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); border-radius: 999px; padding: 8px 14px 8px 10px; font-size: var(--t-xs); font-weight: 600; color: var(--ink); white-space: nowrap; }
@media (max-width: 680px) { .callout { display: none; } }

/* glow behind media */
.glow { position: relative; }
.glow::before { display: none; content: ""; position: absolute; inset: 8% 6% -4%; z-index: -1; filter: blur(60px); opacity: .55; background: radial-gradient(60% 60% at 30% 40%, var(--accent, var(--violet)), transparent 70%), radial-gradient(50% 50% at 75% 70%, var(--mint), transparent 70%); }

/* ---------- Stage (dark product band) ---------- */
.stage { background: var(--stage); color: var(--stage-ink); position: relative; overflow: hidden; isolation: isolate; }
.stage .lede, .stage .body, .stage p { color: var(--stage-ink-2); }
.stage .eyebrow { color: var(--accent, var(--mint-bright)); }
/* QA (WCAG 1.4.3): light-theme tone colours are ~3:1 on the dark stage. Inside any stage surface,
   use the bright (dark-theme) tones, and re-resolve --accent for tones set outside or inside it. */
:is(.stage, .on-stage, .fork__card--dark, .cta-band, .drop, .round, .call, .prog, .pairs, .agenda, .s-pv, .ph--stage, .founders-mini) {
  --c-live: #ff7b6e; --c-net: #2ee6b5; --c-learn: #ffb547; --c-consult: #a68bff; --c-comm: #6aa8ff; --c-pay: #ff79c0; --violet-ink: #b39dff; --on-tone: #0b0a16;
}
:is(.stage, .on-stage, .fork__card--dark, .cta-band)[data-tone="live"], [data-tone="live"] :is(.stage, .on-stage), :is(.stage, .on-stage) [data-tone="live"] { --accent: #ff7b6e; }
:is(.stage, .on-stage, .fork__card--dark, .cta-band)[data-tone="net"], [data-tone="net"] :is(.stage, .on-stage), :is(.stage, .on-stage) [data-tone="net"] { --accent: #2ee6b5; }
:is(.stage, .on-stage, .fork__card--dark, .cta-band)[data-tone="learn"], [data-tone="learn"] :is(.stage, .on-stage), :is(.stage, .on-stage) [data-tone="learn"] { --accent: #ffb547; }
:is(.stage, .on-stage, .fork__card--dark, .cta-band)[data-tone="consult"], [data-tone="consult"] :is(.stage, .on-stage), :is(.stage, .on-stage) [data-tone="consult"] { --accent: #a68bff; }
:is(.stage, .on-stage, .fork__card--dark, .cta-band)[data-tone="comm"], [data-tone="comm"] :is(.stage, .on-stage), :is(.stage, .on-stage) [data-tone="comm"] { --accent: #6aa8ff; }
:is(.stage, .on-stage, .fork__card--dark, .cta-band)[data-tone="pay"], [data-tone="pay"] :is(.stage, .on-stage), :is(.stage, .on-stage) [data-tone="pay"] { --accent: #ff79c0; }
/* Light surfaces placed on a stage (e.g. a white agenda card) go back to the theme's own tones. */
:is(.stage, .on-stage) :is(.v-agenda, .light-surface) { --c-live: #ad372d; --c-net: #006e53; --c-learn: #8e5500; --c-consult: #5a2ee0; --c-comm: #1a5ebe; --c-pay: #ab286f; --violet-ink: #4a1fd0; --on-tone: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.stage, .on-stage) :is(.v-agenda, .light-surface) { --c-live: #ff7b6e; --c-net: #2ee6b5; --c-learn: #ffb547; --c-consult: #a68bff; --c-comm: #6aa8ff; --c-pay: #ff79c0; --violet-ink: #b39dff; --on-tone: #0b0a16; } }
:root[data-theme="dark"] :is(.stage, .on-stage) :is(.v-agenda, .light-surface) { --c-live: #ff7b6e; --c-net: #2ee6b5; --c-learn: #ffb547; --c-consult: #a68bff; --c-comm: #6aa8ff; --c-pay: #ff79c0; --violet-ink: #b39dff; --on-tone: #0b0a16; }
.stage .card { background: var(--stage-2); border-color: var(--stage-line); }
.stage .card p { color: var(--stage-ink-2); }
.stage .tile { background: var(--stage-2); border-color: var(--stage-line); color: var(--stage-ink); }
.stage .tile p { color: var(--stage-ink-2); }
.stage .tile__media { background: var(--stage-3); border-color: var(--stage-line); }
.stage .small { color: var(--stage-ink-3); }
.stage .hl { color: var(--accent, var(--mint-bright)); }
.stage-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--stage-line) 1px, transparent 1px), linear-gradient(90deg, var(--stage-line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%); opacity: .5; }
.stage-aura { position: absolute; z-index: -1; pointer-events: none; width: 70vw; max-width: 1100px; aspect-ratio: 1; border-radius: 50%; filter: blur(90px); opacity: .45;
  background: radial-gradient(closest-side, var(--violet), transparent); }

/* ---------- Nav ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 61; background: var(--bg); }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; height: var(--nav-h); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s, background-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-brand); font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; flex: none; }
.brand img { width: auto; height: 32px; }
.brand__on-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand__on-light { display: none; } :root:not([data-theme="light"]) .brand__on-dark { display: block; } }
:root[data-theme="dark"] .brand__on-light { display: none; }
:root[data-theme="dark"] .brand__on-dark { display: block; }
.nav__menu { display: flex; align-items: center; gap: 2px; list-style: none; flex: 1; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 13px; border-radius: 999px; border: 0; background: none; cursor: pointer; text-decoration: none; font-size: .95rem; font-weight: 550; color: var(--ink-2); }
.nav__link:hover, .nav__link[aria-expanded="true"], .nav__link[aria-current="page"] { color: var(--ink); background: var(--violet-soft); }
.nav__link svg { width: 13px; height: 13px; transition: transform .2s; }
.nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.mega { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: min(760px, 92vw); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.mega[hidden] { display: none; }
.mega--wide { width: min(940px, 94vw); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega--start { left: 0; transform: none; }
[dir="rtl"] .mega--start { left: auto; right: 0; }
.mega__head { grid-column: 1 / -1; padding: 8px 12px 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.mega a { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; padding: 11px 12px; border-radius: 12px; text-decoration: none; }
.mega a:hover, .mega a:focus-visible { background: var(--surface-2); }
.mega a b { display: block; font-weight: 600; font-size: .94rem; color: var(--ink); }
.mega a small { display: block; color: var(--ink-3); font-size: .82rem; line-height: 1.4; margin-top: 2px; }
.mega .icon-tile { width: 38px; height: 38px; border-radius: 10px; }
.mega .icon-tile svg { width: 19px; height: 19px; }
.mega__foot { grid-column: 1 / -1; margin-top: 6px; padding: 12px; border-radius: 12px; background: var(--violet-soft); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .9rem; }
.mega__foot a { display: inline-flex; padding: 0; grid-template-columns: none; color: var(--violet-ink); font-weight: 600; }
.mega__foot a:hover { background: none; text-decoration: underline; }
.theme-btn, .menu-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.theme-btn:hover, .menu-btn:hover { color: var(--ink); border-color: var(--line-2); }
.theme-btn svg, .menu-btn svg { width: 18px; height: 18px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
.menu-btn { display: none; }
@media (max-width: 1080px) {
  .nav__menu, .nav__actions .hide-m { display: none; }
  .menu-btn { display: grid; }
  .nav__in { justify-content: space-between; }
}
.drawer { position: fixed; inset: 0; z-index: 80; background: var(--bg); overflow-y: auto; padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--gut-r) calc(env(safe-area-inset-bottom, 0px) + 28px) var(--gut); }
.drawer[hidden] { display: none; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary { list-style: none; cursor: pointer; padding: 18px 2px; font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; display: flex; justify-content: space-between; align-items: center; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: "+"; font-weight: 500; color: var(--ink-3); }
.drawer details[open] summary::after { content: "–"; }
.drawer details a { display: block; padding: 10px 2px; text-decoration: none; color: var(--ink-2); }
.drawer details div { padding-bottom: 14px; }
.drawer .plain { display: block; padding: 18px 2px; font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer .cta-row { margin-top: 24px; }
.drawer .cta-row .btn { flex: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(56px, 6vw, 100px); overflow: hidden; isolation: isolate; }
.hero__copy { display: grid; gap: 24px; justify-items: start; }
.hero--center .hero__copy { justify-items: center; text-align: center; margin-inline: auto; max-width: 960px; }
.hero--center .lede { margin-inline: auto; }
.hero__media { margin-top: clamp(40px, 5vw, 72px); }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-bg::before { display: none; content: ""; position: absolute; left: 50%; top: -30%; width: 1200px; height: 900px; transform: translateX(-50%); background: radial-gradient(45% 45% at 40% 40%, var(--violet-soft), transparent 70%), radial-gradient(35% 35% at 65% 55%, var(--mint-soft), transparent 70%); }
.hero-bg::after { display: none; content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(60% 50% at 50% 20%, #000, transparent 75%); opacity: .55; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; color: var(--ink-3); font-size: var(--t-sm); }
.trust span { display: inline-flex; gap: 8px; align-items: center; }
.trust svg { width: 16px; height: 16px; color: var(--mint); }

/* ---------- Fork (B2C/B2B chooser) ---------- */
.fork { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 820px) { .fork { grid-template-columns: minmax(0, 1fr); } }
.fork__card { position: relative; overflow: hidden; display: grid; gap: 18px; align-content: start; padding: clamp(26px, 3vw, 40px); border-radius: var(--r-xl); text-decoration: none; border: 1px solid var(--line); background: var(--surface); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.fork__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--violet-line); }
.fork__card--dark { background: var(--stage); color: var(--stage-ink); border-color: var(--stage-line); }
.fork__card--dark p, .fork__card--dark li { color: var(--stage-ink-2); }
.fork__card h3 { font-family: var(--f-display); font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); font-weight: 700; letter-spacing: -.015em; }
.fork__card p { color: var(--ink-2); }
.fork__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--violet-ink); }
.fork__card--dark .fork__go { color: var(--mint-bright); }
.fork__go svg { width: 16px; height: 16px; }
.fork__media { margin: 6px calc(clamp(26px, 3vw, 40px) * -1) calc(clamp(26px, 3vw, 40px) * -1); padding: 0 clamp(26px, 3vw, 40px); }
.fork__media img { border-radius: 12px 12px 0 0; border: 1px solid var(--line-2); border-bottom: 0; box-shadow: var(--shadow); }
.fork__card--dark .fork__media img { border-color: var(--stage-line); }

/* ---------- Tabs (product tour) ---------- */
.tabs { display: grid; gap: 28px; }
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tabs__btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 10px 16px; font-weight: 600; font-size: .93rem; color: var(--ink-2); cursor: pointer; transition: all .2s; }
.tabs__btn svg { width: 16px; height: 16px; color: var(--accent, var(--violet)); }
.tabs__btn:hover { color: var(--ink); border-color: var(--line-2); }
.tabs__btn[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tabs__btn[aria-selected="true"] svg { color: currentColor; }
.stage .tabs__btn { background: transparent; border-color: var(--stage-line); color: var(--stage-ink-2); }
.stage .tabs__btn[aria-selected="true"] { background: var(--stage-ink); color: var(--stage); }
.tabs__panel[hidden] { display: none; }
.tabs__panel { animation: fadeUp .45s var(--ease); }
/* QA: without JS the tabs cannot switch, so show every panel stacked and drop the inert tab row. */
html:not(.js) [data-tabs] .tabs__panel[hidden] { display: block; margin-top: 28px; }
html:not(.js) [data-tabs] .tabs__list { display: none; }
@keyframes fadeUp { from { opacity: .001; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 20px; counter-reset: step; list-style: none; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps > li { counter-increment: step; display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 2px solid var(--line-2); }
.steps > li::before { content: counter(step, decimal-leading-zero); font-family: var(--f-mono); font-size: var(--t-xs); color: var(--accent, var(--violet-ink)); font-weight: 500; }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--ink-2); font-size: var(--t-sm); }
.stage .steps > li { border-color: var(--stage-line); }

/* ---------- Stats (only real numbers) ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--surface); padding: 26px; display: grid; gap: 6px; }
.stat b { font-family: var(--f-display); font-size: clamp(2.2rem, 1.6rem + 1.8vw, 3.2rem); font-weight: 900; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--accent, var(--ink)); }
.stat span { color: var(--ink-3); font-size: var(--t-sm); }

/* ---------- People (real featured experts / communities) ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.person { display: grid; gap: 10px; text-decoration: none; }
.person__img { aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.person__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.person:hover .person__img img { transform: scale(1.04); }
.person b { font-weight: 650; font-size: .98rem; display: block; }
.person small { color: var(--ink-3); font-size: .85rem; }
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; flex: 0 0 clamp(150px, 20vw, 200px); }

/* ---------- Quote / proof slots ---------- */
.quote { display: grid; gap: 20px; padding: clamp(26px, 3vw, 40px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.quote blockquote { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.7rem); line-height: 1.3; letter-spacing: -.02em; }
.quote figcaption { display: flex; gap: 12px; align-items: center; color: var(--ink-3); font-size: var(--t-sm); }
.quote figcaption b { color: var(--ink); display: block; }
[data-todo="proof"] { position: relative; }

/* Result card (shared, registry: team/COMPONENTS.md). One named result: mono kicker, big display number, a short line.
   <div class="results"><figure class="result" data-placeholder="proof" data-proof-id="…"><span class="result__k">…</span><b>…</b><span>…</span></figure>…</div>
   Options: .results--3 (three columns, stacks under 860px; default is two, stacking under 420px);
   .result--stage (on a dark stage: glass card, stage ink, a mint-to-violet top rule). */
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.results--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.result { margin: 0; display: grid; gap: 4px; align-content: start; padding: 20px 22px; border-radius: var(--r-lg, 18px); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.result__k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
[lang="ar"] .result__k { font-family: var(--f-body); letter-spacing: 0; text-transform: none; font-size: .82rem; }
.result > b { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.result > span:last-child { color: var(--ink-2); font-size: var(--t-sm); }
.result--stage { padding: 24px 24px 26px; background: rgba(255, 255, 255, .04); border-color: var(--stage-line); }
.result--stage::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, rgba(0, 255, 198, .9), rgba(124, 92, 255, .9)); }
.result--stage .result__k { color: var(--stage-ink-3, var(--stage-ink-2)); margin-bottom: 8px; }
[lang="ar"] .result--stage .result__k { font-size: .84rem; }
.result--stage > b { font-size: clamp(2.6rem, 1.9rem + 2.2vw, 3.8rem); color: var(--stage-ink); }
.result--stage > span:last-child { color: var(--stage-ink-2); }
@media (max-width: 860px) { .results--3 { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; } }
@media (max-width: 420px) { .results { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Compare table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: var(--t-sm); }
.table th, .table td { padding: 15px 18px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 600; color: var(--ink); }
.table .yes { color: var(--mint); font-weight: 700; }
.table .no { color: var(--ink-4); }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; font-weight: 650; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--violet-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M11 6v10M6 11h10' stroke='%237a5cf0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 24px; color: var(--ink-2); max-width: 70ch; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); background: var(--stage); color: var(--stage-ink); padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 72px); display: grid; gap: 22px; justify-items: center; text-align: center; }
.cta-band p { color: var(--stage-ink-2); max-width: 56ch; }
/* No glow pseudo-elements: REVIEW-RUBRIC §7 bans glow blobs (decision 2026-11-07, applies on every page). */
/* Closing band on phones: long secondary buttons wrap instead of widening the band */
@media (max-width: 520px) {
  .cta-band > * { min-width: 0; max-width: 100%; }
  .cta-band .cta-row .btn { white-space: normal; text-align: center; height: auto; min-height: 48px; padding-block: 10px; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 72px 40px; margin-top: var(--sec); color: var(--ink-2); font-size: var(--t-sm); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
.footer h4, .footer .footer__h { font-family: var(--f-mono); line-height: 1.3; text-wrap: wrap; font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer a { text-decoration: none; color: var(--ink-2); }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer__brand p { max-width: 34ch; margin-top: 14px; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-3); }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }
.socials svg { width: 16px; height: 16px; }

/* ---------- Motion ---------- */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal:not(.is-in) { opacity: .001; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal:not(.is-in) { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* utility */
.mt-0 { margin-top: 0; } .mt-s { margin-top: 12px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 56px; }
.maxw-s { max-width: 560px; } .maxw-m { max-width: 720px; }
.hide-s { } @media (max-width: 680px) { .hide-s { display: none !important; } }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.badge-num { font-family: var(--f-mono); font-size: 11px; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-3); }

/* ---------- Arabic / RTL ----------
   Arabic is set in Thmanyah: Serif Display for headlines, Sans for UI and body.
   Arabic never gets negative tracking or uppercase, and it needs more line height. */
:root[lang="ar"] {
  --f-display: "Thmanyah Serif Display", "Thmanyah Sans", "Noto Naskh Arabic", serif;
  --f-body: "Thmanyah Sans", "Noto Sans Arabic", system-ui, sans-serif;
  --f-mono: "Thmanyah Sans", "JetBrains Mono", ui-monospace, monospace;
}
[lang="ar"] body { font-size: 1.125rem; line-height: 1.85; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4,
[lang="ar"] .h-hero, [lang="ar"] .h1, [lang="ar"] .h2, [lang="ar"] .h3 { letter-spacing: 0; line-height: 1.3; font-weight: 700; }
[lang="ar"] .h-hero { line-height: 1.22; font-weight: 900; }
[lang="ar"] .eyebrow, [lang="ar"] .mega__head, [lang="ar"] .footer h4, [lang="ar"] .footer .footer__h, [lang="ar"] .table thead th { text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 700; }
[lang="ar"] .lede { line-height: 1.85; }
[lang="ar"] .btn { font-weight: 700; }

[dir="rtl"] svg.arrow, [dir="rtl"] .fork__go svg, [dir="rtl"] .link svg { transform: scaleX(-1); }
[dir="rtl"] .btn:hover svg.arrow { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .marquee__track { animation-direction: reverse; }
[dir="rtl"] .ticks li::before { transform: scaleX(1); }
.lang-switch { font-weight: 600; font-size: .9rem; text-decoration: none; padding: 0 12px; height: 40px; display: inline-flex; align-items: center; border-radius: 999px; color: var(--ink-2); }
.lang-switch:hover { background: var(--violet-soft); color: var(--ink); }
[lang="en"] .lang-switch { font-family: "Geeza Pro", "Segoe UI", "Noto Sans Arabic", Tahoma, var(--f-body); } /* system Arabic: keeps Thmanyah Sans (79 KB) off English pages */
.stack > .strike, .sec-head > .strike { justify-self: start; }

/* Inline children (links, <b>, <bdi>) inside list items and FAQ questions must flow as text,
   not become grid/flex columns. */
.ticks li { display: block; position: relative; padding-inline-start: 32px; }
.ticks li::before { position: absolute; inset-inline-start: 0; top: 2px; }
.faq summary { display: block; position: relative; padding-inline-end: 44px; }
.faq summary::after { position: absolute; inset-inline-end: 0; top: 24px; }
