/* ============================================================================
   CORTEX — AI Work System of Record · landing page
   Page + module styles. Builds on landing-tokens.css.
   Dark-first, executive, app-like. Color logic: green=outcome, amber=attention,
   red=waste/blocked, purple=agents — always paired with a label.
   ============================================================================ */

html {
  scroll-behavior: smooth;
}
body {
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 36px;
}
@media (max-width: 760px) {
  .wrap {
    padding: 0 22px;
  }
}

/* reveal — base visible; .in plays an additive entrance (never stuck hidden) */
.reveal {
}
.reveal.in {
  animation: revealIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes revealIn {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal.in {
    animation: none;
  }
}

/* ---- shared atoms ---- */
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.eyebrow.muted {
  color: var(--tertiary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
  position: relative;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: #4b84fa;
}
.btn--secondary {
  background: rgba(101, 137, 158, 0.05);
  border-color: rgba(101, 137, 158, 0.2);
  color: rgba(200, 214, 221, 1);
  backdrop-filter: blur(24px);
}
.btn--secondary:hover {
  background: rgba(101, 137, 158, 0.1);
}
:root[data-theme="light"] .btn--secondary {
  background: #fff;
  border-color: #d2dce6;
  color: #33415a;
}
:root[data-theme="light"] .btn--secondary:hover {
  background: #f4f7fa;
  border-color: #b9c7d6;
  color: #16202e;
}
.btn--ghost {
  background: transparent;
  color: var(--secondary);
}
.btn--ghost:hover {
  color: var(--text-strong);
}
.btn--medium {
  padding: 0 24px;
  height: 48px;
}
.btn--small {
  padding: 0 16px;
  height: 42px;
}

.sec-title {
  font-family: var(--font-secondary);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(30px, 3.6vw, 46px);
}
.sec-lede {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  color: var(--secondary);
  max-width: 600px;
  margin-top: 18px;
  text-wrap: pretty;
}
.sec-head {
  margin-bottom: 14px;
}
.sec-head .eyebrow {
  margin-bottom: 18px;
}

/* mono data label */
.mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}
.tag--affirm {
  background: var(--affirm-dim);
  color: var(--affirm);
}
.tag--caution {
  background: var(--caution-dim);
  color: var(--caution);
}
.tag--deny {
  background: var(--deny-dim);
  color: var(--deny);
}
.tag--agent {
  background: var(--agent-dim);
  color: var(--agent);
}
.tag--primary {
  background: var(--primary-dim);
  color: #6f9bf0;
}
.tag--neutral {
  background: rgba(101, 137, 158, 0.12);
  color: var(--secondary);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

/* section scaffolding */
section.block {
  border-bottom: 1px solid var(--foreground);
  padding: 96px 0;
  position: relative;
}
section.tight {
  padding: 72px 0;
}
@media (max-width: 760px) {
  section.block {
    padding: 64px 0;
  }
}

/* ===========================================================================
   NAV
=========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--foreground);
}
.nav::after {
  position: absolute;
  content: "";
  inset: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  z-index: -1;
}
.nav__inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.lockup svg {
  color: var(--accent);
}
.lockup .word {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-strong);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 12px;
}
.nav__links a {
  position: relative;
  padding-bottom: 4px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.nav__links a:hover {
  color: var(--text-strong);
}
.nav__links a.is-active {
  color: var(--text-strong);
  font-weight: 700;
}
.nav__cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  border: 1px solid var(--foreground);
  background: var(--ui-default);
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s;
  flex: none;
}
/* theme toggle lives in the header on desktop, moves to the footer on mobile */
.footer .theme-toggle {
  display: none;
}
@media (max-width: 940px) {
  .nav .theme-toggle {
    display: none;
  }
  .footer .theme-toggle {
    display: inline-flex;
    background-color: transparent;
    border-width: 0;
  }
}
.theme-toggle:hover {
  color: var(--text-strong);
  background: var(--ui-hover);
  border-color: rgba(101, 137, 158, 0.4);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.theme-toggle .ic-sun {
  display: none;
}
:root[data-theme="light"] .theme-toggle .ic-moon {
  display: none;
}
:root[data-theme="light"] .theme-toggle .ic-sun {
  display: block;
}
.nav__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__burger span {
  display: block;
  width: 20px;
  height: 1.6px;
  background: var(--text-strong);
  margin: 4px 0;
}
@media (max-width: 940px) {
  .nav__inner {
    gap: 12px;
  }
  .nav__links {
    display: none;
  }
  .nav__burger {
    display: block;
  }
  .nav.open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 4px 20px 20px;
    background: var(--background);
    border-bottom: 1px solid var(--foreground);
    box-shadow: 0 24px 40px var(--shadow-deep, rgba(11, 16, 28, 0.18));
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav.open .nav__item {
    display: block;
    border-top: 1px solid var(--foreground);
    padding: 6px 0;
  }
  .nav.open .nav__item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 6px 4px;
    font-size: 13px;
    font-weight: 700;
  }
  /* Accordion chevron on section headers */
  .nav.open .nav__item > a .chev {
    display: block !important;
    width: 14px;
    height: 14px;
    flex: none;
    stroke: #98a9b3;
    transition: transform 0.2s ease;
  }
  .nav.open .nav__item.mopen > a .chev {
    transform: rotate(180deg);
  }
  /* Collapse submenus unless section is open */
  .nav.open .nav__menu,
  .nav.open .nav__menu.wide {
    display: none !important;
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    max-height: none;
    overflow: visible;
    margin: 0;
    padding: 0 0 8px;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
  }
  .nav.open .nav__item.mopen .nav__menu,
  .nav.open .nav__item.mopen .nav__menu.wide {
    display: block !important;
  }
  .nav.open .nav__group {
    padding: 4px 0 8px;
  }
  .nav.open .nav__group + .nav__group {
    border-left: none;
    border-top: 1px solid var(--foreground);
  }
  .nav.open .nav__ghead {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--tertiary);
    padding: 10px 10px 2px;
  }
  .nav.open .nav__ghead span {
    display: none;
  }
  .nav.open .nav__mlink {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    min-height: 48px;
    padding: 10px 4px 10px 10px;
    border-bottom: 1px dashed rgba(101, 137, 158, 0.16);
  }
  .nav.open .nav__group .nav__mlink:last-child,
  .nav.open .nav__menu > .nav__mlink:last-child {
    border-bottom: 0;
  }
  .nav.open .nav__mlink .mt {
    display: block;
    width: 100%;
    text-align: left;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
    color: var(--text-strong);
    line-height: 1.3;
  }
  .nav.open .nav__mlink .md {
    display: none;
  }
  /* Group labels also left-aligned */
  .nav.open .nav__ghead {
    text-align: left;
    padding-left: 10px;
  }
}

/* ===========================================================================
   HERO  (§1 + §6.1 spend-to-work)
=========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--foreground);
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
}
.hero__glow {
  position: absolute;
  top: -160px;
  right: -120px;
  width: 760px;
  height: 520px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(45, 106, 231, 0.2) 0%,
    rgba(45, 106, 231, 0) 70%
  );
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 92px;
  padding-bottom: 104px;
}
@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 56px;
    padding-bottom: 72px;
    text-align: center;
    justify-items: center;
  }
  .hero__inner > div:first-child {
    max-width: 640px;
  }
  .hero h1 {
    font-size: clamp(34px, 6.4vw, 52px);
  }
  .hero__lede {
    margin-left: auto;
    margin-right: auto;
  }
  .hero__cta {
    justify-content: center;
  }
  .hero__note {
    justify-content: center;
  }
  .hero__glow {
    top: -200px;
    right: 50%;
    transform: translateX(50%);
  }
  .s2w-stage {
    width: 100%;
  }
}
.hero h1 {
  font-family: var(--font-secondary);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  font-size: clamp(40px, 5vw, 64px);
  margin: 22px 0 0;
}
.hero h1 .accent {
  color: var(--accent);
}
.hero__lede {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--secondary);
  max-width: 520px;
  margin: 24px 0 0;
}
.hero__cta {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero__note {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--tertiary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* hero spend → Work Units : clustering animation (lifted from pilot deck) */
.s2w-stage {
  position: relative;
  --p-border: #1e2a3c;
  --p-border2: #25354b;
  --p-panel: rgba(15, 22, 38, 0.6);
  --p-panel2: rgba(20, 28, 44, 0.7);
  --p-inset: rgba(12, 17, 29, 0.55);
  --p-soft: rgba(45, 106, 231, 0.14);
  --p-line: rgba(45, 106, 231, 0.32);
  --p-strong: #f2f4f7;
  --p-muted: #98a2b3;
  --p-quiet: #667488;
  --p-faint: #475467;
}
:root[data-theme="light"] .s2w-stage {
  --p-border: #e6ecf2;
  --p-border2: #d7e0e9;
  --p-panel: #ffffff;
  --p-panel2: #f7fafc;
  --p-inset: #f4f7fa;
  --p-soft: #eaf1fd;
  --p-line: #c9dcfa;
  --p-strong: #0b1018;
  --p-muted: #51607a;
  --p-quiet: #7a8a9c;
  --p-faint: #a7b3c0;
}
.wuclust {
  position: relative;
  height: 540px;
  border: 1px solid var(--p-border2);
  border-radius: 8px;
  background: var(--p-panel);
  overflow: hidden;
}
.wuclust .wcl-lbl {
  position: absolute;
  top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--p-muted);
  z-index: 3;
}
.wuclust .wcl-lbl.l {
  left: 20px;
}
.wuclust .wcl-lbl.r {
  right: 20px;
}
.wuclust .wcl-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.wuclust .wcl-svg .ln {
  stroke: var(--p-border2);
  stroke-width: 1.4;
  fill: none;
}
.wuclust .wcl-svg .pk {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.5;
}
@media (prefers-reduced-motion: reduce) {
  .wuclust .wcl-svg .pk {
    display: none;
  }
}
.wuclust .wcl-turn {
  position: absolute;
  left: 3%;
  width: 27%;
  display: flex;
  align-items: center;
  gap: 11px;
  height: 46px;
  padding: 0 15px;
  border: 1px solid var(--p-border);
  border-radius: 10px;
  background: var(--p-inset);
}
.wuclust .wcl-turn span:last-child {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--p-quiet);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wuclust .wcl-turn .pl {
  width: 20px;
  height: 20px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wuclust .wcl-turn .pl img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.wuclust .wcl-turn .pl.w img {
  filter: var(--logo-filter);
}
.wuclust .wcl-hub {
  position: absolute;
  left: 50%;
  top: 270px;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 6px var(--p-soft),
    0 14px 32px rgba(45, 106, 231, 0.42);
  z-index: 2;
}
.wuclust .wcl-hub img {
  width: 54%;
  height: 54%;
}
.wuclust .wcl-hub::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: cxahub 2.6s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .wuclust .wcl-hub::after {
    animation: none;
  }
}
@keyframes cxahub {
  0% {
    box-shadow: 0 0 0 0 var(--p-line);
  }
  70%,
  100% {
    box-shadow: 0 0 0 16px transparent;
  }
}
.wuclust .wcl-cap {
  position: absolute;
  left: 50%;
  top: 312px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--p-quiet);
  z-index: 3;
}
.wuclust .wcl-clu {
  position: absolute;
  left: 60%;
  width: 37%;
  transform: translateY(-50%);
  border: 1px solid var(--p-border2);
  border-radius: 10px;
  background: var(--p-panel2);
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.wuclust .wcl-clu .ct {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: var(--p-strong);
  line-height: 1.15;
}
.wuclust .wcl-clu .ct .cdot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}
.wuclust .wcl-clu .cm {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--p-quiet);
  padding-left: 18px;
}
.wuclust .wcl-clu.lead {
  border-color: var(--p-line);
  background:
    linear-gradient(180deg, var(--p-soft), transparent 82%), var(--p-panel2);
}
.wu-cap {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tertiary);
  text-align: center;
  text-wrap: pretty;
}
@media (max-width: 980px) {
  .wuclust {
    max-width: 560px;
    margin: 0 auto;
  }
}

