/* ==========================================================================
   FEELWONDER 企業大腦主機 — 共用樣式（index.html／assessment.html）
   ========================================================================== */

:root {
  /* 色彩（取自設計稿） */
  --c-bg: #F6F2EA;          /* 暖白底 */
  --c-sand: #EDE6D9;        /* 沙色區塊 */
  --c-white: #FFFFFF;       /* 白卡 */
  --c-ink: #1F1B16;         /* 文字 */
  --c-muted: #5C554B;       /* 次要文字 */
  --c-dark: #14120F;        /* 暗色區底 */
  --c-dark-card: #221E19;   /* 暗卡 */
  --c-dark-card-2: #2C2620; /* 暗卡內圖區 */
  --c-dark-card-glow: #40372D; /* 暗卡內圖區，主機後方的打光 */
  --c-dark-chip: #3A332B;   /* 暗區標籤、邊框 */
  --c-on-dark: #F4EEE4;     /* 暗區文字 */
  --c-on-dark-muted: #BDB3A3; /* 暗區次要文字 */
  --c-on-card-muted: #C9CED4; /* 推薦卡次要文字 */
  --c-gold: #D4A85C;        /* 強調色（香檳金）：只用於底色或暗底文字 */
  --c-gold-hover: #DFB86F;
  --c-hero-end: #EFE6D6;
  --c-cta-end: #E9DCC4;
  --c-line: #C9C6BD;
  --c-line-soft: #DDDBD4;
  --c-line-warm: #D9CDB8;
  --c-ghost-border: #CDBFA6;
  --c-plan-visual: #F1F0EB;
  --c-bar-off: #D9D6CE;
  --c-error: #9A2E0E;

  /* 字體 */
  --f-sans: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --f-mono: 'IBM Plex Mono', Menlo, Consolas, monospace;

  /* 字級（手機約為桌機 60%） */
  --fs-h1: clamp(38px, 21.6px + 3.42vw, 64px);
  --fs-h2: clamp(30px, 21.2px + 1.84vw, 44px);
  --fs-h2-xl: clamp(32px, 21.9px + 2.1vw, 48px);
  --fs-lead: clamp(17px, 15.7px + 0.27vw, 18px);
  --fs-lead-hero: clamp(17px, 15.1px + 0.4vw, 20px);

  /* 間距 */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-20: 20px;
  --sp-24: 24px;
  --sp-28: 28px;
  --sp-32: 32px;
  --sp-48: 48px;
  --sp-56: 56px;
  --sp-64: 64px;
  --gutter: 32px;
  --section-y: 112px;
  --container: 1240px;
  --header-h: 88px;

  /* 圓角 */
  --r-card: 18px;
  --r-plan: 20px;
  --r-pill: 999px;

  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

@media (max-width: 767px) {
  :root {
    --gutter: 20px;
    --section-y: 72px;
    --header-h: 72px;
  }
}

/* ---------- 基礎 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
/* ScrollTrigger 重新計算位置時需要瞬間捲動，動態版不可用 smooth */
html.motion { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img.is-broken { visibility: hidden; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--c-ink); }
a:hover { color: #000; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 3px; border-radius: 4px; }
.section--dark :focus-visible, .panel--dark :focus-visible { outline-color: var(--c-on-dark); }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--c-ink); color: var(--c-on-dark);
  padding: 12px 20px; border-radius: var(--r-pill); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--c-on-dark); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container--narrow { max-width: 1040px; }
.container--faq { max-width: 900px; }
.stack-32 { display: flex; flex-direction: column; gap: var(--sp-32); }
.stack-48 { display: flex; flex-direction: column; gap: var(--sp-48); }

/* ---------- 文字 ---------- */
.eyebrow {
  font-family: var(--f-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.16em; color: var(--c-muted); line-height: 1.5;
}
.section--dark .eyebrow { color: var(--c-on-dark-muted); }
.h1, .h2, .panel__title, .inflow__line { text-wrap: balance; }
.h1 { font-size: var(--fs-h1); line-height: 1.15; font-weight: 900; letter-spacing: -0.01em; }
.h2 { font-size: var(--fs-h2); line-height: 1.25; font-weight: 900; }
.h2--xl { font-size: var(--fs-h2-xl); line-height: 1.2; }
.h2--faq { font-size: clamp(28px, 20.7px + 1.53vw, 40px); }
.h3 { font-size: 22px; line-height: 1.4; font-weight: 700; }
.h3--sm { font-size: 20px; }
.h3--lg { font-size: clamp(21px, 19.3px + 0.36vw, 24px); }
.lead { font-size: var(--fs-lead); color: var(--c-muted); }
.section--dark .lead { color: var(--c-on-dark-muted); }
.small { font-size: 14px; }
.muted { color: var(--c-muted); }
.label { font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--c-muted); line-height: 1.6; }
.label--wide { letter-spacing: 0.12em; }
.mono-strong { font-family: var(--f-mono); font-weight: 600; letter-spacing: 0.12em; }
.dots { font-size: 18px; letter-spacing: 4px; line-height: 1; }
.dots--gold { color: var(--c-gold); }
.strong-link { font-weight: 700; }
.nw { white-space: nowrap; }
.text-link { font-weight: 700; font-size: 16px; text-decoration: underline; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: var(--r-pill);
  font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.3;
  text-decoration: none; text-align: center; cursor: pointer; border: 0;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--c-gold); color: var(--c-ink); }
