/* 顧評 官網樣式 — 草稿 v1 */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1f2a2e;
  --ink-soft: #566065;
  --line: #e7e3da;
  --brand: #0f9d8c;
  --brand-dark: #0b7d70;
  --brand-tint: #e6f5f2;
  --star: #f5a623;
  --danger: #d9534f;
  --radius: 14px;
  --maxw: 1040px;
  /* 2026-09-10 SEO 修正：改用系統內建中文字型，不再從 Google Fonts 下載 Noto Sans TC。
     原本四個字重共 1.1 MB、佔整頁流量 88%，手機要 5～10 秒才看得到字。
     Mac / iPhone 用蘋方、Windows 用微軟正黑體、Android 本來就是 Noto Sans CJK，
     一般人看不出差異。字重只用 400 / 700，因為微軟正黑體只有這兩種。 */
  --font: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC",
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  /* 整站不給選取文字（使用者 2026-09-09 要求，跟 app 的 globals.css 一致）：
     像 App 一樣，文案也不好被整段反白抄走 */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* 例外：聯絡信箱要留給人複製，不然想找我們的客人會卡住（手機沒設信件軟體時 mailto 點了沒反應） */
a[href^="mailto:"] {
  user-select: text;
  -webkit-user-select: text;
  -webkit-touch-callout: default;
}

/* 例外：表單欄位一定要能選、能改，不然填不下去 */
input,
textarea,
select {
  user-select: text;
  -webkit-user-select: text;
}

img { max-width: 100%; display: block; }

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.logo {
  font-size: 20px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.logo img { border-radius: 7px; }
.logo:hover { text-decoration: none; }
.logo .dot { color: var(--brand); }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--ink-soft); font-size: 15px; }
.nav-links .btn { color: #fff; }
.nav-links .btn-ghost { color: var(--brand-dark); }
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ---- buttons ---- */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--brand-dark);
  border: 1px solid var(--brand);
}
.btn-ghost:hover { background: var(--brand-tint); color: var(--brand-dark); }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* ---- sections ---- */
section { padding: 68px 0; }
/* 頁首是 sticky 的，錨點跳過去時要多留一點，標題才不會頂到頁首下緣 */
section[id] { scroll-margin-top: 78px; }
section:nth-child(even) { background: var(--surface); border-block: 1px solid var(--line); }
.section-title {
  font-size: 27px; font-weight: 700; text-align: center; margin-bottom: 12px;
}
.section-sub {
  text-align: center; color: var(--ink-soft); max-width: 620px;
  margin: 0 auto 44px;
}