/* ===========================================================================
   TRUST BAND (§2) — security & compliance + investor wall
=========================================================================== */
.cred {
  border-bottom: 1px solid var(--foreground);
  padding: 64px 0;
}
.cred__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}
.cred__intro {
  display: flex;
  flex-flow: column nowrap;
  gap: 12px;
  max-width: 540px;
}
.cred__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.cred__lead {
  font-family: var(--font-primary);
  font-size: 15px;
  color: var(--secondary);
  line-height: 1.55;
}
.cred__lead b {
  color: var(--text-strong);
  font-weight: 600;
}
/* proud SOC 2 / ISO 27001 — official seals on white coins */
.cred__seals {
  display: flex;
  gap: 14px;
  flex: none;
}
.seal {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 18px 12px 12px;
  border: 1px solid var(--foreground);
  border-radius: 4px;
  background: var(--ui-default);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.seal:hover {
  border-color: rgba(101, 137, 158, 0.45);
  background: var(--ui-hover);
}
.seal__coin {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
}
.seal__coin img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.seal__txt .t {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-strong);
  font-weight: 500;
  line-height: 1.1;
}
.seal__txt .s {
  display: block;
  font-family: var(--font-primary);
  font-size: 11px;
  color: var(--tertiary);
  margin-top: 4px;
}
/* real logomark in lockups */
.lockup .mark {
  width: 26px;
  height: 27px;
  display: block;
}
.footer .lockup .mark {
  width: 24px;
  height: 25px;
}
/* backed-by — smooth horizontal marquee of investor logos + angel names */
.cred__backed {
  margin-top: 48px;
  padding-top: 44px;
  border-top: 1px solid var(--foreground);
}
.cred__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin-bottom: 34px;
}
.cred__rail {
  overflow: hidden;
}
.cred__rail .crtrack {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: marquee 52s linear infinite;
  will-change: transform;
}
.cred__rail:hover .crtrack {
  animation-play-state: paused;
}
.cred__rail img {
  height: 28px;
  max-height: 28px;
  width: auto;
  object-fit: contain;
  flex: none;
  filter: var(--logo-filter);
  opacity: 0.6;
  transition: opacity 0.2s;
}
.cred__rail img:hover {
  opacity: 0.95;
}
.invname {
  font-family: var(--font-secondary);
  font-size: 21px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  opacity: 0.6;
  white-space: nowrap;
  flex: none;
  transition: opacity 0.2s;
}
.invname:hover {
  opacity: 0.95;
}
@media (max-width: 900px) {
  .cred__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
}
@media (max-width: 540px) {
  .cred__seals {
    flex-direction: column;
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  /* reset width:max-content so the row can actually wrap, and drop the 2nd/3rd
     duplicate copies (14 items each) so we show one clean centered logo wall. */
  .cred__rail {
    overflow: visible;
  }
  .cred__rail .crtrack {
    animation: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px 52px;
  }
  .cred__rail .crtrack > *:nth-child(n + 15) {
    display: none;
  }
}
/* integrations marquee rail */
.intrail {
  padding: 6px 0 4px;
}
.intrail__k {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin-bottom: 26px;
}
.logorail {
  overflow: hidden;
}
.logorail__track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.logorail img {
  height: 24px;
  width: auto;
  object-fit: contain;
  filter: var(--logo-filter);
  opacity: 0.5;
  transition: opacity 0.2s;
}
.logorail img:hover {
  opacity: 1;
}
.logorail:hover .logorail__track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .logorail__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ===========================================================================
   PROBLEM (§3)
=========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.wide-left {
  grid-template-columns: 1.1fr 1fr;
}
.split.flip .split__media {
  order: -1;
}
@media (max-width: 920px) {
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .split.flip .split__media {
    order: 0;
  }
}
.pull {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 22px;
  color: var(--text-strong);
  margin-top: 24px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}
.pull .dim {
  color: var(--deny);
}

/* big invoice */
.invoice {
  border-radius: 6px;
  border: 1px solid var(--card-edge);
  overflow: hidden;
  background: var(--card-grad);
  box-shadow: 0 4px 88px 0 var(--shadow-deep);
}
.invoice__h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--foreground);
}
.invoice__h .t {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-strong);
}
.invoice__h .s {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--tertiary);
}
.invoice__row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 10px;
  padding: 13px 20px;
  border-bottom: 1px solid rgba(101, 137, 158, 0.07);
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
}
.invoice__row.head span {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tertiary);
}
.invoice__row .prov {
  color: var(--text-strong);
  display: flex;
  align-items: center;
  gap: 9px;
}
.invoice__row .prov .plogo,
.invoice__row .prov .plogo-c {
  width: 18px;
  height: 18px;
  flex: none;
  object-fit: contain;
}
.invoice__row .prov .plogo {
  filter: var(--logo-filter);
}
.invoice__row .num {
  color: var(--secondary);
}
.invoice__row .outcome {
  color: var(--deny);
  display: flex;
  align-items: center;
  gap: 6px;
}
.invoice__row.total {
  background: rgba(101, 137, 158, 0.04);
}
.invoice__row.total .num {
  color: var(--text-strong);
  font-size: 13px;
}

