/* ============================================================================
   CORTEX v3 — inner-page patterns (Products, Atlas, Foundry, Solutions,
   Platform, Security). Builds on ../landing.css + home.css.
   ============================================================================ */

/* ---- breadcrumb eyemark: ◆ Cortex / pill / page ---- */
.eyemark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tertiary);
  padding: 8px 15px;
  border: 1px solid var(--foreground);
  border-radius: 6px;
  background: var(--ui-default);
  backdrop-filter: blur(18px);
}
.eyemark .dia {
  color: var(--lead);
  font-size: 9px;
}
.eyemark .sep {
  opacity: 0.35;
  font-weight: 500;
}
.eyemark .pill {
  padding: 0;
  border-radius: 0;
  background: none !important;
  font-weight: 700;
  font-size: 11px;
}
.eyemark a.pill {
  text-decoration: none;
  transition: opacity 0.15s;
}
.eyemark a.pill:hover {
  opacity: 0.7;
}
.eyemark .pill.atlas {
  color: var(--atlas);
}
.eyemark .pill.foundry {
  color: var(--foundry);
}
.eyemark .here {
  color: var(--text-strong);
  font-weight: 700;
}
/* give the breadcrumb band room so the chip isn't bisected by the section hairline */
.phero.pdetail .wrap {
  padding-top: 32px !important;
  padding-bottom: 30px !important;
}

/* ---- inner hero ---- */
.phero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--foreground);
}
.phero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
}
.phero__glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 820px;
  height: 520px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    50% 50% at 50% 50%,
    var(--lead-glow) 0%,
    rgba(45, 106, 231, 0) 70%
  );
}
.phero__inner {
  position: relative;
  z-index: 2;
  padding: 84px 0 72px;
  max-width: 840px;
}
.phero h1 {
  font-family: var(--font-secondary);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-size: clamp(38px, 5vw, 62px);
  margin: 22px 0 0;
  color: var(--text-strong);
  text-wrap: balance;
}
.phero h1 .lead {
  color: var(--lead);
}
.phero h1 .grad {
  background: linear-gradient(92deg, var(--atlas), var(--foundry));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.phero__lede {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--secondary);
  max-width: 620px;
  margin: 24px 0 0;
  text-wrap: pretty;
}
.phero__cta {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.opview__bar i {
  background: #e0564a;
}
.opview__bar i:nth-child(2) {
  background: #e6a93c;
}
.opview__bar i:nth-child(3) {
  background: #4caf6e;
}
:root[data-theme="dark"] .opview__bar i {
  opacity: 0.85;
}

.phero__stat {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  margin-top: 30px;
  padding: 22px 26px;
  border: 1px solid var(--foreground);
  border-radius: 4px;
  background: var(--card-grad);
  backdrop-filter: blur(24px);
}

:root[data-theme="dark"] .phero__stat {
  background-color: rgba(101, 137, 158, 0.05);
}
.phero__stat .n {
  flex: none;
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: clamp(52px, 5vw, 64px);
  letter-spacing: -0.03em;
  color: var(--lead);
  line-height: 1;
}
.phero__stat .l {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 14px;
  color: var(--secondary);
  max-width: 340px;
  line-height: 1.45;
  padding-left: 26px;
  border-left: 1px solid var(--foreground);
}
.phero__stat .src {
  display: block;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--foreground);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  line-height: 1.45;
  color: var(--tertiary);
  text-transform: none;
}

/* ============================================================================
   PRODUCTS INDEX — two family columns
   ============================================================================ */
.families {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 52px;
}
@media (max-width: 860px) {
  .families {
    grid-template-columns: 1fr;
  }
}
.family {
  border: 1px solid var(--foreground);
  border-radius: 14px;
  padding: 34px 30px;
  background: var(--card-grad);
  position: relative;
  overflow: hidden;
}
.family.atlas::before,
.family.foundry::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.family.atlas::before {
  background: var(--atlas);
}
.family.foundry::before {
  background: var(--foundry);
}
.family__pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
}
.family.atlas .family__pill {
  color: var(--atlas);
  background: var(--atlas-dim);
}
.family.foundry .family__pill {
  color: var(--foundry);
  background: var(--foundry-dim);
}
.family__pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.family h2 {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin: 18px 0 0;
}
.family p {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.55;
  color: var(--secondary);
  margin: 12px 0 0;
  text-wrap: pretty;
}
.family__list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.family__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 4px;
  border-top: 1px solid var(--foreground);
  text-decoration: none;
  transition: padding-left 0.18s;
}
.family__row:hover {
  padding-left: 10px;
}
.family__row .ico {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--card-edge);
  background: var(--inset-bg);
}
.family__row .ico svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.7;
  fill: none;
}
.family.atlas .family__row .ico svg {
  stroke: var(--atlas);
}
.family.foundry .family__row .ico svg {
  stroke: var(--foundry);
}
.family__row .ct {
  display: block;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-strong);
}
.family__row .cd {
  display: block;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 13px;
  color: var(--tertiary);
  margin-top: 3px;
  line-height: 1.4;
}
.family__row .arr {
  margin-left: auto;
  align-self: center;
  width: 16px;
  height: 16px;
  stroke: var(--tertiary);
  fill: none;
  stroke-width: 2;
  flex: none;
}

/* ============================================================================
   FAMILY SECTIONS (Products index) — one full-bleed section per family
   ============================================================================ */
.famsec {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--foreground);
}
.famsec.atlas {
  --fc: var(--atlas);
  --fc-dim: var(--atlas-dim);
}
.famsec.foundry {
  --fc: var(--foundry);
  --fc-dim: var(--foundry-dim);
}
.famsec__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
}

.famsec__bg .grid-pattern__inner {
  background-image: none;
  border-right: 1px solid var(--foreground);
  border-left: 1px solid var(--foreground);
}

.famsec__glow {
  position: absolute;
  width: 900px;
  height: 560px;
  top: -220px;
  z-index: 0;
  pointer-events: none;
}
.famsec.atlas .famsec__glow {
  right: -200px;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(45, 106, 231, 0.2),
    transparent 70%
  );
}
.famsec.foundry .famsec__glow {
  left: -200px;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(42, 183, 117, 0.17),
    transparent 70%
  );
}
.famsec__inner {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 100px;
}
@media (max-width: 760px) {
  .famsec__inner {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}
.famsec__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: end;
  margin-bottom: 46px;
}
@media (max-width: 820px) {
  .famsec__head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
  }
}
.famsec__pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fc);
  background: var(--fc-dim);
  padding: 6px 13px;
  border-radius: 999px;
}
.famsec__pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.famsec h2 {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.03em;
  line-height: 0.98;
  color: var(--text-strong);
  margin: 20px 0 0;
  text-wrap: balance;
}
.famsec h2 .lead {
  color: var(--fc);
}
.famsec__lede {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.55;
  color: var(--secondary);
  max-width: 560px;
  margin: 18px 0 0;
  text-wrap: pretty;
}
.famsec__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.famsec__count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tertiary);
}
.famsec__count b {
  color: var(--fc);
  font-size: 34px;
  font-family: var(--font-secondary);
  font-weight: 500;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.famsec__explore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 4px;
  background: var(--fc);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: filter 0.18s;
}
.famsec__explore:hover {
  filter: brightness(1.08);
}
.famsec__explore svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

.pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
/* Screenshot cards: dense 2x2 catalog */
.pgrid:has(.pcard--shot) {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 980px) {
  .pgrid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .pgrid {
    grid-template-columns: 1fr;
  }
  .pgrid:has(.pcard--shot) {
    grid-template-columns: 1fr;
  }
}
.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 208px;
  padding: 26px 24px;
  border: 1px solid var(--foreground);
  border-radius: 4px;
  background: var(--card-grad);
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
  backdrop-filter: blur(14px);
}
.pcard:hover {
  transform: translateY(-4px);
  border-color: var(--fc);
}
.pcard.wfv-hcard { transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.pcard.wfv-hcard:hover { box-shadow: 0 20px 44px -22px rgba(0,0,0,0.65); }
.pcard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--fc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.pcard:hover::before {
  transform: scaleX(1);
}
.pcard__num {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--tertiary);
}
.pcard__ico {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  border: 1px solid var(--fc);
  background: var(--fc-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pcard__ico svg {
  width: 22px;
  height: 22px;
  stroke: var(--fc);
  fill: none;
  stroke-width: 1.7;
}
.pcard h3 {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  margin: 18px 0 0;
}
.pcard p {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--secondary);
  margin: 9px 0 0;
  flex: 1;
  text-wrap: pretty;
}
.pcard__go {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fc);
}
.pcard__go svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  transition: transform 0.2s;
}
.pcard:hover .pcard__go svg {
  transform: translateX(3px);
}

