/* ==========================================================================
   mcp.css - /mcp/ page system and the homepage "checks" band.
   Builds on the tokens in site.css (dark surface, indigo accent). Generated
   fragments from scripts/build-mcp-content.ts use the .mcp-* classes below.
   ========================================================================== */

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

.mcp-page [hidden] {
  display: none !important;
}
.mcp-page code,
.mcp-band code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  padding: 0.08em 0.4em;
  overflow-wrap: anywhere;
}
.mcp-page pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
}
.mcp-dim {
  color: var(--ink-3);
}
.mcp-fine {
  font-size: 0.875rem;
}
.mcp-mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.mcp-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mcp-page .section-head {
  max-width: 720px;
  margin-bottom: 40px;
}
.mcp-page .section {
  padding: 88px 0;
}
.mcp-subhead {
  font-size: 1.0625rem;
  font-weight: 590;
  letter-spacing: -0.005em;
  margin: 32px 0 14px;
  color: var(--ink);
}
.mcp-prose {
  color: var(--ink-2);
  line-height: 1.7;
}
.mcp-note {
  margin-top: 20px;
  color: var(--ink-3);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 78ch;
}
.mcp-callout {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 3px solid var(--amber);
  background: rgba(232, 176, 75, 0.07);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.mcp-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  margin-top: 36px;
}
.mcp-split-rates {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 48px;
}

/* ------------------------------------------------------------ badges/pills */
.mcp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.mcp-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 176, 75, 0.18);
}
.mcp-badge-sep {
  color: var(--ink-4);
}
.mcp-pill {
  display: inline-block;
  padding: 2px 9px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}
.mcp-pill-free {
  color: var(--green);
  border-color: rgba(46, 204, 143, 0.35);
  background: rgba(46, 204, 143, 0.08);
}
.mcp-pill-pro {
  color: var(--accent-bright);
  border-color: rgba(124, 138, 255, 0.4);
  background: var(--accent-dim);
}
.mcp-pill-local,
.mcp-pill-hosted,
.mcp-pill-both {
  color: var(--ink-2);
}
.mcp-pill-fixture,
.mcp-pill-pending {
  color: var(--amber);
  border-color: rgba(232, 176, 75, 0.35);
  background: rgba(232, 176, 75, 0.08);
}

/* -------------------------------------------------------------------- hero */
.mcp-hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 56px;
  background:
    radial-gradient(680px 420px at 10% -10%, rgba(94, 106, 210, 0.2), transparent 65%),
    radial-gradient(520px 320px at 92% 20%, rgba(46, 204, 143, 0.06), transparent 70%);
  border-bottom: 1px solid var(--border-subtle);
}
.mcp-hero .container {
  position: relative;
  z-index: 1;
}
.mcp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 48px;
  align-items: center;
}
.mcp-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.mcp-eyebrow .kicker {
  margin-bottom: 0;
}
.mcp-hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
  max-width: 18ch;
  margin-bottom: 20px;
}
.mcp-hero .lede {
  color: var(--ink-2);
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 56ch;
}
.mcp-boundary {
  margin: 20px 0 28px;
  padding: 10px 14px;
  max-width: 56ch;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-2);
  border: 1px solid rgba(232, 176, 75, 0.3);
  background: rgba(232, 176, 75, 0.06);
  border-radius: var(--r-md);
}
.mcp-boundary strong {
  color: var(--amber);
  font-weight: 590;
}
.mcp-hero-panel {
  background: rgba(16, 20, 29, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 8px;
  backdrop-filter: blur(6px);
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.8);
}
.mcp-panel-col {
  padding: 18px 20px;
}
.mcp-panel-col + .mcp-panel-col {
  border-top: 1px solid var(--border-subtle);
}
.mcp-panel-col h2 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.mcp-panel-can h2 {
  color: var(--green);
}
.mcp-panel-cannot h2 {
  color: var(--red);
}
.mcp-panel-col ul {
  list-style: none;
  display: grid;
  gap: 9px;
}
.mcp-panel-col li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.mcp-panel-col li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-weight: 500;
}
.mcp-panel-can li::before {
  content: '\2713';
  color: var(--green);
}
.mcp-panel-cannot li::before {
  content: '\00d7';
  color: var(--red);
  font-size: 1.1em;
  line-height: 1.2;
}
.mcp-trust {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.mcp-trust li {
  padding: 16px 20px;
  display: grid;
  gap: 2px;
}
.mcp-trust li + li {
  border-left: 1px solid var(--border-subtle);
}
.mcp-trust strong {
  font-size: 0.9375rem;
  font-weight: 590;
  color: var(--ink);
}
.mcp-trust span {
  font-size: 0.8125rem;
  color: var(--ink-3);
  line-height: 1.4;
}

/* ---------------------------------------------------------------- outcomes */
.mcp-outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.mcp-outcome {
  position: relative;
  padding: 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.mcp-outcome:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.035);
}
.mcp-outcome-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-bright);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.mcp-outcome h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.mcp-outcome p {
  color: var(--ink-3);
  line-height: 1.6;
  margin-bottom: 18px;
}
.mcp-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mcp-chips a {
  display: inline-block;
  text-decoration: none;
}
.mcp-chips a code {
  display: inline-block;
  padding: 3px 9px;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}