/* ===========================================================================
   LEADERSHIP QUESTIONS / THE BLIND SPOT (§4)
=========================================================================== */
/* prioritized question list — sorted by importance */
.qlist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 6px;
}
@media (max-width: 720px) {
  .qlist {
    grid-template-columns: 1fr;
  }
}
.qlist .qrow {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border: 1px solid var(--foreground);
  border-left: 3px solid var(--cc, var(--foreground));
  border-radius: 8px;
  background: var(--card-grad);
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.qlist .qrow:hover {
  transform: translateX(3px);
}
.qlist .qrow__rank {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  background: var(--cc-dim, var(--primary-dim));
  color: var(--cc, var(--accent));
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qlist .qrow__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.qlist .qrow__by {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tertiary);
}
.qlist .qrow__by b {
  color: var(--cc, var(--accent));
  font-weight: 700;
}
.qlist .qrow__q {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  line-height: 1.18;
  text-wrap: pretty;
}
/* the missing answer — a redacted/blank bar (varying width), not a blinking input */
.qlist .qrow__blank {
  display: none;
}
.qlist .qrow__blank .bar {
  height: 9px;
  width: var(--bw, 90px);
  border-radius: 3px;
  background: repeating-linear-gradient(
    135deg,
    var(--inset-bg) 0,
    var(--inset-bg) 7px,
    transparent 7px,
    transparent 12px
  );
  border: 1px solid var(--foreground);
}
.qlist .qrow__blank .lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--tertiary);
}
@media (max-width: 680px) {
  .qlist .qrow {
    gap: 13px;
    padding: 14px 15px;
  }
  .qlist .qrow__q {
    font-size: 17px;
  }
}

.qfoot {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--secondary);
  margin: 22px auto 0;
  text-align: center;
  text-wrap: balance;
  max-width: 760px;
}
.qfoot b {
  color: var(--text-strong);
  font-weight: 500;
}

/* the one focal animated blank — an Ask Cortex console */
.qcon {
  max-width: 600px;
  margin: 18px auto 0;
  border: 1px solid var(--card-edge);
  border-radius: 11px;
  background: var(--card-grad);
  box-shadow: 0 4px 88px var(--shadow-deep);
  overflow: hidden;
}
.qcon__bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--foreground);
}
.qcon__bar .lg {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.qcon__bar .lg img {
  width: 12px;
  height: 12px;
}
.qcon__bar .t {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tertiary);
}
.qcon__body {
  padding: 22px 24px 20px;
}
.qcon__q {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  line-height: 1.3;
  min-height: 29px;
}
.qcon__q .tc {
  display: inline-block;
  width: 2px;
  height: 23px;
  background: var(--accent);
  margin-left: 1px;
  vertical-align: -4px;
}
@media (prefers-reduced-motion: no-preference) {
  .qcon__q .tc {
    animation: qcaret 1.05s steps(1) infinite;
  }
}
@keyframes qcaret {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}
.qcon__a {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--foreground);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.qcon__redact {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 3px;
}
.qcon__redact .bar {
  height: 11px;
  border-radius: 4px;
  background: repeating-linear-gradient(
    135deg,
    var(--inset-bg) 0,
    var(--inset-bg) 7px,
    transparent 7px,
    transparent 12px
  );
  border: 1px dashed var(--foreground);
}
.qcon__redact .bar:last-child {
  width: 58%;
}
.qcon__a .lbl {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tertiary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--foreground);
  border-radius: 999px;
  background: var(--inset-bg);
  white-space: nowrap;
}
.qcon__a .lbl svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
}

/* ===========================================================================
   INTRODUCING / 3-NODE DIAGRAM (§5)
=========================================================================== */
.nodes {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 8px;
}
@media (max-width: 760px) {
  .nodes {
    flex-direction: column;
  }
}
.node {
  flex: 1;
  border: 1px solid var(--foreground);
  border-radius: 6px;
  padding: 20px 22px;
  background: var(--ui-default);
  display: flex;
  align-items: flex-start;
  gap: 15px;
  text-align: left;
}
.node .ic {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.node .ic svg {
  width: 19px;
  height: 19px;
}
.node h4 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-strong);
  margin-bottom: 5px;
}
.node p {
  font-family: var(--font-primary);
  font-size: 12.5px;
  color: var(--secondary);
  line-height: 1.45;
}
.node-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--tertiary);
  flex: none;
}
.node-arrow svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 760px) {
  .node-arrow {
    padding: 10px 0;
    transform: rotate(90deg);
  }
}

/* ===========================================================================
   HOW IT WORKS — Observe / Classify / Optimize (§6)
=========================================================================== */
.steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 8px;
}
.steps__link {
  flex: 0 0 46px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 30px;
  color: var(--tertiary);
}
.steps__link svg {
  width: 18px;
  height: 18px;
  opacity: 0.5;
}
@media (max-width: 880px) {
  .steps {
    flex-direction: column;
  }
  .steps__link {
    flex-basis: 40px;
    height: 40px;
    padding-top: 0;
    align-items: center;
    transform: rotate(90deg);
  }
  .step {
    flex: 0 0 auto;
  }
}
.step {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid var(--foreground);
  border-radius: 6px;
  overflow: hidden;
  background: var(--card-grad);
  display: flex;
  flex-direction: column;
}
.step__h {
  padding: 22px 22px 0;
}
.step__n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.step__h h4 {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 22px;
  color: var(--text-strong);
  margin: 8px 0 8px;
}
.step__h p {
  font-family: var(--font-primary);
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.5;
  padding-bottom: 18px;
}
.step__ui {
  border-top: 1px solid var(--foreground);
  padding: 16px 22px 20px;
  background: var(--inset-bg);
  min-height: 120px;
  flex: 1;
}

/* shared step-UI scaffold */
.sui {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.sui__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tertiary);
  padding-bottom: 11px;
  border-bottom: 1px solid var(--foreground);
}
.sui__hd-r {
  color: var(--tertiary);
  white-space: nowrap;
}
.sui__hd--flow {
  justify-content: flex-start;
}
.sui__hd--flow b {
  color: var(--text-strong);
  font-weight: 700;
}
.sui__arrow {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--tertiary);
}
.sui__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--affirm);
}
.sui__live i {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--affirm);
  flex: none;
}
.sui__live i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: suipulse 2.2s ease-out infinite;
}
@keyframes suipulse {
  0% {
    box-shadow: 0 0 0 0 var(--affirm-dim);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sui__live i::after {
    animation: none;
  }
}

/* 01 Observe — live people activity feed */
.actfeed {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.actrow {
  display: flex;
  align-items: center;
  gap: 11px;
}
.actrow .av {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}
.actrow__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 1px;
}
.actrow__top {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.actrow__top b {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-strong);
  white-space: nowrap;
}
.actrow__t {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--tertiary);
  margin-left: auto;
  flex: none;

  right: 0;

  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.actrow__act {
  font-family: var(--font-primary);
  font-size: 12px;
  color: var(--secondary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.actrow__lg {
  width: 17px;
  height: 17px;
  flex: none;
  object-fit: contain;
}
/* live-activity column header + per-row metadata columns */
.actfeed__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 9px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--foreground);
}
.actfeed__hd-l,
.actfeed__hd-r span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--tertiary);
  line-height: 1;
}
.actfeed__hd-r {
  display: flex;
  align-items: center;
  gap: 11px;
}
.actfeed__hd-r span {
  text-align: right;
}
.actfeed__hd-r .h-time {
  width: 34px;
}
.actfeed__hd-r .h-calls {
  width: 42px;
}
.actfeed__hd-r .h-spend {
  width: 42px;
}
.actfeed__hd-r .h-model {
  width: 56px;
  text-align: right;
}
.actrow__t {
  position: static;
  transform: none;
  margin-left: auto;
}
.actrow__meta {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.actstat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.actstat.time {
  width: 34px;
}
.actstat.time b {
  font-weight: 600;
  color: var(--tertiary);
}
.actstat.calls {
  width: 42px;
}
.actstat.spend {
  width: 42px;
}
.actstat b {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1;
  white-space: nowrap;
}
.actstat i {
  display: none;
}
.actrow__model {
  width: 56px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Applications + Models chip rows (live activity) */
.actrow__apps,
.actrow__models {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  min-width: 0;
}
.actrow__lbl {
  display: none; /* mobile-only labels */
  font-family: var(--font-mono), monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tertiary);
  flex: none;
}
.actrow__chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}
.actrow__chips img,
.actrow__chips .actrow__lg {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex: none;
  opacity: 0.9;
}
.actrow__chips .actrow__lg {
  width: 17px;
  height: 17px;
}
.actrow__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid var(--card-edge, rgba(101, 137, 158, 0.22));
  background: var(--inset-bg, rgba(101, 137, 158, 0.06));
  font-family: var(--font-mono), monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--tertiary);
  line-height: 1;
  flex: none;
}
.actrow__models .actrow__chips > span[style*="AGENT"],
.actrow__models .actrow__chips > span {
  /* agent badge stays readable */
  max-width: 100%;
}

