/* Cortex — five-part decision funnel.
   Scoped entirely to .cortex-funnel. Shares no selectors with cortex.css
   or cortex-system.css, so both older Cortex pages keep working. */

/* Cortex-only site header contrast. The body has no template-specific class,
   so :has() scopes the global header to pages that render this funnel. */
body:has(.cortex-funnel) #header-group .header {
  --header-bg-color: rgba(11, 11, 11, 0.96);
  --color-foreground: #ffffff;
  --color-foreground-rgb: 255, 255, 255;
  --color-border: rgba(255, 255, 255, 0.14);
  --color-border-rgb: 255, 255, 255;
  color: #ffffff;
}

body:has(.cortex-funnel) #header-group {
  position: sticky;
  z-index: 9999;
  top: 0;
}

body:has(.cortex-funnel) #header-group .header__row {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(11, 11, 11, 0.96);
  color: #ffffff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body:has(.cortex-funnel) #header-group :is(
  .menu-list__link,
  .header-actions__action,
  .header__icon,
  .localization-selector,
  .localization-selector__button,
  .drawer-localization__button,
  .av-header-menu-trigger
) {
  color: #ffffff;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

body:has(.cortex-funnel) #header-group :is(
  .menu-list__link,
  .header-actions__action,
  .header__icon,
  .localization-selector,
  .localization-selector__button,
  .drawer-localization__button
):is(:hover, :focus-visible) {
  color: #d4af37;
}

body:has(.cortex-funnel) #header-group .av-header-menu-trigger {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(20, 20, 22, 0.96);
}

body:has(.cortex-funnel) #header-group .av-header-menu-trigger:is(:hover, :focus-visible),
body:has(.cortex-funnel) #header-group .av-header-menu-trigger[aria-expanded="true"] {
  border-color: rgba(212, 175, 55, 0.78);
  color: #d4af37;
}

body:has(.cortex-funnel) #header-group :is(svg, svg path, svg circle) {
  stroke: currentColor;
}

body:has(.cortex-funnel) #header-group .header-logo__image {
  filter: grayscale(1) brightness(0) invert(1);
}

.cortex-funnel {
  --cx-ink: #181817;
  --cx-graphite: #22221f;
  --cx-muted: #6b6963;
  --cx-faint: #918f88;
  --cx-paper: #f4f1ea;
  --cx-surface: #fffdf8;
  --cx-soft: #eceae3;
  --cx-line: rgba(24, 24, 23, 0.13);
  --cx-rule: rgba(24, 24, 23, 0.28);

  /* Cortex premium gold */
  --cx-gold: #c7a565;
  --cx-gold-strong: #9d7c37;
  --cx-gold-line: rgba(199, 165, 101, 0.5);
  --cx-gold-wash: rgba(199, 165, 101, 0.12);

  /* semantic only — never decorative */
  --cx-danger: #b3261e;
  --cx-focus: #1b66d6;

  --cx-shell: 1240px;
  --cx-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* motion system */
  --cx-t-micro: 150ms;
  --cx-t-state: 240ms;
  --cx-t-panel: 320ms;
  --cx-t-open: 300ms;
  --cx-t-reveal: 560ms;
  --cx-e-out: cubic-bezier(0.22, 1, 0.36, 1);
  --cx-e-inout: cubic-bezier(0.65, 0, 0.35, 1);

  position: relative;
  background: var(--cx-paper);
  color: var(--cx-ink);
  font-family: var(--font-body--family, Roboto, Arial, sans-serif);
  font-size: 1rem;
  line-height: 1.6;
}

.cortex-funnel *,
.cortex-funnel *::before,
.cortex-funnel *::after { box-sizing: border-box; }

.cortex-funnel h1,
.cortex-funnel h2,
.cortex-funnel h3,
.cortex-funnel h4,
.cortex-funnel p,
.cortex-funnel ol,
.cortex-funnel ul,
.cortex-funnel blockquote { margin-top: 0; }

.cortex-funnel h1,
.cortex-funnel h2,
.cortex-funnel h3,
.cortex-funnel h4 {
  color: inherit;
  font-family: var(--font-heading--family, Poppins, Arial, sans-serif);
  font-weight: 600;
  text-wrap: balance;
}

.cortex-funnel a,
.cortex-funnel button,
.cortex-funnel summary { -webkit-tap-highlight-color: transparent; }

.cortex-funnel a:focus-visible,
.cortex-funnel button:focus-visible,
.cortex-funnel summary:focus-visible,
.cortex-funnel [tabindex="0"]:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 3px;
}

.cortex-funnel :is(.cx-transform, .cx-transform__side, .cx-transform__chain, .cx-system-stage, .cx-system-stage details, .cx-system-stage summary, .cx-system-stage__detail) {
  box-sizing: border-box;
  min-width: 0;
  overflow-wrap: anywhere;
}

.cortex-funnel .cx-shell {
  width: min(calc(100% - clamp(2rem, 7vw, 7rem)), var(--cx-shell));
  margin-inline: auto;
}

.cortex-funnel .cx-vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------------- shared type ---------------- */

.cortex-funnel .cx-label {
  display: block;
  margin-bottom: 1rem;
  color: var(--cx-gold-strong);
  font-family: var(--cx-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.3;
  text-transform: uppercase;
}

.cortex-funnel .cx-label__num {
  display: inline-block;
  margin-right: 0.7rem;
  padding-right: 0.7rem;
  border-right: 1px solid var(--cx-gold-line);
  color: var(--cx-gold-strong);
}

.cortex-funnel .cx-chapter {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  border-top: 1px solid var(--cx-line);
  scroll-margin-top: 4.5rem;
}

.cortex-funnel .cx-chapter--surface { background: var(--cx-surface); }
.cortex-funnel .cx-chapter--soft { background: var(--cx-soft); }

.cortex-funnel .cx-head {
  max-width: 780px;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.cortex-funnel .cx-head h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.cortex-funnel .cx-head p {
  max-width: 62ch;
  margin-bottom: 0;
  color: var(--cx-muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
}

.cortex-funnel .cx-note {
  max-width: 72ch;
  margin: clamp(1.75rem, 3.5vw, 2.75rem) 0 0;
  border-left: 2px solid var(--cx-gold);
  padding-left: 1rem;
  color: var(--cx-muted);
  font-size: 0.92rem;
}

.cortex-funnel .cx-micro {
  color: var(--cx-faint);
  font-family: var(--cx-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------------- buttons ---------------- */

.cortex-funnel .cx-hero-btns {
  position: relative;
}

.cortex-funnel .cx-hero-btns > #cx-floating-sound-toggle {
  position: relative;
  display: inline-flex !important;
  flex-shrink: 0;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 2;
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  align-self: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  align-items: center;
  justify-content: center;
  padding: 0;
  color: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 18px;
  line-height: 1;
}

.cortex-funnel .cx-hero-btns > #cx-floating-sound-toggle .cx-sound-icon {
  display: block;
  line-height: 1;
  pointer-events: none;
}

.cortex-funnel .cx-hero-btns > #cx-floating-sound-toggle:hover,
.cortex-funnel .cx-hero-btns > #cx-floating-sound-toggle:focus-visible {
  border-color: rgba(199, 165, 101, 0.72);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 18px rgba(199, 165, 101, 0.18);
  transform: translateY(-1px);
}

[data-theme="light"] .cortex-funnel .cx-hero-btns > #cx-floating-sound-toggle,
body.light-mode .cortex-funnel .cx-hero-btns > #cx-floating-sound-toggle {
  background: rgba(18, 18, 20, 0.88) !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

[data-theme="light"] .cortex-funnel .cx-hero-btns > #cx-floating-sound-toggle:hover,
body.light-mode .cortex-funnel .cx-hero-btns > #cx-floating-sound-toggle:hover {
  background: rgba(0, 0, 0, 0.95) !important;
  transform: scale(1.05);
}

.cortex-funnel .cx-button {
  position: relative;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 0.85rem 1.7rem;
  cursor: pointer;
  font-family: var(--cx-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color var(--cx-t-micro) ease,
    border-color var(--cx-t-micro) ease,
    color var(--cx-t-micro) ease,
    transform var(--cx-t-micro) var(--cx-e-out),
    box-shadow var(--cx-t-micro) ease;
}

.cortex-funnel .cx-button--primary {
  background: var(--cx-ink);
  border-color: var(--cx-ink);
  color: var(--cx-surface);
}

.cortex-funnel .cx-button--primary::after {
  content: "";
  position: absolute;
  inset-inline: -1px;
  bottom: -1px;
  height: 2px;
  background: var(--cx-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--cx-t-state) var(--cx-e-out);
}

.cortex-funnel .cx-button--primary:hover::after,
.cortex-funnel .cx-button--primary:focus-visible::after { transform: scaleX(1); }

.cortex-funnel .cx-button--primary:hover { background: var(--cx-graphite); }

.cortex-funnel .cx-button--secondary {
  background: transparent;
  border-color: var(--cx-rule);
  color: var(--cx-ink);
}

.cortex-funnel .cx-button--secondary:hover {
  border-color: var(--cx-gold);
  background: var(--cx-gold-wash);
}

.cortex-funnel .cx-button--light {
  background: transparent;
  border-color: var(--cx-gold-line);
  color: #fffdf8;
}

.cortex-funnel .cx-button--light:hover {
  background: rgba(199, 165, 101, 0.16);
  border-color: var(--cx-gold);
}

.cortex-funnel .cx-button--full { width: 100%; }

.cortex-funnel .cx-button:active { transform: translateY(1px) scale(0.995); }

.cortex-funnel .cx-button.cx-is-pressed { animation: cx-press var(--cx-t-state) var(--cx-e-out); }

.cortex-funnel .cx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
}

/* ---------------- chapter rail (desktop) ---------------- */

.cortex-funnel .cx-rail {
  position: fixed;
  z-index: 6;
  top: 50%;
  right: clamp(1rem, 2vw, 2.25rem);
  transform: translateY(-50%);
  display: none;
  padding-left: 1rem;
}

.cortex-funnel .cx-rail__list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cortex-funnel .cx-rail__link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  color: var(--cx-faint);
  text-decoration: none;
  font-family: var(--cx-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cortex-funnel .cx-rail__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width var(--cx-t-state) var(--cx-e-out), opacity var(--cx-t-state) ease;
}

.cortex-funnel .cx-rail:hover .cx-rail__label,
.cortex-funnel .cx-rail__link:focus-visible .cx-rail__label,
.cortex-funnel .cx-rail__link[aria-current="true"] .cx-rail__label {
  max-width: 15rem;
  opacity: 1;
}

.cortex-funnel .cx-rail__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border: 1px solid var(--cx-rule);
  background: transparent;
  transition: background-color var(--cx-t-state) ease, border-color var(--cx-t-state) ease, transform var(--cx-t-state) var(--cx-e-out);
}

.cortex-funnel .cx-rail__link[aria-current="true"] { color: var(--cx-ink); }

.cortex-funnel .cx-rail__link[aria-current="true"] .cx-rail__dot {
  background: var(--cx-gold);
  border-color: var(--cx-gold);
  transform: scale(1.25);
}

/* ---------------- top progress line (mobile + fallback) ---------------- */

.cortex-funnel .cx-progressline {
  position: fixed;
  z-index: 7;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.cortex-funnel .cx-progressline__fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--cx-gold);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---------------- 01 hero ---------------- */

.cortex-funnel .cx-hero {
  position: relative;
  min-height: min(780px, calc(100svh - 72px));
  display: grid;
  align-items: center;
  padding-block: clamp(4rem, 8vw, 7rem) clamp(3.5rem, 6vw, 5.5rem);
  background: #0b0b0a;
  color: #f7f6f2;
}

.cortex-funnel .cx-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.2;
  background-image: radial-gradient(rgba(255, 255, 255, 0.28) 0.45px, transparent 0.6px);
  background-size: 5px 5px;
  mask-image: linear-gradient(to right, transparent, #000 50%, #000);
}

