/* ════════════════════════════════════════════════════════════════
   x101 illustrations, ported from the v1 stylesheet and re-toned
   for the Robok dark theme. Markup is unchanged from the original
   mocks; only the tokens below are re-pointed at the dark palette.
   Wrap any mock in .x-illus to pick these up.
   ════════════════════════════════════════════════════════════════ */

.x-illus {
  /* Surfaces */
  --bg-raised: #16171f;
  --bg-sunken: rgba(255, 255, 255, 0.05);
  --card: #16171f;

  /* Ink */
  --text-1: #ffffff;
  --text-2: #b5b5bc;
  --text-3: rgba(255, 255, 255, 0.55);

  /* Brand — theme purple/blue */
  --brand: #7476ff;
  --brand-2: #89c7fe;
  --brand-strong: #a2a4ff;
  --brand-grad: linear-gradient(118deg, #7476ff 12%, #89c7fe 88%);
  --brand-tint: rgba(116, 118, 255, 0.14);
  --brand-tint-2: rgba(116, 118, 255, 0.26);
  --brand-line: rgba(116, 118, 255, 0.42);

  /* Support */
  --ok: #45d0bd;
  --ok-tint: rgba(69, 208, 189, 0.14);

  /* Lines & shadow */
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --card-line: rgba(255, 255, 255, 0.12);
  --shadow-1: 0 1px 2px rgba(55, 57, 177, 0.4), 0 8px 24px -12px rgba(116, 118, 255, 0.6);
  --shadow-2: 0 2px 4px rgba(116, 118, 255, 0.4), 0 24px 48px -16px rgba(116, 118, 255, 0.4);
  --shadow-brand: 0 8px 24px -8px rgba(116, 118, 255, 0.45);

  /* Type */
  --font-display: 'Sora', sans-serif;
  --font-body: 'Sora', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Geometry */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;

  color: var(--text-2);
}

.x-illus .diagram {
  display: block;
}

.x-illus .d-shadow {
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.55));
}

.x-illus p {
  color: var(--text-2);
}

.x-illus .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes vcWave {

  0%,
  100% {
    transform: scaleY(0.55);
  }

  50% {
    transform: scaleY(1);
  }
}

@keyframes hubPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

@keyframes dFlow {
  to {
    stroke-dashoffset: -240;
  }
}

/* ── A · Micro-chip ─────────────────────────────────────────── */
.x-illus .chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-tint);
  border: 1px solid var(--brand-line);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.x-illus .chip-ok {
  color: var(--ok);
  background: var(--ok-tint);
  border-color: color-mix(in srgb, var(--ok) 40%, transparent);
}

.x-illus .chip-mute {
  color: var(--text-3);
  background: var(--bg-sunken);
  border-color: var(--line);
}

/* ── B · Diagram vocabulary (SVG) ───────────────────────────── */
.x-illus .diagram {
  width: 100%;
  height: auto;
}

.x-illus .diagram .d-node {
  fill: var(--card);
  stroke: var(--card-line);
  stroke-width: 1.3;
}

.x-illus .diagram .d-node-soft {
  fill: var(--bg-sunken);
  stroke: var(--line);
  stroke-width: 1.2;
}

.x-illus .diagram .d-node-hot {
  fill: var(--brand-tint);
  stroke: var(--brand-line);
  stroke-width: 1.3;
}

.x-illus .diagram .d-link {
  stroke: var(--line-strong);
  stroke-width: 1.5;
  fill: none;
}

.x-illus .diagram .d-link-hot {
  stroke: var(--brand);
  stroke-width: 1.6;
  fill: none;
  opacity: 0.55;
}

.x-illus .diagram .d-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 650;
  fill: var(--text-1);
}

.x-illus .diagram .d-label {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 550;
  fill: var(--text-2);
}

.x-illus .diagram .d-micro {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 550;
  fill: var(--text-3);
  letter-spacing: 0.04em;
}

.x-illus .diagram .d-micro-b {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  fill: var(--brand);
  letter-spacing: 0.04em;
}

.x-illus .diagram .d-icon {
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.x-illus .diagram .d-ok {
  fill: none;
  stroke: var(--ok);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.x-illus .diagram .d-ok-text {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  fill: var(--ok);
}

.x-illus .diagram .d-brand-fill {
  fill: var(--brand);
}

/* ── D · Device frame ───────────────────────────────────────── */
.x-illus .frame {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.x-illus .frame-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.x-illus .frame-dots {
  display: flex;
  gap: 6px;
}

.x-illus .frame-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.x-illus .frame-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
}

.x-illus .frame-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ok);
  background: var(--ok-tint);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ── E · Knowledge mock ─────────────────────────────────────── */
.x-illus .kn-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.x-illus .kn-sources {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.x-illus .kn-source {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-md);
  padding: 12px 10px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-2);
}

.x-illus .kn-source em {
  display: block;
  font-style: normal;
  font-size: 9px;
  color: var(--text-3);
  font-weight: 500;
  margin-top: 3px;
}

.x-illus .kn-route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.x-illus .kn-route::before,
.x-illus .kn-route::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-line));
}

.x-illus .kn-route::after {
  background: linear-gradient(90deg, var(--brand-line), transparent);
}

.x-illus .kn-answer {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-1);
}

.x-illus .kn-answer-q {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-1);
  margin-bottom: 14px;
}

.x-illus .kn-clause {
  background: var(--brand-tint);
  border-left: 3px solid var(--brand);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-1);
  margin-bottom: 12px;
}

.x-illus .kn-cite {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.x-illus .kn-cite-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-right: 4px;
}

/* ── F · Analytics mock ─────────────────────────────────────── */
.x-illus .an-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.x-illus .an-q {
  align-self: flex-end;
  max-width: 88%;
  background: var(--brand-tint);
  border: 1px solid var(--brand-line);
  border-radius: 14px 14px 4px 14px;
  padding: 11px 16px;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-1);
}

.x-illus .an-card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-1);
}

.x-illus .an-chart {
  display: flex;
  align-items: stretch;
  gap: 10px;
  height: 110px;
  padding: 4px 2px 0;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line-strong);
}

.x-illus .an-bar {
  flex: 1;
  position: relative;
  min-width: 24px;
}

.x-illus .an-bar i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 60%, #ffffff), var(--brand));
}

.x-illus .an-bar span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -22px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-3);
}

.x-illus .an-story {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-2);
  border-top: 1px dashed var(--line-strong);
  padding-top: 12px;
}

.x-illus .an-story strong {
  color: var(--text-1);
}

/* ── G · Research mock ──────────────────────────────────────── */
.x-illus .rs-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.x-illus .rs-steps {
  display: flex;
  gap: 8px;
}

.x-illus .rs-step {
  flex: 1;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-md);
  padding: 12px 6px 10px;
}

.x-illus .rs-steps::before {
  z-index: 0;
}

.x-illus .rs-step.done {
  border-color: var(--brand-line);
  background: #202130;
}

.x-illus .rs-step-num {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--brand);
  display: block;
  margin-bottom: 3px;
}

.x-illus .rs-step-name {
  font-size: 11px;
  font-weight: 650;
  color: var(--text-1);
}

.x-illus .rs-report {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-1);
}

.x-illus .rs-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.x-illus .rs-report-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
}

.x-illus .rs-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.x-illus .rs-line {
  height: 8px;
  border-radius: 4px;
  background: var(--bg-sunken);
}

.x-illus .rs-line.w92 {
  width: 92%;
}

.rs-line.w80 {
  width: 80%;
}

.rs-line.w66 {
  width: 66%;
}

.x-illus .rs-line.hot {
  background: var(--brand-tint-2);
}

.x-illus .rs-foot {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
}

/* ── H · Voice call mock ────────────────────────────────────── */
.x-illus .vc-card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-xl);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
  margin: 0 auto;
}

.x-illus .vc-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.x-illus .vc-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-grad);
  display: grid;
  place-items: center;
  color: #fff;
}

.x-illus .vc-avatar svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.x-illus .vc-who {
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--text-1);
}

.x-illus .vc-status {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ok);
  display: flex;
  align-items: center;
  gap: 6px;
}

.x-illus .vc-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  animation: hubPulse 1.8s ease-in-out infinite;
}

.x-illus .vc-timer {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}

.x-illus .vc-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 56px;
}

.x-illus .vc-wave i {
  width: 4px;
  border-radius: 2px;
  background: var(--brand);
  animation: vcWave 1.1s ease-in-out infinite;
}

.x-illus .vc-wave i:nth-child(3n) {
  height: 62%;
  animation-delay: 0.15s;
}