/* Desktop: classic columns — apps under name; models in right MODEL slot */
@media (min-width: 721px) {
  .actrow {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto 56px;
    align-items: center;
    column-gap: 11px;
    row-gap: 2px;
  }
  .actrow .av {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: start;
    margin-top: 2px;
  }
  .actrow__main {
    display: contents; /* children join actrow grid (after base flex rule) */
  }
  .actrow__top {
    grid-column: 2;
    grid-row: 1;
  }
  .actrow__act {
    grid-column: 2;
    grid-row: 2;
  }
  .actrow__apps {
    grid-column: 2;
    grid-row: 3;
    margin-top: 2px;
  }
  .actrow__meta {
    grid-column: 3;
    grid-row: 1 / span 3;
    align-self: center;
  }
  .actrow__models {
    grid-column: 4;
    grid-row: 1 / span 3;
    margin-top: 0;
    align-self: center;
    justify-content: flex-end;
  }
  .actrow__models .actrow__lbl,
  .actrow__apps .actrow__lbl {
    display: none;
  }
  .actrow__models .actrow__chips {
    justify-content: flex-end;
  }
}

/* 02 Classify — compact Work Unit cluster cards */
.cluset {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.miniclu {
  border: 1px solid var(--foreground);
  border-left: 3px solid var(--cc);
  border-radius: 8px;
  background: var(--inset-bg);
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}
.miniclu:hover {
  border-color: rgba(101, 137, 158, 0.4);
  border-left-color: var(--cc);
  transform: translateX(2px);
}
.miniclu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.miniclu__name {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.miniclu__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.miniclu .avs .av {
  width: 19px;
  height: 19px;
  font-size: 8px;
  margin-left: -6px;
  color: #fff;
}
.miniclu .avs .av:first-child {
  margin-left: 0;
}
.miniclu .avs .ppl {
  margin-left: 7px;
  font-size: 11px;
}
.miniclu__sp {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--secondary);
  white-space: nowrap;
}
.miniclu__sp b {
  color: var(--text-strong);
  font-weight: 700;
}

/* 03 Optimize — impact leaderboard */
.ldr {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ldr__row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 4px 0;
  --cc: var(--accent);
  --ccd: var(--primary-dim);
}
.ldr__rank {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--cc);
  background: var(--ccd);
  margin-top: 1px;
}
.ldr__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ldr__top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ldr__tag {
  flex: none;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--cc);
  background: var(--ccd);
}
.ldr__name {
  font-family: var(--font-primary);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ldr__bartrack {
  height: 5px;
  border-radius: 3px;
  background: rgba(101, 137, 158, 0.14);
  overflow: hidden;
}
.ldr__bar {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--cc);
  opacity: 0.9;
}
.ldr__row--top .ldr__bar {
  opacity: 1;
}
.ldr__save {
  flex: none;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--cc);
  margin-top: 2px;
}

/* ===========================================================================
   OPERATING VIEW — tabbed module (§7)
=========================================================================== */
.opview {
  margin-top: 48px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--card-edge);
  background: var(--opview-grad);
}
.opview__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  height: 44px;
  border-bottom: 1px solid var(--foreground);
}
.opview__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.opview__bar .u {
  margin-left: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--tertiary);
}
.opview__tabs {
  display: flex;
  gap: 2px;
  padding: 10px 12px 0;
  border-bottom: 1px solid var(--foreground);
  overflow-x: auto;
}
.optab {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tertiary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 11px 14px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s;
}
.optab:hover {
  color: var(--secondary);
}
.optab.active {
  color: var(--text-strong);
  border-bottom-color: var(--accent);
}
.oppanel {
  display: none;
  padding: 28px;
  min-height: 360px;
}
.oppanel.active {
  display: block;
}
.oppanel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}
.oppanel__head h5 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-strong);
}
.oppanel__head .sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--tertiary);
}

/* usage map — horizontal bars */
.umap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.umap__row {
  display: grid;
  grid-template-columns: 130px 1fr 90px;
  gap: 16px;
  align-items: center;
}
.umap__row .lbl {
  font-family: var(--font-primary);
  font-size: 13px;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.umap__track {
  height: 26px;
  border-radius: 4px;
  background: rgba(101, 137, 158, 0.08);
  overflow: hidden;
  position: relative;
}
.umap__fill {
  height: 100%;
  border-radius: 4px;
}
.umap__val {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-strong);
  text-align: right;
}

/* work unit map — grid of cards */
.wumap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 680px) {
  .wumap {
    grid-template-columns: 1fr;
  }
}
.wucard {
  border: 1px solid var(--foreground);
  border-radius: 4px;
  padding: 16px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
  background: var(--ui-default);
}

:root[data-theme="dark"] .wucard {
  background-color: rgba(101, 137, 158, 0.1);
}
:root[data-theme="dark"] .wucard:hover {
  background-color: rgba(101, 137, 158, 0.2);
}

.wucard:hover {
  border-color: rgba(101, 137, 158, 0.4);
  background: var(--ui-hover);
}
.wucard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.wucard__name {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-strong);
}
.wucard__meta {
  display: flex;
  gap: 18px;
  margin-top: 14px;
}
.wucard__meta .m .v {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-strong);
}
.wucard__meta .m .k {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin-top: 3px;
}
.wucard__detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.wucard.open .wucard__detail {
  max-height: 240px;
}
.wucard__detail-inner {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--foreground);
  font-family: var(--font-primary);
  font-size: 12px;
  color: var(--secondary);
  line-height: 1.6;
}
.wucard__detail-inner .ev {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.wucard__detail-inner .ev .mono {
  color: var(--tertiary);
  flex: none;
}

/* token yield — stat rows */
.yield {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.yield__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--foreground);
}
.yield__row:last-child {
  border-bottom: none;
}
.yield__driver {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--text-strong);
}
.yield__driver . d {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.yield__driver .sub {
  font-family: var(--font-primary);
  font-size: 12px;
  color: var(--tertiary);
  font-weight: 400;
}
.yield__impact {
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: right;
}

/* knowledge graph — node cloud */
.kgraph {
  position: relative;
  min-height: 320px;
}
.kgraph svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.knode {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #243342;
  background: rgba(101, 137, 158, 0.05);
  font-family: var(--font-primary);
  font-size: 12px;
  color: var(--text-strong);
  white-space: nowrap;
  backdrop-filter: blur(24px);
}

:root[data-theme="light"] .knode {
  background: rgba(101, 137, 158, 0.05);
  border: 1px solid #e4eaf0;
}

.knode.core {
  background: var(--primary-dim);
  border-color: rgba(45, 106, 231, 0.4);
}

/* opportunity queue — ranked list */
.queue {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qrow {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--foreground);
  border-radius: 4px;
  background: var(--ui-default);
}

:root[data-theme="dark"] .qrow {
  background-color: rgba(101, 137, 158, 0.1);
}
:root[data-theme="dark"] .qrow:hover {
  background-color: rgba(101, 137, 158, 0.2);
}

.qrow .rank {
  font-family: var(--font-secondary);
  font-size: 18px;
  color: var(--tertiary);
  text-align: center;
}
.qrow .body .t {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-strong);
}
.qrow .body .d {
  font-family: var(--font-primary);
  font-size: 12px;
  color: var(--secondary);
  margin-top: 3px;
}
.qrow .impact {
  text-align: right;
}
.qrow .impact .v {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--affirm);
}
.qrow .impact .k {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin-top: 2px;
}

/* ===========================================================================
   WORK UNITS — scatter → clusters engine (§8)
=========================================================================== */
.wuengine {
  display: grid;
  grid-template-columns: 1fr 152px 1fr;
  margin-top: 8px;
  border: 1px solid var(--foreground);
  border-radius: 4px;
  overflow: hidden;
  background: var(--card-grad);
}
@media (max-width: 900px) {
  .wuengine {
    grid-template-columns: 1fr;
  }
}

/* left — scatter field */
.wuscatter {
  position: relative;
  background: var(--inset-bg);
  min-height: 430px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (max-width: 900px) {
  .wuscatter {
    border-bottom: 1px solid var(--foreground);
    min-height: 300px;
  }
}
.wuscatter__lbl {
  position: relative;
  z-index: 2;
  padding: 20px 22px 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 9px;
  pointer-events: none;
}
.wuscatter__lbl .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--deny);
}
.wuscatter__field {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.wudot {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  .wudot {
    animation: wudrift ease-in-out infinite;
  }
}
@keyframes wudrift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(var(--dx), var(--dy));
  }
}
.wuscatter__foot {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 40px 22px 22px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, var(--inset-bg) 46%);
}

