/* Let's Talk — liho.tw/letstalk
   No web fonts, no scripts from other sites, no tracking. */

:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0a7aff;
  --accent-soft: rgba(10, 122, 255, 0.12);
  --border: rgba(0, 0, 0, 0.08);
  --radius: 18px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --accent: #2b91ff;
    --accent-soft: rgba(43, 145, 255, 0.18);
    --border: rgba(255, 255, 255, 0.1);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Hiragino Sans",
    "Apple SD Gothic Neo", "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
}

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

/* Only the chosen language is shown; without JavaScript, html[data-lang] stays zh-Hant. */
html[data-lang="zh-Hant"] [lang="en"]:not(html),
html[data-lang="en"] [lang="zh-Hant"]:not(html) { display: none !important; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 22px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.site-header nav { margin-left: auto; display: flex; gap: 18px; font-size: 15px; }
.site-header nav a { color: var(--muted); }
.lang-switch {
  display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden;
}
.lang-switch button {
  font: inherit; font-size: 13px; padding: 4px 10px; border: 0; cursor: pointer;
  background: transparent; color: var(--muted);
}
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: #fff; }

@media (max-width: 640px) {
  .site-header nav { display: none; }
  .lang-switch { margin-left: auto; }
}

/* Hero */
.hero { text-align: center; padding: 72px 0 48px; }
.hero .icon {
  width: 112px; height: 112px; margin: 0 auto 22px; border-radius: 26px;
  background: linear-gradient(160deg, #2b91ff, #0a5ad6);
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(10, 122, 255, 0.3);
}
.hero .icon svg { width: 64px; height: 64px; }
.hero h1 { font-size: clamp(36px, 7vw, 56px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.02em; }
.hero p.lead { font-size: clamp(18px, 2.6vw, 22px); color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.badge {
  font-size: 14px; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-weight: 600;
}
.button {
  display: inline-block; padding: 12px 26px; border-radius: 999px; font-weight: 600;
  background: var(--text); color: var(--bg);
}
.button:hover { text-decoration: none; opacity: 0.85; }
/* Store badges at the same visible height. Google's PNG has clear space (about 1/6 of its height) on every side,
   so it is drawn taller and pulled in by that much. */
.store-badges { align-items: center; gap: 16px; }
.store-badges a { display: inline-flex; }
.store-badges a:hover { opacity: 0.85; }
.badge-apple { height: 52px; width: auto; }
.badge-google { height: 78px; width: auto; margin: -13px; }
/* The Chinese PNG has clear space only above and below (29 of 250 px). */
.badge-google-zh { height: 68px; width: auto; margin: -8px 0; }
.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.note { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* Sections */
section { padding: 40px 0; }
h2 { font-size: clamp(26px, 4vw, 36px); text-align: center; margin: 0 0 10px; letter-spacing: -0.01em; }
.section-lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 32px; }

.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
}
.card .emoji { font-size: 28px; line-height: 1; margin-bottom: 10px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { counter-reset: step; display: grid; gap: 14px; max-width: 720px; margin: 0 auto; padding: 0; list-style: none; }
.steps li {
  counter-increment: step; position: relative; padding: 18px 20px 18px 64px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 18px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
}
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 18px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Policy page */
.policy { max-width: 760px; margin: 0 auto; padding: 48px 0 24px; }
.policy h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 6px; }
.policy .effective { color: var(--muted); margin: 0 0 28px; }
.policy .summary {
  background: var(--accent-soft); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 28px;
}
.policy .summary p { margin: 0; }
.policy h2 { text-align: left; font-size: 21px; margin: 30px 0 6px; }
.policy p, .policy li { color: var(--text); }
.policy ul { padding-left: 1.2em; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); margin-top: 40px; padding: 28px 0 40px;
  color: var(--muted); font-size: 14px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
