/* ============================================================================
   CAIN-42 — BLEEDING-EDGE AI THEME  (cainstudio.online, every visitor page)
   ----------------------------------------------------------------------------
   Loaded last in <head> by the gateway for the studio deployment only.
   Pure presentation: no routes, copy or behaviour are changed.

   Tweak the palette in :root. Everything else reads from these tokens.

   The stylesheet is intentionally defensive: the site has 2,600+ pages with
   private palettes, inline styles and legacy components. It first re-maps the
   legacy tokens those pages already use, then layers the new visual system on
   top. Evidence/proof bundles are never served through this stylesheet.
   ========================================================================== */

@font-face{font-family:'Inter';font-style:normal;font-weight:400 900;font-display:swap;src:url('/be-inter-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 900;font-display:swap;src:url('/be-inter-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 900;font-display:swap;src:url('/be-jetbrains-mono-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 900;font-display:swap;src:url('/be-jetbrains-mono-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

:root {
  /* ---- owner-tweakable palette ------------------------------------------ */
  --void: #05050A;
  --indigo: #6366F1;
  --indigo-light: #A5B4FC;
  --violet: #A855F7;
  --cyan: #22D3EE;
  --pink: #EC4899;
  --text: #FFFFFF;
  --text-muted: #9CA3AF;
  --glass-bg: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.25);

  /* ---- derived design tokens ------------------------------------------- */
  --be-bg: var(--void);
  --be-ink: rgba(255, 255, 255, 0.86);
  --be-ink-soft: rgba(255, 255, 255, 0.70);
  --be-line: rgba(255, 255, 255, 0.14);
  --be-line-strong: rgba(255, 255, 255, 0.26);
  --be-glass: var(--glass-bg);
  --be-glass-strong: rgba(255, 255, 255, 0.13);
  --be-glass-dark: rgba(9, 10, 22, 0.62);
  --be-radius: 22px;
  --be-radius-sm: 14px;
  --be-radius-pill: 999px;
  --be-glow-indigo: 0 0 24px rgba(99, 102, 241, 0.60);
  --be-glow-indigo-soft: 0 0 40px rgba(99, 102, 241, 0.28);
  --be-glow-cyan: 0 0 24px rgba(34, 211, 238, 0.45);
  --be-glow-violet: 0 0 40px rgba(168, 85, 247, 0.26);
  --be-card-shadow: 0 0 40px rgba(34, 211, 238, 0.14), 0 18px 50px rgba(0, 0, 0, 0.42);
  --be-card-shadow-hover: 0 0 54px rgba(34, 211, 238, 0.24), 0 24px 64px rgba(0, 0, 0, 0.52);
  --be-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --be-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --be-ease: cubic-bezier(0.22, 0.8, 0.24, 1);

  /* ---- remap the site's legacy token families -------------------------- */
  --bg: var(--void);
  --bg-raised: rgba(255, 255, 255, 0.06);
  --bg-sunken: #03030A;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.10);
  --panel2: rgba(255, 255, 255, 0.10);
  --surface: rgba(255, 255, 255, 0.06);
  --surface-elevated: rgba(255, 255, 255, 0.10);
  --panel-elevated: rgba(255, 255, 255, 0.10);
  --card: rgba(255, 255, 255, 0.06);
  --raised: rgba(255, 255, 255, 0.07);
  --raised2: rgba(255, 255, 255, 0.11);
  --sunken: #03030A;
  --line: var(--be-line);
  --line-soft: rgba(255, 255, 255, 0.09);
  --line-strong: var(--be-line-strong);
  --border: var(--be-line);
  --border-soft: var(--be-line);
  --bd: var(--be-line);
  --text-dim: rgba(255, 255, 255, 0.74);
  --text-faint: #8B93A7;
  --muted: var(--text-muted);
  --faint: #8B93A7;
  --dim: rgba(255, 255, 255, 0.70);
  /* every legacy "red" accent becomes the new brand */
  --red: var(--indigo);
  --red2: var(--indigo-light);
  --red-fill: #4F46E5;
  --red-hover: #4338CA;
  --red-dim: rgba(99, 102, 241, 0.16);
  --accent: var(--cyan);
  --accent-2: var(--indigo-light);
  --accent2: var(--indigo);
  --accent3: var(--violet);
  --accent-soft: rgba(34, 211, 238, 0.12);
  --primary: var(--indigo);
  --blue: var(--cyan);
  --code: rgba(3, 3, 10, 0.72);
  --good: #34D399;
  --ok: #34D399;
  --warn: #FBBF24;
  --bad: #F87171;
  --c42-bg: var(--void);
  --c42-raised: rgba(255, 255, 255, 0.06);
  --c42-raised-2: rgba(255, 255, 255, 0.10);
  --c42-sunken: #03030A;
  --c42-line: var(--be-line);
  --c42-line-strong: var(--be-line-strong);
  --c42-text: var(--text);
  --c42-dim: rgba(255, 255, 255, 0.76);
  --c42-faint: var(--text-muted);
  --c42-red: var(--indigo);
  --c42-red-hover: var(--indigo-light);
  --c42-red-fill: #4F46E5;
  --c42-red-fill-hover: #4338CA;
  --c42-red-dim: rgba(99, 102, 241, 0.18);
  --c42-red-soft: rgba(99, 102, 241, 0.16);
  --c42-accent-2: var(--indigo-light);
  --c42-sans: var(--be-sans);
  --c42-mono: var(--be-mono);
  --cain-bg: var(--void);
  --cain-surface: rgba(255, 255, 255, 0.06);
  --cain-surface-2: rgba(255, 255, 255, 0.10);
  --cain-border: var(--be-line);
  --cain-text: var(--text);
  --cain-text-muted: rgba(255, 255, 255, 0.70);
  --cain-primary: var(--indigo);
  --fg: var(--text);
  --mut: rgba(255, 255, 255, 0.70);
  --acc: var(--cyan);
  --ac: var(--cyan);
  --maxw: 1240px;
  --radius: var(--be-radius-sm);
  --max: 1240px;
  --home-gutter: clamp(16px, 3vw, 56px);
  color-scheme: dark;
}

/* ============================================================================
   1. BASE
   ========================================================================== */
html {
  background-color: var(--void);
  /* CSS-only aurora + grid: visible before the deferred script runs (and with JS off). */
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.042) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.042) 1px, transparent 1px),
    radial-gradient(62vw 62vw at 5% -12%, rgba(99, 102, 241, 0.55), transparent 66%),
    radial-gradient(50vw 50vw at 102% -8%, rgba(34, 211, 238, 0.34), transparent 66%),
    radial-gradient(58vw 58vw at 104% 106%, rgba(168, 85, 247, 0.42), transparent 66%),
    radial-gradient(40vw 40vw at -6% 104%, rgba(236, 72, 153, 0.24), transparent 66%);
  background-size: 40px 40px, 40px 40px, auto, auto, auto, auto;
  background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: fixed;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
/* Once the runtime paints its animated orbs, drop the static fallback so the two do not stack.
   Browsers without :has() simply keep both (a slightly brighter backdrop, no content effect). */
html:has(body.be-theme) { background-image: none; }
* { box-sizing: border-box; }
body {
  margin: 0;
  background: transparent !important;
  color: var(--be-ink) !important;
  font-family: var(--be-sans) !important;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: rgba(99, 102, 241, 0.55); color: #fff; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #070710; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--indigo), var(--violet)); border-radius: 99px; border: 2px solid #070710; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(var(--indigo-light), var(--cyan)); }

h1, h2, h3, h4, h5, h6,
.c42-hero-h, .tp-main h1, .ac-h1, .ac-h2, .fwf-h, .om h2, .om-t, .cp-h {
  color: var(--text) !important;
  font-family: var(--be-sans) !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(2.05rem, 4.2vw, 3.7rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.5rem); letter-spacing: -0.02em; }
h4, h5, h6 { letter-spacing: -0.015em; }
h1 em, h2 em, h3 em, .c42-hero-h em, .fwf-h em, .ac-hero h1 span {
  font-style: normal;
  background: linear-gradient(100deg, var(--indigo-light) 0%, var(--cyan) 55%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  text-shadow: none;
}
p, li, dd, dt, figcaption, blockquote { color: var(--be-ink); }
p a, li a, td a, dd a, blockquote a { color: var(--cyan); }
strong, b { color: #fff; font-weight: 700; }
small { color: var(--text-muted); }
a {
  color: var(--cyan);
  text-decoration-color: rgba(34, 211, 238, 0.35);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 200ms var(--be-ease), text-shadow 200ms var(--be-ease), border-color 200ms var(--be-ease), background 200ms var(--be-ease), box-shadow 200ms var(--be-ease), transform 200ms var(--be-ease);
}
a:hover { color: #67E8F9; text-shadow: 0 0 14px rgba(34, 211, 238, 0.45); }
:focus-visible {
  outline: 2px solid var(--cyan) !important;
  outline-offset: 3px !important;
  border-radius: 6px;
  box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.16);
}
[hidden] { display: none !important; }
hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.55), rgba(34, 211, 238, 0.45), transparent);
  margin: 2.2rem 0;
  opacity: .8;
}
blockquote {
  margin: 1.4rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--indigo);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 0 var(--be-radius-sm) var(--be-radius-sm) 0;
  color: var(--be-ink);
}
ul, ol { padding-left: 1.25em; }
li::marker { color: var(--cyan); }
img, video, canvas, svg { max-width: 100%; }
img { height: auto; }