/* ---- hub jump grids (Atlas / Foundry hubs share Products shot cards) ---- */
.hub-cards {
  position: relative;
  padding: 4px 0 40px;
}
.hub-cards.atlas {
  --fc: var(--atlas);
  --fc-dim: var(--atlas-dim);
}
.hub-cards.foundry {
  --fc: var(--foundry);
  --fc-dim: var(--foundry-dim);
}
.hub-cards__inner {
  position: relative;
  z-index: 1;
}
.hub-cards__head {
  max-width: 560px;
  margin: 0 0 16px;
}
.hub-cards__head .cap__n {
  display: inline-block;
  margin-bottom: 6px;
}
.hub-cards__head h2 {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin: 0;
  line-height: 1.15;
}
.hub-cards__head p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--secondary);
  max-width: 48ch;
}

/* ---- compact product shot cards (title above screenshot) ---- */
.pcard.pcard--shot {
  padding: 12px 12px 12px;
  min-height: 0;
  gap: 0;
  border-radius: 8px;
  background: var(--card-grad);
}
.pcard.pcard--shot:hover {
  border-color: color-mix(in srgb, var(--fc) 55%, var(--foreground));
  box-shadow:
    0 14px 32px -24px color-mix(in srgb, var(--fc) 50%, transparent),
    0 1px 0 color-mix(in srgb, var(--fc) 16%, transparent);
}
/* Title row sits above the product frame */
.pcard.pcard--shot > .pcard__head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 0 2px 10px;
  padding-right: 36px; /* room for index badge */
}
.pcard.pcard--shot .pcard__num {
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--foreground) 80%, transparent);
  background: color-mix(in srgb, var(--card-grad, #fff) 92%, transparent);
  color: var(--tertiary);
  font-size: 9.5px;
}
.pcard.pcard--shot .pcard__ico {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  margin: 0;
  flex: 0 0 28px;
}
.pcard.pcard--shot .pcard__ico svg {
  width: 14px;
  height: 14px;
}
.pcard.pcard--shot > .pcard__head h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  min-width: 0;
}
/* Inset product frame: thin chrome + compact UI preview */
.pcard.pcard--shot .pcard__media {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--foreground) 88%, var(--fc) 12%);
  background: color-mix(in srgb, var(--inset-bg, #eef3f7) 92%, var(--fc) 8%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  box-sizing: border-box;
}
.pcard.pcard--shot .pcard__media::before {
  content: "";
  display: block;
  flex: 0 0 20px;
  height: 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--foreground) 70%, transparent);
  background:
    radial-gradient(circle at 11px 10px, #ff5f57 0 3px, transparent 3.5px),
    radial-gradient(circle at 22px 10px, #febc2e 0 3px, transparent 3.5px),
    radial-gradient(circle at 33px 10px, #28c840 0 3px, transparent 3.5px),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--inset-bg, #f6f8fb) 100%, #fff) 0%,
      color-mix(in srgb, var(--inset-bg, #eef2f6) 100%, #fff) 100%
    );
}
.pcard.pcard--shot .pcard__media img {
  display: block;
  width: 100%;
  /* contain (not cover): avoid zoom-crop that washes product chrome to empty (E-P2-01) */
  height: 128px;
  object-fit: contain;
  object-position: top center;
  background: #fff;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: no-preference) {
  .pcard.pcard--shot:hover .pcard__media img {
    transform: scale(1.02);
  }
}
@media (max-width: 980px) {
  .pcard.pcard--shot .pcard__media img {
    height: 118px;
  }
}
@media (max-width: 560px) {
  .pcard.pcard--shot {
    padding: 10px 10px 12px;
  }
  .pcard.pcard--shot .pcard__media img {
    height: 110px;
  }
}
.pcard.pcard--shot .pcard__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px 2px 0;
  min-width: 0;
  gap: 0;
}
.pcard.pcard--shot .pcard__body p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard.pcard--shot .pcard__go {
  margin-top: 10px;
  padding: 0 2px;
  align-self: flex-start;
  font-size: 10.5px;
}
.pcard.pcard--shot > .pcard__go {
  padding-left: 2px;
  padding-right: 2px;
}

/* ---- product screenshots dropped into the .surf frame (theme-matched chrome) ---- */
.surf.shotcard {
  overflow: hidden;
}
.surf.shotcard .surf__bar {
  background: var(--inset-bg);
}
.surf.shotcard .surf__bar .tt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.surf__shot {
  overflow: hidden;
  background: #fff;
}
.surf__shot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
/* prevent the high-res screenshot's intrinsic width from blowing out the grid column */
.teaser > * {
  min-width: 0;
}
.surf {
  max-width: 100%;
  min-width: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .surf.shotcard:hover .surf__shot img {
    transform: scale(1.02);
  }
}

/* ---- floating color FAB (theme selector, on every page via chrome.js) ---- */
.cfab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  font-family: var(--font-primary);
}
.cfab__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--card-edge);
  background: var(--card-grad);
  box-shadow: 0 8px 30px var(--shadow-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.cfab__btn:hover {
  transform: translateY(-2px);
}
.cfab__btn::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: conic-gradient(
    var(--atlas),
    var(--foundry),
    var(--agent),
    var(--atlas)
  );
}
.cfab__panel {
  position: absolute;
  right: 0;
  bottom: 60px;
  width: 248px;
  padding: 18px;
  border-radius: 13px;
  border: 1px solid var(--card-edge);
  background: var(--transparent-overlay, rgba(15, 22, 38, 0.95));
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px var(--shadow-deep);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}
:root[data-theme="light"] .cfab__panel {
  background: rgba(255, 255, 255, 0.97);
}
.cfab.open .cfab__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.cfab__title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-strong);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cfab__title .x {
  cursor: pointer;
  color: var(--tertiary);
  font-size: 15px;
  line-height: 1;
}
.cfab__lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin: 0 0 9px;
}
.cfab__sw {
  display: flex;
  gap: 9px;
  margin-bottom: 16px;
}
.cfab__sw:last-child {
  margin-bottom: 0;
}
.cfab__sw button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 0 0 1px var(--foreground) inset;
  transition: transform 0.15s;
}
.cfab__sw button:hover {
  transform: scale(1.12);
}
.cfab__sw button.on {
  border-color: var(--text-strong);
}

/* "how it connects" strip — capture/sensor framed as the method, not a product */
.howstrip {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  border: 1px dashed var(--foreground);
  border-radius: 14px;
  background: var(--inset-bg);
  text-decoration: none;
  transition: border-color 0.2s;
}
.howstrip:hover {
  border-color: var(--fc);
}
.howstrip__ico {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 11px;
  border: 1px solid var(--fc);
  background: var(--fc-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}
.howstrip__ico svg {
  width: 22px;
  height: 22px;
  stroke: var(--fc);
  fill: none;
  stroke-width: 1.7;
}
.howstrip__txt {
  flex: 1;
  min-width: 0;
}
.howstrip__k {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fc);
}
.howstrip__t {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  margin-top: 5px;
}
.howstrip__d {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--secondary);
  margin-top: 5px;
  line-height: 1.45;
  text-wrap: pretty;
}
.howstrip__go {
  flex: none;
  width: 18px;
  height: 18px;
  stroke: var(--fc);
  fill: none;
  stroke-width: 2.2;
}
@media (max-width: 560px) {
  .howstrip {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* ============================================================================
   CAPABILITY SECTIONS (Atlas / Foundry product pages)
   reuses .teaser / .surf from home.css; adds pairs chips + section index
   ============================================================================ */
.cap {
  border-bottom: 1px solid var(--foreground);
}
.cap__pad {
  padding-top: 88px;
  padding-bottom: 88px;
}
@media (max-width: 760px) {
  .cap__pad {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}
.cap__n {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tertiary);
}
.pairs {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pairs__lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tertiary);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--foreground);
  border-radius: 999px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--secondary);
  text-decoration: none;
  transition:
    border-color 0.18s,
    color 0.18s;
}
.chip:hover {
  color: var(--text-strong);
  border-color: var(--lead);
}
.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

