/* 夥計（Hooji）官網樣式。
   設計取自 App Icon：金幣的金色漸層 ＋ 深褐色線條。

   **官網固定深色，不跟隨系統偏好**（2026-08-03）：金色在近黑底上的對比最強，
   而訪客只會停留幾分鐘、不需要在大太陽下讀——那正是官網與 App 的差別，
   **App 端維持跟隨系統**（記帳常發生在戶外，深色在強光下對比會急遽下降）。

   實作是把深色值直接寫成 `:root` 的預設，而不是留一組淺色再用媒體查詢覆蓋——
   後者會讓淺色值成為「載入瞬間閃一下」的來源，也讓下一個人以為兩種都還要維護。
   淺色那一組已整組刪除；要恢復雙色系就把值搬回媒體查詢裡。 */

:root {
  color-scheme: dark; /* 讓捲軸、表單控制項等瀏覽器原生 UI 也走深色，否則會出現亮白捲軸 */
  --bg: #14110c;
  --bg-tint: #1b1710;
  --surface: #1d1912;
  --surface-2: #241f16;
  --ink: #f6efe2;
  --ink-2: #bcac92;
  --ink-3: #9a8b73;
  --gold: #f2b440;
  --gold-soft: #ffd583;
  --gold-deep: #ffcb6b;
  --line: rgba(246, 239, 226, 0.13);
  --line-strong: rgba(246, 239, 226, 0.26);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.45), 0 28px 60px rgba(0, 0, 0, 0.5);
  --radius: 18px;
  --wrap: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC",
    "Noto Sans TC", "Hiragino Sans", "Microsoft JhengHei", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

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

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 12px; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); font-weight: 750; }
h3 { font-size: 1.06rem; font-weight: 700; }
p { margin: 0 0 14px; }

.hl { color: var(--gold-deep); }
.sub { color: var(--ink-2); max-width: 62ch; }
.small { font-size: 0.86rem; color: var(--ink-3); }

/* ---------- Header ---------- */

header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 18px; min-height: 62px; flex-wrap: wrap; }

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 1.06rem; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.brand .coin { width: 26px; height: 26px; color: var(--gold); flex: none; }
.brand .en-name { color: var(--ink-3); font-weight: 600; font-size: 0.9rem; }
/* 英文版這個旁註是空字串（品牌名本身就是 Hooji），空的話連 gap 一起收掉 */
.brand .en-name:empty { display: none; }

nav.top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
nav.top a {
  color: var(--ink-2); text-decoration: none; font-size: 0.93rem; font-weight: 600;
  padding: 7px 10px; border-radius: 9px;
}
nav.top a:hover { color: var(--ink); background: var(--bg-tint); }

.lang-switch {
  display: inline-flex; margin-left: 4px;
  border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden;
}
.lang-switch button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 0.82rem; font-weight: 700; color: var(--ink-2);
  padding: 5px 12px;
}
.lang-switch button[aria-pressed="true"] { background: var(--gold); color: #241b10; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gold); color: #241b10;
  border: 1px solid transparent; border-radius: 999px;
  padding: 12px 22px; font-weight: 700; font-size: 0.98rem;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 2px rgba(36, 27, 16, 0.12);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.06); color: #241b10; transform: translateY(-1px); }
.btn.alt { background: transparent; color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn.alt:hover { background: var(--bg-tint); color: var(--ink); }
.btn.sm { padding: 8px 15px; font-size: 0.88rem; }
.btn.is-disabled { background: var(--surface-2); color: var(--ink-3); border-color: var(--line); cursor: default; box-shadow: none; }
.btn.is-disabled:hover { transform: none; filter: none; color: var(--ink-3); }

/* ---------- Sections ---------- */

section.block { padding: clamp(56px, 8vw, 92px) 0; }
section.tint { background: var(--bg-tint); }
.section-head { max-width: 720px; margin-bottom: 38px; }

.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 750;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 12px;
}

/* ---------- Hero ---------- */

