.agent-guide {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  line-height: 1.65;
}
.agent-guide header, .agent-guide section {
  margin-bottom: 44px;
}
.agent-guide h1 {
  margin: 12px 0;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.agent-guide h2 {
  margin-bottom: 14px;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.agent-guide h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.agent-guide p, .agent-guide li {
  margin-bottom: 12px;
}
.agent-guide ul {
  padding-left: 24px;
}
.agent-guide a {
  color: #005b50;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.agent-guide code {
  overflow-wrap: anywhere;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.92em;
  background: rgb(17 17 17 / 0.06);
  padding: 1px 5px;
  border-radius: 5px;
}
.agent-guide pre code {
  background: none;
  padding: 0;
}

.agent-brand {
  display: inline-block;
  font-family: var(--display, Archivo, sans-serif);
  font-weight: 650;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--k-ink, #111);
  text-decoration: none;
}
.agent-hero {
  padding-bottom: 12px;
}
.agent-lead {
  max-width: 640px;
  font-size: 1.02rem;
  color: var(--k-ink-2, rgb(17 17 17 / .72));
}

.endpoint-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 22px 0 10px;
  padding: 16px 18px;
  background: var(--k-ink, #111);
  color: #fff;
  border-radius: 16px;
}
.endpoint-label {
  display: block;
  font-family: 'Space Grotesk', monospace;
  font-size: 9px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgb(255 255 255 / .55);
  margin-bottom: 6px;
}
.endpoint-url {
  font-family: 'Space Grotesk', monospace;
  font-size: 15px;
  color: #fff;
}
.endpoint-copy {
  min-height: 40px;
  padding: 0 18px;
  font-size: 12px;
}
.endpoint-note {
  font-size: 0.85rem;
  color: var(--k-ink-3, rgb(17 17 17 / .52));
}

.agent-section {
  padding-top: 28px;
  border-top: 1px solid var(--k-line, rgb(17 17 17 / .1));
}
.agent-note {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--k-teal-soft, rgb(50 148 131 / .12));
  border-left: 3px solid var(--k-teal, #329483);
  border-radius: 8px;
  font-size: 0.9rem;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.client-card {
  background: var(--k-glass, rgb(255 255 255 / .72));
  border: 1px solid var(--k-line, rgb(17 17 17 / .1));
  border-radius: 16px;
  padding: 16px 18px;
}
.client-desc {
  font-size: 0.85rem;
  color: var(--k-ink-2, rgb(17 17 17 / .72));
  margin-bottom: 10px;
}
.client-card pre,
.playground-output {
  background: var(--k-ink, #111);
  color: #e8e8e8;
  border-radius: 10px;
  padding: 14px;
  font-size: 11.5px;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre;
}
.client-card pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.playground {
  margin-top: 16px;
}
.playground-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.playground-buttons button {
  padding: 8px 14px;
  border: 1px solid var(--k-line, rgb(17 17 17 / .1));
  border-radius: 99px;
  background: #fff;
  font-family: 'Space Grotesk', monospace;
  font-size: 11.5px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.playground-buttons button:hover {
  border-color: var(--k-teal, #329483);
  background: var(--k-teal-soft, rgb(50 148 131 / .12));
}
.playground-buttons button:disabled {
  opacity: .5;
  cursor: default;
}
.playground-status {
  min-height: 20px;
  font-size: 0.82rem;
  color: var(--k-ink-3, rgb(17 17 17 / .52));
  margin: 10px 0 6px;
}
.playground-output {
  max-height: 420px;
  overflow: auto;
  margin: 0;
}
.playground-output code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: 11.5px;
  white-space: pre;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.catalog-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.catalog-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--k-line, rgb(17 17 17 / .08));
  font-size: 0.9rem;
}
.catalog-list li:last-child {
  border-bottom: none;
}
.catalog-list code {
  display: inline-block;
  margin-bottom: 2px;
  color: var(--k-teal, #005b50);
  font-weight: 600;
}

.faq details {
  border: 1px solid var(--k-line, rgb(17 17 17 / .1));
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
  background: var(--k-glass, rgb(255 255 255 / .72));
}
.faq summary {
  cursor: pointer;
  font-weight: 550;
  font-size: 0.95rem;
}
.faq details p {
  margin: 10px 0 2px;
  font-size: 0.9rem;
  color: var(--k-ink-2, rgb(17 17 17 / .72));
}

.limits-grid {
  display: grid;
  gap: 10px;
  margin: 14px 0 20px;
}
.limits-grid p {
  padding: 12px 16px;
  background: var(--k-teal-soft, rgb(50 148 131 / .1));
  border-radius: 10px;
  font-size: 0.9rem;
}
.agent-links {
  font-size: 0.92rem;
}

@media (max-width: 480px) {
  .agent-guide {
    padding: 24px 16px 40px;
  }
  .endpoint-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