.x-illus .vc-wave i:nth-child(3n+1) {
  height: 38%;
  animation-delay: 0.35s;
}

.x-illus .vc-wave i:nth-child(3n+2) {
  height: 84%;
  animation-delay: 0s;
}

@keyframes vcWave {

  0%,
  100% {
    transform: scaleY(0.45);
    opacity: 0.55;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.x-illus .vc-line {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-2);
  padding: 12px 16px;
  border-radius: var(--r-md);
}

.x-illus .vc-line.caller {
  background: var(--bg-sunken);
  border: 1px solid var(--line);
}

.x-illus .vc-line.agent {
  background: var(--brand-tint);
  border: 1px solid var(--brand-line);
  color: var(--text-1);
}

.x-illus .vc-line b {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 4px;
}

.x-illus .vc-line.agent b {
  color: var(--brand);
}

.x-illus .vc-trace {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ── L · Diagram enrichment: depth, flow motion, richer mocks ── */
@keyframes dFlow {
  to {
    stroke-dashoffset: -134;
  }
}

.x-illus .diagram .d-flow {
  stroke: var(--brand);
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 3 40;
  animation: dFlow 2.8s linear infinite;
  opacity: 0.85;
}

.x-illus .d-shadow {
  filter: drop-shadow(0 5px 14px rgba(11, 21, 38, 0.10));
}

.x-illus .d-shadow-brand {
  filter: drop-shadow(0 8px 20px rgba(20, 103, 230, 0.35));
}

/* Action conversation mock */
.x-illus .ac-body {
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.x-illus .ac-msg {
  max-width: 92%;
}

.x-illus .ac-ai {
  align-self: flex-start;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  padding: 14px 16px;
}

.x-illus .ac-ai-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.x-illus .ac-ai-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.x-illus .ac-ai-name {
  font-size: 12px;
  font-weight: 650;
  color: var(--text-1);
}

.x-illus .ac-ai p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-1);
}

.x-illus .ac-ai p strong {
  color: var(--brand-strong);
}

.x-illus .ac-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.x-illus .ac-user {
  align-self: flex-end;
  background: var(--brand-tint);
  border: 1px solid var(--brand-line);
  border-radius: 14px 14px 4px 14px;
  padding: 11px 16px;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-1);
}

.x-illus .ac-done {
  align-self: flex-start;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--ok-tint);
  border: 1px solid color-mix(in srgb, var(--ok) 38%, transparent);
  border-radius: var(--r-md);
  padding: 14px 16px;
}

.x-illus .ac-done-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--ok);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.x-illus .ac-done-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.x-illus .ac-done-title {
  font-size: 0.93rem;
  font-weight: 650;
  color: var(--text-1);
}

.x-illus .ac-done-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  margin-top: 2px;
}

.x-illus .ac-trace {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
}

/* Analytics card head + value labels */
.x-illus .an-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.x-illus .an-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-1);
}

.x-illus .an-bar b {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 4px);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}

.x-illus .an-bar i {
  box-shadow: 0 4px 10px -4px rgba(20, 103, 230, 0.45);
}

/* Explainability card accent */
.x-illus .xp-card {
  position: relative;
  overflow: hidden;
}

.x-illus .xp-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-grad);
}

.x-illus .xp-trail {
  transition: color var(--ease);
}

.x-illus .xp-trail:hover {
  color: var(--brand-strong);
}

/* ── O · Analytics mock v2: chart inside the conversation ───── */
.x-illus .an-answer {
  max-width: 100%;
  width: 100%;
}

.x-illus .an-answer .an-head {
  margin: 4px 0 14px;
}

.x-illus .an-chart {
  background-image: linear-gradient(to top, transparent calc(100% - 1px), rgba(207, 218, 233, 0.55) 100%);
  background-size: 100% 25%;
}

.x-illus .an-bar i {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 34%, #ffffff), color-mix(in srgb, var(--brand) 62%, #ffffff));
  box-shadow: none;
}

.x-illus .an-bar.lead i {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 62%, #ffffff), var(--brand));
  box-shadow: 0 4px 12px -4px rgba(20, 103, 230, 0.5);
}

.x-illus .an-bar.lead b {
  color: var(--brand-strong);
}

.x-illus .an-cites {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

/* ── P · Deep Research mock refinements ─────────────────────── */
.x-illus .rs-steps {
  position: relative;
}

.x-illus .rs-steps::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 50%;
  height: 1.5px;
  background: var(--brand-line);
  z-index: 0;
}

.x-illus .rs-step {
  position: relative;
  z-index: 1;
}

.x-illus .rs-step.done .rs-step-name::before {
  content: "✓ ";
  color: var(--ok);
  font-weight: 700;
}

.x-illus .rs-step.rs-final {
  background: var(--brand-grad);
  border-color: transparent;
  box-shadow: var(--shadow-brand);
}

.x-illus .rs-step.rs-final .rs-step-num {
  color: rgba(255, 255, 255, 0.85);
}

.x-illus .rs-step.rs-final .rs-step-name {
  color: #fff;
}

.x-illus .rs-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.x-illus .rs-kicker-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.x-illus .rs-kicker-text {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--brand-strong);
  text-transform: uppercase;
}

.x-illus .rs-exec-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-3);
  text-transform: uppercase;
  margin: 12px 0 8px;
}

.x-illus .rs-exec-text {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 10px;
}

.x-illus .rs-exec-text sup {
  color: var(--brand-strong);
  font-weight: 700;
}

.x-illus .rs-ready {
  font-size: 11px;
  padding: 5px 12px;
}

/* ── Q · Deep Research report additions: scoring, footnotes, export ── */
.x-illus .rs-score-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-3);
  text-transform: uppercase;
  margin: 14px 0 8px;
}

.x-illus .rs-score {
  display: flex;
  align-items: stretch;
  gap: 10px;
  height: 56px;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--line-strong);
}

.x-illus .rs-score-bar {
  flex: 1;
  position: relative;
  height: 100%;
}

.x-illus .rs-score-bar i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 32%, #fff), color-mix(in srgb, var(--brand) 58%, #fff));
}

.x-illus .rs-score-bar.lead i {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 60%, #fff), var(--brand));
  box-shadow: 0 3px 10px -4px rgba(20, 103, 230, 0.5);
}

.x-illus .rs-score-bar span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -18px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--text-3);
  white-space: nowrap;
}

.x-illus .rs-score-wrap {
  margin-bottom: 22px;
}

.x-illus .rs-footnotes {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--text-3);
  line-height: 1.8;
  margin-top: 12px;
}

.x-illus .rs-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.x-illus .rs-action {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 6px 12px;
  background: var(--bg-raised);
}

.x-illus .rs-action.primary {
  color: var(--brand-strong);
  border-color: var(--brand-line);
  background: var(--brand-tint);
}

/* ── S · Voice feature rows (right column) ──────────────────── */
.x-illus .vf-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.x-illus .vf-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.x-illus .vf-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--brand-tint);
  display: grid;
  place-items: center;
  background-color: #fff;
}

.x-illus .vf-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--brand);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.x-illus .vf-label {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--text-1);
  line-height: 1.35;
}

.x-illus .vf-sub {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.5;
  margin-top: 1px;
}

/* ---- Illustrations dropped into the theme's about-style-three slot ---- */
.about-style-three-thumb.x-illus {
  padding: 0;
  margin: 0;
}

@media (min-width: 992px) {
  .about-style-three-thumb.x-illus {
    padding-left: 6%;
  }

  .order-lg-1 .about-style-three-thumb.x-illus {
    padding-left: 0;
    padding-right: 6%;
  }
}

.x-illus .frame,
.x-illus .kn-answer,
.x-illus .rs-report,
.x-illus .vc-card {
  box-shadow: var(--shadow-2);
}

/* ---- Governance diagram in the theme's choose-us thumb slot ---- */
.choose-us-style-one-area .row {
  align-items: center;
}

.choose-us-thumb.x-illus {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
}

.choose-us-thumb.x-illus .diagram {
  width: 100%;
  max-width: 620px;
}

@media (max-width: 991px) {
  .choose-us-thumb.x-illus {
    margin-bottom: 50px;
  }
}


/* ── I · Explainability mock ────────────────────────────────── */
.x-illus .xp-card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-xl);
  padding: clamp(22px, 3vw, 28px);
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.x-illus .xp-answer {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-1);
}

.x-illus .xp-answer strong {
  color: var(--brand-strong);
}

.x-illus .xp-evidence {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-sunken);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.x-illus .xp-evidence-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.x-illus .xp-source {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-2);
}