.mcp-chips a:hover code,
.mcp-chips a:focus-visible code {
  color: var(--accent-hover);
  border-color: rgba(124, 138, 255, 0.5);
}

/* -------------------------------------------------------------------- tabs */
.mcp-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  border-bottom: 0;
}
.mcp-tabs-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mcp-tab {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 12px 16px;
  font: inherit;
  color: var(--ink-3);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.mcp-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}
.mcp-tab[aria-selected='true'] {
  color: var(--ink);
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  box-shadow: inset 0 -2px 0 var(--accent-bright);
}
.mcp-tab:focus-visible {
  outline: 2px solid var(--focus-ring, #b5a7ff);
  outline-offset: 2px;
}
.mcp-tab-kicker {
  font-size: 0.9375rem;
  font-weight: 590;
}
.mcp-tab code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.78rem;
  color: inherit;
}
.mcp-tab span:not(.mcp-tab-kicker) {
  font-size: 0.8125rem;
}
.mcp-tabpanel {
  padding: 28px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
/* Without JavaScript every panel is visible and the tablist is hidden. */
.mcp-demo:not(.is-tabbed) .mcp-tabs,
.mcp-connect:not(.is-tabbed) .mcp-tabs {
  display: none;
}
.mcp-demo:not(.is-tabbed) .mcp-tabpanel,
.mcp-connect:not(.is-tabbed) .mcp-tabpanel {
  border-radius: var(--r-lg);
  margin-bottom: 16px;
}

/* ------------------------------------------------------------------ demo */
.mcp-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
}
.mcp-demo h5 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin: 18px 0 10px;
}
.mcp-demo-col > h5:first-child {
  margin-top: 0;
}
.mcp-demo .config-block {
  margin: 0;
  font-size: 0.8125rem;
  max-height: 340px;
  overflow: auto;
}
.mcp-verdict {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.mcp-verdict span {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}
.mcp-verdict strong {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
}
.mcp-verdict em {
  flex-basis: 100%;
  font-style: normal;
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.mcp-verdict-block {
  border-color: rgba(232, 100, 100, 0.4);
  background: rgba(232, 100, 100, 0.08);
}
.mcp-verdict-block strong {
  color: var(--red);
}
.mcp-verdict-pass {
  border-color: rgba(46, 204, 143, 0.4);
  background: rgba(46, 204, 143, 0.08);
}
.mcp-verdict-pass strong {
  color: var(--green);
}
.mcp-verdict-warn {
  border-color: rgba(232, 176, 75, 0.4);
  background: rgba(232, 176, 75, 0.08);
}
.mcp-verdict-warn strong {
  color: var(--amber);
}
.mcp-violations {
  list-style: none;
  display: grid;
  gap: 8px;
}
.mcp-violations li {
  padding: 8px 12px;
  border-left: 2px solid var(--red);
  background: rgba(232, 100, 100, 0.05);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.mcp-violations code {
  background: none;
  border: 0;
  padding: 0;
}
.mcp-summary-line {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.mcp-kv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.mcp-kv div {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
}
.mcp-kv dt {
  font-size: 0.75rem;
  color: var(--ink-3);
  margin-bottom: 2px;
}
.mcp-kv dd {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--ink);
}
.mcp-boundary-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  color: var(--ink-3);
  font-size: 0.875rem;
  line-height: 1.6;
}
.mcp-fixture-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  font-size: 0.8125rem;
}
.mcp-schema {
  margin-top: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
}
.mcp-schema summary {
  cursor: pointer;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.mcp-schema .config-block {
  margin: 0 14px 14px;
  max-height: 320px;
  overflow: auto;
  font-size: 0.78rem;
}
.mcp-bars {
  list-style: none;
  display: grid;
  gap: 8px;
}
.mcp-bars li {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 76px;
  gap: 10px;
  align-items: center;
  font-size: 0.8125rem;
}
.mcp-bar-label {
  color: var(--ink-3);
  text-transform: capitalize;
}
.mcp-bar-track {
  height: 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.mcp-bar {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
}
.mcp-bar-pos {
  background: var(--green);
}
.mcp-bar-neg {
  background: var(--red);
}
.mcp-bar-val {
  font-family: var(--font-mono);
  text-align: right;
  color: var(--ink-2);
}

/* ------------------------------------------------------- verdict vocabulary */
.mcp-verdicts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.mcp-verdict-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
}
.mcp-verdict-card strong {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}
.mcp-verdict-card span {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-3);
}
.mcp-vc-pass {
  border-left-color: var(--green);
}
.mcp-vc-pass strong {
  color: var(--green);
}
.mcp-vc-fail {
  border-left-color: var(--red);
}
.mcp-vc-fail strong {
  color: var(--red);
}
.mcp-vc-warn {
  border-left-color: var(--amber);
}
.mcp-vc-warn strong {
  color: var(--amber);
}
.mcp-vc-info {
  border-left-color: var(--accent-bright);
}
.mcp-vc-info strong {
  color: var(--accent-bright);
}
.mcp-steps-compact {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 12px;
}
.mcp-steps-compact li {
  counter-increment: step;
  position: relative;
  padding-left: 38px;
  color: var(--ink-3);
  line-height: 1.55;
  font-size: 0.9375rem;
}
.mcp-steps-compact li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-bright);
  border: 1px solid rgba(124, 138, 255, 0.4);
  border-radius: 50%;
  background: var(--accent-dim);
}
.mcp-steps-compact strong {
  color: var(--ink);
  font-weight: 590;
}
.mcp-page .pit-grid {
  margin-top: 8px;
}

