/* ─────────────────────────────────────────────────────────────
   Tokens：全頁唯一的顏色／字型修改點。
   上游＝VOS canon 3-brand/research/cutaway-visual-canon/tokens.md。
   accent 為 provisional；vos-palette 定案後只改這一段。
   ───────────────────────────────────────────────────────────── */
:root {
  /* 2026-10-19 創辦人裁「品牌層也轉藍白」：值＝AI-Workforce research/vos-cutaway-palette_2026-10.md §⑨（PR #196）
     paper-light 為本頁推導（近白紙上的淺藍灰面），非定案值 */
  --paper: #FEFEFA;
  --surface-web: #F3F6FB;   /* 網頁自己的淺面（佔位、FAQ 底），非 canon 值；canon 的 --paper-light 是藍色卡片填色，本頁不用 */
  --ink: #0F2F55;
  --ink-soft: #5F6E85;      /* 創辦人 2026-10-19 Plan 309 選定（canon tokens.md，PR #1963） */
  --ink-mute: #7A8499;
  --accent: #318CE7;        /* canon --card-accent 法國藍：點、線、框、編號（canon 的 --signal 是字幕橘，網頁不用） */
  --highlight: #FFD23F;     /* 黃：只當實心底（主按鈕、三件事編號），字用 ink */
  --alert: #D64532;         /* 警報紅：本頁未用 */
  --ink-rgb: 15, 47, 85;
  --paper-rgb: 254, 254, 250;
  --rule: rgba(var(--ink-rgb), 0.14);

  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;

  --measure: 680px;
  --gutter: 20px;
  --radius: 10px;
}

/* ── base ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  font-feature-settings: "palt";
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-sans); font-weight: 900; line-height: 1.3; letter-spacing: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter) 120px;
}

/* ── button ── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  background: var(--highlight);
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(var(--ink-rgb), 0.18);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn:hover { box-shadow: 0 4px 14px rgba(var(--ink-rgb), 0.16); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.cta { margin-top: 28px; }
.cta .under { margin-top: 12px; font-size: 15px; color: var(--ink-soft); text-align: center; }

/* ── hero ── */
.hero { padding-top: 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.08em; color: var(--ink-soft);
  margin-bottom: 20px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.headline {
  font-size: clamp(30px, 8.4vw, 44px);
  line-height: 1.28;
  text-wrap: balance;
}
.sub { margin-top: 20px; font-size: 18px; color: var(--ink-soft); text-wrap: pretty; }

/* photo：4:5，佔位以虛線框＋小字；真照片時框消失 */
.photo { margin: 36px 0 0; }
.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.placeholder {
  aspect-ratio: 4 / 5;
  border: 1.5px dashed var(--ink-mute);
  border-radius: var(--radius);
  background: var(--surface-web);
  display: grid; place-items: center;
  color: var(--ink-mute); font-size: 14px; letter-spacing: 0.1em;
}
.photo--small { margin: 0; }

/* ── sections ── */
.block { margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--rule); }
.block h2 { font-size: clamp(24px, 6vw, 30px); margin-bottom: 24px; }

/* 情境句：縮排的短段，不是清單圓點 */
.scenes { list-style: none; margin: 0; padding: 0; }
.scenes li { font-size: 18px; padding: 14px 0 14px 22px; border-left: 2px solid var(--accent); margin-bottom: 14px; color: var(--ink); }

/* 三件事：三句大字，數字小、字大 */
.big-three { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.big-three li { counter-increment: n; position: relative; padding: 16px 0 16px 56px; font-family: var(--font-sans); font-weight: 500; font-size: 19px; line-height: 1.55; border-bottom: 1px solid var(--rule); }
.big-three li:last-child { border-bottom: 0; }
.big-three li::before { content: counter(n); position: absolute; left: 0; top: 16px; width: 38px; height: 38px; border-radius: 8px; background: var(--highlight); color: var(--ink); font-family: var(--font-sans); font-size: 18px; font-weight: 700; display: grid; place-items: center; }

/* 三步驟：縱向時間軸 */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--rule); }
.timeline li { position: relative; padding: 0 0 32px 52px; counter-increment: s; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .num { position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; font-size: 16px; display: grid; place-items: center; }
.timeline h3 { font-family: var(--font-sans); font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.timeline .body { color: var(--ink); }
.timeline .reassure { margin-top: 6px; color: var(--ink-soft); font-size: 15px; }

/* 我是誰：手機上照片縮成小方塊靠左，桌機才放大成欄 */
.about-grid { display: grid; gap: 24px; }
.about-grid .photo--small img, .about-grid .placeholder { width: 120px; aspect-ratio: 1 / 1; font-size: 12px; }
.about .intro { font-size: 18px; }
.about .denial { margin-top: 14px; font-family: var(--font-sans); font-weight: 500; font-size: 18px; color: var(--ink-soft); padding-left: 16px; border-left: 3px solid var(--accent); }
.about .story { margin-top: 18px; color: var(--ink); }
.about .story p + p { margin-top: 10px; }
.about .links { margin-top: 18px; font-size: 15px; color: var(--ink-soft); }
.about .links a { margin-right: 16px; }

/* 這不是什麼：否定句列表 */
.not-list { list-style: none; margin: 0; padding: 0; }
.not-list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.not-list li:last-child { border-bottom: 0; }
.not-list .label { font-weight: 700; white-space: nowrap; padding-left: 14px; position: relative; }
.not-list .label::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.not-list .body { color: var(--ink-soft); }

/* FAQ：原生 details */
.faq details { border-bottom: 1px solid var(--rule); padding: 6px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 12px 32px 12px 0; position: relative; font-weight: 700; font-size: 18px; min-height: 48px; display: flex; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 16px; color: var(--ink-soft); }

/* 收尾 */
.close { text-align: center; }
.close-line { font-size: clamp(24px, 6vw, 30px); }
.close .cta { margin-top: 22px; }

.foot { margin-top: 64px; font-size: 14px; color: var(--ink-soft); text-align: center; }

/* ── 手機固定預約 bar（JS 控制顯示；桌機不顯示） ── */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(var(--paper-rgb), 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--rule);
  z-index: 10;
}
.cta-bar[hidden] { display: none; }
.cta-bar .btn { min-height: 52px; }

/* ── preview 模式：待定句標記＋頂部提示 ── */
.preview-notice {
  background: var(--ink); color: var(--paper);
  font-size: 13px; text-align: center; padding: 8px var(--gutter);
}
.preview-notice b { color: var(--accent); }

/* ── 桌機 ── */
@media (min-width: 768px) {
  body { font-size: 18px; }
  main { padding-top: 24px; padding-bottom: 96px; }
  .hero { padding-top: 72px; }
  .headline { font-size: 48px; }
  .photo { margin-top: 44px; }
  .photo img, .placeholder { max-width: 460px; margin: 0 auto; }
  .about-grid { grid-template-columns: 200px 1fr; align-items: start; }
  .about-grid .photo--small img, .about-grid .placeholder { max-width: none; width: 100%; aspect-ratio: 4 / 5; }
  .cta-bar { display: none !important; }
  .btn { display: inline-flex; min-width: 280px; }
  .cta { text-align: left; }
  .cta .under { text-align: left; }
  .close .cta, .close .btn { text-align: center; }
}

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
