:root {
  --bg: #f3eee4;
  --bg-deep: #e8e1d3;
  --ink: #14110e;
  --muted: #5c554c;
  --line: #d3cab9;
  --card: #fffcf7;
  --accent: #b12c16;
  --accent-hover: #8c2210;
  --forest: #2a4a38;
  --highlight: #f6e08a;
  --shadow: 0 18px 40px rgba(20, 17, 14, 0.08);
  --max: 1120px;
  --text: "Source Sans 3", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --display: "Fraunces", "Songti SC", "Noto Serif SC", Georgia, serif;
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

html[lang="zh-Hans"] body {
  font-size: 17px;
  line-height: 1.75;
}

html[lang="zh-Hans"] h1,
html[lang="zh-Hans"] h2,
html[lang="zh-Hans"] h3,
html[lang="zh-Hans"] .lead,
html[lang="zh-Hans"] p,
html[lang="zh-Hans"] li {
  line-break: strict;
  word-break: keep-all;
}

.nowrap { white-space: nowrap; }


img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.16em; }
a:hover { color: var(--accent-hover); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.wordmark img { width: 36px; height: 36px; border-radius: 8px; }

.nav {
  display: flex;
  align-items: center;
  gap: 6px 22px;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--accent); }
.nav .lang {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--card); color: var(--ink); }

.hero {
  padding: 72px 0 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
h1, h2, h3, .display {
  font-family: var(--display);
  letter-spacing: -0.03em;
  line-height: 1.12;
  font-weight: 560;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.3rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.25rem; }
.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.6rem;
}
html[lang="zh-Hans"] .lead { font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.slips {
  position: relative;
  min-height: 340px;
}
.slip {
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: 14px;
  width: min(280px, 100%);
  box-shadow: var(--shadow);
  position: absolute;
}
.slip-a { top: 8px; left: 0; transform: rotate(-6deg); }
.slip-b { top: 78px; right: 0; left: auto; transform: rotate(5deg); }
.slip-top, .slip-body { padding: 14px 18px; }
.slip-top {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.perf {
  height: 12px;
  background:
    radial-gradient(circle at 8px 6px, var(--bg) 5px, transparent 5.5px) -8px 0 / 16px 12px;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.slip-body .num {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 650;
  line-height: 1;
  color: var(--accent);
}
.slip-body .who { margin-top: 8px; font-weight: 700; }
.slip-body .meta { color: var(--muted); font-size: 0.95rem; margin-top: 2px; }

section { padding: 72px 0; }
.section-kicker {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.split-intro { max-width: 40rem; margin-bottom: 36px; }

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 26px;
  box-shadow: 0 1px 0 rgba(20, 17, 14, 0.04);
}
.card p:last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 0.4em; }

.steps { counter-reset: step; }
.steps article { position: relative; padding-top: 8px; }
.steps article::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.6rem;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.note {
  background: var(--bg-deep);
  border-radius: var(--radius);
  padding: 28px 32px;
  border: 1px solid var(--line);
}
.note h2, .note h3 { margin-top: 0; }

.price-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 30px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}
.price-card .plan { font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8rem; color: var(--muted); }
.price-card .amount {
  font-family: var(--display);
  font-size: 2.6rem;
  margin: 10px 0 4px;
  letter-spacing: -0.03em;
}
.price-card .amount span { font-size: 1rem; font-family: var(--text); color: var(--muted); font-weight: 600; }
.price-card ul {
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
  flex: 1;
}
.price-card li {
  padding: 0.35em 0 0.35em 1.15em;
  position: relative;
}
.price-card li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--forest);
  position: absolute;
  left: 0;
  top: 0.75em;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--muted); margin: 8px 0 6px; }

.legal {
  padding: 56px 0 80px;
}
.legal-body {
  max-width: 46rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 44px 48px;
}
.legal-body h1 { font-size: 2.2rem; }
.legal-body h2 { font-size: 1.35rem; margin-top: 1.6em; }
.legal-body p, .legal-body li { color: #2a261f; }
.draft-banner {
  background: #fff6d6;
  border: 1px dashed #b88914;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 0 0 24px;
  font-size: 0.95rem;
}
mark.placeholder {
  background: var(--highlight);
  color: inherit;
  padding: 0 0.22em;
  border-radius: 3px;
  font-style: normal;
  border-bottom: 1px dashed #8a6a10;
  white-space: nowrap;
}

.page-hero {
  padding: 56px 0 10px;
}
.page-hero .lead { margin-bottom: 0; }

.start-list { padding-left: 1.2em; }
.start-list li { margin: 0.4em 0; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}
.footer-grid a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 0.3em 0; }
.fineprint { margin-top: 28px; font-size: 0.85rem; }

.not-found { padding: 100px 0 120px; text-align: center; }

@media (max-width: 900px) {
  .hero, .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .slips {
    min-height: 0;
    height: auto;
    margin: 8px auto 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .slip { position: relative; width: min(260px, 86vw); }
  .slip-a { top: auto; left: auto; transform: rotate(-3deg); }
  .slip-b { top: auto; right: auto; left: auto; transform: rotate(3deg); }
  .grid-3, .grid-4, .price-table, .grid-2 { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .legal-body { padding: 28px 22px 36px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; }
  section { padding: 52px 0; }
  .hero { padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slip-a, .slip-b { transform: none; position: relative; top: auto; left: auto; right: auto; margin: 12px auto; }
  .slips { min-height: 0; }
}