.btn--gold:hover { background: var(--c-gold-hover); color: var(--c-ink); }
.btn--ghost {
  background: rgba(246, 242, 234, 0.72); color: var(--c-ink); font-weight: 500;
  border: 1px solid var(--c-ghost-border);
}
.btn--ghost:hover { background: var(--c-bg); border-color: var(--c-ink); color: var(--c-ink); }
.btn--outline { background: transparent; color: var(--c-ink); font-weight: 500; border: 1px solid var(--c-ink); }
.btn--outline:hover { background: rgba(31, 27, 22, 0.06); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 17px; }
.btn--xl { min-height: 60px; padding: 0 32px; font-size: 18px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-16); align-items: center; }

/* ---------- 導覽列 ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-16);
  min-height: var(--header-h); padding-top: 12px; padding-bottom: 12px;
}
.brand { color: var(--c-ink); text-decoration: none; font-weight: 900; letter-spacing: 0.12em; font-size: 18px; display: inline-flex; align-items: center; min-height: 44px; }
.site-nav { display: flex; align-items: center; gap: var(--sp-24); }
.site-nav__links { display: flex; align-items: center; gap: var(--sp-4); }
.site-nav__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: #E6DED0; text-shadow: 0 1px 8px rgba(20, 18, 15, 0.5); text-decoration: none; font-size: 15px; border-radius: var(--r-pill);
}
.site-nav__links a:hover { color: #FFFFFF; background: rgba(20, 18, 15, 0.45); }
.site-header .brand { color: var(--c-on-dark); text-shadow: 0 1px 8px rgba(20, 18, 15, 0.5); }
.site-header :focus-visible { outline-color: var(--c-on-dark); }
@media (max-width: 899px) {
  .site-nav__links { display: none; }
}
@media (max-width: 767px) {
  .site-nav > .btn { display: none; }
  /* 動態版：按鈕與信任列由 main.js 在往下捲時淡入，先隱藏避免閃現 */
  .motion .hero__content .btn-row, .motion .hero__trust { opacity: 0; visibility: hidden; }
}

/* ==========================================================================
   捲動轉場（scrolly）
   預設為靜態版（顯示靜態圖、不固定畫面）；<html class="motion"> 時才啟用固定畫面與影格。
   ========================================================================== */
