/* 咚咚節拍器送審網站：首頁、隱私權政策、支援。純靜態，無建置步驟。配色取自 App 的 Theme.swift。 */
:root {
  --bg: #f2f0ea;
  --surface: #ffffff;
  --ink: #1d231b;
  --muted: #5b6355;
  --line: #e0dcd2;
  --accent: #3f5a39;
  --window-top: #45583f;
  --window-bottom: #4d6247;
  --window-text: #f3f6ec;
  --window-label: #b4c1a8;
  --amber: #f0b54a;
  --led-off: #3b4c36;
  --led-on: #e9f0de;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151714;
    --surface: #232722;
    --ink: #e9ece4;
    --muted: #a3ab9b;
    --line: #343a33;
    --accent: #e3b85c;
    --window-top: #2f3c2b;
    --window-bottom: #34432f;
    --led-off: #2a3626;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding-inline: 16px;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 720px; margin: 0 auto; padding-block: 32px 64px; display: flex; flex-direction: column; gap: 28px; }
header.site { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.4rem); line-height: 1.3; margin: 0; text-wrap: balance; }
h2 { font-size: 1.25rem; margin: 0; }
p, ul { margin: 0; }
ul { padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.lede { color: var(--muted); font-size: 1.08rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.meta { color: var(--muted); font-size: 0.9rem; }
footer { color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); padding-top: 16px; }

/* 首頁的綠色資訊面板，照 App 主畫面的樣子畫。 */
.display {
  background: linear-gradient(var(--window-top), var(--window-bottom));
  color: var(--window-text);
  border-radius: 24px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.display .row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.display .label { color: var(--window-label); font-size: 0.8rem; letter-spacing: 0.08em; }
.display .bpm { font-size: 3.2rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.display .bpm small { font-size: 0.95rem; font-weight: 600; color: var(--window-label); margin-left: 6px; }
.display .tempo-name { color: var(--amber); font-weight: 600; }
.display .signature { font-size: 2rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.lights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lights span { height: 14px; border-radius: 7px; background: var(--led-off); }
.lights .accent { background: var(--amber); }
.lights .on { background: var(--led-on); }