.x-illus .xp-source::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand);
  opacity: 0.65;
  flex-shrink: 0;
}

.x-illus .xp-verify {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ok);
}

.x-illus .xp-verify svg {
  width: 16px;
  height: 16px;
  stroke: var(--ok);
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.x-illus .xp-trail {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--brand);
}

/* ── K · Agent Studio mock ──────────────────────────────────── */
.x-illus .as-body {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
}

.x-illus .as-config {
  padding: clamp(18px, 2.6vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-right: 1px solid var(--line);
}

.x-illus .as-field-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin-bottom: 6px;
  display: block;
}

.x-illus .as-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}

.x-illus .as-select span:last-child {
  color: var(--text-3);
  font-size: 11px;
}

.x-illus .as-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.x-illus .as-toggles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.x-illus .as-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--text-2);
}

.x-illus .as-toggle i {
  width: 30px;
  height: 17px;
  border-radius: 999px;
  background: var(--brand);
  position: relative;
  flex-shrink: 0;
}

.x-illus .as-toggle i::after {
  content: "";
  position: absolute;
  top: 2.5px;
  right: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}

.x-illus .as-deploy {
  margin-top: auto;
  background: var(--brand-grad);
  color: #fff;
  font-size: 13.5px;
  font-weight: 650;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  text-align: center;
  box-shadow: var(--shadow-brand);
}

.x-illus .as-preview {
  padding: clamp(18px, 2.6vw, 26px);
  background: var(--bg-sunken);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.x-illus .as-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ok);
}

.x-illus .as-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  animation: hubPulse 1.8s ease-in-out infinite;
}

.x-illus .as-bubble {
  font-size: 0.86rem;
  line-height: 1.55;
  padding: 11px 15px;
  border-radius: 13px;
  max-width: 94%;
}

.x-illus .as-bubble.q {
  background: var(--card);
  border: 1px solid var(--card-line);
  color: var(--text-2);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.x-illus .as-bubble.a {
  background: var(--brand-tint);
  border: 1px solid var(--brand-line);
  color: var(--text-1);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

@media (max-width: 760px) {
  .x-illus .as-body {
    grid-template-columns: 1fr;
  }

  .x-illus .as-config {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

/* ── T · Explainability chain (request lifecycle trace) ─────── */
.x-illus .xc-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.x-illus .xc-kicker-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--text-3);
  text-transform: uppercase;
}

.x-illus .xc-chain {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.x-illus .xc-chain::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 12px;
  width: 1.5px;
  background: var(--brand-line);
}

.x-illus .xc-row {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 7px 0 7px 26px;
}

.x-illus .xc-row::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--brand);
}

.x-illus .xc-row.xc-final::before {
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint-2);
}

.x-illus .xc-stage {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text-1);
  white-space: nowrap;
}

.x-illus .xc-note {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  margin-left: auto;
  text-align: right;
}

.x-illus .xc-note.ok {
  color: var(--ok);
  font-weight: 600;
}

/* ── U · Explainability chain v2: why-notes, anchored question ── */
.x-illus .xc-q {
  background: var(--brand-tint);
  border: 1px solid var(--brand-line);
  border-radius: 12px 12px 12px 4px;
  padding: 9px 14px;
  font-size: 12.5px;
  font-style: italic;
  color: var(--text-1);
  margin-bottom: 16px;
  display: inline-block;
}

.x-illus .xc-note {
  font-family: var(--font-body);
  font-size: 12px;
  font-style: italic;
  color: var(--text-2);
}

.x-illus .xc-note .xc-why {
  font-style: normal;
  font-weight: 700;
  color: var(--brand-strong);
}

.x-illus .xc-note.ok {
  font-family: var(--font-body);
  color: var(--ok);
  font-style: normal;
  font-weight: 600;
}

.x-illus .xc-row.xc-hot {
  background: var(--brand-tint);
  border-radius: 10px;
  margin: 2px -12px 2px 0;
  padding-right: 12px;
}

/* ── V · Explainability: escalation story card ──────────────── */
.x-illus .xe-reply {
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.x-illus .xe-reply p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-1);
  margin-top: 8px;
}

.x-illus .xe-chip {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: #B45309;
  background: rgba(180, 83, 9, 0.12);
  border: 1px solid rgba(180, 83, 9, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── Platform-page mocks (architecture, trace, topology, tables) ── */
/* ── AB · Three-layer architecture stack ────────────────────── */
.x-illus .arch-stack {
  max-width: 1000px;
  margin: 0 auto;
}

.x-illus .arch-layer {
  position: relative;
  /* floor set by the longest rail label ("Connected systems") plus the
     number badge above it — below this the rotated text clips */
  min-height: 176px;
  padding-left: 68px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.x-illus .arch-body {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-xl);
  padding: 16px 18px;
  box-shadow: var(--shadow-1);
  min-height: 176px;
  /* The box has a floor set by the rotated rail label. Rather than centring
     the cards and leaving dead space, the card grid grows to take whatever
     height is left over (see .arch-cards below). */
  display: flex;
  flex-direction: column;
}

.x-illus .arch-head {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 6px 0;
  overflow: hidden;
}
/* Rotated to read bottom-to-top. Plain block flow, not flex: inside a vertical
   writing mode a flex row runs down the page, which shredded the description
   into a dozen short columns. As blocks, the name and the description sit as
   two adjacent vertical lines. */
.x-illus .arch-head > div {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  max-height: 100%;
  min-height: 0;
}
.x-illus .arch-head > div {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  min-height: 0;
  overflow: hidden;
}
.x-illus .arch-head > div {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 0;
}

.x-illus .arch-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-tint);
  border: 1px solid var(--brand-line);
}

.x-illus .arch-name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.x-illus .arch-sub {
  font-size: 10px;
  line-height: 1.3;
  color: var(--text-3);
  margin: 0;
  white-space: normal;
}

.x-illus .arch-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  /* take the height the layer's floor leaves over, and let the cards fill it */
  flex: 1 1 auto;
  align-content: stretch;
  align-items: stretch;
  /* display: flex; */
}

.x-illus .arch-cards--sys {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 860px) {
  /* `.arch-cards` alone loses to `.x-illus .arch-cards` on specificity, so the
     six-column rule was still winning here and the cards overflowed. */
  .x-illus .arch-cards,
  .x-illus .arch-cards--sys {
    grid-template-columns: repeat(3, 1fr);
  }
  /* the 120px floor also forces overflow once the columns get narrow */
  .x-illus .arch-card { min-width: 0; }
}

@media (max-width: 520px) {
  .x-illus .arch-cards,
  .x-illus .arch-cards--sys {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {

  .arch-cards,
  .x-illus .arch-cards--sys {
    grid-template-columns: repeat(2, 1fr);
  }
}

.x-illus .arch-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* the cards now stretch to fill the layer, so hold the icon and label in
     the middle rather than letting them sit at the top */
  justify-content: center;
  gap: 9px;
  text-align: left;
  padding: 9px 11px;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.25;
  min-width: 120px;
}

.x-illus .arch-card svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Layer 2 — the reasoning core, rendered as the brand band */
.x-illus .arch-layer--core > .arch-body {
  background: linear-gradient(160deg, var(--bg-deep) 20%, var(--bg-deep-2) 100%);
  border-color: transparent;
  color: var(--text-on-deep);
  box-shadow: var(--shadow-2);
}

.x-illus .arch-layer--core .arch-name {
  color: var(--text-on-deep);
}

.x-illus .arch-layer--core .arch-sub {
  color: var(--text-on-deep-2);
}

.x-illus .arch-layer--core .arch-num {
  color: #9EC2FF;
  background: rgba(158, 194, 255, 0.14);
  border-color: rgba(158, 194, 255, 0.32);
}

.x-illus .arch-core-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 940px) {
  .x-illus .arch-core-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 620px) {
  .x-illus .arch-core-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.x-illus .arch-core-card {
  background: rgba(237, 242, 251, 0.07);
  border: 1px solid rgba(237, 242, 251, 0.16);
  border-radius: var(--r-lg);
  padding: 12px 14px;
}

.x-illus .arch-core-card b {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-on-deep);
  margin-bottom: 8px;
}

.x-illus .arch-core-card span {
  display: block;
  font-size: 12.5px;
  color: var(--text-on-deep-2);
  line-height: 1.5;
}

.x-illus .arch-core-foot {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(237, 242, 251, 0.16);
  font-size: 13px;
  color: var(--text-on-deep-2);
}

.x-illus .arch-core-foot b {
  color: var(--text-on-deep);
  font-weight: 650;
}

