/* CellarCube 行銷頁。色票與 style.css 同一組，但這頁是獨立的，
   不載入應用程式的樣式——首次到訪的人應該只下載他真正看得到的東西。 */

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f4f3f1;
  --border: #e7e5e2;
  --text: #1c1a19;
  --muted: #78716c;
  --accent: #7a1227;
  --accent-soft: #f6e9ee;
  --up: #15803d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px rgba(0, 0, 0, .06);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .04), 0 24px 60px rgba(0, 0, 0, .12);
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141212;
    --surface: #1c1a1a;
    --surface-2: #252222;
    --border: #322e2e;
    --text: #efeceb;
    --muted: #a39d9a;
    --accent: #d9738f;
    --accent-soft: #3a2029;
    --up: #4ade80;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.75 system-ui, -apple-system, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5.2vw, 56px); font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: clamp(25px, 3.2vw, 34px); font-weight: 650; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: inherit; }

/* ── 按鈕 ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn-lg { padding: 15px 32px; font-size: 16.5px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(122, 18, 39, .25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(122, 18, 39, .32); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
@media (prefers-color-scheme: dark) {
  .btn-primary { color: #1a0d11; box-shadow: none; }
}

/* ── 導覽列 ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  max-width: var(--max); margin: 0 auto; padding: 14px 24px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
}
.nav.stuck { border-bottom: 1px solid var(--border); }
.nav-brand { flex: none; }
.nav-brand img { height: 26px; width: auto; flex: none; max-width: none; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 4px; }
.lang-pick {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border);
  font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; line-height: 1.4;
  white-space: nowrap;   /* 手機版窄，不加這行「中文」會被折成兩行 */
}
.lang-pick:hover { color: var(--text); background: var(--surface-2); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 56px 24px 72px;
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 4px 13px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 46ch; margin-bottom: 1.8em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.fine { font-size: 13.5px; color: var(--muted); margin-top: 16px; }
.fine.center { text-align: center; margin-top: 28px; }

.hero-shot img {
  border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}

/* ── 色塊區（痛點、步驟、FAQ）───────────────────────────── */
.band { background: var(--surface-2); border-block: 1px solid var(--border); padding: 72px 24px; }
.band.alt { background: var(--surface); }
.band-inner { max-width: var(--max); margin: 0 auto; }
.band-inner.narrow { max-width: 760px; }
.band-inner > h2 { text-align: center; margin-bottom: 40px; }
.band-foot { text-align: center; margin: 40px auto 0; max-width: 52ch; color: var(--muted); font-size: 17px; }

.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.pain {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 22px 8px;
}
.pain-mark { display: block; font-weight: 650; margin-bottom: 8px; color: var(--accent); }
.pain p { color: var(--muted); font-size: 15px; }

/* ── 功能區塊 ───────────────────────────────────────────── */
.features { max-width: var(--max); margin: 0 auto; padding: 24px; }
.feature {
  display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center;
  padding: 64px 0; border-bottom: 1px solid var(--border);
}
.feature:last-child { border-bottom: 0; }
.tag {
  display: inline-block; margin-bottom: 12px; padding: 3px 11px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 600;
}
.feature-text p { color: var(--muted); max-width: 48ch; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 15px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 7px; height: 12px; border: solid var(--accent); border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-2px);
}
.feature-art svg { width: 100%; height: auto; }
.feature-art.shot img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }

/* SVG 示意圖裡的文字與色塊 */
.svg-sm { font-size: 11px; fill: var(--muted); font-family: inherit; }
.svg-xs { font-size: 10px; fill: var(--muted); font-family: inherit; }
.svg-lg { font-size: 22px; font-weight: 700; fill: var(--accent); font-family: inherit; }
.svg-val { font-size: 11px; fill: var(--text); font-family: inherit; }
.svg-row rect { fill: var(--border); }
.svg-fill { fill: var(--text); opacity: .75; }
.svg-fill-soft { fill: var(--muted); opacity: .45; }
.svg-field rect { fill: var(--surface-2); stroke: var(--border); }