.scrolly { position: relative; }
.scrolly__stage {
  position: relative; overflow: hidden;
  min-height: 88vh; min-height: 88svh;
  display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(ellipse at 50% 60%, #FFF3DC 0%, #EADFCB 65%, #DDD0BA 100%);
}
.scrolly__canvas, .scrolly__poster {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
}
.scrolly__canvas { display: none; }
.scrolly__poster { object-fit: cover; }
.scrim { position: absolute; inset: 0; pointer-events: none; }

.motion .scrolly { height: calc(100vh + var(--len, 200vh)); }
.motion .scrolly__stage { position: sticky; top: 0; height: 100vh; min-height: 0; }
.motion .scrolly__canvas { display: block; }
.motion .scrolly__poster { display: none; }
/* 捲動到結尾才出現的文字：動態版預設隱藏，交給 main.js 控制 */
.motion .hero__endnote, .motion .inflow__line, .motion .scrim--inflow { opacity: 0; visibility: hidden; }

/* 捲動長度：桌機／手機（約 -30%） */
.scrolly--hero { --len: 250vh; }
.scrolly--inflow { --len: 200vh; }
.scrolly--lineup { --len: 150vh; }
@media (max-width: 767px) {
  .scrolly--hero { --len: 175vh; }
  .scrolly--inflow { --len: 140vh; }
  .scrolly--lineup { --len: 105vh; }
}

/* ---------- 轉場 ① 主視覺 ---------- */
.scrolly--hero { background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-hero-end) 100%); }
.scrolly--hero .scrolly__stage { min-height: 100vh; min-height: 100svh; }
.scrim--hero {
  background:
    linear-gradient(180deg, rgba(20, 18, 15, 0.7) 0, rgba(20, 18, 15, 0) 140px),
    linear-gradient(90deg, rgba(20, 18, 15, 0.84) 0%, rgba(20, 18, 15, 0.7) 40%, rgba(20, 18, 15, 0) 72%);
}
.hero__content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: var(--sp-28);
  padding-top: calc(var(--header-h) + 24px); padding-bottom: 72px;
}
.hero__content > * { max-width: 600px; }
.hero__content .h1 { max-width: 760px; }
.hero__lead { font-size: var(--fs-lead-hero); color: var(--c-muted); }
.hero__trust { font-size: 14px; color: var(--c-muted); }
/* 深色遮罩上的淺色文字 */
.hero__content { color: var(--c-on-dark); text-shadow: 0 1px 12px rgba(20, 18, 15, 0.45); }
.hero__content .eyebrow, .hero__trust { color: #D9CFBF; }
.hero__lead { color: #E6DED0; }
.hero__content .btn { text-shadow: none; }
.hero__content .btn--ghost { background: rgba(20, 18, 15, 0.35); border-color: rgba(244, 238, 228, 0.55); color: var(--c-on-dark); }
.hero__content .btn--ghost:hover { background: rgba(20, 18, 15, 0.6); border-color: var(--c-on-dark); color: #FFFFFF; }
.scrolly--hero :focus-visible { outline-color: var(--c-on-dark); }
.hero__endnote {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 9%; margin: 0 auto; width: max-content; max-width: calc(100% - 2 * var(--gutter));
  font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.08em;
  color: var(--c-ink); background: rgba(246, 242, 234, 0.82);
  padding: 6px 14px; border-radius: var(--r-pill); white-space: nowrap;
}
.scroll-cue { display: none; }
.motion .scroll-cue {
  display: block; position: absolute; z-index: 2; left: 50%; bottom: 28px; width: 1px; height: 48px;
  background: rgba(244, 238, 228, 0.25); overflow: hidden;
}
.motion .scroll-cue span {
  position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--c-on-dark);
  transform: translateY(-100%);
  animation: cue 2.2s var(--ease-out) infinite;
}
@keyframes cue { to { transform: translateY(250%); } }
.js:not(.motion) .hero__endnote, html:not(.js) .hero__endnote { position: relative; bottom: auto; align-self: center; margin: 0 auto 40px; }

@media (max-width: 767px) {
  .scrim--hero {
    background: linear-gradient(180deg, rgba(20, 18, 15, 0.86) 0%, rgba(20, 18, 15, 0.8) 68%, rgba(20, 18, 15, 0.25) 92%, rgba(20, 18, 15, 0.1) 100%);
  }
  .motion .scrolly--hero .scrolly__stage { justify-content: flex-start; }
  .hero__content { gap: var(--sp-20); padding-bottom: 96px; }
  .hero__content .btn-row { flex-direction: column; align-items: stretch; gap: var(--sp-12); }
  .hero__content .btn { width: 100%; }
  .hero__endnote { bottom: 88px; }
  .motion .scroll-cue { bottom: 20px; height: 40px; }
}
/* 矮螢幕手機：首屏需完整顯示標籤、主標、副標、兩個按鈕、信任列 */
@media (max-width: 767px) and (max-height: 740px) {
  .hero__content { gap: 14px; padding-top: calc(var(--header-h) + 4px); padding-bottom: 48px; }
  .hero__lead { font-size: 16px; line-height: 1.55; }
  .hero__content .btn--lg { min-height: 48px; font-size: 16px; }
  .hero__trust { font-size: 13px; line-height: 1.5; }
}
@media (max-width: 359px) {
  :root { --fs-h1: 32px; --gutter: 16px; }
}

/* ---------- 轉場 ② 文件流入 ---------- */
.scrolly--inflow { background: var(--c-dark); }
.scrolly--inflow .scrolly__stage {
  background: radial-gradient(ellipse at 50% 55%, #2A241D 0%, #14120F 70%);
}
.scrim--inflow {
  background: linear-gradient(90deg, rgba(246, 242, 234, 0.85) 0%, rgba(246, 242, 234, 0.6) 30%, rgba(246, 242, 234, 0) 54%);
}
.inflow__wrap { position: relative; z-index: 2; }
.inflow__line {
  font-size: var(--fs-h2-xl); line-height: 1.25; font-weight: 900; color: var(--c-ink);
  max-width: 620px;
}
@media (max-width: 767px) {
  /* 手機：文字放上方，主機留在畫面中央 */
  .scrolly--inflow .scrolly__stage { justify-content: flex-start; }
  .inflow__wrap { padding-top: 14vh; padding-bottom: 40px; }
  .scrim--inflow {
    background: linear-gradient(180deg, rgba(246, 242, 234, 0.88) 0%, rgba(246, 242, 234, 0.7) 28%, rgba(246, 242, 234, 0) 46%);
  }
}

/* ---------- 轉場 ③ 三機型 ---------- */
.scrim--lineup {
  background: linear-gradient(180deg, rgba(246, 242, 234, 0.88) 0%, rgba(246, 242, 234, 0.55) 22%, rgba(246, 242, 234, 0) 40%);
}
.lineup__labels {
  position: relative; z-index: 2; align-self: stretch;
  display: flex; flex-direction: column; gap: var(--sp-16);
  padding-top: 40px; padding-bottom: 40px;
}
.lineup__label { display: flex; flex-direction: column; gap: 4px; color: var(--c-ink); }
.lineup__code { font-family: var(--f-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; display: inline-flex; align-items: center; gap: 12px; }
.lineup__code .dots { font-size: 14px; letter-spacing: 3px; }
.lineup__name { font-size: clamp(22px, 17.6px + 0.92vw, 30px); font-weight: 900; line-height: 1.3; }
.js:not(.motion) .scrolly--lineup .scrolly__stage, html:not(.js) .scrolly--lineup .scrolly__stage { justify-content: flex-start; }
.motion .scrolly--lineup .scrolly__stage { justify-content: flex-start; }
.motion .lineup__labels { display: grid; padding-top: clamp(32px, 8vh, 88px); }
.motion .lineup__label { grid-area: 1 / 1; opacity: 0; visibility: hidden; }
.motion .lineup__label.is-active { opacity: 1; visibility: visible; }

/* ==========================================================================
   一般區塊
   ========================================================================== */
.section { padding: var(--section-y) 0; }
/* 畫面外的文字區塊延後排版，加快首屏；捲動轉場區塊不套用 */
.section:not(.section--plans) { content-visibility: auto; contain-intrinsic-size: auto 1200px; }
.section--dark { background: var(--c-dark); color: var(--c-on-dark); }
.section--white { background: var(--c-white); }
.section--sand { background: var(--c-sand); }
.section-head { display: flex; flex-direction: column; gap: var(--sp-16); max-width: 820px; }
.section-head--narrow { max-width: 760px; }

.grid { display: grid; gap: var(--sp-24); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-20); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-32) var(--sp-24); }
.grid--plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
@media (min-width: 1100px) { .grid--reasons { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1099px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 959px) { .grid--3, .grid--plans { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) {
  .grid--2, .grid--4, .grid--reasons { grid-template-columns: minmax(0, 1fr); }
}

.card { border-radius: var(--r-card); padding: var(--sp-32); display: flex; flex-direction: column; gap: var(--sp-12); }
.card--dark { background: var(--c-dark-card); }
.card--dark p:not(.card__num) { color: var(--c-on-dark-muted); font-size: 16px; }
.card__num { font-family: var(--f-mono); font-size: 28px; font-weight: 600; color: var(--c-gold); line-height: 1.3; }
.card--white { background: var(--c-white); border-radius: 16px; padding: var(--sp-28); gap: 10px; }
.card--white p { color: var(--c-muted); font-size: 15px; }
.card--white .icon { color: var(--c-ink); }
.card--outline { border: 1px solid var(--c-line-soft); }
.card--outline p:not(.label) { color: var(--c-muted); font-size: 16px; }
@media (max-width: 767px) { .card { padding: var(--sp-24); } }

/* 01 結論橫幅 */
.banner {
  background: var(--c-dark-card); border: 1px solid var(--c-dark-chip); color: var(--c-on-dark);
  border-radius: var(--r-card); padding: var(--sp-28) var(--sp-32);
  font-size: clamp(18px, 16.7px + 0.27vw, 20px); font-weight: 700; line-height: 1.6;
}
.banner__gold { color: var(--c-gold); }
@media (max-width: 767px) { .banner { padding: var(--sp-24); } }

/* 02 使用情境 */
.scenes { border-top: 1px solid var(--c-line); }
.scene {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: var(--sp-24); padding: var(--sp-32) 0; border-bottom: 1px solid var(--c-line);
}
.scene__col p:not(.label):not(.scene__who) { font-size: 16px; }
.scene__title { font-weight: 900; font-size: 22px; line-height: 1.4; }
.scene__who { color: var(--c-muted); font-size: 15px; margin-top: 4px; }
@media (max-width: 899px) {
  .scene { grid-template-columns: minmax(0, 1fr); gap: var(--sp-16); }
}

/* 03 產品 */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--sp-64); align-items: start; }
.split__aside { gap: var(--sp-20); }
@media (max-width: 1023px) { .split { grid-template-columns: minmax(0, 1fr); gap: var(--sp-48); } }

/* 04 理由 */
.reason { border-top: 2px solid var(--c-gold); padding-top: var(--sp-24); display: flex; flex-direction: column; gap: var(--sp-12); }
.reason p { color: var(--c-muted); }
.note-card {
  background: var(--c-white); border-radius: var(--r-card); padding: var(--sp-28) var(--sp-32);
  display: flex; flex-wrap: wrap; gap: var(--sp-16); align-items: center; justify-content: space-between;
}
.note-card__text { flex: 1 1 520px; min-width: 0; }
.note-card__title { font-weight: 700; font-size: 20px; }
.note-card__text p:not(.note-card__title) { color: var(--c-muted); }
@media (max-width: 767px) { .note-card { padding: var(--sp-24); } }

/* 05 規格方案 */
.section--plans { padding-bottom: var(--section-y); }
.section--plans > .container:first-child { padding-bottom: var(--sp-48); }
.plans__body { padding-top: var(--sp-48); content-visibility: auto; contain-intrinsic-size: auto 2400px; }
.plan {
  position: relative; background: var(--c-white); border-radius: var(--r-plan);
  padding: 36px 32px; display: flex; flex-direction: column; gap: var(--sp-20);
}
.plan__visual { height: 220px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 22px; background: var(--c-plan-visual); border-radius: 14px; }
/* 三台出自同一張照片：高度依機型遞增，讓大小差異一眼可見 */
.plan__img { width: auto; height: var(--plan-h); max-height: 100%; filter: drop-shadow(0 12px 12px rgba(20, 18, 15, .28)); }
.plan__img--entry { --plan-h: 114px; }
.plan__img--business { --plan-h: 146px; }
.plan__img--pro { --plan-h: 184px; }
.plan__tier { display: flex; justify-content: space-between; align-items: center; }
.plan__name { font-size: 26px; font-weight: 900; line-height: 1.35; }
.plan__price { font-size: 30px; font-weight: 700; margin-top: 8px; line-height: 1.3; }
.plan__price span { font-size: 16px; font-weight: 500; color: var(--c-muted); }
.plan__list { color: var(--c-muted); font-size: 15px; display: flex; flex-direction: column; gap: 8px; }
.plan--featured { background: var(--c-dark-card); color: var(--c-on-dark); }
.plan--featured .plan__visual { background: radial-gradient(70% 80% at 50% 72%, var(--c-dark-card-glow) 0%, var(--c-dark-card-2) 72%); }
.plan--featured .plan__price span, .plan--featured .plan__list { color: var(--c-on-card-muted); }
.plan__badge {
  position: absolute; top: 18px; right: 18px; z-index: 1;
  background: var(--c-gold); color: var(--c-ink);
  font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  padding: 4px 12px; border-radius: var(--r-pill);
}
.plans__includes { font-size: 15px; display: flex; flex-wrap: wrap; }
.plans__includes-list { display: flex; flex-wrap: wrap; flex: 1 1 0; min-width: 240px; }
@media (max-width: 767px) { .plans__includes > p { flex-basis: 100%; } }
.plans__includes li { display: inline-block; white-space: nowrap; }
.plans__includes li:not(:last-child)::after { content: '·'; margin: 0 0.75em; }
.plan__scale { font-size: 15px; color: var(--c-muted); margin-top: 4px; }
.plan__price { margin-top: 12px; }
.plan__price span { font-size: 14px; }
.plan__care { font-size: 14px; color: var(--c-muted); margin-top: 6px; }
.plan__facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0;
  padding: 16px 0; border-top: 1px solid var(--c-line-soft); border-bottom: 1px solid var(--c-line-soft);
}
.plan__facts dt { font-size: 13px; color: var(--c-muted); }
.plan__facts dd { margin: 0; font-size: 15px; font-weight: 700; }
.plan__subhead { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.plan__list li { position: relative; padding-left: 14px; }
.plan__list li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 5px; height: 5px; border-radius: 50%; background: var(--c-gold); }
.plan__list li.plan__inherit { padding-left: 0; font-weight: 700; color: var(--c-ink); }
.plan__list li.plan__inherit::before { display: none; }
.plan__fit { font-size: 14px; color: var(--c-muted); }
.plan__fit span { font-weight: 700; color: var(--c-ink); }
.plan__note { font-size: 13px; color: var(--c-muted); background: var(--c-bg); border-radius: 10px; padding: 10px 12px; }
.plan--featured .plan__scale, .plan--featured .plan__care, .plan--featured .plan__facts dt,
.plan--featured .plan__fit, .plan--featured .plan__note { color: var(--c-on-card-muted); }
.plan--featured .plan__facts { border-color: var(--c-dark-chip); }
.plan--featured .plan__list li.plan__inherit, .plan--featured .plan__fit span { color: var(--c-on-dark); }
.plan--featured .plan__note { background: var(--c-dark-card-2); }

/* 怎麼選方案 */
.choose { display: flex; flex-direction: column; gap: var(--sp-20); }
.choose__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-16) var(--sp-24); }
.choose__list li { border-top: 2px solid var(--c-gold); padding-top: var(--sp-16); display: flex; flex-direction: column; gap: 6px; }
.choose__title { font-weight: 700; font-size: 17px; }
.choose__list p:not(.choose__title) { color: var(--c-muted); font-size: 15px; }
@media (max-width: 767px) { .choose__list { grid-template-columns: minmax(0, 1fr); } }