/* ---- hero ---- */
.hero {
  padding: 84px 0 76px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 140%;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(480px 320px at 14% 18%, var(--brand-tint), transparent 68%),
    radial-gradient(420px 300px at 88% 8%, rgba(245, 166, 35, 0.14), transparent 65%),
    radial-gradient(520px 340px at 78% 92%, var(--brand-tint), transparent 68%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  font-size: 40px; line-height: 1.35; font-weight: 700; letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.hero .lead {
  font-size: 18px; color: var(--ink-soft); max-width: 560px; margin: 0 auto 32px;
}
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .fineprint { margin-top: 16px; font-size: 13px; color: var(--ink-soft); }
/* 首屏的「點點看怎麼用」→ /demo 互動示範頁（2026-09-18） */
.hero-demo-link {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  background: var(--surface); border: 1px solid var(--brand); color: var(--brand-dark);
  font-weight: 700; font-size: 15px; padding: 9px 18px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(15, 157, 140, 0.14);
}
.hero-demo-link:hover { text-decoration: none; background: var(--brand-tint); }
.hero-demo-link .tap {
  width: 22px; height: 22px; border-radius: 999px; background: var(--brand); color: #fff;
  font-size: 12px; display: inline-flex; align-items: center; justify-content: center;
}
@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .hero .lead { font-size: 16px; }
}

/* ---- pain list ---- */
.pain-list { max-width: 640px; margin: 0 auto; }
.pain-list li {
  list-style: none; padding: 14px 0 14px 34px; position: relative;
  border-bottom: 1px dashed var(--line); color: var(--ink-soft);
  display: flex; flex-direction: column; gap: 4px;
}
.pain-list li::before {
  content: "✕"; position: absolute; left: 4px; top: 15px;
  color: var(--danger); font-weight: 700;
}
.pain-text { color: var(--ink); }
.pain-result { font-size: 13.5px; color: var(--danger); opacity: 0.85; }
.pain-note {
  max-width: 640px; margin: 28px auto 0; padding: 18px 20px;
  background: var(--brand-tint); border-radius: var(--radius);
  font-weight: 600; text-align: center;
}

/* ---- steps ---- */
.steps { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.step {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px;
}
.step .num {
  width: 34px; height: 34px; border-radius: 999px; background: var(--brand);
  color: #fff; font-weight: 700; display: flex; align-items: center;
  justify-content: center; margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---- how：動畫模擬畫面 + 步驟並排 ---- */
.how-grid {
  display: grid; grid-template-columns: minmax(0, 380px) 1fr;
  gap: 40px; align-items: center; margin-top: 8px;
}
.steps-compact { grid-template-columns: 1fr; gap: 18px; }
.steps-compact .step { padding: 18px 20px; }
@media (max-width: 860px) {
  .how-grid { grid-template-columns: 1fr; }
}

.demo-mock { max-width: 380px; margin: 0 auto; }
.demo-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: 0 10px 30px rgba(31, 42, 46, 0.08);
  min-height: 300px; display: flex; flex-direction: column; gap: 14px;
}
.demo-review { padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.demo-stars { color: var(--star); letter-spacing: 2px; font-size: 15px; }
.demo-author { font-size: 13px; color: var(--ink-soft); margin: 2px 0 6px; }
.demo-comment { font-size: 14px; min-height: 1.6em; }
.demo-draft-box {
  background: var(--brand-tint); border-radius: 10px; padding: 12px 14px;
  min-height: 92px;
}
.demo-draft-label { font-size: 12px; font-weight: 700; color: var(--brand-dark); margin-bottom: 6px; }
.demo-draft-text { font-size: 13.5px; color: var(--ink); }
.demo-caret {
  display: inline-block; width: 2px; height: 1em; background: var(--brand);
  margin-left: 2px; vertical-align: -2px; animation: caret-blink 0.9s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
.demo-sent {
  margin-top: auto; text-align: center; font-weight: 700; font-size: 14px;
  color: var(--brand-dark); opacity: 0; transform: translateY(6px) scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.demo-sent.show { opacity: 1; transform: translateY(0) scale(1); }
.demo-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 999px; background: var(--brand);
  color: #fff; font-size: 12px; margin-right: 6px;
}
.demo-caption { text-align: center; margin-top: 14px; font-size: 13px; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) {
  .demo-caret { animation: none; opacity: 0; }
}

/* ---- features ---- */
.features { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.feature {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.feature h3 { font-size: 16px; margin-bottom: 4px; }
.feature h3 .mk { color: var(--star); }
.feature p { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

/* ---- 功能卡片裡的小動畫 ---- */
.mini-demo { margin-top: 14px; }
.mini-label { font-size: 12px; color: var(--ink-soft); margin-bottom: 6px; }

.mini-variety .mini-bubble {
  background: var(--brand-tint); border-radius: 10px; padding: 10px 12px;
  font-size: 13.5px; min-height: 2.8em; display: flex; align-items: center;
}
.mini-variety .mini-bubble span {
  transition: opacity 0.25s ease; opacity: 1;
}
.mini-variety .mini-bubble span.fade { opacity: 0; }

.mini-batch-list { display: flex; flex-direction: column; gap: 6px; }
.mini-chip {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 10px; font-size: 12.5px; color: var(--ink-soft);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.mini-chip .mini-tick {
  font-style: normal; color: var(--line); font-weight: 700; transition: color 0.25s ease;
}
.mini-chip.done {
  background: var(--brand-tint); border-color: var(--brand); color: var(--ink);
}
.mini-chip.done .mini-tick { color: var(--brand); }

.mini-store-list { display: flex; flex-direction: column; gap: 6px; }
.mini-store-row {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 10px; opacity: 0; transform: translateX(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.mini-store-row.show { opacity: 1; transform: none; }
.mini-store-row em { margin-left: auto; font-style: normal; color: var(--ink-soft); font-size: 12px; }
.mini-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--danger); flex: none; }
.mini-dot.mini-dot-ok { background: var(--brand); }

.mini-tone-pill {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand-dark);
  margin-bottom: 6px;
}
.mini-tone .mini-bubble span { transition: opacity 0.25s ease; }
.mini-tone .mini-bubble span.fade { opacity: 0; }

.mini-toast-wrap { height: 46px; display: flex; align-items: center; }
.mini-toast {
  display: flex; align-items: center; gap: 8px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px;
  font-size: 12.5px; box-shadow: 0 4px 14px rgba(31, 42, 46, 0.08);
  opacity: 0; transform: translateY(-8px); transition: opacity 0.3s ease, transform 0.3s ease;
}
.mini-toast.show { opacity: 1; transform: translateY(0); }
.mini-toast-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--danger); flex: none; }

.mini-stats { display: flex; gap: 14px; }
.mini-stat {
  flex: 1; background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; text-align: center;
}
.mini-stat-num { font-size: 20px; font-weight: 700; color: var(--brand-dark); }
.mini-stat-label { font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }

/* ---- pricing ---- */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); align-items: start; }
.plan {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px; text-align: center;
}
.plan.featured { border-color: var(--brand); box-shadow: 0 6px 24px rgba(15,157,140,0.12); }
.plan .tag { font-size: 13px; color: var(--ink-soft); }
.plan .name { font-size: 19px; font-weight: 700; margin: 4px 0 12px; }
.plan .price { font-size: 26px; font-weight: 700; }
.plan .price small { font-size: 14px; font-weight: 400; color: var(--ink-soft); }
.plan .per { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; }
.pricing-note { text-align: center; margin-top: 26px; font-size: 14px; color: var(--ink-soft); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---- faq ---- */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 4px 18px; margin-bottom: 12px;
  transition: border-color 0.25s ease;
}
.faq details[open] { border-color: var(--brand); }
.faq summary {
  cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative; flex: none; width: 18px; height: 18px;
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--brand);
  transition: transform 0.3s ease;
}
.faq-icon::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.faq-icon::after { width: 2px; height: 12px; transform: translate(-50%, -50%); }
.faq details[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg) scale(0); }

/* details 的內容一律用自己的高度動畫控制，不靠瀏覽器原生的瞬間開合 */
.faq details > .faq-body {
  display: block; overflow: hidden; height: 0; opacity: 0;
  transition: height 0.28s ease, opacity 0.22s ease;
}
.faq details > .faq-body p { padding: 0 0 16px; color: var(--ink-soft); font-size: 15px; }
@media (prefers-reduced-motion: reduce) {
  .faq details > .faq-body { transition: none; }
  .faq-icon::before, .faq-icon::after { transition: none; }
}

/* ---- 聯絡我們 ---- */
.contact-grid {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 28px;
  max-width: 900px; margin: 0 auto; align-items: start;
}
.contact-side h3 { font-size: 18px; margin-bottom: 6px; }
.contact-side .muted { color: var(--ink-soft); font-size: 14px; }
.btn-line {
  display: inline-block; margin: 14px 0 4px;
  background: #06c755; /* LINE 官方綠 */
}
.btn-line:hover { background: #05a948; }
.contact-alt { margin-top: 14px; font-size: 14px; line-height: 1.6; }

.contact-form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field > span b { color: var(--danger); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; font-family: inherit; font-size: 15px;
  color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint);
}
.field textarea { resize: vertical; min-height: 92px; }
.field-note { font-size: 13px; color: var(--ink-soft); margin: -4px 0 14px; }
/* 蜜罐：讓機器人填得到、真人看不到也 tab 不到 */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn-lg { width: 100%; }
.form-status { margin-top: 12px; font-size: 14px; min-height: 20px; }
.form-status.is-err { color: var(--danger); }
.form-status.is-ok { color: var(--brand-dark); font-weight: 600; }
.contact-form .fine { margin-top: 10px; font-size: 12px; color: var(--ink-soft); }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---- final cta ---- */
section.final-cta {
  text-align: center; border-block: none; color: #fff; position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}
.final-cta::before {
  content: ""; position: absolute; inset: -40% -10%; pointer-events: none;
  background:
    radial-gradient(circle at 18% 25%, rgba(255, 255, 255, 0.14), transparent 42%),
    radial-gradient(circle at 82% 75%, rgba(255, 255, 255, 0.10), transparent 46%);
}
.final-cta .wrap { position: relative; }
.final-cta h2 { font-size: 26px; margin-bottom: 18px; color: #fff; }
.final-cta .btn-lg { background: #fff; color: var(--brand-dark); }
.final-cta .btn-lg:hover { background: #eef7f5; color: var(--brand-dark); }
.final-cta .fine { margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, 0.85); }

/* ---- footer ---- */
.site-footer {
  background: var(--ink); color: #c9d1d3; padding: 40px 0; font-size: 14px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.site-footer a { color: #c9d1d3; }
.site-footer .muted { color: #8b9698; }
.footer-brand { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-brand img { border-radius: 6px; }

/* ---- legal pages ---- */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 0 72px; }
.legal h1 { font-size: 28px; margin-bottom: 6px; }
.legal .updated { color: var(--ink-soft); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 19px; margin: 30px 0 10px; }
.legal h3 { font-size: 16px; margin: 20px 0 8px; }
.legal p, .legal li { color: var(--ink); font-size: 15px; margin-bottom: 10px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 14px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.legal .note {
  background: #fff6e5; border: 1px solid #f0dcae; border-radius: 10px;
  padding: 14px 16px; font-size: 14px; color: #7a5a15;
}

/* 定價區上方的「剛上線限時優惠」卡（2026-09-09） */
.launch-offer{max-width:720px;margin:0 auto 28px;padding:16px 20px;border:1px solid #99e6d8;background:#ecfdf8;border-radius:14px;display:flex;flex-direction:column;gap:4px;text-align:center}
.launch-offer strong{color:#0b7a6b;font-size:1.05rem}
.launch-offer span{color:#1f3f3a;font-size:.95rem}
.launch-offer .launch-offer-sub{color:#6b7280;font-size:.85rem}

/* 試用還沒開放的彈窗（2026-09-13，Google 開通後連同 index.html 的 dialog 一起拿掉） */
.waitlist {
  margin: auto; border: none; border-radius: 18px; padding: 30px 26px 24px;
  width: calc(100% - 32px); max-width: 420px; background: var(--surface); color: var(--ink);
  box-shadow: 0 20px 60px rgba(15, 30, 35, 0.25); text-align: center;
}
.waitlist::backdrop { background: rgba(20, 30, 33, 0.55); }
.waitlist[open] { animation: waitlist-in 0.18s ease-out; }
@keyframes waitlist-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .waitlist[open] { animation: none; } }
.waitlist-badge {
  display: inline-block; background: var(--brand-tint); color: var(--brand-dark);
  font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.waitlist h3 { font-size: 20px; margin-bottom: 12px; }
.waitlist p { color: var(--ink-soft); font-size: 15px; line-height: 1.7; margin-bottom: 6px; }
.waitlist-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.waitlist-close {
  position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: none;
  background: transparent; font-size: 24px; line-height: 1; color: var(--ink-soft); cursor: pointer; border-radius: 50%;
}
.waitlist-close:hover { background: var(--bg); color: var(--ink); }
