:root {
  --bg: #f4f3ef;
  --paper: #fffcf8;
  --ink: #171717;
  --muted: #5e5c56;
  --faint: #8b887f;
  --line: rgba(23, 23, 23, 0.1);
  --line-strong: rgba(23, 23, 23, 0.16);
  --pine: #1c3b34;
  --pine-soft: #e7efe9;
  --shadow: 0 24px 60px rgba(23, 23, 23, 0.06);
  --radius: 18px;
  --max: 1120px;
  --header: 72px;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --zh: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 30;
}
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(244, 243, 239, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.mark { width: 22px; height: 22px; flex: none; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn,
.nav-links .btn:hover { color: #f7f6f3; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 11px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 620;
  letter-spacing: -0.01em;
}
.btn-primary { background: var(--ink); color: #f7f6f3; }
.btn-primary:hover { background: #2c2c2c; }
.btn-secondary { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { background: rgba(255, 252, 248, 0.8); }
.btn.is-disabled {
  background: transparent;
  color: var(--faint);
  border-color: var(--line);
  pointer-events: none;
}
.hero { padding: 72px 0 28px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--pine);
  background: var(--pine-soft);
  border-radius: 999px;
  padding: 5px 10px 5px 8px;
  font-size: 12px;
  font-weight: 650;
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--pine); display: block; }
h1 {
  font-family: var(--display);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-size: clamp(40px, 5.4vw, 68px);
}
.lede { margin-top: 20px; max-width: 540px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.preview {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.preview-top, .lang {
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.preview-top { display: flex; justify-content: space-between; margin-bottom: 18px; }
.lang { margin-bottom: 8px; }
.quote {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}
.quote.zh { font-family: var(--zh); font-weight: 500; letter-spacing: 0; }
.rule { height: 1px; background: var(--line); margin: 18px 0; }
.preview-note { margin-top: 16px; color: var(--faint); font-size: 12px; }
section { padding: 84px 0; }
.section-title {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 18ch;
}
.section-copy { margin-top: 16px; max-width: 640px; color: var(--muted); font-size: 17px; }
.cards, .steps { display: grid; gap: 14px; margin-top: 36px; }
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
}
.card h3, .step h3 { font-size: 16px; letter-spacing: -0.02em; margin-bottom: 8px; }
.card p, .step p { color: var(--muted); font-size: 14.5px; }
.step { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.step span { display: block; color: var(--faint); font-size: 13px; letter-spacing: 0.08em; margin-bottom: 12px; }
.pricing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 40px;
  align-items: center;
}
.price-card { background: var(--ink); color: #f6f4ef; border-radius: 24px; padding: 28px; }
.plan { color: rgba(246, 244, 239, 0.62); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.price {
  font-family: var(--display);
  font-size: 64px;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 10px 0 6px;
}
.once { color: rgba(246, 244, 239, 0.78); margin-bottom: 18px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; }
.price-card li { padding: 8px 0; border-top: 1px solid rgba(246, 244, 239, 0.12); }
.price-card .btn { width: 100%; background: #f6f4ef; color: var(--ink); }
.price-card .btn:hover { background: #fff; }
.download-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.note { margin-top: 14px; color: var(--faint); font-size: 13px; max-width: 62ch; }
.note a { color: var(--ink); }
.faq { max-width: 760px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 630;
  letter-spacing: -0.02em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:after { content: "+"; color: var(--faint); }
.faq-item[open] summary:after { content: "–"; }
.faq-item p { color: var(--muted); padding-bottom: 18px; max-width: 62ch; }
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.footer-name { font-weight: 650; letter-spacing: -0.03em; }
.footer-copy { color: var(--muted); margin-top: 8px; max-width: 38ch; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: flex-end; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--ink); }
.legal-line {
  margin-top: 28px;
  color: var(--faint);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.legal-line a { color: var(--muted); }
.doc { padding: 48px 0 80px; }
.doc-inner { max-width: 740px; }
.doc h1 { font-size: clamp(40px, 6vw, 56px); margin-bottom: 10px; }
.updated { color: var(--faint); font-size: 14px; margin-bottom: 8px; }
.doc h2 { font-size: 20px; letter-spacing: -0.02em; margin: 32px 0 8px; }
.doc p, .doc li { color: #3f3e3a; }
.doc p + p { margin-top: 10px; }
.doc ul, .doc ol { margin: 10px 0 0; padding-left: 18px; }
.doc li + li { margin-top: 6px; }
.doc .zh { display: block; margin-top: 2px; font-family: var(--zh); }
.doc a { color: var(--pine); }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; }
@media (max-width: 900px) {
  .hero-grid, .pricing, .footer-grid, .cards, .steps { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .section-title { max-width: none; }
  .site-header { height: auto; min-height: var(--header); align-items: stretch; }
  .site-header .wrap { flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-links {
    display: none;
    position: static;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
    background: transparent;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 16px; }
  .hero { padding-top: 28px; }
  section { padding: 64px 0; }
  .price { font-size: 56px; }
}
@media (max-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  h1 { font-size: 36px; }
  .lede { font-size: 16px; }
  .hero-actions .btn, .download-row .btn, .price-card .btn { width: 100%; }
  .preview { padding: 16px; }
  .quote { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs { margin-bottom: 18px; color: var(--faint); font-size: 13px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.post-list { list-style: none; padding: 0; margin: 28px 0 0; }
.post-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.post-list li:last-child { border-bottom: 1px solid var(--line); }
.post-list a { color: var(--ink); text-decoration: none; font-weight: 630; letter-spacing: -0.02em; }
.post-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-list p { margin-top: 6px; }
.post-date { display: block; color: var(--faint); font-size: 13px; margin-bottom: 4px; }

.pricing-page { padding: 56px 0 80px; }
.pricing-page h1 { font-size: clamp(40px, 6vw, 64px); max-width: 12ch; }
.account-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.account-bar p { color: var(--muted); font-size: 14px; }
.account-actions { display: flex; gap: 8px; flex: none; }
.plan-group { margin-top: 36px; }
.plan-group h2 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 560;
  letter-spacing: -0.03em;
}
.plan-group > p { margin-top: 8px; color: var(--muted); max-width: 62ch; }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.plan-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
}
.plan-card.is-featured { background: var(--ink); color: #f6f4ef; border-color: transparent; }
.plan-kicker {
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plan-card.is-featured .plan-kicker,
.plan-card.is-featured .plan-summary,
.plan-card.is-featured .plan-card li { color: rgba(246, 244, 239, 0.78); }
.plan-card h3 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 560;
  letter-spacing: -0.03em;
  margin: 8px 0 0;
}
.plan-price {
  font-family: var(--display);
  font-size: 48px;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 14px 0 8px;
}
.plan-summary { color: var(--muted); font-size: 15px; }
.plan-card ul { list-style: none; padding: 0; margin: 16px 0 22px; }
.plan-card li { padding: 8px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.plan-card.is-featured li { border-top-color: rgba(246, 244, 239, 0.12); }
.plan-card .btn { width: 100%; margin-top: auto; }
.plan-card.is-featured .btn { background: #f6f4ef; color: var(--ink); }
.plan-card.is-featured .btn:hover { background: #fff; }
.purchase-status { min-height: 1.4em; margin-top: 16px; color: var(--pine); font-size: 14px; }
.purchase-status.is-error { color: #8a3b32; }
.login-dialog {
  width: min(420px, calc(100% - 32px));
  border: none;
  border-radius: 18px;
  padding: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.login-dialog::backdrop { background: rgba(23, 23, 23, 0.45); }
.login-dialog h2 { font-family: var(--display); font-size: 32px; font-weight: 560; letter-spacing: -0.03em; }
.login-dialog p { margin: 10px 0 18px; color: var(--muted); }
.login-dialog .btn { width: 100%; margin-top: 8px; }
@media (max-width: 800px) {
  .plan-grid, .account-bar { grid-template-columns: 1fr; }
  .account-bar { flex-direction: column; align-items: stretch; }
  .account-actions { width: 100%; }
  .account-actions .btn, .plan-card .btn { width: 100%; }
}