/* 先從一個部門試 */
.trial {
  display: flex; flex-wrap: wrap; gap: var(--sp-20) var(--sp-32); align-items: center; justify-content: space-between;
  background: var(--c-white); border-radius: var(--r-card); padding: var(--sp-28) var(--sp-32);
}
.trial__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.trial__title { font-weight: 700; font-size: 20px; }
.trial__text p:not(.trial__title) { color: var(--c-muted); }
@media (max-width: 767px) { .trial { padding: var(--sp-24); } .trial .btn { width: 100%; } }

/* 05 成本：雲端訂閱 vs 企業AI主機 */
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 20px; border-bottom: 1px solid var(--c-dark-chip); }
.compare thead th { font-family: var(--f-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; color: var(--c-on-dark-muted); }
.compare thead .compare__ours { color: var(--c-gold); }
.compare tbody th { width: 16%; font-weight: 700; white-space: nowrap; }
.compare td { color: var(--c-on-dark-muted); }
.compare td:last-child { color: var(--c-on-dark); font-weight: 500; background: rgba(212, 168, 92, 0.07); }
@media (max-width: 767px) {
  .compare { font-size: 14px; }
  .compare th, .compare td { padding: 12px 8px; }
  .compare thead th { font-size: 12px; letter-spacing: 0.04em; }
  .compare tbody th { width: 22%; white-space: normal; }
}

/* 三年總持有成本圖（色票已驗證：深色底 #221E19，金 #B98A45／藍 #5B8BC9） */
.tco { margin: 0; background: var(--c-dark-card); border-radius: var(--r-card); padding: var(--sp-32); display: flex; flex-direction: column; gap: var(--sp-24); }
.tco__head { display: flex; flex-wrap: wrap; gap: var(--sp-12) var(--sp-24); align-items: baseline; justify-content: space-between; }
.tco__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-12) var(--sp-24); }
.tco__month { font-family: var(--f-mono); font-size: 14px; color: var(--c-on-dark-muted); }
.tco__month-num { display: inline-block; min-width: 2ch; text-align: right; font-size: 28px; font-weight: 600; color: var(--c-on-dark); font-variant-numeric: tabular-nums; }
.tco__legend { display: flex; gap: var(--sp-20); font-size: 14px; color: var(--c-on-dark-muted); }
.tco__legend li { display: inline-flex; align-items: center; gap: 8px; }
.tco__swatch { width: 12px; height: 12px; border-radius: 3px; }
.tco__swatch--local, .tco__bar--local { background: #B98A45; }
.tco__swatch--cloud, .tco__bar--cloud { background: #5B8BC9; }
.tco__chart { display: flex; flex-direction: column; gap: var(--sp-24); }
.tco__group { display: grid; grid-template-columns: 120px minmax(0, 1fr) 260px; gap: var(--sp-16); align-items: center; }
.tco__label { font-weight: 700; font-size: 17px; line-height: 1.3; }
.tco__label span { display: block; font-weight: 400; font-size: 13px; color: var(--c-on-dark-muted); }
.tco__bars { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--c-dark-chip); }
.tco__row { position: relative; display: flex; align-items: center; gap: 10px; min-height: 18px; }
.tco__bar { flex: none; height: 18px; width: calc(var(--v) * var(--tco-k, 0.72%)); min-width: 3px; border-radius: 0 4px 4px 0; }
.tco__value { font-family: var(--f-mono); font-size: 13px; color: var(--c-on-dark); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tco__notes { display: flex; flex-direction: column; gap: 4px; }
.tco__cross { font-size: 14px; font-weight: 700; color: var(--c-on-dark); }
.tco__after { font-size: 13px; color: var(--c-on-dark-muted); }
.tco__cross, .tco__after { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.tco__cross.is-on, .tco__after.is-on { opacity: 1; transform: none; }
.tco__note { font-size: 13px; color: var(--c-on-dark-muted); }
@media (hover: hover) {
  .tco__row::after {
    content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 2;
    max-width: 320px; padding: 6px 10px; border-radius: 8px; background: var(--c-on-dark); color: var(--c-ink);
    font-size: 13px; line-height: 1.5; opacity: 0; pointer-events: none; transition: opacity .15s ease;
  }
  .tco__row:hover::after { opacity: 1; }
  .tco__row:hover .tco__bar { filter: brightness(1.15); }
}
@media (max-width: 767px) {
  .tco { padding: var(--sp-20); }
  .tco__group { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tco__month-num { font-size: 24px; }
  .tco__label span { display: inline; margin-left: 8px; }
  .tco__bars { --tco-k: 0.6%; }
}
@media (max-width: 767px) { .plan { padding: var(--sp-28) var(--sp-24); } }

/* 06 加值服務 */
.services-head { display: flex; flex-wrap: wrap; gap: var(--sp-32); align-items: flex-end; justify-content: space-between; }
.services-head .section-head { flex: 1 1 560px; min-width: 0; }
.services-head__text { flex: 1 1 380px; min-width: 0; color: var(--c-muted); font-size: 17px; }

/* 07 導入流程 */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-16); }
.step { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--c-ink); padding-top: var(--sp-20); }
.step__num { font-family: var(--f-mono); font-size: 13px; }
.step__title { font-weight: 700; font-size: 18px; line-height: 1.45; }
.step p:not(.step__num) { color: var(--c-muted); font-size: 14px; }
@media (max-width: 1023px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-24) var(--sp-16); } }
@media (max-width: 599px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* 08 常見問題 */
.faq { border-top: 1px solid var(--c-line); }
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-16);
  min-height: 44px; padding: var(--sp-24) 0; font-weight: 700; font-size: clamp(17px, 15.5px + 0.32vw, 19px); line-height: 1.5;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ''; flex: none; width: 14px; height: 14px; margin-right: 4px;
  background:
    linear-gradient(var(--c-ink), var(--c-ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--c-ink), var(--c-ink)) center / 2px 14px no-repeat;
  transition: transform .25s var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0 0 var(--sp-24); color: var(--c-muted); font-size: 16px; max-width: 760px; }