:root[data-theme="dark"] .wuscatter__foot {
  background: linear-gradient(180deg, transparent 0%, rgb(11 16 28) 46%);
}

.wuscatter__big {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 46px;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  line-height: 1;
}
.wuscatter__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin-top: 9px;
}
.wuscatter__stats {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--foreground);
}
.wustat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.wustat--row {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.wustat--row .wustat__k {
  margin-right: 2px;
}
.wustat__v {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 23px;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  line-height: 1;
}
.wustat__k {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--tertiary);
}
.wuio {
  display: flex;
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(101, 137, 158, 0.18);
  margin-top: 2px;
}
.wuio i {
  height: 100%;
}
.wuio .in {
  background: var(--accent);
}
.wuio .out {
  background: #64bdc6;
}
.wustat__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--tertiary);
  margin-top: 1px;
}
.wuprov {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 0;
}
.wuprov img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* center — flow connector (pipeline line + node + streaming packets) */
.wuengine__arrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-dim);
  overflow: hidden;
}
.wuengine__arrow::before,
.wuengine__arrow::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--accent);
  opacity: 0.35;
}
.wuengine__arrow::before {
  left: 0;
}
.wuengine__arrow::after {
  right: 0;
}
@media (max-width: 900px) {
  .wuengine__arrow {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 28px 20px 24px;
    min-height: 0;
  }
  .wuengine__arrow::before,
  .wuengine__arrow::after {
    top: auto;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
    background: var(--accent);
    opacity: 0.22;
  }
  .wuengine__arrow::before {
    top: 0;
  }
  .wuengine__arrow::after {
    bottom: 0;
  }
  /* Hide side-to-side flow animation on mobile — reads as noise when stacked */
  .wuengine__arrow .wuflow,
  .wuengine__arrow .wupkt {
    display: none !important;
  }
  .wuengine__arrow .wunode {
    width: 56px;
    height: 56px;
    margin: 0;
    box-shadow:
      0 0 0 8px var(--card-grad),
      0 0 0 9px rgba(45, 106, 231, 0.22),
      0 8px 20px rgba(45, 106, 231, 0.35);
  }
  .wuengine__arrow .wunode img {
    width: 28px;
    height: 28px;
  }
}
.wuflow {
  position: absolute;
  top: 50%;
  left: -1px;
  right: -1px;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(45, 106, 231, 0.35) 28%,
    var(--accent) 50%,
    rgba(45, 106, 231, 0.35) 72%,
    transparent 100%
  );
}
@media (max-width: 900px) {
  .wuflow {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 2px;
    height: auto;
    transform: translateX(-50%);
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(45, 106, 231, 0.35) 28%,
      var(--accent) 50%,
      rgba(45, 106, 231, 0.35) 72%,
      transparent 100%
    );
  }
}
.wupkt {
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 1px rgba(45, 106, 231, 0.55);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .wupkt {
    animation: wupktflow 2.8s linear infinite;
  }
}
.wupkt:nth-child(2) {
  animation-delay: 0.93s;
}
.wupkt:nth-child(3) {
  animation-delay: 1.86s;
}
@keyframes wupktflow {
  0% {
    left: 0;
    opacity: 0;
    transform: scale(0.7);
  }
  12% {
    opacity: 1;
  }
  44% {
    left: 50%;
    opacity: 1;
    transform: scale(1.5);
  }
  56% {
    left: 50%;
    transform: scale(1.5);
  }
  88% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
    transform: scale(0.7);
  }
}
@media (max-width: 900px) {
  .wupkt {
    top: 0;
    left: 50%;
    margin: -3px 0 0 -3px;
  }
  @media (prefers-reduced-motion: no-preference) {
    .wupkt {
      animation: wupktflowv 2.8s linear infinite;
    }
  }
}
@keyframes wupktflowv {
  0% {
    top: 0;
    opacity: 0;
    transform: scale(0.7);
  }
  12% {
    opacity: 1;
  }
  44% {
    top: 50%;
    opacity: 1;
    transform: scale(1.5);
  }
  56% {
    top: 50%;
    transform: scale(1.5);
  }
  88% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
    transform: scale(0.7);
  }
}
.wuengine__arrow .wunode {
  position: relative;
  z-index: 3;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 6px var(--card-grad),
    0 0 0 7px rgba(45, 106, 231, 0.25),
    0 6px 18px rgba(45, 106, 231, 0.4);
}
.wuengine__arrow .wunode::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(45, 106, 231, 0.35);
}
@media (prefers-reduced-motion: no-preference) {
  .wuengine__arrow .wunode::after {
    animation: wunodepulse 2.8s ease-out infinite;
  }
}
@keyframes wunodepulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70%,
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
.wuengine__arrow .wunode svg {
  width: 19px;
  height: 19px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wuengine__arrow .wunode img {
  width: 23px;
  height: 23px;
  display: block;
}
.wucortex {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: calc(50% + 42px);
  transform: translateX(-50%);
  width: 144px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.wucortex__brand {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.wucortex__tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--secondary);
  text-align: center;
  line-height: 1.55;
}
.wucortex__steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.wucortex__steps li {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--secondary);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 7px;
  text-align: left;
}
.wucortex__steps li::before {
  content: "";
  margin-top: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
@media (max-width: 900px) {
  .wucortex {
    position: static;
    transform: none;
    width: 100%;
    max-width: 280px;
    margin: 0;
    padding: 0 8px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  .wucortex__brand {
    font-size: 13px;
    letter-spacing: 0.2em;
  }
  .wucortex__tagline {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.6;
    color: var(--secondary);
    max-width: 16em;
  }
  .wucortex__steps {
    flex-direction: column;
    align-items: center;
    width: auto;
    gap: 6px;
  }
  /* Work Units header: stack title + subtitle */
  .wuengine__clusters {
    padding: 22px 16px 18px;
  }
  .wuclu-h {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 8px;
  }
  .wuclu-h b {
    font-size: 28px;
    line-height: 1.1;
  }
  .wuclu-h span {
    font-size: 11px;
    line-height: 1.4;
  }
  .wuscatter__foot {
    padding: 28px 18px 20px;
  }
  .wuscatter__big {
    font-size: 40px;
  }
  .wuscatter__sub {
    font-size: 10.5px;
    line-height: 1.45;
    max-width: 18em;
  }
}

/* right — clusters */
.wuengine__clusters {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.wuclu-h {
  display: flex;
  align-items: baseline;
  gap: 11px;
  margin-bottom: 4px;
}
.wuclu-h b {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}
.wuclu-h span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--tertiary);
}
.wuclu {
  border: 1px solid var(--foreground);
  border-left: 3px solid var(--cc);
  border-radius: 4px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.wuclu:hover {
  border-color: rgba(101, 137, 158, 0.4);
  border-left-color: var(--cc);
  transform: translateX(2px);
}
.wuclu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.wuclu__name {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-strong);
}
.wstat {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 9999px;
  white-space: nowrap;
}
.wstat--ship {
  color: var(--affirm);
  background: var(--affirm-dim);
}
.wstat--prog {
  color: var(--accent);
  background: var(--primary-dim);
}
.wstat--active {
  color: var(--agent);
  background: var(--agent-dim);
}
.wuclu__row {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.wuclu__row .st {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--secondary);
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}
.wuclu__row .st b {
  color: var(--text-strong);
  font-weight: 700;
}
.avs {
  display: flex;
  align-items: center;
}
.avs .av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-left: -7px;
  border: 2px solid var(--inset-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  color: #fff;
}
.avs .av:first-child {
  margin-left: 0;
}
.avs .ppl {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--secondary);
}
.avs .ppl b {
  color: var(--text-strong);
  font-weight: 700;
}
.tlmini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tlmini .trk {
  width: 78px;
  height: 5px;
  border-radius: 3px;
  background: rgba(101, 137, 158, 0.18);
  position: relative;
  overflow: hidden;
}
.tlmini .fil {
  position: absolute;
  height: 100%;
  border-radius: 3px;
  background: var(--cc);
}
.tlmini .rng {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--tertiary);
}
.wuclu__insight {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--cc);
  padding-top: 9px;
  border-top: 1px solid var(--foreground);
}
.wuclu__insight svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.wuclu-more {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tertiary);
  text-align: center;
  padding: 6px 0 2px;
}

/* ===========================================================================
   COST TO ASSET — compounding loop (§9)
=========================================================================== */
.loop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 8px;
}
.loop__node {
  border: 1px solid var(--foreground);
  border-radius: 6px;
  padding: 16px 18px;
  background: var(--ui-default);
  text-align: center;
  min-width: 150px;
}
.loop__node .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin-bottom: 5px;
}
.loop__node .v {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-strong);
}
.loop__arrow {
  color: var(--accent);
  padding: 0 12px;
  flex: none;
}

