/* Hallmark · v2.0.0 · polish · built: the project · redesign: polish · theme: WORKBOOK (locked by DESIGN.md) · genre: editorial · nav: top wordmark and links · footer: two-column mast · hero: Ledge · posture: restrained · surface: absolute · job: learn AI basics · hero headline and action visible at 1280x800 */
/* Hallmark · pre-emit critique: P4 H4 E5 S5 R5 V3 · weakest: V, a locked design system limits structural variety on a copy-only polish; the words carry the change */
/* Hallmark · waive 80 · 56px doodle under the hero note and 28px beside the footer legal line, 第一次用 AI 從一句話開始 · Open Doodles CC0, decoration only, never carries a fact about 小白 AI 教學 */
/* Hallmark · reworded "從零開始，把 AI 變成你真的會用的工具" to "第一次用 AI，從一句話開始" · 19 names the stock opener */
/* Hallmark · reworded "免費註冊，立即解鎖全部內容" to "註冊後閱讀全部內容" · 19 names unlock as a buzzword */
/* Hallmark · dropped 8 eyebrow spans across 6 pages · 54 bans the label before a heading */
/* ============================================================
 * 小白 AI 教學網站 — 全站樣式（唯一來源）
 * 依 DESIGN.md v1.0；改風格請改 DESIGN.md + 本檔，不要逐頁改
 * 本輪：Hallmark polish，只改文案與token化，版面結構不變
 * ============================================================ */

:root {
  --paper: #f7f5ef;
  --surface: #fffdf8;
  --ink: #242b28;
  --ink-soft: #5c6661;
  --line: #dedbd1;
  --brand: #2f5d4e;
  --brand-dark: #22473b;
  --accent: #a85434;
  --ok: #2f6b4f;
  --lock: #8a6b3f;
  --danger: #a33b32;

  --on-brand: #fdfcf8;
  --paper-warm: #f2efe7;
  --nav-hover: #ece8dc;
  --outline-hover: #e9efe9;
  --accent-dark: #9b4e30;
  --step-bg: #e7eee8;
  --cover-0: #e4e9e2;
  --cover-m0b: #e8e4d9;
  --cover-m1: #dfe7e6;
  --cover-m1b: #e6e2d8;
  --cover-m2: #e2e7de;
  --cover-m3: #e9e4dc;
  --cover-m4: #e0e6e2;
  --cover-m5: #e7e3d7;
  --cover-m6: #e3e5dd;
  --ok-line: #bcd3c4;
  --lock-line: #d9c9a8;
  --danger-line: #dfbdb8;
  --lock-border: #cbbfa6;
  --lock-bg: #f4f0e5;
  --prompt-bg: #eef1ea;
  --prompt-line: #d5ded0;
  --callout-bg: #f3efe4;
  --callout-line: #e0d8c3;
  --progress-bg: #e5e1d6;
  --ok-bg: #eaf3ec;
  --ok-ink: #245c3c;
  --err-bg: #fbeeec;
  --err-line: #e3c2bd;
  --err-ink: #8a2f27;
  --info-bg: #f2efe5;
  --info-line: #ded6bd;
  --info-ink: #6d5a35;
  --proto-border: #c9bfa8;
  --proto-bg: #f6f2e6;

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

  --radius: 10px;
  --shadow: 0 1px 0 rgba(36, 43, 40, .04);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- 版面工具 ---------- */
.l-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.l-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.l-section { padding: 64px 0; }
.l-section--tight { padding: 40px 0; }
.u-muted { color: var(--ink-soft); }
.u-small { font-size: 14px; }
.u-center { text-align: center; }
.u-hidden { display: none !important; }
.u-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- 字體層級 ---------- */
h1, h2, h3 { line-height: 1.35; font-weight: 600; margin: 0 0 16px; text-wrap: balance; }
h1 { font-family: var(--font-serif); font-size: clamp(30px, 4vw, 40px); letter-spacing: .01em; }
h2 { font-size: clamp(22px, 3vw, 26px); }
h3 { font-size: 18px; }
p { margin: 0 0 16px; }
.eyebrow {
  display: inline-block; font-size: 13px;
  color: var(--accent); font-weight: 600; margin-bottom: 12px;
}

/* ---------- 導覽 ---------- */
.c-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(120%) blur(6px);
}
.c-header__inner {
  max-width: 1120px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 24px;
}
.c-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.c-brand svg { width: 26px; height: 26px; color: var(--brand); }
.c-brand span { font-family: var(--font-serif); font-size: 17px; }
.c-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.c-nav a {
  text-decoration: none; color: var(--ink-soft); font-size: 14px;
  padding: 8px 12px; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center;
}
.c-nav a:hover, .c-nav a.is-active { background: var(--nav-hover); color: var(--ink); }
.c-nav a[aria-current="page"] { background: var(--nav-hover); color: var(--brand); font-weight: 600; }
.c-header__action { display: flex; gap: 8px; align-items: center; }
.c-header__progress { height: 3px; background: var(--progress-bg); }
.c-header__progress-fill {
  display: block; height: 100%; background: var(--brand);
  transform-origin: left; transform: scaleX(0); transition: transform .3s;
}
.c-next-cta { margin: 12px 0 0; font-size: 14px; color: var(--ink-soft); }
.c-next-cta a { font-weight: 600; }
.c-menu-toggle { display: none; }