/* Flow markers between layers */
.x-illus .arch-flow {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 5vw, 64px);
  padding: 7px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.x-illus .arch-flow span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.x-illus .arch-flow .down {
  color: var(--brand);
}

/* ── AC · Request-flow rail ─────────────────────────────────── */
.x-illus .query-pill {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand-strong);
  background: var(--brand-tint);
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  padding: 10px 20px;
}





.x-illus .stage-card:hover {
  border-color: var(--brand-line);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}






.x-illus .stage-art .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-right: 7px;
  border-radius: 4px;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 9px;
  font-weight: 700;
}

.x-illus .stage-art .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  margin-right: 8px;
}

.x-illus .stage-art .ok {
  color: var(--ok);
  font-weight: 700;
  margin-right: 7px;
}

.x-illus .stage-art .res {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text-1);
}

.x-illus .stage-art .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.x-illus .rail-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 20px;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.x-illus .rail-arrow {
  color: var(--text-3);
  font-size: 12px;
}

.x-illus .rail-foot-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ── AD · Enforcement paths (security model) ────────────────── */
.x-illus .enforce-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: clamp(20px, 2.5vw, 28px);
}

@media (max-width: 900px) {
  .x-illus .enforce-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .x-illus .enforce-grid {
    grid-template-columns: 1fr;
  }
}

.x-illus .enforce-card {
  background: transparent;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  padding: 17px 18px;
}

.x-illus .enforce-card h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.x-illus .enforce-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.x-illus .enforce-steps li {
  position: relative;
  padding-left: 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-2);
  line-height: 1.5;
}

.x-illus .enforce-steps li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 700;
}

.x-illus .enforce-verdict {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ok);
}

.x-illus .enforce-verdict svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--ok);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── AE · Spec table (standards, interfaces, requirements) ──── */
.x-illus .spec {
  margin-top: clamp(20px, 2.5vw, 28px);
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-1);
}

.x-illus .spec-scroll {
  overflow-x: auto;
}

.x-illus .spec table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.x-illus .spec th {
  background: var(--bg-sunken);
  text-align: left;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 700;
  border-bottom: 1px solid var(--line-strong);
}

.spec td,
.x-illus .spec tbody th {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.55;
  color: var(--text-2);
}

.x-illus .spec tbody th {
  width: 26%;
  text-align: left;
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: normal;
  text-transform: none;
  background: transparent;
}

.spec tr:last-child td,
.x-illus .spec tr:last-child th {
  border-bottom: none;
}

.spec a,
.x-illus .ba a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.spec a:hover,
.x-illus .ba a:hover {
  color: var(--brand-strong);
}

.x-illus .spec code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--brand-strong);
  background: var(--brand-tint);
  border: 1px solid var(--brand-line);
  border-radius: 5px;
  padding: 1px 6px;
}

/* ── AF · Model layer stack ─────────────────────────────────── */
.x-illus .model-stack {
  margin: clamp(20px, 2.5vw, 28px) 0 0;
}

.x-illus .model-tier {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  box-shadow: var(--shadow-1);
}

.x-illus .model-tier-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}

.x-illus .model-tier p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
}

.x-illus .model-tier--fixed {
  border-color: var(--brand-line);
  background: var(--brand-tint);
}

.x-illus .model-tier--swap {
  border-style: dashed;
}

.x-illus .model-swap-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.x-illus .model-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* ── AG0 · Fact strip — replaces prose bullets on Platform ──── */
.x-illus .fact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: clamp(20px, 2.5vw, 28px);
}

@media (max-width: 900px) {
  .x-illus .fact-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .x-illus .fact-strip {
    grid-template-columns: 1fr;
  }
}

.x-illus .fact {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-md);
  padding: 15px 17px;
  box-shadow: var(--shadow-1);
}

.x-illus .fact b {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.x-illus .fact span {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ── AG1 · Agent Studio builder mock ────────────────────────── */
.x-illus .bld {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
}

@media (max-width: 860px) {
  .x-illus .bld {
    grid-template-columns: 1fr;
  }
}

.x-illus .bld-config {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-right: 1px solid var(--line);
}

@media (max-width: 860px) {
  .x-illus .bld-config {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

.x-illus .bld-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.x-illus .bld-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.x-illus .bld-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 550;
  color: var(--text-1);
}

.x-illus .bld-input .caret {
  color: var(--text-3);
  font-size: 11px;
}

.x-illus .bld-prompt {
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
}

.x-illus .bld-prompt em {
  font-style: normal;
  color: var(--text-3);
}

.x-illus .bld-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.x-illus .bld-toggles {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.x-illus .bld-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-2);
}

.x-illus .bld-toggle i {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 15px;
  border-radius: 999px;
  background: var(--brand);
}

.x-illus .bld-toggle i::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
}

.x-illus .bld-toggle.locked i {
  background: var(--text-3);
}

.x-illus .bld-toggle.locked i::after {
  right: auto;
  left: 2px;
}

.x-illus .bld-toggle .lock {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

.x-illus .bld-cta {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand-tint);
  color: var(--brand-strong);
  border: 1px solid var(--brand-line);
  font-weight: 650;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 999px;
}

.x-illus .bld-preview {
  padding: 20px;
  background: var(--bg-sunken);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.x-illus .bld-live {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ok);
}

.x-illus .bld-bubble {
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-size: 12.8px;
  line-height: 1.55;
}

.x-illus .bld-bubble.q {
  background: var(--brand-tint);
  border: 1px solid var(--brand-line);
  color: var(--text-1);
}

.x-illus .bld-bubble.a {
  background: var(--card);
  border: 1px solid var(--card-line);
  color: var(--text-2);
}

.x-illus .bld-trace {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ── AG2 · Execution trace panel ────────────────────────────── */
.x-illus .trace-tabs {
  display: flex;
  gap: 2px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  overflow-x: auto;
}

.x-illus .trace-tab {
  padding: 12px 13px;
  white-space: nowrap;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--ease), border-color var(--ease);
}

.x-illus .trace-tab:hover {
  color: var(--text-1);
}

.x-illus .trace-tab.on {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.x-illus .trace-tab:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -3px;
  border-radius: 4px;
}

.x-illus .trace-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.x-illus .trace-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 11px 13px;
}

.x-illus .trace-n {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--brand-tint);
  border: 1px solid var(--brand-line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
}

.x-illus .trace-name {
  display: block;
  font-size: 12.8px;
  font-weight: 600;
  color: var(--text-1);
}

.x-illus .trace-meta {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}

.x-illus .trace-warn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--warn);
  white-space: nowrap;
}

.x-illus .trace-neutral {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  white-space: nowrap;
}

.x-illus .trace-ok {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ok);
  white-space: nowrap;
}

/* ── AG3 · Observability: per-request record mock ───────────── */
.x-illus .obs-body {
  padding: 18px 20px 6px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.x-illus .obs-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.x-illus .obs-row .k {
  color: var(--text-3);
  white-space: nowrap;
}

.x-illus .obs-row .v {
  color: var(--text-1);
  font-weight: 600;
  text-align: right;
}

.x-illus .obs-row .v em {
  font-style: normal;
  color: var(--text-3);
  font-weight: 500;
}

.x-illus .obs-sep {
  margin: 4px 0 2px;
  border-top: 1px dashed var(--line-strong);
}

.obs-total .k,
.x-illus .obs-total .v {
  color: var(--brand-strong);
  font-weight: 700;
}

.x-illus .obs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 20px 18px;
}

/* ── AG · Deployment topology tiles ─────────────────────────── */
.x-illus .topo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: clamp(20px, 2.5vw, 28px);
}

@media (max-width: 900px) {
  .x-illus .topo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .x-illus .topo-grid {
    grid-template-columns: 1fr;
  }
}

.x-illus .topo-tile {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-1);
}

