:root {
  --bg: #f9fafb;
  --bg-elev: #ffffff;
  --bg-soft: #f3f4f6;
  --text: #030712;
  --text-muted: #4b5563;
  --text-faint: #6b7280;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --btn: #030712;
  --btn-text: #ffffff;
  --btn-hover: #1f2937;
  --accent: #059669;
  --accent-soft: #ecfdf5;
  --accent-text: #047857;
  --warn-bg: #fffbeb;
  --warn-border: #fde68a;
  --warn-text: #92400e;
  --code-bg: #0b1220;
  --code-panel: #111827;
  --code-text: #d1d5db;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  --radius: 8px;
  --radius-sm: 6px;
  --header-h: 64px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

html.dark {
  --bg: #030712;
  --bg-elev: #0b1220;
  --bg-soft: #111827;
  --text: #f9fafb;
  --text-muted: #d1d5db;
  --text-faint: #9ca3af;
  --border: #1f2937;
  --border-strong: #374151;
  --btn: #ffffff;
  --btn-text: #030712;
  --btn-hover: #e5e7eb;
  --accent-soft: rgba(16, 185, 129, 0.12);
  --accent-text: #34d399;
  --warn-bg: #1c1917;
  --warn-border: #44403c;
  --warn-text: #fde68a;
  --code-bg: #020617;
  --code-panel: #0b1220;
  --shadow: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

.preview-flag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  margin-left: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elev) 95%, transparent);
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 80rem;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
}
.brand-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand-split {
  width: 1px;
  height: 16px;
  background: var(--border-strong);
}
.brand-sub {
  color: var(--text-faint);
  font-size: 12px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}
.nav a {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
}
.nav a:hover, .nav a.active {
  color: var(--text);
  background: var(--bg-soft);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.ghost-btn, .icon-btn, .primary-btn, .secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
}
.icon-btn:hover { background: var(--bg-soft); color: var(--text); }
.ghost-btn {
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}
.primary-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  background: var(--btn);
  color: var(--btn-text);
  font-size: 14px;
  font-weight: 600;
}
.primary-btn:hover { background: var(--btn-hover); }
.secondary-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
}
.secondary-btn:hover { background: var(--bg-soft); }
.menu-btn { display: none; }

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 24px;
}
.hero {
  padding: 72px 0 40px;
  text-align: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
  background: var(--accent-soft);
  color: var(--accent-text);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--accent);
}
h1 {
  margin: 20px 0 0;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.lede {
  max-width: 44rem;
  margin: 18px auto 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}
.contact-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 28px;
  padding: 10px 18px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  border-radius: 12px;
  font-size: 14px;
}
.contact-pill a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.checks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  color: var(--text-faint);
  font-size: 13px;
}
.checks span::before {
  content: "✓";
  margin-right: 6px;
  color: var(--accent);
  font-weight: 700;
}

.card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elev);
  margin-top: 40px;
  text-align: left;
}
.card-row a {
  display: block;
  padding: 22px 22px 24px;
  border-right: 1px solid var(--border);
}
.card-row a:last-child { border-right: 0; }
.card-row a:hover { background: var(--bg-soft); }
.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-size: 16px;
}
.card-icon.pink { background: #fdf2f8; }
.card-icon.blue { background: #eff6ff; }
.card-icon.green { background: #ecfdf5; }
html.dark .card-icon { filter: saturate(0.7) brightness(0.8); }
.card-row h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 650;
}
.card-row p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}
.mini-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 600;
}