/* ------------------------------------------------------------------ tables */
.mcp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.015);
}
.mcp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.5;
}
.mcp-table th,
.mcp-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-subtle);
}
.mcp-table thead th {
  position: sticky;
  top: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.mcp-table tbody th {
  font-weight: 550;
  color: var(--ink);
}
.mcp-table td {
  color: var(--ink-2);
}
.mcp-table tbody tr:last-child th,
.mcp-table tbody tr:last-child td {
  border-bottom: 0;
}
.mcp-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}
.mcp-table .mcp-url {
  word-break: break-all;
}
.mcp-tool-link {
  text-decoration: none;
}
.mcp-tool-link:hover code {
  color: var(--accent-hover);
}
.mcp-table-flow td:nth-child(4) {
  min-width: 240px;
}

/* ----------------------------------------------------------------- pricing */
.mcp-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.mcp-price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.mcp-price-featured {
  background: linear-gradient(180deg, rgba(94, 106, 210, 0.12), rgba(94, 106, 210, 0.03));
  border-color: rgba(124, 138, 255, 0.5);
  box-shadow: 0 24px 48px -32px rgba(94, 106, 210, 0.6);
}
.mcp-price-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-bright);
}
.mcp-price {
  margin-top: 10px;
  font-size: 2.5rem;
  font-weight: 590;
  letter-spacing: -0.03em;
  line-height: 1;
}
.mcp-price span {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-3);
}
.mcp-price-credits {
  margin-top: 12px;
  color: var(--ink-2);
}
.mcp-price-credits strong {
  font-family: var(--font-mono);
  font-size: 1.125rem;
}
.mcp-price-sub {
  margin: 10px 0 16px;
  color: var(--ink-3);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.mcp-price-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.mcp-price-card li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.mcp-price-card li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green);
  font-family: var(--font-mono);
}
.mcp-price-card .btn {
  margin-top: auto;
  justify-content: center;
}