/* 頁尾行動區 + 轉場 ④ */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--c-dark); color: var(--c-on-dark);
  min-height: 80vh; display: flex; align-items: center;
}
.cta .eyebrow, .cta .muted { color: #D9CFBF; }
.cta .lead { color: #E6DED0; }
.cta :focus-visible { outline-color: var(--c-on-dark); }
.cta__media { position: absolute; inset: 0; z-index: -1; }
.cta__poster, .cta__video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.cta__video { opacity: 0; transition: opacity .8s ease; }
.cta__video.is-playing { opacity: 1; }
.scrim--cta {
  background: linear-gradient(90deg, rgba(20, 18, 15, 0.86) 0%, rgba(20, 18, 15, 0.72) 48%, rgba(20, 18, 15, 0.12) 80%, rgba(20, 18, 15, 0) 100%);
}
.cta__inner { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.cta__text { max-width: 680px; display: flex; flex-direction: column; gap: var(--sp-16); }
.cta__action { display: flex; flex-direction: column; gap: var(--sp-12); align-items: flex-start; margin-top: var(--sp-16); }
@media (max-width: 767px) {
  .cta { min-height: 0; align-items: flex-start; }
  .scrim--cta {
    background: linear-gradient(180deg, rgba(20, 18, 15, 0.88) 0%, rgba(20, 18, 15, 0.8) 62%, rgba(20, 18, 15, 0.45) 100%);
  }
  .cta__inner { padding-bottom: 120px; }
  .cta__action { align-self: stretch; }
  .cta__action .btn { width: 100%; }
}

/* 頁尾 */
.site-footer { background: var(--c-cta-end); border-top: 1px solid var(--c-line-warm); }
.site-footer__inner {
  display: flex; flex-wrap: wrap; gap: var(--sp-16); justify-content: space-between; align-items: center;
  padding-top: var(--sp-32); padding-bottom: var(--sp-32); font-size: 14px; color: var(--c-muted);
}
.brand--footer { min-height: 0; font-size: 16px; }

/* ==========================================================================
   需求評估問卷（assessment.html）
   ========================================================================== */
.assess-header { background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-hero-end) 100%); }
.assess-topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-16); padding-top: 16px; padding-bottom: 16px; }
.assess-topbar__back { color: var(--c-muted); font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; }
.assess-intro { display: flex; flex-direction: column; gap: var(--sp-12); padding-top: var(--sp-32); padding-bottom: var(--sp-56); }
.assess-intro .h1 { font-size: clamp(30px, 21.2px + 1.84vw, 44px); line-height: 1.2; }
.assess-intro .lead { max-width: 680px; }
.assess-main { padding-top: var(--sp-48); padding-bottom: 96px; }

