/* SBIR 快申：依使用者首屏參考圖（spec 決策 L8、L9）。主色咖啡；酒紅只像文件上的紅章，少量用在 logo 與奧微官網按鈕。
   色值只用 spec 已實測的色票（見 test_sbir_landing.py）；rgba 只用於線條、陰影與裝飾，不用於內文。 */
:root {
  --wine: #8b2520;
  --accent: #7a4a2a;
  --paper: #f8f4ee;
  --base: #fbf9f7;
  --ink: #2b2420;
  --muted: #6b5d52;
  --disabled: #8a7d72;
  --white: #ffffff;
  --rule: rgba(43, 36, 32, 0.14);
  --rule-soft: rgba(43, 36, 32, 0.08);
  --shadow: 0 24px 60px rgba(43, 36, 32, 0.14);
  --serif: "Noto Serif TC", serif;
  --sans: "Noto Sans TC", system-ui, sans-serif;
  --script: "Caveat", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.3; margin: 0 0 0.6em; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1170px, 100% - 96px); margin: 0 auto; }
.narrow > *:not(.sec-head) { max-width: 860px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 10; background: var(--white); padding: 8px 12px; }

/* 導覽：排列、高度與捲動效果比照 VibeCode PRO 頁首——置中 974px，logo 靠左，選單＋分隔線＋官網鈕靠右；
   往下捲 0–120px 時高度 68→52px、底色轉半透明並加毛玻璃 */