/* ===========================================================================
   PILOT — 30-DAY CALENDAR (§10)
=========================================================================== */
.pilotcal {
  margin-top: 48px;
}
.pcal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}
.pcal-head .t {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tertiary);
}
.pcal-head .t b {
  color: var(--text-strong);
  font-weight: 500;
}
.pcal-ribbon {
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  gap: 5px;
  align-items: end;
}
.pcal-ribbon i {
  display: block;
  height: 16px;
  border-radius: 3px;
  background: var(--hair-soft);
}
.pcal-ribbon i.on {
  background: var(--primary-dim);
}
.pcal-ribbon i.ms {
  background: var(--accent);
  height: 26px;
  box-shadow: 0 0 0 3px var(--primary-dim);
  position: relative;
}
.pcal-ends {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin: 9px 1px 38px;
}
.pcal-weeks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 880px) {
  .pcal-weeks {
    grid-template-columns: 1fr 1fr;
  }
  .pcal-ribbon {
    grid-template-columns: repeat(15, 1fr);
  }
}
@media (max-width: 480px) {
  .pcal-weeks {
    grid-template-columns: 1fr;
  }
}
.pweek {
  border: 1px solid var(--foreground);
  border-radius: 4px;
  background: var(--card-grad);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.pweek:hover {
  border-color: var(--primary-line, rgba(45, 106, 231, 0.4));
  transform: translateY(-2px);
}
.pweek__top {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 15px;
}
.daytile {
  width: 48px;
  height: 52px;
  flex: none;
  border-radius: 4px;
  border: 1px solid var(--foreground);
  background: var(--inset-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.daytile__hd {
  height: 14px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.daytile__hd span {
  width: 2.5px;
  height: 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.65);
}
.daytile__num {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 21px;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}
.pweek__wk {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.pweek__rng {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin-top: 3px;
}
.pweek h4 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-strong);
  margin: 11px 0 7px;
}
.pweek p {
  font-family: var(--font-primary);
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.5;
}

/* ===========================================================================
   PILOT OUTPUTS (§11) + FEATURE CARDS generic
=========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.cards.c3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 940px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .cards.c3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 540px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
.ocard {
  border-radius: 6px;
  padding: 24px;
  border: 1px solid var(--card-edge);
  background: var(--card-grad);
  box-shadow:
    0 1px 2px 0 rgba(177, 230, 255, 0.21) inset,
    0 4px 88px 0 var(--shadow-deep);
}
.ocard .ic {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--primary-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}
.ocard .ic svg {
  width: 20px;
  height: 20px;
}
.ocard h3 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 9px;
  color: var(--text-strong);
}
.ocard p {
  font-family: var(--font-primary);
  font-size: 13px;
  line-height: 1.55;
  color: var(--secondary);
}

/* ---- deliverable cards (What you get) — value prop + live mini-artifact ---- */
.dgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}
@media (max-width: 860px) {
  .dgrid {
    grid-template-columns: 1fr;
  }
}
.dcard {
  border-radius: 10px;
  border: 1px solid var(--card-edge);
  background: var(--card-grad);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.dcard:hover {
  border-color: rgba(45, 106, 231, 0.4);
  transform: translateY(-3px);
}
.dcard__hd {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.dcard__ic {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 9px;
  background: var(--primary-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.dcard__ic svg {
  width: 21px;
  height: 21px;
}
.dcard__hd h3 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 17px;
  color: var(--text-strong);
  margin-bottom: 5px;
}
.dcard__hd p {
  font-family: var(--font-primary);
  font-size: 13px;
  line-height: 1.5;
  color: var(--secondary);
}
.dcard__art {
  margin-top: auto;
  border: 1px solid var(--foreground);
  border-radius: 8px;
  background: var(--inset-bg);
  padding: 15px 16px;
}
.dcard__art--top {
  margin-top: 0;
  margin-bottom: 12px;
}
/* provider split segmented bar */
.dart-seg {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  gap: 2px;
}
.dart-seg i {
  height: 100%;
  display: block;
}
.dart-leg {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 14px;
}
.dart-legrow {
  display: flex;
  align-items: center;
  gap: 9px;
}
.dart-legrow .lgi {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 5px;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dart-legrow .lgi img {
  width: 13px;
  height: 13px;
  object-fit: contain;
}
.dart-legrow .lgn {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-strong);
  flex: 1;
}
.dart-legrow .lgd {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
}
.dart-legrow .lgv {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--secondary);
  flex: none;
}
.dart-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
.dart-cap .t {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tertiary);
}
.dart-cap .s {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--tertiary);
}
/* mini usage bars */
.dart-umap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dart-urow {
  display: flex;
  align-items: center;
  gap: 11px;
}
.dart-urow .ul {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-strong);
  width: 78px;
  flex: none;
}
.dart-urow .ut {
  flex: 1;
  height: 7px;
  border-radius: 4px;
  background: rgba(101, 137, 158, 0.16);
  overflow: hidden;
}
.dart-urow .uf {
  display: block;
  height: 100%;
  border-radius: 4px;
}
.dart-urow .uv {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--secondary);
  width: 46px;
  text-align: right;
  flex: none;
}
/* mini work-unit rows (two-line: name+cost / subtitle+providers+status) */
.dart-wu {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.dart-wurow {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px 11px;
  border: 1px solid var(--foreground);
  border-radius: 7px;
  background: var(--card-grad);
}
.dart-wurow .r1,
.dart-wurow .r2 {
  display: flex;
  align-items: center;
  gap: 9px;
}
.dart-wurow .wn {
  font-family: var(--font-primary);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-strong);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dart-wurow .wc {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-strong);
  flex: none;
}
.dart-wurow .wsub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--tertiary);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wprov {
  display: flex;
  align-items: center;
  flex: none;
}
.wprov img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--inset-bg);
  border: 1.5px solid var(--card-grad);
  margin-left: -5px;
  object-fit: contain;
  padding: 2.5px;
  box-sizing: border-box;
}
.wprov img:first-child {
  margin-left: 0;
}
.dpill {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 9999px;
  flex: none;
  white-space: nowrap;
}
.dpill--ship {
  color: var(--affirm);
  background: var(--affirm-dim);
}
.dpill--review {
  color: var(--caution);
  background: var(--caution-dim);
}
.dpill--active {
  color: var(--agent);
  background: var(--agent-dim);
}
/* mini yield rows */
.dart-yield {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.dart-yrow {
  display: flex;
  align-items: center;
  gap: 11px;
}
.dart-yrow .yt {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  flex: none;
  width: 62px;
  text-align: center;
}
.yt--waste {
  color: var(--deny);
  background: var(--deny-dim);
}
.yt--route {
  color: var(--caution);
  background: var(--caution-dim);
}
.yt--reuse {
  color: var(--affirm);
  background: var(--affirm-dim);
}
.dart-yrow .yl {
  font-family: var(--font-primary);
  font-size: 12px;
  color: var(--secondary);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dart-yrow .yv {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
/* mini ranked queue */
.dart-queue {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dart-qrow {
  display: flex;
  align-items: center;
  gap: 11px;
}
.dart-qrow .qn {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 6px;
  background: var(--primary-dim);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dart-qrow .qt {
  font-family: var(--font-primary);
  font-size: 12px;
  color: var(--text-strong);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dart-qrow .qv {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--affirm);
  flex: none;
}

/* ===========================================================================
   COMPARISON (§12)
=========================================================================== */
.compare {
  margin-top: 48px;
  border: 1px solid var(--foreground);
  border-radius: 8px;
  overflow: hidden;
}
.crow {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1.25fr;
}
.crow + .crow {
  border-top: 1px solid var(--foreground);
}
.crow > div {
  padding: 18px 22px;
}
.crow.head > div {
  background: rgba(101, 137, 158, 0.06);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--secondary);
}
.crow.head .ch-cortex {
  color: var(--accent);
  background: rgba(45, 106, 231, 0.08);
}
.crow .have {
  font-family: var(--font-primary);
  border-right: 1px solid var(--foreground);
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: flex-start;
  justify-content: center;
}
.have__cat {
  font-weight: 500;
  font-size: 15px;
  color: var(--text-strong);
  line-height: 1.3;
}
.have__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.cmp-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(101, 137, 158, 0.18);
  box-shadow: 0 1px 2px rgba(11, 16, 28, 0.16);
}
:root[data-theme="light"] .cmp-chip {
  background: #fff;
  border-color: var(--foreground);
  box-shadow: 0 1px 2px rgba(22, 32, 46, 0.06);
}
.cmp-logo {
  height: 15px;
  width: 15px;
  aspect-ratio: 1/1;
  object-fit: contain;
  display: block;
}
.cmp-logo--wide {
  width: auto;
  max-width: 92px;
}
.have__names {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--tertiary);
  white-space: nowrap;
}
.have__bi {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--tertiary);
}
.have__bi svg {
  width: 16px;
  height: 16px;
  flex: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
}
.crow .tells {
  font-family: var(--font-primary);
  font-size: 13px;
  color: var(--text-strong);
  border-right: 1px solid var(--foreground);
  line-height: 1.5;
}
.crow .cant {
  font-family: var(--font-primary);
  font-size: 13.5px;
  color: var(--text-strong);
  line-height: 1.5;
  background: rgba(45, 106, 231, 0.05);
}
.crow .cant b {
  color: var(--text-strong);
  font-weight: 500;
}
.crow .cant b::before {
  content: "→";
  color: #6f9bf0;
  font-weight: 800;
  margin-right: 8px;
}
:root[data-theme="light"] .crow .cant b::before {
  color: var(--accent);
}
@media (max-width: 820px) {
  .crow {
    grid-template-columns: 1fr;
  }
  .crow .have,
  .crow .tells {
    border-right: none;
    border-bottom: 1px solid var(--foreground);
  }
  .crow.head {
    display: none;
  }
}
.compare-line {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 30px);
  text-align: center;
  margin-top: 40px;
  color: var(--text-strong);
}
.compare-line b {
  color: var(--accent);
}