/* Router benchmark link cards (Smart Routing proof strip) */
.bm-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
  max-width: 880px;
}
.bm-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 16px;
  border: 1px solid var(--card-edge);
  border-radius: 12px;
  background: var(--inset-bg, var(--background));
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.bm-card:hover {
  border-color: color-mix(in srgb, var(--accent, #2D6AE7) 45%, var(--card-edge));
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}
.bm-card:hover .bm-card__go {
  color: var(--accent, #2D6AE7);
  transform: translateX(2px);
}
.bm-card__avatar {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
}
.bm-card__avatar-main {
  width: 40px;
  height: 40px;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}
.bm-card__avatar-chip {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--background, #fff);
  border: 1.5px solid var(--card-edge);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}
.bm-card__avatar-chip img {
  width: 13px;
  height: 13px;
  display: block;
  object-fit: contain;
  color: var(--text-strong, #101828);
}
/* Not Diamond mark is path-only; force ink color in light/dark */
.bm-card__avatar-chip--nd {
  color: var(--text-strong, #101828);
}
.bm-card__avatar-chip--nd img {
  width: 12px;
  height: 12px;
}
.bm-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bm-card__title {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
  color: var(--text-strong, var(--vivid-foreground, #101828));
}
.bm-card__sum {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-strong, #101828);
}
.bm-card__go {
  flex: none;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--tertiary);
  transition:
    color 0.18s ease,
    transform 0.18s ease;
}
@media (max-width: 720px) {
  .bm-cards {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   SOLUTIONS — persona cards + attribution spotlight ladder
   ============================================================================ */
.personas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 50px;
}
@media (max-width: 900px) {
  .personas {
    grid-template-columns: 1fr;
  }
}
.persona {
  border: 1px solid var(--foreground);
  border-radius: 4px;
  padding: 40px 32px 36px;
  min-height: 460px;
  background: var(--card-grad);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.persona:hover {
  transform: translateY(-3px);
  border-color: var(--cc, var(--accent));
}
.persona__role {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cc, var(--accent));
}
.persona h3 {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text-strong);
  margin: 16px 0 0;
  text-wrap: balance;
}
.persona__stat {
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--foreground);
  border-bottom: 1px solid var(--foreground);
  display: flex;
  align-items: center;
  gap: 10px;
}
.persona__stat .n {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--cc, var(--accent));
  line-height: 1;
}
.persona__stat .l {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 12.5px;
  color: var(--tertiary);
}
.persona__caps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 1;
}
.persona__caps li {
  display: flex;
  gap: 9px;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--secondary);
  line-height: 1.4;
}
.persona__caps svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 2px;
  stroke: var(--cc, var(--accent));
  fill: none;
  stroke-width: 2.2;
}
.persona__cta {
  margin-top: 32px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cc, var(--accent));
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.persona__cta svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

/* attribution spotlight ladder */
.spot {
  overflow: hidden;
  margin-top: 50px;
}
.spot__head {
  padding: 30px 34px;
  border-bottom: 1px solid var(--foreground);
}
.spot__head h3 {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-strong);
  margin: 0;
  text-wrap: balance;
}
.spot__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
@media (max-width: 880px) {
  .spot__grid {
    grid-template-columns: 1fr;
  }
}
.spot__col {
  border-radius: 4px;
  border: 1px solid var(--foreground);
}

.spot__col.before .spot__lbl {
  background: var(--deny-dim);
}
.spot__col.after .spot__lbl {
  background: var(--foundry-dim);
}
.spot__body {
  padding: 16px 24px 36px;
}
.spot__lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 8px 24px;
  height: 40px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.spot__col.before .spot__lbl {
  color: var(--deny);
}
.spot__col.after .spot__lbl {
  color: var(--foundry);
}
.spot__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(101, 137, 158, 0.12);
  font-family: var(--font-primary);
}
.spot__line:last-of-type {
  border-bottom: none;
}
.spot__line .k {
  font-weight: 500;
  font-size: 14px;
  color: var(--secondary);
}
.spot__line .v {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
  white-space: nowrap;
}
.spot__col.after .spot__line .v {
  color: var(--foundry);
}
.spot__verdict {
  margin-top: 16px;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 13.5px;
  font-style: italic;
  color: var(--tertiary);
}
.spot__mid {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
}
@media (max-width: 880px) {
  .spot__mid {
    padding: 18px;
  }
}
.spot__plus {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--foreground);
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lead);
}
@media (max-width: 880px) {
  .spot__plus {
    transform: rotate(90deg);
  }
}

/* ============================================================================
   COMPARISON — "why not just…" rows
   ============================================================================ */
.cmp {
  border: 1px solid var(--foreground);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 46px;
  background: var(--card-grad);
}
.cmp__row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  border-bottom: 1px solid var(--foreground);
}
.cmp__row:last-child {
  border-bottom: none;
}
.cmp__row.cortex {
  background: var(--lead-glow);
}
.cmp__c {
  padding: 20px 26px;
}
.cmp__c.l {
  border-right: 1px solid var(--foreground);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-strong);
  display: flex;
  align-items: center;
  gap: 11px;
}
.cmp__c.l .what {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 13px;
  color: var(--tertiary);
}
.cmp__c.r {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--secondary);
  display: flex;
  align-items: center;
}
.cmp__row.cortex .cmp__c.l {
  color: var(--lead);
}
.cmp__row.cortex .cmp__c.r {
  color: var(--text-strong);
}
.cmp__kick {
  margin-top: 24px;
  text-align: center;
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.01em;
  color: var(--secondary);
  text-wrap: balance;
}
.cmp__kick b {
  color: var(--text-strong);
  font-weight: 500;
}

/* ============================================================================
   PLATFORM — thesis band, architecture, integrations
   ============================================================================ */
.thesis {
  border-bottom: 1px solid var(--foreground);
  background: var(--inset-bg);
}
.thesis__inner {
  padding: 72px 0;
  max-width: 880px;
}
.thesis__pov {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--text-strong);
  text-wrap: balance;
}
.thesis__pov .lead {
  color: var(--lead);
}
.thesis__body {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
  color: var(--secondary);
  margin: 24px 0 0;
  max-width: 680px;
  text-wrap: pretty;
}

.arch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--foreground);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 46px;
  background: var(--card-grad);
}
@media (max-width: 820px) {
  .arch {
    grid-template-columns: 1fr;
  }
}
.arch__col {
  padding: 30px 28px;
  border-right: 1px solid var(--foreground);
  position: relative;
}
.arch__col:last-child {
  border-right: none;
}
@media (max-width: 820px) {
  .arch__col {
    border-right: none;
    border-bottom: 1px solid var(--foreground);
  }
}
.arch__stage {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lead);
  display: flex;
  align-items: center;
  gap: 9px;
}
.arch__stage .ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--card-edge);
  background: var(--inset-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.arch__stage .ico svg {
  width: 16px;
  height: 16px;
  stroke: var(--lead);
  fill: none;
  stroke-width: 1.7;
}
.arch__col h4 {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  margin: 16px 0 0;
}
.arch__col p {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--secondary);
  margin: 10px 0 0;
  text-wrap: pretty;
}
.arch__col ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.arch__col ul li {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--tertiary);
  display: flex;
  gap: 8px;
  align-items: center;
}
.arch__col ul li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lead);
  flex: none;
}

.icats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.icats--centered .icat {
  align-items: center;
  text-align: center;
}

.icats--centered .icat:first-child {
  border-left: none;
}

.icats--centered .icat h5 {
  text-transform: uppercase;
  letter-spacing: 0.88px;
  font-family: var(--font-mono);
  font-size: 11px;
  margin-bottom: 20px;
}

.icats--centered .icat__logos {
  margin-bottom: 8px;
}

@media (max-width: 860px) {
  .icats {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .icats {
    grid-template-columns: 1fr;
  }
}
.icat {
  position: relative;
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--foreground);
  padding: 4px 20px;
  text-decoration: none;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
a.icat:hover {
  transform: translateY(-3px);
}
.icat h5 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0 0 10px;
  text-decoration: none;
}
.icat__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.icat__logo {
  padding: 6px;
  border-radius: 4px;
  border: 1px solid var(--card-edge);
  width: 32px;
  height: 32px;
}

.icat__logos img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}
.icat p {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--secondary);
  margin: 0;
  line-height: 1.5;
  text-decoration: none;
  text-wrap: pretty;
  flex: 1;
}
a.icat::after {
  content: "Explore →";
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: #98a2b3;
  opacity: 0.85;
}
a.icat:hover::after {
  color: var(--lead);
}