/* ── 問答示意 ───────────────────────────────────────────── */
.chat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; font-size: 14.5px;
}
.chat-head { display: flex; gap: 6px; margin-bottom: 16px; }
.chat-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.bubble { border-radius: 14px; padding: 11px 15px; margin-bottom: 12px; max-width: 92%; }
.bubble.user { background: var(--accent); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.bubble.bot { background: var(--surface-2); border-bottom-left-radius: 4px; }
.bubble p { margin: 0 0 .6em; }
.bubble p:last-child { margin-bottom: 0; }
.bubble ul { margin: 0 0 .6em; padding-left: 1.2em; }
.bubble li { margin-bottom: 3px; }
.chat-note { color: var(--muted); font-size: 13.5px; }
.chat-foot { text-align: center; font-size: 12px; color: var(--muted); margin-top: 4px; }
@media (prefers-color-scheme: dark) { .bubble.user { color: #1a0d11; } }

/* ── 步驟 ───────────────────────────────────────────────── */
.steps {
  list-style: none; padding: 0; margin: 0 0 44px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px;
}
.steps li { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.band.alt .steps li { background: var(--bg); }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; margin-bottom: 14px;
  background: var(--accent); color: #fff; font-weight: 700;
}
.steps p { color: var(--muted); font-size: 15px; margin: 0; }
@media (prefers-color-scheme: dark) { .step-n { color: #1a0d11; } }

/* ── 方案 ───────────────────────────────────────────────── */
.pricing { max-width: var(--max); margin: 0 auto; padding: 76px 24px; text-align: center; }
.section-lede { color: var(--muted); max-width: 48ch; margin: 0 auto 40px; }
.plans {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 20px;
  text-align: left; margin-bottom: 8px;
}
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px;
}
.plan.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan-badge {
  position: absolute; top: -11px; left: 24px; padding: 3px 11px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 600;
}
.plan img { width: 56px; height: 56px; margin-bottom: 10px; }
.price { font-size: 30px; font-weight: 700; margin: 4px 0 2px; letter-spacing: -.02em; }
.price span { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.price-note { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
/* 「依環境報價」不是數字，不要用數字的字級喊——小一點、顏色收斂一點 */
.price-quote { font-size: 21px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; font-size: 14.5px; }
.plan li { position: relative; padding-left: 22px; margin-bottom: 9px; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: .6em;
  width: 6px; height: 10px; border: solid var(--accent); border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-2px);
}
.plan li.quota {
  padding-left: 0; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 13px; line-height: 1.6;
}
.plan li.quota::before { display: none; }
.plan li.quota em { font-style: normal; color: var(--accent); }
.plan .btn { width: 100%; }
@media (prefers-color-scheme: dark) { .plan-badge { color: #1a0d11; } }

/* ── FAQ ────────────────────────────────────────────────── */
details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 4px 22px; margin-bottom: 12px;
}
details[open] { padding-bottom: 8px; }
summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 8px; height: 8px;
  border: solid var(--muted); border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-2px); transition: transform .15s ease;
}
details[open] summary::after { transform: rotate(-135deg) translateY(2px); }
details p { color: var(--muted); font-size: 15px; }
details p:last-child { margin-bottom: 14px; }
details strong { color: var(--text); }

/* ── 結尾 CTA ───────────────────────────────────────────── */
.final { text-align: center; padding: 88px 24px; }
.final p { color: var(--muted); max-width: 50ch; margin: 0 auto 30px; }

/* ── 頁尾 ───────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--border); background: var(--surface-2); padding: 40px 24px; }
.foot-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot img { height: 23px; width: auto; }
.foot nav { display: flex; gap: 20px; font-size: 14.5px; flex-wrap: wrap; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot .fine { margin: 0 0 0 auto; }

.sm-only { display: none; }

/* ── 大螢幕：圖文並排 ───────────────────────────────────── */
@media (min-width: 880px) {
  .hero { grid-template-columns: 1.05fr 1.15fr; padding: 72px 24px 96px; gap: 56px; }
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature.reverse .feature-text { order: 2; }
  /* 截圖往外推一點，看起來像從視窗邊緣延伸出去 */
  .feature-art.shot { margin-inline: -8px; }
}
@media (max-width: 879px) {
  .nav-links { display: none; }
  .nav { gap: 10px; }
  .lang-pick { margin-left: auto; padding: 5px 10px; }
  .nav-cta { margin-left: 0; padding: 10px 16px; font-size: 14px; }
  .sm-only { display: inline; }
  .foot .fine { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn-primary:hover { transform: none; }
}

/* ── 洽詢表單 ───────────────────────────────────────────────── */
/* 行銷頁沒有載入應用程式的樣式，對話框這一段要自己有 */
.modal {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 0;
  width: min(460px, calc(100vw - 32px)); background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-lg);
}
.modal::backdrop { background: rgba(0, 0, 0, .4); backdrop-filter: blur(2px); }
.modal-head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px; border-bottom: 1px solid var(--border);
}
.modal-head h3 { margin: 0; font-size: 17px; flex: 1; }
.modal-body { padding: 18px; }
.modal .icon-btn {
  border: 0; background: none; cursor: pointer; color: var(--muted);
  padding: 4px; border-radius: 6px; display: inline-flex;
}
.modal .icon-btn:hover { background: var(--surface-2); color: var(--text); }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.field input, .field textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 14.5px;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.field textarea { resize: vertical; }
.row-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.row-actions .btn { margin-left: auto; }
.tiny { font-size: 12px; }
.enquiry-err { color: var(--accent); font-size: 13.5px; margin: 0 0 4px; }
.enquiry-done { padding: 8px 0 4px; }
/* 蜜罐：要讓機器人「看得到」（所以不能用 display:none），但真人看不到也 tab 不到 */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 語言提示列：不自動把人轉走，給一條可關閉的提示就好。
   自動轉址會讓爬蟲只收得到其中一種語言——這是 SEO 上最實際的代價。 */
.lang-hint {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 9px 16px; font-size: 14px;
  background: var(--accent-soft); color: var(--text);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.lang-hint a { color: var(--accent); font-weight: 600; }
.lang-hint button {
  margin-left: auto; border: 0; background: none; color: var(--muted);
  cursor: pointer; padding: 4px; border-radius: 6px; display: inline-flex;
}
.lang-hint button:hover { color: var(--text); background: color-mix(in srgb, var(--accent) 10%, transparent); }