/* ===========================================================================
   DEPLOYMENT (§13) + SECURITY DIAGRAM (§14)
=========================================================================== */
.secdiag {
  margin-top: 8px;
  border: 1px solid var(--foreground);
  border-radius: 8px;
  padding: 28px;
  background: var(--ui-default);
}
.secflow {
  display: flex;
  align-items: stretch;
  gap: 0;
}
@media (max-width: 720px) {
  .secflow {
    flex-direction: column;
    gap: 6px;
  }
  .secflow .secstage__arrow {
    width: 100%;
    height: 24px;
    transform: rotate(90deg);
  }
}
.secstage {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 8px;
}
.secstage__box {
  border: 1px solid var(--foreground);
  border-radius: 6px;
  padding: 16px 14px;
  text-align: center;
  background: var(--background);
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.secstage__box .ic {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.secstage__box .t {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-strong);
}
.secstage__cap {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tertiary);
  text-align: center;
}
.secstage__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tertiary);
  flex: none;
  width: 28px;
}
.secblock {
  margin-top: 16px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.secblock__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 4px;
  background: var(--deny-dim);
  border: 1px solid rgba(242, 102, 124, 0.3);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--deny);
}

/* ===========================================================================
   FAQ (§15)
=========================================================================== */
.faq {
  max-width: 860px;
  margin: 40px auto 0;
}
.faq__item {
  border-top: 1px solid var(--foreground);
}
.faq__item:last-child {
  border-bottom: 1px solid var(--foreground);
}
.faq__q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-strong);
}
.faq__q .pm {
  flex: none;
  width: 20px;
  height: 20px;
  position: relative;
}
.faq__q .pm::before,
.faq__q .pm::after {
  content: "";
  position: absolute;
  background: var(--secondary);
  transition:
    transform 0.25s,
    opacity 0.25s;
}
.faq__q .pm::before {
  left: 0;
  top: 9px;
  width: 20px;
  height: 2px;
}
.faq__q .pm::after {
  left: 9px;
  top: 0;
  width: 2px;
  height: 20px;
}
.faq__item.open .pm::after {
  transform: rotate(90deg);
  opacity: 0;
}
.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.faq__a p {
  font-family: var(--font-primary);
  font-size: 15px;
  line-height: 1.6;
  color: var(--secondary);
  padding-bottom: 24px;
  max-width: 720px;
}

/* macOS-window screenshot slot (endpoint sensor) + sensor-section bits */
.macwin {
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid var(--card-edge);
  border-radius: 10px;
  overflow: hidden;
  background: var(--card-grad);
  box-shadow: 0 24px 90px var(--shadow-deep);
}
.macwin__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid var(--foreground);
  background: var(--ui-default);
}
.macwin__bar .dots {
  display: flex;
  gap: 7px;
}
.macwin__bar .dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.macwin__bar .dots i:nth-child(1) {
  background: #ff5f57;
}
.macwin__bar .dots i:nth-child(2) {
  background: #febc2e;
}
.macwin__bar .dots i:nth-child(3) {
  background: #28c840;
}
.macwin__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tertiary);
}
.shot-ph {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--tertiary);
  background: var(--inset-bg);
}
.shot-ph svg {
  opacity: 0.55;
}
.shot-ph span {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--secondary);
}
.shot-ph small {
  font-family: var(--font-primary);
  font-size: 12px;
  color: var(--tertiary);
}
/* sensor screenshots (already include macOS window chrome) — theme-swapped */
.sensor-shot {
  max-width: 1100px;
  margin: 0 auto;
}
.secblockwrap {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

/* connectors grid (100+) */
.conn {
  border-bottom: 1px solid var(--foreground);
  padding: 92px 0;
}
.conn__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.conn__head .sec-lede {
  max-width: 100%;
  text-wrap: balance;
}
.conn__head .eyebrow {
  justify-content: center;
  display: inline-flex;
}
.conngrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  margin-top: 48px;
}
@media (max-width: 1024px) {
  .conngrid {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width: 720px) {
  .conngrid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 460px) {
  .conngrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.conntile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid var(--foreground);
  border-radius: 8px;
  background: var(--ui-default);
  transition:
    border-color 0.2s,
    background 0.2s;
  min-width: 0;
}
.conntile:hover {
  border-color: rgba(101, 137, 158, 0.4);
  background: var(--ui-hover);
}
.conntile img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  flex: none;
}
.conntile img.mono {
  filter: var(--logo-filter);
}
.conntile span {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conntile.more {
  justify-content: center;
  border-style: dashed;
}
.conntile.more span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- connectors wall (filterable) ---- */
.c2cats {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  margin: 30px auto 30px;
  max-width: 880px;
}
.c2cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 9999px;
  border: 1px solid var(--foreground);
  background: var(--ui-default);
  color: var(--secondary);
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
}
.c2cat:hover {
  color: var(--text-strong);
  border-color: rgba(101, 137, 158, 0.4);
}
.c2cat .n {
  font-size: 10px;
  color: var(--tertiary);
}
.c2cat.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.c2cat.active .n {
  color: rgba(255, 255, 255, 0.7);
}
.c2wrap {
  position: relative;
  max-height: 392px;
  overflow: hidden;
  transition: max-height 0.45s ease;
}
.c2wrap.open {
  max-height: 6000px;
}
.c2wrap--static {
  max-height: 392px;
}
.c2wrap:not(.open)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  background: linear-gradient(180deg, transparent, var(--background));
  pointer-events: none;
}
.c2grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 10px;
}
.c2tile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid var(--foreground);
  border-radius: 8px;
  background: var(--ui-default);
  transition:
    border-color 0.18s,
    transform 0.18s,
    background 0.18s;
}
.c2tile:hover {
  border-color: rgba(45, 106, 231, 0.4);
  background: var(--ui-hover);
  transform: translateY(-2px);
}
.c2tile .lg {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 7px;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.c2tile .lg img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.c2tile .nm {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.c2morewrap {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}
.c2more {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: 6px;
  border: 1px solid var(--foreground);
  background: var(--ui-default);
  color: var(--text-strong);
  cursor: pointer;
  transition:
    background 0.18s,
    border-color 0.18s;
}
.c2more:hover {
  background: var(--ui-hover);
  border-color: rgba(45, 106, 231, 0.4);
}
@media (max-width: 600px) {
  .c2grid {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  }
}
/* connectors closing CTA */
.conn__cta {
  margin-top: 40px;
  text-align: center;
}
.conn__cta-note {
  max-width: 520px;
  margin: 0 auto 22px;
  font-family: var(--font-primary);
  font-size: 15px;
  line-height: 1.55;
  color: var(--secondary);
  text-wrap: pretty;
}
.conn__cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
@media (max-width: 520px) {
  .conn__cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 11px;
  }
  .conn__cta-row .btn {
    width: 100%;
  }
}
.faq__a .verify {
  color: var(--caution);
  font-family: var(--font-mono);
  font-size: 11px;
}

/* ===========================================================================
   FINAL CTA + FORM (§16)
=========================================================================== */
.final {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--foreground);
}
.final__grid {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  z-index: 0;
}
.final__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    55% 70% at 50% 115%,
    rgba(45, 106, 231, 0.22),
    rgba(45, 106, 231, 0) 70%
  );
}
.final__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 92px;
  padding-bottom: 92px;
}
@media (max-width: 920px) {
  .final__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 64px;
    padding-bottom: 64px;
  }
}
.final h2 {
  font-family: var(--font-secondary);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-size: clamp(34px, 4.4vw, 52px);
}
.final p {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  color: var(--secondary);
  margin-top: 20px;
  line-height: 1.55;
  max-width: 460px;
}
.trustfoot {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.trustfoot span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tertiary);
}
.trustfoot span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--affirm);
}