.cortex-funnel .cx-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.cortex-funnel .cx-wordmark {
  margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--cx-rule);
  color: var(--cx-gold);
  font-family: var(--cx-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.cortex-funnel .cx-wordmark span { color: #f7f6f2; }

.cortex-funnel .cx-hero h1 {
  max-width: 15ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 5.6vw, 4.8rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.cortex-funnel .cx-hero__intro {
  max-width: 54ch;
  margin-bottom: 0;
  color: #b8b6b0;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.62;
}

.cortex-funnel .cx-hero__value {
  max-width: 50ch;
  margin: 1.5rem 0 0;
  padding-left: 1rem;
  border-left: 1px solid var(--cx-gold);
  color: #8f8d87;
  font-family: var(--cx-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
}

/* ---------------- axes + brain ---------------- */

.cortex-funnel .cx-axes-frame {
  display: grid;
  place-items: center;
  filter: drop-shadow(0 18px 45px rgba(0, 0, 0, 0.35));
}

.cortex-funnel .cx-axes {
  width: min(100%, 460px);
  height: auto;
  color: #f7f6f2;
}

.cortex-funnel .cx-axes__orbit {
  fill: none;
  stroke: rgba(199, 165, 101, 0.35);
  stroke-width: 1;
}

.cortex-funnel .cx-axes__orbit--lit { stroke: var(--cx-gold); opacity: 0.85; }

.cortex-funnel .cx-axes__axis {
  stroke: currentColor;
  stroke-width: 1;
  stroke: var(--cx-gold);
  opacity: 0.5;
}

.cortex-funnel .cx-axes__node { fill: var(--cx-gold); }

.cortex-funnel .cx-axes__tick {
  fill: var(--cx-gold-strong);
  font-family: var(--cx-mono);
  font-size: 11px;
  letter-spacing: 1.4px;
}

.cortex-funnel .cx-axes__brain-image {
  mix-blend-mode: screen;
  filter: saturate(0.78) contrast(1.08) brightness(0.86);
}

/* ---------------- product transformation ---------------- */

.cortex-funnel .cx-transform {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr);
  align-items: stretch;
  gap: 2rem;
  padding: 2.5rem 3rem;
  border: 1px solid var(--cx-line);
  border-radius: 8px;
  background: var(--cx-surface);
}

.cortex-funnel .cx-transform__side { padding: 0; }
.cortex-funnel .cx-transform__side--before { color: var(--cx-muted); }
.cortex-funnel .cx-transform__side--after { color: var(--cx-ink); }

.cortex-funnel .cx-transform__chain {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.cortex-funnel .cx-transform__chain li {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid currentColor;
  padding: 0.55rem 0.75rem;
  font-family: var(--cx-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cortex-funnel .cx-transform__chain li:not(:last-child)::after {
  content: "→";
  margin-left: 0.55rem;
  color: var(--cx-gold-strong);
}

.cortex-funnel .cx-transform__side > p:last-child { max-width: 38ch; margin: 0; }

.cortex-funnel .cx-transform__arrow { display: grid; place-items: center; }
.cortex-funnel .cx-transform__arrow span { width: 48px; height: 1px; background: var(--cx-gold); }

.cortex-funnel .cx-promise {
  max-width: 25ch;
  margin: clamp(2rem, 5vw, 4rem) 0 0 auto;
  font-family: var(--font-heading--family, Poppins, Arial, sans-serif);
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

/* ---------------- governed system path ---------------- */

.cortex-funnel .cx-system-path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  background: var(--cx-line);
  border: 1px solid var(--cx-line);
  list-style: none;
}

.cortex-funnel .cx-system-stage {
  position: relative;
  min-height: 220px;
  background: var(--cx-surface);
  padding: clamp(1.2rem, 2.5vw, 2rem);
  transition: background-color var(--cx-t-panel) ease, color var(--cx-t-panel) ease;
}

.cortex-funnel .cx-system-stage::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: var(--cx-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--cx-t-reveal) var(--cx-e-out);
}

.cortex-funnel .cx-system-stage.cx-in-view::before { transform: scaleX(1); }
.cortex-funnel .cx-system-stage--gate { background: var(--cx-gold-wash); }

.cortex-funnel .cx-system-stage > span,
.cortex-funnel .cx-gates > li > span,
.cortex-funnel .cx-hierarchy > li > span {
  color: var(--cx-gold-strong);
  font-family: var(--cx-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

.cortex-funnel .cx-system-stage h3 { margin: 2rem 0 0.7rem; font-size: 1.15rem; }
.cortex-funnel .cx-system-stage p { margin: 0; color: var(--cx-muted); font-size: 0.92rem; }

/* ---------------- immersive capability demo ---------------- */

.cortex-funnel .cx-chapter--demo {
  background: #0d0d0c;
  color: #f7f6f2;
}

.cortex-funnel .cx-chapter--demo .cx-head p,
.cortex-funnel .cx-chapter--demo .cx-mode-panel p { color: #aaa7a0; }
.cortex-funnel .cx-chapter--demo .cx-modes { background: #131312; border-color: rgba(255,255,255,0.2); }
.cortex-funnel .cx-chapter--demo .cx-tabs { border-color: rgba(255,255,255,0.15); }
.cortex-funnel .cx-chapter--demo .cx-tab { color: #aaa7a0; }
.cortex-funnel .cx-chapter--demo .cx-tab:hover,
.cortex-funnel .cx-chapter--demo .cx-tab[aria-selected="true"] { color: #fff; }
.cortex-funnel .cx-chapter--demo .cx-tab + .cx-tab { border-color: rgba(255,255,255,0.12); }
.cortex-funnel .cx-chapter--demo .cx-prompt { background: #131312; border-color: rgba(255,255,255,0.2); }

/* ---------------- governance gates ---------------- */

.cortex-funnel .cx-chapter--govern { background: var(--cx-graphite); color: #f7f6f2; }
.cortex-funnel .cx-chapter--govern .cx-head p { color: #bbb8b0; }
.cortex-funnel .cx-chapter--govern .cx-compare { background: #181817; border-color: rgba(255,255,255,0.2); }
.cortex-funnel .cx-chapter--govern .cx-switch { background: #0f0f0e; border-color: rgba(255,255,255,0.2); }
.cortex-funnel .cx-chapter--govern .cx-compare__panel { color: #f7f6f2; }
.cortex-funnel .cx-chapter--govern .cx-ticks li { color: #bbb8b0; border-color: rgba(255,255,255,0.12); }

.cortex-funnel .cx-gates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 clamp(2rem, 5vw, 4rem);
  padding: 0;
  border-block: 1px solid rgba(199,165,101,0.45);
  list-style: none;
}

.cortex-funnel .cx-gates li { min-height: 190px; padding: 1.8rem; }
.cortex-funnel .cx-gates li + li { border-left: 1px solid rgba(199,165,101,0.3); }
.cortex-funnel .cx-gates h3 { margin: 2.6rem 0 0.6rem; font-size: 1.35rem; }
.cortex-funnel .cx-gates p { margin: 0; color: #aaa7a0; }

/* ---------------- compositional hierarchy ---------------- */

.cortex-funnel .cx-hierarchy {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cortex-funnel .cx-hierarchy li {
  width: calc(58% + var(--cx-tier, 0) * 10%);
  border: 1px solid var(--cx-line);
  border-left: 2px solid var(--cx-gold);
  background: var(--cx-surface);
  padding: 1rem 1.2rem;
}

.cortex-funnel .cx-hierarchy li:nth-child(1) { --cx-tier: 0; }
.cortex-funnel .cx-hierarchy li:nth-child(2) { --cx-tier: 1; }
.cortex-funnel .cx-hierarchy li:nth-child(3) { --cx-tier: 2; }
.cortex-funnel .cx-hierarchy li:nth-child(4) { --cx-tier: 3; }
.cortex-funnel .cx-hierarchy li:nth-child(5) { --cx-tier: 4; }
.cortex-funnel .cx-hierarchy h3 { display: inline; margin: 0 1rem; font-size: 1rem; }
.cortex-funnel .cx-hierarchy p { display: inline; margin: 0; color: var(--cx-muted); font-size: 0.9rem; }

.cortex-funnel .cx-compose-example { margin: 2.5rem 0 5rem; border-top: 1px solid var(--cx-line); padding-top: 1.5rem; }
.cortex-funnel .cx-compose-example ol { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; padding: 0; list-style: none; }
.cortex-funnel .cx-compose-example li { border: 1px solid var(--cx-rule); padding: 0.65rem 0.8rem; font-family: var(--cx-mono); font-size: 0.68rem; text-transform: uppercase; }
.cortex-funnel .cx-compose-example li:not(:last-child)::after { content: "→"; margin-left: 0.8rem; color: var(--cx-gold-strong); }
.cortex-funnel .cx-compose-example > p:last-child { color: var(--cx-muted); font-size: 0.85rem; }
.cortex-funnel .cx-head--compact { margin-top: 3rem; }

.cortex-funnel .cx-axes__origin {
  fill: #0b0b0a;
  stroke: var(--cx-gold);
  stroke-width: 3;
}

.cortex-funnel .cx-axes__halo {
  fill: rgba(199, 165, 101, 0.05);
  stroke: rgba(199, 165, 101, 0.3);
  stroke-width: 1;
}

.cortex-funnel .cx-hero .cx-button--primary {
  background: var(--cx-gold);
  border-color: var(--cx-gold);
  color: #0b0b0a;
}

.cortex-funnel .cx-hero .cx-button--primary:hover {
  background: #d8ba7c;
  border-color: #d8ba7c;
  color: #0b0b0a;
}

.cortex-funnel .cx-hero .cx-button--secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: #f7f6f2;
}

.cortex-funnel .cx-hero .cx-button--secondary:hover {
  border-color: var(--cx-gold);
  background: rgba(199, 165, 101, 0.12);
}

/* ---------------- segmented control ---------------- */

.cortex-funnel .cx-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--cx-rule);
  background: var(--cx-surface);
  padding: 4px;
  border-radius: 2px;
}

.cortex-funnel .cx-seg__btn {
  flex: 1 1 auto;
  min-height: 46px;
  border: 0;
  border-radius: 1px;
  background: transparent;
  color: var(--cx-muted);
  padding: 0.7rem 1.05rem;
  cursor: pointer;
  font-family: var(--cx-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--cx-t-state) ease, background-color var(--cx-t-state) ease;
}

.cortex-funnel .cx-seg__btn:hover { color: var(--cx-ink); }

.cortex-funnel .cx-seg__btn[aria-selected="true"] {
  background: var(--cx-gold-wash);
  color: var(--cx-ink);
  box-shadow: inset 0 -2px 0 0 var(--cx-gold);
}

.cortex-funnel .cx-seg-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid var(--cx-line);
  background: var(--cx-surface);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
}

.cortex-funnel .cx-seg-panel h3 {
  margin-bottom: 1rem;
  font-family: var(--cx-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cx-gold-strong);
}

.cortex-funnel .cx-ticks { margin: 0; padding: 0; list-style: none; }

.cortex-funnel .cx-ticks li {
  position: relative;
  border-top: 1px solid var(--cx-line);
  padding: 0.75rem 0 0.75rem 1.4rem;
  color: var(--cx-muted);
  font-size: 0.98rem;
}

.cortex-funnel .cx-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 0.7rem;
  height: 1px;
  background: var(--cx-gold);
}

/* ---------------- accordion ---------------- */

.cortex-funnel .cx-acc { border-top: 1px solid var(--cx-line); }

.cortex-funnel .cx-acc__item { border-bottom: 1px solid var(--cx-line); }

.cortex-funnel .cx-acc__summary {
  display: flex;
  align-items: baseline;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  padding: clamp(1rem, 2.2vw, 1.4rem) 2.5rem clamp(1rem, 2.2vw, 1.4rem) 0;
  position: relative;
  cursor: pointer;
  list-style: none;
}

.cortex-funnel .cx-acc__summary::-webkit-details-marker { display: none; }

.cortex-funnel .cx-acc__index {
  flex: none;
  width: 2.25rem;
  color: var(--cx-gold-strong);
  font-family: var(--cx-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.cortex-funnel .cx-acc__title {
  font-family: var(--font-heading--family, Poppins, Arial, sans-serif);
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.cortex-funnel .cx-acc__icon {
  position: absolute;
  right: 0;
  top: 50%;
  width: 13px;
  height: 13px;
  transform: translateY(-50%);
}

.cortex-funnel .cx-acc__icon::before,
.cortex-funnel .cx-acc__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--cx-gold);
  transition: transform var(--cx-t-state) var(--cx-e-out), opacity var(--cx-t-state) ease;
}

.cortex-funnel .cx-acc__icon::before {
  width: 13px; height: 1px; transform: translate(-50%, -50%);
}
.cortex-funnel .cx-acc__icon::after {
  width: 1px; height: 13px; transform: translate(-50%, -50%);
}

.cortex-funnel .cx-acc__item[open] .cx-acc__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.cortex-funnel .cx-acc__body { overflow: hidden; }

.cortex-funnel .cx-acc__inner {
  padding: 0 2.5rem clamp(1.15rem, 2.4vw, 1.6rem) calc(2.25rem + clamp(0.75rem, 2vw, 1.5rem));
}

.cortex-funnel .cx-acc__inner p {
  max-width: 68ch;
  margin-bottom: 0;
  color: var(--cx-muted);
}

.cortex-funnel .cx-acc__inner p + p { margin-top: 0.8rem; }

/* ---------------- comparison / before-after switch ---------------- */

.cortex-funnel .cx-compare {
  border: 1px solid var(--cx-rule);
  background: var(--cx-surface);
}

.cortex-funnel .cx-compare__source {
  border-bottom: 1px solid var(--cx-line);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.cortex-funnel .cx-compare__source p {
  max-width: 62ch;
  margin-bottom: 0;
  margin-top: 0.6rem;
  font-family: var(--font-accent--family, Georgia, serif);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  line-height: 1.4;
}

.cortex-funnel .cx-switch {
  display: inline-flex;
  margin: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem) 0;
  border: 1px solid var(--cx-rule);
  border-radius: 999px;
  padding: 4px;
  background: var(--cx-paper);
}

.cortex-funnel .cx-switch__btn {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cx-muted);
  padding: 0.55rem 1.25rem;
  cursor: pointer;
  font-family: var(--cx-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--cx-t-state) ease, background-color var(--cx-t-state) ease;
}

.cortex-funnel .cx-switch__btn[aria-selected="true"] {
  background: var(--cx-ink);
  color: var(--cx-surface);
}

.cortex-funnel .cx-compare__panels { padding: clamp(1.25rem, 3vw, 2rem); }

.cortex-funnel .cx-compare__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.62fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  min-height: 200px;
}

.cortex-funnel .cx-compare__panel > div > p:last-child {
  max-width: 62ch;
  margin-bottom: 0;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.cortex-funnel .cx-compare__panel--after > div > p:last-child { color: var(--cx-ink); }
.cortex-funnel .cx-compare__panel--before > div > p:last-child { color: var(--cx-muted); }

.cortex-funnel .cx-delta {
  border-left: 1px solid var(--cx-gold-line);
  padding-left: clamp(1rem, 2vw, 1.5rem);
}

.cortex-funnel .cx-delta p { margin-bottom: 0.85rem; }

/* ---------------- stages ---------------- */

.cortex-funnel .cx-stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--cx-line);
}

.cortex-funnel .cx-stage {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.25rem) clamp(1.25rem, 2.5vw, 2rem) clamp(1.4rem, 3vw, 2.25rem) 0;
}

.cortex-funnel .cx-stage + .cx-stage {
  border-left: 1px solid var(--cx-line);
  padding-left: clamp(1.25rem, 2.5vw, 2rem);
}

.cortex-funnel .cx-stage::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--cx-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 620ms var(--cx-e-out);
}

.cortex-funnel .cx-stage.cx-in-view::before { transform: scaleX(1); }

.cortex-funnel .cx-stage__index {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--cx-gold-strong);
  font-family: var(--cx-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.cortex-funnel .cx-stage h3 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.cortex-funnel .cx-stage p {
  max-width: 40ch;
  margin-bottom: 0;
  color: var(--cx-muted);
  font-size: 0.98rem;
}

/* ---------------- mode tabs ---------------- */

.cortex-funnel .cx-modes {
  border: 1px solid var(--cx-rule);
  background: var(--cx-surface);
}

.cortex-funnel .cx-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(112px, 1fr));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  border-bottom: 1px solid var(--cx-line);
  scrollbar-width: thin;
}

.cortex-funnel .cx-tab {
  position: relative;
  z-index: 1;
  min-height: 58px;
  border: 0;
  background: transparent;
  color: var(--cx-muted);
  padding: 1rem 0.75rem;
  cursor: pointer;
  scroll-snap-align: center;
  font-family: var(--cx-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--cx-t-state) ease, background-color var(--cx-t-state) ease;
}

.cortex-funnel .cx-tab + .cx-tab { border-left: 1px solid var(--cx-line); }
.cortex-funnel .cx-tab:hover { color: var(--cx-ink); }

.cortex-funnel .cx-tab[aria-selected="true"] {
  color: var(--cx-ink);
  background: var(--cx-gold-wash);
}

.cortex-funnel .cx-tabs__indicator {
  position: absolute;
  z-index: 2;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cx-gold);
  transition: transform var(--cx-t-panel) var(--cx-e-out), width var(--cx-t-panel) var(--cx-e-out);
}

.cortex-funnel .cx-tab-panels { min-height: 320px; }

.cortex-funnel .cx-mode-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.68fr);
  gap: clamp(1.75rem, 4.5vw, 4rem);
  align-items: start;
  min-height: 320px;
  padding: clamp(1.6rem, 3.5vw, 3rem);
}

.cortex-funnel .cx-mode-panel__index {
  display: block;
  margin-bottom: 1.6rem;
  color: var(--cx-gold-strong);
  font-family: var(--cx-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cortex-funnel .cx-mode-panel h3 {
  max-width: 24ch;
  margin-bottom: 0.85rem;
  font-size: clamp(1.35rem, 2.5vw, 2.05rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.cortex-funnel .cx-mode-panel > div > p:last-child {
  max-width: 56ch;
  margin-bottom: 0;
  color: var(--cx-muted);
}

.cortex-funnel .cx-mode-panel blockquote {
  margin: 0;
  border-left: 1px solid var(--cx-gold);
  padding-left: 1.25rem;
  color: var(--cx-ink);
  font-family: var(--font-accent--family, Georgia, serif);
  font-size: clamp(1.02rem, 1.7vw, 1.32rem);
  line-height: 1.42;
}

.cortex-funnel.cx-is-enhanced [role="tabpanel"][hidden] { display: none; }

.cortex-funnel.cx-is-enhanced .cx-panel-enter { animation: cx-panel-enter var(--cx-t-panel) var(--cx-e-out) both; }

/* ---------------- prompt ---------------- */

.cortex-funnel .cx-prompt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1.5rem;
  align-items: center;
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  border: 1px solid var(--cx-line);
  border-left: 2px solid var(--cx-gold);
  background: var(--cx-surface);
  padding: clamp(1.15rem, 2.6vw, 1.75rem);
}

.cortex-funnel .cx-prompt__label {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: var(--cx-gold-strong);
  font-family: var(--cx-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cortex-funnel .cx-prompt__text {
  max-width: 72ch;
  margin-bottom: 0;
  font-family: var(--cx-mono);
  font-size: clamp(0.88rem, 1.25vw, 1rem);
  line-height: 1.6;
}

.cortex-funnel .cx-copy {
  display: none;
  min-height: 44px;
  border: 1px solid var(--cx-rule);
  border-radius: 2px;
  background: transparent;
  color: var(--cx-ink);
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  font-family: var(--cx-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color var(--cx-t-micro) ease, background-color var(--cx-t-micro) ease;
}

.cortex-funnel.cx-is-enhanced .cx-copy { display: inline-block; }
.cortex-funnel .cx-copy:hover { border-color: var(--cx-gold); background: var(--cx-gold-wash); }

/* ---------------- deliverables ---------------- */

.cortex-funnel .cx-deliver {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 2.5vw, 2rem);
  width: 100%;
  max-width: none;
  overflow: visible;
}

.cortex-funnel .cx-deliver__item {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: clamp(1rem, 1.8vw, 1.5rem);
  align-items: start;
  min-width: 0;
  max-width: none;
  min-height: 100%;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: clamp(2rem, 3vw, 2.5rem);
  background: #141416;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.cortex-funnel .cx-deliver__item > div { min-width: 0; overflow-wrap: anywhere; }

.cortex-funnel .cx-deliver__item > span {
  color: var(--cx-gold-strong);
  font-family: var(--cx-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.cortex-funnel .cx-deliver__item h3 {
  margin-bottom: 0.4rem;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #ffffff;
}

.cortex-funnel .cx-deliver__item p {
  max-width: none;
  margin-bottom: 0;
  color: #b6b2aa;
  font-size: 0.96rem;
}

/* ---------------- purchase ---------------- */

.cortex-funnel .cx-buy__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.cortex-funnel .cx-panel {
  border: 1px solid var(--cx-rule);
  background: var(--cx-surface);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.cortex-funnel .cx-panel__name {
  margin-bottom: 0.85rem;
  color: var(--cx-gold-strong);
  font-family: var(--cx-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.cortex-funnel .cx-panel__price {
  margin-bottom: 0.4rem;
  font-family: var(--font-heading--family, Poppins, Arial, sans-serif);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.cortex-funnel .cx-panel__caption {
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  color: var(--cx-muted);
  font-size: 0.95rem;
}

.cortex-funnel .cx-panel__note {
  margin: 1rem 0 0;
  color: var(--cx-faint);
  font-family: var(--cx-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.cortex-funnel .cx-specs {
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
  padding: 0;
  border-top: 1px solid var(--cx-line);
}

.cortex-funnel .cx-specs__row {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 1rem;
  align-items: baseline;
  border-bottom: 1px solid var(--cx-line);
  padding-block: 0.85rem;
}

.cortex-funnel .cx-specs__label {
  margin: 0;
  color: var(--cx-faint);
  font-family: var(--cx-mono);
  font-size: 0.67rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cortex-funnel .cx-specs__value {
  margin: 0;
  color: var(--cx-ink);
  font-size: 0.98rem;
}

/* ---------------- commercial packages ---------------- */

.cortex-funnel .cx-commercial-status {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin: -0.75rem 0 2rem;
  border: 1px solid var(--cx-gold-line);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  background: var(--cx-gold-wash);
}
.cortex-funnel .cx-commercial-status__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 0.52rem;
  border-radius: 50%;
  background: var(--cx-gold);
  box-shadow: 0 0 0 5px var(--cx-gold-wash);
}
.cortex-funnel .cx-commercial-status p { margin: 0; color: var(--cx-muted); font-size: 0.92rem; }
.cortex-funnel .cx-commercial-status strong { color: var(--cx-ink); }

.cortex-funnel .cx-pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
}

.cortex-funnel .cx-price-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  padding: clamp(1.4rem, 2.6vw, 2rem);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 34%),
    #141416;
  color: #f7f7f5;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 18px 44px rgba(0, 0, 0, 0.2);
  transition: transform 220ms var(--cx-e-out), border-color 220ms ease, box-shadow 220ms ease;
}
.cortex-funnel .cx-price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(440px circle at var(--cx-card-x, 50%) var(--cx-card-y, 0%), rgba(199, 165, 101, 0.12), transparent 45%);
  opacity: 0.45;
  transition: opacity 220ms ease;
}
.cortex-funnel .cx-price-card:hover,
.cortex-funnel .cx-price-card.cx-is-selected {
  transform: translateY(-3px);
  border-color: rgba(199, 165, 101, 0.72);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07), 0 24px 54px rgba(0, 0, 0, 0.27);
}
.cortex-funnel .cx-price-card.cx-is-selected { box-shadow: inset 0 2px #c7a565, 0 24px 54px rgba(0, 0, 0, 0.27); }
.cortex-funnel .cx-price-card > * { position: relative; z-index: 1; }
.cortex-funnel .cx-price-card__topline { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1.4rem; }
.cortex-funnel .cx-price-card__type,
.cortex-funnel .cx-price-card__status {
  font-family: var(--cx-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cortex-funnel .cx-price-card__type { color: #d4af37; }
.cortex-funnel .cx-price-card__status { border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; padding: 0.35rem 0.55rem; color: #d2d0ca; }
.cortex-funnel .cx-price-card h3 { min-height: 2.4em; margin-bottom: 0.8rem; color: #fff; font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.13; letter-spacing: -0.035em; }
.cortex-funnel .cx-price-card h3 span { color: #a9a7a1; font-size: 0.72em; font-weight: 500; }
.cortex-funnel .cx-price-card__description { min-height: 6.3em; margin-bottom: 1.3rem; color: #b8b6b0; font-size: 0.93rem; }
.cortex-funnel .cx-price-card__price { min-height: 5.3rem; border-block: 1px solid rgba(255,255,255,0.11); padding-block: 1.1rem; }
.cortex-funnel .cx-price-card__price strong { display: block; color: #fff; font-family: var(--font-heading--family, Poppins, Arial, sans-serif); font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.15; }
.cortex-funnel .cx-price-card__price span { display: block; margin-top: 0.35rem; color: #9e9ca1; font-size: 0.78rem; }
.cortex-funnel .cx-price-card__best { min-height: 4.6rem; margin: 1.2rem 0; color: #d7d5d0; font-size: 0.88rem; }
.cortex-funnel .cx-price-card__best span { display: block; margin-bottom: 0.3rem; color: #d4af37; font: 500 0.64rem/1.3 var(--cx-mono); letter-spacing: 0.15em; text-transform: uppercase; }
.cortex-funnel .cx-price-card__features { display: grid; gap: 0.65rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.cortex-funnel .cx-price-card__features li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.55rem; color: #d7d5d0; font-size: 0.86rem; }
.cortex-funnel .cx-price-card__features li span { color: #d4af37; font-weight: 800; }
.cortex-funnel .cx-price-card__details { margin: auto 0 1.25rem; border-block: 1px solid rgba(255,255,255,0.11); }
.cortex-funnel .cx-price-card__details summary { padding-block: 0.85rem; cursor: pointer; color: #f7f7f5; font-size: 0.82rem; font-weight: 600; }
.cortex-funnel .cx-price-card__details p { margin: 0; padding: 0 0 1rem; color: #aaa9ad; font-size: 0.82rem; }
.cortex-funnel .cx-price-card .cx-button { margin-top: 0; border-radius: 999px; }
.cortex-funnel .cx-price-card .cx-button:disabled { cursor: not-allowed; opacity: 0.68; }
.cortex-funnel .cx-price-card__select { width: 100%; margin-top: 0; cursor: pointer; }
.cortex-funnel .cx-price-card__select[aria-pressed="true"] { background: #ffd700; border-color: #ffd700; color: #0b0b0b; }
.cortex-funnel .cx-price-card__select[aria-pressed="true"]::before { content: "✓ "; }

.cortex-funnel .cx-price-compare { margin-top: clamp(2rem, 4vw, 3rem); border: 1px solid var(--cx-line); border-radius: 18px; background: #141416; color: #f7f7f5; }
.cortex-funnel .cx-price-compare > summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 1.25rem 1.5rem; font-weight: 600; list-style: none; }
.cortex-funnel .cx-price-compare > summary::-webkit-details-marker { display: none; }
.cortex-funnel .cx-price-compare[open] > summary .cx-acc__icon::after { transform: rotate(0); }
.cortex-funnel .cx-price-compare__grid { border-top: 1px solid rgba(255,255,255,0.11); padding: 0 1.5rem 1rem; }
.cortex-funnel .cx-price-compare__row { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 1rem; border-bottom: 1px solid rgba(255,255,255,0.09); padding-block: 1rem; }
.cortex-funnel .cx-price-compare__row > * { padding: 0.25rem 0.55rem; border-radius: 8px; }
.cortex-funnel .cx-price-compare__row strong { color: #f7f7f5; font-size: 0.86rem; }
.cortex-funnel .cx-price-compare__row span { color: #aaa9ad; font-size: 0.84rem; }
.cortex-funnel .cx-price-compare__head span { color: #d4af37; font: 500 0.68rem/1.4 var(--cx-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.cortex-funnel [data-cx-compare].cx-is-selected { background: rgba(199,165,101,0.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(199,165,101,0.3); }

/* ---------------- final ---------------- */

.cortex-funnel .cx-final {
  background: var(--cx-ink);
  color: var(--cx-surface);
  padding-block: clamp(4.5rem, 10vw, 8.5rem);
  border-top: 0;
}

.cortex-funnel .cx-final .cx-label { color: var(--cx-gold); }

.cortex-funnel .cx-final h2 {
  max-width: 17ch;
  margin-bottom: 1.15rem;
  font-size: clamp(2.1rem, 5vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.cortex-funnel .cx-final > .cx-shell > p {
  max-width: 58ch;
  margin-bottom: 0;
  color: #bdbab2;
  font-size: clamp(1rem, 1.45vw, 1.15rem);
}

.cortex-funnel .cx-final small {
  display: block;
  margin-top: 1.4rem;
  color: #928f88;
  font-size: 0.85rem;
}

/* ---------------- sticky cta ---------------- */

.cortex-funnel .cx-sticky {
  position: fixed;
  z-index: 8;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--cx-gold-line);
  background: var(--cx-surface);
  padding: 0.75rem clamp(1rem, 4vw, 2.5rem);
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform var(--cx-t-panel) var(--cx-e-out);
}

.cortex-funnel .cx-sticky.cx-is-visible { transform: none; }

.cortex-funnel .cx-sticky__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--cx-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cortex-funnel .cx-sticky .cx-button { min-height: 44px; padding-block: 0.65rem; }

/* ---------------- reveal + keyframes ---------------- */

.cortex-funnel.cx-title-reveal-ready .cortex-section-title {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cortex-funnel.cx-title-reveal-ready .cortex-section-title.is-in-view {
  opacity: 1;
  transform: translateY(0);
}

.cortex-funnel.cx-reveal-ready [data-cx-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--cx-t-reveal) ease, transform var(--cx-t-reveal) var(--cx-e-out);
}

.cortex-funnel.cx-reveal-ready [data-cx-reveal].cx-in-view { opacity: 1; transform: none; }

.cortex-funnel.cx-reveal-ready [data-cx-hero-step] {
  opacity: 0;
  transform: translateY(18px);
}

.cortex-funnel.cx-reveal-ready .cx-hero.cx-in-view [data-cx-hero-step] {
  animation: cx-hero-in 720ms var(--cx-e-out) both;
  animation-delay: calc(var(--cx-step, 0) * 90ms);
}

.cortex-funnel.cx-reveal-ready .cx-axes [data-cx-draw] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.cortex-funnel.cx-reveal-ready .cx-axes-frame.cx-in-view [data-cx-draw] {
  animation: cx-draw 1100ms var(--cx-e-inout) both;
  animation-delay: calc(var(--cx-step, 0) * 130ms);
}

.cortex-funnel.cx-reveal-ready .cx-axes .cx-axes__brain-group,
.cortex-funnel.cx-reveal-ready .cx-axes .cx-axes__node,
.cortex-funnel.cx-reveal-ready .cx-axes .cx-axes__tick { opacity: 0; }

.cortex-funnel.cx-reveal-ready .cx-axes-frame.cx-in-view .cx-axes__brain-group {
  animation: cx-brain-in 760ms var(--cx-e-out) 420ms both;
  transform-origin: 240px 240px;
}

.cortex-funnel.cx-reveal-ready .cx-axes-frame.cx-in-view .cx-axes__node {
  animation: cx-node-in 420ms var(--cx-e-out) both;
  animation-delay: calc(760ms + var(--cx-step, 0) * 70ms);
  transform-box: fill-box;
  transform-origin: center;
}

.cortex-funnel.cx-reveal-ready .cx-axes-frame.cx-in-view .cx-axes__tick {
  animation: cx-fade-in 420ms ease 1000ms both;
}

@keyframes cx-hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes cx-panel-enter { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes cx-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes cx-brain-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
@keyframes cx-node-in { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: scale(1); } }
@keyframes cx-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cx-press { 0% { transform: scale(1); } 45% { transform: scale(0.975); } 100% { transform: scale(1); } }

/* ---------------- dark mode ---------------- */

html[data-av-theme="dark"] .cortex-funnel {
  --cx-ink: #f4f3f1;
  --cx-graphite: #101010;
  --cx-muted: #b6b2aa;
  --cx-faint: #8a8781;
  --cx-paper: #171717;
  --cx-surface: #1f1f1e;
  --cx-soft: #1a1a19;
  --cx-line: rgba(255, 255, 255, 0.12);
  --cx-rule: rgba(255, 255, 255, 0.24);
  --cx-gold: #d9bd82;
  --cx-gold-strong: #e2c894;
  --cx-gold-line: rgba(217, 189, 130, 0.45);
  --cx-gold-wash: rgba(217, 189, 130, 0.12);
  --cx-danger: #f2857c;
  --cx-focus: #8ab4ff;
}

html[data-av-theme="dark"] .cortex-funnel .cx-final { background: #101010; }

html[data-av-theme="dark"] .cortex-funnel .cx-button--primary {
  background: #f4f3f1;
  border-color: #f4f3f1;
  color: #181817;
}

html[data-av-theme="dark"] .cortex-funnel .cx-button--primary:hover { background: #ffffff; color: #181817; }
html[data-av-theme="dark"] .cortex-funnel .cx-switch__btn[aria-selected="true"] { background: #f4f3f1; color: #181817; }

/* ---------------- responsive ---------------- */

@media (min-width: 1180px) {
  .cortex-funnel .cx-rail { display: block; }
  .cortex-funnel .cx-progressline { display: none; }
}

@media (max-width: 1000px) {
  .cortex-funnel .cx-stages { grid-template-columns: 1fr; }
  .cortex-funnel .cx-stage { padding-right: 0; }
  .cortex-funnel .cx-stage + .cx-stage {
    border-left: 0;
    border-top: 1px solid var(--cx-line);
    padding-left: 0;
  }
  .cortex-funnel .cx-deliver { grid-template-columns: 1fr; }
  .cortex-funnel .cx-system-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cortex-funnel .cx-pricing { grid-template-columns: 1fr; }
  .cortex-funnel .cx-price-card h3,
  .cortex-funnel .cx-price-card__description,
  .cortex-funnel .cx-price-card__best { min-height: 0; }
}

@media (max-width: 900px) {
  .cortex-funnel .cx-hero__inner,
  .cortex-funnel .cx-seg-panel,
  .cortex-funnel .cx-compare__panel,
  .cortex-funnel .cx-mode-panel,
  .cortex-funnel .cx-buy__grid { grid-template-columns: 1fr; }

  .cortex-funnel .cx-hero__inner { gap: clamp(2rem, 6vw, 3rem); }
  .cortex-funnel .cx-hero__copy { order: 1; }
  .cortex-funnel .cx-axes-frame { order: 2; }
  .cortex-funnel .cx-sound-toggle { grid-column: 1; order: 3; margin-top: -1rem; }
  .cortex-funnel .cx-axes { width: min(78vw, 380px); }

  .cortex-funnel .cx-delta {
    border-left: 0;
    border-top: 1px solid var(--cx-gold-line);
    padding-left: 0;
    padding-top: 1.25rem;
  }

  .cortex-funnel .cx-transform { grid-template-columns: 1fr; }
  .cortex-funnel .cx-transform__arrow { min-height: 54px; justify-content: start; }
  .cortex-funnel .cx-transform__arrow span { transform: rotate(90deg); transform-origin: left center; }
  .cortex-funnel .cx-gates { grid-template-columns: 1fr; }
  .cortex-funnel .cx-gates li + li { border-left: 0; border-top: 1px solid rgba(199,165,101,0.3); }
  .cortex-funnel .cx-hierarchy li { width: 100%; }

  .cortex-funnel .cx-tab-panels,
  .cortex-funnel .cx-mode-panel { min-height: 0; }
}

@media (max-width: 700px) {
  .cortex-funnel .cx-shell { width: min(calc(100% - 2rem), var(--cx-shell)); }
  .cortex-funnel .cx-chapter { padding-block: 3.25rem; }
  .cortex-funnel .cx-hero { padding-block: 2.75rem 2.5rem; }
  .cortex-funnel .cx-hero h1 { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .cortex-funnel .cx-transform { gap: 1.5rem; padding: 2rem; }

  .cortex-funnel .cx-seg {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    border-radius: 2px;
  }
  .cortex-funnel .cx-seg__btn { flex: 0 0 auto; scroll-snap-align: center; }

  .cortex-funnel .cx-tabs { grid-template-columns: repeat(5, minmax(102px, 1fr)); }
  .cortex-funnel .cx-mode-panel { padding: 1.4rem; }
  .cortex-funnel .cx-prompt { grid-template-columns: 1fr; }
  .cortex-funnel.cx-is-enhanced .cx-copy { display: block; width: 100%; }

  .cortex-funnel .cx-specs__row { grid-template-columns: 1fr; gap: 0.3rem; }
  .cortex-funnel .cx-acc__inner { padding-left: 0; padding-right: 0; }
  .cortex-funnel .cx-sticky__name { display: none; }
  .cortex-funnel .cx-sticky .cx-button { flex: 1 1 auto; }
  .cortex-funnel .cx-system-path { grid-template-columns: 1fr; }
  .cortex-funnel .cx-system-stage { min-height: 0; }
  .cortex-funnel .cx-hierarchy h3,
  .cortex-funnel .cx-hierarchy p { display: block; margin: 0.35rem 0 0; }
  .cortex-funnel .cx-compose-example ol { display: grid; }
  .cortex-funnel .cx-price-card { border-radius: 18px; }
  .cortex-funnel .cx-price-card:hover { transform: none; }
  .cortex-funnel .cx-price-card .cx-button { width: 100%; }
  .cortex-funnel .cx-price-compare__grid { padding-inline: 1rem; }
  .cortex-funnel .cx-price-compare__row { grid-template-columns: 1fr; gap: 0.35rem; }
  .cortex-funnel .cx-price-compare__head { display: none; }
  .cortex-funnel .cx-price-compare__row strong { margin-bottom: 0.25rem; color: #fff; }
  .cortex-funnel .cx-price-compare__row span::before { content: attr(data-label) ": "; color: #d4af37; font-family: var(--cx-mono); font-size: 0.68rem; text-transform: uppercase; }
}

@media (max-width: 420px) {
  .cortex-funnel .cx-actions { flex-direction: column; }
  .cortex-funnel .cx-actions .cx-button { width: 100%; }
  .cortex-funnel .cx-wordmark { letter-spacing: 0.3em; }
  .cortex-funnel .cx-switch { width: calc(100% - 2.5rem); }
  .cortex-funnel .cx-switch__btn { flex: 1 1 0; padding-inline: 0.6rem; }
}

/* ---------------- UX polish ---------------- */

.cortex-funnel .cx-chapter { padding-block: clamp(5rem, 8vw, 7.5rem); }
.cortex-funnel .cx-head { margin-bottom: clamp(2rem, 4vw, 3.75rem); }
.cortex-funnel .cx-actions { gap: clamp(1.5rem, 2.5vw, 2rem); }

.cortex-funnel .cx-button {
  border-radius: 999px;
  transition: all 0.2s ease;
}
.cortex-funnel .cx-button:hover,
.cortex-funnel .cx-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(24, 24, 23, 0.14);
}
.cortex-funnel .cx-button:active { transform: translateY(0) scale(0.995); }

.cortex-funnel .cx-seg,
.cortex-funnel .cx-tabs,
.cortex-funnel .cx-switch {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.cortex-funnel .cx-seg {
  gap: 0.5rem;
  border-radius: 999px;
}
.cortex-funnel .cx-seg__btn,
.cortex-funnel .cx-tab,
.cortex-funnel .cx-switch__btn {
  border-radius: 999px;
  transition: all 0.2s ease;
}
.cortex-funnel .cx-seg__btn:hover,
.cortex-funnel .cx-tab:hover,
.cortex-funnel .cx-switch__btn:hover { transform: translateY(-1px); }
.cortex-funnel .cx-tabs {
  gap: 0.5rem;
  padding: 0.5rem;
}
.cortex-funnel .cx-tab + .cx-tab { border-left: 0; }

.cortex-funnel .cx-axes__brain-image,
.cortex-funnel .cortex-hero__image {
  mix-blend-mode: screen;
  filter: saturate(0.92) contrast(1.04) brightness(0.96);
}

.cortex-funnel .cx-system-path {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 2.5vw, 2rem);
  background: transparent;
  border: 0;
}
.cortex-funnel .cx-system-stage {
  min-height: 250px;
  display: flex;
  border: 1px solid var(--cx-line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(24, 24, 23, 0.04);
  transition: all 0.2s ease;
}
.cortex-funnel .cx-system-stage:hover,
.cortex-funnel .cx-system-stage:focus-within {
  border-color: var(--cx-gold-line);
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(24, 24, 23, 0.1);
}
.cortex-funnel .cx-system-stage details {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.cortex-funnel .cx-system-stage summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  cursor: pointer;
  list-style: none;
}
.cortex-funnel .cx-system-stage summary::-webkit-details-marker { display: none; }
.cortex-funnel .cx-system-stage__badge {
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--cx-gold-line);
  border-radius: 999px;
  background: var(--cx-gold-wash);
}
.cortex-funnel .cx-system-stage__title {
  color: var(--cx-ink);
  font-family: var(--font-heading--family, Poppins, Arial, sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
}
.cortex-funnel .cx-system-stage__toggle {
  width: 30px;
  height: 18px;
  border: 1px solid var(--cx-rule);
  border-radius: 999px;
  background: var(--cx-soft);
  position: relative;
  transition: all 0.2s ease;
}
.cortex-funnel .cx-system-stage__toggle::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: var(--cx-muted);
  transition: all 0.2s ease;
}
.cortex-funnel .cx-system-stage details[open] .cx-system-stage__toggle {
  background: var(--cx-ink);
  border-color: var(--cx-ink);
}
.cortex-funnel .cx-system-stage details[open] .cx-system-stage__toggle::after {
  transform: translateX(12px);
  background: var(--cx-surface);
}
.cortex-funnel .cx-system-stage__detail { padding-top: 2rem; }
.cortex-funnel .cx-system-stage h3 { margin: 0; }

@media (max-width: 1000px) {
  .cortex-funnel .cx-system-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .cortex-funnel .cx-chapter,
  .cortex-funnel .cx-hero { padding-block: 5rem; }
  .cortex-funnel .cx-system-path { grid-template-columns: 1fr; }
  .cortex-funnel .cx-system-stage { min-height: 0; }
  .cortex-funnel .cx-seg { border-radius: 24px; }
}

/* ---------------- dark editorial hero ---------------- */

.cortex-funnel .cx-hero {
  min-height: auto;
  display: block;
  padding-block: clamp(5rem, 8vw, 7.5rem);
  background: #0b0b0b;
}
.cortex-funnel .cx-hero__inner {
  min-height: min(640px, 72svh);
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(3rem, 7vw, 6rem);
}
.cortex-funnel .cx-wordmark {
  width: fit-content;
  margin-bottom: 1.75rem;
  padding: 0;
  border: 0;
  color: #d4af37;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}
.cortex-funnel .cx-hero h1 {
  max-width: 13ch;
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-size: clamp(3rem, 5.8vw, 5.4rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 0.98;
}
.cortex-funnel .cx-hero__intro {
  max-width: 56ch;
  color: #b8b8bb;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
}
.cortex-funnel .cx-hero__value { display: none; }
.cortex-funnel .cx-hero .cx-button--primary {
  background: #c5a059;
  border-color: #c5a059;
  color: #0b0b0b;
  box-shadow: 0 10px 28px rgba(197, 160, 89, 0.18);
}
.cortex-funnel .cx-hero .cx-button--primary:hover,
.cortex-funnel .cx-hero .cx-button--primary:focus-visible {
  background: #d4af37;
  border-color: #d4af37;
  color: #0b0b0b;
}
.cortex-funnel .cx-hero .cx-button--secondary {
  background: #141416;
  border-color: #c5a059;
  color: #ffffff;
}
.cortex-funnel .cx-hero .cx-button--secondary:hover,
.cortex-funnel .cx-hero .cx-button--secondary:focus-visible {
  background: #c5a059;
  color: #0b0b0b;
}
.cortex-funnel .cx-axes-frame {
  filter: none;
  perspective: 1000px;
  transform-style: preserve-3d;
  overflow: visible;
}
.cortex-funnel .cx-axes { width: min(100%, 520px); overflow: visible; }
.cortex-funnel .cx-axes__orbit-group {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform;
}
.cortex-funnel .cx-axes__orbit,
.cortex-funnel .cx-axes__axis { stroke: #c5a059; }
.cortex-funnel .cx-axes__orbit { opacity: 0.58; }
.cortex-funnel .cx-axes__orbit--lit { opacity: 0.95; }
.cortex-funnel .cx-axes__node,
.cortex-funnel .cx-axes__origin { fill: #d4af37; }
.cortex-funnel .cx-axes__tick { fill: #d4af37; }
.cortex-funnel .cortex-hero__image {
  mix-blend-mode: screen;
  filter: saturate(0.98) contrast(1.05) brightness(0.98);
}

.cortex-funnel .cx-hero__modes { margin-top: clamp(3rem, 6vw, 5.5rem); }
.cortex-funnel .cx-hero__modes .cx-modes {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #141416;
  color: #ffffff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}
.cortex-funnel .cx-hero__modes .cx-tabs {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(20, 20, 22, 0.88);
}
.cortex-funnel .cx-hero__modes .cx-tab { color: #89898f; }
.cortex-funnel .cx-hero__modes .cx-tab:hover { color: #ffffff; }
.cortex-funnel .cx-hero__modes .cx-tab[aria-selected="true"] {
  background: transparent;
  color: #d4af37;
}
.cortex-funnel .cx-hero__modes .cx-tabs__indicator { background: #d4af37; }
.cortex-funnel .cx-hero__modes .cx-mode-panel {
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.78fr);
  gap: clamp(2rem, 6vw, 5rem);
  min-height: 390px;
  padding: clamp(2rem, 4vw, 3.5rem);
}
.cortex-funnel .cx-hero__modes .cx-mode-panel h3 { color: #ffffff; font-size: clamp(1.8rem, 3.4vw, 3rem); }
.cortex-funnel .cx-hero__modes .cx-mode-panel > div > p:last-child,
.cortex-funnel .cx-hero__modes .cx-mode-panel__main > p { color: #b8b8bb; }
.cortex-funnel .cx-hero__modes .cx-mode-panel__index { color: #d4af37; }
.cortex-funnel .cx-mode-prompt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.5rem;
  align-items: end;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
}
.cortex-funnel .cx-mode-prompt .cx-prompt__label { grid-column: 1 / -1; color: #d4af37; }
.cortex-funnel .cx-mode-prompt .cx-prompt__text { margin: 0; color: #d7d7da; font-size: 0.9rem; }
.cortex-funnel .cx-mode-prompt .cx-copy {
  border-color: #c5a059;
  border-radius: 999px;
  color: #d4af37;
  white-space: nowrap;
}
.cortex-funnel .cx-mode-prompt .cx-copy:hover { background: #c5a059; color: #0b0b0b; transform: translateY(-2px); }
.cortex-funnel .cx-mode-quote {
  align-self: center;
  margin: 0;
  border-left: 2px solid #c5a059;
  padding-left: clamp(1.5rem, 3vw, 2.25rem);
  color: #ffffff;
  font-style: normal;
}
.cortex-funnel .cx-mode-quote__mark {
  display: block;
  height: 2rem;
  color: #d4af37;
  font-family: Georgia, serif;
  font-size: 3.5rem;
  line-height: 1;
}
.cortex-funnel .cx-mode-quote p { margin: 1rem 0 1.5rem; color: #ffffff; font-size: clamp(1.2rem, 2vw, 1.65rem); }
.cortex-funnel .cx-mode-quote cite {
  color: #d4af37;
  font-family: var(--cx-mono);
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cortex-funnel .cx-system-stage__detail { overflow: hidden; }
.cortex-funnel .cx-system-stage details:not([open]) .cx-system-stage__detail { display: none; }

@media (max-width: 900px) {
  .cortex-funnel .cx-hero__inner,
  .cortex-funnel .cx-hero__modes .cx-mode-panel { grid-template-columns: 1fr; }
  .cortex-funnel .cx-hero__inner { min-height: auto; }
}

@media (max-width: 700px) {
  .cortex-funnel .cx-hero h1 { font-size: clamp(2.6rem, 12vw, 4rem); }
  .cortex-funnel .cx-hero__modes { margin-top: 3rem; }
  .cortex-funnel .cx-hero__modes .cx-mode-panel { min-height: 0; padding: 1.5rem; }
  .cortex-funnel .cx-mode-prompt { grid-template-columns: 1fr; }
  .cortex-funnel .cx-mode-prompt .cx-prompt__label { grid-column: 1; }
}

/* ---------------- full-page dark editorial theme ---------------- */

.cortex-funnel {
  --cx-ink: #f7f7f5;
  --cx-graphite: #0e0e10;
  --cx-muted: #aaa9ad;
  --cx-faint: #7f7e83;
  --cx-paper: #0b0b0b;
  --cx-surface: #141416;
  --cx-soft: #101012;
  --cx-line: rgba(255, 255, 255, 0.11);
  --cx-rule: rgba(255, 255, 255, 0.22);
  --cx-gold: #d4af37;
  --cx-gold-strong: #d4af37;
  --cx-gold-line: rgba(197, 160, 89, 0.62);
  --cx-gold-wash: rgba(197, 160, 89, 0.11);
  background: #0b0b0b;
  color: #f7f7f5;
}

.cortex-funnel .cx-chapter {
  border-top-color: rgba(255, 255, 255, 0.1);
  background: #0e0e10;
  color: #f7f7f5;
}
.cortex-funnel .cx-chapter:nth-of-type(even) { background: #101012; }
.cortex-funnel .cx-chapter--surface,
.cortex-funnel .cx-chapter--soft,
.cortex-funnel .cx-chapter--govern,
.cortex-funnel .cx-chapter--demo { background: #0e0e10; }
.cortex-funnel .cx-head h2,
.cortex-funnel .cx-promise,
.cortex-funnel .cx-transform__side--after,
.cortex-funnel .cx-stage h3,
.cortex-funnel .cx-deliver__item h3,
.cortex-funnel .cx-acc__title { color: #f7f7f5; }
.cortex-funnel .cx-head p,
.cortex-funnel .cx-note,
.cortex-funnel .cx-transform__side > p:last-child,
.cortex-funnel .cx-stage p,
.cortex-funnel .cx-deliver__item p,
.cortex-funnel .cx-acc__inner p { color: #aaa9ad; }
.cortex-funnel .cx-label,
.cortex-funnel .cx-label__num,
.cortex-funnel .cx-micro { color: #d4af37; }

.cortex-funnel .cx-seg,
.cortex-funnel .cx-seg-panel,
.cortex-funnel .cx-transform,
.cortex-funnel .cx-compare,
.cortex-funnel .cx-modes,
.cortex-funnel .cx-prompt,
.cortex-funnel .cx-panel {
  border-color: rgba(255, 255, 255, 0.13);
  background: #141416;
  color: #f7f7f5;
}
.cortex-funnel .cx-seg__btn,
.cortex-funnel .cx-tab,
.cortex-funnel .cx-switch__btn { color: #8f8e93; }
.cortex-funnel .cx-seg__btn:hover,
.cortex-funnel .cx-tab:hover,
.cortex-funnel .cx-switch__btn:hover { color: #ffffff; }
.cortex-funnel .cx-seg__btn[aria-selected="true"],
.cortex-funnel .cx-tab[aria-selected="true"] {
  background: rgba(197, 160, 89, 0.12);
  color: #d4af37;
}
.cortex-funnel .cx-switch { background: #0b0b0b; border-color: rgba(255,255,255,0.16); }
.cortex-funnel .cx-switch__btn[aria-selected="true"] { background: #c5a059; color: #0b0b0b; }
.cortex-funnel .cx-seg-panel h3,
.cortex-funnel .cx-compare__panel,
.cortex-funnel .cx-compare__panel--after > div > p:last-child { color: #f7f7f5; }
.cortex-funnel .cx-ticks li,
.cortex-funnel .cx-compare__panel--before > div > p:last-child,
.cortex-funnel .cx-compare__panel > div > p:last-child { color: #aaa9ad; }

.cortex-funnel .cx-transform { border-color: rgba(255,255,255,0.13); }
.cortex-funnel .cx-transform__chain li,
.cortex-funnel .cx-compose-example li {
  border-color: rgba(197,160,89,0.48);
  border-radius: 999px;
  background: rgba(197,160,89,0.08);
  color: #d8d7da;
}

.cortex-funnel .cx-system-stage,
.cortex-funnel .cx-system-stage--gate,
.cortex-funnel .cx-deliver__item,
.cortex-funnel .cx-hierarchy li {
  border-color: rgba(255,255,255,0.12);
  background: #141416;
  color: #f7f7f5;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03);
}
.cortex-funnel .cx-system-stage:hover,
.cortex-funnel .cx-system-stage:focus-within,
.cortex-funnel .cx-deliver__item:hover,
.cortex-funnel .cx-hierarchy li:hover {
  border-color: rgba(197,160,89,0.58);
  box-shadow: 0 18px 42px rgba(0,0,0,0.28);
}
.cortex-funnel .cx-system-stage__title,
.cortex-funnel .cx-hierarchy h3 { color: #f7f7f5; }
.cortex-funnel .cx-system-stage p,
.cortex-funnel .cx-hierarchy p { color: #aaa9ad; }
.cortex-funnel .cx-system-stage__toggle { background: #0b0b0b; }
.cortex-funnel .cx-system-stage details[open] .cx-system-stage__toggle {
  border-color: #c5a059;
  background: #c5a059;
}
.cortex-funnel .cx-system-stage details[open] .cx-system-stage__toggle::after { background: #0b0b0b; }

.cortex-funnel .cx-gates {
  border-block-color: rgba(197,160,89,0.36);
  background: #141416;
}
.cortex-funnel .cx-gates h3 { color: #ffffff; }
.cortex-funnel .cx-gates p { color: #aaa9ad; }
.cortex-funnel .cx-compose-example { border-color: rgba(255,255,255,0.12); }

.cortex-funnel .cx-acc { border-color: rgba(255,255,255,0.13); }
.cortex-funnel .cx-acc__item { border-color: rgba(255,255,255,0.11); }
.cortex-funnel .cx-acc__summary:hover .cx-acc__title { color: #d4af37; }
.cortex-funnel .cx-specs { border-color: rgba(255,255,255,0.13); }
.cortex-funnel .cx-specs__row { border-color: rgba(255,255,255,0.1); }
.cortex-funnel .cx-specs__label { color: #8f8e93; }
.cortex-funnel .cx-specs__value,
.cortex-funnel .cx-panel__name,
.cortex-funnel .cx-panel__price { color: #f7f7f5; }
.cortex-funnel .cx-panel__caption,
.cortex-funnel .cx-panel__note { color: #8f8e93; }

.cortex-funnel .cx-button--primary {
  border-color: #c5a059;
  background: #c5a059;
  color: #0b0b0b;
}
.cortex-funnel .cx-button--primary:hover,
.cortex-funnel .cx-button--primary:focus-visible {
  border-color: #d4af37;
  background: #d4af37;
  color: #0b0b0b;
}
.cortex-funnel .cx-button--secondary {
  border-color: rgba(197,160,89,0.72);
  color: #f7f7f5;
}
.cortex-funnel .cx-button--secondary:hover,
.cortex-funnel .cx-button--secondary:focus-visible { background: #c5a059; color: #0b0b0b; }

.cortex-funnel .cx-final {
  border-top: 1px solid rgba(197,160,89,0.32);
  background: #0b0b0b;
  color: #f7f7f5;
}
.cortex-funnel .cx-sticky {
  border-top: 1px solid rgba(197,160,89,0.32);
  background: rgba(14,14,16,0.94);
  color: #f7f7f5;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.cortex-funnel .cx-sticky__name { color: #f7f7f5; }

/* ---------------- interactive 3D brain ---------------- */

.cortex-funnel .cortex-hero__orbit-container {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  cursor: grab;
  perspective: 1000px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.cortex-funnel .cortex-hero__orbit-container.cx-is-dragging {
  cursor: grabbing;
  touch-action: none;
}

.cortex-funnel .cx-hero__visual-shell {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  justify-self: center;
  grid-column: 2;
}

.cortex-funnel .cx-sound-toggle {
  position: absolute;
  z-index: 25;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 9999px;
  background: rgba(11, 11, 11, 0.65);
  color: #e2c66f;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cortex-funnel .cx-sound-toggle:hover {
  border-color: #d4af37;
  color: #f4d879;
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12), 0 0 26px rgba(212, 175, 55, 0.38);
}

.cortex-funnel .cx-sound-toggle__icon {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cortex-funnel .cx-sound-toggle__icon--on { display: none; }
.cortex-funnel .cx-sound-toggle__on { display: none; }
.cortex-funnel .cx-sound-control:checked + .cx-sound-toggle {
  border-color: rgba(212, 175, 55, 0.86);
  background: rgba(11, 11, 11, 0.78);
  color: #f4d879;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1), 0 0 22px rgba(212, 175, 55, 0.3);
}
.cortex-funnel .cx-sound-control:checked + .cx-sound-toggle .cx-sound-toggle__icon--off { display: none; }
.cortex-funnel .cx-sound-control:checked + .cx-sound-toggle .cx-sound-toggle__icon--on { display: block; }
.cortex-funnel .cx-sound-control:checked + .cx-sound-toggle .cx-sound-toggle__off { display: none; }
.cortex-funnel .cx-sound-control:checked + .cx-sound-toggle .cx-sound-toggle__on { display: inline; }
.cortex-funnel .cx-sound-control:focus-visible + .cx-sound-toggle {
  outline: 2px solid #d4af37;
  outline-offset: 3px;
}

.cortex-funnel .cx-sound-control:checked + .cx-sound-toggle .cx-sound-wave {
  animation: cx-sound-wave 1.4s ease-in-out infinite;
  transform-origin: 16px 12px;
}
.cortex-funnel .cx-sound-control:checked + .cx-sound-toggle .cx-sound-wave--two { animation-delay: 180ms; }

@keyframes cx-sound-wave {
  0%, 100% { opacity: 0.45; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.04); }
}

@media (max-width: 900px) {
  .cortex-funnel .cx-hero__visual-shell { grid-column: 1; order: 2; }
}

.cortex-funnel .cortex-hero__scene {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  perspective: 1000px;
  overflow: visible;
  transform-origin: 50% 50%;
}

.cortex-funnel .cx-orbit-sphere,
.cortex-funnel .cx-axes > g:not(.cx-axes__brain-group) {
  transform-box: view-box;
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  will-change: transform;
}

.cortex-funnel .cortex-hero__visual {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  transform: translateZ(0);
}

.cortex-funnel .cx-orbit-sphere {
  position: absolute;
  z-index: 1;
  inset: 7%;
  pointer-events: none;
  transform-style: preserve-3d;
}

.cortex-funnel .cx-orbit-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 50%;
  box-shadow: inset 0 0 18px rgba(212, 175, 55, 0.06);
  transform-style: preserve-3d;
}

.cortex-funnel .cx-orbit-ring--one { transform: rotateX(68deg) rotateZ(12deg) translateZ(10px); }
.cortex-funnel .cx-orbit-ring--two { transform: rotateY(68deg) rotateZ(54deg) translateZ(-16px); }
.cortex-funnel .cx-orbit-ring--three { transform: rotateX(48deg) rotateY(58deg) rotateZ(112deg) translateZ(24px); }
.cortex-funnel .cx-orbit-ring--four { inset: 12%; transform: rotateX(82deg) rotateY(22deg) translateZ(-28px); }

.cortex-funnel .cx-axes__brain-group {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 320ms var(--cx-e-out), opacity 220ms ease, filter 320ms ease;
}

.cortex-funnel .cortex-hero__image {
  pointer-events: auto;
  cursor: inherit;
  opacity: 0;
}

.cortex-funnel .cx-brain-volume {
  position: absolute;
  z-index: 3;
  left: 21.875%;
  top: 14.792%;
  width: 56.25%;
  height: 70.417%;
  pointer-events: none;
  transform-style: preserve-3d;
  perspective: 1000px;
  overflow: visible;
  transform-origin: 50% 50%;
  transition: opacity 240ms ease, filter 420ms ease;
  will-change: transform, opacity, filter;
}

.cortex-funnel .cx-brain-slice {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: var(--cx-alpha);
  mix-blend-mode: screen;
  filter: saturate(1.08) contrast(1.08) drop-shadow(0 0 8px rgba(170, 92, 255, 0.18));
  transform: translateZ(var(--cx-z)) scale(var(--cx-scale));
  transform-origin: 50% 50%;
  backface-visibility: visible;
  will-change: transform;
}

.cortex-funnel .cx-brain-slice--core {
  filter: saturate(1.12) contrast(1.1) brightness(1.04) drop-shadow(0 0 14px rgba(170, 92, 255, 0.3));
}

.cortex-funnel .cortex-hero__orbit-container.cx-is-separated .cx-axes__brain-group {
  opacity: 0;
  filter: brightness(1.3);
}

.cortex-funnel .cortex-hero__orbit-container.cx-is-separated .cx-brain-volume {
  opacity: 0.42;
  filter: brightness(1.3) saturate(1.12);
}

.cortex-funnel .cx-brain-layers {
  position: absolute;
  z-index: 2;
  left: 21.875%;
  top: 14.792%;
  width: 56.25%;
  height: 70.417%;
  pointer-events: none;
  background: none !important;
  box-shadow: none !important;
  mix-blend-mode: screen;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  will-change: transform;
}

.cortex-funnel .cx-brain-layer {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  background: none !important;
  box-shadow: none !important;
  mix-blend-mode: screen;
  filter: var(--cx-brain-alpha-filter, none) contrast(1.2);
  -webkit-mask-image: radial-gradient(ellipse 41% 45% at 50% 50%, #000 0%, #000 76%, rgba(0, 0, 0, 0.96) 84%, rgba(0, 0, 0, 0.42) 94%, transparent 100%);
  mask-image: radial-gradient(ellipse 41% 45% at 50% 50%, #000 0%, #000 76%, rgba(0, 0, 0, 0.96) 84%, rgba(0, 0, 0, 0.42) 94%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transform: translate3d(0, 0, 0);
  transition: opacity 240ms ease, transform 720ms cubic-bezier(0.2, 0.72, 0.24, 1), filter 720ms ease;
  will-change: transform, opacity;
}

.cortex-funnel :is(.cx-brain-piece, .cx-brain-quadrant),
.cortex-funnel :is(.cx-brain-piece, .cx-brain-quadrant) :is(img, svg) {
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  mix-blend-mode: screen;
}

:root:not([data-theme="light"]) .cortex-funnel :is(.cx-brain-piece, .cx-brain-quadrant),
:root:not([data-theme="light"]) .cortex-funnel .cx-brain-piece img,
:root:not([data-theme="light"]) .cortex-funnel .cx-brain-quadrant img {
  mix-blend-mode: screen;
  filter: var(--cx-brain-alpha-filter, none) brightness(1.1) contrast(1.1);
}

:is([data-theme="light"], [data-av-theme="light"], body.light-mode) .cortex-funnel :is(.cx-brain-piece, .cx-brain-quadrant),
:is([data-theme="light"], [data-av-theme="light"], body.light-mode) .cortex-funnel .cx-brain-piece img,
:is([data-theme="light"], [data-av-theme="light"], body.light-mode) .cortex-funnel .cx-brain-quadrant img,
.cortex-funnel[data-theme="light"] :is(.cx-brain-piece, .cx-brain-quadrant),
.cortex-funnel[data-theme="light"] .cx-brain-piece img,
.cortex-funnel[data-theme="light"] .cx-brain-quadrant img {
  mix-blend-mode: normal !important;
  filter: var(--cx-brain-alpha-filter, none) brightness(1.25) contrast(1.1) saturate(1.4) drop-shadow(0 0 15px rgba(249, 103, 251, 0.25)) !important;
}

.cortex-funnel .cx-brain-filter-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.cortex-funnel .cx-brain-layer--orange { clip-path: inset(0 50% 50% 0); }
.cortex-funnel .cx-brain-layer--violet { clip-path: inset(0 0 50% 50%); }
.cortex-funnel .cx-brain-layer--magenta { clip-path: inset(50% 50% 0 0); }
.cortex-funnel .cx-brain-layer--cyan { clip-path: inset(50% 0 0 50%); }

.cortex-funnel .cx-is-separated .cx-brain-layer { opacity: 1; filter: var(--cx-brain-alpha-filter, none) contrast(1.2) saturate(1.18) brightness(1.12); }
.cortex-funnel .cx-is-separated .cx-brain-layer--orange { transform: translate3d(-42px, -34px, 70px) rotateX(10deg) rotateY(-18deg); }
.cortex-funnel .cx-is-separated .cx-brain-layer--violet { transform: translate3d(42px, -34px, 30px) rotateX(10deg) rotateY(18deg); }
.cortex-funnel .cx-is-separated .cx-brain-layer--magenta { transform: translate3d(-42px, 34px, -20px) rotateX(-12deg) rotateY(-14deg); }
.cortex-funnel .cx-is-separated .cx-brain-layer--cyan { transform: translate3d(42px, 34px, -60px) rotateX(-12deg) rotateY(14deg); }

.cortex-funnel .cx-brain-void {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
  isolation: isolate;
}

.cortex-funnel .cx-brain-particle-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  pointer-events: none;
  transform-style: preserve-3d;
  transform: translateZ(0);
  backface-visibility: hidden;
  transform-origin: 50% 50%;
  transition: opacity 100ms ease;
  will-change: transform;
}

.cortex-funnel .cx-is-fragmenting .cx-brain-layer { opacity: 0; transition-duration: 120ms; }
.cortex-funnel .cx-is-fragmenting .cx-brain-particle-canvas { opacity: 1; }

.cortex-funnel .cx-is-magnetic .cx-brain-layer {
  transition: opacity 180ms ease, transform 360ms cubic-bezier(0.16, 1, 0.3, 1), filter 360ms ease;
  filter: var(--cx-brain-alpha-filter, none) contrast(1.2) saturate(1.08) brightness(1.06);
}
.cortex-funnel .cx-is-magnetic .cx-brain-layer--orange { transform: translate3d(-62px, -54px, 82px) rotateX(10deg) rotateY(-18deg); }
.cortex-funnel .cx-is-magnetic .cx-brain-layer--violet { transform: translate3d(62px, -54px, 42px) rotateX(10deg) rotateY(18deg); }
.cortex-funnel .cx-is-magnetic .cx-brain-layer--magenta { transform: translate3d(-62px, 54px, -8px) rotateX(-12deg) rotateY(-14deg); }
.cortex-funnel .cx-is-magnetic .cx-brain-layer--cyan { transform: translate3d(62px, 54px, -48px) rotateX(-12deg) rotateY(14deg); }
.cortex-funnel .cx-is-magnetic .cx-brain-particle-canvas {
  opacity: 0;
  transition: opacity 150ms ease;
  mix-blend-mode: screen;
  isolation: isolate;
  contain: strict;
  backface-visibility: hidden;
  filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.62)) drop-shadow(0 0 6px rgba(56, 189, 248, 0.68));
}

.cortex-funnel .cx-is-magnetic.cx-plasma-ignited .cx-brain-particle-canvas {
  opacity: 1;
  filter: saturate(1.18) brightness(1.1) drop-shadow(0 0 14px rgba(168, 85, 247, 0.58)) drop-shadow(0 0 7px rgba(56, 189, 248, 0.66));
}

:is([data-theme="light"], [data-av-theme="light"], body.light-mode) .cortex-funnel .cx-brain-particle-canvas,
.cortex-funnel[data-theme="light"] .cx-brain-particle-canvas {
  mix-blend-mode: multiply;
  filter: saturate(1.22) contrast(1.16) drop-shadow(0 0 8px rgba(56, 189, 248, 0.42)) drop-shadow(0 0 6px rgba(124, 58, 237, 0.38));
}

/* ---------------- explicit light mode ---------------- */

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) body:has(.cortex-funnel) #header-group .header,
body:has(.cortex-funnel[data-theme="light"]) #header-group .header,
body.light-mode:has(.cortex-funnel) #header-group .header {
  --header-bg-color: rgba(247, 249, 252, 0.96);
  --color-foreground: #0b1020;
  --color-foreground-rgb: 11, 16, 32;
  --color-border: #e2e8f0;
  --color-border-rgb: 226, 232, 240;
  color: #0b1020;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) body:has(.cortex-funnel) #header-group .header__row,
body:has(.cortex-funnel[data-theme="light"]) #header-group .header__row,
body.light-mode:has(.cortex-funnel) #header-group .header__row {
  border-color: #e2e8f0;
  background: rgba(247, 249, 252, 0.96);
  color: #0b1020;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) body:has(.cortex-funnel) #header-group :is(
  .menu-list__link,
  .header-actions__action,
  .header__icon,
  .localization-selector,
  .localization-selector__button,
  .drawer-localization__button,
  .av-header-menu-trigger
),
body:has(.cortex-funnel[data-theme="light"]) #header-group :is(
  .menu-list__link,
  .header-actions__action,
  .header__icon,
  .localization-selector,
  .localization-selector__button,
  .drawer-localization__button,
  .av-header-menu-trigger
),
body.light-mode:has(.cortex-funnel) #header-group :is(
  .menu-list__link,
  .header-actions__action,
  .header__icon,
  .localization-selector,
  .localization-selector__button,
  .drawer-localization__button,
  .av-header-menu-trigger
) { color: #0b1020; }

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) body:has(.cortex-funnel) #header-group :is(a, button, summary):is(:hover, :focus-visible),
body:has(.cortex-funnel[data-theme="light"]) #header-group :is(a, button, summary):is(:hover, :focus-visible),
body.light-mode:has(.cortex-funnel) #header-group :is(a, button, summary):is(:hover, :focus-visible) {
  color: #c5a059;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) body:has(.cortex-funnel) #header-group .av-header-menu-trigger,
body:has(.cortex-funnel[data-theme="light"]) #header-group .av-header-menu-trigger,
body.light-mode:has(.cortex-funnel) #header-group .av-header-menu-trigger {
  border-color: #e2e8f0;
  background: #ffffff;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) body:has(.cortex-funnel) #header-group .header-logo__image,
body:has(.cortex-funnel[data-theme="light"]) #header-group .header-logo__image,
body.light-mode:has(.cortex-funnel) #header-group .header-logo__image {
  filter: grayscale(1) brightness(0) saturate(100%);
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel,
.cortex-funnel[data-theme="light"],
.light-mode .cortex-funnel {
  --cx-ink: #222a3a;
  --cx-graphite: #0b1020;
  --cx-muted: #5f6b7c;
  --cx-faint: #7a8798;
  --cx-paper: #f7f9fc;
  --cx-surface: #ffffff;
  --cx-soft: #f4f4f6;
  --cx-line: #e2e8f0;
  --cx-rule: #cbd5e1;
  --cx-gold: #c5a059;
  --cx-gold-strong: #7a5714;
  --cx-gold-line: rgba(197, 160, 89, 0.58);
  --cx-gold-wash: rgba(197, 160, 89, 0.1);
  background: #f7f9fc;
  color: #222a3a;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-hero,
.cortex-funnel[data-theme="light"] .cx-hero,
.light-mode .cortex-funnel .cx-hero {
  background: #f7f9fc;
  color: #222a3a;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel :is(.cx-hero h1, .cx-head h2, .cx-promise, .cx-final h2),
.cortex-funnel[data-theme="light"] :is(.cx-hero h1, .cx-head h2, .cx-promise, .cx-final h2),
.light-mode .cortex-funnel :is(.cx-hero h1, .cx-head h2, .cx-promise, .cx-final h2) {
  color: #0b1020;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel :is(.cx-hero__intro, .cx-head p, .cx-note),
.cortex-funnel[data-theme="light"] :is(.cx-hero__intro, .cx-head p, .cx-note),
.light-mode .cortex-funnel :is(.cx-hero__intro, .cx-head p, .cx-note) {
  color: #5f6b7c;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-chapter,
.cortex-funnel[data-theme="light"] .cx-chapter,
.light-mode .cortex-funnel .cx-chapter {
  border-color: #e2e8f0;
  background: #f7f9fc;
  color: #222a3a;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-chapter:nth-of-type(even),
.cortex-funnel[data-theme="light"] .cx-chapter:nth-of-type(even),
.light-mode .cortex-funnel .cx-chapter:nth-of-type(even) { background: #f4f4f6; }

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel :is(
  .cx-seg,
  .cx-seg-panel,
  .cx-compare,
  .cx-modes,
  .cx-prompt,
  .cx-panel,
  .cx-system-stage,
  .cx-system-stage--gate,
  .cx-deliver__item,
  .cx-hierarchy li,
  .cx-gates,
  .cx-transform
),
.cortex-funnel[data-theme="light"] :is(
  .cx-seg,
  .cx-seg-panel,
  .cx-compare,
  .cx-modes,
  .cx-prompt,
  .cx-panel,
  .cx-system-stage,
  .cx-system-stage--gate,
  .cx-deliver__item,
  .cx-hierarchy li,
  .cx-gates,
  .cx-transform
),
.light-mode .cortex-funnel :is(
  .cx-seg,
  .cx-seg-panel,
  .cx-compare,
  .cx-modes,
  .cx-prompt,
  .cx-panel,
  .cx-system-stage,
  .cx-system-stage--gate,
  .cx-deliver__item,
  .cx-hierarchy li,
  .cx-gates,
  .cx-transform
) {
  border-color: #e2e8f0;
  background: #ffffff;
  color: #222a3a;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel :is(.cx-transform__side, .cx-transform__side--before, .cx-transform__side--after, .cx-transform__side > p),
.cortex-funnel[data-theme="light"] :is(.cx-transform__side, .cx-transform__side--before, .cx-transform__side--after, .cx-transform__side > p),
.light-mode .cortex-funnel :is(.cx-transform__side, .cx-transform__side--before, .cx-transform__side--after, .cx-transform__side > p) {
  color: #1a202c;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-transform__chain li,
.cortex-funnel[data-theme="light"] .cx-transform__chain li,
.light-mode .cortex-funnel .cx-transform__chain li {
  border-color: #4a5568;
  color: #2d3748;
  background: #f0f4f8;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel :is(.cx-micro, .cx-label, .cx-system-stage__badge),
.cortex-funnel[data-theme="light"] :is(.cx-micro, .cx-label, .cx-system-stage__badge),
.light-mode .cortex-funnel :is(.cx-micro, .cx-label, .cx-system-stage__badge) {
  color: #975a16;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-sound-toggle,
.cortex-funnel[data-theme="light"] .cx-sound-toggle,
.light-mode .cortex-funnel .cx-sound-toggle {
  border-color: rgba(151, 90, 22, 0.72);
  background: rgba(11, 11, 11, 0.72);
  color: #f4d879;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-brain-slice,
.cortex-funnel[data-theme="light"] .cx-brain-slice,
.light-mode .cortex-funnel .cx-brain-slice {
  mix-blend-mode: multiply;
  filter: saturate(1.18) contrast(1.08) drop-shadow(0 0 8px rgba(83, 55, 170, 0.16));
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel :is(a, button, summary, [tabindex="0"]):focus-visible,
.cortex-funnel[data-theme="light"] :is(a, button, summary, [tabindex="0"]):focus-visible,
.light-mode .cortex-funnel :is(a, button, summary, [tabindex="0"]):focus-visible {
  outline-color: #975a16;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel :is(.cx-system-stage__title, .cx-hierarchy h3, .cx-gates h3, .cx-acc__title, .cx-panel__name, .cx-panel__price),
.cortex-funnel[data-theme="light"] :is(.cx-system-stage__title, .cx-hierarchy h3, .cx-gates h3, .cx-acc__title, .cx-panel__name, .cx-panel__price),
.light-mode .cortex-funnel :is(.cx-system-stage__title, .cx-hierarchy h3, .cx-gates h3, .cx-acc__title, .cx-panel__name, .cx-panel__price) {
  color: #222a3a;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel :is(.cx-system-stage p, .cx-hierarchy p, .cx-gates p, .cx-acc__inner p, .cx-deliver__item p),
.cortex-funnel[data-theme="light"] :is(.cx-system-stage p, .cx-hierarchy p, .cx-gates p, .cx-acc__inner p, .cx-deliver__item p),
.light-mode .cortex-funnel :is(.cx-system-stage p, .cx-hierarchy p, .cx-gates p, .cx-acc__inner p, .cx-deliver__item p) {
  color: #5f6b7c;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-hero__modes .cx-modes,
.cortex-funnel[data-theme="light"] .cx-hero__modes .cx-modes,
.light-mode .cortex-funnel .cx-hero__modes .cx-modes {
  border-color: #e2e8f0;
  background: #ffffff;
  color: #222a3a;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.1);
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-hero__modes :is(.cx-tabs, .cx-tab),
.cortex-funnel[data-theme="light"] .cx-hero__modes :is(.cx-tabs, .cx-tab),
.light-mode .cortex-funnel .cx-hero__modes :is(.cx-tabs, .cx-tab) {
  border-color: #e2e8f0;
  background: #ffffff;
  color: #5f6b7c;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-hero__modes .cx-tab[aria-selected="true"],
.cortex-funnel[data-theme="light"] .cx-hero__modes .cx-tab[aria-selected="true"],
.light-mode .cortex-funnel .cx-hero__modes .cx-tab[aria-selected="true"] {
  color: #9d7c37;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-hero__modes :is(.cx-mode-panel h3, .cx-mode-quote, .cx-mode-quote p),
.cortex-funnel[data-theme="light"] .cx-hero__modes :is(.cx-mode-panel h3, .cx-mode-quote, .cx-mode-quote p),
.light-mode .cortex-funnel .cx-hero__modes :is(.cx-mode-panel h3, .cx-mode-quote, .cx-mode-quote p) {
  color: #222a3a;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-hero__modes :is(.cx-mode-panel__main > p, .cx-mode-prompt .cx-prompt__text),
.cortex-funnel[data-theme="light"] .cx-hero__modes :is(.cx-mode-panel__main > p, .cx-mode-prompt .cx-prompt__text),
.light-mode .cortex-funnel .cx-hero__modes :is(.cx-mode-panel__main > p, .cx-mode-prompt .cx-prompt__text) {
  color: #5f6b7c;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel :is(.cx-final, .cx-sticky),
.cortex-funnel[data-theme="light"] :is(.cx-final, .cx-sticky),
.light-mode .cortex-funnel :is(.cx-final, .cx-sticky) {
  border-color: #e2e8f0;
  background: rgba(247, 249, 252, 0.96);
  color: #222a3a;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-sticky__name,
.cortex-funnel[data-theme="light"] .cx-sticky__name,
.light-mode .cortex-funnel .cx-sticky__name { color: #222a3a; }

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-button--secondary,
.cortex-funnel[data-theme="light"] .cx-button--secondary,
.light-mode .cortex-funnel .cx-button--secondary {
  border-color: #c5a059;
  background: #ffffff;
  color: #0b1020;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-deliver__item,
.cortex-funnel[data-theme="light"] .cx-deliver__item,
.light-mode .cortex-funnel .cx-deliver__item {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #1a202c;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-deliver__item h3,
.cortex-funnel[data-theme="light"] .cx-deliver__item h3,
.light-mode .cortex-funnel .cx-deliver__item h3 {
  color: #0b1020;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-deliver__item > span,
.cortex-funnel[data-theme="light"] .cx-deliver__item > span,
.light-mode .cortex-funnel .cx-deliver__item > span {
  color: #975a16;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-deliver__item p,
.cortex-funnel[data-theme="light"] .cx-deliver__item p,
.light-mode .cortex-funnel .cx-deliver__item p {
  color: #4a5568;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-button--primary,
.cortex-funnel[data-theme="light"] .cx-button--primary,
.light-mode .cortex-funnel .cx-button--primary {
  border-color: #d4af37;
  background: #d4af37;
  color: #0b1020;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-button--primary:is(:hover, :focus-visible),
.cortex-funnel[data-theme="light"] .cx-button--primary:is(:hover, :focus-visible),
.light-mode .cortex-funnel .cx-button--primary:is(:hover, :focus-visible) {
  border-color: #b7791f;
  background: #d4af37;
  color: #0b1020;
  box-shadow: 0 8px 20px rgba(11, 16, 32, 0.16);
  transform: translateY(-2px);
}

@media (min-width: 701px) {
  .cortex-funnel .cx-deliver { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .cortex-funnel .cx-deliver { grid-template-columns: 1fr; gap: 1.5rem; }
  .cortex-funnel .cx-deliver__item { padding: 2rem; }
}

/* ---------------- polished example prompt ---------------- */

.cortex-funnel .cx-mode-prompt {
  display: block;
  margin-top: 2rem;
  border: 0;
  padding: 0;
  background: transparent;
}
.cortex-funnel .cx-mode-prompt .cx-prompt__label {
  margin: 0 0 0.8rem;
  color: #ffd700;
}
.cortex-funnel .cortex-prompt-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  padding: 20px 24px;
  background: #0d1117;
}
.cortex-funnel .cortex-prompt-box .cx-prompt__text {
  min-width: 0;
  max-width: none;
  margin: 0;
  overflow-wrap: anywhere;
  color: #e6edf3;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.5;
}
.cortex-funnel .cortex-prompt-box .cx-copy {
  flex: 0 0 auto;
  min-width: 120px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid #d4af37;
  border-radius: 9999px;
  padding: 8px 16px;
  background: transparent;
  box-shadow: none;
  color: #d4af37;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.cortex-funnel .cortex-prompt-box .cx-copy:hover { border-color: #ffd700; background: rgba(212, 175, 55, 0.1); color: #ffd700; transform: none; }
.cortex-funnel .cortex-prompt-box .cx-copy__check { display: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cortex-funnel .cortex-prompt-box .cx-copy.cx-is-copied {
  border: 1px solid #d4af37;
  outline: none;
  background: #d4af37;
  box-shadow: none;
  color: #000000;
}
.cortex-funnel .cortex-prompt-box .cx-copy.cx-is-copied .cx-copy__check { display: block; }
.cortex-funnel .cortex-prompt-box .cx-copy.cx-is-copied:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; }

@media (max-width: 700px) {
  .cortex-funnel .cortex-prompt-box { align-items: stretch; flex-direction: column; padding: 18px; }
  .cortex-funnel .cortex-prompt-box .cx-copy { width: 100%; }
}

/* ---------------- WCAG 2.2 AAA contrast ---------------- */

/* Dark editorial surfaces: body-size text uses white and functional accents
   use bright gold against #0b0b0b/#141416. */
.cortex-funnel {
  --cx-muted: #ffffff;
  --cx-faint: #ffffff;
  --cx-gold: #ffd700;
  --cx-gold-strong: #ffd700;
  --cx-focus: #ffd700;
}
.cortex-funnel :is(.cx-label, .cx-label__num, .cx-micro, .cx-system-stage__badge, .cx-price-card__type, .cx-price-card__best span, .cx-price-card__features li span, .cx-price-compare__head span) { color: #ffd700; }
.cortex-funnel :is(.cx-price-card__description, .cx-price-card__price span, .cx-price-card__best, .cx-price-card__features li, .cx-price-card__details p, .cx-price-compare__row span, .cx-price-card h3 span, .cx-price-card__status) { color: #ffffff; }
.cortex-funnel :is(a, button, summary, [tabindex="0"]):focus-visible { outline: 3px solid #ffd700; outline-offset: 3px; }
.cortex-funnel :is(.cx-tab, .cx-seg__btn, .cx-switch__btn)[aria-selected="true"] { color: #0b0b0b; background: #ffd700; }

/* Light surfaces: near-black copy and dark-gold labels provide AAA contrast.
   Brand-gold fills use near-black text; white on #c7a665 is only 2.32:1. */
:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel,
.cortex-funnel[data-theme="light"],
.light-mode .cortex-funnel {
  --cx-ink: #090d16;
  --cx-muted: #090d16;
  --cx-faint: #090d16;
  --cx-gold: #c7a665;
  --cx-gold-strong: #6b4f00;
  --cx-gold-line: rgba(107, 79, 0, 0.72);
  --cx-gold-wash: rgba(199, 166, 101, 0.12);
  --cx-focus: #6b4f00;
  color: #090d16;
}
:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel :is(.cx-head p, .cx-note, .cx-ticks li, .cx-commercial-status p, .cx-acc__inner p, .cx-system-stage p, .cx-hierarchy p, .cx-deliver__item p),
.cortex-funnel[data-theme="light"] :is(.cx-head p, .cx-note, .cx-ticks li, .cx-commercial-status p, .cx-acc__inner p, .cx-system-stage p, .cx-hierarchy p, .cx-deliver__item p),
.light-mode .cortex-funnel :is(.cx-head p, .cx-note, .cx-ticks li, .cx-commercial-status p, .cx-acc__inner p, .cx-system-stage p, .cx-hierarchy p, .cx-deliver__item p) { color: #090d16; }
:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel :is(.cx-label, .cx-label__num, .cx-micro, .cx-system-stage__badge, .cx-price-card__type, .cx-price-card__best span, .cx-price-card__features li span, .cx-price-compare__head span),
.cortex-funnel[data-theme="light"] :is(.cx-label, .cx-label__num, .cx-micro, .cx-system-stage__badge, .cx-price-card__type, .cx-price-card__best span, .cx-price-card__features li span, .cx-price-compare__head span),
.light-mode .cortex-funnel :is(.cx-label, .cx-label__num, .cx-micro, .cx-system-stage__badge, .cx-price-card__type, .cx-price-card__best span, .cx-price-card__features li span, .cx-price-compare__head span) { color: #6b4f00; }
:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel :is(.cx-price-card__description, .cx-price-card__price span, .cx-price-card__best, .cx-price-card__features li, .cx-price-card__details p, .cx-price-compare__row span, .cx-price-card h3 span, .cx-price-card__status),
.cortex-funnel[data-theme="light"] :is(.cx-price-card__description, .cx-price-card__price span, .cx-price-card__best, .cx-price-card__features li, .cx-price-card__details p, .cx-price-compare__row span, .cx-price-card h3 span, .cx-price-card__status),
.light-mode .cortex-funnel :is(.cx-price-card__description, .cx-price-card__price span, .cx-price-card__best, .cx-price-card__features li, .cx-price-card__details p, .cx-price-compare__row span, .cx-price-card h3 span, .cx-price-card__status) { color: #090d16; }
:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel :is(a, button, summary, [tabindex="0"]):focus-visible,
.cortex-funnel[data-theme="light"] :is(a, button, summary, [tabindex="0"]):focus-visible,
.light-mode .cortex-funnel :is(a, button, summary, [tabindex="0"]):focus-visible { outline-color: #6b4f00; }
:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel :is(.cx-tab, .cx-seg__btn, .cx-switch__btn)[aria-selected="true"],
.cortex-funnel[data-theme="light"] :is(.cx-tab, .cx-seg__btn, .cx-switch__btn)[aria-selected="true"],
.light-mode .cortex-funnel :is(.cx-tab, .cx-seg__btn, .cx-switch__btn)[aria-selected="true"] {
  border-color: #c7a665;
  background: #c7a665;
  color: #090d16;
  font-weight: 700;
  letter-spacing: 0.05em;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel :is(.cx-tab, .cx-seg__btn, .cx-switch__btn):not([aria-selected="true"]),
.cortex-funnel[data-theme="light"] :is(.cx-tab, .cx-seg__btn, .cx-switch__btn):not([aria-selected="true"]),
.light-mode .cortex-funnel :is(.cx-tab, .cx-seg__btn, .cx-switch__btn):not([aria-selected="true"]) {
  border-color: #6b4f00;
  background: #ffffff;
  color: #0f172a;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel :is(.cx-tab, .cx-seg__btn, .cx-switch__btn):not([aria-selected="true"]):hover,
.cortex-funnel[data-theme="light"] :is(.cx-tab, .cx-seg__btn, .cx-switch__btn):not([aria-selected="true"]):hover,
.light-mode .cortex-funnel :is(.cx-tab, .cx-seg__btn, .cx-switch__btn):not([aria-selected="true"]):hover {
  border-color: #c7a665;
  background: rgba(199, 166, 101, 0.12);
  box-shadow: inset 0 0 0 1px #6b4f00;
  color: #090d16;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-switch__btn,
.cortex-funnel[data-theme="light"] .cx-switch__btn,
.light-mode .cortex-funnel .cx-switch__btn {
  transition: color 0.2s ease-in-out;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-switch__btn:hover,
.cortex-funnel[data-theme="light"] .cx-switch__btn:hover,
.light-mode .cortex-funnel .cx-switch__btn:hover {
  color: #ffffff !important;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-button--light,
.cortex-funnel[data-theme="light"] .cx-button--light,
.light-mode .cortex-funnel .cx-button--light {
  border-color: #c7a665;
  background: #c7a665;
  color: #090d16;
  font-weight: 700;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-button--light:hover,
.cortex-funnel[data-theme="light"] .cx-button--light:hover,
.light-mode .cortex-funnel .cx-button--light:hover {
  border-color: #6b4f00;
  background: #d2b679;
  color: #000000;
}

/* The example prompt stays a terminal surface in every theme. */
:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cortex-prompt-box,
.cortex-funnel[data-theme="light"] .cortex-prompt-box,
.light-mode .cortex-funnel .cortex-prompt-box { border-color: rgba(212, 175, 55, 0.55); background: #0d1117; }

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-hero__modes .cortex-prompt-box .cx-prompt__text,
.cortex-funnel[data-theme="light"] .cx-hero__modes .cortex-prompt-box .cx-prompt__text,
.light-mode .cortex-funnel .cx-hero__modes .cortex-prompt-box .cx-prompt__text {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel :is(.cx-mode-panel__index, .cx-prompt__label, .cx-axes__tick, .cx-wordmark),
.cortex-funnel[data-theme="light"] :is(.cx-mode-panel__index, .cx-prompt__label, .cx-axes__tick, .cx-wordmark),
.light-mode .cortex-funnel :is(.cx-mode-panel__index, .cx-prompt__label, .cx-axes__tick, .cx-wordmark) { color: #6b4f00; fill: #6b4f00; }

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-hero__modes .cx-tab[aria-selected="true"],
.cortex-funnel[data-theme="light"] .cx-hero__modes .cx-tab[aria-selected="true"],
.light-mode .cortex-funnel .cx-hero__modes .cx-tab[aria-selected="true"] {
  border-color: #c7a665;
  background: #c7a665;
  color: #090d16;
  font-weight: 700;
  letter-spacing: 0.05em;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-hero__modes .cx-tab:not([aria-selected="true"]),
.cortex-funnel[data-theme="light"] .cx-hero__modes .cx-tab:not([aria-selected="true"]),
.light-mode .cortex-funnel .cx-hero__modes .cx-tab:not([aria-selected="true"]) { border-color: #6b4f00; background: #ffffff; color: #0f172a; }

/* Light-mode process switches and composition steps. */
:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-system-stage__toggle,
.cortex-funnel[data-theme="light"] .cx-system-stage__toggle,
.light-mode .cortex-funnel .cx-system-stage__toggle {
  border: 1px solid #475569;
  background: #1e293b;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-system-stage__toggle::after,
.cortex-funnel[data-theme="light"] .cx-system-stage__toggle::after,
.light-mode .cortex-funnel .cx-system-stage__toggle::after {
  display: block;
  width: 14px;
  height: 14px;
  top: 1px;
  left: 1px;
  border-radius: 50%;
  background: #ffffff;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-system-stage details[open] .cx-system-stage__toggle,
:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-system-stage__toggle[data-state="on"],
.cortex-funnel[data-theme="light"] .cx-system-stage details[open] .cx-system-stage__toggle,
.cortex-funnel[data-theme="light"] .cx-system-stage__toggle[data-state="on"],
.light-mode .cortex-funnel .cx-system-stage details[open] .cx-system-stage__toggle,
.light-mode .cortex-funnel .cx-system-stage__toggle[data-state="on"] {
  border-color: #8c6d2b;
  background: #c7a665;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-system-stage details[open] .cx-system-stage__toggle::after,
:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-system-stage__toggle[data-state="on"]::after,
.cortex-funnel[data-theme="light"] .cx-system-stage details[open] .cx-system-stage__toggle::after,
.cortex-funnel[data-theme="light"] .cx-system-stage__toggle[data-state="on"]::after,
.light-mode .cortex-funnel .cx-system-stage details[open] .cx-system-stage__toggle::after,
.light-mode .cortex-funnel .cx-system-stage__toggle[data-state="on"]::after {
  background: #ffffff;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-compose-example .cx-micro,
.cortex-funnel[data-theme="light"] .cx-compose-example .cx-micro,
.light-mode .cortex-funnel .cx-compose-example .cx-micro {
  color: #52401b;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-compose-example :is(.composition-pill, .composition-step),
.cortex-funnel[data-theme="light"] .cx-compose-example :is(.composition-pill, .composition-step),
.light-mode .cortex-funnel .cx-compose-example :is(.composition-pill, .composition-step) {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #0f172a !important;
  font-weight: 700;
}

/* ---------------- reduced motion ---------------- */

/* Click audio is prepared only after intent; this prevents tap flash without
   introducing a visual or layout cost before the first interaction. */
.cortex-funnel [data-cx-click-feedback] {
  -webkit-tap-highlight-color: transparent;
}

:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel :is(.cx-price-card, .cx-price-compare),
.cortex-funnel[data-theme="light"] :is(.cx-price-card, .cx-price-compare),
.light-mode .cortex-funnel :is(.cx-price-card, .cx-price-compare) {
  border-color: #cbd5e1;
  background: linear-gradient(145deg, rgba(197,160,89,0.08), transparent 34%), #ffffff;
  color: #1a202c;
  box-shadow: inset 0 1px rgba(255,255,255,0.9), 0 16px 36px rgba(15,23,42,0.09);
}
:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-price-card:hover,
:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-price-card.cx-is-selected,
.cortex-funnel[data-theme="light"] .cx-price-card:hover,
.cortex-funnel[data-theme="light"] .cx-price-card.cx-is-selected,
.light-mode .cortex-funnel .cx-price-card:hover,
.light-mode .cortex-funnel .cx-price-card.cx-is-selected { border-color: #9d7c37; box-shadow: inset 0 2px #c7a565, 0 22px 46px rgba(15,23,42,0.13); }
:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel :is(.cx-price-card h3, .cx-price-card__price strong, .cx-price-card__details summary, .cx-price-compare__row strong),
.cortex-funnel[data-theme="light"] :is(.cx-price-card h3, .cx-price-card__price strong, .cx-price-card__details summary, .cx-price-compare__row strong),
.light-mode .cortex-funnel :is(.cx-price-card h3, .cx-price-card__price strong, .cx-price-card__details summary, .cx-price-compare__row strong) { color: #111827; }
:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel :is(.cx-price-card__description, .cx-price-card__best, .cx-price-card__features li, .cx-price-card__details p, .cx-price-compare__row span),
.cortex-funnel[data-theme="light"] :is(.cx-price-card__description, .cx-price-card__best, .cx-price-card__features li, .cx-price-card__details p, .cx-price-compare__row span),
.light-mode .cortex-funnel :is(.cx-price-card__description, .cx-price-card__best, .cx-price-card__features li, .cx-price-card__details p, .cx-price-compare__row span) { color: #4b5563; }
:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel :is(.cx-price-card__price, .cx-price-card__details, .cx-price-compare__grid, .cx-price-compare__row),
.cortex-funnel[data-theme="light"] :is(.cx-price-card__price, .cx-price-card__details, .cx-price-compare__grid, .cx-price-compare__row),
.light-mode .cortex-funnel :is(.cx-price-card__price, .cx-price-card__details, .cx-price-compare__grid, .cx-price-compare__row) { border-color: #e2e8f0; }
:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel .cx-price-card__status,
.cortex-funnel[data-theme="light"] .cx-price-card__status,
.light-mode .cortex-funnel .cx-price-card__status { border-color: #cbd5e1; color: #475569; }
:is(html[data-av-theme="light"], html[data-theme="light"], html.light-mode) .cortex-funnel [data-cx-compare].cx-is-selected,
.cortex-funnel[data-theme="light"] [data-cx-compare].cx-is-selected,
.light-mode .cortex-funnel [data-cx-compare].cx-is-selected { color: #111827; }

@media (prefers-reduced-motion: reduce) {
  .cortex-funnel *,
  .cortex-funnel *::before,
  .cortex-funnel *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .cortex-funnel.cx-reveal-ready [data-cx-reveal],
  .cortex-funnel.cx-reveal-ready [data-cx-hero-step],
  .cortex-funnel.cx-title-reveal-ready .cortex-section-title {
    opacity: 1;
    transform: none;
    transition: none !important;
  }

  .cortex-funnel.cx-reveal-ready .cx-axes [data-cx-draw] { stroke-dasharray: none; stroke-dashoffset: 0; }
  .cortex-funnel.cx-reveal-ready .cx-axes .cx-axes__brain-group,
  .cortex-funnel.cx-reveal-ready .cx-axes .cx-axes__node,
  .cortex-funnel.cx-reveal-ready .cx-axes .cx-axes__tick { opacity: 1; }
  .cortex-funnel .cx-stage::before { transform: scaleX(1); }
  .cortex-funnel .cx-system-stage::before { transform: scaleX(1); }
  .cortex-funnel .cx-brain-particle-canvas { display: none; }
  .cortex-funnel .cortex-hero__orbit-container.cx-is-separated .cx-axes__brain-group {
    opacity: 1;
    filter: none;
    transform: none;
  }
  .cortex-funnel .cx-price-card,
  .cortex-funnel .cx-price-card:hover,
  .cortex-funnel .cx-price-card.cx-is-selected { transform: none; transition: none; }
  .cortex-funnel .cx-price-card::before { display: none; }
}
