:root {
  --paper: #f3f0e8;
  --paper-2: #e6e1d4;
  --ink: #141816;
  --muted: #3c4a43;
  --line: rgba(20, 24, 22, 0.14);
  --forest: #14352a;
  --green: #176b48;
  --code: #101815;
  --code-text: #e7f2ec;
  --code-dim: #9db5a8;
  --max: 1120px;
  --serif: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(20, 24, 22, 0.045) 0.7px, transparent 0.7px);
  background-size: 16px 16px;
}

a {
  color: var(--green);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--forest);
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 5;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(243, 240, 232, 0.92);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-bar,
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  width: 1.7rem;
  height: 1.7rem;
  color: var(--forest);
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.nav a.button {
  color: #f6f3ec;
}

.nav a.button:hover {
  color: #fff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: var(--forest);
  color: #f6f3ec;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.button:hover {
  background: #0e261e;
  color: #fff;
}

.button-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(20, 24, 22, 0.35);
}

.button-ghost:hover {
  background: rgba(20, 53, 42, 0.06);
  color: var(--ink);
}

.button-small {
  min-height: 2.35rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.92rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
  padding: 4.5rem 0 3rem;
}

.kicker {
  margin: 0 0 0.8rem;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 4.6rem);
  max-width: 9ch;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero-meta {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.terminal {
  margin: 0;
  background: var(--code);
  color: var(--code-text);
  border-radius: 16px;
  box-shadow: 0 24px 50px rgba(16, 24, 21, 0.16);
  overflow: hidden;
}

.terminal-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(231, 242, 236, 0.08);
  color: var(--code-dim);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.dots {
  display: inline-flex;
  gap: 0.35rem;
}

.dots i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #2a3b34;
  display: block;
}

.terminal-title {
  letter-spacing: 0.02em;
}

.copy {
  border: 1px solid rgba(231, 242, 236, 0.28);
  border-radius: 999px;
  background: transparent;
  color: var(--code-text);
  font: inherit;
  cursor: pointer;
  padding: 0.2rem 0.65rem;
}

.copy:hover,
.copy:focus-visible {
  color: #fff;
}

.terminal-body,
.terminal-response {
  margin: 0;
  padding: 1rem 1.05rem 1.1rem;
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.65;
}

.terminal-response {
  border-top: 1px solid rgba(231, 242, 236, 0.08);
  color: #c5ddd1;
}

.band {
  padding: 1.5rem 0 3.2rem;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: 1rem 2rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.section-head h2,
.docs h2,
.start h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.7rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.55);
  overflow: hidden;
}

.checks li {
  padding: 1.2rem 1.15rem 1.3rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.checks li:nth-child(3n) {
  border-right: 0;
}

.checks li:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.checks h3,
.plan h3,
.steps h3 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
}

.checks p,
.plan-note,
.steps p,
.docs p,
.endpoints dd {
  margin: 0;
  color: var(--muted);
}

.status {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--forest);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.plan {
  margin: 0;
  padding: 1.3rem 1.2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.72);
}

.plan-featured {
  background: var(--forest);
  border-color: var(--forest);
  color: #f4f1e8;
}

.plan-featured .plan-note,
.plan-featured .quota span {
  color: #c9ddd3;
}

.price {
  margin: 0.7rem 0 0.15rem;
  font-family: var(--serif);
  font-size: 3rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.quota {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.92rem;
}

.quota span,
.plan-note {
  font-family: var(--sans);
}

.plan-note {
  margin-top: 0.9rem;
}

.overage {
  margin: 1rem 0 0;
  color: var(--muted);
  max-width: 46rem;
}

.docs {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1.5rem 2.5rem;
  align-items: start;
  padding-top: 0.5rem;
}

.docs h2 {
  margin-bottom: 0.7rem;
}

.text-link {
  font-weight: 560;
}

.endpoints {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.endpoints div {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.endpoints dt {
  font-family: var(--mono);
  font-size: 0.92rem;
}

.endpoints dd {
  margin-top: 0.25rem;
}

.steps {
  list-style: none;
  margin: 0 0 0.4rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  counter-reset: step;
}

.steps li {
  padding: 1.15rem 1.1rem 1.25rem;
  border-top: 2px solid var(--forest);
  background: rgba(255, 252, 247, 0.55);
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.7rem;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.start .actions {
  margin-top: 1.3rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}

.footer-bar {
  min-height: 4.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-bar p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

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

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero,
  .section-head,
  .docs,
  .checks,
  .plans,
  .steps {
    grid-template-columns: 1fr;
  }

  .checks li,
  .checks li:nth-child(3n),
  .checks li:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .checks li:last-child {
    border-bottom: 0;
  }

  h1 {
    max-width: 12ch;
  }

  .hero {
    padding-top: 2.8rem;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--max), calc(100% - 1.5rem));
  }

  .header-bar,
  .footer-bar {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.85rem 0;
  }

  .nav {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