code, kbd, samp, pre, .mono, [class*="mono"], [class*="kicker"], .tp-kicker, .ac-k, .fwf-kicker,
.om-kicker, .cp-mk, .cp-kl, .rsi-kicker, .t25-mono, .eyebrow {
  font-family: var(--be-mono) !important;
  font-feature-settings: "ss01" 1, "zero" 1;
}
code, kbd, samp {
  font-size: 0.86em;
  color: #C7D2FE;
  background: rgba(3, 3, 10, 0.64);
  border: 1px solid var(--be-line);
  border-radius: 7px;
  padding: 0.12em 0.42em;
  overflow-wrap: anywhere;
}
pre {
  color: #DCE3FF !important;
  background: rgba(3, 3, 10, 0.72) !important;
  border: 1px solid var(--be-line) !important;
  border-radius: var(--be-radius-sm) !important;
  padding: 1rem 1.15rem !important;
  overflow-x: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 40px rgba(99, 102, 241, 0.08);
}
pre code { background: none; border: 0; padding: 0; color: inherit; }
kbd { border-bottom-width: 2px; }
mark { background: rgba(236, 72, 153, 0.22); color: #fff; padding: 0 .18em; border-radius: 4px; }

/* seam / section rhythm */
section, article, main, header, footer, nav { position: relative; }
main { z-index: 1; }
.c42-wrap, .c100-wrap, .t25-wrap, .ac-wrap, .tp-main, .cp-w, .oa-wrap, .gvc-wrap {
  width: 100%;
}
@media (min-width: 1280px) {
  .c42-wrap { max-width: 1320px; }
  .tp-main { max-width: 1160px; }
}

/* ============================================================================
   2. THE AURORA BACKDROP (added by bleeding-edge.js, aria-hidden)
   ========================================================================== */
#be-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--void);
  contain: strict;
}
#be-bg .be-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.042) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.042) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 20%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 20%, transparent 82%);
}
#be-bg .be-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
}
#be-bg .be-orb-in {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
  filter: blur(92px);
  transform: translate3d(calc(var(--be-shift, 0) * 14px), calc(var(--be-shift-y, 0) * 14px), 0);
  transition: transform 400ms ease-out;
}
#be-bg .be-grid {
  opacity: .8;
}
#be-bg .be-spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(560px circle at var(--be-mx, 50%) var(--be-my, 30%), rgba(99, 102, 241, 0.16), rgba(34, 211, 238, 0.05) 38%, transparent 66%);
  mix-blend-mode: screen;
  transition: background-position 120ms linear;
}
#be-bg .be-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.55) 18%, rgba(165, 180, 252, 0.85) 50%, rgba(168, 85, 247, 0.45) 82%, transparent);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.55), 0 0 60px rgba(99, 102, 241, 0.30);
  opacity: .5;
  animation: be-scan 13s linear infinite;
}
@keyframes be-scan { 0% { transform: translateY(-2vh); } 100% { transform: translateY(102vh); } }

#be-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 2147483600;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--indigo), var(--violet) 45%, var(--cyan));
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.75), 0 0 28px rgba(99, 102, 241, 0.45);
  pointer-events: none;
}
html body:has(.c42sb) #be-progress { top: 46px; }

/* pointer-lit card surface (added by JS, aria-hidden) */
.be-glint {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0 !important;
  background: radial-gradient(240px circle at var(--be-cx, 50%) var(--be-cy, 50%), rgba(34, 211, 238, 0.20), rgba(99, 102, 241, 0.10) 42%, transparent 68%);
  mix-blend-mode: screen;
}
html body :is(.c42-card, .tp-card, .t25-card, .om-card, .cp-k, .cp-m, .fwf-plan, .fwf-ladder > li, .card, .stat-card, .rsi-card, .cl-q, .ct-card, .gvc-flow li, .t25-hub-list li, .t25-demo, .tp-note, .core > li):hover > .be-glint { opacity: 1 !important; }

/* subtle 3D response to the pointer (1200px-safe, reduced-motion aware) */
html body [data-be-tilt] {
  --be-rx: 0deg;
  --be-ry: 0deg;
  transform: perspective(900px) rotateX(var(--be-rx)) rotateY(var(--be-ry)) !important;
  transition: transform 260ms var(--be-ease), border-color 260ms var(--be-ease), box-shadow 260ms var(--be-ease), background 260ms var(--be-ease);
  transform-style: preserve-3d;
}
html body [data-be-tilt]:hover {
  transform: perspective(900px) rotateX(var(--be-rx)) rotateY(var(--be-ry)) translateY(-3px) !important;
}

/* live-status dots everywhere */
html body :is(.cp-dot, .fwf-dot, .vl-dot, .live-dot, [class*="live-dot"], .status-dot) {
  background: var(--cyan) !important;
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.85) !important;
  animation: be-ping 1.8s ease-out infinite !important;
}
html body :is(.cp-live, .fwf-live-badge, [class*="live-badge"], .status-live) {
  color: var(--cyan) !important;
  letter-spacing: 0.12em;
}

