/* 記帳落地頁專用樣式（build 發成 /css/tracker.css，只在 /tracker/ 載入） */

/* ---------- Hero：左文案、右兩支手機 ---------- */
.trk-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.trk-hero h1 { font-size: clamp(2rem, 1.1rem + 2.7vw, 3.3rem); line-height: 1.14; margin-bottom: 20px; }
html[lang="en"] .trk-hero h1 { letter-spacing: 0; font-size: clamp(1.95rem, 1.05rem + 2.5vw, 3.1rem); }
.trk-h1-line2 { display: block; }
.trk-hero .lead { max-width: 36em; }
.trk-facts { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #cfccc3; font-size: .92rem; }
.trk-facts li { display: inline-flex; align-items: center; gap: 8px; }
.trk-facts .ico { width: 18px; height: 18px; color: var(--gold); flex: none; }
.trk-hero-media { display: flex; justify-content: center; }
.trk-hero .phone-pair { width: 100%; max-width: 540px; }
.trk-hero .phone { --w: clamp(200px, 20vw, 262px); }
@media (max-width: 860px) {
  .trk-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .trk-hero .phone { --w: min(44vw, 226px); }
}
@media (max-width: 420px) { .trk-hero h1 { font-size: 1.95rem; } html[lang="en"] .trk-hero h1 { font-size: 1.85rem; } }

/* ---------- 記什麼：卡片＋欄位表 ---------- */
.trk-cards .card h3 { margin-top: 14px; }
.trk-table th[scope="row"] { white-space: nowrap; font-weight: 700; color: #dedad0; }
.trk-table td.wrap { min-width: 12em; }
@media (max-width: 640px) {
  .trk-table { table-layout: fixed; width: 100%; }
  .trk-table col.c1 { width: 27%; } .trk-table col.c2 { width: 40%; } .trk-table col.c3 { width: 33%; }
  .trk-table th, .trk-table td { padding: 12px 10px; font-size: .86rem; vertical-align: top; }
  .trk-table th[scope="row"] { white-space: normal; }
  .trk-table td.wrap { min-width: 0; white-space: normal; }
}

/* ---------- 三種記法 ---------- */
.trk-ways { list-style: none; counter-reset: way; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; max-width: 36em; }
.trk-ways li { counter-increment: way; position: relative; padding: 16px 18px 16px 62px; border: 1px solid var(--line-soft); border-radius: var(--r-sm); background: rgba(255, 255, 255, .025); color: #cfccc3; line-height: 1.7; }
.trk-ways li::before { content: counter(way); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 900; color: var(--on-gold); background: var(--gold-grad); }
.trk-ways strong { display: block; color: var(--text); font-family: var(--font-head); font-size: 1.04rem; margin-bottom: 4px; }
.trk-note { margin: 16px 0 0; font-size: .88rem; color: var(--muted); }

/* ---------- 統計 ---------- */
#stats .list-check { margin: 22px 0 22px; }
.plan-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; max-width: 34em; padding: 10px 16px; border: 1px solid var(--line-soft); border-radius: var(--r-sm); background: rgba(255, 255, 255, .025); font-size: .92rem; line-height: 1.6; color: #c9c6bd; }
.plan-note > span:last-child { flex: 1 1 14em; min-width: 0; }
.plan-note + .plan-note { margin-top: 10px; }
.trk-ref { margin: 22px 0 0; font-size: .92rem; color: var(--muted); max-width: 34em; }

/* 截圖尺寸 */
#ways .phone-pair, #stats .phone-pair { width: 100%; max-width: 540px; }
#ways .phone-pair .phone, #stats .phone-pair .phone { --w: clamp(150px, 44vw, 250px); }

html[lang="zh-Hant"] #trk-title, html[lang="zh-Hant"] .section h2 { word-break: keep-all; overflow-wrap: anywhere; }
.section h2 { text-wrap: balance; }