.x-illus .topo-tile svg {
  width: 22px;
  height: 22px;
  margin-bottom: 12px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.x-illus .topo-name {
  font-size: 15px;
  font-weight: 650;
  color: var(--text-1);
}

.x-illus .topo-sub {
  margin-top: 5px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ── O · Analytics mock v2: chart inside the conversation ───── */
.x-illus .an-answer {
  max-width: 100%;
  width: 100%;
}

.x-illus .an-answer .an-head {
  margin: 4px 0 14px;
}

.x-illus .an-chart {
  background-image: linear-gradient(to top, transparent calc(100% - 1px), rgba(207, 218, 233, 0.55) 100%);
  background-size: 100% 25%;
}

.x-illus .an-bar i {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 34%, #ffffff), color-mix(in srgb, var(--brand) 62%, #ffffff));
  box-shadow: none;
}

.x-illus .an-bar.lead i {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 62%, #ffffff), var(--brand));
  box-shadow: 0 4px 12px -4px rgba(20, 103, 230, 0.5);
}

.x-illus .an-bar.lead b {
  color: var(--brand-strong);
}

.x-illus .an-cites {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

/* ── P · Deep Research mock refinements ─────────────────────── */
.x-illus .rs-steps {
  position: relative;
}

.x-illus .rs-steps::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 50%;
  height: 1.5px;
  background: var(--brand-line);
  z-index: 0;
}

.x-illus .rs-step {
  position: relative;
  z-index: 1;
}

.x-illus .rs-step.done .rs-step-name::before {
  content: "✓ ";
  color: var(--ok);
  font-weight: 700;
}

.x-illus .rs-step.rs-final {
  background: var(--brand-grad);
  border-color: transparent;
  box-shadow: var(--shadow-brand);
}

.x-illus .rs-step.rs-final .rs-step-num {
  color: rgba(219, 234, 254, 0.9);
}

.x-illus .rs-step.rs-final .rs-step-name {
  color: #fff;
}

.x-illus .rs-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.x-illus .rs-kicker-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.x-illus .rs-kicker-text {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--brand-strong);
  text-transform: uppercase;
}

.x-illus .rs-exec-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-3);
  text-transform: uppercase;
  margin: 12px 0 8px;
}

.x-illus .rs-exec-text {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 10px;
}

.x-illus .rs-exec-text sup {
  color: var(--brand-strong);
  font-weight: 700;
}

.x-illus .rs-ready {
  font-size: 11px;
  padding: 5px 12px;
}

.x-illus .diagram-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

/* Tablet: panning a wide canvas is still workable. */
@media (max-width: 820px) and (min-width: 701px) {
  .x-illus .diagram-scroll .diagram {
    min-width: 860px;
  }

  .x-illus .diagram-scroll::after {
    content: "Scroll to see the full diagram →";
    display: block;
    padding-top: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--text-3);
  }
}

/* Phone: a canvas 2.4× the viewport at 8px type is not readable at any
   scroll position, so the diagram is replaced by the same flow as steps. */

/* ── W · No lock-in stack: model / inference / infra layers ─── */
.x-illus .lk-stack {
  display: flex;
  flex-direction: column;
}

.x-illus .lk-layer {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-1);
  width: 100%;
  margin: 0 auto;
}

.x-illus .lk-stack .lk-layer:nth-child(1) {
  width: 86%;
}

.x-illus .lk-stack .lk-layer:nth-child(3) {
  width: 93%;
}

.x-illus .lk-layer.lk-base {
  background: var(--bg-sunken);
  box-shadow: var(--shadow-2);
}

.x-illus .lk-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.x-illus .lk-title {
  font-size: 14px;
  font-weight: 650;
  color: var(--text-1);
}

.x-illus .lk-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-strong);
  text-transform: uppercase;
  background: var(--brand-tint);
  border: 1px solid var(--brand-line);
  padding: 3px 9px;
  border-radius: 999px;
}

.x-illus .lk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.x-illus .lk-hot {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: #fff;
  background: var(--brand-grad);
  border: 1px solid transparent;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px -4px rgba(20, 103, 230, 0.55);
}

.x-illus .lk-link {
  position: relative;
  height: 34px;
}

.x-illus .lk-link::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: var(--brand-line);
  z-index: 0;
}

.x-illus .lk-link span {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-strong);
  text-transform: uppercase;
  /* --bg belongs to the other design system and is undefined in the x101 theme,
     which left this chip transparent so the connector line ran through it.
     This block sits in a .bg-gray section inside .bg-dark, which the theme
     paints with --dark; match it so the chip masks the line. */
  background: var(--dark);
  border: 1px solid var(--brand-line);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.x-illus .section-alt .lk-link span {
  background: var(--bg-raised);
}

/* ════════════════════════════════════════════════════════════════
   RESOURCE PAGES — connectors, glossary, FAQ
   Shared filter chrome, then per-page list styling.
   ════════════════════════════════════════════════════════════════ */

/* ── BA · Filter bar (search + category chips) ──────────────── */
.x-illus .filter-bar {
  margin-top: clamp(22px, 3vw, 30px);
}

.x-illus .filter-search {
  position: relative;
  max-width: 520px;
}

.x-illus .filter-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--text-3);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}

.x-illus .filter-input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--text-1);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 13px 18px 13px 44px;
  box-shadow: var(--shadow-1);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.x-illus .filter-input::placeholder {
  color: var(--text-3);
}

.x-illus .filter-input:focus {
  outline: none;
  border-color: var(--brand-line);
  box-shadow: 0 0 0 4px var(--brand-tint);
}

.x-illus .filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.x-illus .filter-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-2);
  background: var(--card);
  border: 1px solid var(--line-strong);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}

.x-illus .filter-chip:hover {
  color: var(--brand);
  border-color: var(--brand-line);
}

.x-illus .filter-chip[aria-pressed="true"] {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.x-illus .filter-chip .n {
  opacity: 0.65;
  margin-left: 6px;
}

.x-illus .filter-count {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}

.x-illus .filter-empty {
  display: none;
  margin-top: 24px;
  padding: 32px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  color: var(--text-2);
}

.x-illus .filter-empty.on {
  display: block;
}

.x-illus .filter-empty b {
  display: block;
  color: var(--text-1);
  margin-bottom: 6px;
  font-size: 1.02rem;
}

/* ── BB · Connector list ────────────────────────────────────── */
.x-illus .cn-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: clamp(20px, 2.5vw, 28px);
}

@media (max-width: 820px) {
  .x-illus .cn-list {
    grid-template-columns: 1fr;
  }
}

.x-illus .cn {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-1);
}

.x-illus .cn-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.x-illus .cn-name {
  font-size: 15px;
  font-weight: 650;
  color: var(--text-1);
}

.x-illus .cn-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-tint);
  border: 1px solid var(--brand-line);
  padding: 3px 9px;
  border-radius: 999px;
}

.x-illus .cn-ops {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}

.x-illus .cn-desc {
  margin-top: 7px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
}

.x-illus .cn-featured {
  border-color: var(--brand-line);
}

.x-illus .cn-featured .cn-name::after {
  content: "Featured";
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ok);
}

/* ── BC · Glossary ──────────────────────────────────────────── */
.x-illus .az-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.az-strip a,
.x-illus .az-strip span {
  min-width: 30px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  color: var(--text-2);
}

.x-illus .az-strip a:hover {
  color: var(--brand);
  border-color: var(--brand-line);
  background: var(--brand-tint);
}

.x-illus .az-strip span {
  color: var(--line-strong);
  border-color: var(--line);
}

.x-illus .gl-group {
  margin-top: clamp(28px, 3.5vw, 40px);
}

.x-illus .gl-letter {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.02em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-line);
}

.x-illus .gl-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}

@media (max-width: 820px) {
  .x-illus .gl-list {
    grid-template-columns: 1fr;
  }
}

.x-illus .gl-term {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-1);
}

.x-illus .gl-term dt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 15.5px;
  font-weight: 650;
  color: var(--text-1);
  margin-bottom: 7px;
}

.x-illus .gl-term dd {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── BD · FAQ accordions ────────────────────────────────────── */
.x-illus .faq-group {
  margin-top: clamp(28px, 3.5vw, 40px);
}

.x-illus .faq-group-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

.x-illus .faq-group-title .n {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
}

.x-illus .faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.x-illus .faq-item {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  transition: border-color var(--ease);
}

.x-illus .faq-item[open] {
  border-color: var(--brand-line);
}

.x-illus .faq-item summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 17px 20px;
  cursor: pointer;
  list-style: none;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.45;
}

.x-illus .faq-item summary::-webkit-details-marker {
  display: none;
}

.x-illus .faq-item summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -3px;
  border-radius: var(--r-md);
}

.x-illus .faq-q-mark {
  flex: 0 0 auto;
  margin-left: auto;
  width: 20px;
  height: 20px;
  position: relative;
  margin-top: 2px;
}

.faq-q-mark::before,
.x-illus .faq-q-mark::after {
  content: "";
  position: absolute;
  background: var(--brand);
  transition: transform var(--ease), opacity var(--ease);
}

.x-illus .faq-q-mark::before {
  top: 9px;
  left: 3px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
}

.x-illus .faq-q-mark::after {
  top: 3px;
  left: 9px;
  width: 2px;
  height: 14px;
  border-radius: 2px;
}