/* ============================================================================
   SECURITY — pillars, data-flow ladder, compliance badges
   ============================================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 50px;
}
@media (max-width: 900px) {
  .pillars {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}
.pillar {
  border: 1px solid var(--foreground);
  border-radius: 4px;
  padding: 26px 24px;
  background: var(--card-grad);
}
.pillar__ico {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: var(--foundry-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pillar__ico svg {
  width: 20px;
  height: 20px;
  stroke: var(--foundry);
  fill: none;
  stroke-width: 2;
}
.pillar h4 {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  margin: 18px 0 0;
}
.pillar p {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  color: var(--secondary);
  margin: 10px 0 0;
  text-wrap: pretty;
}

.flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 46px;
  border: 1px solid var(--foreground);
  border-radius: 4px;
  overflow: visible; /* arrows sit on borders */
  background: var(--card-grad);
}
@media (max-width: 820px) {
  .flow {
    flex-direction: column;
    overflow: visible;
  }
}
.flow__step {
  flex: 1;
  padding: 26px 24px;
  border-right: 1px solid var(--foreground);
  position: relative;
  background: inherit;
}
.flow__step:last-child {
  border-right: none;
}
@media (max-width: 820px) {
  .flow__step {
    border-right: none;
    border-bottom: 1px solid var(--foreground);
    padding: 22px 20px 28px;
  }
  .flow__step:last-child {
    border-bottom: none;
    padding-bottom: 22px;
  }
}
/* Step icons (device / shield / policy / cloud) */
.flow__ic {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0 0 12px;
  border-radius: 10px;
  background: rgba(31, 157, 99, 0.1);
  color: var(--foundry, #1f9d63);
  flex-shrink: 0;
}
.flow__ic svg {
  width: 18px;
  height: 18px;
  display: block;
}
@media (max-width: 820px) {
  .flow__ic {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    border-radius: 11px;
  }
  .flow__ic svg {
    width: 20px;
    height: 20px;
  }
}
.flow__n {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--foundry);
  display: block;
}
.flow__step h4 {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 18px;
  color: var(--text-strong);
  margin: 10px 0 0;
}
.flow__step p {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  color: var(--secondary);
  margin: 8px 0 0;
}
@media (max-width: 820px) {
  .flow__step h4 {
    font-size: 17px;
    margin-top: 8px;
  }
  .flow__step p {
    font-size: 13.5px;
    line-height: 1.45;
    margin-top: 6px;
  }
}
/* Connectors: desktop = right chevron on seam; mobile = down in center chip */
.flow__arrow {
  position: absolute;
  top: 50%;
  right: -12px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--background, #fff);
  border: 1px solid var(--foreground);
  color: var(--tertiary);
  z-index: 3;
  box-shadow: 0 1px 2px rgba(11, 16, 28, 0.04);
}
.flow__arrow svg {
  width: 12px;
  height: 12px;
  display: block;
  /* desktop: point right (path is down) */
  transform: rotate(-90deg);
}
@media (max-width: 820px) {
  .flow__arrow {
    top: auto;
    right: auto;
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
  }
  .flow__arrow svg {
    width: 14px;
    height: 14px;
    transform: none; /* path already points down */
  }
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
}
.badge2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: 1px solid var(--foreground);
  border-radius: 10px;
  background: var(--card-grad);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-strong);
}
.badge2 svg {
  width: 17px;
  height: 17px;
  stroke: var(--foundry);
  fill: none;
  stroke-width: 1.8;
}

/* ---- procurement FAQ (driven by landing.js accordion) ---- */
.faq {
  max-width: 820px;
  margin: 44px auto 0;
}
.faq__item {
  margin-bottom: 12px;
  overflow: hidden;
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  cursor: pointer;
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  text-wrap: pretty;
}
.faq__q::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--lead);
  flex: none;
  transition: transform 0.2s;
}
.faq__item.open .faq__q::after {
  content: "–";
}
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq__a p {
  padding: 0 0 22px;
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--secondary);
  text-wrap: pretty;
}

/* ============================================================================
   REUSABLE MOCK PRIMITIVES (capability surfaces)
   ============================================================================ */
.mrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 7px;
  font-family: var(--font-primary);
}
.mrow:nth-child(odd) {
  background: var(--ui-default);
}
.mrow .mav {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: #fff;
}
.mrow .msq {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mrow .msq svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
}
.mrow .mname {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-strong);
}
.mrow .mmeta {
  font-weight: 500;
  font-size: 11.5px;
  color: var(--tertiary);
}
.mrow .mright {
  margin-left: auto;
  text-align: right;
}
.mrow .mtag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}
.mtag.human {
  color: var(--atlas);
  background: var(--atlas-dim);
}
.mtag.agent {
  color: var(--agent);
  background: var(--agent-dim);
}
.mtag.ok {
  color: var(--foundry);
}
.mtag.warn {
  color: var(--caution);
  background: var(--caution-dim);
}
.mbar {
  width: 56px;
  height: 7px;
  border-radius: 4px;
  background: var(--inset-bg);
  overflow: hidden;
}
.mbar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--lead);
}

/* gauge (coverage score) */
.gauge {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 6px 4px 14px;
}
.gauge__ring {
  position: relative;
  width: 90px;
  height: 90px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(var(--foundry) var(--p, 72%), var(--inset-bg) 0);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gauge__ring::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--card-grad);
}
.gauge__num {
  position: relative;
  z-index: 2;
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 24px;
  color: var(--text-strong);
}
.gauge__txt .gt {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-strong);
}
.gauge__txt .gd {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 12.5px;
  color: var(--tertiary);
  margin-top: 4px;
  line-height: 1.4;
}

/* feed (anomalies / capture log) */
.feed {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.feed__i {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--foreground);
  border-radius: 4px;
  background: var(--inset-bg);
}

:root[data-theme="dark"] .feed__i {
  border-color: rgba(36, 51, 66, 1);
  background: rgba(101, 137, 158, 0.05);
}

.feed__i .fdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex: none;
}
.feed__i .ft {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text-strong);
  line-height: 1.3;
}
.feed__i .fm {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--tertiary);
  margin-top: 3px;
}
.feed__i .fval {
  margin: auto 0 auto auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* work-unit cluster cards */
.wuc {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wuc__c {
  border: 1px solid var(--foreground);
  border-radius: 9px;
  padding: 13px 15px;
  background: var(--inset-bg);
}
.wuc__t {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-strong);
}
.wuc__t .cdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.wuc__m {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--tertiary);
  margin-top: 6px;
}

/* section header used across inner pages */
.psec {
  border-bottom: 1px solid var(--foreground);
}
.psec__pad {
  padding-top: 88px;
  padding-bottom: 88px;
}
@media (max-width: 760px) {
  .psec__pad {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

/* ---- Workforce Visibility: live-activity depth section (ported from v2) ---- */
.wfvgrid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .wfvgrid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
.wfvpad {
  padding: 18px 20px 20px;
}
.wfvnotes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.wfvnotes li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 16px;
  border-left: 2px solid var(--atlas);
}
.wfvnotes--foundry li {
  border-left-color: var(--foundry);
}
.wfvnotes__k {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-strong);
}
.wfvnotes__d {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--secondary);
  text-wrap: pretty;
}

/* ==== legacy product + solution mobile (pages.css) ====
   Product/solution HTML pages load pages.css but NOT cxw-next.css.
   Port the section-level stack rules here so text|mockup splits, content
   card trios, and solution persona value cards all collapse cleanly on
   phones without touching desktop or home-only Next styles. */

