:root {
  --bg-top: #fbf5e8;
  --bg-bottom: #f3e8d2;
  --card: #fffdf7;
  --surface: #f6efe0;
  --ink: #2b2118;
  --muted: #6c5b4b;
  --accent: #d65734;
  --accent-dark: #b64324;
  --sage: #2b7a58;
  --amber: #e09f3e;
  --border: rgba(140, 106, 67, 0.18);
  --shadow: 0 12px 32px rgba(90, 58, 28, 0.09);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[data-lang="en"] .lang-zh { display: none !important; }
html[data-lang="zh"] .lang-en { display: none !important; }

body {
  margin: 0;
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  line-height: 1.65;
  background-color: var(--bg-top);
  background-image:
    radial-gradient(rgba(148, 114, 76, 0.14) 1.3px, transparent 1.3px),
    linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
  background-size: 22px 22px, 100% 100%;
  min-height: 100vh;
}

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

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(251, 245, 232, 0.86);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
  padding: 10px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 4px 10px rgba(80, 48, 22, 0.18);
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 7px 12px;
  border-radius: 999px;
}
.nav a:hover, .nav a.active {
  color: var(--accent);
  background: rgba(214, 87, 52, 0.11);
  text-decoration: none;
}
.lang-btn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Hero */
.hero {
  padding: 56px 0 36px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(43, 122, 88, 0.12);
  color: var(--sage);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 52ch;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), #e38232);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(214, 87, 52, 0.28);
  border: none;
  cursor: pointer;
}
.btn-primary:hover { text-decoration: none; filter: brightness(1.04); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge {
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* Tactile Pegboard Mockup */
.pegboard-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.pegboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.pegboard-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
}
.pegboard-title img { width: 42px; height: 42px; border-radius: 10px; }
.pill-sage {
  background: rgba(43, 122, 88, 0.14);
  color: var(--sage);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}
.pegboard-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 6px;
  padding: 14px;
  background: #f5ede0;
  border: 2px solid rgba(168, 140, 104, 0.32);
  border-radius: 18px;
}
.bead {
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bead.empty::after {
  content: "";
  width: 24%;
  height: 24%;
  border-radius: 50%;
  background: rgba(166, 144, 114, 0.45);
}
.bead.on {
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.45), 0 2px 4px rgba(0,0,0,0.18);
}
.bead.on::after {
  content: "";
  width: 32%;
  height: 32%;
  border-radius: 50%;
  background: #f5ede0;
}
.b-red { background: #d64538; }
.b-green { background: #2f7d5b; }
.b-stem { background: #5a8f49; }
.b-cream { background: #f2c96b; }
.pegboard-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

/* Sections & Cards */
section { padding: 28px 0; }
.section-head { margin-bottom: 20px; }
.section-head h2 { font-size: 28px; margin: 0 0 6px; }
.section-head p { margin: 0; color: var(--muted); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(214, 87, 52, 0.12);
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 12px;
}

/* Pricing Strip */
.pricing-banner {
  background: linear-gradient(135deg, #fffdf7, #f8efe0);
  border: 1.5px solid rgba(214, 87, 52, 0.28);
  border-radius: 26px;
  padding: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.price-tag {
  font-size: 36px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

/* Legal & Support prose */
.doc-shell {
  padding: 40px 0 64px;
  max-width: 820px;
}
.doc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.doc-card h1 { font-size: 34px; margin-bottom: 8px; }
.doc-card h2 { font-size: 20px; margin: 26px 0 8px; color: var(--ink); }
.doc-card p, .doc-card li { color: var(--muted); font-size: 15px; }
.doc-card ul { padding-left: 20px; }
.doc-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.callout {
  background: rgba(43, 122, 88, 0.09);
  border: 1px solid rgba(43, 122, 88, 0.24);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 18px 0;
}
.callout strong { color: var(--sage); }

.support-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  margin: 18px 0 24px;
}
.faq-item {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.faq-item:first-of-type { border-top: none; }
.faq-item h3 { margin: 0 0 6px; font-size: 16.5px; color: var(--ink); }

/* Footer */
footer {
  margin-top: 36px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13.5px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .doc-card { padding: 22px; }
}
