:root {
  --bg: #f4f7f4;
  --bg-soft: #edf3ef;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-muted: #f7faf8;
  --text: #101819;
  --muted: #58666a;
  --line: rgba(17, 24, 28, 0.12);
  --brand: #0f766e;
  --brand-strong: #075e58;
  --accent: #b83e27;
  --accent-strong: #96311f;
  --on-accent: #ffffff;
  --lime: #d8f36a;
  --shadow: 0 24px 72px rgba(18, 30, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 14% 4%, rgba(216, 243, 106, 0.48), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(15, 118, 110, 0.19), transparent 30%),
    linear-gradient(145deg, var(--bg), var(--bg-soft));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  padding: 18px 22px 28px;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.42);
  outline-offset: 3px;
}

.skip-link {
  background: var(--text);
  border-radius: 999px;
  color: var(--bg);
  font-weight: 950;
  left: 22px;
  padding: 10px 16px;
  position: fixed;
  text-decoration: none;
  top: 14px;
  transform: translateY(-140%);
  transition: transform 160ms ease;
  z-index: 20;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.topbar,
main,
footer {
  margin: 0 auto;
  max-width: 1180px;
}

.topbar,
.brand,
.topbar nav,
.actions,
footer,
footer nav {
  align-items: center;
  display: flex;
}

.topbar {
  justify-content: space-between;
  padding: 8px 0 42px;
}

.brand {
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  border-radius: 14px;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  overflow: hidden;
  width: 42px;
}

.brand-mark img {
  display: block;
  height: 100%;
  width: 100%;
}

.brand strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1;
}

.brand small {
  color: #7a878b;
  display: block;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  margin-top: 2px;
  text-transform: uppercase;
}

.topbar nav {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  gap: 4px;
  padding: 4px;
}

.topbar nav a,
footer nav a {
  align-items: center;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 850;
  min-height: 44px;
  padding: 10px 14px;
  text-decoration: none;
}

.topbar nav a:hover,
footer nav a:hover {
  background: var(--text);
  color: var(--bg);
}

.hero {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.72fr);
  padding-bottom: 34px;
}

.eyebrow {
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.2rem, 6vw, 5.7rem);
  letter-spacing: 0;
  line-height: 0.92;
  margin-bottom: 20px;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 0;
}

h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.intro {
  font-size: 1.12rem;
  max-width: 760px;
}

.actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  align-items: center;
  border-radius: 14px;
  display: inline-flex;
  flex-wrap: wrap;
  font-weight: 950;
  justify-content: center;
  min-height: 50px;
  min-width: 0;
  padding: 0 18px;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.primary {
  background: var(--accent);
  color: var(--on-accent);
}

.secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}

.code-card,
.stats article,
.steps article,
.example,
.endpoint-list article,
.schema article,
.plans article,
.errors article,
.support {
  backdrop-filter: blur(18px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.code-card {
  overflow: hidden;
}

.code-title {
  align-items: center;
  background: #101819;
  color: #fff;
  display: flex;
  font-size: 0.88rem;
  font-weight: 850;
  justify-content: space-between;
  padding: 14px 16px;
}

.code-title b {
  background: var(--lime);
  border-radius: 999px;
  color: var(--text);
  padding: 5px 9px;
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 18px;
  white-space: pre-wrap;
  width: 100%;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

pre code {
  color: #172126;
  line-height: 1.7;
  word-break: break-word;
}

.stats,
.steps,
.example-grid,
.endpoint-list,
.schema,
.plans,
.errors {
  display: grid;
  gap: 14px;
}

.stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding-bottom: 38px;
}

.stats article,
.steps article,
.plans article {
  padding: 18px;
}

.stats strong {
  color: var(--accent);
  display: block;
  font-size: 1.7rem;
  line-height: 1.1;
}

.stats span,
.schema span,
.errors span {
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding: 22px 0 42px;
}

.section-heading {
  margin-bottom: 18px;
  max-width: 820px;
}

.steps,
.plans {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps span {
  align-items: center;
  background: var(--text);
  border-radius: 999px;
  color: var(--bg);
  display: inline-flex;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  margin-bottom: 16px;
  width: 34px;
}

.example-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 14px;
}

.example h3 {
  padding: 18px 18px 0;
}

.endpoint-list article {
  padding: 20px;
}

.endpoint-list article > div {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.method {
  border-radius: 999px;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 950;
  padding: 6px 9px;
}

.get {
  background: var(--brand);
}

.post {
  background: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

table {
  border-collapse: collapse;
  margin-top: 14px;
  width: 100%;
}

th,
td {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 11px 0;
  text-align: left;
  vertical-align: top;
}

td:first-child,
th:first-child {
  color: var(--text);
  font-weight: 900;
  padding-right: 16px;
  width: 150px;
}

.schema {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.schema article,
.errors article {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: 170px minmax(0, 1fr);
  padding: 14px;
}

.schema code,
.errors b {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--brand-strong);
  font-weight: 950;
  padding: 8px 10px;
}

.plans strong {
  color: var(--accent);
  display: block;
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.plan-status {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
  border-radius: 999px;
  color: var(--brand-strong);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 950;
  margin: 4px 0 0;
  padding: 7px 10px;
}

.note {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
  border-radius: 14px;
  color: var(--brand-strong);
  font-weight: 850;
  margin-top: 14px;
  padding: 14px 16px;
}

.errors {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 24px;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  justify-content: space-between;
  padding-top: 22px;
}

@media (max-width: 920px) {
  .hero,
  .stats,
  .steps,
  .plans,
  .example-grid,
  .schema,
  .errors {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
  }

  .topbar nav {
    flex-wrap: wrap;
    width: 100%;
  }

  .code-card,
  .example,
  .endpoint-list article {
    min-width: 0;
  }

  .support,
  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width: 620px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding: 14px;
  }

  .topbar,
  main,
  footer,
  .hero,
  .code-card,
  .example,
  .support {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .hero,
  .hero > div,
  .code-card,
  .stats,
  .steps,
  .example-grid,
  .endpoint-list,
  .schema,
  .plans,
  .errors,
  .support,
  .section-heading {
    max-width: min(100%, 330px);
    width: min(100%, 330px);
  }

  h1 {
    font-size: clamp(1.82rem, 8.1vw, 2.12rem);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(1.75rem, 7.8vw, 2.2rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .intro {
    font-size: 1rem;
  }

  .actions {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .code-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  pre {
    padding: 14px;
  }

  pre code {
    font-size: 0.82rem;
  }

  .topbar nav a {
    font-size: 0.82rem;
    padding: 9px 10px;
  }

  .schema article,
  .errors article {
    grid-template-columns: 1fr;
  }

  td:first-child,
  th:first-child {
    width: auto;
  }
}