/* --- Solution persona value cards (CTO/CFO/CEO) --- */
@media (max-width: 900px) {
  /* Value cards (gap 72px) + CFO hero (gap 64px): stack to single column */
  [style*="max-width: 1120px"][style*="display: grid"][style*="gap: 72px"],
  [style*="max-width: 1120px"][style*="display: grid"][style*="gap: 64px"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Desktop image-left cards: copy above mockup when stacked */
  [style*="max-width: 1120px"][style*="gap: 72px"][style*="grid-template-columns: 6fr 5fr"],
  [style*="max-width: 1120px"][style*="gap: 72px"][style*="grid-template-columns: 4fr 7fr"] {
    display: flex !important;
    flex-direction: column-reverse !important;
  }

  /* Tighten desktop vertical padding on those shells */
  [style*="max-width: 1120px"][style*="padding: 96px 32px"] {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
  [style*="max-width: 1120px"][style*="padding: 88px 32px"],
  [style*="max-width: 1120px"][style*="padding: 88px 32px 80px"],
  [style*="max-width: 1120px"][style*="padding: 104px 32px 88px"],
  [style*="max-width: 1120px"][style*="padding: 104px 32px 72px"],
  [style*="max-width: 1120px"][style*="padding: 140px 32px 120px"] {
    padding-top: 48px !important;
    padding-bottom: 40px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  [style*="max-width: 1120px"][style*="display: grid"][style*="gap: 72px"] > *,
  [style*="max-width: 1120px"][style*="display: grid"][style*="gap: 64px"] > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  [style*="max-width: 1120px"][style*="display: grid"][style*="gap: 72px"] > div[style*="border-radius: 12px"],
  [style*="max-width: 1120px"][style*="display: grid"][style*="gap: 64px"] > div[style*="border-radius: 12px"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow: hidden !important;
  }

  /* Security 2-up under solution sections */
  [data-screen-label="Security"] [style*="grid-template-columns: 1fr 1fr"],
  [style*="max-width: 1120px"] [style*="grid-template-columns: 1fr 1fr"][style*="gap: 24px"] {
    grid-template-columns: 1fr !important;
  }

  /* Hero / CTA button rows wrap */
  [data-screen-label="Hero"] [style*="display: flex"][style*="gap: 12px"],
  [data-screen-label="CTA banner"] [style*="display: flex"][style*="gap: 12px"],
  [style*="max-width: 1120px"] [style*="display: flex"][style*="gap: 12px"][style*="margin-top: 4px"],
  [style*="max-width: 1120px"] [style*="display: flex"][style*="gap: 12px"][style*="margin-top: 8px"] {
    flex-wrap: wrap !important;
    justify-content: center;
    max-width: 100%;
  }
  [data-screen-label="Hero"] a[style*="white-space: nowrap"],
  [data-screen-label="CTA banner"] a[style*="white-space: nowrap"] {
    white-space: normal !important;
    text-align: center;
  }

  [data-screen-label="Hero"] h1[style*="font-size: 54px"],
  [data-screen-label="Hero"] h1[style*="font-size: 46px"] {
    font-size: 34px !important;
  }
  [data-screen-label="CTA banner"] h2[style*="font-size: 56px"] {
    font-size: 32px !important;
  }

  /* --- Product pages: section text|mockup splits (ported from cxw-next) --- */
  [style*="grid-template-columns:1fr 0.95fr"],
  [style*="grid-template-columns: 1fr 0.95fr"],
  [style*="grid-template-columns:1.05fr 0.95fr"],
  [style*="grid-template-columns: 1.05fr 0.95fr"],
  [style*="grid-template-columns:0.66fr 1.34fr"],
  [style*="grid-template-columns: 0.66fr 1.34fr"],
  [style*="grid-template-columns:0.62fr auto 1.5fr"],
  [style*="grid-template-columns: 0.62fr auto 1.5fr"],
  [style*="grid-template-columns:1fr 0.95fr;gap:48px"],
  [style*="gap:48px"][style*="align-items:center"][style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  /* Product content trios / pairs that still sit side-by-side at 390px */
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(2,1fr)"],
  [style*="grid-template-columns: repeat(2, 1fr)"],
  [style*="grid-template-columns:1fr 1fr"][style*="gap:14px"],
  [style*="grid-template-columns:1fr 1fr"][style*="gap:0"],
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* smart-routing / governance 1fr 1fr section panels (not tiny mockup cells) */
  .psec [style*="grid-template-columns:1fr 1fr"],
  .cap [style*="grid-template-columns:1fr 1fr"],
  section[data-screen-label] [style*="display:grid"][style*="grid-template-columns:1fr 1fr"]:not([style*="gap:11px"]) {
    grid-template-columns: 1fr !important;
  }

  /* Crush fixed min-widths that force horizontal scroll on product pages */
  [style*="min-width:150px"] {
    min-width: 0 !important;
  }

  /* Decorative glows must never extend page scroll width */
  .close__glow {
    max-width: 100vw !important;
    overflow: hidden;
  }
}

@media (max-width: 760px) {
  /* Wide mockup table rows: scroll inside the card, don't reflow into nonsense stacks */
  [style*="grid-template-columns: 2.1fr 0.9fr 1fr 0.9fr 0.9fr"],
  [style*="grid-template-columns:2.1fr 0.9fr 1fr 0.9fr 0.9fr"],
  [style*="grid-template-columns: 24px 1.4fr auto 1.6fr"],
  [style*="grid-template-columns: 1.4fr auto 1.6fr"],
  [style*="grid-template-columns: 1.3fr 1.3fr auto"],
  [style*="grid-template-columns:1.3fr 1.3fr auto"],
  [style*="grid-template-columns: 1fr 1.2fr 1.2fr"],
  [style*="grid-template-columns:1fr 1.2fr 1.2fr"],
  [style*="grid-template-columns: 1fr auto 1fr auto 1fr"],
  [style*="grid-template-columns:1fr 1.4fr"],
  [style*="grid-template-columns: 1fr 1.4fr"] {
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* promote-pipeline style rows */
  [style*="align-items:stretch"][style*="gap:20px"] {
    flex-direction: column;
  }
  [style*="align-items:stretch"][style*="gap:20px"] > span[style*="font-size:20px"] {
    transform: rotate(90deg);
  }

  /* CTA flex rows used on product inline sections */
  [style*="display: flex; gap: 12px"],
  [style*="display:flex;gap:12px"] {
    flex-wrap: wrap;
  }
}

/* CFO before/after attribution: two full cards on mobile (not a squished split) */
.cxw-ba__label--mob {
  display: none;
  font-family: "Aeonik Fono", monospace;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cxw-ba__panel--before .cxw-ba__label--mob { color: #667085; }
.cxw-ba__panel--after .cxw-ba__label--mob { color: #2D6AE7; }

@media (max-width: 900px) {
  .cxw-ba {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  .cxw-ba__chrome {
    display: none !important;
  }
  .cxw-ba__grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }
  .cxw-ba__panel {
    border: 1px solid #65899e33 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06) !important;
    border-right: 1px solid #65899e33 !important;
    padding: 18px 16px !important;
    gap: 12px !important;
  }
  .cxw-ba__panel--before {
    background: #f8fafb !important;
  }
  .cxw-ba__panel--after {
    background: #ffffff !important;
  }
  .cxw-ba__label--desk {
    display: none !important;
  }
  .cxw-ba__label--mob {
    display: block !important;
    margin-bottom: 2px;
  }
  /* AFTER list mobile layout lives in AUDIT-LANE-L7-SOLUTIONS */
}

/* Activity layers list (workforce-visibility): desktop row, mobile two-line cards */
.cxw-layer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  border: 1px solid var(--card-edge);
  border-left: 2px solid var(--atlas);
  border-radius: 4px;
  background: var(--inset-bg);
}
.cxw-layer__n {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--tertiary);
  min-width: 22px;
  flex: none;
}
.cxw-layer__body {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.cxw-layer__t {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-strong);
  min-width: 150px;
  flex: none;
}
.cxw-layer__d {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary);
  min-width: 0;
}

@media (max-width: 900px) {
  .cxw-layers {
    gap: 12px !important;
    padding: 16px 14px 18px !important;
  }
  .cxw-layer {
    align-items: flex-start;
    gap: 12px;
    padding: 16px 14px;
    min-height: 72px;
  }
  .cxw-layer__n {
    margin-top: 3px;
  }
  .cxw-layer__body {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .cxw-layer__t {
    min-width: 0;
    font-size: 16px;
    line-height: 1.25;
  }
  .cxw-layer__d {
    font-size: 14px;
    line-height: 1.45;
    text-wrap: pretty;
  }
}

/* Connector chip grid (workforce-visibility integrations) */
.cxw-connectors {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  padding: 24px;
  box-sizing: border-box;
  width: 100%;
}
.cxw-connectors > div {
  min-width: 0;
  box-sizing: border-box;
}
.cxw-connectors > div span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .cxw-connectors {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .cxw-connectors {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 16px 14px 18px !important;
  }
  .cxw-connectors > div {
    padding: 14px 12px !important;
    gap: 10px !important;
  }
}

@media (max-width: 380px) {
  .cxw-connectors {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
}

/* Board readout: initiative rollup cards (work-attribution)
   Multi-row, text-first layout — desktop and mobile share the same structure. */
.cxw-iroad {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.cxw-iroad__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--card-edge);
  border-radius: 4px;
  background: var(--inset-bg);
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}

.cxw-iroad__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.cxw-iroad__source {
  font-family: var(--font-mono), monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--atlas);
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cxw-iroad__source:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cxw-iroad__status {
  flex-shrink: 0;
}

.cxw-iroad__title {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

.cxw-iroad__spend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.cxw-iroad__spend-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cxw-iroad__amount {
  font-family: var(--font-mono), monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
}

.cxw-iroad__outcome {
  font-family: var(--font-primary);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--secondary);
}

.cxw-iroad__bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--card-edge);
  overflow: hidden;
}

.cxw-iroad__barfill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--atlas);
}

.cxw-iroad__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid var(--card-edge);
  min-width: 0;
}

.cxw-iroad__row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 2px;
  align-items: start;
  min-width: 0;
}

.cxw-iroad__k {
  font-family: var(--font-mono), monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tertiary);
  padding-top: 3px;
  flex-shrink: 0;
}

.cxw-iroad__v {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  min-width: 0;
  font-family: var(--font-primary);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-strong);
}

.cxw-iroad__sub {
  grid-column: 2;
  font-family: var(--font-mono), monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--tertiary);
  line-height: 1.35;
  min-width: 0;
}

.cxw-iroad__face {
  flex-shrink: 0;
}

.cxw-iroad__face .av {
  width: 22px;
  height: 22px;
  font-size: 0;
}

.cxw-iroad__chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--card-edge);
  background: var(--card-grad, #fff);
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  color: var(--secondary);
  white-space: nowrap;
}

.cxw-iroad__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding: 14px 4px 2px;
  border-top: 1px solid var(--card-edge);
  min-width: 0;
}

.cxw-iroad__total-k {
  font-family: var(--font-mono), monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tertiary);
}

.cxw-iroad__total-v {
  font-family: var(--font-mono), monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
  text-align: right;
}