.form {
  border: 1px solid var(--foreground);
  border-radius: 8px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(11, 16, 28, 0.4) 0%, #161b27 100%);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 70px var(--shadow-deep);
}
:root[data-theme="light"] .form {
  background: #ffffff;
  backdrop-filter: none;
}
:root[data-theme="light"] .field input,
:root[data-theme="light"] .field select {
  background: #f4f7fa;
}
.form h3 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-strong);
  margin-bottom: 4px;
}
.form .formsub {
  font-family: var(--font-primary);
  font-size: 12px;
  color: var(--tertiary);
  margin-bottom: 20px;
}
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin-bottom: 7px;
}
.field input,
.field select {
  width: 100%;
  height: 44px;
  border-radius: 4px;
  border: 1px solid var(--foreground);
  background: rgba(101, 137, 158, 0.05);
  color: var(--text-strong);
  font-family: var(--font-primary);
  font-size: 14px;
  padding: 0 13px;
  outline: none;
  transition: border-color 0.2s;
}
.field input::placeholder {
  color: var(--tertiary);
}
.field input:focus,
.field select:focus {
  border-color: var(--accent);
}
.field select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23597182' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.form .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .form .row2 {
    grid-template-columns: 1fr;
  }
}
.form .btn {
  width: 100%;
  margin-top: 8px;
}
.form__note {
  font-family: var(--font-primary);
  font-size: 11px;
  color: var(--tertiary);
  margin-top: 14px;
  line-height: 1.5;
}
.form__ok {
  display: none;
  text-align: center;
  padding: 30px 10px;
}
.form__ok.show {
  display: block;
}
.form__ok .chk {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--affirm-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--affirm);
}
.form__ok h3 {
  margin-bottom: 8px;
}
.form__ok p {
  font-family: var(--font-primary);
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.55;
  max-width: 320px;
  margin: 0 auto;
}

/* ===========================================================================
   FOOTER
=========================================================================== */
.footer {
  background: var(--background);
}
.footer__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer__cols {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 0;
}

.footer__col {
  padding: 48px 0 48px 36px;
  border-left: 1px solid var(--foreground);
}
.footer__col:first-child,
.footer__col--brand {
  padding-left: 0;
  border-left: none;
}
/* Pre-footer brand (Cortex lockup): consistent top padding all pages/viewports */
.footer__col.footer__col--brand {
  padding-top: 48px;
  padding-bottom: 40px;
  box-sizing: border-box;
}
/* Desktop: accordion controls render as static column labels */
.footer__ghead {
  display: block;
  width: 100%;
  margin: 0 0 30px;
  padding: 0;
  border: 0;
  background: none;
  cursor: default;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tertiary);
  text-align: left;
}
.footer__ghead span {
  display: inline;
}
.footer__chev {
  display: none;
}
.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
}
/* Legacy h5/ul (if any) */
.footer__col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin-bottom: 30px;
}
.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer__col a,
.footer__list a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__col a:hover,
.footer__list a:hover {
  color: var(--text-strong);
}
.footer__col p,
.footer__own {
  font-family: var(--font-primary);
  font-size: 13px;
  color: var(--tertiary);
  max-width: 250px;
  line-height: 1.55;
  margin-top: 14px;
}
.footer__bar {
  border-top: 1px solid var(--foreground);
  padding: 22px 0;
}
.footer__bar .wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

/* Chrome shell parity: product footer matches nav max-width + side pads (1458 / 37+11).
   Generic .wrap is 1200/36 — that made footer inset vs nav logo/CTA edges. */
footer.footer > .wrap,
footer.footer .footer__bar .wrap {
  max-width: 1458px;
}
@media (min-width: 941px) {
  footer.footer > .wrap,
  footer.footer .footer__bar .wrap {
    padding-left: 37px;
    padding-right: 11px;
  }
}
.footer__bar span.cp {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--tertiary);
}
/* Product footer CTA: mobile-only (matches home .cxwf-cta) */
.footer__cta {
  display: none;
}

/* Mobile / tablet: nav-style accordion (≤920). Desktop multi-col above is unchanged. */
@media (max-width: 920px) {
  .footer > .wrap {
    padding: 0;
  }
  .footer__cols {
    grid-template-columns: 1fr;
  }
  .footer__col,
  .footer__col--brand {
    display: block;
    padding: 0;
    border-left: none;
    border-bottom: 1px solid rgba(101, 137, 158, 0.14);
  }
  /* Pre-footer brand: extra top padding so Cortex lockup breathes below close/hairline */
  .footer__col--brand {
    padding: 36px 24px 28px;
  }
  .footer__brand {
    width: 100%;
  }
  .footer__own {
    margin: 12px 0 0;
    max-width: none;
    font-size: 14px;
    line-height: 1.4;
    color: var(--txt-ui, var(--secondary));
  }
  /* Full-width brand-column bar; label optically centered (beat .footer__col a mono/uppercase) */
  .footer__col a.footer__cta,
  a.footer__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: 46px;
    margin-top: 14px;
    margin-inline: auto;
    padding: 0 16px;
    border-radius: 9px;
    background: var(--accent, #2D6AE7);
    color: #fff !important;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    text-transform: none; /* beat .footer__col a uppercase */
    text-decoration: none;
  }
  .footer__group {
    border-bottom: 1px solid rgba(101, 137, 158, 0.14);
  }
  .footer__col.footer__group {
    border-bottom: 1px solid rgba(101, 137, 158, 0.14);
  }
  .footer__ghead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 0 24px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-strong, #25354b);
  }
  .footer__group[data-open] .footer__ghead {
    background: rgba(101, 137, 158, 0.06);
  }
  .footer__chev {
    display: block;
    width: 14px;
    height: 14px;
    flex: none;
    color: #98a9b3;
    transition: transform 0.2s;
  }
  .footer__group[data-open] .footer__chev {
    transform: rotate(180deg);
  }
  /* beat base .footer__col ul { display:flex } */
  .footer__col .footer__list,
  .footer__group .footer__list,
  .footer__col ul.footer__list {
    display: none;
    gap: 0;
    padding: 2px 24px 10px;
  }
  .footer__group[data-open] .footer__list,
  .footer__group[data-open] ul.footer__list {
    display: flex;
    flex-direction: column;
  }
  .footer__list a {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--txt-ui, #4a5d73);
    text-align: left;
    border-bottom: 1px dashed rgba(101, 137, 158, 0.16);
  }
  .footer__list li:last-child a {
    border-bottom: 0;
  }
  .footer__bar {
    padding: 16px 24px 18px;
  }
  .footer {
    /* sticky mcta clearance — keep gap, avoid sparse empty band */
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

/* === AUDIT-LANE-L2-STICKY:start === */
/* CHROME-001 / CHROME-002: sticky mobile mCTA safe-area + hide under open menu.
   Mobile-only (matches .mcta display breakpoint in home.css). Surgical append.
   F2: content clearance ≥ mCTA stack; drop body pad when bar is hidden (no empty gap). */
@media (max-width: 740px) {
  /* mCTA stack ≈ bottom:12 + bar(~56–64) + safe-area → reserve ≥ bar so last content clears.
     !important beats pages.css @media (max-width:720px) body { padding-bottom:0 } (later cascade). */
  body {
    padding-bottom: calc(
      12px + 72px + env(safe-area-inset-bottom, 0px)
    ) !important;
  }

  /* When sticky is hidden (menu / near close / dense panel), remove reserve — no empty gap glitch */
  body:has(.nav.open),
  body.nav-menu-open,
  body:has(.mcta.is-menu-hidden),
  body:has(.mcta.is-near-close),
  body:has(.mcta.is-dense-covered) {
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  }

  /* Hide sticky when mobile nav is open, or when chrome.js marks menu/near-close/dense.
     display:none (not visibility-only) so no reserved gap under the bar. */
  body:has(.nav.open) .mcta,
  body.nav-menu-open .mcta,
  .mcta.is-menu-hidden,
  .mcta.is-near-close,
  .mcta.is-dense-covered {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
  }
}
/* === AUDIT-LANE-L2-STICKY:end === */