.x-illus .faq-item[open] .faq-q-mark::after {
  transform: rotate(90deg);
  opacity: 0;
}

.x-illus .faq-answer {
  padding: 0 20px 19px;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.65;
}

.x-illus .faq-answer a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.x-illus .faq-pop {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ok);
  background: var(--ok-tint);
  border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent);
  padding: 3px 8px;
  border-radius: 999px;
  flex: 0 0 auto;
  margin-top: 1px;
}

/* ── BE · Category groups on the connector catalogue ────────── */
.x-illus .cn-group {
  margin-top: clamp(30px, 3.8vw, 44px);
  scroll-margin-top: 150px;
}

.x-illus .cn-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand-line);
}

.x-illus .cn-group-title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-1);
}

.x-illus .cn-group-count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand);
  background: var(--brand-tint);
  border: 1px solid var(--brand-line);
  padding: 4px 10px;
  border-radius: 999px;
}

.x-illus .cn-group-ops {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-3);
  margin-left: auto;
}

.x-illus .cn-group .cn-list {
  margin-top: 16px;
}

/* ── BF · Per-connector operations list ─────────────────────── */
.x-illus .cn-ops-toggle {
  margin-top: 12px;
}

.x-illus .cn-ops-toggle summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-sunken);
  border: 1px solid var(--line-strong);
  padding: 5px 12px;
  border-radius: 999px;
  transition: color var(--ease), background var(--ease), border-color var(--ease);
}

.x-illus .cn-ops-toggle summary::-webkit-details-marker {
  display: none;
}

.x-illus .cn-ops-toggle summary:hover {
  color: var(--brand);
  background: var(--brand-tint);
  border-color: var(--brand-line);
}

.x-illus .cn-ops-toggle summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.x-illus .cn-ops-toggle summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 1px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--ease);
}

.x-illus .cn-ops-toggle[open] summary {
  color: var(--brand);
  background: var(--brand-tint);
  border-color: var(--brand-line);
}

.x-illus .cn-ops-toggle[open] summary::after {
  transform: translateY(1px) rotate(-135deg);
}

.x-illus .cn-op-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 11px;
  padding: 12px 13px;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

/* Bare <b> and <i> keep the markup tiny: a class on every one of the
   13,220 operations would add hundreds of KB. */
.x-illus .cn-op-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.x-illus .cn-op-row b {
  flex: 0 0 auto;
  margin-right: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
}

.x-illus .cn-op-row i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
}

.x-illus .cn-op-row--w b {
  color: var(--brand);
}

.x-illus .cn-op-row--w i {
  color: var(--brand-strong);
  background: var(--brand-tint);
  border-color: var(--brand-line);
}

/* ── Y · Showcase bullets: 3-up row under centered head ─────── */
.x-illus .showcase-kps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 32px;
  max-width: 1000px;
  margin: 26px auto 0;
  text-align: left;
}

.x-illus .showcase-kps li {
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .x-illus .showcase-kps {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

/* ── Z · Build-agent split: bullets left, compact mock right ── */
.x-illus .byo-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}

.x-illus .byo-split .byo-copy p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-2);
}

.x-illus .byo-split .feature-kps {
  margin-top: 20px;
}

.x-illus .byo-split .frame {
  max-width: 600px;
  margin: 0 auto;
}

.x-illus .byo-split .as-config {
  padding: 16px 18px;
  gap: 12px;
}

.x-illus .byo-split .as-preview {
  padding: 16px 18px;
  gap: 10px;
}

@media (max-width: 860px) {
  .x-illus .byo-split {
    grid-template-columns: 1fr;
  }

  .x-illus .byo-split .byo-copy {
    max-width: 58ch;
    margin: 0 auto;
  }
}

/* ---- Platform illustrations sitting under the feature cards ---- */
.x-platform-illus { padding-top: 20px; }
.x-platform-illus .diagram-scroll { overflow-x: auto; }
.x-platform-illus .diagram { max-width: 1100px; margin: 0 auto; }
.x-platform-illus .cs-head,
.x-platform-illus .fact-strip { display: none; }


/* ── Wide-diagram scroll + phone step fallback ── */
.x-illus .diagram-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

/* Tablet: panning a wide canvas is still workable. */
@media (max-width: 820px) and (min-width: 701px) {
  .x-illus .diagram-scroll .diagram {
    min-width: 860px;
  }

  .x-illus .diagram-scroll::after {
    content: "Scroll to see the full diagram →";
    display: block;
    padding-top: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--text-3);
  }
}

/* Phone: a canvas 2.4× the viewport at 8px type is not readable at any
   scroll position, so the diagram is replaced by the same flow as steps. */
.x-illus .diagram-steps {
  display: none;
}

@media (max-width: 700px) {
  .x-illus .diagram-scroll {
    display: none;
  }

  .x-illus .diagram-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  .x-illus .dstep {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--card-line);
    border-radius: var(--r-md);
    padding: 13px 15px;
    box-shadow: var(--shadow-1);
  }

  .x-illus .dstep-n {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--brand-tint);
    border: 1px solid var(--brand-line);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--brand);
  }

  .x-illus .dstep-name {
    display: block;
    font-size: 14px;
    font-weight: 650;
    color: var(--text-1);
  }

  .x-illus .dstep-note {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.5;
  }

  .x-illus .dstep--branch {
    border-style: dashed;
    background: var(--brand-tint);
  }

  .x-illus .dstep--branch .dstep-n {
    background: var(--bg-raised);
  }

  .x-illus .dstep--ok {
    border-color: var(--ok);
    background: var(--ok-tint);
  }

  .x-illus .dstep--ok .dstep-n {
    background: var(--bg-raised);
    border-color: var(--ok);
    color: var(--ok);
  }

  .x-illus .dstep-group {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand);
    margin-top: 6px;
  }
}

/* ── Agent Studio · the six build steps ────────────────────────────
   One panel, three columns by two rows, hairline rules between the cells.
   Each step is marked by a large outlined numeral turned on its side. */
.x-illus .wz-panel {
  border: 1px solid var(--card-line);
  border-radius: var(--r-xl);
  background: var(--card);
  padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 30px) clamp(18px, 2.4vw, 26px);
  box-shadow: var(--shadow-1);
}
.x-illus .wz-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.x-illus .wz-card {
  position: relative;
  padding: 10px clamp(18px, 2.4vw, 30px) 30px;
  background: none;
  border: 0;
  border-radius: 0;
}
/* rules between the cells, never on the outer edges */
.x-illus .wz-card:not(:nth-child(3n + 1)) { border-left: 1px solid var(--card-line); }
.x-illus .wz-card:nth-child(n + 4) {
  border-top: 1px solid var(--card-line);
  padding-top: 30px;
}

.x-illus .wz-card-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 10px;
}
/* The numeral sits in normal flow above the title, so nothing has to be
   nudged per row: vertical-rl lays the digits top-to-bottom and turns each
   glyph on its side (a plain rotate() reverses them, giving "10" for "01"). */
.x-illus .wz-card-title::before {
  content: attr(data-n);
  display: block;
  writing-mode: vertical-lr;
  height: 84px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(255, 255, 255, .22);
  text-stroke: 1.4px rgba(255, 255, 255, .22);
}

.x-illus .wz-card ul { margin: 0; padding: 0; list-style: none; }
.x-illus .wz-card li {
  position: relative;
  padding-left: 15px;
  margin-top: 7px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-2);
}
.x-illus .wz-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: var(--brand);
}

/* lifecycle, centred under the grid like a footing line */
.x-illus .lc-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin-top: clamp(18px, 2.4vw, 26px);
  padding-top: clamp(18px, 2.4vw, 26px);
  border-top: 1px solid var(--card-line);
}
.x-illus .lc-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--text-3);
}
.x-illus .lc-arrow { color: var(--text-3); font-size: 0.8rem; }
.x-illus .lc-note {
  flex: 1 0 100%;
  margin-top: 4px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: .04em;
  color: var(--text-3);
}

@media (max-width: 991px) {
  .x-illus .wz-cards { grid-template-columns: repeat(2, 1fr); }
  .x-illus .wz-card:not(:nth-child(3n + 1)) { border-left: 0; }
  .x-illus .wz-card:not(:nth-child(2n + 1)) { border-left: 1px solid var(--card-line); }
  .x-illus .wz-card:nth-child(n + 3) { border-top: 1px solid var(--card-line); padding-top: 30px; }
  }
@media (max-width: 575px) {
  .x-illus .wz-cards { grid-template-columns: 1fr; }
  .x-illus .wz-card { border-left: 0 !important; }
  .x-illus .wz-card:not(:first-child) { border-top: 1px solid var(--card-line); padding-top: 30px; }
  }

