@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #fbfaf7;
  --raised: #ffffff;
  --ink: #1d1d1b;
  --muted: #62625c;
  --line: #e4e2dc;
  --accent: #2a6fc9;
  --accent-ink: #ffffff;
  --code-bg: #f3f1ec;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

/* Every link answers the pointer: an underlined one thickens its line. */
a:hover {
  text-decoration-thickness: 2px;
}

code,
pre {
  font-family: var(--mono);
  font-size: 0.875em;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 36px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
}

.brand img {
  width: 26px;
  height: 26px;
}

.top nav {
  display: flex;
  gap: 24px;
  font-size: 15px;
}

.top nav a {
  color: var(--muted);
  text-decoration: none;
}

.top nav a:hover {
  color: var(--ink);
}

/* Hero */

.hero {
  padding: 56px 0 40px;
  max-width: 720px;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.lead {
  margin: 0 0 32px;
  font-size: 19px;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.button {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  text-decoration: none;
}

.button:hover {
  filter: brightness(1.08);
}

/* The other way in, beside the first: as large, not as loud. */
.button.secondary {
  padding: 10px 17px;
  border: 1px solid var(--ink);
  background: var(--raised);
  color: var(--ink);
}

.button.secondary:hover {
  filter: none;
  background: var(--code-bg);
}

.quiet {
  font-weight: 500;
  text-decoration: none;
}

.quiet:hover {
  text-decoration: underline;
}

.shot {
  margin: 0;
}

.shot a {
  display: block;
}

.shot a:hover img {
  border-color: var(--muted);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--raised);
}

.shot figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

/* Sections */

section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
}

.intro {
  max-width: 680px;
  margin: 0 0 24px;
  color: var(--muted);
}

/* Features: text beside a screenshot, alternating sides. */

.feature {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
  padding: 40px 0;
}

.feature .text {
  padding-top: 8px;
}

.intro + .feature {
  padding-top: 16px;
}

.feature + .feature {
  border-top: 1px solid var(--line);
}

.feature:nth-of-type(even) .text {
  order: 2;
}

.feature p {
  margin: 0 0 12px;
}

.feature p:last-child {
  margin-bottom: 0;
}

.also {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 48px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.also li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.also strong {
  font-weight: 600;
}

/* Install */

/* Grid children otherwise grow to their widest line of code, past the screen. */
.steps > *,
.feature > * {
  min-width: 0;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 760px;
}

pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--code-bg);
  line-height: 1.55;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tabs label {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--raised);
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}

.tabs label:hover {
  border-color: var(--muted);
}

.tabs input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.tabs input:checked + label {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.snippet {
  display: none;
}

.snippet .install {
  margin-bottom: 8px;
}

.snippet p {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--muted);
}

/* A language with more than one MCP library: a second row, one snippet per library. */
.variants {
  margin: 10px 0 0;
}

.variants {
  gap: 4px;
}

.variants label {
  font-size: 13px;
  padding: 3px 9px;
}

/* The library row sits under its language: a quieter selected state than the row above. */
.variants input:checked + label {
  border-color: var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.variant {
  display: none;
  flex-basis: 100%;
  min-width: 0;
  margin-top: 6px;
}

.variants > p {
  flex-basis: 100%;
}

#ts-v1:checked ~ .ts-v1,
#ts-v2:checked ~ .ts-v2,
#py-v1:checked ~ .py-v1,
#py-v2:checked ~ .py-v2,
#py-fastmcp:checked ~ .py-fastmcp,
#go-sdk:checked ~ .go-sdk,
#go-mcpgo:checked ~ .go-mcpgo,
#php-laravel:checked ~ .php-laravel,
#php-sdk:checked ~ .php-sdk {
  display: block;
}

#sdk-ts:checked ~ .snippets .ts,
#sdk-py:checked ~ .snippets .py,
#sdk-go:checked ~ .snippets .go,
#sdk-cs:checked ~ .snippets .cs,
#sdk-java:checked ~ .snippets .java,
#sdk-rust:checked ~ .snippets .rust,
#sdk-ruby:checked ~ .snippets .ruby,
#sdk-php:checked ~ .snippets .php {
  display: block;
}

.snippets {
  flex-basis: 100%;
  min-width: 0;
  margin-top: 6px;
}

.note {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--muted);
}

/* Pricing page: self-hosting and the two cloud plans as equals, a comparison, then the questions asked before choosing. */

.page-head {
  padding-bottom: 32px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--raised);
}

.plan h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.plan .for {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--muted);
}

.plan .price {
  margin: 0 0 4px;
  color: var(--muted);
}