/* -------------------------------------------------------------- calculator */
.mcp-calc {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.mcp-calc-head h3 {
  font-size: 1.0625rem;
  margin-bottom: 4px;
}
.mcp-calc-head p {
  font-size: 0.875rem;
}
.mcp-calc-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.mcp-calc-form label {
  display: grid;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.mcp-calc-form input[type='number'] {
  width: 100%;
  padding: 9px 12px;
  font: inherit;
  font-family: var(--font-mono);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.mcp-calc-form input:focus-visible {
  outline: 2px solid var(--focus-ring, #b5a7ff);
  outline-offset: 1px;
}
.mcp-calc-check {
  align-content: end;
  grid-template-columns: auto 1fr;
  align-items: center;
  padding-bottom: 10px;
}
.mcp-calc-out {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}
.mcp-calc-out div {
  display: grid;
  gap: 2px;
}
.mcp-calc-out span {
  font-size: 0.8125rem;
}
.mcp-calc-out strong {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 500;
}
.mcp-checkout {
  max-width: 680px;
  margin: 18px auto 0;
}
.mcp-institutional {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding: 22px 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--accent-dim);
}
.mcp-institutional h3 {
  font-size: 1.0625rem;
  margin-bottom: 4px;
}
.mcp-institutional p {
  color: var(--ink-2);
  font-size: 0.9375rem;
  max-width: 60ch;
}
.mcp-signup-card {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px;
}

/* -------------------------------------------------------------- tournament */
.mcp-flow {
  list-style: none;
  counter-reset: flow;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 8px;
}
.mcp-flow li {
  counter-increment: flow;
  position: relative;
  padding: 44px 14px 0 0;
  display: grid;
  gap: 6px;
  align-content: start;
}
.mcp-flow li::before {
  content: counter(flow);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-bright);
  background: var(--bg);
  border: 1px solid rgba(124, 138, 255, 0.5);
  border-radius: 50%;
}
.mcp-flow li::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 28px;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(124, 138, 255, 0.4), var(--border-subtle));
}
.mcp-flow li:last-child::after {
  display: none;
}
.mcp-flow strong {
  font-size: 0.9375rem;
  font-weight: 590;
}
.mcp-flow span {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-3);
}
.mcp-outcome-defs {
  list-style: none;
  display: grid;
  gap: 14px;
}
.mcp-outcome-defs li {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
}
.mcp-outcome-defs li span {
  color: var(--ink-3);
  font-size: 0.875rem;
  line-height: 1.55;
}
.mcp-oc {
  justify-self: start;
  font-weight: 500;
}
.mcp-page .mcp-oc-pass {
  color: var(--green);
  border-color: rgba(46, 204, 143, 0.35);
}
.mcp-page .mcp-oc-fail {
  color: var(--red);
  border-color: rgba(232, 100, 100, 0.35);
}
.mcp-page .mcp-oc-warn {
  color: var(--amber);
  border-color: rgba(232, 176, 75, 0.35);
}
.mcp-league {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding: 20px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
}
.mcp-league h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.mcp-league p {
  color: var(--ink-3);
  font-size: 0.9rem;
  max-width: 54ch;
}
.mcp-league-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--ink-2) !important;
}