/* ── Orchestration · the three-actor swimlane ──────────────────────── */
.x-illus .swim {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: start;
}
.x-illus .sw-lane { display: none; }            /* lane tint is carried by the cards */
.x-illus .sw-head {
  padding: 16px 18px;
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg, 14px);
  background: var(--bg-sunken);
}
.x-illus .sw-head b { display: block; font-size: 0.98rem; color: var(--text-1); }
.x-illus .sw-head span { font-size: 0.8rem; color: var(--text-3); }
.x-illus .sw-step {
  padding: 16px 18px;
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg, 14px);
  background: var(--card);
}
.x-illus .sw-step--util,
.x-illus .sw-head + .sw-step--util { background: rgba(116, 118, 255, .07); border-color: rgba(116, 118, 255, .24); }
.x-illus .sw-n {
  display: block;
  font-family: var(--font-mono, ui-monospace, 'SF Mono', Menlo, monospace);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--brand);
  margin-bottom: 6px;
}
.x-illus .sw-step b { display: block; font-size: 0.92rem; color: var(--text-1); margin-bottom: 4px; }
.x-illus .sw-step > span:not(.sw-n) { font-size: 0.84rem; color: var(--text-2); }

.x-illus .sw-cross {
  grid-column: 1 / -1;
  padding: 14px 18px;
  border: 1px dashed rgba(116, 118, 255, .38);
  border-radius: var(--r-lg, 14px);
  background: rgba(116, 118, 255, .06);
}
.x-illus .sw-cross-label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text-1); }
.x-illus .sw-cross-alt { font-size: 0.84rem; color: var(--text-2); }

@media (max-width: 991px) {
  .x-illus .wz-cards { grid-template-columns: repeat(2, 1fr); }
  .x-illus .swim { grid-template-columns: 1fr; }
  .x-illus .sw-cross { grid-column: auto; }
}
@media (max-width: 575px) {
  .x-illus .wz-cards { grid-template-columns: 1fr; }
}

/* ── Architecture · the framed three-layer stack ───────────────────── */
.x-illus .arch-frame {
  border: 1px solid var(--card-line);
  border-radius: var(--r-xl, 18px);
  background: var(--bg-sunken);
  padding: 0 0 18px;
  overflow: hidden;
}
.x-illus .arch-frame-head {
  padding: 14px 22px;
  border-bottom: 1px solid var(--card-line);
  background: rgba(255, 255, 255, .03);
}
.x-illus .arch-frame-logo {
  font-family: var(--font-heading, 'Sora', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text-1);
}
.x-illus .arch-frame .arch-stack { padding: 18px 18px 0; }

/* Governance band across the intelligence layer */
.x-illus .arch-core-govern {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--card-line);
}
.x-illus .arch-core-govern > b {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.x-illus .gov-across { font-size: 0.82rem; color: var(--text-3); margin-right: 4px; }
.x-illus .gov-item {
  padding: 5px 12px;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.78rem;
  color: var(--text-2);
}

.x-illus .arch-core-services {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.x-illus .arch-services-label {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-right: 4px;
}

.x-illus .arch-layer-foot {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--text-2);
}
.x-illus .arch-layer-foot a { color: var(--brand-2, #89c7fe); font-weight: 600; }

/* ── Shared bits the PO's markup relies on ─────────────────────────── */
.x-illus .split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.x-illus .orc { display: block; }
.x-illus .cap-use { margin: 0; font-size: 0.85rem; color: var(--text-2); }
.x-illus .mock-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-3);
}
@media (max-width: 991px) {
  .x-illus .split-2 { grid-template-columns: 1fr; }
}

/* Narrow screens: a 176px-tall rotated rail costs more than it gives, so the
   layer head goes back above its panel and reads horizontally. */
@media (max-width: 640px) {
  .x-illus .arch-layer {
    position: static;
    min-height: 0;
    padding-left: 0;
  }
  .x-illus .arch-head {
    position: static;
    width: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 10px;
    overflow: visible;
  }
  .x-illus .arch-head > div {
    writing-mode: horizontal-tb;
    transform: none;
    max-height: none;
  }
  .x-illus .arch-name { font-size: 0.95rem; }
  .x-illus .arch-sub { font-size: 12px; }
}

/* ═══════════ Request pipeline · animated walkthrough ═══════════
   Chat on the left, the six stages listed down the right. The chat shows one
   stage at a time — each panel replaces the last rather than stacking — and
   the matching stage card lights up with a progress bar across its top edge.
   Driven by scripts.js; with JS off or under reduced motion the finished
   state is rendered so the content still reads. */
.x-illus .pipe-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: 22px;
  align-items: stretch;
  margin-top: clamp(20px, 3vw, 30px);
}

/* ---- chat ---- */
.x-illus .pipe-chat {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--card-line);
  border-radius: var(--r-xl);
  background: var(--card);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.x-illus .pipe-chat-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--card-line);
  background: rgba(255, 255, 255, .03);
}
.x-illus .pipe-dots { display: inline-flex; gap: 5px; }
.x-illus .pipe-dots span { height: 8px; width: 8px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.x-illus .pipe-chat-title { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.x-illus .pipe-chat-state {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--brand-line);
  background: var(--brand-tint);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand);
}
.x-illus .pipe-chat-state.is-done {
  border-color: rgba(52, 211, 153, .4);
  background: rgba(52, 211, 153, .12);
  color: #6ee7b7;
}
.x-illus .pipe-chat-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;   /* messages hug the bottom, as a chat does */
  padding: 16px;
}

.x-illus .pipe-ask {
  margin: 0 0 14px auto;
  max-width: 88%;
  width: fit-content;
  padding: 11px 15px;
  border-radius: 14px 14px 4px 14px;
  background: var(--brand-tint);
  border: 1px solid var(--brand-line);
  font-size: 0.9rem;
  color: var(--text-1);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
}
.x-illus .pipe-ask.is-shown { opacity: 1; transform: none; }

/* One panel visible at a time; each replaces the one before it. */
/* All panels share one grid cell, so the area sizes itself to the tallest
   (the answer) instead of relying on a hand-picked min-height that the
   answer then overflowed. */
.x-illus .pipe-work {
  display: grid;
  flex: 0 0 auto;
}
.x-illus .pipe-panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.x-illus .pipe-panel.is-shown { opacity: 1; visibility: visible; transform: none; }

.x-illus .pipe-think {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 10px;
}
.x-illus .pipe-spin {
  height: 13px;
  width: 13px;
  border-radius: 50%;
  border: 2px solid var(--brand-line);
  border-top-color: var(--brand);
  animation: pipeSpin .8s linear infinite;
}
@keyframes pipeSpin { to { transform: rotate(360deg); } }

.x-illus .pipe-row {
  display: flex;
  gap: 10px;
  padding: 4px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  opacity: 0;
}
/* rows tick in one after another, finishing well inside the three-second stage */
.x-illus .pipe-panel.is-shown .pipe-row {
  animation: pipeRow .35s ease forwards;
  animation-delay: calc(var(--r) * .42s + .3s);
}
@keyframes pipeRow { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.x-illus .pipe-row .k { flex: 0 0 84px; color: var(--text-3); }
.x-illus .pipe-row .v { color: var(--text-2); min-width: 0; }

/* ---- the answer: written out, the way a model replies ---- */
.x-illus .pipe-answer { font-size: 0.88rem; color: var(--text-2); }
.x-illus .pipe-a-lead { margin: 0 0 12px; line-height: 1.6; color: var(--text-2); }
.x-illus .pipe-a-lead b { color: var(--text-1); }
.x-illus .pipe-a-h {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-1);
}
.x-illus .pipe-a-list { margin: 0 0 12px; padding: 0; list-style: none; }
.x-illus .pipe-a-list li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 5px;
  line-height: 1.55;
}
.x-illus .pipe-a-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: var(--brand);
}
.x-illus .pipe-a-list b { color: var(--text-1); font-weight: 600; }
.x-illus .pipe-a-p { margin: 0 0 14px; line-height: 1.6; }
.x-illus .pipe-srcs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--card-line);
}
.x-illus .pipe-srcs-k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-right: 2px;
}
.x-illus .pipe-src {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-sunken);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-2);
}

