/* 團主幫官網共用樣式：手機優先，桌機（>= 720px、>= 960px）再加寬。
   顏色取自 App 圖示漸層；文字色組的對比都在 4.5:1 以上（驗證腳本有實算）。 */
:root {
  color-scheme: light;
  --bg: #faf8f4;            /* 底色 rgb(250,248,244) */
  --surface: #ffffff;
  --ink: #28282e;           /* 深字 rgb(40,40,46) */
  --ink-soft: #55555e;      /* 次要文字 */
  --accent: #b04a10;        /* 橘色文字、按鈕底（白字對比 5.4） */
  --accent-hover: #963d0b;
  --brand-1: #ffc45a;       /* 漸層 rgb(255,196,90) */
  --brand-2: #e66e1e;       /* 漸層 rgb(230,110,30) */
  --brand-3: #d25a14;       /* 漸層 rgb(210,90,20) */
  --tint: #fff1dc;
  --line: #ebe4d8;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(40, 40, 46, .06), 0 6px 18px rgba(120, 60, 10, .08);
  --font-title: 'Chiron GoRound TC', 'Noto Sans TC', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
  --font-num: 'Fredoka', 'Chiron GoRound TC', 'Noto Sans TC', sans-serif;
  --font-body: 'Noto Sans TC', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  overflow-wrap: break-word;
  min-height: 100vh;            /* 內容短（404）時頁尾也貼在底部 */
  display: flex;
  flex-direction: column;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 700; line-height: 1.3; margin: 0; text-wrap: balance; }
p, li { text-wrap: pretty; }   /* 避免段落結尾只剩一兩個字 */
p { margin: 0 0 1em; }
.nb { display: inline-block; }   /* 讓中文斷行斷在詞組之間 */

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 8px; color: #fff; }

/* ---------- 頁首 ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 42px; height: 42px; border-radius: 11px; }
.brand span { font-family: var(--font-title); font-weight: 700; font-size: 24px; letter-spacing: .04em; }
.header-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 2px solid var(--accent); border-radius: 999px;
  color: var(--accent); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
}
.header-link:hover { background: var(--tint); }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font-family: var(--font-title); font-weight: 700; font-size: 20px; letter-spacing: .03em;
  text-decoration: none; transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-light { background: #fff; color: var(--accent); box-shadow: 0 4px 14px rgba(120, 50, 0, .18); }
.btn-light:hover { color: var(--accent-hover); background: #fffaf2; }
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--accent-hover); color: #fff; }

/* ---------- 首頁：主視覺 ---------- */
.hero {
  background: linear-gradient(165deg, var(--brand-1) 0%, #f29a3e 58%, var(--brand-2) 100%);
  padding: 36px 0 44px;
}
.hero .wrap { display: grid; gap: 24px; align-items: center; }
.hero-icon { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 8px 24px rgba(120, 50, 0, .25); }
.hero h1 { font-size: 38px; letter-spacing: .02em; margin-bottom: 14px; }
.hero-sub { font-size: 21px; font-weight: 500; line-height: 1.6; margin-bottom: 26px; }
.hero-note { margin: 16px 0 0; font-size: 16px; font-weight: 500; }
.hero-art { display: none; }

/* ---------- 區塊 ---------- */
.section { padding: 52px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  display: inline-block; margin-bottom: 10px; padding: 2px 12px; border-radius: 999px;
  background: var(--tint); color: var(--accent); font-size: 16px; font-weight: 700; letter-spacing: .08em;
}
.section h2 { font-size: 28px; margin-bottom: 10px; }
.section-lead { color: var(--ink-soft); margin-bottom: 26px; }

/* 功能小卡：手機 2 欄（照框線圖），桌機 3 欄 */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 14px 18px; box-shadow: var(--shadow);
}
.feature-icon {
  width: 46px; height: 46px; border-radius: 14px; margin-bottom: 12px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--brand-1), var(--brand-2) 70%, var(--brand-3));
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 19px; color: var(--accent); margin-bottom: 6px; }
.feature p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-soft); }