.assess-form { display: flex; flex-direction: column; gap: var(--sp-32); }
.progress { display: flex; flex-direction: column; gap: var(--sp-12); }
.progress__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.progress__title { font-weight: 700; font-size: 20px; }
.progress__title:focus { outline: none; }
.progress__count { font-family: var(--f-mono); font-size: 13px; color: var(--c-muted); }
.progress__bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.progress__bars span { height: 6px; border-radius: 3px; background: var(--c-bar-off); transition: background-color .3s ease; }
.progress__bars span.is-on { background: var(--c-gold); }

.step-panel { display: flex; flex-direction: column; gap: var(--sp-32); }
.q {
  border: 0; margin: 0; padding: var(--sp-28); background: var(--c-white); border-radius: var(--r-card);
  display: flex; flex-direction: column; gap: var(--sp-16); min-width: 0;
}
.q legend { padding: 0; float: left; width: 100%; font-weight: 700; font-size: 19px; line-height: 1.5; margin-bottom: var(--sp-16); }
.q legend + * { clear: both; }
.q__hint { font-weight: 500; font-size: 14px; color: var(--c-muted); }
.q.is-missing { box-shadow: inset 0 0 0 2px var(--c-error); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: var(--r-pill);
  border: 2px solid var(--c-line); background: var(--c-white); color: var(--c-ink);
  font-size: 15px; font-weight: 500; line-height: 1.4; cursor: pointer; user-select: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.choice span:hover { border-color: var(--c-ink); }
.choice input:checked + span { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-on-dark); }
.choice input:focus-visible + span { outline: 3px solid var(--c-ink); outline-offset: 3px; }