/* ---- composer: the question is typed here before it is sent ---- */
.x-illus .pipe-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-sunken);
  min-height: 42px;
}
.x-illus .pipe-input {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.86rem;
  color: var(--text-1);
  white-space: pre-wrap;
}
.x-illus .pipe-caret {
  width: 1.5px;
  height: 15px;
  background: var(--brand);
  animation: pipeCaret 1s steps(2, start) infinite;
}
@keyframes pipeCaret { 50% { opacity: 0; } }
.x-illus .pipe-send {
  flex: 0 0 auto;
  height: 24px;
  width: 24px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-tint);
  border: 1px solid var(--brand-line);
  font-size: 12px;
  color: var(--brand);
  opacity: .45;
  transition: opacity .25s ease;
}
.x-illus .pipe-composer.is-ready .pipe-send { opacity: 1; }

/* ---- stage list, down the right ---- */
/* Three equal rows filling the grid row, so the stage block finishes level
   with the chat panel beside it rather than stopping short. */
.x-illus .stage-rail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
  height: 100%;
}
.x-illus .stage-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-sunken);
  overflow: hidden;
  opacity: .5;
  transition: opacity .35s ease, border-color .35s ease, background .35s ease;
}
.x-illus .stage-card.is-done { opacity: .82; }
.x-illus .stage-card.is-active { opacity: 1; border-color: var(--brand); background: var(--card); }

.x-illus .stage-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgba(255, 255, 255, .07); }
.x-illus .stage-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand-grad, linear-gradient(90deg, #7476ff, #89c7fe));
}
.x-illus .stage-card.is-active .stage-bar i { width: 100%; transition: width var(--pipe-dur, 3000ms) linear; }
.x-illus .stage-card.is-done .stage-bar i { width: 100%; transition: none; }

.x-illus .stage-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.x-illus .stage-card.is-active .stage-num { color: var(--brand); }
.x-illus .stage-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 5px 0 3px;
}
.x-illus .stage-desc { margin: 0; font-size: 12px; line-height: 1.4; color: var(--text-2); }

/* No JS or reduced motion: finished state rather than an empty panel. */
.x-illus .pipe-demo:not(.is-running) .stage-card { opacity: .82; }
.x-illus .pipe-demo:not(.is-running) .stage-bar i { width: 100%; }
.x-illus .pipe-demo:not(.is-running) .pipe-ask { opacity: 1; transform: none; }
.x-illus .pipe-demo:not(.is-running) .pipe-panel[data-stage="5"] { opacity: 1; visibility: visible; transform: none; }
.x-illus .pipe-demo:not(.is-running) .pipe-caret { animation: none; opacity: 0; }
.x-illus .pipe-demo:not(.is-running) .pipe-row { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .x-illus .pipe-spin { animation: none; }
  .x-illus .stage-card, .x-illus .pipe-panel, .x-illus .pipe-ask { transition: none; }
}

@media (max-width: 991px) {
  .x-illus .pipe-demo { grid-template-columns: 1fr; }
  .x-illus .stage-card { height: 100%; }
}
@media (max-width: 520px) {
  .x-illus .stage-rail { grid-template-columns: 1fr; }
  .x-illus .pipe-row .k { flex-basis: 68px; }
}

/* ══════════════════════════════════════════════════════════════════
   Platform · compact architecture (.x-arch-compact)
   The diagram now sits in a 8-of-12 column beside the heading rather
   than running full width, so it has to lose height as well as width.
   The single biggest saving is the rotated rail: each layer carried a
   176px floor purely so the vertical label ("Connected systems") had
   somewhere to live. Turning that label horizontal above its layer
   drops the floor, the 68px gutter, and roughly a third of the height.
   ══════════════════════════════════════════════════════════════════ */
.x-arch-compact .x-illus .arch-stack { max-width: none; }
.x-arch-compact .x-illus .arch-frame .arch-stack { padding: 14px 14px 0; }
.x-arch-compact .x-illus .arch-frame { padding-bottom: 14px; }
.x-arch-compact .x-illus .arch-frame-head { padding: 11px 16px; }

.x-arch-compact .x-illus .arch-layer {
  min-height: 0;
  padding-left: 0;
}
/* the rail becomes an ordinary label sitting above its layer */
.x-arch-compact .x-illus .arch-head {
  position: static;
  width: auto;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 0 7px;
  overflow: visible;
}
.x-arch-compact .x-illus .arch-head > div {
  writing-mode: horizontal-tb;
  transform: none;
  text-align: left;
  max-height: none;
}
.x-arch-compact .x-illus .arch-name { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }

.x-arch-compact .x-illus .arch-body {
  min-height: 0;
  padding: 12px 13px;
}

/* six channel tiles across a narrower box: the 120px floor overflowed */
.x-arch-compact .x-illus .arch-cards { gap: 7px; }
.x-arch-compact .x-illus .arch-card {
  min-width: 0;
  gap: 6px;
  padding: 9px 5px;
  font-size: 11.5px;
  text-align: center;
}
.x-arch-compact .x-illus .arch-card svg { width: 17px; height: 17px; }
.x-arch-compact .x-illus .arch-card span { overflow-wrap: anywhere; }

.x-arch-compact .x-illus .arch-core-cards { gap: 9px; }
.x-arch-compact .x-illus .arch-core-card { padding: 10px 11px; }
.x-arch-compact .x-illus .arch-core-card b { font-size: .88rem; margin-bottom: 5px; }
.x-arch-compact .x-illus .arch-core-card span { font-size: 11.5px; line-height: 1.45; }

.x-arch-compact .x-illus .arch-core-govern { margin-top: 11px; padding-top: 11px; gap: 6px 8px; }
.x-arch-compact .x-illus .gov-item { padding: 4px 9px; font-size: .72rem; }
.x-arch-compact .x-illus .arch-core-govern > b,
.x-arch-compact .x-illus .gov-across { font-size: .74rem; }
.x-arch-compact .x-illus .arch-core-services { margin-top: 10px; gap: 6px; }
.x-arch-compact .x-illus .arch-flow { margin: 8px 0; }
.x-arch-compact .x-illus .arch-layer-foot { margin-top: 10px; font-size: .78rem; }

@media (max-width: 991px) {
  /* back to full width under the heading, so the tiles can breathe again */
  .x-arch-compact .x-illus .arch-card { font-size: 12px; padding: 10px 8px; }
}


/* ══════════════════════════════════════════════════════════════════
   Platform · agent creation as a deck of stacking step cards
   The six steps were a 3x2 grid of hairline-divided cells inside one
   panel. They are now free-standing cards that stack under the header
   as you scroll, each pinned a little lower than the last so a sliver
   of every earlier step stays visible above the current one.
   ══════════════════════════════════════════════════════════════════ */
.x-illus .x-wz-stack { position: relative; }

.x-illus .x-wz-stack .wz-card {
  /* the grid's cell dividers have no meaning once these are separate cards */
  border: 1px solid var(--card-line);
  border-radius: var(--r-xl);
  background: var(--card);
  box-shadow: var(--shadow-1);
  padding: 26px 30px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 26px;
  align-items: start;
}
.x-illus .x-wz-stack .wz-card:last-child { margin-bottom: 0; }

@media (min-width: 992px) {
  /* the cards pin below the page header (72px) and the sticky jump nav (64px) */
  .x-illus .x-wz-stack { --wz-top: 152px; --wz-peek: 14px; }
  .x-illus .x-wz-stack .wz-card {
    position: sticky;
    top: calc(var(--wz-top) + var(--i) * var(--wz-peek));
    /* a pinned card has to hide whatever it slides over */
    box-shadow: 0 -16px 40px rgba(6, 7, 18, .5);
    /* a step card is only a title and a few bullets; the floor keeps the six
       the same height without leaving the short ones looking half empty */
    min-height: 182px;
    padding: 30px 36px;
    /* the gap is the dwell: how long a card stays whole before the next
       one starts covering it. Kept short so the deck reads as one stack
       rather than six cards with holes between them. */
    margin-bottom: 34px;
  }
}

/* the step numeral was set vertically to sit above a narrow column title;
   in a two-column card it reads across, beside its own step name */
.x-illus .x-wz-stack .wz-card-title { font-size: 1.15rem; margin: 0; }
.x-illus .x-wz-stack .wz-card-title::before {
  writing-mode: horizontal-tb;
  height: auto;
  margin-bottom: 10px;
  font-size: 54px;
  -webkit-text-stroke-width: 1.6px;
}
.x-illus .x-wz-stack .wz-card li { font-size: .88rem; margin-top: 8px; }
.x-illus .x-wz-stack .wz-card li:first-child { margin-top: 0; }

@media (max-width: 991px) {
  .x-illus .x-wz-stack .wz-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 24px;
  }
  .x-illus .x-wz-stack .wz-card-title::before { font-size: 38px; margin-bottom: 6px; }
}