.code-block {
  margin-top: 28px;
  background: var(--code-panel);
  color: var(--code-text);
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  box-shadow: var(--shadow);
}
.code-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.code-tabs { display: flex; gap: 4px; }
.code-tabs button {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.code-tabs button.active {
  background: #1f2937;
  color: #fff;
}
.copy-btn {
  margin-left: auto;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9ca3af;
  font-size: 12px;
  cursor: pointer;
}
.copy-btn:hover { color: #fff; }
pre {
  margin: 0;
  padding: 20px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: #d1d5db;
}
pre .c { color: #6b7280; }
pre .k { color: #93c5fd; }
pre .s { color: #86efac; }

.section {
  padding: 72px 0;
}
.section.alt { background: #fffbeb; }
html.dark .section.alt { background: #111827; }
.kicker {
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 8px;
}
.section h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.section .sub {
  margin: 10px 0 0;
  color: var(--text-muted);
  max-width: 40rem;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
  margin-top: 32px;
}
.contact-card, .spec-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}
.contact-card .label {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.contact-card strong { font-size: 15px; }
.contact-card a { color: #b45309; font-weight: 600; }
html.dark .contact-card a { color: #fbbf24; }
.spec-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 16px;
  font-size: 14px;
}
.spec-card dt { color: var(--text-faint); }
.spec-card dd { margin: 0; font-family: var(--mono); font-size: 13px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.feature {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}
.feature h3 { margin: 0 0 8px; font-size: 16px; }
.feature p { margin: 0; color: var(--text-muted); font-size: 14px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.step {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}
.step .num {
  font-family: var(--mono);
  color: var(--text-faint);
  font-size: 13px;
  margin-bottom: 10px;
}
.step h3 { margin: 0 0 8px; font-size: 16px; }
.step p { margin: 0 0 14px; color: var(--text-muted); font-size: 14px; }
.step a { color: var(--accent-text); font-size: 13px; font-weight: 650; }

.price-teaser {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-elev);
  margin-top: 28px;
}

.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 4px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-faint); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq .answer {
  padding: 0 4px 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.cta-band {
  text-align: center;
  padding: 64px 0 80px;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; letter-spacing: -0.03em; }
.cta-band p { color: var(--text-muted); margin: 12px 0 24px; }
.cta-band .hero-actions { margin-top: 0; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--text-faint);
  font-size: 13px;
}
.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-inner nav { display: flex; gap: 16px; }

.pricing-wrap {
  max-width: 80rem;
  margin: 0 auto;
  padding: 28px 32px 64px;
}
.pricing-hero {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.pricing-hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pricing-hero h1 {
  margin: 8px 0 10px;
  font-size: 36px;
  line-height: 40px;
  letter-spacing: 0;
}
.pricing-hero .lede {
  margin: 0;
  text-align: left;
  max-width: 48rem;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}
.metrics {
  display: flex;
  flex-shrink: 0;
}
.metric {
  min-width: 108px;
  padding: 4px 22px;
  border-left: 1px solid var(--border);
  text-align: left;
}
.metric:first-child { border-left: 0; }
.metric b {
  display: block;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.metric span { color: var(--text-faint); font-size: 13px; }

.pricing-toolbar {
  position: sticky;
  top: 64px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 -32px 32px;
  padding: 12px 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(12px);
}
.seg {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elev);
}
.seg button {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-faint);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.seg button.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
html.dark .seg button.active { background: var(--bg-soft); }
.seg .count {
  min-width: 22px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--bg-soft);
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 650;
  line-height: 20px;
  text-align: center;
}
.seg button.active .count { background: var(--bg-soft); color: var(--text-muted); }
.search-pair { display: flex; gap: 8px; align-items: center; }
.search-wrap { position: relative; }
.search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-faint);
}
.search-wrap input {
  width: 288px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elev);
  color: var(--text);
  padding: 8px 12px 8px 36px;
  font-size: 14px;
  outline: none;
}
.search-wrap input:focus { border-color: #9ca3af; }
.icon-refresh {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elev);
  color: var(--text-muted);
  cursor: pointer;
}

.pg { margin: 0 0 36px; }
.pg-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 12px;
}
.pg-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}
.pg-head p { margin: 4px 0 0; color: var(--text-muted); font-size: 14px; }
.pg-count { color: var(--text-faint); font-size: 14px; padding-bottom: 2px; }

.pg-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.pg-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.pg-ident { display: flex; align-items: center; gap: 12px; }
.pg-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #ecfdf5;
  color: #047857;
  flex-shrink: 0;
}
.pg-ident strong { display: block; font-size: 14px; }
.pg-ident span { color: var(--text-faint); font-size: 12px; }
.rate-pick { position: relative; }
.rate-btn {
  min-height: 36px;
  padding: 6px 10px 6px 12px;
  border: 1px solid #111827;
  border-radius: 6px;
  background: #111827;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.rate-btn em {
  font-style: normal;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
}
.rate-btn .chev { font-size: 10px; opacity: 0.8; }
html.dark .rate-btn { background: #fff; color: #111827; border-color: #fff; }
html.dark .rate-btn em { background: rgba(17,24,39,0.12); }
.rate-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 180px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elev);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  z-index: 30;
}
.rate-pick.open .rate-menu { display: block; }
.rate-menu button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
.rate-menu button:hover, .rate-menu button.active { background: var(--bg-soft); }
.pg-card-head {
  background: var(--bg-soft);
}

.rate-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.rate-table th {
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-faint);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: transparent;
}
.rate-table td {
  text-align: left;
  vertical-align: top;
  padding: 22px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.empty-panel { margin: 8px 0 48px; }
.empty-card {
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--bg-elev);
  padding: 64px 24px;
  text-align: center;
  color: var(--text-muted);
}
.empty-card strong { display: block; color: var(--text); font-size: 16px; margin-bottom: 8px; }
.empty-card p { margin: 0; font-size: 14px; }
body[data-page="pricing"] .pricing-wrap { padding-bottom: 48vh; }
.rate-table tr:last-child td { border-bottom: 0; }
.rate-table tbody tr:hover { background: rgba(249, 250, 251, 0.7); }
html.dark .rate-table tbody tr:hover { background: rgba(17, 24, 39, 0.4); }
.rate-table col.col-model { width: 26%; }
.rate-table col.col-mode { width: 16%; }
.rate-table col.col-detail { width: 38%; }
.rate-table col.col-tier { width: 20%; }