/* fixed PBFT status bar */
html body .c42sb {
  background: linear-gradient(90deg, #05050A, #0B0B20 48%, #05050A) !important;
  border-bottom: 1px solid rgba(99, 102, 241, 0.45) !important;
  box-shadow: 0 8px 28px -14px rgba(34, 211, 238, 0.60) !important;
  color: var(--be-ink) !important;
  font-family: var(--be-mono) !important;
}
html body .c42sb a { color: var(--cyan) !important; }
html body .c42sb svg, html body .c42sb-corner { filter: hue-rotate(218deg) saturate(1.35) brightness(1.25) drop-shadow(0 0 6px rgba(99, 102, 241, 0.65)) !important; }
html body .c42sb-panel { background: rgba(6, 6, 14, 0.98) !important; border-bottom-color: var(--glass-border) !important; }
html body:has(.c42sb) #be-progress { top: 46px; }
@media (max-width: 640px) { html body:has(.c42sb) #be-progress { top: 64px; } }

#be-bg .be-o1 { width: 62vw; height: 62vw; left: -20vw; top: -24vw; opacity: 0.75; animation: be-drift-a 26s ease-in-out infinite; }
#be-bg .be-o1 .be-orb-in { background: radial-gradient(circle at 42% 42%, #6366F1 0%, rgba(99, 102, 241, 0.55) 38%, transparent 70%); }
#be-bg .be-o2 { width: 48vw; height: 48vw; right: -16vw; top: -20vw; opacity: 0.50; animation: be-drift-b 30s ease-in-out infinite; }
#be-bg .be-o2 .be-orb-in { background: radial-gradient(circle at 50% 50%, #22D3EE 0%, rgba(34, 211, 238, 0.42) 40%, transparent 70%); }
#be-bg .be-o3 { width: 54vw; height: 54vw; right: -18vw; bottom: -26vw; opacity: 0.55; animation: be-drift-c 28s ease-in-out infinite; }
#be-bg .be-o3 .be-orb-in { background: radial-gradient(circle at 45% 45%, #A855F7 0%, rgba(168, 85, 247, 0.45) 42%, transparent 72%); }
#be-bg .be-o4 { width: 34vw; height: 34vw; left: -10vw; bottom: -16vw; opacity: 0.30; animation: be-drift-d 24s ease-in-out infinite; }
#be-bg .be-o4 .be-orb-in { background: radial-gradient(circle at 50% 50%, #EC4899 0%, rgba(236, 72, 153, 0.40) 40%, transparent 70%); }
@keyframes be-drift-a { 0%,100%{transform:translate3d(0,0,0) scale(1)} 50%{transform:translate3d(6vw,4vw,0) scale(1.08)} }
@keyframes be-drift-b { 0%,100%{transform:translate3d(0,0,0) scale(1)} 50%{transform:translate3d(-5vw,6vw,0) scale(1.12)} }
@keyframes be-drift-c { 0%,100%{transform:translate3d(0,0,0) scale(1)} 50%{transform:translate3d(-4vw,-5vw,0) scale(1.07)} }
@keyframes be-drift-d { 0%,100%{transform:translate3d(0,0,0) scale(1)} 50%{transform:translate3d(5vw,-3vw,0) scale(1.14)} }

/* ============================================================================
   3. NAVIGATION
   ========================================================================== */
html body header.cs-top,
html body .c42-top {
  position: sticky !important;
  top: 0;
  z-index: 80;
  background: rgba(5, 5, 10, 0.72) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), inset 0 -1px 0 rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  font-family: var(--be-sans) !important;
}
html body:has(.c42sb) header.cs-top,
html body:has(.c42sb) .c42-top { top: 46px !important; }
html body .c42-top .c42-wrap,
html body header.cs-top .cs-w {
  max-width: 1440px;
  min-height: 68px;
  gap: 22px;
}
html body header.cs-top .cs-brand,
html body .c42-brand,
html body .cs-brand {
  color: var(--text) !important;
  font-family: var(--be-mono) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
}
html body header.cs-top .cs-brand small,
html body .c42-brand small,
html body .cs-brand small {
  color: var(--cyan) !important;
  font-family: var(--be-mono) !important;
  font-size: 9.5px !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
}
html body .c42-nav,
html body header.cs-top .cs-nav {
  font-family: var(--be-mono) !important;
  font-size: 10.5px !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  gap: 4px 16px;
  align-items: center;
}
html body .c42-nav > a,
html body .c42-nav > details > summary,
html body header.cs-top .cs-nav a {
  color: rgba(255, 255, 255, 0.66) !important;
  text-decoration: none !important;
  padding: 7px 2px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  border-radius: 0;
  box-shadow: none;
  white-space: nowrap;
}
html body .c42-nav > a:hover,
html body .c42-nav > details > summary:hover,
html body .c42-nav > details[open] > summary,
html body header.cs-top .cs-nav a:hover,
html body header.cs-top .cs-nav a[aria-current="page"] {
  color: var(--text) !important;
  border-bottom-color: var(--cyan);
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.30);
}
/* the coloured shortcut chips in the nav (Top 25, Daily Evidence, Products...) */
html body .c42-nav > a[style*="background" i],
html body .c42-nav > details.c42-top25 > summary[style*="background" i] {
  color: var(--cyan) !important;
  background: rgba(34, 211, 238, 0.08) !important;
  border: 1px solid rgba(34, 211, 238, 0.42) !important;
  border-radius: 999px !important;
  padding: 4px 11px !important;
  font-weight: 700 !important;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.12) !important;
  text-shadow: none !important;
}
html body .c42-nav > a[style*="background" i]:hover {
  background: rgba(34, 211, 238, 0.16) !important;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.30) !important;
}
html body .c42-sites,
html body .c42-sites a { font-family: var(--be-mono) !important; letter-spacing: 0.08em; }
html body .c42-sites a { color: var(--text-muted) !important; border-color: var(--be-line) !important; background: transparent !important; }
html body .c42-sites a:hover { color: var(--cyan) !important; border-color: var(--cyan) !important; }
html body .c42-nav-toggle,
html body .c42-burger,
html body .ac-burger {
  color: var(--text) !important;
  border: 1px solid var(--be-line) !important;
  background: var(--be-glass) !important;
  border-radius: 999px !important;
}
/* nav CTA (injected header) */
html body header.cs-top .cs-act a,
html body .c42-actions .c42-btn {
  color: rgba(255, 255, 255, 0.72) !important;
  font-family: var(--be-mono) !important;
  font-size: 10.5px !important;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none !important;
}
html body header.cs-top .cs-act a.cs-go {
  color: #fff !important;
  background: linear-gradient(180deg, #4F46E5 0%, #4338CA 100%) !important;
  border: 1.5px solid var(--indigo-light) !important;
  border-radius: 999px !important;
  padding: 10px 18px !important;
  font-weight: 800 !important;
  box-shadow: var(--be-glow-indigo) !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}
html body header.cs-top .cs-act a.cs-go:hover {
  transform: translateY(-2px);
  brightness: 1.08;
  box-shadow: 0 0 34px rgba(99, 102, 241, 0.85) !important;
}
/* mega menus */
html body .c42-menu-panel,
html body .cs-menu-panel {
  background: rgba(8, 8, 18, 0.97) !important;
  border: 1px solid var(--glass-border) !important;
  border-top: 2px solid var(--indigo) !important;
  border-radius: 0 0 var(--be-radius) var(--be-radius) !important;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65), 0 0 60px rgba(99, 102, 241, 0.12) !important;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
html body .c42-menu-panel a,
html body .cs-menu-panel a {
  color: var(--be-ink) !important;
  font-family: var(--be-sans) !important;
  font-size: 14px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  border-radius: 10px;
}
html body .c42-menu-panel a:hover,
html body .cs-menu-panel a:hover {
  color: #fff !important;
  background: rgba(99, 102, 241, 0.16) !important;
  border-left-color: var(--cyan) !important;
}
html body .c42-mega-col-h {
  color: var(--cyan) !important;
  font-family: var(--be-mono) !important;
  font-size: 9.5px !important;
  letter-spacing: 0.18em;
}
html body .cs-menu-panel { display: none; }
html body .cs-menu[open] .cs-menu-panel { display: flex; flex-direction: column; }

/* ============================================================================
   4. BUTTONS / PILLS / BADGES
   ========================================================================== */
html body :is(.c42-btn, .fwf-btn, .ac-btn, .t25-demo button, .tp-form button, .cp-btn, .oa-controls button,
  .pl-btn, .pl-go, .gvc-cta a, .btn, button.btn, input[type="submit"], input[type="button"], .ac-opt, .cta) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  min-height: 42px;
  padding: 0.68em 1.28em;
  border-radius: var(--be-radius-pill) !important;
  border: 1.5px solid var(--glass-border) !important;
  background: var(--be-glass) !important;
  color: var(--text) !important;
  font-family: var(--be-sans) !important;
  font-size: 0.93rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: none;
  transition: transform 200ms var(--be-ease), box-shadow 200ms var(--be-ease), border-color 200ms var(--be-ease), background 200ms var(--be-ease), filter 200ms var(--be-ease);
}
html body :is(.c42-btn, .fwf-btn, .ac-btn, .t25-demo button, .tp-form button, .cp-btn, .oa-controls button,
  .pl-btn, .pl-go, .gvc-cta a, .btn, button.btn, input[type="submit"], input[type="button"], .cta):hover {
  transform: translateY(-2px);
  border-color: var(--cyan) !important;
  box-shadow: var(--be-glow-cyan);
  filter: brightness(1.06);
}
/* primary */
html body :is(.c42-btn.primary, .c42-btn--primary, .fwf-btn:not(.alt):not(.fwf-btn-sm), .ac-btn.p, .ac-btn.primary,
  .pl-btn.pl-main, .pl-go, .tp-form button, .t25-demo button, .oa-controls button:first-of-type,
  .btn-primary, .btn.primary, button.primary, .cta.primary, input[type="submit"]) {
  background: linear-gradient(110deg, #4338CA 0%, #4F46E5 34%, #4338CA 68%, #4F46E5 100%) !important;
  background-size: 220% 100% !important;
  border-color: var(--indigo-light) !important;
  color: #fff !important;
  box-shadow: var(--be-glow-indigo) !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}
html body :is(.c42-hero .c42-btn.primary, header.cs-top .cs-act a.cs-go, .cf-cta .cf-btn-p, .fwf-cta .fwf-btn:not(.alt)) { animation: be-sheen 9s ease-in-out infinite; }
@keyframes be-sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
html body :is(.c42-btn.primary, .fwf-btn:not(.alt):not(.fwf-btn-sm), .ac-btn.p, .tp-form button,
  .t25-demo button, .oa-controls button:first-of-type, .btn-primary, .btn.primary, button.primary,
  .cta.primary, input[type="submit"]):hover {
  transform: translateY(-2px);
  box-shadow: 0 0 38px rgba(99, 102, 241, 0.90), 0 12px 30px rgba(0, 0, 0, 0.40) !important;
}
/* secondary */
html body :is(.c42-btn:not(.primary), .fwf-btn.alt, .ac-btn.ghost, .oa-secondary, .btn-secondary) {
  background: rgba(5, 5, 10, 0.38) !important;
  border: 1.5px solid var(--cyan) !important;
  color: var(--cyan) !important;
  box-shadow: none;
}
html body :is(.c42-btn:not(.primary), .fwf-btn.alt, .ac-btn.ghost, .oa-secondary, .btn-secondary):hover {
  background: rgba(34, 211, 238, 0.10) !important;
  box-shadow: var(--be-glow-cyan) !important;
  color: #A5F3FC !important;
}
/* arrows on obvious primary CTAs that don't already carry one */
html body header.cs-top .cs-act a.cs-go::after,
html body :is(.tp-form button, .t25-demo button, .oa-controls button:first-of-type)::after { content: " →"; font-weight: 800; }
/* pills / badges / tags */
html body :is(.badge, .pill, .tag, .chip, .t25-pill, .om-badge, .rsi-badge, .tp-status,
  [class*="-badge"]:not(.om-sealicon), [class*="pill"]):not(.c42-btn):not(a) {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--indigo-light);
  padding: 0.18em 0.68em;
  font-family: var(--be-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.6;
  white-space: nowrap;
}
html body :is(.t25-pill.good, .good, .ok, .om-badge.y, .badge.good) { color: #86EFAC !important; border-color: rgba(52, 211, 153, 0.55) !important; background: rgba(52, 211, 153, 0.10) !important; }
html body :is(.t25-pill.warn, .warn, .om-badge.w, .badge.warn) { color: #FCD34D !important; border-color: rgba(251, 191, 36, 0.55) !important; background: rgba(251, 191, 36, 0.10) !important; }
html body :is(.t25-pill.bad, .bad, .om-badge.n, .badge.bad) { color: #FCA5A5 !important; border-color: rgba(248, 113, 113, 0.55) !important; background: rgba(248, 113, 113, 0.10) !important; }

/* ============================================================================
   5. GLASS CARDS / PANELS / TABLES / FORMS
   ========================================================================== */
html body :is(.c42-card, .tp-card, .t25-card, .ac-rung, .ac-stats > div, .om-card, .cp-m, .cp-k,
  .fwf-live, .fwf-plan, .fwf-ladder > li, .fwf-engines > div, .fwf-selfscan, .fwf-daily,
  .card, .stat-card, .rsi-card, .cl-q, .ct-card, .gvc-thesis, .gvc-flow li, .gvc-truth > div,
  .t25-hub-list li, .t25-demo, .t25-note, .tp-note, .tp-form, .panel, .oa-cta) {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--be-radius) !important;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--be-card-shadow);
  color: var(--be-ink) !important;
  transition: transform 260ms var(--be-ease), border-color 260ms var(--be-ease), box-shadow 260ms var(--be-ease), background 260ms var(--be-ease);
}
html body :is(.c42-card, .tp-card, .t25-card, .ac-rung, .ac-stats > div, .om-card, .cp-m, .cp-k,
  .fwf-live, .fwf-plan, .fwf-ladder > li, .fwf-engines > div, .card, .stat-card, .rsi-card,
  .cl-q, .ct-card, .gvc-thesis, .gvc-flow li, .t25-hub-list li, .t25-demo, .t25-note, .tp-note,
  .tp-form):hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.48) !important;
  box-shadow: var(--be-card-shadow-hover);
}
html body :is(.c42-card, .tp-card, .t25-card, .card, .stat-card) h3,
html body :is(.c42-card, .tp-card, .t25-card, .card, .stat-card) h4 { color: var(--text) !important; }
html body :is(.c42-card, .tp-card, .t25-card, .card, .stat-card) p { color: var(--be-ink-soft) !important; }
/* cards should not clip their own glow */
html body :is(.c42-card, .tp-card, .t25-card, .om-card, .cp-m, .cp-k, .fwf-plan, .card, .stat-card) {
  overflow: visible;
}
/* stat number colour rhythm */
html body :is(.om-big, .cp-kv, .stat-value, .t25-stat, .rsi-big, .ac-stats b, .ac-rung b) {
  font-family: var(--be-sans) !important;
  font-weight: 900 !important;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: var(--cyan) !important;
  text-shadow: 0 0 22px rgba(34, 211, 238, 0.28);
  -webkit-text-fill-color: currentColor;
  background: none !important;
}
html body :is(.om-big, .cp-kv, .stat-value, .t25-stat, .rsi-big, .ac-stats b, .ac-rung b):nth-child(2n) { color: var(--violet) !important; text-shadow: 0 0 22px rgba(168, 85, 247, 0.26); }
html body :is(.om-big, .cp-kv, .stat-value, .t25-stat, .rsi-big, .ac-stats b, .ac-rung b):nth-child(3n) { color: var(--pink) !important; text-shadow: 0 0 22px rgba(236, 72, 153, 0.26); }
html body :is(.om-big.ok, .cp-kv.ok, .stat-value.ok) { color: #6EE7B7 !important; }
html body :is(.om-big.no, .cp-kv.no, .stat-value.no) { color: #FCA5A5 !important; }

/* tables */
html body table:not(.be-plain) {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--be-line);
  border-radius: var(--be-radius-sm);
  overflow: hidden;
  font-size: 0.92rem;
}
html body table:not(.be-plain) th {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--cyan) !important;
  font-family: var(--be-mono) !important;
  font-size: 0.70rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--glass-border) !important;
  padding: 0.8rem 0.95rem !important;
  text-align: left;
}
html body table:not(.be-plain) td {
  color: var(--be-ink) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 0.72rem 0.95rem !important;
  vertical-align: top;
  background: transparent !important;
}
html body table:not(.be-plain) tr:last-child td { border-bottom: 0 !important; }
html body table:not(.be-plain) tbody tr:hover td { background: rgba(99, 102, 241, 0.10) !important; }
html body table:not(.be-plain) th[scope] { color: var(--indigo-light) !important; }