.hero { padding: clamp(46px, 7vw, 86px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 40% 40% -20%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 22%, transparent), transparent 72%);
  pointer-events: none;
}
.hero-grid {
  position: relative; display: grid; gap: clamp(30px, 5vw, 56px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.hero .tag { font-size: 1.1rem; color: var(--ink-2); max-width: 46ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }

/* 桌機專用的 QR 下載入口。
   手機上隱藏：在手機上顯示一個要用手機掃的 QR 沒有意義，只會佔掉首屏。
   斷點用 hover 能力而非寬度——平板與觸控筆電也該當成「手機那一類」
   （它們可以直接點連結安裝），純寬度判斷會誤傷。 */
.qr-hint { display: none; }
@media (min-width: 900px) and (hover: hover) {
  .qr-hint {
    display: inline-flex; align-items: center; gap: 12px;
    margin-top: 18px; padding: 10px 14px 10px 10px;
    border: 1px solid var(--line); border-radius: 14px;
    background: var(--surface);
  }
  /* QR 一律白底深色模組——反白的 QR 有些掃描器讀不到，
     所以這裡不跟著深色模式反轉，只加一圈留白。 */
  .qr-hint img { display: block; background: #fff; border-radius: 6px; padding: 5px; }
  .qr-hint span { font-size: .86rem; color: var(--ink-2); }
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 22px; padding: 0; list-style: none; }
.hero-badges li { display: inline-flex; align-items: center; gap: 7px; font-size: 0.88rem; color: var(--ink-2); font-weight: 600; }
.hero-badges .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }

/* ---------- 手機示意（純 CSS，不是實機截圖） ---------- */

.phone-stage { display: flex; justify-content: center; }
.phone {
  width: min(310px, 82vw); border-radius: 42px; padding: 11px;
  background: linear-gradient(160deg, #3a2f21, #1b1610);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.phone-screen {
  background: var(--surface); border-radius: 32px; overflow: hidden;
  display: flex; flex-direction: column; min-height: 552px;
}
.phone-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px 2px; font-size: 0.72rem; font-weight: 700; color: var(--ink-2);
}
.phone-bar .notch { width: 62px; height: 17px; border-radius: 999px; background: var(--ink); opacity: 0.85; }
.phone-bar .status-icons { display: inline-flex; align-items: center; gap: 4px; }
.phone-bar .status-icons svg { height: 11px; width: auto; }
.phone-title { padding: 6px 18px 10px; font-size: 1.3rem; font-weight: 800; }
.phone-body { flex: 1; padding: 0 14px; display: flex; flex-direction: column; gap: 10px; }

.bubble {
  align-self: flex-end; max-width: 82%;
  background: var(--gold); color: #241b10;
  padding: 9px 14px; border-radius: 17px 17px 5px 17px;
  font-size: 0.9rem; font-weight: 600;
}
.rec-card {
  align-self: stretch; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 15px; padding: 12px 14px; font-size: 0.84rem;
}
.rec-card .rc-title { display: flex; align-items: center; gap: 7px; font-weight: 750; margin-bottom: 8px; }
.rec-card .rc-title svg { width: 16px; height: 16px; color: var(--gold-deep); flex: none; }
.rec-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: var(--ink-2); }
.rec-row b { color: var(--ink); font-weight: 700; }

.phone-foot { padding: 14px 0 20px; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.coin-btn {
  position: relative; width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center; color: var(--gold);
  background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--gold) 26%, transparent), transparent 70%);
}
.coin-btn .coin { width: 62px; height: 62px; }
.coin-btn::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--gold); opacity: 0;
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.86); opacity: 0.55; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
.hold-hint { font-size: 0.78rem; color: var(--ink-3); font-weight: 600; }
.phone-caption { text-align: center; font-size: 0.78rem; color: var(--ink-3); margin-top: 14px; }

/* ---------- 三步驟 ---------- */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow);
}
.step .n {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: #241b10; font-weight: 800; font-size: 0.9rem; margin-bottom: 14px;
}
.step p { color: var(--ink-2); font-size: 0.94rem; margin: 0; }

/* ---------- 功能卡 ---------- */

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); position: relative;
}
.card .ic {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold-deep);
  margin-bottom: 13px;
}
.card .ic svg { width: 20px; height: 20px; }
.card p { color: var(--ink-2); font-size: 0.93rem; margin: 0; }
.tier {
  position: absolute; top: 18px; right: 18px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-3);
}
.tier.plus { background: var(--gold); border-color: transparent; color: #241b10; }

/* ---------- 隱私 ---------- */

.privacy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .privacy-grid { grid-template-columns: 1fr; } }
.p-item { border-left: 3px solid var(--gold); padding: 4px 0 4px 18px; }
.p-item p { color: var(--ink-2); font-size: 0.93rem; margin: 0; }