/* 價格 */
.price-card {
  max-width: 720px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden;
}
.price-card::before { content: ""; display: block; height: 8px; background: linear-gradient(90deg, var(--brand-1), var(--brand-2), var(--brand-3)); }
.price-body { padding: 24px 18px 26px; }
.plan-name { font-family: var(--font-title); font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 18px; }
.price .cur { font-family: var(--font-num); font-weight: 600; font-size: 24px; color: var(--accent); }
.price .num { font-family: var(--font-num); font-weight: 600; font-size: 60px; line-height: 1; color: var(--accent); letter-spacing: .01em; }
.price .unit { font-size: 18px; color: var(--ink-soft); }
.includes-title { font-weight: 700; margin: 0 0 6px; }
.includes { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 20px; }
.includes li { position: relative; padding: 5px 0 5px 30px; line-height: 1.55; }
.includes li::before {           /* 純 CSS 打勾 */
  content: ""; position: absolute; left: 6px; top: 10px;
  width: 7px; height: 13px; border: solid var(--brand-3); border-width: 0 3px 3px 0; transform: rotate(40deg);
}
.addon {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px;
  padding: 14px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); margin-bottom: 18px;
}
.addon strong { font-size: 19px; }
.addon .addon-price { font-family: var(--font-num); font-weight: 600; font-size: 22px; color: var(--accent); }
.addon .addon-price small { font-family: var(--font-body); font-size: 16px; font-weight: 400; color: var(--ink-soft); }
.perks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; }
.perks li { background: var(--tint); color: var(--accent); font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: 17px; }
.price-note { color: var(--ink-soft); margin-bottom: 20px; }
.price-body .btn { width: 100%; }

/* 怎麼開始 */
.steps { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 14px; }
.step {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow);
}
.step-num {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-3); color: #fff; font-family: var(--font-num); font-weight: 600; font-size: 26px;
}
.step h3 { font-size: 21px; margin: 4px 0 4px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 17px; }
.center { text-align: center; }

