/* ChatMint · 记忆口袋 — static site styles (zero dependencies) */
:root {
  --mint: #10b981;
  --mint-2: #34d399;
  --mint-soft: #ecfdf5;
  --mint-ink: #047857;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --amber: #f59e0b;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -12px rgba(15, 23, 42, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", Roboto, sans-serif;
  --mono: "JetBrains Mono", "Fira Code", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: 0.92em; background: #f1f5f9; padding: 1px 6px; border-radius: 6px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; scroll-margin-top: 64px; }
.section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--mint-ink); background: var(--mint-soft); border: 1px solid #a7f3d0;
  padding: 4px 10px; border-radius: 999px;
}
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.25; margin: 14px 0 10px; letter-spacing: -0.02em; }
.section-head p { color: var(--muted); margin: 0; font-size: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 15px; line-height: 1;
  padding: 14px 22px; border-radius: 14px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--mint), #059669); box-shadow: 0 10px 24px -10px rgba(16, 185, 129, .7); }
.btn-primary:hover { box-shadow: 0 14px 28px -10px rgba(16, 185, 129, .85); }
.btn-ghost { color: var(--ink); background: #fff; border-color: var(--line); }
.btn-ghost:hover { border-color: #a7f3d0; background: var(--mint-soft); }
.btn-dark { color: #fff; background: var(--ink); }
.btn-dark:hover { background: #1e293b; }
.btn-sm { padding: 9px 14px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.brand small { font-weight: 600; color: var(--muted); font-size: 13px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a.link { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 8px 10px; border-radius: 8px; }
.nav a.link:hover { color: var(--mint-ink); background: var(--mint-soft); }
.lang-toggle {
  font: inherit; font-size: 12px; font-weight: 700; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 10px; cursor: pointer;
}
.lang-toggle:hover { border-color: #a7f3d0; }
.lang-toggle .on { color: var(--mint-ink); }

/* Hero */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(52, 211, 153, .22), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5.2vw, 52px); line-height: 1.12; letter-spacing: -0.03em; margin: 18px 0 18px; }
.hero h1 .grad { background: linear-gradient(135deg, var(--mint), var(--mint-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 17px; color: var(--ink-2); margin: 0 0 28px; max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; font-size: 13px; color: var(--muted); font-weight: 600; }
.trust-row span::before { content: "✓"; color: var(--mint); font-weight: 800; margin-right: 6px; }

/* Hero mock preview */
.preview { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mock-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; font-size: 12px;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--ink); color: #fff; font-weight: 700; font-size: 12px; }
.mock-bar img { width: 18px; height: 18px; }
.mock-bar .pro { margin-left: auto; background: #fbbf24; color: var(--ink); font-size: 10px; padding: 2px 7px; border-radius: 6px; }
.mock-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); font-weight: 700; color: var(--muted); font-size: 11px; text-align: center; }
.mock-tabs span { padding: 8px 2px; }
.mock-tabs .active { color: var(--mint-ink); box-shadow: inset 0 -2px 0 var(--mint); }
.mock-md { margin: 10px; background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 12px; font-family: var(--mono); font-size: 10.5px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.mock-md .h { color: #6ee7b7; font-weight: 700; }
.mock-md .m { color: #fbbf24; }
.mock-md .c { color: #93c5fd; }
.mock-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 10px 12px; }
.mock-actions span { text-align: center; padding: 7px 4px; border-radius: 9px; font-weight: 700; font-size: 10.5px; }
.mock-actions .a1 { background: var(--mint); color: #fff; }
.mock-actions .a2 { background: #f1f5f9; color: var(--ink-2); }

/* Card mock with theme variables */
.card-mock {
  --c-outer: #f1f5f9; --c-bg: #fff; --c-border: #e2e8f0; --c-text: #0f172a; --c-text2: #334155;
  --c-muted: #64748b; --c-accent: #10b981; --c-code: #f8fafc; --c-codeborder: #e2e8f0; --c-codetext: #1e293b;
  --c-head: var(--font);
  background: var(--c-outer); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow);
  transition: background .25s ease;
}
.card-mock[data-theme="midnight-dark"] { --c-outer: #020617; --c-bg: #0f172a; --c-border: #1e293b; --c-text: #f8fafc; --c-text2: #cbd5e1; --c-muted: #64748b; --c-accent: #34d399; --c-code: #020617; --c-codeborder: #1e293b; --c-codetext: #e2e8f0; }
.card-mock[data-theme="editorial-warm"] { --c-outer: #efe9df; --c-bg: #faf6f0; --c-border: #e5ddd0; --c-text: #292524; --c-text2: #44403c; --c-muted: #78716c; --c-accent: #b45309; --c-code: #f3ece1; --c-codeborder: #ded3c1; --c-codetext: #292524; --c-head: Georgia, "Songti SC", "STSong", "Noto Serif SC", serif; }
.card-mock[data-theme="terminal-mono"] { --c-outer: #010409; --c-bg: #0d1117; --c-border: #30363d; --c-text: #e6edf3; --c-text2: #c9d1d9; --c-muted: #8b949e; --c-accent: #3fb950; --c-code: #161b22; --c-codeborder: #30363d; --c-codetext: #79c0ff; --c-head: var(--mono); }
.card-inner {
  aspect-ratio: 3 / 4; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 14px;
  position: relative; overflow: hidden; padding: 16px 14px 34px; color: var(--c-text);
  transition: background .25s ease, color .25s ease;
}
.card-inner::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c-accent); }
.card-tag { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 8.5px; font-weight: 700; color: var(--c-accent); }
.card-tag span:last-child { color: var(--c-muted); font-weight: 500; }
.card-title { font-family: var(--c-head); font-weight: 800; font-size: 15px; line-height: 1.3; margin: 8px 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--c-border); }
.card-h2 { font-family: var(--c-head); font-weight: 800; font-size: 12px; border-left: 3px solid var(--c-accent); padding-left: 7px; margin: 8px 0 6px; }
.card-p { font-size: 10px; line-height: 1.7; color: var(--c-text); margin: 0 0 6px; }
.card-p code { background: var(--c-code); border: 1px solid var(--c-codeborder); color: var(--c-codetext); font-size: 9px; padding: 0 4px; }
.card-code { background: var(--c-code); border: 1px solid var(--c-codeborder); border-radius: 8px; padding: 6px 8px 7px; font-family: var(--mono); font-size: 8.5px; color: var(--c-codetext); line-height: 1.6; }
.card-code .dots { display: flex; gap: 4px; margin-bottom: 4px; }
.card-code .dots i { width: 6px; height: 6px; border-radius: 50%; display: block; }
.card-foot { position: absolute; left: 14px; right: 14px; bottom: 10px; display: flex; justify-content: space-between; font-size: 8.5px; color: var(--c-muted); border-top: 1px solid var(--c-border); padding-top: 6px; }
.card-foot b { color: var(--c-accent); font-family: var(--mono); }
.theme-switch { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; grid-column: 1 / -1; }
.theme-chip {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12px; font-weight: 600;
  color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px 6px 8px; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.theme-chip i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #cbd5e1; display: block; }
.theme-chip.active { border-color: var(--mint); background: var(--mint-soft); color: var(--mint-ink); }
.theme-chip .lock { font-size: 10px; color: var(--amber); font-weight: 800; }

/* Features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.feature:hover { border-color: #a7f3d0; box-shadow: var(--shadow); transform: translateY(-2px); }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--mint-soft); border: 1px solid #a7f3d0; margin-bottom: 14px; }
.feature h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.platforms span { font-size: 13px; font-weight: 700; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px; align-items: stretch; max-width: 940px; margin: 0 auto; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; }
.plan.pro { position: relative; border: 2px solid var(--mint); box-shadow: 0 24px 48px -24px rgba(16, 185, 129, .45); }
.plan .badge { position: absolute; top: -13px; left: 30px; background: linear-gradient(135deg, var(--mint), var(--mint-2)); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 20px; }
.plan .sub { color: var(--muted); font-size: 14px; margin: 4px 0 18px; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.price strong { font-size: 44px; line-height: 1; letter-spacing: -0.03em; }
.price del { color: #94a3b8; font-size: 18px; font-weight: 600; }
.price .unit { color: var(--muted); font-size: 14px; font-weight: 600; }
.price-alt { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--mint-ink); background: var(--mint-soft); margin-top: 1px; }
.plan li.limit::before { content: "–"; color: var(--muted); background: #f1f5f9; }
.plan .spacer { flex: 1; }
.buy-group { display: grid; gap: 10px; }
.buy-note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 12px; }
.buy-note code { font-size: 11.5px; }
.no-sub { text-align: center; margin-top: 28px; font-size: 14px; color: var(--muted); font-weight: 600; }

/* Privacy band */
.privacy-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.privacy-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.privacy-item h3 { margin: 10px 0 6px; font-size: 17px; }
.privacy-item p { margin: 0; color: var(--muted); font-size: 14.5px; }
.privacy-item .icon { font-size: 22px; }
.privacy-link { text-align: center; margin-top: 26px; }
.privacy-link a { color: var(--mint-ink); font-weight: 700; border-bottom: 1px dashed var(--mint); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; transition: border-color .2s ease; }
.faq details[open] { border-color: #a7f3d0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 16px; padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mint); font-size: 22px; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; }

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

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: #a7f3d0; font-size: 14px; font-weight: 600;
  padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow);
  transition: opacity .2s ease, transform .2s ease; pointer-events: none; z-index: 100; max-width: 92vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Privacy page */
.doc { max-width: 820px; margin: 0 auto; padding: 40px 20px 80px; }
.doc .back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--mint-ink); background: var(--mint-soft); border: 1px solid #a7f3d0; padding: 8px 14px; border-radius: 10px; }
.doc article { margin-top: 28px; }
.doc article + article { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line); }
.doc h1 { font-size: clamp(26px, 4vw, 34px); letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 12px; }
.doc h2 { font-size: 20px; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--ink-2); font-size: 15.5px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 4px; }
.doc .callout { background: var(--mint-soft); border: 1px solid #a7f3d0; border-radius: 14px; padding: 14px 18px; color: var(--mint-ink); font-weight: 600; margin: 20px 0; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 64px; }
  .pricing { grid-template-columns: 1fr; }
  .privacy-band { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav a.link { display: none; }
  .section { padding: 64px 0; }
  .features { grid-template-columns: 1fr; }
  .brand small { display: none; }
}
@media (max-width: 420px) {
  .preview { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .header .btn-sm { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