.plan .price strong {
  color: var(--ink);
  font-size: 28px;
  font-weight: 600;
}

.plan ul {
  flex: 1;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.plan li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.plan .button {
  align-self: flex-start;
}

.plans + .note {
  max-width: 760px;
  margin-top: 20px;
}

.plans-note {
  margin-bottom: 72px;
}

.faq {
  max-width: 760px;
}

.compare-wrap {
  overflow-x: auto;
}

.compare {
  width: 100%;
  max-width: 900px;
  border-collapse: collapse;
  font-size: 15px;
}

.compare th,
.compare td {
  padding: 12px 16px 12px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare thead th {
  border-top: 0;
  font-weight: 600;
}

.compare tbody th {
  width: 28%;
  font-weight: 500;
}

.compare td {
  color: var(--muted);
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  padding: 14px 0;
  font-weight: 500;
  cursor: pointer;
}

.faq summary:hover {
  color: var(--accent);
}

.faq details p {
  margin: 0 0 16px;
  color: var(--muted);
}

/* Privacy */

.columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.columns p {
  margin: 0;
  color: var(--muted);
}

/* Footer */

footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

footer a {
  color: var(--muted);
}

footer a:hover {
  color: var(--ink);
}

/* Narrow screens */

@media (max-width: 820px) {
  .feature,
  .steps,
  .columns,
  .plans {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature:nth-of-type(even) .text {
    order: 0;
  }

  .also {
    grid-template-columns: 1fr;
  }

  section {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  /* Sides only: the header's own top and bottom padding stays. */
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .top {
    padding-top: 24px;
  }

  .top nav {
    gap: 16px;
  }

  /* Four links and the name do not fit a phone; GitHub is in the footer too. */
  .wide-only {
    display: none;
  }

  .hero {
    padding: 32px 0 32px;
  }

  .lead {
    font-size: 17px;
  }

  pre {
    padding: 12px 14px;
    font-size: 13px;
  }

  .feature {
    padding: 28px 0;
  }

  .also {
    margin-top: 16px;
  }
}

/* Terms and privacy: one column of text at a comfortable reading width. */

.legal {
  max-width: 760px;
  padding-top: 32px;
  padding-bottom: 72px;
}

/* Documentation: a menu, the page, and its own contents on wide screens. */

.docs {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 200px;
  gap: 48px;
  align-items: start;
  padding-top: 32px;
  padding-bottom: 72px;
}

.menu,
.toc {
  position: sticky;
  top: 24px;
  font-size: 15px;
}

.menu ul,
.toc ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.menu li,
.toc li {
  margin: 0;
}

.menu a,
.toc a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
  text-decoration: none;
}

.menu a:hover,
.toc a:hover {
  color: var(--ink);
}

.menu a[aria-current='page'] {
  color: var(--ink);
  font-weight: 600;
}

.toc a {
  font-size: 14px;
}

.toc .sub a {
  padding: 2px 0 2px 12px;
  font-size: 13px;
}

.menu-group {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.top nav a[aria-current='page'] {
  color: var(--ink);
}

.prose {
  min-width: 0;
  max-width: 740px;
}

.prose h1 {
  font-size: 36px;
  margin-bottom: 24px;
}

.prose h2 {
  margin: 48px 0 12px;
  font-size: 25px;
}

.prose h3 {
  margin: 32px 0 8px;
  font-size: 19px;
}

.prose h2 .anchor,
.prose h3 .anchor,
.prose h4 .anchor {
  color: inherit;
  text-decoration: none;
}

.prose h2 .anchor:hover,
.prose h3 .anchor:hover {
  text-decoration: underline;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 16px;
}

.prose li {
  margin: 4px 0;
}

.prose pre {
  margin: 0 0 20px;
}

.prose :not(pre) > code {
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--code-bg);
  font-size: 0.86em;
  /* A long identifier breaks rather than widening the page on a phone. */
  overflow-wrap: anywhere;
}

.prose blockquote {
  margin: 0 0 16px;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--line);
  color: var(--muted);
}

.prose .table {
  margin: 0 0 20px;
  overflow-x: auto;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.prose th,
.prose td {
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  font-weight: 600;
}

.prose .guides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}

.source {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .docs {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .toc {
    display: none;
  }
}

@media (max-width: 820px) {
  .docs {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 8px;
  }

  /* On a phone the menu is a row of links above the page, not a column beside it. */
  .menu {
    position: static;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }

  .menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 16px;
    margin-bottom: 12px;
  }

  .prose h1 {
    font-size: 30px;
  }

  .prose .guides {
    grid-template-columns: minmax(0, 1fr);
  }
}