/* forms */
html body input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
html body select,
html body textarea {
  width: 100%;
  background: rgba(6, 6, 14, 0.66) !important;
  color: var(--text) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--be-radius-sm) !important;
  padding: 0.72rem 0.9rem !important;
  font-family: var(--be-sans) !important;
  font-size: 0.94rem !important;
  line-height: 1.5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 200ms var(--be-ease), box-shadow 200ms var(--be-ease), background 200ms var(--be-ease);
}
html body input::placeholder,
html body textarea::placeholder { color: #7E879B !important; opacity: 1; }
html body input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):focus,
html body select:focus,
html body textarea:focus {
  outline: none !important;
  border-color: var(--cyan) !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.20), 0 0 28px rgba(34, 211, 238, 0.28) !important;
  background: rgba(8, 10, 22, 0.9) !important;
}
html body input[type="checkbox"], html body input[type="radio"] { accent-color: var(--cyan); }
html body label, html body legend {
  color: var(--text-muted) !important;
  font-family: var(--be-mono) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
html body fieldset { border-color: var(--be-line); }
html body ::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .7; }

/* RSI evidence pages: long identifiers and wide tables must wrap/scroll, never widen the page */
html body :is(.rsi-wrap, .rsi-grid, .rsi-card, .rsi-note, .rsi-scope) { max-width: 100%; min-width: 0; }
html body .rsi-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
html body :is(.rsi-card, .rsi-big, .rsi-note, .rsi-table td, .rsi-table th) { overflow-wrap: anywhere; word-break: break-word; }
html body .rsi-table { display: block; width: 100%; max-width: 100%; overflow-x: auto; }
html body .rsi-big { font-size: clamp(1.25rem, 3.4vw, 2.2rem) !important; line-height: 1.05; }

/* charts: a soft glow behind the line-work (the strokes themselves keep their data colours) */
html body :is(.cp-m, .rsi-card, .chart, .spark, figure) svg {
  filter: drop-shadow(0 0 7px rgba(34, 211, 238, 0.22)) drop-shadow(0 0 18px rgba(99, 102, 241, 0.10));
}
html body :is(.cp-m, .rsi-card, .chart) svg :is(path, polyline, line) {
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* utility surfaces */
html body :is(.note, .callout, .alert) {
  border-radius: var(--be-radius-sm) !important;
  border-left: 3px solid var(--cyan) !important;
  background: rgba(34, 211, 238, 0.06) !important;
  color: var(--be-ink) !important;
}
html body :is(.u-mono, .eyebrow, .kicker, .tp-kicker, .ac-k, .fwf-kicker, .om-kicker, .rsi-kicker,
  .c42-kicker, .c42-intro-kicker, .section-kicker, .overline) {
  color: var(--cyan) !important;
  font-family: var(--be-mono) !important;
  font-size: 0.70rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.17em !important;
  text-transform: uppercase !important;
}
html body :is(.c42-kicker, .tp-kicker, .ac-k, .fwf-kicker, .oa-kicker)::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.6em;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.9);
  vertical-align: 0.08em;
  animation: be-ping 1.8s ease-out infinite;
}
html body :is(.c42-kicker, .tp-kicker)::after {
  content: "_";
  color: var(--cyan);
  animation: be-blink 1.2s steps(1) infinite;
}
@keyframes be-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
html body .dim, html body .muted, html body .text-muted, html body .t25-foot,
html body .ac-dim, html body .tp-updated, html body .om-scope, html body .rsi-note {
  color: var(--text-muted) !important;
}

/* ============================================================================
   6. HOMEPAGE — portal, mark, evidence, hero, falsework
   ========================================================================== */
/* AGI–RSI portal */
html body #cain-portal {
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(99, 102, 241, 0.35), transparent 62%),
    radial-gradient(900px 500px at 100% 0%, rgba(34, 211, 238, 0.18), transparent 62%),
    linear-gradient(180deg, rgba(6, 7, 16, 0.92), rgba(5, 5, 10, 0.96)) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  color: var(--be-ink) !important;
  padding-top: clamp(30px, 5vw, 58px) !important;
  padding-bottom: clamp(26px, 4vw, 46px) !important;
}
html body #cain-portal .cp-w { max-width: 1440px; }
html body #cain-portal .cp-h {
  font-size: clamp(2.15rem, 4.6vw, 4.1rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.05em !important;
  line-height: 1.02 !important;
  margin: 0.18em 0 0.22em !important;
  max-width: 1180px;
  text-wrap: balance;
  background: linear-gradient(100deg, #fff 15%, var(--indigo-light) 48%, var(--cyan) 82%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  text-shadow: 0 0 60px rgba(99, 102, 241, 0.30);
}
html body #cain-portal .cp-sub { color: rgba(255, 255, 255, 0.78) !important; max-width: 1000px; }
html body #cain-portal .cp-kicker,
html body #cain-portal .cp-top,
html body #cain-portal .cp-k,
html body #cain-portal .cp-mk { font-family: var(--be-mono) !important; letter-spacing: 0.10em; }
html body #cain-portal .cp-k,
html body #cain-portal .cp-m {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--be-radius) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: var(--be-card-shadow);
}
html body #cain-portal .cp-kv { color: var(--cyan) !important; }
html body #cain-portal .cp-kl { color: var(--text-muted) !important; }
html body #cain-portal .cp-live { color: var(--cyan) !important; }
html body #cain-portal .cp-dot { background: var(--cyan) !important; box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.8); }
html body #cain-portal .cp-btn { min-height: 30px; padding: 0.25em 0.8em; font-size: 0.68rem !important; }
html body #cain-portal a { color: var(--cyan) !important; }

/* the five-arm mark band */
html body #cain-top-mark {
  background:
    radial-gradient(58% 140% at 50% 0%, rgba(99, 102, 241, 0.28), transparent 72%),
    linear-gradient(180deg, rgba(6, 8, 20, 0.88), rgba(5, 5, 10, 0.94)) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  box-shadow: inset 0 0 90px rgba(99, 102, 241, 0.16), 0 24px 64px -24px rgba(34, 211, 238, 0.35) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}