.site-nav {
  position: sticky; top: 0; z-index: 5;
  background: var(--base);
  border-bottom: 1px solid var(--rule);
}
.wrap.nav-inner { width: min(974px, 100% - 64px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
@supports (animation-timeline: scroll()) {
  @media (min-width: 601px) {
    .site-nav { backdrop-filter: blur(0px); animation: head-glass linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
    .nav-inner { animation: head-shrink linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
    /* 縮小時導覽列改 fixed 並預留原高度（min-height＋1px 底線），只重排導覽列本身；
       若留在文件流（sticky），每格縮小都會推動整個首屏重畫而卡頓（2026-09-25 使用者實測） */
    .site-nav { position: fixed; left: 0; right: 0; }
    body { padding-top: 69px; }
  }
  @media (min-width: 601px) and (max-width: 767px) {
    body { padding-top: 65px; }
  }
}
@keyframes head-glass { to { background-color: rgba(251, 249, 247, 0.82); backdrop-filter: blur(12px) saturate(1.3); } }
@keyframes head-shrink { to { min-height: 52px; } }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 36px; width: auto; }
.nav-inner > nav { margin-left: auto; }
.nav-links { display: flex; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px;
  color: var(--ink); text-decoration: none; font-weight: 400; font-size: 15px; letter-spacing: 0.06em;
}
.nav-links a:hover { color: var(--accent); }
.nav-sep { width: 1px; height: 24px; background: var(--rule); margin: 0 12px 0 -2px; flex: none; }
.btn.nav-home { min-height: 40px; padding: 0 16px; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; gap: 8px; }

/* 按鈕 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 44px; padding: 0 22px; border-radius: 4px;
  font-weight: 700; font-size: 15px; text-decoration: none; letter-spacing: 0.1em;
  border: 1px solid transparent;
}
.btn-wine { background: var(--wine); color: var(--white); box-shadow: 0 1px 3px rgba(139, 37, 32, 0.18); }
.btn-brown { background: var(--accent); color: var(--white); box-shadow: 0 6px 16px rgba(122, 74, 42, 0.25); }
.btn-wine:hover, .btn-brown:hover { text-decoration: underline; }
.btn-lg { min-height: 44px; padding: 0 18px; font-size: 15px; }
.ico-external::after, .ico-chevron::after, .btn-line::before, .btn-check::before {
  content: ""; display: inline-block; flex: none;
  background-size: contain; background-repeat: no-repeat; background-position: center;
}
.ico-external::after { width: 14px; height: 14px; background-image: url("assets/icons/external.png"); }
.ico-chevron::after { width: 14px; height: 14px; margin-left: 8px; background-image: url("assets/icons/chevron.png"); }
.btn-line::before { width: 28px; height: 28px; background-image: url("assets/icons/line.png"); }
/* 次要按鈕：開啟準備度健檢；與 LINE 主按鈕同高同字級 */
.btn-ghost {
  background: rgba(255, 255, 255, 0.7); color: var(--accent);
  border: 1.5px solid var(--accent); cursor: pointer; font-family: inherit; letter-spacing: 0.06em;
}
.btn-ghost:hover { text-decoration: underline; background: var(--white); }
.btn-check::before { width: 20px; height: 20px; background-image: url("assets/icons/document.png"); }

/* Hero：整幅照片為底，左側半透明卡片；頂端標籤與兩顆按鈕同為 44px 高、15px 字 */
/* 高度隨寬度放大（接近照片 2.4:1），2K／1080 大螢幕不會只剩一條窄帶；卡片垂直置中 */
.hero {
  position: relative; overflow: hidden; padding: 48px 0;
  min-height: clamp(560px, 41.6vw, 820px); display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: right center;
}
.hero-inner { position: relative; z-index: 1; }
/* 牆面葉影：底圖是去掉葉影的乾淨牆面；葉影與 .hero-bg 同框、同 cover／靠右裁切而對齊；multiply 疊色。
   刻意靜止：搖晃動畫會讓整個首屏每格重繪，捲動降到約 30fps（2026-09-25 實測），不要加回 */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("assets/leaf-shadow-v2.webp") right center / cover no-repeat;
  mix-blend-mode: multiply; opacity: 0.55;
}
.hero > .hero-inner { flex: none; }
.hero-card {
  position: relative;
  width: min(680px, 60%);
  background: rgba(251, 249, 247, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px 40px 32px;
}
.pill {
  display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 22px;
  background: var(--accent); color: var(--white);
  padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: 0.1em;
  box-shadow: 0 4px 10px rgba(122, 74, 42, 0.25);
}
.h1-kicker {
  display: block; margin-bottom: 8px;
  font-family: var(--sans); font-size: 17px; font-weight: 500; letter-spacing: 0.14em; color: var(--ink);
}
.h1-main { display: block; font-size: 45px; font-weight: 900; line-height: 1.25; letter-spacing: 0.04em; color: var(--ink); }
/* 第二行縮約 14%，讓「15 天」成為第一眼 */
.h1-sub { display: block; margin-top: 4px; font-size: 0.86em; font-weight: 700; }
.num { font-style: normal; color: var(--accent); font-size: 1.2em; letter-spacing: 0; }
.mark { color: var(--accent); font-family: var(--serif); }
sup.mark { font-size: 0.42em; vertical-align: super; margin-left: 4px; font-weight: 500; }
.hero-note {
  position: relative; margin: 18px 0 0; padding-top: 14px;
  font-size: 16px; font-weight: 500; letter-spacing: 0.04em;
}
.hero-note::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--rule); }

/* 首屏依序浮現：標籤 → 小標 → 標題 → 分隔線（由左往右畫出）與說明 → 按鈕 → 提示 */
.hero-card .pill, .h1-kicker, .h1-main, .hero-note, .hero-actions, .hero-hint {
  opacity: 0; transform: translateY(14px);
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-card .pill { animation-delay: 0.1s; }
.h1-kicker { animation-delay: 0.2s; }
.h1-main { animation-delay: 0.3s; }
.hero-note { animation-delay: 0.4s; }
.hero-note::before { transform-origin: left; animation: draw 1s 0.4s ease-out both; }
.hero-actions { animation-delay: 0.5s; }
.hero-hint { animation-delay: 0.6s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } }

/* 右上待辦便條：四項逐項打勾，最後蓋「文件齊備」紅章。只描述本服務的文件準備，不寫核准／通過類字眼 */
.todo-card {
  position: absolute; top: 28px; right: 40px; width: 200px;
  padding: 14px 18px 16px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 4px;
  box-shadow: 0 6px 16px rgba(43, 36, 32, 0.08);
  opacity: 0; transform: rotate(2.5deg);
  animation: note-in 0.6s ease-out 0.8s forwards, knock 0.25s ease-out 3.32s;
}
.todo-card ul { list-style: none; margin: 0; padding: 0; }
.todo-card li { position: relative; padding-left: 26px; font-size: 13px; line-height: 2.1; color: var(--muted); letter-spacing: 0.06em; }
.todo-card li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px;
  border: 1.5px solid rgba(107, 93, 82, 0.6); border-radius: 2px;
}
.todo-card li::after {
  content: ""; position: absolute; left: 4px; top: 5px; width: 6px; height: 11px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
  clip-path: inset(0 0 0 0);
  animation: tick 0.4s ease-out both;
}
.todo-card li:nth-child(1)::after { animation-delay: 1.4s; }
.todo-card li:nth-child(2)::after { animation-delay: 1.8s; }
.todo-card li:nth-child(3)::after { animation-delay: 2.2s; }
.todo-card li:nth-child(4)::after { animation-delay: 2.6s; }
.stamp {
  position: absolute; right: -14px; bottom: -16px;
  padding: 2px 10px; border: 2.5px solid currentColor; border-radius: 6px;
  font-family: var(--serif); font-weight: 900; font-size: 19px; letter-spacing: 0.16em; line-height: 1.5;
  color: var(--wine); mix-blend-mode: multiply;
  /* 印泥不均：以漸層遮罩做深淺斑駁 */
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 35% 40%, #000 45%, rgba(0, 0, 0, 0.72) 100%);
  mask-image: radial-gradient(ellipse 70% 90% at 35% 40%, #000 45%, rgba(0, 0, 0, 0.72) 100%);
  opacity: 0; transform: rotate(-8deg) scale(2.2);
  animation: stamp 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) 3.05s forwards;
}
@keyframes note-in { from { opacity: 0; transform: rotate(2.5deg) translateY(8px); } to { opacity: 1; transform: rotate(2.5deg); } }
@keyframes tick {
  from { clip-path: inset(calc(100% - 2px) 100% 0 0); }
  45% { clip-path: inset(calc(100% - 2px) 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes stamp {
  60% { opacity: 1; transform: rotate(-8deg) scale(0.95); }
  to { opacity: 0.9; transform: rotate(-8deg) scale(1); }
}
@keyframes knock {
  30% { transform: rotate(2.5deg) translate(1px, 2px); }
  60% { transform: rotate(2.5deg) translate(-1px, -1px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-card .pill, .h1-kicker, .h1-main, .hero-note, .hero-actions, .hero-hint, .hero-note::before {
    animation: none; opacity: 1; transform: none;
  }
  .todo-card { animation: none; opacity: 1; }
  .todo-card li::after { animation: none; }
  .stamp { animation: none; opacity: 0.9; transform: rotate(-8deg); }
}
.hero-note .mark { margin-right: 8px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 14px; }
.hero-hint { font-size: 15px; margin: 0; letter-spacing: 0.04em; }

.hero-script {
  position: absolute; z-index: 1; right: 52px; top: 60px; margin: 0;
  font-family: var(--script); font-size: 1.8rem; line-height: 1.1; color: var(--white);
  transform: rotate(-6deg); letter-spacing: 0.06em;
  text-shadow: 0 1px 6px rgba(43, 36, 32, 0.35);
}
.hero-script::after { content: ""; display: block; width: 96px; height: 1px; margin: 10px 0 0 auto; background: var(--white); }
.hero-support {
  position: absolute; z-index: 1; right: 28px; bottom: 26px; margin: 0;
  font-size: 0.72rem; line-height: 1.9; letter-spacing: 0.4em; text-align: right; color: var(--white);
  text-shadow: 0 1px 4px rgba(43, 36, 32, 0.4);
}
.hero-support::before {
  content: ""; position: absolute; right: calc(100% + 16px); bottom: 0.85em; width: 60px; height: 1px; background: var(--white);
}

/* ── 首屏以下：沿用首屏的「桌上文件」語言——索引標籤、表單、便利貼、清單、報價單、名片、注意事項 ── */

/* 直答段：置中一句，上下細線 */
.answer { padding: 56px 0 8px; }
.answer-text {
  max-width: 44em; margin: 0 auto; padding: 22px 0; text-align: center;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font-family: var(--serif); font-size: 20px; line-height: 1.8;
}

.section { padding: 80px 0; }
.section-sheet { background: var(--white); }

/* 段落抬頭：文件夾索引標籤（編號）坐在一條紙緣線上，標題在下 */
.sec-head { margin-bottom: 40px; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; align-items: flex-start; }
.sec-no {
  order: -1; margin-bottom: -1px;
  padding: 3px 18px 2px; border: 1px solid var(--rule); border-bottom-color: var(--base); border-radius: 8px 8px 0 0;
  background: var(--base); color: var(--accent);
  font-family: var(--serif); font-weight: 700; font-size: 14px; letter-spacing: 0.2em;
}
.section-sheet .sec-no { border-bottom-color: var(--white); background: var(--white); }
.sec-head h2 { order: 0; margin: 0; padding: 18px 0 20px; font-size: 32px; font-weight: 700; letter-spacing: 0.08em; }
.lead { font-size: 16px; }
.notice { font-weight: 700; border-left: 4px solid var(--accent); padding-left: 14px; }

/* 01 適合誰：左說明、右資格表（表單影本質感） */
.fit-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.fit-intro .lead { font-family: var(--serif); font-size: 20px; line-height: 1.8; margin-bottom: 28px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); background: var(--white); }
.form-sheet { border-radius: 2px; box-shadow: 0 10px 28px rgba(43, 36, 32, 0.07); }
table { width: 100%; border-collapse: collapse; }
caption { text-align: left; font-weight: 700; padding: 16px 20px 12px; font-size: 14px; letter-spacing: 0.04em; border-bottom: 2px solid var(--ink); }
th, td { border-top: 1px solid var(--rule); padding: 14px 20px; text-align: left; vertical-align: top; }
thead th { color: var(--muted); font-size: 13px; font-weight: 500; background: var(--paper); letter-spacing: 0.1em; }
tbody th { width: 7em; white-space: nowrap; font-family: var(--serif); }

/* 02 痛點：貼在牆上的便利貼，微微歪斜、上方一條紙膠帶 */
.pain-list { list-style: none; counter-reset: pain; margin: 0; padding: 12px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.pain-list li {
  counter-increment: pain; position: relative;
  background: var(--paper); padding: 30px 24px 26px;
  box-shadow: 0 1px 1px rgba(43, 36, 32, 0.06), 0 12px 24px rgba(43, 36, 32, 0.08);
}
.pain-list li:nth-child(1) { rotate: -1.6deg; }
.pain-list li:nth-child(2) { rotate: 1.2deg; margin-top: 18px; }
.pain-list li:nth-child(3) { rotate: -0.8deg; }
.pain-list li:nth-child(4) { rotate: 1.6deg; margin-top: 12px; }
.pain-list li::after {
  content: ""; position: absolute; top: -10px; left: 50%; width: 76px; height: 20px; translate: -50% 0; rotate: -3deg;
  background: rgba(122, 74, 42, 0.16);
}
.pain-list li::before {
  content: "0" counter(pain); display: block; margin-bottom: 10px;
  font-family: var(--serif); font-weight: 900; font-size: 34px; line-height: 1; color: var(--accent);
}
.pain-list h3 { font-size: 18px; }
.pain-list p { margin: 0; }

/* 03 包含／不包含：主清單是首屏便條的放大版；不包含是旁邊一張較淡的附註紙條 */
.scope-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }
.scope { position: relative; background: var(--white); border: 1px solid var(--rule); padding: 32px 36px 20px; }
.scope-in { box-shadow: 0 16px 36px rgba(43, 36, 32, 0.09); rotate: -0.5deg; }
.scope-out { background: var(--paper); margin-top: 40px; rotate: 0.8deg; }
.scope h3 { font-size: 20px; border-bottom: 1px solid var(--rule); padding-bottom: 14px; }
.scope-out h3 { color: var(--muted); }
.scope ol, .scope ul { list-style: none; margin: 0; padding: 0; }
.scope li { position: relative; padding: 12px 0 12px 40px; border-bottom: 1px dashed var(--rule); }
.scope li:last-child { border-bottom: 0; }
.scope li::before { content: ""; position: absolute; left: 0; top: 17px; width: 20px; height: 20px; border: 1.5px solid rgba(107, 93, 82, 0.6); border-radius: 3px; }
.scope-in li::after {
  content: ""; position: absolute; left: 6px; top: 16px; width: 7px; height: 13px;
  border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.scope-out li { color: var(--muted); }
.scope-out li::after { content: ""; position: absolute; left: 5px; top: 26px; width: 12px; height: 1.5px; background: var(--muted); }

/* 04 流程：時間軸；3–5 步上方括號標出「最快 15 天」 */
.steps-frame { display: grid; grid-template-columns: repeat(6, 1fr); column-gap: 24px; }
.steps-span {
  grid-column: 3 / 6; margin: 0 0 22px; padding-top: 10px; position: relative; text-align: center;
  border-top: 1.5px solid var(--accent);
  font-family: var(--serif); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; color: var(--accent);
}
.steps-span::before, .steps-span::after { content: ""; position: absolute; top: -1px; width: 1.5px; height: 12px; background: var(--accent); }
.steps-span::before { left: 0; }
.steps-span::after { right: 0; }
.steps { grid-column: 1 / -1; list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 1px; background: var(--accent); transform-origin: left; }
.steps li { counter-increment: step; position: relative; padding-top: 62px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--white); border: 1.5px solid var(--accent); border-radius: 50%;
  font-family: var(--serif); font-weight: 900; color: var(--accent);
}
.steps li:last-child::before { background: var(--accent); border-color: var(--accent); color: var(--white); }
.steps h3 { font-size: 17px; }
.steps p { margin: 0; font-size: 14px; }

/* 05 價格：置中的報價單；合計旁蓋「含稅價」章（全頁第二枚、也是最後一枚紅章） */
.quote {
  position: relative; max-width: 720px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--accent);
  box-shadow: var(--shadow); padding: 40px 52px 44px;
}
.quote-top { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 8px; }
.quote-title { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: 0.4em; }
.quote-issuer { margin: 0; color: var(--muted); font-size: 14px; letter-spacing: 0.08em; }
.quote-rows { margin: 0 0 24px; }
.quote-rows div { display: grid; grid-template-columns: 6em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--rule); }
.quote-rows dt { color: var(--muted); }
.quote-rows dd { margin: 0; }
.price-amount {
  position: relative; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px;
  border-top: 1px solid var(--ink); padding-top: 18px; margin-bottom: 28px;
  font-family: var(--serif); font-weight: 900; font-size: 44px; line-height: 1.2; color: var(--accent);
}
.price-label { font-size: 15px; font-weight: 500; color: var(--muted); font-family: var(--sans); margin-right: auto; }
.price-tax { font-size: 17px; font-weight: 700; color: var(--ink); }
.quote-stamp {
  position: absolute; right: -18px; top: -30px;
  padding: 2px 10px; border: 2.5px solid currentColor; border-radius: 6px;
  font-family: var(--serif); font-weight: 900; font-size: 17px; letter-spacing: 0.16em; line-height: 1.5;
  color: var(--wine); mix-blend-mode: multiply; opacity: 0.9; transform: rotate(-8deg);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 35% 40%, #000 45%, rgba(0, 0, 0, 0.72) 100%);
  mask-image: radial-gradient(ellipse 70% 90% at 35% 40%, #000 45%, rgba(0, 0, 0, 0.72) 100%);
}
/* 印章入場先放大 2.2 倍（尚未進入畫面時即是此狀態），手機上會超出螢幕撐寬頁面，滑動時左右晃（2026-09-25 使用者實測）；
   價格區為滿版區塊，在此橫向裁切，不影響印章落定後的位置 */
.price { overflow-x: clip; }
/* 06 聲明：申請表背面「注意事項」；與內文同字級同色，只改版式 */
.fine-print { max-width: 860px; margin: 0 auto; border: 1px solid var(--rule); background: var(--base); padding: 30px 40px 18px; }
.fine-title { margin: 0 0 12px; text-align: center; font-family: var(--serif); font-weight: 700; letter-spacing: 0.6em; }
.disclaimer-list { list-style: none; counter-reset: fine; margin: 0; padding: 0; }
.disclaimer-list li { counter-increment: fine; position: relative; padding: 14px 0 14px 3em; border-top: 1px solid var(--rule); }
.disclaimer-list li::before { content: counter(fine, cjk-decimal) "、"; position: absolute; left: 0; font-family: var(--serif); font-weight: 700; color: var(--accent); }

/* 07 FAQ：左側標題固定，右側問答 */
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
.faq-side { position: sticky; top: 96px; }
.faq-more { margin: 0 0 10px; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--accent); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
details { border-bottom: 1px solid var(--rule); }
details:first-child { border-top: 1px solid var(--rule); }
summary {
  cursor: pointer; list-style: none; position: relative;
  min-height: 64px; display: flex; align-items: center; padding: 14px 40px 14px 0;
  font-family: var(--serif); font-weight: 700; font-size: 17px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "＋"; position: absolute; right: 8px; color: var(--accent); font-weight: 700; }
details[open] summary::after { content: "－"; }
details p { margin: 0 0 20px; }
.faq-reading { color: var(--muted); }
.faq-reading a, .reading-list a { color: var(--accent); text-underline-offset: 3px; }
.reading-list { max-width: 860px; margin: 0; padding: 0; list-style: none; }
.reading-list li { padding: 13px 0; border-top: 1px solid var(--rule); }
.reading-list li:last-child { border-bottom: 1px solid var(--rule); }

/* 收尾：首屏照片的乾淨牆面作底，一句話＋LINE */
.closing {
  position: relative; padding: 110px 0;
  background: url("assets/hero-clean-wall.webp") left center / cover no-repeat;
}
.closing::before { content: ""; position: absolute; inset: 0; background: rgba(251, 249, 247, 0.55); }
.closing-inner { position: relative; text-align: center; }
.closing h2 { font-size: 34px; letter-spacing: 0.08em; margin-bottom: 14px; }
.closing p { font-size: 16px; margin: 0 0 30px; }

/* 捲動浮現（CSS 捲動時間軸）：預設即最終狀態；支援且未要求減少動態時才加動畫 */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal-up linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .scope-in li::after { animation: tick linear both; animation-timeline: view(); animation-range: entry 60% cover 35%; }
    .steps::before { animation: draw linear both; animation-timeline: view(); animation-range: entry 40% cover 45%; }
    .quote-stamp { animation: stamp-scroll linear both; animation-timeline: view(); animation-range: entry 80% cover 40%; }
  }
}
@keyframes reveal-up { from { opacity: 0; transform: translateY(16px); } }
@keyframes stamp-scroll {
  0%, 55% { opacity: 0; transform: rotate(-8deg) scale(2.2); }
  85% { opacity: 1; transform: rotate(-8deg) scale(0.95); }
  to { opacity: 0.9; transform: rotate(-8deg) scale(1); }
}

/* 頁尾 */
.site-footer { background: var(--ink); color: var(--paper); padding: 48px 0; font-size: 14px; }
.footer-inner { display: flex; gap: 48px; align-items: flex-start; }
.footer-brand { font-family: var(--serif); font-weight: 900; font-size: 20px; letter-spacing: 0.1em; margin: 0; }
.site-footer a { color: var(--paper); }
.site-footer p { margin: 0 0 6px; }

@media (max-width: 1200px) {
  .wrap { width: calc(100% - 64px); }
  .hero-card { width: min(700px, 72%); }
  .h1-main { font-size: 40px; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .steps-span { display: none; }
  .pain-list { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .fit-grid { grid-template-columns: 1fr; gap: 36px; }
  .faq-grid { grid-template-columns: 1fr; gap: 12px; }
  .faq-side { position: static; }
}

@media (max-width: 767px) {
  body { font-size: 15px; }
  .wrap { width: calc(100% - 32px); }
  .nav-inner { gap: 12px; min-height: 64px; }
  .nav-links { display: none; }
  .nav-sep { display: none; }
  .brand img { height: 31px; }
  .wrap.nav-inner { width: calc(100% - 32px); }
  .btn.nav-home { margin-left: auto; min-height: 44px; padding: 0 14px; font-size: 14px; }
  .hero { display: block; padding: 0 0 24px; min-height: 0; }
  .hero-bg { position: static; height: 300px; object-position: 78% center; }
  .hero::after { bottom: auto; height: 300px; background-position: 78% center; }
  .hero-support { display: none; }
  .hero-script { top: 22px; right: 20px; font-size: 1.6rem; }
  .hero-card { width: auto; margin-top: -56px; padding: 22px 20px 28px; }
  .todo-card { display: none; }
  .h1-kicker { font-size: 15px; letter-spacing: 0.1em; }
  .h1-main { font-size: 29px; letter-spacing: 0.02em; }
  .hero-actions { gap: 12px; }
  .btn-lg { padding: 0 16px; }
  .btn-lg { width: 100%; }
  .answer-text { font-size: 17px; }
  .sec-head { margin-bottom: 28px; }
  .sec-head h2 { font-size: 24px; letter-spacing: 0.06em; padding: 14px 0 16px; }
  .section { padding: 56px 0; }
  .fit-intro .lead { font-size: 17px; }
  .pain-list, .scope-grid { grid-template-columns: 1fr; }
  .pain-list li { margin-top: 0; }
  .scope { padding: 24px 20px 12px; }
  .scope-out { margin-top: 0; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps li { padding: 0 0 24px 64px; min-height: 64px; }
  .steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 1px; background: var(--accent); }
  .quote { padding: 28px 20px; }
  .quote-title { font-size: 18px; letter-spacing: 0.2em; }
  .quote-stamp { right: -6px; }
  .price-amount { font-size: 34px; }
  .fine-print { padding: 22px 18px 10px; }
  .closing { padding: 72px 0; background-position: 30% center; }
  .closing h2 { font-size: 24px; }
  .footer-inner { flex-direction: column; gap: 16px; }
}

/* 準備度健檢：原生 dialog，一段一段作答；結果只有單一總分圓環 */
html:has(.check[open]) { overflow: hidden; }
.check {
  width: min(680px, 100% - 24px); max-height: min(88vh, 900px); padding: 0;
  border: 1px solid var(--rule); border-radius: 6px; background: var(--base); color: var(--ink);
  box-shadow: var(--shadow);
}
.check::backdrop { background: rgba(43, 36, 32, 0.45); }
.check-head {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; background: var(--base); border-bottom: 1px solid var(--rule);
}
.check-head h2 { margin: 0; font-family: var(--serif); font-size: 20px; letter-spacing: 0.06em; }
.check-close {
  width: 44px; height: 44px; margin-right: -12px; border: 0; background: none;
  font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer;
}
#check-form { padding: 24px 28px 28px; }
.check-intro { margin: 0 0 18px; color: var(--muted); }
.check-progress { display: grid; gap: 8px; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: 0.06em; }
.check-bar { height: 3px; background: var(--rule-soft); }
.check-bar i { display: block; height: 100%; width: 33.33%; background: var(--accent); transition: width 0.4s ease; }
.check-step { margin: 0; padding: 0; border: 0; min-width: 0; }
.step-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.q { margin: 0; padding: 20px 0; border: 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.q legend { float: left; width: 100%; padding: 0; margin-bottom: 12px; font-weight: 700; line-height: 1.6; }
.q legend + * { clear: both; }
.q-no { margin-right: 10px; font-family: var(--serif); color: var(--accent); }
.q-help { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.q-help a { color: var(--accent); }
.q-opts { display: grid; gap: 8px; }
.opt {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 14px;
  background: var(--white); border: 1px solid var(--rule); border-radius: 4px; cursor: pointer;
}
.opt input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.opt:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.q-missing { display: none; margin: 8px 0 0; font-size: 14px; font-weight: 700; color: var(--wine); }
.q.is-missing .q-missing { display: block; }
.q.is-missing .opt { border-color: rgba(139, 37, 32, 0.45); }
.check-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.check-nav #check-next, .check-nav #check-submit { margin-left: auto; }
.check-nav [hidden] { display: none; }
.check-result { text-align: center; }
.check-result h3 { margin: 4px 0 20px; font-family: var(--serif); font-size: 22px; letter-spacing: 0.06em; }
.score-ring {
  --p: 0; display: grid; place-items: center; width: 200px; height: 200px; margin: 0 auto 24px; border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--base) 84%, transparent 85%),
    conic-gradient(var(--accent) calc(var(--p) * 1%), var(--rule-soft) 0);
}
.score-num { margin: 0; font-family: var(--serif); }
#check-score { font-size: 56px; font-weight: 900; color: var(--accent); letter-spacing: 0; }
.score-unit { font-size: 16px; font-weight: 700; color: var(--muted); }
.result-reminder { text-align: left; margin: 0 0 20px; }
.result-lead { margin: 0 0 16px; font-weight: 700; }
.result-hint { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.result-note { margin: 20px 0 4px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); text-align: left; }
button.text-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 767px) {
  .check { width: 100%; max-width: none; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .check-head { padding: 14px 18px; }
  #check-form { padding: 20px 18px 24px; }
  .score-ring { width: 170px; height: 170px; }
  #check-score { font-size: 48px; }
}