.contact { padding: var(--sp-28); background: var(--c-white); border-radius: var(--r-card); display: flex; flex-direction: column; gap: var(--sp-16); }
.contact__title { font-weight: 700; font-size: 19px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-16); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field__req { color: var(--c-muted); font-weight: 400; }
.field input {
  min-height: 44px; padding: 0 14px; border: 1px solid var(--c-line); border-radius: 10px;
  background: var(--c-white); font-size: 16px;
}
.field input:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 1px; border-color: var(--c-ink); }
.field input[aria-invalid="true"] { border-color: var(--c-error); box-shadow: 0 0 0 1px var(--c-error); }
.contact__note { font-size: 13px; color: var(--c-muted); }
@media (max-width: 599px) { .fields { grid-template-columns: minmax(0, 1fr); } .q, .contact { padding: var(--sp-20); } }

.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-warn { color: var(--c-error); font-weight: 500; }
.form-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-12); }
.form-nav .btn--outline { min-height: 48px; }
.form-nav .btn--gold { min-height: 52px; padding: 0 32px; font-size: 17px; margin-left: auto; }

/* 結果畫面 */
.result { display: flex; flex-direction: column; gap: var(--sp-28); }
.result:focus { outline: none; }
.panel { background: var(--c-white); border-radius: var(--r-plan); padding: 36px; display: flex; flex-direction: column; gap: var(--sp-16); align-items: flex-start; }
.panel--dark { background: var(--c-dark-card); color: var(--c-on-dark); gap: 10px; }
.panel--dark p:not(.eyebrow) { color: var(--c-on-dark-muted); }
.panel .eyebrow--gold { color: var(--c-gold); letter-spacing: 0.14em; }
.panel__title { font-size: clamp(26px, 21.6px + 0.92vw, 34px); font-weight: 900; line-height: 1.3; }
.panel__subtitle { font-weight: 700; font-size: 19px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips li { background: var(--c-dark-chip); color: var(--c-on-dark); border-radius: var(--r-pill); padding: 6px 14px; font-size: 14px; }
.booking-frame { width: 100%; height: 720px; border: 1px solid var(--c-line-soft); border-radius: 14px; background: var(--c-bg); }
.checklist {
  display: flex; flex-wrap: wrap; gap: var(--sp-24); align-items: center;
  background: var(--c-dark-card); color: var(--c-on-dark); border-radius: var(--r-plan); padding: var(--sp-32);
}
.checklist__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.checklist__title { font-weight: 900; font-size: 22px; }
.checklist__desc { color: var(--c-on-dark-muted); font-size: 15px; }
@media (max-width: 599px) { .panel, .checklist { padding: var(--sp-24); } .booking-frame { height: 640px; } }

/* ==========================================================================
   減少動態效果
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