html body #cain-top-mark::before {
  background: radial-gradient(50% 58% at 50% 46%, rgba(99, 102, 241, 0.55) 0%, rgba(34, 211, 238, 0.16) 44%, transparent 74%) !important;
  animation: be-mark-pulse 8s ease-in-out infinite !important;
}
@keyframes be-mark-pulse { 0%,100%{opacity:.35;transform:scale(1)} 50%{opacity:.65;transform:scale(1.04)} }
html body #cain-top-mark .ctm-name {
  font-family: var(--be-mono) !important;
  font-weight: 800 !important;
  letter-spacing: 0.16em;
  color: #fff !important;
  background-image: linear-gradient(100deg, #fff 0%, #fff 32%, var(--indigo-light) 48%, #fff 62%, #fff 100%) !important;
  background-size: 200% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
  filter: drop-shadow(0 0 18px rgba(99, 102, 241, 0.65)) !important;
  animation: be-mark-sheen 8s ease-in-out infinite !important;
}
@keyframes be-mark-sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
html body #cain-top-mark .ctm-sub {
  color: var(--cyan) !important;
  font-family: var(--be-mono) !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase;
}
html body #cain-top-mark .c42-motto { color: var(--indigo-light) !important; text-shadow: 0 0 24px rgba(99, 102, 241, 0.55); }
html body #cain-top-mark .ctm-explain { color: rgba(255, 255, 255, 0.82) !important; }
html body #cain-top-mark .ctm-status {
  display: inline-block !important;
  width: auto !important;
  margin: 8px auto 0 !important;
  color: var(--cyan) !important;
  font-family: var(--be-mono) !important;
  font-size: 0.68rem;
  letter-spacing: 0.10em;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  padding: 0.16em 0.7em;
  white-space: nowrap;
}
html body #cain-top-mark .ctm-audit-link {
  color: var(--cyan) !important;
  border: 1.5px solid var(--cyan) !important;
  border-radius: 999px !important;
  padding: 0.6em 1.1em !important;
  text-decoration: none !important;
  background: rgba(34, 211, 238, 0.06) !important;
  box-shadow: none;
}
html body #cain-top-mark .ctm-audit-link:hover { box-shadow: var(--be-glow-cyan); }
html body #cain-top-mark .ctm-review { color: var(--text-muted) !important; }

/* evidence blocks */
html body:has(#cain-top-mark) .om,
html body .om {
  --om-bg: var(--void);
  --om-card: var(--glass-bg);
  --om-line: var(--glass-border);
  --om-gold: var(--indigo-light);
  --om-ink: #fff;
  --om-dim: rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(1100px 440px at 16% -10%, rgba(99, 102, 241, 0.22), transparent 62%),
    radial-gradient(800px 380px at 100% 0%, rgba(34, 211, 238, 0.10), transparent 62%),
    linear-gradient(180deg, rgba(7, 8, 18, 0.86), rgba(5, 5, 10, 0.92)) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  color: var(--be-ink) !important;
  padding-top: clamp(34px, 5vw, 64px) !important;
  padding-bottom: clamp(34px, 5vw, 64px) !important;
}
html body:has(#cain-top-mark) .om-wrap,
html body .om-wrap { max-width: 1440px !important; }
html body .om-kicker,
html body:has(#cain-top-mark) .om :is(.om-kicker, .om-ph) {
  color: var(--cyan) !important;
  font-family: var(--be-mono) !important;
  font-size: 0.66rem !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(34, 211, 238, 0.28) !important;
}
html body .om-t,
html body .om h2,
html body .om h3,
html body:has(#cain-top-mark) .om :is(.om-t, h2, h3) {
  color: var(--text) !important;
  text-shadow: none !important;
  font-family: var(--be-sans) !important;
  letter-spacing: -0.035em !important;
  line-height: 1.12 !important;
}
html body .om-t { font-size: clamp(1.35rem, 2.4vw, 2rem) !important; max-width: 34ch; }
html body .om h3 { color: var(--indigo-light) !important; }
html body .om-card,
html body:has(#cain-top-mark) .om-card {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--be-radius) !important;
  box-shadow: var(--be-card-shadow) !important;
  /* The evidence feed can render hundreds of cards; keep the glass colour without a
     per-card backdrop filter, which would be expensive while scrolling. */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html body .om-card p { color: var(--be-ink-soft) !important; overflow-wrap: anywhere; }
html body .om-card :is(h2, h3, .om-big, .om-t) { overflow-wrap: anywhere; }
html body .om-big,
html body:has(#cain-top-mark) .om .om-big:not(.ok):not(.no):not(.info) {
  color: var(--cyan) !important;
  text-shadow: 0 0 22px rgba(34, 211, 238, 0.25) !important;
  animation: none !important;
  font-family: var(--be-sans) !important;
  letter-spacing: -0.04em !important;
}
html body .om-grid .om-card:nth-child(2) .om-big { color: var(--violet) !important; text-shadow: 0 0 22px rgba(168, 85, 247, 0.25) !important; }
html body .om-grid .om-card:nth-child(3) .om-big { color: var(--pink) !important; text-shadow: 0 0 22px rgba(236, 72, 153, 0.25) !important; }
html body .om a,
html body:has(#cain-top-mark) .om a { color: var(--cyan) !important; }
html body .om .om-foot,
html body .om .om-scope { color: var(--text-muted) !important; }
html body .om code { color: #C7D2FE !important; background: rgba(3, 3, 10, 0.6) !important; border-color: var(--be-line) !important; }

/* hero */
html body .c42-hero {
  padding: clamp(64px, 9vw, 140px) 0 clamp(54px, 7vw, 100px) !important;
  background: transparent !important;
  border-bottom: 0 !important;
  text-align: center;
}
html body .c42-hero::before {
  content: "";
  position: absolute;
  inset: -10% 10% auto;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.18), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}
html body .c42-hero-h {
  font-size: clamp(2.7rem, 6.4vw, 6rem) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.055em !important;
  max-width: 15ch !important;
  margin: 0 auto 0.36em !important;
  color: #fff !important;
  text-shadow: 0 0 80px rgba(99, 102, 241, 0.20);
}
html body .c42-hero-h em {
  display: inline-block;
  background: linear-gradient(100deg, var(--indigo-light) 0%, var(--cyan) 38%, var(--violet) 66%, var(--indigo-light) 100%) !important;
  background-size: 220% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  animation: be-gradient 9s ease-in-out infinite;
}
@keyframes be-gradient { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
html body .c42-hero .c42-kicker,
html body .c42-hero .c42-intro-kicker {
  color: var(--cyan) !important;
  font-family: var(--be-mono) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase;
}
html body .c42-lede {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem) !important;
  line-height: 1.62 !important;
  max-width: 74ch;
}
html body .c42-hero .c42-btn { padding: 0.82em 1.4em !important; font-size: 0.97rem !important; }
/* inline chips in the hero */
html body .c42-hero span[style*="border-radius"],
html body .c42-hero span[style*="background"] {
  color: var(--text-muted) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--be-line) !important;
  border-radius: 999px !important;
  font-family: var(--be-mono) !important;
  letter-spacing: 0.06em;
}

/* falsework proof ladder */
html body #falsework-front {
  background:
    radial-gradient(900px 460px at 12% 0%, rgba(34, 211, 238, 0.10), transparent 62%),
    linear-gradient(180deg, rgba(6, 7, 16, 0.72), rgba(5, 5, 10, 0.86)) !important;
  border-top: 1px solid var(--glass-border) !important;
  border-bottom: 1px solid var(--glass-border) !important;
}
html body #falsework-front .fwf-h { font-size: clamp(2rem, 4.4vw, 3.7rem) !important; letter-spacing: -0.045em !important; }
html body #falsework-front .fwf-sub { color: var(--be-ink-soft) !important; }
html body #falsework-front .fwf-kicker { color: var(--cyan) !important; }
html body #falsework-front .fwf-live-badge {
  color: var(--cyan) !important;
  background: rgba(34, 211, 238, 0.10) !important;
  border: 1px solid rgba(34, 211, 238, 0.45) !important;
  border-radius: 999px !important;
  font-family: var(--be-mono) !important;
  letter-spacing: 0.12em;
}
html body #falsework-front .fwf-tabs { gap: 6px; }
html body #falsework-front .fwf-tab {
  border-radius: 999px !important;
  border: 1px solid var(--be-line) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--text-muted) !important;
  font-family: var(--be-mono) !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.06em;
  padding: 0.44em 0.8em;
}
html body #falsework-front .fwf-tab.is-on {
  color: var(--cyan) !important;
  border-color: var(--cyan) !important;
  background: rgba(34, 211, 238, 0.10) !important;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.18);
}
html body #falsework-front .fwf-code {
  background: rgba(3, 3, 10, 0.72) !important;
  color: #DCE3FF !important;
  border: 1px solid var(--be-line) !important;
  border-radius: var(--be-radius-sm) !important;
  font-family: var(--be-mono) !important;
}
html body #falsework-front .fwf-plan.is-feature {
  border-color: var(--indigo) !important;
  box-shadow: 0 0 46px rgba(99, 102, 241, 0.32) !important;
}
html body #falsework-front .fwf-num {
  color: var(--void) !important;
  background: linear-gradient(140deg, var(--indigo-light), var(--cyan)) !important;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.30);
}
html body #falsework-front .fwf-dot,
html body #falsework-front .fwf-live-badge::before {
  background: var(--cyan) !important;
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7) !important;
  animation: be-ping 1.8s ease-out infinite !important;
}
@keyframes be-ping { 0%{box-shadow:0 0 0 0 rgba(34,211,238,.7)} 70%{box-shadow:0 0 0 9px rgba(34,211,238,0)} 100%{box-shadow:0 0 0 0 rgba(34,211,238,0)} }