/* ----------------------------------------------------------------- catalog */
.mcp-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  margin-bottom: 20px;
}
.mcp-search input {
  min-width: 240px;
  padding: 9px 14px;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.mcp-search input:focus-visible {
  outline: 2px solid var(--focus-ring, #b5a7ff);
  outline-offset: 1px;
}
.mcp-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mcp-chip {
  padding: 6px 14px;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--ink-3);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}
.mcp-chip:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}
.mcp-chip[aria-pressed='true'] {
  color: var(--ink);
  background: var(--accent-dim);
  border-color: rgba(124, 138, 255, 0.5);
}
.mcp-chip:focus-visible {
  outline: 2px solid var(--focus-ring, #b5a7ff);
  outline-offset: 2px;
}
.mcp-empty {
  padding: 24px;
  text-align: center;
  color: var(--ink-3);
}
.mcp-tool-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.mcp-tool {
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.mcp-tool:target {
  border-color: rgba(124, 138, 255, 0.6);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.mcp-tool header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.mcp-tool h4 {
  font-size: 1rem;
  font-weight: 590;
}
.mcp-tool h4 code {
  font-size: 0.95rem;
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
}
.mcp-tool-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.mcp-tool-purpose {
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 10px;
}
.mcp-tool-boundary {
  color: var(--ink-3);
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 14px;
}
.mcp-tool-boundary strong {
  color: var(--amber);
  font-weight: 550;
}
.mcp-fields {
  display: grid;
  gap: 10px;
}
.mcp-fields > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  font-size: 0.875rem;
  line-height: 1.5;
}
.mcp-fields dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  padding-top: 3px;
}
.mcp-fields dd {
  color: var(--ink-2);
}
.mcp-fields-tight {
  gap: 8px;
}
.mcp-prompts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.mcp-prompt {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.mcp-prompt p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink);
}
.mcp-prompt small {
  color: var(--ink-3);
  font-size: 0.78rem;
}
.mcp-prompt .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ----------------------------------------------------------------- connect */
.mcp-connect .mcp-panel-lede {
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 80ch;
}
.mcp-client-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.mcp-client {
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  min-width: 0;
}
.mcp-client h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.mcp-compat {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.78rem;
}
.mcp-code {
  position: relative;
  margin-bottom: 14px;
}
.mcp-code .config-block {
  margin: 0;
  padding-right: 72px;
  font-size: 0.78rem;
  overflow-x: auto;
}
.mcp-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  font: inherit;
  font-size: 0.75rem;
  color: var(--ink-2);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.mcp-copy:hover {
  color: var(--ink);
}
.mcp-copy.is-done {
  color: var(--green);
  border-color: rgba(46, 204, 143, 0.5);
}
.mcp-copy:focus-visible {
  outline: 2px solid var(--focus-ring, #b5a7ff);
  outline-offset: 2px;
}
.mcp-first-call {
  margin-top: 28px;
  padding: 22px 26px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-bright);
  border-radius: var(--r-md);
  background: rgba(94, 106, 210, 0.06);
}
.mcp-first-call h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.mcp-first-call blockquote {
  margin: 10px 0 16px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--ink);
  background: var(--bg);
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
}

/* ------------------------------------------------------------- trust / faq */
.mcp-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.mcp-trust-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.mcp-trust-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.mcp-trust-card p {
  color: var(--ink-3);
  font-size: 0.9rem;
  line-height: 1.6;
}
.mcp-faq {
  max-width: 820px;
  display: grid;
  gap: 10px;
}
.mcp-faq details {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
}
.mcp-faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 550;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.mcp-faq summary::-webkit-details-marker {
  display: none;
}
.mcp-faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  color: var(--accent-bright);
}
.mcp-faq details[open] summary::after {
  content: '\2212';
}
.mcp-faq details p {
  padding: 0 20px 18px;
  color: var(--ink-3);
  line-height: 1.65;
}
.mcp-faq summary:focus-visible {
  outline: 2px solid var(--focus-ring, #b5a7ff);
  outline-offset: -2px;
  border-radius: var(--r-md);
}
.mcp-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  align-items: center;
  justify-content: space-between;
  padding: 40px 44px;
  border: 1px solid rgba(124, 138, 255, 0.35);
  border-radius: var(--r-lg);
  background:
    radial-gradient(420px 220px at 0% 0%, rgba(94, 106, 210, 0.22), transparent 70%),
    rgba(255, 255, 255, 0.02);
}
.mcp-cta h2 {
  font-size: 1.75rem;
  margin-bottom: 6px;
}
.mcp-cta p {
  color: var(--ink-3);
}

