:root {
  --bg: #f3f5ee;
  --surface: #ffffff;
  --surface-2: #eef2e6;
  --ink: #22271e;
  --muted: #5c6553;
  --faint: #8a9280;
  --line: rgba(34, 39, 30, 0.10);
  --line-strong: rgba(34, 39, 30, 0.16);
  --accent: #4f8a4a;
  --accent-strong: #3f7340;
  --accent-soft: #e4efdd;
  --paper: #f7f5ec;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(34, 39, 30, 0.10);
  --shadow-sm: 0 4px 16px rgba(34, 39, 30, 0.07);
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Yu Gothic", "Noto Sans JP", "PingFang SC", "Microsoft JhengHei", "Segoe UI", sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;
}

/* Han characters have different glyph shapes per language, so Chinese must not
   fall through to the Japanese fonts in --font above. lang.js sets html[lang],
   so redefining the variable here re-points every rule that uses it. */
html[lang="zh-Hans"], html[lang="zh"], html[lang="zh-CN"] {
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC",
    "Microsoft YaHei", "Segoe UI", sans-serif;
}
html[lang="zh-Hant"], html[lang="zh-TW"] {
  --font: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC",
    "Microsoft JhengHei", "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12150e;
    --surface: #1b1f15;
    --surface-2: #232819;
    --ink: #eef1e6;
    --muted: #a7b199;
    --faint: #7c866e;
    --line: rgba(255, 255, 255, 0.10);
    --line-strong: rgba(255, 255, 255, 0.17);
    --accent: #86bd74;
    --accent-strong: #9ccd8b;
    --accent-soft: rgba(134, 189, 116, 0.14);
    --paper: #232819;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.nav a { font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* Language switcher */
.langs { display: flex; gap: 2px; background: var(--surface-2); border-radius: 9px; padding: 3px; }
.langs button {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px;
  padding: 4px 9px; border-radius: 6px; cursor: pointer;
}
.langs button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 11px; cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }

/* Hero */
.hero { padding: 88px 0 64px; text-align: center; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--accent-strong);
  background: var(--accent-soft); padding: 6px 13px; border-radius: 999px; font-weight: 600; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
.hero p.lead { font-size: clamp(16px, 2.4vw, 19px); color: var(--muted); margin: 18px auto 30px; max-width: 620px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 16px; font-size: 13px; color: var(--faint); }
.hero-art {
  margin: 54px auto 0; max-width: 176px;
}
.hero-art img { width: 100%; border-radius: 34px; box-shadow: var(--shadow); }

/* Sections */
section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; letter-spacing: -0.01em; }
.section-title p { color: var(--muted); margin-top: 10px; }

/* Trust row */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust .item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-align: center; box-shadow: var(--shadow-sm);
}
.trust .item .ico {
  width: 40px; height: 40px; margin: 0 auto; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent-strong);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
/* Line icons inherit the accent via currentColor, so both themes just work. */
.trust .item .ico svg, .feature .fi svg { width: 21px; height: 21px; display: block; }
.trust .item h3 { font-size: 15px; margin: 10px 0 4px; }
.trust .item p { font-size: 13px; color: var(--muted); }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.feature .fi {
  width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-strong);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.feature h3 { font-size: 17px; margin-bottom: 7px; }
.feature p { font-size: 14px; color: var(--muted); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 14px; max-width: 720px; margin: 0 auto; }
.step {
  display: flex; gap: 16px; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
}
.step .num {
  counter-increment: step; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.step .num::before { content: counter(step); }
.step h3 { font-size: 15.5px; }
.step p { font-size: 13.5px; color: var(--muted); }

/* Formats pills */
.formats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.formats span {
  font-family: var(--mono); font-size: 13px; padding: 8px 14px; border-radius: 9px;
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--line);
}

/* Pricing */
.price-card {
  max-width: 440px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 18px; padding: 34px; text-align: center; box-shadow: var(--shadow);
}
.price-card .tag { color: var(--accent-strong); font-weight: 600; font-size: 14px; }
.price-card .amount { font-size: 46px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0; }
.price-card .amount small { font-size: 15px; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; text-align: left; margin: 22px 0; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; font-size: 14.5px; }
.price-card li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.price-card .btn { width: 100%; justify-content: center; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 15px; padding: 14px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { font-size: 14px; color: var(--muted); padding: 0 0 16px; }

/* Legal / doc pages */
.doc { padding: 56px 0 80px; }
.doc h1 { font-size: 30px; margin-bottom: 6px; }
.doc .updated { color: var(--faint); font-size: 13px; margin-bottom: 34px; }
.doc h2 { font-size: 19px; margin: 30px 0 10px; }
.doc h3 { font-size: 16px; margin: 20px 0 8px; }
.doc p, .doc li { color: var(--muted); font-size: 15px; }
.doc ul, .doc ol { margin: 8px 0 8px 22px; display: grid; gap: 6px; }
.doc strong { color: var(--ink); }
.doc a { color: var(--accent-strong); text-decoration: underline; }
.i18n-section { display: none; }
html[data-lang="ja"] .i18n-section.ja,
html[data-lang="en"] .i18n-section.en,
html[data-lang="zh"] .i18n-section.zh,
html[data-lang="tw"] .i18n-section.tw { display: block; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.site-footer .brand { font-size: 15px; }
.site-footer nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer nav a { font-size: 13.5px; color: var(--muted); }
.site-footer nav a:hover { color: var(--ink); }
.site-footer .copy { width: 100%; color: var(--faint); font-size: 12.5px; margin-top: 8px; }

@media (max-width: 720px) {
  .trust, .features { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
  .hero { padding: 56px 0 40px; }
}