/* ---------- 頁尾 ---------- */
.site-footer { background: var(--ink); color: #f3eee6; padding: 32px 0 36px; font-size: 16px; margin-top: auto; }
.site-footer a { color: var(--brand-1); }
.site-footer a:hover { color: #ffe0a6; }
.footer-links { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; }
.footer-links li { display: inline-flex; align-items: center; }
.footer-links li + li::before { content: "｜"; color: #9a958d; padding: 0 6px; }
.footer-links a, .footer-links span { display: inline-block; padding: 6px 0; }
.copyright { margin: 10px 0 0; color: #c9c3b9; }

/* ---------- 法律頁（隱私權、條款、刪除帳號） ---------- */
.doc { width: 100%; max-width: 820px; margin: 0 auto; padding: 28px 16px 56px; }
.doc-head { margin-bottom: 20px; }
.doc-head h1 { font-size: 32px; margin-bottom: 8px; }
.doc-meta { color: var(--ink-soft); font-size: 16px; margin: 0 0 6px; }
.draft-banner {
  display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 10px;
  background: #fbefd2; color: #7a4f00; font-weight: 700; font-size: 16px;
}
.toc {
  margin: 20px 0 24px; padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.toc h2 { font-size: 19px; margin: 0 0 6px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 24px; }
.toc a { display: block; padding: 7px 0; text-decoration: none; font-size: 17px; line-height: 1.5; }
.toc a:hover { text-decoration: underline; }
.legal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px 26px; }
.legal h2 { font-size: 23px; margin: 1.6em 0 .5em; padding-top: 4px; scroll-margin-top: 16px; }
.legal > h2:first-child, .legal > :first-child { margin-top: 0; }
.legal ul, .legal ol { padding-left: 1.4em; margin: 0 0 1em; }
.legal li { margin: 6px 0; }
.legal li > ul { margin: 6px 0 0; }
.legal .muted { color: var(--ink-soft); font-size: 16px; }
.table-scroll { overflow-x: auto; margin: 0 0 1em; border: 1px solid var(--line); border-radius: 12px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 17px; line-height: 1.6; }
.legal th, .legal td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal tr:last-child td { border-bottom: 0; }
.legal th { background: #faf5ec; color: var(--ink-soft); font-size: 16px; white-space: nowrap; }
.legal td:first-child { min-width: 9em; }
/* 手機上表格改成一列一張小卡，不用左右對照窄欄 */
@media (max-width: 719px) {
  .stack, .stack tbody, .stack tr, .stack td { display: block; width: 100%; }
  .stack tr:first-child { display: none; }
  .stack tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .stack tr:last-child { border-bottom: 0; }
  .stack td { border: 0; padding: 0; min-width: 0; }
  .stack td + td { margin-top: 6px; color: var(--ink-soft); }
  .stack-when td + td::before { content: "什麼時候收："; font-weight: 700; color: var(--accent); }
  .stack-keep td + td::before { content: "留多久："; font-weight: 700; color: var(--accent); }
}
.summary { background: var(--tint); border-radius: 14px; padding: 16px 18px 6px; margin: 0 0 8px; }
.summary h2 { margin-top: 0; }

/* 刪除帳號頁 */
.methods { display: grid; gap: 14px; margin: 0 0 18px; }
.method { border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 16px 6px; background: #fffdf9; }
.method h3 { font-size: 21px; color: var(--accent); margin: 0 0 8px; }
.method .path { font-weight: 700; }
.mail-big { font-family: var(--font-num); font-size: 22px; font-weight: 600; overflow-wrap: anywhere; }
.keep-table td:last-child { white-space: normal; }

/* 404 */
.notfound { text-align: center; padding: 64px 16px 80px; }
.notfound .code { font-family: var(--font-num); font-weight: 600; font-size: 96px; line-height: 1; color: var(--brand-3); margin: 0 0 12px; }
.notfound h1 { font-size: 30px; margin-bottom: 10px; }
.notfound p { color: var(--ink-soft); margin-bottom: 26px; }

/* ---------- 平板以上 ---------- */
@media (min-width: 720px) {
  .wrap { padding: 0 28px; }
  .hero { padding: 64px 0 72px; }
  .hero .wrap { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; }
  .hero-icon { display: none; }
  .hero h1 { font-size: 52px; }
  .hero-sub { font-size: 24px; }
  .hero-art { display: grid; place-items: center; position: relative; min-height: 300px; }
  .hero-art img { width: 240px; height: 240px; border-radius: 56px; box-shadow: 0 18px 48px rgba(120, 50, 0, .3); }
  .bubble {
    position: absolute; background: #fff; color: var(--accent); font-family: var(--font-num); font-weight: 600;
    font-size: 26px; padding: 6px 18px; border-radius: 18px; box-shadow: 0 6px 18px rgba(120, 50, 0, .2);
  }
  .bubble::after { content: ""; position: absolute; left: 18px; bottom: -9px; border: 10px solid transparent; border-top-color: #fff; border-bottom: 0; }
  .bubble-a { top: 6%; left: 4%; }
  .bubble-b { top: 22%; right: 0; }
  .bubble-c { bottom: 6%; left: 12%; }
  .section { padding: 72px 0; }
  .section h2 { font-size: 34px; }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .feature { padding: 22px 22px 24px; }
  .feature h3 { font-size: 21px; }
  .feature p { font-size: 17px; }
  .price-body { padding: 32px 36px 34px; }
  .includes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-body .btn { width: auto; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .step { grid-template-columns: minmax(0, 1fr); padding: 24px 22px; }
  .doc { padding: 44px 28px 72px; }
  .doc-head h1 { font-size: 38px; }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal { padding: 36px 40px 40px; }
  .methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
