/* 伴聲 RadioHaven 官網
   顏色跟 App（android/.../theme/Color.kt）：按鈕用 #6E5D50（白字 5.62:1，過 AA），
   唔用 #8C7A6B 做按鈕底（白字只有 3.28:1，見 012_BanSing/CLAUDE.md 第 4 條）。
   讀者有長者，字級同按鈕尺寸特登做大：正文 18px，按鈕最少 56px 高。 */
:root {
  --brand: #6E5D50;
  --brand-soft: #8C7A6B;
  --sand: #D7CEC6;
  --bg: #F8F5F1;
  --surface: #FFFFFF;
  --text: #2E2E2E;
  --muted: #5E5955;
  --line: #E5E0DB;
  --green: #4E7A5B;
  --warm: #EFE8E1;
  --display: "Noto Serif TC", "Songti TC", serif;
  --body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  color-scheme: light;
}
html[lang="en"] {
  --display: "Lora", Georgia, serif;
  --body: "Figtree", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.85 var(--body); padding-inline: 20px; -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.wrap { max-width: 1080px; margin-inline: auto; }
.narrow { max-width: 760px; margin-inline: auto; }
a { color: var(--brand); text-underline-offset: 4px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
img { max-width: 100%; }
section[id] { scroll-margin-top: 90px; }

/* Header */
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; margin-inline: -20px; padding: 12px 20px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.mark img { width: 44px; height: 44px; border-radius: 12px; }
.mark b { font: 700 20px/1.1 var(--display); display: block; }
.mark span { font: 500 13px/1.3 "Figtree", var(--body); color: var(--muted); letter-spacing: .06em; }
.nav-group { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; }
nav.site { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: 16px; }
nav.site a { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
nav.site a:hover { color: var(--brand); }
.lang { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 16px; min-height: 44px; }
.lang a { text-decoration: none; color: var(--muted); }
.lang [aria-current="true"] { color: var(--brand); font-weight: 700; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 14px 30px; border-radius: 14px; font: 700 19px/1.2 var(--body); text-decoration: none; border: 2px solid var(--brand); }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: #5C4D42; border-color: #5C4D42; }
.btn.ghost { color: var(--brand); background: transparent; }
.btn[aria-disabled="true"] { background: var(--sand); border-color: var(--sand); color: var(--muted); cursor: not-allowed; }

/* Hero */
.hero { padding-block: 72px 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero .brandline { font: 700 20px/1.3 var(--display); color: var(--brand); margin: 0 0 18px; }
.hero .brandline span { font: 500 17px/1 "Figtree", var(--body); color: var(--muted); margin-left: 8px; letter-spacing: .04em; }
.hero h1 { font: 700 clamp(34px, 5.2vw, 56px)/1.3 var(--display); margin: 0 0 18px; text-wrap: balance; }
html[lang="en"] .hero h1 { font-weight: 600; line-height: 1.15; }
.hero .sub { font-size: 21px; font-weight: 500; margin: 0 0 14px; }
.hero .lede { color: var(--muted); margin: 0 0 32px; max-width: 30em; }
.dl-box { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.dl-note { font-size: 16px; color: var(--muted); }
.phone { justify-self: center; width: 100%; max-width: 330px; padding: 12px; border-radius: 42px; background: #3A322C; box-shadow: 0 30px 60px -30px rgba(46,46,46,.55); }
.phone img { display: block; width: 100%; height: auto; border-radius: 32px; }

/* Sections */
section.block { padding-block: 88px; }
section.block.alt { margin-inline: -20px; padding-inline: 20px; background: var(--warm); }
.eyebrow { font: 700 15px/1.4 var(--body); color: var(--green); letter-spacing: .08em; margin: 0 0 10px; }
h2 { font: 700 clamp(28px, 3.8vw, 40px)/1.35 var(--display); margin: 0 0 28px; text-wrap: balance; }
html[lang="en"] h2 { font-weight: 600; line-height: 1.2; }
.prose p { margin: 0 0 20px; }
.prose .lines { margin: 8px 0 24px; padding-left: 20px; border-left: 3px solid var(--sand); color: var(--muted); }
.prose .lines p { margin: 0; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 8px 0 28px; font: 700 22px/1.4 var(--display); color: var(--brand); }
.flow span { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 20px; }
.flow i { font-style: normal; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.feature h3 { font: 700 24px/1.35 var(--display); margin: 0 0 10px; color: var(--brand); }
.feature p { margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .phone { max-width: 300px; }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mode { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.mode h3 { font: 700 24px/1.35 var(--display); margin: 0; }
.mode .tag { align-self: flex-start; font-size: 14px; font-weight: 700; color: var(--green); background: color-mix(in srgb, var(--green) 12%, white); border-radius: 999px; padding: 2px 12px; }
.mode p { margin: 0; color: var(--muted); }
.mode .phone { margin-top: 12px; max-width: 260px; }

.quote { font: 700 clamp(26px, 3.4vw, 34px)/1.5 var(--display); color: var(--brand); margin: 24px 0; }
.quote small { display: block; font: 600 20px/1.4 "Lora", Georgia, serif; color: var(--muted); }

/* Download */
.download { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: start; }
.download h2 { margin-bottom: 12px; }
.apk-info { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 17px; background: var(--bg); border-radius: 18px; padding: 22px 24px; }
.apk-info dt { color: var(--muted); }
.apk-info dd { margin: 0; font-weight: 600; }
.notice { margin-top: 24px; padding: 20px 22px; border-radius: 16px; background: #FBF3E6; border: 1px solid #EAD9BD; font-size: 17px; }
.notice b { display: block; margin-bottom: 6px; }

/* Sub pages */
.page-head { padding-block: 56px 20px; }
.page-head h1 { font: 700 clamp(30px, 4.4vw, 46px)/1.3 var(--display); margin: 0 0 12px; }
html[lang="en"] .page-head h1 { font-weight: 600; }
.page-head p { color: var(--muted); margin: 0; }
.doc { padding-block: 24px 88px; }
.doc h2 { font-size: clamp(24px, 3vw, 30px); margin: 44px 0 14px; }
.doc h3 { font: 700 21px/1.4 var(--body); margin: 28px 0 8px; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 20px; }
.doc li { margin-bottom: 8px; }
.doc .updated { font-size: 15px; color: var(--muted); }
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 18px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px 24px 24px 84px; position: relative; margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: 24px; top: 22px; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 21px/42px var(--body); text-align: center; }
.steps b { display: block; font-size: 20px; margin-bottom: 4px; }
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 8px 0 12px; }
.audience div { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; }
.audience b { display: block; font-size: 19px; margin-bottom: 4px; color: var(--brand); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; min-height: 44px; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Footer */
footer.site { margin-inline: -20px; padding: 48px 20px 40px; background: #3A322C; color: #E9E2DA; font-size: 16px; }
footer.site a { color: #E9E2DA; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
.foot-brand b { font: 700 22px/1.3 var(--display); display: block; }
.foot-brand p { margin: 4px 0 0; color: #C9BFB5; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 28px 0; }
.foot-links a { min-height: 40px; display: inline-flex; align-items: center; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 20px; border-top: 1px solid #5A4F46; color: #C9BFB5; font-size: 15px; }

@media (max-width: 860px) {
  .hero .wrap, .split, .modes, .download, .audience { grid-template-columns: 1fr; }
  .hero .phone { max-width: 260px; }
  .features { grid-template-columns: 1fr; }
  .download { padding: 28px 22px; }
}
@media (max-width: 720px) {
  body { font-size: 18px; }
  section.block { padding-block: 64px; }
  .hero { padding-block: 44px 56px; }
  .nav-group { width: 100%; flex-wrap: nowrap; gap: 12px; }
  nav.site { flex: 1; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 18px; }
  nav.site::-webkit-scrollbar { display: none; }
  nav.site a { white-space: nowrap; }
  .lang { border-left: 0; padding-left: 0; flex: none; }
  .btn { width: 100%; }
  .steps li { padding-left: 76px; }
  section[id] { scroll-margin-top: 130px; }
}