.model-cell { display: flex; gap: 10px; align-items: flex-start; }
.model-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 1px;
}
.model-name { font-weight: 650; font-size: 14px; word-break: break-all; }
.copy-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  border: 0;
  background: none;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 12px;
  padding: 0;
}
.copy-name:hover { color: var(--text); }
.chip {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 12px;
}
.dl-price {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0;
}

.mx-scroll { overflow-x: auto; }
.mx-table { table-layout: auto; }
.mx-table thead th { text-align: center; font-variant-numeric: tabular-nums; }
.mx-table thead th:first-child { text-align: left; }
.mx-table tbody th {
  text-align: left;
  font-weight: 500;
  min-width: 168px;
  padding: 18px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}
.mx-table tbody th .model-name { font-size: 15px; word-break: break-word; }
.mx-meta {
  margin-top: 4px;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 500;
}
.mx-cell {
  text-align: center;
  vertical-align: middle;
  padding: 14px 12px;
}
.mx-cell.is-empty {
  color: var(--border-strong);
  font-size: 16px;
  letter-spacing: 0.08em;
}
.mx-price {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 92px;
  margin: 0 auto;
  padding: 4px 6px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: inherit;
  cursor: pointer;
}
.mx-price:hover { background: var(--bg-soft); }
.mx-price:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.mx-price b {
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.mx-price em {
  font-style: normal;
  color: var(--text-faint);
  font-size: 12px;
}
.mx-price span {
  font-size: 11px;
  color: var(--text-faint);
}
.mx-price:hover span,
.mx-price:focus-visible span { color: var(--text); }
html.dark .mx-cell.is-empty { color: var(--border); }
.dl-price div { min-width: 0; }
.dl-price dt { color: var(--text-faint); font-size: 12px; margin: 0 0 2px; }
.dl-price dd { margin: 0; font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.dl-price .orig { display: block; margin-top: 2px; color: var(--text-faint); font-size: 12px; font-weight: 400; }
.muted-cell { color: var(--text-faint); font-size: 13px; }
.note { color: var(--text-faint); font-size: 13px; margin: 8px 0 24px; }

body[data-page="docs"] { background: #f8fafc; }
.docs-shell {
  max-width: 72rem;
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
}
.docs-col { min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.docs-aside {
  position: sticky;
  top: 96px;
  align-self: start;
  height: fit-content;
  z-index: 21;
}
.docs-side {
  width: 240px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  font-size: 14px;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
}
.docs-anchor { scroll-margin-top: 96px; }
.docs-side a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
}
.docs-side a:hover { background: #f9fafb; color: #030712; }
.docs-side a.active {
  background: #f3f4f6;
  color: #030712;
  font-weight: 600;
}
.rec {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: #0369a1;
  background: #f0f9ff;
  border-radius: 999px;
  padding: 2px 8px;
}
.docs-paper {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elev);
  overflow: hidden;
  min-width: 0;
}
.docs-intro {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
}
.docs-hero {
  padding: 32px 28px;
  background: linear-gradient(to bottom right, #f0f9ff, #fff, #fffbeb);
  border-bottom: 1px solid #e5e7eb;
}
html.dark .docs-hero { background: linear-gradient(to bottom right, #082f49, #111827, #1c1917); }
.docs-path {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.docs-path .pill {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--text-muted);
  font-weight: 600;
}
.docs-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.docs-hero .lede {
  margin: 12px 0 0;
  text-align: left;
  max-width: 52rem;
  color: var(--text-muted);
  font-size: 15px;
}
.docs-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 28px;
}
.fact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.fact-ico {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #f3f4f6;
  color: #374151;
}
html.dark .fact { background: var(--bg-elev); }
.fact b { display: block; font-size: 14px; margin-bottom: 4px; }
.fact span { color: var(--text-muted); font-size: 13px; line-height: 1.55; }
.docs-jumps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 28px 28px;
  border-top: 1px solid #e5e7eb;
}
.jump {
  display: block;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  min-height: 148px;
  background: #fff;
  transition: background .15s, border-color .15s;
}
.jump:hover { background: #f0f9ff; border-color: #bae6fd; }
.jump .jump-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: 12px; }
.jump .ico {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; background: #ecfdf5; color: #047857;
}
.jump h3 { margin: 0 0 6px; font-size: 16px; }
.jump p { margin: 0 0 14px; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.jump em { font-style: normal; color: #2563eb; font-size: 13px; font-weight: 650; }
.docs-section {
  min-width: 0;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  padding: 28px;
  box-shadow: 0 10px 30px #0f172a0a;
  overflow-wrap: anywhere;
}
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.sec-head .docs-kicker { margin: 0; color: #0369a1; }
.sec-head h2 { margin: 0; }
.sec-ico {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 8px;
  display: grid; place-items: center; background: #f0f9ff; color: #0369a1;
}
.docs-body { padding: 0; }
.docs-kicker {
  margin: 36px 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}
.docs-body h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
.docs-body h3 { margin: 22px 0 8px; font-size: 1.05rem; }
.docs-body p, .docs-body li { color: var(--text-muted); }
.docs-body ul, .docs-body ol { padding-left: 18px; }
.docs-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0 12px;
}
.docs-step {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}
html.dark .docs-step { background: var(--bg-elev); }
.docs-step h3 { margin: 0 0 8px; }
.docs-step p { margin: 0; font-size: 13px; }
.kv {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 10px 0;
}
.kv-key { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--text-faint); }
.kv-desc { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.kv-val {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
}
.copy-mini {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  height: 28px;
  padding: 0 8px;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-muted);
}
.copy-mini:hover { color: var(--text); }
.code-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.code-panel {
  margin: 12px 0 0;
  background: #030712;
  color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
}
.code-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 16px;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  background: #111827;
}
.code-panel-head .titles { min-width: 0; }
.code-panel-head .label { margin: 0; color: #fff; font-size: 14px; font-weight: 600; line-height: 20px; }
.code-panel-head .lang {
  margin: 2px 0 0;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.code-panel-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 4.5rem;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #030712;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.code-panel-head button:hover { background: #e5e7eb; }
.code-panel pre {
  margin: 0;
  padding: 16px;
  font-size: 14px;
  line-height: 24px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: #e5e7eb;
}
.docs-table-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: auto;
  margin: 12px 0 20px;
}
.docs-table { width: 100%; border-collapse: collapse; }
.docs-table th, .docs-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: top;
}
.docs-table th { color: var(--text-faint); font-weight: 550; background: var(--bg-soft); }
.docs-table tr:last-child td { border-bottom: 0; }
.docs-table code { font-size: 12px; }
.tri {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0 18px;
}
.tri article {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.tri h3 { margin: 0 0 6px; font-size: 14px; }
.tri p { margin: 0; font-size: 13px; }
.callout {
  border: 1px solid var(--warn-border);
  background: var(--warn-bg);
  color: var(--warn-text);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
}
.docs-faq details { border-bottom: 1px solid var(--border); }
.docs-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-weight: 650;
  display: flex;
  justify-content: space-between;
}
.docs-faq summary::-webkit-details-marker { display: none; }
.docs-faq summary::after { content: "+"; color: var(--text-faint); font-weight: 400; }
.docs-faq details[open] summary::after { content: "–"; }
.docs-faq .answer { padding: 0 0 16px; color: var(--text-muted); font-size: 14px; }

@media (max-width: 1099px) {
  .docs-facts { grid-template-columns: 1fr 1fr; }
  .docs-jumps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .header-inner { padding: 0 16px; }
  .nav, .ghost-btn { display: none; }
  .menu-btn { display: inline-flex; }
  .card-row, .feature-grid, .steps, .split, .docs-layout, .docs-shell, .docs-facts, .docs-jumps, .docs-steps, .tri, .code-pair { grid-template-columns: 1fr; }
  .docs-side, .docs-aside { display: none; }
  .docs-shell { padding: 16px; grid-template-columns: 1fr; }
  .card-row a { border-right: 0; border-bottom: 1px solid var(--border); }
  .price-teaser, .group-head, .footer-inner, .pricing-hero, .pricing-toolbar, .pg-head, .pg-card-head { display: block; }
  .hero { padding-top: 48px; }
  .pricing-wrap { padding: 20px 16px 48px; }
  .metrics { margin-top: 16px; }
  .metric { padding: 4px 16px 4px 0; border-left: 0; }
  .search-wrap input { width: 100%; }
  .rate-table col.col-model, .rate-table col.col-mode, .rate-table col.col-detail, .rate-table col.col-tier { width: auto; }
  .dl-price { grid-template-columns: 1fr; }
}
