:root {
  --bg: #ffffff;
  --bg-soft: #f5f7f8;
  --bg-code: #0f1c22;
  --ink: #16232a;
  --ink-soft: #55686f;
  --line: #dfe6e8;
  --accent: #0f7d78;
  --accent-soft: #e2f2f0;
  --warn: #b8641f;
  --radius: 10px;
  --wrap: 1080px;
  font-synthesis-weight: none;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

code, pre, .mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(140%) blur(6px);
  z-index: 20;
}
header.site .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  letter-spacing: -.01em;
  color: var(--ink);
  font-size: 17px;
}
.brand svg { display: block; }
nav.main { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
nav.main a { color: var(--ink-soft); }
nav.main a.on { color: var(--ink); font-weight: 550; }
.btn {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 550;
  font-size: 15px;
  border: 1px solid var(--accent);
}
.btn:hover { text-decoration: none; background: #0c6a66; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--bg-soft); }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { padding: 74px 0 58px; border-bottom: 1px solid var(--line); }
.hero h1 {
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -.025em;
  margin: 0 0 16px;
  max-width: 17ch;
}
.hero p.lede { font-size: 19px; color: var(--ink-soft); max-width: 60ch; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 18px;
  font-weight: 600;
}

/* ---------- generic sections ---------- */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 10px; }
h3 { font-size: 17px; margin: 0 0 6px; }
.sub { color: var(--ink-soft); margin: 0 0 30px; max-width: 62ch; }

.grid { display: grid; gap: 22px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--bg);
}
.card p { color: var(--ink-soft); margin: 0; font-size: 15px; }
.card .ic {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 700;
}

/* ---------- code ---------- */
pre {
  background: var(--bg-code);
  color: #d8e6e4;
  padding: 18px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  line-height: 1.55;
  margin: 0 0 18px;
}
pre .k { color: #7fd1c8; }
pre .s { color: #e0c98a; }
pre .c { color: #64808a; }
code.inline {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); font-weight: 600; }
td.mono { font-size: 13.5px; }
.table-scroll { overflow-x: auto; }

/* ---------- metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.metric .n { font-size: 30px; font-weight: 650; letter-spacing: -.02em; }
.metric .l { color: var(--ink-soft); font-size: 14px; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.plan.mid { border-color: var(--accent); box-shadow: 0 6px 26px rgba(15,125,120,.09); }
.plan .price { font-size: 31px; font-weight: 650; letter-spacing: -.02em; margin: 12px 0 2px; }
.plan .per { color: var(--ink-soft); font-size: 14px; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; font-size: 15px; }
.plan li { padding: 7px 0 7px 24px; position: relative; color: var(--ink-soft); }
.plan li::before {
  content: "";
  position: absolute; left: 4px; top: 15px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-soft); border: 2px solid var(--accent);
}

/* ---------- docs layout ---------- */
.doc { display: grid; grid-template-columns: 220px 1fr; gap: 46px; align-items: start; }
.toc { position: sticky; top: 86px; font-size: 14.5px; }
.toc a { display: block; padding: 5px 0; color: var(--ink-soft); }
.toc a.on { color: var(--accent); font-weight: 550; }
.toc strong { display: block; margin: 18px 0 4px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.doc-body h2 { scroll-margin-top: 86px; margin-top: 34px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p { color: var(--ink-soft); }
.note {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  margin: 0 0 18px;
}
.note.warn { border-color: var(--warn); background: #fbf1e6; }

/* ---------- forms ---------- */
form.box { max-width: 520px; }
label { display: block; font-size: 14px; font-weight: 550; margin: 16px 0 6px; }
input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
textarea { min-height: 128px; resize: vertical; }
.form-msg { margin-top: 14px; font-size: 15px; color: var(--accent); display: none; }

/* ---------- status pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink-soft); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2f9e6f; display: inline-block; }
.dot.warn { background: #d59b31; }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 44px 0 34px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 26px; }
footer.site h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin: 0 0 10px; }
footer.site a { color: var(--ink-soft); display: block; padding: 3px 0; }
footer.site .legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 880px) {
  .grid.c3, .grid.c2, .metrics, .plans, footer.site .cols { grid-template-columns: 1fr 1fr; }
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; }
  .hero h1 { font-size: 32px; }
}
@media (max-width: 560px) {
  nav.main { display: none; }
  .grid.c3, .grid.c2, .metrics, .plans, footer.site .cols { grid-template-columns: 1fr; }
  section { padding: 40px 0; }
}