/* ============================================================================
   7. COMMON PAGE FAMILIES (top25, academy, trust pages, auditor, misc)
   ========================================================================== */
html body .t25-top {
  background: rgba(5, 5, 10, 0.72) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
html body .t25-badge {
  color: var(--void) !important;
  background: linear-gradient(140deg, var(--indigo-light), var(--cyan)) !important;
  border-radius: 999px !important;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.25);
}
html body .t25-home { color: #fff !important; font-family: var(--be-mono) !important; letter-spacing: 0.10em; text-transform: uppercase; font-size: 0.92rem; }
html body .t25-crumb { color: var(--text-muted) !important; font-family: var(--be-mono); font-size: 0.72rem; letter-spacing: 0.06em; }
html body .t25-side { border: 1px solid var(--be-line); border-radius: var(--be-radius); padding: 14px; background: rgba(255, 255, 255, 0.035); backdrop-filter: blur(12px); }
html body .t25-side h4 { color: var(--cyan) !important; font-family: var(--be-mono) !important; letter-spacing: 0.14em; }
html body .t25-side li a { color: var(--be-ink) !important; border-radius: 10px; }
html body .t25-side li a:hover { background: rgba(99, 102, 241, 0.16) !important; color: #fff !important; }
html body .t25-side li a[aria-current="page"] { background: rgba(34, 211, 238, 0.10) !important; border-left-color: var(--cyan) !important; }
html body .t25-main h1 { font-family: var(--be-sans) !important; }
html body .t25-main h2 { border-bottom-color: var(--be-line) !important; }
html body .t25-lede { color: rgba(255, 255, 255, 0.76) !important; }
html body .t25-cards { gap: 16px; }
html body .t25-card { padding: 18px; }
html body .t25-card h3 { color: var(--text) !important; }
html body a.t25-card { color: var(--text) !important; }
html body .t25-note { border-left: 3px solid var(--violet) !important; border-radius: var(--be-radius-sm) !important; }
html body .t25-note.good { border-left-color: #34D399 !important; }
html body .t25-note.bad { border-left-color: #F87171 !important; }
html body .t25-steps > li::before { background: linear-gradient(140deg, var(--indigo-light), var(--cyan)) !important; color: var(--void) !important; box-shadow: 0 0 18px rgba(34, 211, 238, 0.3); }
html body .t25-hub-list { gap: 14px; }
html body .t25-rank { color: var(--cyan) !important; font-family: var(--be-mono); }
html body .t25-pager { border-top-color: var(--be-line) !important; }
html body .t25-copybtn { background: rgba(255, 255, 255, 0.06) !important; color: var(--cyan) !important; border: 1px solid var(--be-line) !important; border-radius: 999px !important; }

/* academy */
html body.academy-page, html body.home { background: transparent !important; }
html body .ac-top {
  background: rgba(5, 5, 10, 0.72) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(20px);
}
html body .ac-brand b { color: #fff !important; text-shadow: 0 0 18px rgba(99, 102, 241, 0.55); }
html body .ac-nav a { color: var(--text-muted) !important; font-family: var(--be-mono); font-size: 0.70rem; letter-spacing: 0.10em; text-transform: uppercase; }
html body .ac-nav a:hover { color: var(--cyan) !important; }
html body .ac-hero h1 { font-size: clamp(2.6rem, 5.6vw, 5rem) !important; }
html body .ac-k { color: var(--cyan) !important; }
html body .ac-stats b { color: var(--cyan) !important; text-shadow: 0 0 18px rgba(34, 211, 238, 0.28) !important; }
html body .ac-rung.n { border-color: var(--indigo) !important; box-shadow: 0 0 32px rgba(99, 102, 241, 0.30) !important; }
html body .ac-arrow { color: var(--cyan) !important; text-shadow: 0 0 12px rgba(34, 211, 238, 0.55) !important; }

/* trust / generated pages */
html body .tp-main { padding-top: clamp(48px, 7vw, 92px) !important; }
html body .tp-main h1 { font-size: clamp(2.2rem, 4.2vw, 3.8rem) !important; }
html body .tp-kicker { color: var(--cyan) !important; }
html body .tp-lede { color: rgba(255, 255, 255, 0.78) !important; }
html body .tp-main h2 { border-top-color: var(--be-line) !important; }
html body .tp-card .verify { color: var(--cyan) !important; }
html body .tp-note { border-left: 3px solid var(--indigo) !important; background: rgba(99, 102, 241, 0.07) !important; border-radius: 0 var(--be-radius-sm) var(--be-radius-sm) 0 !important; }
html body .tp-warn { border-left-color: var(--warn) !important; }
html body .tp-status { color: var(--indigo-light) !important; border-color: var(--indigo) !important; }

/* OMEGA auditor */
html body .oa-wrap { padding-top: clamp(36px, 5vw, 64px) !important; }
html body .oa-kicker { color: var(--cyan) !important; }
html body .oa-controls select, html body .oa-controls button { min-height: 38px; }
html body .oa-status { color: var(--cyan) !important; font-family: var(--be-mono) !important; }
html body .oa-log { background: rgba(3, 3, 10, 0.65) !important; border: 1px solid var(--be-line) !important; border-radius: var(--be-radius-sm) !important; font-family: var(--be-mono) !important; }

/* governance case */
html body .gvc { background: transparent !important; }
html body .gvc-eyebrow { color: var(--cyan) !important; }
html body .gvc-h { font-size: clamp(2rem, 4vw, 3.4rem) !important; }
html body .gvc-sub, html body .gvc-lede { color: var(--be-ink-soft) !important; }
html body .gvc-flow { counter-reset: gvc; }
html body .gvc-flow li { padding: 1rem 1.1rem !important; }
html body .gvc-flow li b { color: var(--cyan) !important; font-family: var(--be-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
html body .gvc-gate { border-color: var(--indigo) !important; box-shadow: 0 0 30px rgba(99, 102, 241, 0.25); }

/* misc common blocks */
html body .stat-card .stat-value, html body .stat-card .value { color: var(--cyan) !important; }
html body .stat-card .stat-label, html body .stat-card .label { color: var(--text-muted) !important; font-family: var(--be-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; }
html body .section-header h2 { margin-bottom: 0.2em; }
html body .card-grid, html body .grid { gap: 18px; }
html body .hero, html body .page-hero { background: transparent !important; }
html body .lead, html body .subtitle, html body .subhead { color: rgba(255, 255, 255, 0.76) !important; }

/* ============================================================================
   7b. PAGE-SPECIFIC FAMILIES THAT SHIP THEIR OWN INLINE PALETTES
   ========================================================================== */
/* pricing / plan lists */
html body .core { gap: 14px; }
html body .core > li {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--be-radius-sm) !important;
  color: var(--be-ink) !important;
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
html body .core > li::before { color: var(--cyan) !important; text-shadow: 0 0 10px rgba(34, 211, 238, 0.5); }
html body .pp, html body .pn { font-family: var(--be-sans) !important; }
html body .pn { color: var(--text) !important; letter-spacing: -0.02em; }
html body .pp { color: var(--cyan) !important; font-weight: 900 !important; }
html body .pt { color: var(--text-muted) !important; font-family: var(--be-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
html body .tw { border-radius: var(--be-radius); overflow: hidden; border: 1px solid var(--be-line); }
html body .tw table { border: 0; border-radius: 0; }
html body .hero { background: radial-gradient(60% 70% at 50% 0%, rgba(99, 102, 241, 0.26), transparent 70%) !important; }
html body .trial { color: var(--text-muted) !important; }
html body .trial strong { color: #fff !important; }

/* old site bar */
html body #cain-site-nav {
  background: rgba(5, 5, 10, 0.70) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  color: var(--text-muted) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
html body #cain-site-nav .cain-sn-tabs a {
  color: var(--text-muted) !important;
  border-color: var(--be-line) !important;
  background: transparent !important;
  border-radius: 999px !important;
  margin-left: 4px;
}
html body #cain-site-nav .cain-sn-tabs a:hover,
html body #cain-site-nav .cain-sn-tabs a[aria-current="true"] {
  color: var(--cyan) !important;
  border-color: var(--cyan) !important;
  background: rgba(34, 211, 238, 0.10) !important;
}

/* footer */
html body .cain-footer,
html body footer.cain-footer {
  background:
    radial-gradient(1000px 420px at 50% 0%, rgba(99, 102, 241, 0.14), transparent 65%),
    rgba(4, 4, 10, 0.86) !important;
  border-top: 1px solid var(--glass-border) !important;
  color: var(--be-ink) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
html body .cain-footer a { color: var(--text-muted) !important; }
html body .cain-footer a:hover { color: var(--cyan) !important; }
html body .cain-footer .cf-legal a { color: var(--be-ink-soft) !important; }
html body .cain-footer .cf-tag { color: var(--cyan) !important; font-family: var(--be-mono) !important; letter-spacing: 0.08em; }
html body .cain-footer .cf-status {
  color: var(--indigo-light) !important;
  border: 1px solid var(--indigo) !important;
  border-radius: 999px !important;
  background: rgba(99, 102, 241, 0.10);
  padding: 0.4em 0.9em;
}
html body .cain-footer .cf-legal h3 { color: var(--cyan) !important; font-family: var(--be-mono) !important; letter-spacing: 0.14em; }
html body .cain-footer .cf-legal dt { color: var(--text-muted) !important; }
html body .cain-footer a[style*="background" i] {
  background: linear-gradient(180deg, #4F46E5, #4338CA) !important;
  border: 1.5px solid var(--indigo-light) !important;
  border-radius: 999px !important;
  color: #fff !important;
  padding: 0.6em 1.1em !important;
  text-decoration: none !important;
  box-shadow: var(--be-glow-indigo) !important;
}
html body .cain-footer a[style*="border" i]:not([style*="background" i]) {
  border: 1.5px solid var(--cyan) !important;
  border-radius: 999px !important;
  color: var(--cyan) !important;
  padding: 0.6em 1.1em !important;
  text-decoration: none !important;
}
html body .gvc-disclose { border-color: rgba(168, 85, 247, 0.55) !important; background: rgba(168, 85, 247, 0.08) !important; }
html body .gvc-who li { color: var(--indigo-light) !important; border-color: var(--be-line) !important; background: rgba(255, 255, 255, 0.04) !important; }
html body .gvc-fine, html body .gvc-means li { color: var(--be-ink-soft) !important; }

/* CAIN Teacher launcher */
html body .ctw {
  --ct-bg: #07070F;
  --ct-raised: rgba(255, 255, 255, 0.07);
  --ct-raised2: rgba(255, 255, 255, 0.11);
  --ct-sunken: #03030A;
  --ct-line: var(--be-line);
  --ct-line2: var(--glass-border);
  --ct-text: #fff;
  --ct-dim: rgba(255, 255, 255, 0.74);
  --ct-faint: var(--text-muted);
  --ct-red: var(--indigo);
  --ct-red2: var(--indigo-light);
  --ct-redsoft: rgba(99, 102, 241, 0.18);
  --ct-ok: var(--cyan);
  --ct-bad: #F87171;
  --ct-sans: var(--be-sans);
  --ct-mono: var(--be-mono);
}
html body .ctw-launch {
  border: 1px solid var(--glass-border) !important;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(5, 5, 10, 0.94) 65%) !important;
  box-shadow: 0 12px 40px -10px rgba(99, 102, 241, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
}
html body .ctw-launch:hover { box-shadow: 0 16px 52px -10px rgba(34, 211, 238, 0.55) !important; }
html body .ctw-launch b { font-family: var(--be-mono) !important; font-size: 0.78rem !important; letter-spacing: 0.08em; text-transform: uppercase; }
html body .ctw-orb {
  background: radial-gradient(circle at 35% 30%, #A5B4FC, #6366F1 48%, #312E81) !important;
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.85) !important;
}
html body .ctw-orb::after { border-color: rgba(34, 211, 238, 0.55) !important; }
html body .ctw-me { background: linear-gradient(135deg, #4F46E5, #4338CA) !important; }
html body .ctw-mode[aria-pressed="true"] { border-color: var(--indigo) !important; background: rgba(99, 102, 241, 0.18) !important; }
html body .ctw-panel { box-shadow: 0 30px 80px -20px #000e, inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 60px -30px rgba(99, 102, 241, 0.65) !important; }
html body .ctw-msg a { color: var(--cyan) !important; }
html body .ctw-send, html body .ctw-pickbtn { background: var(--indigo) !important; }

/* printable classroom worksheet: dark on screen, white only when printed */
html body.ws, html body .vl-page.ws { background: transparent !important; color: var(--be-ink) !important; }
html body .ws-sheet {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--be-radius) !important;
  box-shadow: var(--be-card-shadow) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--be-ink) !important;
}
html body .ws-head h1, html body .ws-block h2 { color: #fff !important; }
html body .ws-block h2 { border-bottom-color: var(--be-line) !important; }
html body .ws-kicker, html body .ws-flow b, html body .ws-foot a { color: var(--cyan) !important; }
html body .ws-sub, html body .ws-block p, html body .ws-block li, html body .ws-block dd,
html body .ws-gloss dt, html body .ws-gloss dd, html body .ws-foot { color: var(--be-ink) !important; }
html body .ws-status { color: #FCD34D !important; border-color: rgba(251, 191, 36, 0.55) !important; background: rgba(251, 191, 36, 0.10) !important; border-radius: 999px; }
html body .ws-table th, html body .ws-form th { background: rgba(255, 255, 255, 0.06) !important; color: var(--indigo-light) !important; }
html body .ws-table th, html body .ws-table td, html body .ws-form th, html body .ws-form td { border-color: var(--be-line) !important; color: var(--be-ink) !important; }
html body .ws-teacher { background: rgba(255, 255, 255, 0.05) !important; border-color: var(--be-line) !important; }
html body .ws-lines { border-bottom-color: var(--be-line-strong) !important; }
html body .ws-print { background: linear-gradient(180deg, #4F46E5, #4338CA) !important; }

/* accessible skip links should look like part of the theme when focused */
html body .c42-skip:focus, html body .mg-skip:focus, html body a[href^="#main"]:focus {
  background: var(--indigo) !important;
  color: #fff !important;
  border-radius: 999px;
  padding: 0.45em 0.9em !important;
  box-shadow: var(--be-glow-indigo);
}

/* legacy Agentic-75 essay section: replace its red wash with the new palette */
html body #agentic-75-paradigm {
  background:
    radial-gradient(1100px 520px at 18% 0%, rgba(99, 102, 241, 0.24), transparent 62%),
    radial-gradient(900px 460px at 100% 10%, rgba(34, 211, 238, 0.10), transparent 62%),
    #07080F !important;
  border-top: 1px solid var(--be-line) !important;
  border-bottom: 1px solid var(--be-line) !important;
}
html body #agentic-75-paradigm :is(.e75p-kick, .e75p-chain b) { color: var(--cyan) !important; }
html body #agentic-75-paradigm .e75p-item { border-left-color: var(--be-line-strong) !important; }
html body #agentic-75-paradigm .e75p-rule { color: var(--cyan) !important; border-left-color: var(--indigo) !important; background: rgba(99, 102, 241, 0.08) !important; }
html body #agentic-75-paradigm .e75p-yes { border-color: rgba(52, 211, 153, 0.45) !important; background: rgba(52, 211, 153, 0.07) !important; }
html body #agentic-75-paradigm .e75p-no { border-color: rgba(251, 191, 36, 0.45) !important; background: rgba(251, 191, 36, 0.06) !important; }
html body #agentic-75-paradigm .e75p-cta a { background: rgba(255, 255, 255, 0.05) !important; border-color: var(--be-line) !important; color: var(--be-ink) !important; }
html body #agentic-75-paradigm .e75p-cta a.p { background: linear-gradient(180deg, #4F46E5, #4338CA) !important; border-color: var(--indigo-light) !important; color: #fff !important; }
html body #agentic-75-paradigm a { color: var(--cyan) !important; }
html body #agentic-75-paradigm .e75p-src { color: var(--text-muted) !important; }
html body .cain-footer .cf-tag, html body .cain-footer .cf-tag::after { color: var(--cyan) !important; }

/* footer CTA buttons */
html body .cain-footer .cf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7em 1.25em;
  border-radius: 999px !important;
  border: 1.5px solid var(--cyan) !important;
  background: rgba(5, 5, 10, 0.40) !important;
  color: var(--cyan) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  transition: transform 200ms var(--be-ease), box-shadow 200ms var(--be-ease), background 200ms var(--be-ease);
}
html body .cain-footer .cf-btn-p {
  background: linear-gradient(180deg, #4F46E5, #4338CA) !important;
  border-color: var(--indigo-light) !important;
  color: #fff !important;
  box-shadow: var(--be-glow-indigo) !important;
}
html body .cain-footer .cf-btn:hover { transform: translateY(-2px); box-shadow: var(--be-glow-cyan); }
html body .cain-footer .cf-btn-p:hover { box-shadow: 0 0 38px rgba(99, 102, 241, 0.85) !important; }

/* tactile click ripple */
.be-ripple-host { position: relative !important; overflow: hidden !important; }
.be-ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.55), rgba(165, 180, 252, 0.22) 45%, transparent 70%);
  transform: scale(0);
  animation: be-ripple 620ms cubic-bezier(0.22, 0.8, 0.24, 1) forwards;
  z-index: 2;
}
@keyframes be-ripple { to { transform: scale(15); opacity: 0; } }

/* red warning/status labels -> the palette's warning tone */
html body [style*="color:#fca5a5" i],
html body [style*="color:#f87171" i],
html body [style*="color:#ef4444" i],
html body [style*="color:#e11d48" i],
html body [style*="color:#ff6b6b" i] {
  color: #FCD34D !important;
}

/* identity strip injected on inner pages (inline gold band) */
html body div[style*="background:#1a1405" i] {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.22), rgba(5, 5, 10, 0.92) 55%, rgba(34, 211, 238, 0.12)) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  color: var(--be-ink) !important;
  font-family: var(--be-sans) !important;
  padding-top: 0.55em !important;
  padding-bottom: 0.55em !important;
}
html body div[style*="background:#1a1405" i] b { color: var(--indigo-light) !important; }
html body div[style*="background:#1a1405" i] span { color: var(--be-ink-soft) !important; }
html body div[style*="background:#1a1405" i] a { color: var(--cyan) !important; }

/* the five-arm mark and every brand icon: red -> the new indigo/cyan family */
html body header.cs-top .cs-brand img,
html body .c42-brand img,
html body .ac-brand img,
html body .c42-top img,
html body #cain-top-mark img.c42-mark {
  filter: hue-rotate(218deg) saturate(1.35) brightness(1.20) drop-shadow(0 0 10px rgba(99, 102, 241, 0.65));
}
html body .cain-footer img { filter: hue-rotate(218deg) saturate(1.2) brightness(1.1); }


html body [style*="background:#0b0f17" i],
html body [style*="background:#0a0f19" i],
html body [style*="background:#070a12" i],
html body [style*="background:#081226" i],
html body [style*="background:#0b1020" i],
html body [style*="background:#0f1526" i],
html body [style*="background:#0d1526" i] {
  border-color: var(--be-line) !important;
}

/* visitor onboarding layer (top bridge + plain-language sections) */
html body .vl {
  --vl-bg: transparent;
  --vl-panel: var(--glass-bg);
  --vl-panel2: rgba(255, 255, 255, 0.05);
  --vl-line: var(--glass-border);
  --vl-text: #fff;
  --vl-dim: rgba(255, 255, 255, 0.72);
  --vl-red: var(--indigo);
  --vl-red2: var(--cyan);
  --vl-green: #34D399;
  --vl-amber: #FBBF24;
  --vl-blue: var(--cyan);
  --vl-purple: var(--violet);
  background: transparent !important;
  border-bottom: 1px solid var(--be-line) !important;
}
html body .vl-alt { background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent) !important; }
html body .vl-kicker { color: var(--cyan) !important; font-family: var(--be-mono) !important; letter-spacing: 0.16em; }
html body .vl h1 em, html body .vl-h1 em { color: transparent !important; background: linear-gradient(100deg, var(--indigo-light), var(--cyan), var(--violet)) !important; -webkit-background-clip: text !important; background-clip: text !important; }
html body .vl a { color: var(--cyan) !important; }
html body .vl-beats article, html body .vl-flow, html body .vl-try { background: var(--glass-bg) !important; border-color: var(--glass-border) !important; border-radius: var(--be-radius) !important; backdrop-filter: blur(14px); }
html body .vl-btn.primary, html body .vl-bridge a { background: linear-gradient(180deg, #4F46E5, #4338CA) !important; border-color: var(--indigo-light) !important; color: #fff !important; box-shadow: var(--be-glow-indigo) !important; }
html body .vl-bridge { background: linear-gradient(90deg, rgba(99, 102, 241, 0.18), rgba(5, 5, 10, 0.65) 55%, rgba(34, 211, 238, 0.14)) !important; border-color: var(--glass-border) !important; }
html body .vl-beats span { background: linear-gradient(140deg, var(--indigo-light), var(--cyan)) !important; color: var(--void) !important; }
html body .vl-try-k { color: var(--cyan) !important; }

/* wide tables / code blocks scroll instead of breaking the page */
html body .tw, html body .overflow, html body [class*="table-wrap"] { max-width: 100%; overflow-x: auto; }


html body [style*="background:#fff" i],
html body [style*="background: #fff" i],
html body [style*="background:#ffffff" i],
html body [style*="background:white" i],
html body [style*="background-color:#fff" i],
html body [style*="background-color: #fff" i],
html body [style*="background-color:white" i],
html body [style*="background:#f8fafc" i],
html body [style*="background:#f9fafb" i],
html body [style*="background:#f1f5f9" i],
html body [style*="background:#eef2f7" i] {
  background: var(--glass-bg) !important;
  color: var(--be-ink) !important;
  border-color: var(--glass-border) !important;
}
html body [style*="color:#000" i],
html body [style*="color: #000" i],
html body [style*="color:black" i],
html body [style*="color:#111" i],
html body [style*="color:#1a1a1a" i],
html body [style*="color:#0b0f17" i],
html body [style*="color:#0f172a" i] {
  color: var(--be-ink) !important;
}
html body [style*="background:#e11d2e" i],
html body [style*="background:#d42232" i],
html body [style*="background:#ef0a22" i] {
  background: linear-gradient(180deg, #4F46E5, #4338CA) !important;
  color: #fff !important;
  border-color: var(--indigo-light) !important;
}
/* keep dark, low-contrast inline greys readable */
html body [style*="color:#555" i], html body [style*="color:#666" i], html body [style*="color:#777" i],
html body [style*="color:#888" i], html body [style*="color:#999" i] { color: var(--text-muted) !important; }
html body [style*="color:#22d3ee" i] { color: var(--cyan) !important; }
html body [style*="color:#fde68a" i], html body [style*="color:#fbbf24" i] { color: var(--indigo-light) !important; }
/* hard-coded old brand reds in text */
html body [style*="color:#ff3b4a" i],
html body [style*="color:#ff2a3d" i],
html body [style*="color:#e11d2e" i],
html body [style*="color:#d42232" i],
html body [style*="color:#ef0a22" i],
html body [style*="color:#ff5a67" i] { color: var(--indigo-light) !important; }
/* Inline "light" blocks left over from older pages still get dark, readable surfaces. */
html body [style*="background:#f8f9fa" i],
html body [style*="background:#eef1f8" i],
html body [style*="background:#e2e8f0" i],
html body [style*="background:#f0f4ff" i] {
  background: var(--glass-bg) !important;
  color: var(--be-ink) !important;
  border-color: var(--glass-border) !important;
}

/* ============================================================================
   9. MOTION / REVEAL
   ========================================================================== */
html.be-js .be-reveal { opacity: 0; transform: translateY(18px); }
html.be-js .be-reveal.be-in { opacity: 1; transform: none; transition: opacity 340ms var(--be-ease), transform 340ms var(--be-ease); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html body *, html body *::before, html body *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  #be-bg .be-orb { animation: none !important; }
  html.be-js .be-reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================================
   10. RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  html body .c42-nav { gap: 2px 10px; }
  html body .c42-nav > a, html body .c42-nav > details > summary { font-size: 10px !important; }
}
@media (max-width: 820px) {
  html body:has(.c42sb) header.cs-top,
  html body:has(.c42sb) .c42-top { top: 64px !important; }
  html body .c42-top .c42-wrap { min-height: 60px; gap: 10px; }
  html body header.cs-top .cs-w { min-height: 60px; padding: 0 14px; gap: 12px; }
  html body .c42-nav {
    position: absolute !important;
    left: 0; right: 0; top: 100%;
    background: rgba(6, 6, 14, 0.98) !important;
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 16px 18px;
    display: none;
    max-height: 76vh;
    overflow: auto;
  }
  html body .c42-nav.open { display: flex; flex-direction: column; align-items: stretch; }
  html body .c42-menu-panel { position: static !important; width: 100% !important; transform: none !important; max-height: none; }
  html body .cs-menu[open] .cs-menu-panel { position: absolute; right: 14px; top: 58px; width: min(340px, 92vw); }
  html body .c42-hero-h { font-size: clamp(2.2rem, 10vw, 3.4rem) !important; }
  html body #cain-portal .cp-h { font-size: clamp(2.1rem, 9vw, 3.1rem) !important; }
  html body .om-t { font-size: clamp(1.25rem, 5vw, 1.65rem) !important; }
  html body .c42-card, html body .tp-card, html body .t25-card, html body .cp-m, html body .cp-k,
  html body .fwf-live, html body .fwf-plan, html body .card, html body .stat-card {
    backdrop-filter: blur(9px) !important;
    -webkit-backdrop-filter: blur(9px) !important;
    border-radius: 18px !important;
  }
  html body .om-card { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  #be-bg .be-orb { filter: blur(64px); }
  #be-bg .be-o1 { width: 92vw; height: 92vw; left: -34vw; top: -26vw; }
  #be-bg .be-o2 { width: 70vw; height: 70vw; right: -26vw; top: -12vw; }
  #be-bg .be-o3 { width: 80vw; height: 80vw; right: -30vw; bottom: -18vw; }
  #be-bg .be-o4 { width: 54vw; height: 54vw; left: -18vw; bottom: -12vw; }
  #be-bg .be-grid { background-size: 28px 28px; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  html body h1, html body .c42-hero-h { letter-spacing: -0.035em !important; }
  html body :is(.c42-btn, .fwf-btn, .ac-btn, .tp-form button, .btn) { width: 100%; justify-content: center; }
  html body .c42-hero .c42-btn, html body .c42-hero .c42-cta .c42-btn { width: 100%; }
  html body table:not(.be-plain) { font-size: 0.84rem; }
  html body table:not(.be-plain) th, html body table:not(.be-plain) td { padding: 0.55rem 0.6rem !important; }
  html body .fwf-ladder { grid-template-columns: 1fr !important; }
}
@media (max-width: 380px) {
  body { font-size: 14.5px; }
  html body .c42-nav { padding-inline: 12px; }
}

/* ============================================================================
   11. PRINT
   ========================================================================== */
@media print {
  #be-bg, html body header.cs-top, html body .c42-top, html body .c42sb, html body .cain-teacher,
  html body .be-noprint { display: none !important; }
  html, body { background: #fff !important; color: #111 !important; }
  body * { color: #111 !important; text-shadow: none !important; box-shadow: none !important; }
  a { color: #111 !important; text-decoration: underline; }
  .c42-card, .tp-card, .t25-card, .om-card, .card, .stat-card { border: 1px solid #bbb !important; background: #fff !important; }
}
