/* ==========================================================================
   Static pages (about, pricing, 404) — deliberately separate from style.css
   so the tool UI keeps its own typography.
   ========================================================================== */
:root {
  --ink: #16181d;
  --ink-soft: #4b5058;
  --muted: #7c828c;
  --line: #e4e6ea;
  --bg: #f7f7f5;
  --card: #ffffff;
  --green: #15803d;
}

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

body.doc {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.doc a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.doc a:hover { color: #0f5c2c; }

.doc .site-head {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.doc .head-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 16px 24px;
}
.doc .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.2px;
}
.doc .brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: #11161d;
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.doc .brand-mark svg { width: 16px; height: 16px; }

.doc .wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.doc main { padding: 46px 0 64px; }

.doc h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 39px);
  line-height: 1.15;
  letter-spacing: -.9px;
  font-weight: 700;
}
.doc .updated {
  margin: 0 0 36px;
  font-size: 14px;
  color: var(--muted);
}
.doc h2 {
  margin: 44px 0 10px;
  font-size: clamp(20px, 2.6vw, 25px);
  line-height: 1.25;
  letter-spacing: -.35px;
  font-weight: 700;
}
.doc .updated + h2 { margin-top: 0; }
.doc h3 {
  margin: 26px 0 4px;
  font-size: 16.5px;
  line-height: 1.4;
  font-weight: 700;
}
.doc p { margin: 0 0 14px; max-width: 72ch; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin: 0 0 8px; }

/* pricing table */
.doc .plans {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 12px;
  font-size: 15px;
  background: var(--card);
  border: 1px solid var(--line);
}
.doc .plans th,
.doc .plans td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.doc .plans th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  background: #fbfbfa;
}
.doc .plans td:first-child { font-weight: 700; white-space: nowrap; }
.doc .plans td:nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc .plans tr:last-child td { border-bottom: 0; }

.doc .addon {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 10px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
}
.doc .addon input { margin-top: 4px; flex: none; }
.doc .note { font-size: 14px; color: var(--muted); margin: 0 0 8px; }

.doc .faq h3 { margin-top: 24px; }

/* footer — shared by the static pages and the home page */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 24px 24px 32px;
  text-align: center;
  line-height: 1.45;
  font-size: 13.5px;
  color: var(--muted);
}
.site-footer p { margin: 0 auto 8px; max-width: none; }
/* the article width limit must not reach the footer */
.doc .site-footer p { max-width: none; margin: 0 auto 8px; }
.site-footer nav { font-size: 13.5px; }
.site-footer nav a {
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
.site-footer nav a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .doc .wrap { padding: 0 18px; }
  .doc main { padding: 32px 0 48px; }
  .doc .plans { font-size: 14px; }
  .doc .plans th, .doc .plans td { padding: 10px; }
  .doc .plans td:first-child, .doc .plans td:nth-child(2) { white-space: normal; }
}

/* highlighted paragraph (disclaimer page) */
.doc .callout {
  margin: 0 0 30px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 8px;
}
/* ---------- inner page header navigation ---------- */
.doc .head-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.doc .site-nav { display: flex; align-items: center; gap: 20px; }
.doc .site-nav a, .doc .site-nav .nav-cur { font-size: 14px; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.doc .site-nav a:hover { color: var(--green); }
.doc .site-nav .nav-cur { color: var(--ink); }
@media (max-width: 560px) { .doc .site-nav { gap: 14px; } .doc .site-nav a, .doc .site-nav .nav-cur { font-size: 13px; } }
/* recover page */
.recover-form { margin: 22px 0 10px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; max-width: 560px; }
.recover-form label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.recover-form input { width: 100%; box-sizing: border-box; padding: 12px 14px; font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.recover-form input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.recover-btn { margin-top: 12px; width: 100%; padding: 13px 16px; font: inherit; font-weight: 700; color: #fff; background: var(--ink); border: 0; border-radius: 9px; cursor: pointer; }
.recover-btn:hover { background: #0d1319; }
.recover-btn:disabled { opacity: .6; cursor: default; }
.recover-status { min-height: 22px; margin: 0 0 18px; font-size: 15px; }
.recover-status.is-error { color: #b42318; }
.recover-status.is-ok { color: var(--green); }
.doc code { font-size: .92em; padding: 2px 6px; border-radius: 5px; background: #eef2f6; }
/* 触摸端：文档页的导航/页脚也补到 44px */
@media (max-width: 1024px) {
  .doc .site-nav { gap: 4px; }
  .doc .site-nav a, .doc .site-nav .nav-cur,
  .doc .brand {
    display: inline-flex; align-items: center;
    min-height: 44px; padding: 0 8px;
  }
  .doc .site-footer nav { display: flex; flex-wrap: wrap; gap: 2px 6px; }
  .doc .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
}
/* 页头 Feedback 按钮 + 页脚入口 */
.nav-feedback {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 0 12px; margin-left: 4px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.nav-feedback:hover { color: var(--ink); border-color: #c9d3de; }
.footer-feedback {
  background: none; border: 0; padding: 0; font: inherit; color: inherit;
  text-decoration: underline; cursor: pointer;
}
@media (max-width: 720px) {
  .nav-feedback { min-height: 44px; padding: 0 10px; font-size: 13px; }
}