.flow {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin-top: 30px; box-shadow: var(--shadow);
  font-size: 0.88rem; font-weight: 650;
}
.flow .node { padding: 7px 13px; border-radius: 10px; background: var(--bg-tint); }
.flow .node.hot { background: color-mix(in srgb, var(--gold) 22%, transparent); }
.flow .arr { color: var(--ink-3); }

/* ---------- 定價 ---------- */

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.plan.featured { border-color: var(--gold); box-shadow: var(--shadow-lg); }
.plan .plan-name { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.plan .plan-name h3 { margin: 0; font-size: 1.25rem; }
.plan .badge {
  font-size: 0.7rem; font-weight: 800; padding: 3px 9px; border-radius: 999px;
  background: var(--gold); color: #241b10;
}
.price { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 2px; }
.price small { font-size: 0.95rem; font-weight: 600; color: var(--ink-3); }
.price-alt { font-size: 0.88rem; color: var(--ink-2); margin-bottom: 16px; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 9px; }
.plan li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.93rem; color: var(--ink-2); }
.plan li svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--gold-deep); }
.plan li.off { color: var(--ink-3); }
.plan li.off svg { color: var(--ink-3); }

.trial-note {
  margin-top: 26px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; font-size: 0.9rem; color: var(--ink-2);
}
.trial-note strong { color: var(--ink); }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 18px; box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 0.98rem; list-style: none;
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-deep); font-weight: 800; font-size: 1.2rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 2px; color: var(--ink-2); font-size: 0.93rem; }

/* ---------- 內文頁（隱私／條款／支援） ---------- */

.doc { padding: clamp(36px, 6vw, 64px) 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(1.8rem, 4.2vw, 2.5rem); margin-bottom: 6px; }
.doc .updated { color: var(--ink-3); font-size: 0.86rem; margin-bottom: 34px; }
.doc h2 { font-size: 1.22rem; margin: 34px 0 10px; }
.doc h3 { margin: 22px 0 8px; }
.doc p, .doc li { color: var(--ink-2); font-size: 0.97rem; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 14px; }
.doc li { margin-bottom: 7px; }
.doc strong { color: var(--ink); }
.doc .callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 12px; padding: 16px 18px; margin: 20px 0;
}
.doc .callout p:last-child { margin-bottom: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 0.92rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--ink); font-weight: 700; }
.doc td { color: var(--ink-2); }
.table-scroll { overflow-x: auto; }

.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 650; text-decoration: none; margin-bottom: 26px; }

/* ---------- Footer ---------- */

footer.site { border-top: 1px solid var(--line); padding: 34px 0 46px; background: var(--bg-tint); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
footer.site .f-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; }
footer.site .f-brand .coin { width: 22px; height: 22px; color: var(--gold); }
footer.site .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.site .links a { color: var(--ink-2); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
footer.site .links a:hover { color: var(--gold-deep); }
footer.site .copy { color: var(--ink-3); font-size: 0.84rem; width: 100%; }
footer.site .more-apps { display: block; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
footer.site .more-apps-label { margin: 0 0 10px; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
footer.site .more-apps ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.88rem; color: var(--ink-2); }
footer.site .more-apps a { font-weight: 700; }

/* 語言切換：預設全部隱藏，i18n.js 只對目前語言那份加上 .is-active。
   （不要用 inline style 切換——清空 inline display 會退回這裡的 none，整頁變空白。） */
[data-lang-only] { display: none; }
[data-lang-only].is-active { display: block; }

/* ---------- 上架前的「即將推出」首頁 ---------- */
/* 完整行銷首頁保留在 home-full.html，上架後換回來時這一段可以留著不用刪。 */

.soon { padding: clamp(64px, 14vw, 140px) 0; text-align: center; }
.soon .wrap { max-width: 560px; }
.soon-coin { width: 96px; height: 96px; color: var(--gold); margin-bottom: 26px; }
.soon h1 { font-size: clamp(2rem, 6vw, 2.9rem); margin-bottom: 10px; }
.soon .tag { font-size: 1.15rem; color: var(--ink-2); margin-bottom: 6px; }
.soon .small { margin-bottom: 30px; }
.soon-contact a { font-weight: 650; text-decoration: none; }
.soon-contact a:hover { text-decoration: underline; }
