:root {
  --bg: #FBF7EE;
  --card: #FFFDF8;
  --text: #2B2A26;
  --muted: #6E6A60;
  --accent: #567B3C;
  --accent-strong: #44622F;
  --on-accent: #FFFFFF;
  --accent-soft: #E9F0DF;
  --highlight: #F2C14E;
  --highlight-soft: #FDF3DA;
  --line: rgba(43, 42, 38, 0.08);
  --shadow: 0 10px 30px rgba(70, 60, 30, 0.10);
  --radius: 22px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161514;
    --card: #242321;
    --text: #F1EEE6;
    --muted: #A8A397;
    --accent: #9CC27F;
    --accent-strong: #B4D49B;
    --on-accent: #16210F;
    --accent-soft: #2C3825;
    --highlight: #E3B44C;
    --highlight-soft: #3A311C;
    --line: rgba(255, 255, 255, 0.09);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "PingFang TC", "Heiti TC", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3 { line-height: 1.3; margin: 0; letter-spacing: 0.01em; }
h1 { font-size: clamp(25px, 7.6vw, 54px); font-weight: 700; }
h1, h2 { text-wrap: balance; }
h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent);
}
.btn svg { width: 22px; height: 22px; fill: currentColor; }
.btn.soon { cursor: default; }
.btn.ghost { background: var(--card); color: var(--text); box-shadow: none; border: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 420px; z-index: -1;
  background: var(--highlight-soft);
  clip-path: path("M0 0 H2400 V300 C1900 420 1500 250 1100 330 C700 410 300 300 0 360 Z");
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 6px 14px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent-strong); font-size: 14px; font-weight: 700;
}
.hero p.lead { margin-top: 18px; font-size: 19px; color: var(--muted); max-width: 30em; }
.hero .actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .note { font-size: 14px; color: var(--muted); }
.trust { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.trust li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 14px;
  background: var(--card); border: 1px solid var(--line);
}
.trust svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .leaf { position: absolute; width: 120px; top: -30px; right: 0; transform: rotate(20deg); opacity: 0.85; }
.hero-visual .duo { position: absolute; width: 180px; bottom: -10px; left: -20px; filter: drop-shadow(0 8px 14px rgba(0,0,0,0.12)); }

/* ---------- Phone ---------- */
.phone {
  width: min(300px, 78vw); aspect-ratio: 1206 / 2622;
  border-radius: 44px; padding: 10px; background: #1F1E1B;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 35px; }
.phone.small { width: min(240px, 70vw); border-radius: 36px; padding: 8px; }
.phone.small img { border-radius: 29px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head p { margin-top: 12px; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { text-align: center; }
.step .phone { margin: 0 auto 22px; }
.step .num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 15px; margin-bottom: 10px;
}
.step p { color: var(--muted); margin-top: 6px; font-size: 16px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 2px 10px rgba(70, 60, 30, 0.04);
}
.feature .icon {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); margin-bottom: 14px;
}
.feature .icon svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature p { color: var(--muted); margin-top: 6px; font-size: 16px; }

/* Showcase rows */
.showcase { display: grid; gap: 64px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.row.flip .row-text { order: 2; }
.row .row-media { display: flex; justify-content: center; }
.row-text .tag { color: var(--accent); font-weight: 700; font-size: 15px; margin-bottom: 8px; display: block; }
.row-text p { margin-top: 14px; color: var(--muted); }
.row-text ul { margin: 16px 0 0; padding-left: 1.2em; color: var(--muted); }
.row-text li { margin: 4px 0; }

/* Privacy band */
.privacy-band { background: var(--accent-soft); border-radius: 32px; padding: 48px; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.privacy-band img { width: 150px; }
.privacy-band ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.privacy-band li { display: flex; gap: 10px; align-items: flex-start; }
.privacy-band li svg { flex: none; width: 22px; height: 22px; margin-top: 3px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

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

/* CTA + footer */
.cta { text-align: center; }
.cta img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 18px; box-shadow: var(--shadow); }
.cta p { color: var(--muted); margin: 12px auto 26px; max-width: 32em; }

.site-footer { position: relative; margin-top: 40px; padding: 140px 0 36px; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--accent) 22%, var(--bg));
  clip-path: path("M0 90 C400 20 800 20 1200 70 C1600 120 2000 60 2400 40 V600 H0 Z");
}
.site-footer .duo-garden { position: absolute; width: 200px; right: max(20px, calc(50% - 540px)); top: 10px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; font-size: 15px; color: var(--muted); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer .copy { margin-left: auto; }

/* ---------- Document pages (privacy / support) ---------- */
.doc { padding: 56px 0 24px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 4.4vw, 42px); }
.doc .updated { color: var(--muted); margin-top: 10px; font-size: 15px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--text); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.3em; margin: 10px 0 0; }
.doc li { margin: 6px 0; }
.doc .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-top: 18px; }
.doc .summary { background: var(--accent-soft); border: none; }
.contact-card { display: flex; gap: 18px; align-items: center; }
.contact-card img { width: 72px; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero .wrap, .row, .privacy-band { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero .actions, .trust { justify-content: center; }
  .hero-visual { margin-top: 20px; }
  .hero-visual .duo { width: 130px; left: 0; }
  .row.flip .row-text { order: 0; }
  .row-text { text-align: center; }
  .row-text ul { text-align: left; display: inline-block; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .privacy-band { padding: 32px 24px; text-align: center; }
  .privacy-band img { margin: 0 auto; }
  .privacy-band li { text-align: left; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .nav a.hide-sm { display: none; }
  .features { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .site-footer .copy { margin-left: 0; }
  .site-footer .duo-garden { width: 150px; }
}