@media (max-width: 900px) {
  .cxw-iroad {
    padding: 16px 14px 18px;
    gap: 12px;
  }

  .cxw-iroad__card {
    padding: 16px 14px;
    gap: 12px;
  }

  .cxw-iroad__top {
    align-items: flex-start;
  }

  .cxw-iroad__source {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.35;
  }

  .cxw-iroad__title {
    font-size: 16.5px;
  }

  .cxw-iroad__row {
    grid-template-columns: 58px minmax(0, 1fr);
    column-gap: 10px;
  }

  .cxw-iroad__v {
    font-size: 13px;
  }

  .cxw-iroad__total {
    padding: 14px 2px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .cxw-iroad__total-v {
    text-align: left;
    font-size: 14px;
  }
}

/* === AUDIT-LANE-L4:start === */
/* PLT-016: product teaser headline is the page h1 (parity with .teaser h2) */
.teaser h1 {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: var(--text-strong);
  margin: 20px 0 0;
  text-wrap: balance;
}
/* PLT-010: open class actually reveals answer without waiting for click JS */
.faq__item.open > .faq__a {
  max-height: 360px;
}
/* === AUDIT-LANE-L4:end === */

/* === AUDIT-LANE-L8-HUBS:start === */
/* Hub pages (products / atlas / foundry / solutions / platform):
   HUB-005/006 stack mobile CTAs + hero stats; HUB-008 2×2 capability grid;
   HUB-009/010 contain phero/famsec glow overflow on narrow viewports. */

/* HUB-008 — products capability cards: always 2×2 (no orphan 4th) */
.pgrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 560px) {
  .pgrid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* HUB-005 / HUB-006 — full-width stacked hero CTAs + stat card on mobile */
@media (max-width: 640px) {
  .phero__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .phero__cta .btn {
    width: 100%;
    box-sizing: border-box;
  }

  .phero__stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 14px;
    padding: 18px 18px;
  }
  .phero__stat .n {
    font-size: clamp(40px, 12vw, 52px);
  }
  .phero__stat .l {
    max-width: none;
    width: 100%;
    padding-left: 0;
    border-left: none;
    padding-top: 14px;
    border-top: 1px solid var(--foreground);
  }
}

/* HUB-009 / HUB-010 — clip decorative glow bleed; contain content width */
.phero,
.famsec {
  overflow-x: clip;
  max-width: 100%;
}
.phero__inner,
.famsec__inner,
.pgrid,
.pcard,
.phero__stat {
  min-width: 0;
}
/* max-width:100% only on the grid/cards that overflowed on mobile — NOT the
   content containers (.phero__inner=840px, .famsec__inner=.wrap), whose narrower
   desktop widths this blanket cap was blowing out to full page width. */
.pgrid,
.pcard,
.phero__stat {
  max-width: 100%;
}
@media (max-width: 760px) {
  .phero__glow,
  .famsec__glow {
    /* Keep glow visual but prevent layout participation / soft overflow */
    max-width: 100vw;
  }
  .phero__inner {
    padding-left: 0;
    padding-right: 0;
  }
}
/* === AUDIT-LANE-L8-HUBS:end === */
/* === AUDIT-LANE-L6-FOUNDRY:start === */
/* FOU-005: hero headline is a real h1 (home.css only styles .teaser h2) */
.teaser h1 {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: var(--text-strong);
  margin: 20px 0 0;
  text-wrap: balance;
}

/* Product screenshot shots (Atlas Workforce, Foundry, hubs, etc.): full image
   scaled and centered on mobile — no zoom-crop that clips the right half. */
@media (max-width: 760px) {
  .surf.shotcard,
  .cap .teaser .surf.shotcard {
    height: auto !important;
    max-width: 100%;
    width: 100%;
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
  }

  .surf.shotcard .surf__shot,
  .cap .teaser .surf.shotcard .surf__shot {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: auto !important;
    max-height: none !important;
    overflow: hidden;
    background: var(--inset-bg, #fff);
  }

  .surf.shotcard .surf__shot img,
  .cap .teaser .surf.shotcard .surf__shot img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center top !important;
    transform: none !important;
  }

  /* model-tuning HTML feed mock: keep type readable, drop ultra-dense side vals if needed */
  .cap .teaser .surf.surf-compact {
    height: auto;
    min-height: 0;
  }

  .cap .teaser .surf.surf-compact .feed__i {
    font-size: 13px;
  }

  .cap .teaser .surf.surf-compact .ft {
    font-size: 13px;
  }

  .cap .teaser .surf.surf-compact .fm {
    font-size: 12px;
  }
}

/* FOU-004: datasets promote pipeline — 2×2 on mobile (not 4-across micro cards) */
@media (max-width: 760px) {
  .fou-promote {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px !important;
    align-items: stretch;
  }

  .fou-promote > div {
    flex: none !important;
    min-width: 0 !important;
    width: auto !important;
  }

  .fou-promote__arrow {
    display: none !important;
  }

  .fou-promote > div [style*="font-size:14px"] {
    font-size: 13.5px !important;
  }

  .fou-promote > div [style*="font-size:11px"] {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }
}