/* ---------- 按鈕 ---------- */
.c-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 8px;
  font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.c-btn--primary { background: var(--brand); color: var(--on-brand); }
.c-btn--primary:hover { background: var(--brand-dark); color: var(--on-brand); }
.c-btn--outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.c-btn--outline:hover { background: var(--outline-hover); box-shadow: inset 0 0 0 1px var(--brand); }
.c-btn--accent { background: var(--accent); color: var(--on-brand); }
.c-btn--accent:hover { background: var(--accent-dark); color: var(--on-brand); }
.c-btn--ghost { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.c-btn--ghost:hover { background: var(--nav-hover); color: var(--ink); }
.c-btn--sm { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.c-btn svg { width: 17px; height: 17px; }
.c-btn:active { transform: translateY(1px); }
.c-btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Hero：非置中兩欄 ---------- */
.c-hero { padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.c-hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: center; }
.c-hero h1 { margin-bottom: 20px; }
.c-hero__lead { font-size: 18px; color: var(--ink-soft); max-width: 34em; margin-bottom: 28px; }
.c-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.c-hero__note { font-size: 13px; color: var(--ink-soft); margin-top: 18px; }
.c-hero__visual {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.c-hero__visual-title { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; }
.c-steps { list-style: none; margin: 0; padding: 0; }
.c-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.c-steps li:first-child { border-top: 0; }
.c-steps__num {
  flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--step-bg); color: var(--brand);
  font-size: 13px; font-weight: 600; display: grid; place-items: center;
}
.c-steps__text { font-size: 14px; }
.c-steps__text strong { display: block; font-size: 15px; }
.c-steps__text span { color: var(--ink-soft); font-size: 13px; }
.c-step__state { flex: 0 0 auto; font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
.c-step.is-done .c-steps__num { background: var(--ok-bg); color: var(--ok-ink); }
.c-step.is-locked .c-steps__num { background: var(--lock-bg); color: var(--accent-dark); }
.c-step.is-done .c-step__state { color: var(--ok-ink); }

/* ---------- Hero 入場：一次 reveal，transform 與 opacity ---------- */
.c-hero__copy, .c-hero__visual { animation: c-hero-enter .5s cubic-bezier(.2, .7, .2, 1) both; }
.c-hero__visual { animation-delay: .12s; }
@keyframes c-hero-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 首頁模組捲動條 ---------- */
.c-ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-warm); }
.c-ticker__bar { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.c-ticker__label { flex: 0 0 auto; font-size: 13px; color: var(--ink-soft); }
.c-ticker__viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.c-ticker__track { display: flex; width: max-content; animation: c-ticker-move 40s linear infinite; }
.c-ticker__group { display: flex; flex: 0 0 auto; }
.c-ticker__item { display: inline-flex; align-items: center; padding: 4px 20px; font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.c-ticker__item + .c-ticker__item { border-left: 1px solid var(--line); }
.c-ticker__toggle { flex: 0 0 auto; }
.c-ticker__viewport:hover .c-ticker__track,
.c-ticker__bar:focus-within .c-ticker__track,
.c-ticker.is-paused .c-ticker__track { animation-play-state: paused; }
@keyframes c-ticker-move {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 數字帶 ---------- */
.c-stats { background: var(--surface); border-bottom: 1px solid var(--line); }
.c-stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 28px 0; }
.c-stats__item { padding: 0 20px; border-left: 1px solid var(--line); }
.c-stats__item:first-child { border-left: 0; padding-left: 0; }
.c-stats__num { display: block; font-family: var(--font-serif); font-size: 34px; line-height: 1.1; color: var(--brand); font-variant-numeric: tabular-nums; }
.c-stats__label { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- 卡片 ---------- */
.c-card {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.c-card h3 { margin-bottom: 8px; }
.c-card p:last-child { margin-bottom: 0; }
.c-card__meta { font-size: 13px; color: var(--ink-soft); }
.c-card__link { text-decoration: none; color: inherit; display: block; }
.c-card__link:hover h3 { color: var(--accent); }

/* 非等寬成果區：左大跨兩行 + 右兩小 */
.c-outcomes { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.c-outcomes__big { grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: space-between; }
.c-outcomes__big .c-figure {
  margin-top: 20px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 8px; padding: 18px; font-size: 14px; color: var(--ink-soft);
}
.c-outcomes__big .c-figure b { color: var(--ink); }

/* 影片牆：3/2/1 */
.c-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.c-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.c-video-card { position: relative; }
.c-video-card__cover {
  height: 116px; border-radius: 8px; background: var(--cover-0); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--brand); margin-bottom: 14px;
}
.c-video-card__cover svg { width: 34px; height: 34px; opacity: .8; color: var(--brand-dark); }
/* 真實影片縮圖：16:9，object-fit 裁切；來源與授權見影片頁註記 */
.c-video-card__cover--photo { position: relative; aspect-ratio: 16 / 9; height: auto; padding: 0; overflow: hidden; background: var(--cover-0); color: var(--brand-dark); }
.c-video-card__cover--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-video-card__play {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--on-brand); color: var(--brand); border: 1px solid var(--brand);
}
.c-video-card__play svg { width: 26px; height: 26px; color: var(--brand); opacity: 1; }
.c-video-card__source { font-size: 12px; color: var(--ink-soft); margin: 0 0 10px; line-height: 1.5; overflow-wrap: break-word; min-width: 0; }
.c-video-card__snippet {
  font-family: var(--font-serif); font-size: 13px; line-height: 1.6; color: var(--ink);
  border-left: 2px solid var(--brand); padding-left: 10px; margin: 0 0 12px;
  min-height: 3.2em;
}
.c-video-card__cover--m0b { background: var(--cover-m0b); color: var(--brand-dark); }
.c-video-card__cover--m1 { background: var(--cover-m1); color: var(--brand-dark); }
.c-video-card__cover--m1b { background: var(--cover-m1b); color: var(--brand-dark); }
.c-video-card__cover--m2 { background: var(--cover-m2); color: var(--brand-dark); }
.c-video-card__cover--m3 { background: var(--cover-m3); color: var(--brand-dark); }
.c-video-card__cover--m4 { background: var(--cover-m4); color: var(--brand-dark); }
.c-video-card__cover--m5 { background: var(--cover-m5); color: var(--brand-dark); }
.c-video-card__cover--m6 { background: var(--cover-m6); color: var(--brand-dark); }
.c-badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft);
  background: var(--surface);
}
.c-badge--public { color: var(--ok); border-color: var(--ok-line); }
.c-badge--member { color: var(--lock); border-color: var(--lock-line); }
.c-badge--coming { color: var(--ink-soft); }
.c-badge--broken { color: var(--danger); border-color: var(--danger-line); }
.c-badge svg { width: 13px; height: 13px; }

/* 鎖定遮罩：只作用於已截斷內容 */
.c-lock {
  position: relative; margin-top: 24px; padding: 28px 24px 24px;
  border: 1px dashed var(--lock-border); border-radius: var(--radius); background: var(--lock-bg);
  text-align: center;
}
.c-lock__icon { width: 26px; height: 26px; color: var(--lock); margin-bottom: 8px; }
.c-lock h3 { font-size: 17px; margin-bottom: 6px; }
.c-lock p { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; }
.c-fade { position: relative; max-height: 170px; overflow: hidden; }
.c-fade::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 72px;
  background: linear-gradient(to bottom, rgba(255,253,248,0), var(--surface));
  pointer-events: none;
}

/* ---------- 課程 ---------- */
.c-crumb { font-size: 13px; color: var(--ink-soft); margin: 24px 0 8px; }
.c-crumb a { color: var(--ink-soft); }
.c-lesson-head { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 32px; }
.c-lesson-head h1 { font-size: clamp(27px, 3.4vw, 34px); }
.c-block { margin: 0 0 28px; }
.c-block > h2 { font-size: 20px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.c-block__n { font-family: var(--font-serif); color: var(--accent); font-size: 15px; }
.c-block__body { white-space: pre-line; }
.c-prompt {
  position: relative; background: var(--prompt-bg); border: 1px solid var(--prompt-line);
  border-radius: 8px; padding: 16px 18px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 14px; line-height: 1.7;
  white-space: pre-line;
}
.c-copy {
  position: absolute; top: 8px; right: 8px; font-size: 12px; padding: 5px 10px;
  min-height: 32px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 6px; color: var(--brand); cursor: pointer;
}
.c-callout {
  background: var(--callout-bg); border: 1px solid var(--callout-line); border-radius: 8px;
  padding: 16px 18px; font-size: 14px; margin: 20px 0;
}
.c-callout strong { color: var(--lock); }
.c-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.c-pager a { text-decoration: none; font-size: 14px; }
.c-pager__next { text-align: right; }

/* ---------- 模組列表 ---------- */
.c-modlist { list-style: none; margin: 0; padding: 0; }
.c-mod {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 20px; align-items: center;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.c-mod:last-child { border-bottom: 1px solid var(--line); }
.c-mod__code { font-family: var(--font-serif); font-size: 20px; color: var(--accent); }
.c-mod__title { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.c-mod__desc { font-size: 14px; color: var(--ink-soft); }
.c-mod__side { text-align: right; font-size: 13px; color: var(--ink-soft); }
/* 學習路徑卡：在既有列基础上加状态，不改 href / id */
.c-mod--card { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; text-decoration: none; color: inherit; }
.c-mod--card .c-mod__code { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--step-bg); color: var(--ink); font-size: 15px; }
.c-mod--card.is-done .c-mod__code { background: var(--ok-bg); color: var(--ok-ink); }
.c-mod--card.is-locked .c-mod__code { background: var(--lock-bg); color: var(--accent-dark); }
.c-mod__main { min-width: 0; }
.c-mod__effort { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.c-mod__state { align-self: start; font-size: 12px; color: var(--ink-soft); padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.c-mod--card.is-done .c-mod__state { color: var(--ok-ink); border-color: var(--ok-line); }
.c-mod--card.is-locked .c-mod__state { color: var(--lock); border-color: var(--lock-line); }
.c-mod--card:hover .c-mod__title { color: var(--accent); }
.c-progress { height: 6px; background: var(--progress-bg); border-radius: 999px; overflow: hidden; margin: 12px 0 24px; }
.c-progress > span { display: block; height: 100%; background: var(--brand); width: 0%; transition: transform .3s; transform: scaleX(1); transform-origin: left; }

/* ---------- 表單 ---------- */
.c-field { margin-bottom: 20px; }
.c-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.c-field .req { color: var(--danger); }
.c-input, .c-textarea, .c-select {
  width: 100%; padding: 10px 12px; min-height: 44px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  color: var(--ink); font-family: inherit; font-size: 15px;
}
.c-textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.c-field__hint { font-size: 12px; color: var(--ink-soft); margin-top: 5px; }
.c-field__err { font-size: 13px; color: var(--danger); margin-top: 5px; min-height: 18px; }
.c-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.c-check input { min-width: 18px; min-height: 18px; margin-top: 3px; }
.c-alert { padding: 14px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 20px; border: 1px solid; }
.c-alert--ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.c-alert--err { background: var(--err-bg); border-color: var(--err-line); color: var(--err-ink); }
.c-alert--info { background: var(--info-bg); border-color: var(--info-line); color: var(--info-ink); }

/* ---------- 收費頁空殼 ---------- */
.c-plan-empty {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 32px; max-width: 560px;
}
.c-plan-empty__tag { font-size: 12px; color: var(--ink-soft); margin-bottom: 10px; }
.c-compare { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 16px; }
.c-compare th, .c-compare td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.c-compare thead th { border-bottom: 2px solid var(--line); }
.c-compare td:first-child { color: var(--ink-soft); }
.c-yes { color: var(--ok); }
.c-no { color: var(--ink-soft); }

/* ---------- 頁尾 ---------- */
.c-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 40px 0 32px; background: var(--paper-warm); color: var(--ink); }
.c-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.c-footer h4 { font-size: 14px; margin: 0 0 10px; }
.c-footer ul { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.c-footer li { margin-bottom: 6px; }
.c-footer a { color: var(--ink-soft); text-decoration: none; }
.c-footer a:hover { color: var(--accent); text-decoration: underline; }
.c-footer__legal { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; font-size: 12px; color: var(--ink-soft); }
.c-prototype-bar {
  margin-top: 18px; padding: 12px 14px; border: 1px dashed var(--proto-border); border-radius: 8px;
  background: var(--proto-bg); font-size: 12px; color: var(--ink-soft);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.c-prototype-bar strong { color: var(--lock); }
.c-role-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.c-role-switch button {
  border: 0; background: var(--surface); color: var(--ink-soft); cursor: pointer;
  padding: 6px 12px; min-height: 36px; font-size: 13px;
}
.c-role-switch button.is-on { background: var(--brand); color: var(--on-brand); }

/* ---------- FAQ / 條文 ---------- */
.c-faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.c-faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; }
.c-faq summary::-webkit-details-marker { display: none; }
.c-faq summary::before { content: "+"; color: var(--accent); margin-right: 10px; font-weight: 600; }
.c-faq details[open] summary::before { content: "−"; }
.c-faq p { margin: 10px 0 0 22px; color: var(--ink-soft); font-size: 15px; }
.c-faq details[open] p { animation: c-faq-open .2s ease-out both; }
@keyframes c-faq-open {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.c-terms h2 { margin-top: 36px; font-size: 20px; }
.c-terms ol { padding-left: 22px; }
.c-terms li { margin-bottom: 10px; }
.c-gloss { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.c-gloss div { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; background: var(--surface); }
.c-gloss dt { font-weight: 600; margin-bottom: 4px; }
.c-gloss dd { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ---------- RWD ---------- */
@media (max-width: 1023px) {
  .c-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .c-hero__grid { gap: 32px; }
  .c-header__inner { gap: 12px; }
  .c-nav a { padding: 8px; font-size: 13px; }
}
@media (max-width: 767px) {
  body { font-size: 15px; }
  .l-section { padding: 44px 0; }
  .l-wrap, .l-narrow { padding: 0 18px; }
  .c-ticker__bar { gap: 10px; }
  .c-ticker__label { display: none; }
  .c-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; padding: 22px 0; }
  .c-stats__item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .c-stats__num { font-size: 30px; }
  .c-hero__copy, .c-hero__visual { animation-delay: 0s; }
  .c-header__inner { flex-wrap: wrap; padding: 10px 18px; }
  .c-nav {
    order: 3; width: 100%; margin-left: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    border-top: 1px solid var(--line); padding-top: 8px;
  }
  .c-nav.is-open { display: flex; }
  .c-nav a { padding: 10px 8px; min-height: 44px; }
  .c-menu-toggle {
    display: inline-flex; order: 2; margin-left: auto; align-items: center; justify-content: center;
    min-width: 44px; min-height: 44px; border: 1px solid var(--line);
    background: var(--surface); border-radius: 8px; cursor: pointer; color: var(--ink);
  }
  .c-menu-toggle svg { width: 20px; height: 20px; }
  .c-header__action { order: 1; }
  .c-hero { padding: 44px 0 36px; }
  .c-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .c-hero__lead { font-size: 16px; }
  .c-outcomes { grid-template-columns: 1fr; grid-template-rows: auto; }
  .c-outcomes__big { grid-row: auto; }
  .c-grid-3, .c-grid-2, .c-gloss { grid-template-columns: 1fr; }
  .c-mod { grid-template-columns: 44px 1fr; gap: 12px; }
  .c-mod__side, .c-mod--card { grid-column: auto; }
  .c-mod--card { grid-template-columns: 40px minmax(0, 1fr); }
  .c-mod--card .c-mod__state { grid-column: 2; justify-self: start; }
  .c-mod__side { grid-column: 2; text-align: left; }
  .c-pager { flex-direction: column; }
  .c-pager__next { text-align: left; }
  .c-footer__grid { grid-template-columns: 1fr; gap: 20px; }
  .c-prototype-bar { align-items: flex-start; flex-direction: column; }
}

/* 卡通點綴：首頁 hero 56px 與頁尾 28px，均屬裝飾不作主視覺；來源 Open Doodles（CC0，商用免署名） */
.c-doodles { display: inline-flex; gap: 6px; vertical-align: middle; margin-left: 10px; }
.c-doodles img { width: 28px; height: 28px; display: block; }
.c-hero__doodle { width: 56px; height: 56px; display: block; margin-top: 10px; }

/* Cursor Move：流星尾；頭部實心、尾巴逐節淡出；只 transform / opacity，無 glow、無 pointer 攔截 */
.c-cursor { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0; transition: opacity var(--dur-short, 220ms) var(--ease-out, ease-out); }
.c-cursor.is-visible { opacity: 1; }
.c-cursor__spark {
  position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand); will-change: transform;
}
.c-cursor__spark.is-head { background: var(--brand-dark); }
.c-cursor.is-active .c-cursor__spark { background: var(--accent); }
@media (hover: none), (prefers-reduced-motion: reduce) {
  .c-cursor { display: none; }
}
@media print {
  .c-cursor { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .c-hero__copy, .c-hero__visual, .c-ticker__track, .c-faq details[open] p { animation: none !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .c-header, .c-footer, .c-prototype-bar, .c-copy, .c-pager { display: none !important; }
  body { background: var(--on-brand); }
}