/* ------------------------------------------------- homepage "checks" band */
.mcp-band {
  padding: 72px 0;
  border-block: 1px solid var(--border-subtle);
  background: var(--bg-panel);
}
.mcp-band-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}
.mcp-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  margin: 10px 0 14px;
}
.mcp-band p {
  color: var(--ink-3);
  line-height: 1.65;
}
.mcp-band-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 26px;
}
.mcp-band-facts li {
  padding: 12px 14px;
  font-size: 0.875rem;
  color: var(--ink-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
}
.mcp-band-facts strong {
  display: block;
  color: var(--ink);
  font-weight: 590;
}
.mcp-band-cards {
  display: grid;
  gap: 12px;
}
.mcp-band-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.mcp-band-card:hover,
.mcp-band-card:focus-visible {
  border-color: rgba(124, 138, 255, 0.5);
  background: rgba(255, 255, 255, 0.04);
}
.mcp-band-card span {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-bright);
  padding-top: 3px;
}
.mcp-band-card strong {
  font-size: 1.0625rem;
  font-weight: 590;
}
.mcp-band-card em {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--ink-3);
  line-height: 1.5;
}

/* --------------------------------------------------------------- responsive */
@media (max-width: 1040px) {
  .mcp-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .mcp-hero h1 {
    max-width: 22ch;
  }
  .mcp-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mcp-trust li:nth-child(3) {
    border-left: 0;
  }
  .mcp-trust li:nth-child(n + 3) {
    border-top: 1px solid var(--border-subtle);
  }
  .mcp-verdicts,
  .mcp-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mcp-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 28px;
  }
  .mcp-flow li:nth-child(3)::after {
    display: none;
  }
  .mcp-prompts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mcp-band-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}
@media (max-width: 860px) {
  .mcp-split,
  .mcp-demo-grid,
  .mcp-outcomes,
  .mcp-price-grid,
  .mcp-tool-list,
  .mcp-client-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .mcp-tabs {
    grid-template-columns: minmax(0, 1fr);
  }
  .mcp-calc-out {
    grid-template-columns: minmax(0, 1fr);
  }
  .mcp-page .section {
    padding: 64px 0;
  }
}
@media (max-width: 640px) {
  .mcp-hero {
    padding-top: calc(var(--header-h) + 40px);
  }
  .mcp-trust,
  .mcp-verdicts,
  .mcp-trust-grid,
  .mcp-prompts,
  .mcp-band-facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .mcp-trust li + li {
    border-left: 0;
    border-top: 1px solid var(--border-subtle);
  }
  .mcp-flow {
    grid-template-columns: minmax(0, 1fr);
  }
  .mcp-flow li::after {
    display: none;
  }
  .mcp-fields > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .mcp-tabpanel {
    padding: 18px;
  }
  .mcp-cta {
    padding: 28px 24px;
  }
  /* Stack table rows as labelled cards on small screens. */
  .mcp-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .mcp-table,
  .mcp-table tbody,
  .mcp-table tr,
  .mcp-table th,
  .mcp-table td {
    display: block;
    width: 100%;
  }
  .mcp-table tr {
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
  }
  .mcp-table tbody tr:last-child {
    border-bottom: 0;
  }
  .mcp-table th,
  .mcp-table td {
    padding: 4px 12px;
    border: 0;
  }
  .mcp-table td[data-label]::before,
  .mcp-table th[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-4);
    margin-bottom: 1px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mcp-outcome,
  .mcp-chip,
  .mcp-tab,
  .mcp-band-card {
    transition: none;
  }
}

.mcp-trust strong .mcp-dim {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
}
.mcp-hero .hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.mcp-code .config-block {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding-top: 44px;
}
.mcp-connect .mcp-fine {
  margin-top: 12px;
}