@media (max-width: 420px) {
  /* Very narrow: prefer single column so each promote card stays scannable */
  .fou-promote {
    grid-template-columns: 1fr;
  }
}
/* === AUDIT-LANE-L6-FOUNDRY:end === */
/* === AUDIT-LANE-L7-SOLUTIONS:start === */
/* SOL-001: CTO router decision — card-per-candidate on mobile */
@media (max-width: 760px) {
  .cxw-router {
    gap: 10px !important;
  }

  .cxw-router__head {
    display: none !important;
  }

  .cxw-router__row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px 12px !important;
    align-items: start !important;
    padding: 12px 14px !important;
    max-width: 100% !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .cxw-router__name {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .cxw-router__m {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    line-height: 1.25;
  }

  .cxw-router__m::before {
    content: attr(data-k);
    font-family: "Aeonik Fono", monospace;
    font-weight: 500;
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #98a2b3;
  }
}

/* SOL-002: CFO AFTER attribution rows — intentional mobile header layout.
   Do not regress .cxw-ba dual-card stack (see earlier @media 900px rules). */
@media (max-width: 900px) {
  .cxw-ba__after-head {
    display: none !important;
  }

  .cxw-ba__after-row {
    gap: 8px !important;
    padding: 14px 0 !important;
  }

  .cxw-ba__after-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "team spend"
      "workflow spend" !important;
    column-gap: 12px !important;
    row-gap: 2px !important;
    align-items: start !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .cxw-ba__after-team {
    grid-area: team;
    min-width: 0;
  }

  .cxw-ba__after-workflow {
    grid-area: workflow;
    min-width: 0;
    font-size: 12px;
    line-height: 1.35;
  }

  .cxw-ba__after-spend {
    grid-area: spend;
    align-self: center;
    white-space: nowrap;
    font-size: 14px;
  }

  .cxw-ba__after-meta {
    flex-wrap: wrap;
    row-gap: 6px;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cxw-ba__after-foot {
    padding-top: 10px !important;
  }
}
/* === AUDIT-LANE-L7-SOLUTIONS:end === */

/* === AUDIT-LANE-L5-ATLAS:start === */
/* Atlas product mobile readability — ATL-002…ATL-008.
   Scoped to product mock patterns only. Do not touch .cxw-iroad. */

/* ---- Shared mock chrome for HTML shot replacements ---- */
.cxw-cdrivers,
.cxw-mcpreg {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 16px 16px 18px;
  background: var(--inset-bg, #f7f9fb);
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

/* neutralize any image-shot flex row inherited onto HTML mocks */
.surf__shot.cxw-cdrivers,
.surf__shot.cxw-mcpreg,
.surf.shotcard .surf__shot.cxw-cdrivers,
.surf.shotcard .surf__shot.cxw-mcpreg {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch;
}

.cxw-cdrivers__hd,
.cxw-mcpreg__hd {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 12px;
  min-width: 0;
}

.cxw-cdrivers__hd b,
.cxw-mcpreg__hd b {
  font-family: var(--font-primary);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.25;
}

.cxw-cdrivers__hd span,
.cxw-mcpreg__hd span {
  font-family: var(--font-primary);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--tertiary);
  line-height: 1.35;
  text-wrap: pretty;
}

/* ATL-006 — Cost Drivers: 4-up desktop, 2×2 mobile */
.cxw-cdrivers__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.cxw-cdrivers__card {
  min-width: 0;
  padding: 12px 12px 13px;
  border: 1px solid var(--card-edge);
  border-radius: 6px;
  background: var(--ui-default, #fff);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cxw-cdrivers__k {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 500;
  color: var(--tertiary);
  line-height: 1.3;
}

.cxw-cdrivers__v {
  font-family: var(--font-mono), monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.cxw-cdrivers__card--ok .cxw-cdrivers__v {
  color: var(--affirm, #2AB775);
}

.cxw-cdrivers__s {
  font-family: var(--font-mono), monospace;
  font-size: 10px;
  font-weight: 600;
  color: var(--tertiary);
  line-height: 1.3;
}

/* ATL-003 — MCP registry cards */
.cxw-mcpreg__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cxw-mcpreg__card {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--card-edge);
  border-radius: 6px;
  background: var(--ui-default, #fff);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cxw-mcpreg__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.cxw-mcpreg__name {
  font-family: var(--font-primary);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: anywhere;
}

.cxw-mcpreg__status {
  flex: none;
  font-family: var(--font-mono), monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 8px;
  line-height: 1.2;
  white-space: nowrap;
}

.cxw-mcpreg__status--on {
  color: var(--affirm, #2AB775);
  border: 1px solid var(--affirm, #2AB775);
  background: color-mix(in srgb, var(--affirm, #2AB775) 10%, transparent);
}

.cxw-mcpreg__status--warn {
  color: var(--caution, #d4a017);
  border: 1px solid var(--caution, #d4a017);
  background: color-mix(in srgb, var(--caution, #d4a017) 12%, transparent);
}

.cxw-mcpreg__rows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 10px;
}

.cxw-mcpreg__rows > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cxw-mcpreg__rows i {
  font-style: normal;
  font-family: var(--font-mono), monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--tertiary);
}

.cxw-mcpreg__rows b {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

/* ATL-007 — anomaly cards: single column on narrow */
.cxw-anomgrid {
  min-width: 0;
}

@media (max-width: 720px) {
  /* ATL-002 / residual: Live activity mobile cards
     [av][name + act]
     Applications  [chips +N]
     Models        [chips +N]
     Stats bar: time · calls · spend  */
  .actfeed__hd-r {
    display: none;
  }

  .actfeed__hd {
    padding-bottom: 10px;
    margin-bottom: 6px;
  }

  .actfeed {
    gap: 0 !important;
  }

  .actrow {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 0;
    align-items: start;
    padding: 14px 0 16px;
    border-bottom: 1px solid var(--card-edge, rgba(101, 137, 158, 0.16));
  }

  .actfeed .actrow:last-child {
    border-bottom: 0;
    padding-bottom: 4px;
  }

  .actrow .av {
    grid-column: 1;
    grid-row: 1;
    width: 36px !important;
    height: 36px !important;
    margin-top: 1px;
  }

  .actrow__main {
    grid-column: 2;
    grid-row: 1;
    flex: unset;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .actrow__top b {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 14.5px;
    line-height: 1.25;
  }

  .actrow__act {
    white-space: normal;
    overflow: visible;
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: unset;
    overflow-wrap: break-word;
    word-break: break-word;
    font-size: 13px;
    line-height: 1.35;
    margin: 0;
  }

  .actrow__apps,
  .actrow__models {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    min-width: 0;
  }

  .actrow__lbl {
    display: block;
    width: 88px;
    flex: none;
    font-size: 9.5px;
  }

  .actrow__chips {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .actrow__chips img,
  .actrow__chips .actrow__lg {
    width: 16px !important;
    height: 16px !important;
  }

  .actrow__more {
    flex: none;
  }

  /* Stats: full-width clean bar under main content */
  .actrow__meta {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    margin-top: 12px;
    padding: 10px 12px;
    box-sizing: border-box;
    border-radius: 10px;
    background: var(--inset-bg, rgba(101, 137, 158, 0.06));
    border: 1px solid var(--card-edge, rgba(101, 137, 158, 0.14));
  }

  .actstat {
    width: auto !important;
    min-width: 0;
    flex: 1 1 0;
    align-items: flex-start !important;
    gap: 3px !important;
    padding: 0 8px;
    border-right: 1px solid var(--card-edge, rgba(101, 137, 158, 0.16));
  }

  .actstat:first-child {
    padding-left: 0;
  }

  .actstat:last-child {
    border-right: 0;
    padding-right: 0;
  }

  .actstat i {
    display: block !important;
    font-style: normal;
    font-family: var(--font-mono), monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--tertiary);
    line-height: 1;
  }

  .actstat b {
    font-size: 13px;
    line-height: 1.15;
  }

  .actstat.time b {
    color: var(--text-strong);
  }

  /* model now lives in .actrow__models chips */
  .actrow__model {
    display: none !important;
  }

  /* ATL-004 — opportunity titles wrap; $ stacks under title */
  .ldr__row {
    flex-wrap: wrap;
    gap: 8px 11px;
  }

  .ldr__main {
    flex: 1 1 calc(100% - 40px);
    min-width: 0;
  }

  .ldr__top {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 4px;
  }

  .ldr__name {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .ldr__save {
    flex: 1 1 100%;
    margin-top: 0;
    padding-left: 33px; /* rank 22 + gap 11 */
    text-align: left;
  }

  /* ATL-006 — Cost Drivers 2×2 */
  .cxw-cdrivers__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .cxw-cdrivers__v {
    font-size: 17px;
  }

  /* ATL-003 — MCP meta stacks when narrow */
  .cxw-mcpreg {
    padding: 14px 12px 16px;
  }

  .cxw-mcpreg__rows {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .cxw-mcpreg__rows > span {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
  }

  .cxw-mcpreg__rows i {
    flex: none;
  }

  .cxw-mcpreg__rows b {
    text-align: right;
  }

  /* ATL-007 — anomaly hero / cards single column */
  .cxw-anomgrid {
    grid-template-columns: 1fr !important;
  }

  [data-screen-label="RealtimeFlags"] .surf [style*="grid-template-columns:repeat(2"] {
    grid-template-columns: 1fr !important;
  }

  /* ATL-008 — pairs-with chips wrap cleanly (no orphan single chip row) */
  .pairs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    row-gap: 8px;
  }

  .pairs__lbl {
    flex: 0 0 100%;
    width: 100%;
    margin-bottom: 2px;
  }

  .pairs .chip {
    flex: 1 1 auto;
    max-width: 100%;
    justify-content: flex-start;
    white-space: normal;
    line-height: 1.3;
    text-align: left;
  }

  /* ATL-005 residual — extra bottom room under hero mocks so sticky
     does not fully cover the first product proof row. Full sticky fix is L2. */
  .cap .teaser > .surf.shotcard,
  .cap .teaser > .surf {
    margin-bottom: 12px;
  }

  .cap__pad {
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }

  body {
    /* leave space so last mock peeks above sticky mcta on short viewports */
    padding-bottom: 0;
  }

  .wfvpad {
    padding: 14px 12px 16px;
  }
}

@media (max-width: 420px) {
  .cxw-cdrivers__v {
    font-size: 15.5px;
  }

  .cxw-cdrivers__k {
    font-size: 10.5px;
  }

  .actrow__meta {
    gap: 10px;
  }
}
/* === AUDIT-LANE-L5-ATLAS:end === */

/* === RESIDUAL-F4-F6:start === */
/* F5 Products famsec horizontal overflow — stack family columns, kill glow bleed.
   F6 Atlas opview tabs — fit or touch-scroll without page-level overflow.
   (F4 orbit scale lives in deck-visuals.css) */

/* F5 — family sections: single column, no horizontal bleed */
@media (max-width: 900px) {
  .famsec,
  .famsec.atlas,
  .famsec.foundry {
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .famsec__bg,
  .famsec__inner,
  .famsec__head,
  .famsec__aside,
  .famsec__lede,
  .pgrid,
  .pcard {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .famsec__inner {
    width: 100%;
  }

  .famsec__head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 20px;
  }

  .famsec__aside {
    align-items: flex-start;
    width: 100%;
  }

  /* Decorative glow: keep inside section (was right/left: -200px → scrollW ≫ client) */
  .famsec__glow,
  .famsec.atlas .famsec__glow,
  .famsec.foundry .famsec__glow {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: min(560px, 70vw);
  }
}

@media (max-width: 760px) {
  /* Keep .wrap side gutters — do NOT zero L/R (that made famsec full-bleed). */
  .famsec__inner,
  .wrap.famsec__inner {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
    box-sizing: border-box;
  }

  .famsec__head {
    margin-bottom: 28px;
    gap: 18px;
  }

  .pgrid {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: 14px;
  }
}

/* F6 — opview tabs on narrow viewports: shrink to fit 4 labels, touch scroll fallback */
@media (max-width: 760px) {
  .opview {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .opview__tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    padding: 8px 4px 0;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .opview__tabs::-webkit-scrollbar {
    display: none;
  }

  .opview__tabs .optab,
  .optab {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 6px;
    font-size: 10px;
    letter-spacing: 0.04em;
    text-align: center;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .opview__tabs .optab,
  .optab {
    padding: 9px 4px;
    font-size: 9.5px;
    letter-spacing: 0.03em;
  }
}
/* === RESIDUAL-F4-F6:end === */

/* === RESIDUAL-MOBILE-SECTION-PAD:start === */
/* Sitewide mobile section gutters — many sections lost side/bottom pad after
   overflow and density fixes (famsec L/R zeroed, contact min-height kill, etc.). */
@media (max-width: 760px) {
  /* Base content gutter for all product/landing wraps */
  .wrap {
    padding-left: 22px !important;
    padding-right: 22px !important;
    box-sizing: border-box;
  }

  /* Family sections (Products Atlas/Foundry) */
  .famsec__inner {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }

  /* Capability / psec / detail pads */
  .psec__pad,
  .cap__pad {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  /* Product detail hero */
  .phero__inner {
    padding-top: max(48px, env(safe-area-inset-top, 0px));
    padding-bottom: 48px;
  }
  .phero.pdetail .wrap {
    padding-top: 28px !important;
    padding-bottom: 36px !important;
  }

  /* Close CTA — button clears footer (pairs with home.css .close__inner) */
  .sec.close .close__inner {
    padding-left: 22px !important;
    padding-right: 22px !important;
    padding-bottom: 96px !important;
    box-sizing: border-box;
  }

  /* Generic section content shells used on hubs */
  .psec .wrap,
  .cap .wrap {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }
}
/* === RESIDUAL-MOBILE-SECTION-PAD:end === */

/* === MODEL-FRONTIER-CHART:start ===
   Model Tuning "Your model vs frontier" scatter — clear axis gutters,
   non-overlapping point labels, caption hierarchy. */
.fchart-card {
  height: auto;
}

.fchart {
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fchart__frame {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.fchart__ycaption {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 32px; /* sit against plot height, not x-axis labels */
  color: var(--tertiary);
  user-select: none;
}

.fchart__ycaption-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.fchart__plotcol {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fchart__plot {
  position: relative;
  height: 248px;
  margin-left: 28px; /* gutter for y-tick numbers */
  border-left: 2px solid var(--text-strong);
  border-bottom: 2px solid var(--text-strong);
  box-sizing: border-box;
  overflow: visible;
}

.fchart__zone {
  position: absolute;
  left: 0;
  top: 0;
  width: 42%;
  height: 42%;
  background: linear-gradient(315deg, rgba(31, 138, 91, 0.14), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.fchart__zone-label {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
  max-width: min(11rem, 38%);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--affirm);
  pointer-events: none;
}

.fchart__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.fchart__h,
.fchart__v {
  position: absolute;
  display: block;
  background: transparent;
}

.fchart__h {
  left: 0;
  right: 0;
  border-top: 1px dashed var(--card-edge);
}

.fchart__h:first-child {
  border-top: none; /* top edge is open */
}

.fchart__v {
  top: 0;
  bottom: 0;
  border-left: 1px dashed var(--card-edge);
}

.fchart__yticks {
  position: absolute;
  left: -28px;
  top: 0;
  bottom: 0;
  width: 24px;
  z-index: 1;
  pointer-events: none;
}

.fchart__ytick {
  position: absolute;
  right: 6px;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--tertiary);
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.fchart__ytick:first-child {
  transform: translateY(0);
}

.fchart__ytick:last-child {
  transform: translateY(-100%);
}

.fchart__xticks {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 8px 0 0 28px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--tertiary);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.fchart__xtick-end {
  text-align: right;
}

.fchart__xcaption {
  margin: 4px 0 0 28px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tertiary);
  line-height: 1.2;
}

/* Points */
.fchart__pt {
  position: absolute;
  z-index: 2;
  width: 0;
  height: 0;
}

.fchart__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--inset-bg);
  border: 2px solid var(--tertiary);
  transform: translate(-50%, -50%);
  box-sizing: border-box;
}

.fchart__dot--you {
  width: 16px;
  height: 16px;
  background: var(--accent);
  border: 2.5px solid var(--text-strong);
  box-shadow: 0 0 0 5px rgba(45, 106, 231, 0.16);
  z-index: 4;
}

.fchart__pt--you {
  z-index: 5;
}

.fchart__lbl {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--secondary);
  white-space: nowrap;
  line-height: 1.2;
  letter-spacing: 0;
  pointer-events: none;
}

/* Claude: sit above-right, clear of GPT-4o */
.fchart__lbl--right-up {
  left: 10px;
  top: -22px;
}

/* GPT-4o: left of the point so it doesn't leave the plot */
.fchart__lbl--left {
  right: 10px;
  top: 10px;
  text-align: right;
}

/* Gemini: below-center */
.fchart__lbl--below {
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
}

.fchart__callout {
  position: absolute;
  /* Sit to the right of the blue point so it clears the zone caption */
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 7px 10px;
  background: var(--text-strong);
  color: #fff;
  border-radius: 7px;
  box-shadow: 0 6px 16px rgba(11, 16, 24, 0.16);
  white-space: nowrap;
  z-index: 6;
  pointer-events: none;
}

.fchart__callout::after {
  content: "";
  position: absolute;
  left: -4px;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--text-strong);
  transform: translateY(-50%) rotate(45deg);
  border-radius: 1px;
}

.fchart__callout-name {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.fchart__callout-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  opacity: 0.78;
  line-height: 1.2;
}

.fchart__caption {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--card-edge);
}

.fchart__stat {
  font-family: var(--font-secondary);
  font-size: clamp(28px, 4.2vw, 34px);
  font-weight: 600;
  color: var(--affirm);
  letter-spacing: -0.02em;
  line-height: 1;
  flex: none;
}

.fchart__stat-text {
  font-family: var(--font-primary);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--secondary);
  line-height: 1.35;
  max-width: 22ch;
}

/* TheModel section: stack chart + copy on tablet/mobile */
@media (max-width: 900px) {
  .psec[data-screen-label="TheModel"] .reveal.in {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

@media (max-width: 520px) {
  .fchart {
    padding: 16px 14px 14px;
    gap: 14px;
  }

  .fchart__frame {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 6px;
  }

  .fchart__plot {
    height: 220px;
    margin-left: 24px;
  }

  .fchart__yticks {
    left: -24px;
    width: 22px;
  }

  .fchart__ytick {
    font-size: 9px;
    right: 4px;
  }

  .fchart__xticks,
  .fchart__xcaption {
    margin-left: 24px;
    font-size: 9px;
  }

  .fchart__zone-label {
    font-size: 8px;
    max-width: calc(48% - 12px);
  }

  .fchart__lbl {
    font-size: 9.5px;
  }

  /* Keep competitor labels from colliding on narrow screens */
  .fchart__lbl--right-up {
    left: 9px;
    top: -20px;
  }

  .fchart__lbl--left {
    right: 9px;
    top: 12px;
  }

  .fchart__callout {
    left: 12px;
    padding: 6px 8px;
  }

  /* Narrow: pull zone caption tighter so callout never covers it */
  .fchart__zone-label {
    max-width: 7.5rem;
  }

  .fchart__callout-name {
    font-size: 9.5px;
  }

  .fchart__callout-meta {
    font-size: 9px;
  }

  .fchart__caption {
    gap: 10px;
    padding-top: 12px;
  }

  .fchart__stat {
    font-size: 26px;
  }

  .fchart__stat-text {
    font-size: 12.5px;
  }
}
/* === MODEL-FRONTIER-CHART:end === */

/* === CORTEX-SECURITY-POSITIONING:start === */
.security-lifecycle__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.security-lifecycle__item {
  position: relative;
  min-height: 230px;
  padding: 22px 18px;
  border: 1px solid var(--foreground);
  border-radius: 4px;
  background: var(--card-grad);
}

.security-lifecycle__num {
  display: block;
  margin-top: 34px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--tertiary);
}

.security-lifecycle__item h3 {
  margin: 10px 0 8px;
  font-family: var(--font-secondary);
  font-size: 19px;
  font-weight: 500;
  color: var(--text-strong);
}

.security-lifecycle__item p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--secondary);
}

.security-state {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.security-state.is-available {
  color: var(--foundry);
  background: var(--foundry-dim);
}

.security-state.is-gated {
  color: var(--caution);
  background: color-mix(in srgb, var(--caution) 10%, transparent);
}

.security-state.is-roadmap {
  color: var(--atlas);
  background: var(--atlas-dim);
}

.security-control-chain {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--foreground);
  border-radius: 4px;
  background: var(--card-grad);
  overflow: hidden;
}

.security-control-chain__step {
  min-height: 176px;
  padding: 22px 18px;
  border-left: 1px solid var(--foreground);
}

.security-control-chain__step:first-child {
  border-left: 0;
}

.security-control-chain__step span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--atlas);
}

.security-control-chain__step h3 {
  margin: 18px 0 8px;
  font-family: var(--font-secondary);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-strong);
}

.security-control-chain__step p {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--secondary);
}

@media (max-width: 980px) {
  .security-lifecycle__grid,
  .security-control-chain {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .security-lifecycle__item:last-child,
  .security-control-chain__step:last-child {
    grid-column: 1 / -1;
  }

  .security-control-chain__step:nth-child(odd) {
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .security-lifecycle__grid,
  .security-control-chain {
    grid-template-columns: 1fr;
  }

  .security-lifecycle__item:last-child,
  .security-control-chain__step:last-child {
    grid-column: auto;
  }

  .security-lifecycle__item {
    min-height: 0;
  }

  .security-control-chain__step,
  .security-control-chain__step:nth-child(odd) {
    min-height: 0;
    border-left: 0;
    border-top: 1px solid var(--foreground);
  }

  .security-control-chain__step:first-child {
    border-top: 0;
  }
}
/* === CORTEX-SECURITY-POSITIONING:end === */
