/* API section: copy on the left, request sample on the right. */

.api__grid {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.api__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.api__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--nx-white);
}

.api__text {
  color: var(--nx-400);
  font-size: 16px;
  line-height: 1.65;
  max-width: 48ch;
}

.api__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.api__list li {
  display: flex;
  gap: 10px;
  color: var(--nx-200);
  font-size: 15px;
}

.api__list img {
  width: 15px;
  height: 15px;
  margin-top: 3px;
}

.api__cta {
  align-self: flex-start;
  margin-top: 8px;
  border-radius: 12px;
  font-weight: 600;
}

/* Request sample */

.api__sample {
  background: var(--nx-ink-2);
  border: 1px solid var(--nx-ink-3);
  border-radius: var(--r-lg);
  overflow: hidden;
  min-width: 0;
}

.api__endpoint {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--nx-ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
}

.api__method {
  color: var(--nx-billing);
  letter-spacing: .06em;
}

.api__path {
  color: var(--nx-400);
}

.api__code {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--nx-200);
}

.api__code .tok-comment {
  color: var(--nx-500);
}

.api__code .tok-key {
  color: var(--nx-billing-2);
}

.api__code .tok-str {
  color: var(--nx-400);
}

.api__code .tok-num {
  color: var(--nx-warning);
}
