:root {
  --bg: #fafaf8;
  --text: #17171a;
  --text-muted: #6b6b6f;
  --line: #dedcd6;
  --accent: #1d7a8a;
  --accent-soft: #eef2ee;
  --card: #ffffff;
  --max-width: 860px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121213;
    --text: #f3f2ee;
    --text-muted: #9a9a9e;
    --line: #303032;
    --accent: #6fc7d6;
    --accent-soft: #1a2224;
    --card: #19191b;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang TC", "Noto Sans TC", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- top bar ---- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.wordmark img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
}

.topbar nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.topbar nav a:hover { color: var(--text); }

/* ---- eyebrow label ---- */

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 20px;
}

.eyebrow::before { content: "［ "; }
.eyebrow::after { content: " ］"; }

/* ---- hero ---- */

header.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--line);
}

h1.headline {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}

h1.headline em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 36px;
}

.cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 16px 0 0;
}

section .lede { margin-bottom: 44px; }
section p.lede:last-child { margin-bottom: 0; }

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid var(--line);
  color: var(--text);
  transition: opacity 0.15s;
}

.btn:hover { opacity: 0.75; }

.btn.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ---- sections ---- */

section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

section:last-of-type { border-bottom: none; }

h2.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 44px;
}

/* ---- numbered list rows (steps, scenarios) ---- */

.row-list { display: flex; flex-direction: column; }

.row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.row:last-child { border-bottom: 1px solid var(--line); }

.row .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.row h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
}

.row p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  max-width: 56ch;
}

.row .tag-line {
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--accent);
}

@media (max-width: 560px) {
  .row { grid-template-columns: 48px 1fr; gap: 16px; }
  .row .num { font-size: 1.5rem; }
}

/* ---- feature list ---- */

ul.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

ul.features li {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.96rem;
}

ul.features li:last-child { border-bottom: 1px solid var(--line); }

ul.features strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
  font-size: 1.02rem;
}

/* ---- privacy quote block ---- */

.privacy-note {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 28px;
}

.privacy-note p {
  margin: 0 0 18px;
  color: var(--text-muted);
}

.privacy-note p:last-child { margin-bottom: 0; }

.privacy-note strong { color: var(--text); }

/* ---- faq ---- */

.qa { display: grid; gap: 0; }

.qa .row {
  grid-template-columns: 1fr;
  gap: 8px;
}

.qa .row h3 { font-size: 1.02rem; }

/* ---- closing ---- */

.closing {
  text-align: left;
  padding: 88px 0 56px;
}

.closing h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.closing p {
  color: var(--text-muted);
  margin: 0 0 32px;
}

/* ---- footer ---- */

footer {
  padding: 40px 0 80px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer a { color: var(--text-muted); }

/* ---- legal page ---- */

article.legal { padding: 64px 0; }

article.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

article.legal h2 {
  font-size: 1.1rem;
  margin-top: 40px;
  font-weight: 700;
}

article.legal p, article.legal li {
  color: var(--text-muted);
}

article.legal .lang-block { margin-bottom: 64px; }

article.legal .lang-block + .lang-block {
  border-top: 1px solid var(--line);
  padding-top: 48px;
}
