/* curtainos.com — 大標、留白、捲動動畫（參考 Apple 產品頁的節奏） */

:root {
  --white: #FFFFFF;
  --gray: #F5F5F7;
  --ivory: #F6F5F1;
  --ink: #1D1D1F;
  --muted: #6E6E73;
  --line: #D2D2D7;
  --blue: #0071E3;
  --blue-hover: #0077ED;
  --navy: #041432;
  --sky: #DCE6F7;
  --due: #C0392B;
  --dark: #000000;
  --dark-2: #1D1D1F;
  --dark-muted: #A1A1A6;

  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --latin: "IBM Plex Sans", "Noto Sans TC", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: 22px;
  --r-lg: 28px;
  --r-md: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p, dl, dd, figure, h1, h2, h3, ul, ol { margin: 0; }
p, li, dd, summary { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
[lang="en"] { font-family: var(--latin); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--ink); padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-narrow { --wrap: 820px; }
.br-sm { display: none; }

/* 按鈕：藍色膠囊與「了解更多 ›」 */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 22px;
  font-size: 17px; font-weight: 500; line-height: 1.2;
  color: var(--white); background: var(--blue);
  border-radius: 999px;
  transition: background-color 200ms ease, transform 200ms ease;
}
.pill:hover { background: var(--blue-hover); text-decoration: none; }
.pill:active { transform: scale(0.98); }
.pill-sm { min-height: 32px; padding: 5px 14px; font-size: 13px; }
.pill-lg { min-height: 52px; padding: 12px 30px; font-size: 18px; }
.more { display: inline-flex; align-items: center; min-height: 44px; font-size: 18px; }
.more::after { content: "›"; margin-left: 6px; font-size: 1.2em; line-height: 1; transition: transform 200ms ease; }
.more:hover::after { transform: translateX(3px); }
.fine { margin-top: 18px; font-size: 13px; color: var(--muted); }
.fine-center { text-align: center; }
.eyebrow { font-size: 17px; font-weight: 700; color: var(--blue); letter-spacing: 0.01em; }

/* 頂條：半透明毛玻璃 */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav-in { display: flex; align-items: center; gap: 24px; height: 52px; width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.nav-logo img { width: 113px; height: auto; }
.nav-links { display: flex; gap: 28px; margin-inline: auto; }
.nav-links a { font-size: 13px; color: var(--ink); opacity: 0.8; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-login { font-size: 13px; color: var(--ink); }

/* 區段共用 */
section { position: relative; }
.sec-head { max-width: 760px; }
.sec-head-center { margin-inline: auto; text-align: center; }
.sec-head h2 { margin-top: 10px; font-size: clamp(36px, 5.4vw, 64px); line-height: 1.12; }
.sec-sub { margin-top: 18px; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.5; color: var(--muted); font-weight: 500; }
.sec-head-center .sec-sub { margin-inline: auto; max-width: 34em; }

/* ---- 首屏 ---- */
.hero { padding: 88px 0 0; text-align: center; overflow: hidden; }
.hero-copy { width: min(900px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.hero .eyebrow { font-size: 19px; color: var(--muted); font-weight: 500; }
.hero-title { margin-top: 14px; font-size: clamp(48px, 8.4vw, 104px); line-height: 1.06; font-weight: 900; letter-spacing: -0.03em; }
.hero-line { display: block; }
.hero-line + .hero-line { color: var(--blue); }
.hero-sub { margin: 26px auto 0; max-width: 30em; font-size: clamp(19px, 2vw, 24px); line-height: 1.5; color: var(--muted); font-weight: 500; }
.hero-cta { margin-top: 32px; display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero-stage {
  position: relative; margin: 64px auto 0; width: min(1180px, 100% - 2 * var(--gutter));
  padding-bottom: 72px;
}
.hero-stage { container-type: inline-size; }
.hero-shot {
  padding: 5cqw 6cqw 0;
  border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(120% 90% at 15% 0%, #E4ECFF 0%, transparent 60%), radial-gradient(90% 80% at 100% 100%, #DDF3EC 0%, transparent 60%), #EEF1F8;
  transform-origin: 50% 0;
}
.hero-shot .mk-win { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.hero-stage .float { position: absolute; z-index: 2; }
.float-a { right: 2cqw; top: 9cqw; }
.float-b { left: 1.5cqw; bottom: 9cqw; }
.stage-note { margin-top: 14px; font-size: 12px; color: var(--muted); text-align: center; }
/* 首屏的捲動起點：Motion 載入前先停在起點，接手時不跳；reduced-motion 或沒有 IntersectionObserver 時是最終畫面 */
@media (prefers-reduced-motion: no-preference) {
  html:not(.no-anim) .hero-shot { transform: scale(0.9) translateY(40px); }
  html:not(.no-anim) .hero-stage .float-a { transform: translateY(60px); }
  html:not(.no-anim) .hero-stage .float-b { transform: translateY(110px); }
}
.hero-stage .stage-note { position: absolute; left: 0; right: 0; bottom: 34px; }

/* ---- 痛點：逐字亮起 ---- */
.statement { height: 260vh; background: var(--white); }
.statement-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.statement-text {
  width: min(1000px, 100% - 2 * var(--gutter)); margin-inline: auto;
  font-size: clamp(34px, 5.6vw, 72px); line-height: 1.22; font-weight: 700; letter-spacing: -0.02em;
}
.st-line { display: block; }
.st-line + .st-line { margin-top: 0.5em; }
.st-list .w { display: inline-block; white-space: nowrap; }
.st-list .w { margin-right: 0.55em; }
.statement-text .w { color: var(--ink); }
.anim .statement-text .w { opacity: 0.14; }
.statement-text .w.is-lit { opacity: 1; }
.statement-text .w-brand.is-lit { color: var(--blue); }
.no-anim .statement { height: auto; padding: 120px 0; }
.no-anim .statement-sticky { position: static; height: auto; }

/* ---- 好處：便當格 ---- */
.gains { background: var(--gray); padding: 140px 0 120px; }
.bento { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  min-height: 340px; padding: 40px 36px;
  background: var(--white); border-radius: var(--r-lg); overflow: hidden;
}
.tile-wide { grid-column: span 2; }
.tile-kicker { font-size: 15px; font-weight: 700; color: var(--muted); }
.tile h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; }
.tile p { font-size: 17px; color: var(--muted); }
.tile-blue { background: linear-gradient(160deg, #EAF2FF 0%, #FFFFFF 70%); }
.tile-ivory { background: linear-gradient(160deg, var(--ivory) 0%, #FFFFFF 80%); }
.tile-dark { background: var(--navy); color: var(--white); }
.tile-dark .tile-kicker, .tile-dark p { color: rgba(255, 255, 255, 0.66); }
.big-num { margin-top: auto; font-family: var(--latin); font-size: 88px !important; line-height: 1; font-weight: 600; color: var(--white) !important; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.big-num small { font-size: 40px; margin-left: 4px; }
.tile-fine { font-size: 12px !important; }
.mini-flow { margin-top: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mini-flow span { padding: 10px 16px; font-size: 15px; font-weight: 700; background: var(--white); border: 1px solid var(--line); border-radius: 999px; }
.mini-flow span.is-on { color: var(--white); background: var(--blue); border-color: var(--blue); }
.mini-flow i { width: 28px; height: 2px; background: var(--line); position: relative; }
.mini-flow i::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: var(--line); }
.also { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.also li { font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }
.also strong { display: block; margin-bottom: 4px; font-size: 17px; color: var(--ink); }

/* ---- 流程：黏住的畫面 ---- */
.flow { padding: 140px 0 80px; background: var(--white); }
.flow-grid { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; }
.flow-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.28; }
.flow-step.is-active { opacity: 1; }
.step-no { font-family: var(--latin); font-size: 15px; font-weight: 600; color: var(--blue); }
.flow-step h3 { margin-top: 8px; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.15; }
.flow-step p { margin-top: 14px; font-size: 21px; line-height: 1.55; color: var(--muted); font-weight: 500; }
.step-mock { display: none; }
.flow-stage { position: sticky; top: calc(52px + 8vh); height: calc(84vh - 52px); align-self: start; display: flex; flex-direction: column; justify-content: center; }
.stage-frame { position: relative; aspect-ratio: 1600 / 1106; border-radius: var(--r-lg); overflow: hidden; background: var(--sky); }
.stage-item {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transform: scale(1.04);
}
.stage-item.is-active { opacity: 1; transform: none; }

/* 簽章：LINE 對話示意 */
.stage-line { display: flex; align-items: center; justify-content: center; background: #8AA5C6; }
.line-phone { width: min(360px, 62%); height: 92%; background: #8AA5C6; display: flex; flex-direction: column; }
.line-top { display: flex; align-items: center; gap: 10px; padding: 10px 4px; color: var(--white); font-weight: 700; font-size: 15px; }
.line-avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--white); color: var(--navy); font-size: 14px; }
.line-thread { position: relative; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 88%; padding: 9px 13px; font-size: 13px; line-height: 1.5; border-radius: 16px; background: var(--white); }
.bubble-in { align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble-card { align-self: flex-end; width: 88%; padding: 0; overflow: hidden; display: flex; flex-direction: column; font-size: 12px; }
.bubble-note { align-self: center; max-width: none; font-size: 12px; color: var(--white); background: rgba(4, 20, 50, 0.45); border-radius: 999px; }
/* 輸入中氣泡：絕對定位在下一則訊息的位置，不佔版面；最終畫面看不到（場景 A） */
.bubble-typing { position: absolute; left: 0; display: inline-flex; gap: 5px; align-items: center; padding: 11px 13px; color: #8E8E93; background: var(--white); border-radius: 16px; border-bottom-left-radius: 4px; opacity: 0; pointer-events: none; }
.bubble-typing.is-out { left: auto; right: 0; border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
.typing-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.35; }
.qc-head { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--navy); color: var(--white); font-weight: 700; }
.qc-row, .qc-total { display: flex; justify-content: space-between; gap: 8px; padding: 5px 12px; border-bottom: 1px solid #EEE; font-variant-numeric: tabular-nums; }
.qc-row s { color: var(--muted); }
.qc-total { font-size: 13px; border-bottom: 0; }
.qc-link { padding: 8px 12px; text-align: center; color: var(--blue); font-weight: 700; border-top: 1px solid #EEE; }

/* ---- 回購：深色 ---- */
.aftercare { background: var(--dark); color: var(--white); padding: 140px 0; }
.aftercare .eyebrow { color: #2997FF; }
.aftercare .sec-sub { color: var(--dark-muted); }
.after-stage { margin: 72px auto 0; display: flex; justify-content: center; }
.curtain-card {
  width: min(460px, 100%); background: var(--white); color: var(--ink); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 50px 120px -30px rgba(41, 151, 255, 0.35);
}
.curtain-head { display: flex; align-items: center; gap: 10px; padding: 16px 22px; background: var(--navy); color: var(--white); font-weight: 700; }
.curtain-head .tag { margin-left: auto; font-size: 12px; font-weight: 500; padding: 2px 10px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; }
.curtain-card h3 { padding: 22px 22px 6px; font-size: 21px; }
.curtain-rows { padding: 0 22px; }
.curtain-rows div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid #EEE; font-size: 15px; }
.curtain-rows dt { color: var(--muted); }
.curtain-link { display: block; margin: 18px 22px 22px; padding: 12px; text-align: center; color: var(--white); background: #06C755; border-radius: 12px; font-weight: 700; }
.after-points { margin-top: 88px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.after-points h3 { font-size: 21px; }
.after-points p { margin-top: 8px; color: var(--dark-muted); font-size: 17px; }

/* ---- 經營：大數字 ---- */
.owner { background: var(--white); padding: 140px 0 120px; }
.stats { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { padding: 40px 32px; background: var(--gray); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 14px; }
.stat-q { font-size: 19px; font-weight: 700; }
.stat-num { font-family: var(--latin); font-size: clamp(48px, 5vw, 68px); font-weight: 600; line-height: 1; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-unit { font-size: 0.4em; margin-right: 6px; color: var(--muted); letter-spacing: 0; }
.stat-due { color: var(--due); }
.stat-a { margin-top: auto; font-size: 15px; color: var(--muted); }
.bars { height: 68px; display: flex; align-items: flex-end; gap: 14px; }
.bars span { width: 46px; border-radius: 10px 10px 4px 4px; transform-origin: bottom; }
.bar-a { height: 70%; background: var(--line); }
.bar-b { height: 100%; background: var(--blue); }

/* ---- LINE ---- */
.line { background: var(--gray); padding: 140px 0; }
.line-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; }
.line-list { display: grid; gap: 14px; }
.line-list li { display: flex; flex-direction: column; gap: 4px; padding: 24px 28px; background: var(--white); border-radius: var(--r-md); border-left: 5px solid #06C755; }
.line-list strong { font-size: 21px; }
.line-list span { color: var(--muted); }

/* ---- 模組 ---- */
.modules { background: var(--white); padding: 140px 0; }
.module-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 28px; }
.module-grid li { padding: 20px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.module-grid strong { font-size: 19px; }
.module-grid span { font-size: 15px; color: var(--muted); }

/* ---- 導入 ---- */
.start { background: var(--gray); padding: 140px 0 120px; }
.start-steps { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.start-steps li { padding: 32px 28px; background: var(--white); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 8px; }
.start-steps .step-no { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px; border-radius: 50%; color: var(--white); background: var(--blue); font-size: 17px; }
.start-steps strong { font-size: 21px; }
.start-steps span:last-child { color: var(--muted); font-size: 16px; }

/* ---- 方案 ---- */
.plans { background: var(--white); padding: 140px 0 120px; }
.plan-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1080px; margin-inline: auto; }
.plan { padding: 36px 28px; border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 10px; transition: border-color 250ms ease, transform 350ms var(--ease); }
.plan:hover { border-color: var(--blue); transform: translateY(-4px); }
.plan h3 { font-size: 24px; }
.plan-featured { border-color: var(--blue); }
.plan h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-tag { padding: 4px 10px; border-radius: 999px; background: var(--blue); color: var(--white); font-size: 13px; font-weight: 500; line-height: 1.4; }
.plan-price { font-size: 17px; color: var(--muted); }
.plan-price strong { margin: 0 4px; font-family: var(--latin); font-size: 40px; font-weight: 600; color: var(--ink); font-feature-settings: "tnum"; }
.plan-terms { font-size: 15px; color: var(--muted); }
.plan-seats { font-size: 17px; color: var(--ink); }
.plan p:last-child { color: var(--muted); }

/* ---- 常見問題 ---- */
.faq { background: var(--gray); padding: 140px 0 120px; }
.faq h2 { font-size: clamp(36px, 5vw, 56px); text-align: center; }
.faq-list { margin-top: 48px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 72px; padding: 18px 0; cursor: pointer; list-style: none;
  font-size: 20px; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--latin); font-size: 30px; font-weight: 400; color: var(--muted); transition: transform 300ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; font-size: 17px; color: var(--muted); }

/* ---- 收尾 ---- */
.close { background: var(--white); padding: 160px 0; text-align: center; }
.close-in { display: flex; flex-direction: column; align-items: center; }
.close img { margin-bottom: 28px; border-radius: 18px; }
.close h2 { font-size: clamp(44px, 7vw, 88px); line-height: 1.08; font-weight: 900; letter-spacing: -0.03em; }

/* ---- 頁尾 ---- */
.foot { background: var(--gray); padding: 32px 0 48px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.foot-links { display: flex; gap: 20px; margin-left: auto; }
.foot-legal { width: 100%; }

.dock { display: none; }
.dock[hidden] { display: none !important; }

/* ---- 進場動畫：只有 main.js 啟動 Motion 後才先藏起來，由 Motion 進到畫面時播一次；沒有 JS 或 reduced-motion 一律直接顯示 ---- */
.anim [data-reveal] { opacity: 0; }
/* 流程每一步的小段落：Motion 接手後先藏起還沒播的部分，播的時候不會先閃一下最終畫面 */
.anim .stage-item[data-beat] :is(.real-phone, .float, .bubble, .ev, .mk-ar-row) { opacity: 0; }

/* ---- 響應式 ---- */
@media (max-width: 1068px) {
  .nav-links { gap: 20px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: span 2; }
  .also { grid-template-columns: 1fr 1fr; }
  .start-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .flow-grid { grid-template-columns: 1fr; gap: 0; }
  .flow-stage { display: none; }
  .flow-step { min-height: 0; padding: 40px 0; opacity: 1; }
  .step-mock { display: block; }
  .line-grid { grid-template-columns: 1fr; gap: 48px; }
  .stats { grid-template-columns: 1fr; }
  .after-points { grid-template-columns: 1fr; gap: 28px; margin-top: 64px; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .br-sm { display: inline; }
  .nav-login { display: none; }
  .hero { padding-top: 56px; }
  .hero-title { font-size: 46px; }
  .hero-cta { gap: 18px; }
  .hero-stage { margin-top: 44px; padding-bottom: 56px; }
  .hero-shot { border-radius: var(--r-md); }
  .hero-stage .stage-note { bottom: 22px; }
  .statement { height: 220vh; }
  .gains, .flow, .aftercare, .owner, .line, .modules, .start, .plans, .faq { padding: 88px 0; }
  .close { padding: 112px 0; }
  .bento, .also, .start-steps, .plan-grid { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .tile { min-height: 0; padding: 32px 26px; }
  .big-num { font-size: 72px !important; margin-top: 12px; }
  .flow-step p { font-size: 18px; }
  .faq summary { font-size: 18px; }
  .faq details p { padding-right: 0; }
  .foot { padding-bottom: calc(48px + 80px); }
  .foot-links { margin-left: 0; }
  .dock {
    display: flex; justify-content: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }
  .dock .pill { width: 100%; max-width: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plan, .pill, .more::after, .faq summary::after { transition: none !important; }
  .bubble-typing { display: none; }
}

/* ---- AI 專員：iMessage 風格 ---- */
.ai-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 50px; padding: 10px 20px 10px 16px;
  font: inherit; font-size: 15px; font-weight: 500; line-height: 1.2;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 999px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.25); cursor: pointer;
  transition: transform 250ms var(--ease), box-shadow 250ms ease;
}
.ai-launcher:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.3); }
.ai-launcher svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ai-launcher[aria-expanded="true"] { display: none; }

.ai-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  display: flex; flex-direction: column;
  width: min(390px, calc(100vw - 44px)); height: min(640px, calc(100dvh - 44px));
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(30px); -webkit-backdrop-filter: saturate(180%) blur(30px);
  border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 22px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: ai-in 380ms var(--ease);
}
.ai-panel[hidden] { display: none; }
@keyframes ai-in { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }
.ai-head { display: flex; align-items: center; gap: 10px; padding: 12px 8px 12px 16px; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.ai-head img { border-radius: 8px; }
.ai-head div { flex: 1; min-width: 0; }
.ai-head h2 { font-size: 15px; line-height: 1.3; font-weight: 700; letter-spacing: 0; }
.ai-head p { font-size: 12px; color: var(--muted); }
.ai-close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--muted); background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.ai-close:hover { background: rgba(0, 0, 0, 0.05); color: var(--ink); }
.ai-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.ai-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 6px; }
.ai-msg { max-width: 80%; padding: 8px 14px; font-size: 15px; line-height: 1.5; border-radius: 20px; overflow-wrap: anywhere; animation: ai-msg 320ms var(--ease); }
@keyframes ai-msg { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ai-msg + .ai-msg { margin-top: 2px; }
.ai-assistant + .ai-user, .ai-user + .ai-assistant { margin-top: 10px; }
.ai-msg p + p { margin-top: 6px; }
.ai-assistant { align-self: flex-start; background: #E9E9EB; color: var(--ink); border-bottom-left-radius: 6px; }
.ai-user { align-self: flex-end; background: var(--blue); color: var(--white); border-bottom-right-radius: 6px; white-space: pre-wrap; }
.ai-user a { color: var(--white); text-decoration: underline; }
.ai-assistant a { color: var(--blue); }
.ai-error { background: #FDECEA; color: var(--due); }
.ai-failed { opacity: 0.55; }
.ai-failed::after { content: "未送出"; display: block; margin-top: 2px; font-size: 11px; text-align: right; opacity: 0.85; }
.ai-typing { color: #8E8E93; }
.ai-typing p { display: inline-flex; gap: 5px; align-items: center; min-height: 22px; }
.ai-typing span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.35; animation: ai-blink 1.1s ease-in-out infinite; }
.ai-typing span:nth-child(2) { animation-delay: 0.18s; }
.ai-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes ai-blink { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.ai-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; padding: 4px 14px 10px; }
.ai-chips[hidden] { display: none; }
.ai-chip { min-height: 36px; padding: 7px 14px; font: inherit; font-size: 14px; line-height: 1.3; color: var(--blue); background: transparent; border: 1px solid rgba(0, 113, 227, 0.4); border-radius: 999px; cursor: pointer; text-align: left; transition: background-color 200ms ease; }
.ai-chip:hover { background: rgba(0, 113, 227, 0.08); }
.ai-cta { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 10px 16px; font-size: 15px; font-weight: 500; color: var(--white); background: var(--blue); border-radius: 999px; }
.ai-cta:hover { background: var(--blue-hover); text-decoration: none; }

.ai-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 6px; border-top: 1px solid rgba(0, 0, 0, 0.06); }
.ai-form textarea {
  flex: 1; min-height: 38px; max-height: 120px; padding: 8px 16px;
  font: inherit; font-size: 16px; line-height: 1.4; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  resize: none; overflow-y: hidden; scrollbar-width: none;
}
.ai-form textarea::-webkit-scrollbar { display: none; }
.ai-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15); }
.ai-send { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; color: var(--white); background: var(--blue); border: 0; border-radius: 50%; cursor: pointer; transition: background-color 200ms ease, transform 200ms ease; }
.ai-send:hover { background: var(--blue-hover); }
.ai-send:active { transform: scale(0.94); }
.ai-send:disabled { background: #C7C7CC; cursor: progress; }
.ai-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ai-fine { padding: 2px 16px 12px; font-size: 11px; line-height: 1.5; color: #8E8E93; text-align: center; }

@media (max-width: 640px) {
  .ai-launcher { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); min-height: 46px; padding: 8px 16px 8px 12px; }
  body:has(.dock:not([hidden])) .ai-launcher { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .ai-panel { inset: 0; width: 100%; height: 100dvh; border: 0; border-radius: 0; padding-bottom: env(safe-area-inset-bottom); }
  html.ai-open, html.ai-open body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-launcher, .ai-panel, .ai-msg, .ai-typing span { animation: none; transition: none; }
}


/* ---- 產品示意畫面（HTML 繪製，跟著真實系統的介面語言） ---- */
.mk { font-family: var(--sans); color: var(--ink); text-align: left; line-height: 1.4; }
.hero-shot.mk { font-size: clamp(9px, 1.2cqw, 14.5px); }
.mk b { font-weight: 700; }
.mk small { display: block; color: var(--muted); font-size: 0.82em; font-weight: 500; }
.mk-chip { display: inline-flex; align-items: center; padding: 0.2em 0.7em; font-size: 0.8em; font-weight: 700; color: var(--muted); background: #EEF0F4; border-radius: 999px; white-space: nowrap; }
.mk-chip-ok { color: #11804A; background: #E3F6EC; }
.mk-chip-warn { color: #9A5B00; background: #FFF1D6; }
.mk-chip-due { color: var(--due); background: #FDECEA; }
.mk-kv { display: flex; justify-content: space-between; gap: 1em; padding: 0.45em 0; font-variant-numeric: tabular-nums; }
.mk-kv span { color: var(--muted); }
.mk-kv b { font-family: var(--latin); font-weight: 600; }

/* 視窗 */
.mk-win { background: var(--white); border-radius: 1.1em; box-shadow: 0 2.4em 5em -2em rgba(20, 35, 80, 0.28), 0 0 0 1px rgba(20, 35, 80, 0.06); overflow: hidden; }
.mk-bar { display: flex; align-items: center; gap: 0.45em; padding: 0.75em 1em; background: #F4F5F8; border-bottom: 1px solid #E8EAF0; }
.mk-bar i { width: 0.75em; height: 0.75em; border-radius: 50%; background: #FF5F57; }
.mk-bar i:nth-child(2) { background: #FEBC2E; }
.mk-bar i:nth-child(3) { background: #28C840; }
.mk-bar span { margin-inline: auto; padding: 0.2em 3em; font-family: var(--latin); font-size: 0.78em; color: var(--muted); background: var(--white); border-radius: 0.6em; }
.mk-app { display: grid; grid-template-columns: 13em 1fr; min-height: 30em; }
.mk-side { display: flex; flex-direction: column; gap: 0.15em; padding: 1.2em 0.9em; background: #FAFBFC; border-right: 1px solid #EEF0F4; }
.mk-shop { display: flex; align-items: center; gap: 0.5em; margin-bottom: 1em; font-size: 0.95em; }
.mk-side span { display: flex; justify-content: space-between; padding: 0.5em 0.8em; font-size: 0.92em; color: #4A5163; border-radius: 0.6em; }
.mk-side span.is-on { color: var(--blue); background: #E8F1FD; font-weight: 700; }
.mk-side em { font-style: normal; font-size: 0.8em; color: var(--muted); }
.mk-main { padding: 1.4em 1.6em; }
.mk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1em; }
.mk-head h4 { margin: 0.1em 0 0; font-size: 1.55em; letter-spacing: -0.01em; }
.mk-tabs { display: flex; gap: 1.8em; margin: 1.1em 0 1.2em; border-bottom: 1px solid #EEF0F4; }
.mk-tabs span { padding-bottom: 0.6em; font-size: 0.92em; color: var(--muted); }
.mk-tabs span.is-on { color: var(--blue); font-weight: 700; box-shadow: inset 0 -2px 0 var(--blue); }
.mk-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.1em; }
.mk-card { padding: 1em 1.1em; background: var(--white); border: 1px solid #EEF0F4; border-radius: 0.9em; box-shadow: 0 0.4em 1.2em -0.6em rgba(20, 35, 80, 0.12); }
.mk-card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4em; font-weight: 700; }
.mk-row { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: 0.7em 0; border-bottom: 1px solid #F1F2F5; }
.mk-row b { display: block; }
.mk-sum { display: flex; justify-content: space-between; align-items: baseline; padding-top: 0.8em; color: var(--muted); font-size: 0.92em; }
.mk-sum b { font-family: var(--latin); font-size: 1.3em; color: var(--ink); }
.mk-money .mk-kv-big b { font-size: 1.7em; color: var(--blue); }
.mk-progress { height: 0.5em; margin: 0.5em 0; background: #EEF0F4; border-radius: 999px; overflow: hidden; }
.mk-progress i { display: block; width: 49%; height: 100%; background: var(--blue); border-radius: inherit; }
.mk-due b { color: var(--due); }

/* 浮動卡片 */
.float { display: flex; align-items: center; gap: 0.8em; padding: 0.9em 1.2em; font-size: clamp(10px, 1.25cqw, 15px); line-height: 1.35; text-align: left; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 1.1em; box-shadow: 0 1.6em 3.2em -1em rgba(20, 35, 80, 0.32); }
.float b { display: block; }
.float small { display: block; color: var(--muted); font-size: 0.82em; }
.float-ic { display: inline-grid; place-items: center; flex: none; width: 2.3em; height: 2.3em; border-radius: 0.7em; color: var(--white); background: var(--blue); font-weight: 700; }
.float-ic-line { background: #06C755; font-family: var(--latin); }
.float-b { flex-direction: column; align-items: stretch; gap: 0.3em; min-width: 15em; }
.float-b > b { font-family: var(--latin); font-size: 2em; line-height: 1.1; }
.float-line { display: flex; align-items: center; gap: 0.5em; font-size: 0.88em; color: #4A5163; }
.float-line i { width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--blue); }

/* 流程舞台：每一步一個畫面 */
.stage-frame { container-type: inline-size; background: radial-gradient(110% 90% at 0% 0%, #E4ECFF 0%, transparent 60%), radial-gradient(90% 80% at 100% 100%, #DDF3EC 0%, transparent 60%), #EEF1F8; }
.mk-stage { display: flex; align-items: center; justify-content: center; font-size: clamp(10px, 2cqw, 15px); }
.mk-stage .float { position: absolute; font-size: clamp(10px, 1.9cqw, 14px); }

/* 丈量：手機 */
.mk-phone { width: 19em; padding: 1.2em 1.1em 1em; background: var(--white); border-radius: 2.2em; box-shadow: 0 2em 4em -1.5em rgba(20, 35, 80, 0.35), 0 0 0 0.45em #1D1D1F; }
.mk-phone-h b { display: block; font-size: 1.4em; }
.mk-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.25em; margin: 0.9em 0; padding: 0.25em; background: #F1F2F5; border-radius: 0.7em; }
.mk-seg span { padding: 0.35em 0; text-align: center; font-size: 0.85em; color: var(--muted); border-radius: 0.5em; }
.mk-seg span.is-on { color: var(--blue); background: var(--white); font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.mk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5em; }
.mk-fields label { display: flex; flex-direction: column; gap: 0.2em; padding: 0.5em 0.7em; font-size: 0.78em; color: var(--muted); border: 1px solid #E5E7EC; border-radius: 0.6em; }
.mk-fields label b { font-size: 1.3em; color: var(--ink); font-family: var(--latin); }
.mk-fields .mk-wide { grid-column: span 2; }
.mk-fields .mk-wide b { font-family: var(--sans); font-size: 1.15em; }
.mk-auto { margin-top: 0.8em; padding: 0.7em 0.9em; background: #EEF5FF; border-radius: 0.8em; }
.mk-auto small { color: var(--blue); font-weight: 700; }
.mk-auto .mk-kv { padding: 0.3em 0; font-size: 0.92em; }
.mk-saved { display: flex; align-items: center; justify-content: center; gap: 0.4em; margin-top: 0.8em; font-size: 0.8em; color: #11804A; }
.mk-saved i { width: 0.5em; height: 0.5em; border-radius: 50%; background: #28C840; }
.float-c { right: 6%; top: 14%; }

/* 報價單 */
.mk-doc { width: 25em; padding: 1.4em 1.5em; background: var(--white); border-radius: 0.6em; box-shadow: 0 2em 4em -1.5em rgba(20, 35, 80, 0.35); }
.mk-doc-h { display: flex; align-items: center; gap: 0.7em; padding-bottom: 0.9em; margin-bottom: 0.6em; border-bottom: 2px solid var(--navy); }
.mk-doc-h b { font-size: 1.25em; }
.mk-doc-h em { margin-left: auto; font-style: normal; font-size: 0.82em; color: var(--muted); }
.mk-block { margin-bottom: 0.5em; padding: 0.5em 0.8em; background: #F7F8FA; border-radius: 0.5em; }
.mk-block-h { font-weight: 700; font-size: 0.92em; }
.mk-block .mk-kv { padding: 0.25em 0; font-size: 0.9em; }
.mk-gift s { color: var(--muted); font-weight: 400; margin-right: 0.3em; }
.mk-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.4em; padding-top: 0.7em; border-top: 1px solid #E5E7EC; font-weight: 700; }
.mk-total b { font-family: var(--latin); font-size: 1.5em; }
.float-d { left: 4%; bottom: 10%; flex-direction: column; align-items: stretch; gap: 0.35em; }
.mk-opt { padding: 0.35em 0.8em; font-size: 0.9em; border-radius: 0.5em; color: #4A5163; }
.mk-opt::before { content: "○"; margin-right: 0.5em; color: var(--muted); }
.mk-opt.is-on { color: var(--blue); background: #E8F1FD; font-weight: 700; }
.mk-opt.is-on::before { content: "●"; color: var(--blue); }

/* 施工：行事曆 */
.mk-cal { width: 92%; padding: 1.2em; background: var(--white); border-radius: 1em; box-shadow: 0 2em 4em -1.5em rgba(20, 35, 80, 0.3); }
.mk-cal-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.8em; }
.mk-cal-h b { font-size: 1.2em; }
.mk-cal-h span { font-family: var(--latin); color: var(--muted); font-size: 0.9em; }
.mk-cal-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.4em; }
.mk-day { min-height: 9em; padding: 0.5em; background: #F7F8FA; border-radius: 0.6em; display: flex; flex-direction: column; gap: 0.4em; }
.mk-day small { font-family: var(--latin); }
.ev { display: block; padding: 0.5em 0.6em; font-size: 0.9em; line-height: 1.35; border-radius: 0.45em; border-left: 3px solid; }
.ev em { display: block; margin-top: 0.2em; font-style: normal; font-weight: 700; }
.ev-m { color: #5B4300; background: #FFF4D6; border-color: #F2B705; }
.ev-i { color: #0B4FA3; background: #E8F1FD; border-color: var(--blue); }
.ev-i.is-hot { box-shadow: 0 0 0 2px var(--blue); }
.float-e { right: 5%; bottom: 8%; flex-direction: column; align-items: flex-start; gap: 0.5em; }
.mk-photos { display: flex; gap: 0.35em; }
.mk-photos i { width: 3.6em; height: 2.7em; border-radius: 0.4em; background: linear-gradient(160deg, #D9CDBB, #A89379); }
.mk-photos i:nth-child(2) { background: linear-gradient(160deg, #C9D3DE, #8D9BAD); }
.mk-photos i:nth-child(3) { background: linear-gradient(160deg, #E2DACB, #B9AA92); }

/* 收款：應收帳款 */
.mk-ar { width: 88%; padding: 1.2em 1.3em; background: var(--white); border-radius: 1em; box-shadow: 0 2em 4em -1.5em rgba(20, 35, 80, 0.3); }
.mk-ar-h { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 0.8em; border-bottom: 1px solid #EEF0F4; }
.mk-ar-h b { font-family: var(--latin); font-size: 1.35em; }
.mk-ar-row { display: grid; grid-template-columns: 1.6fr 1fr auto; align-items: center; gap: 1em; padding: 0.9em 0; border-bottom: 1px solid #F1F2F5; }
.mk-ar-row b { display: block; }
.mk-bar-wrap { height: 0.5em; background: #EEF0F4; border-radius: 999px; overflow: hidden; }
.mk-bar-wrap i { display: block; height: 100%; border-radius: inherit; background: var(--blue); width: 0; transform-origin: left center; }
.mk-bar-wrap i.w49 { width: 49%; background: #F2B705; }
.mk-bar-wrap i.w100 { width: 100%; background: #28C840; }
.float-f { left: 5%; bottom: 9%; flex-direction: column; align-items: flex-start; gap: 0.1em; }
.float-f b { font-family: var(--latin); font-size: 1.9em; color: var(--due); line-height: 1.1; }
.float-f span { font-size: 0.85em; color: var(--muted); }

/* 手機版：示意畫面放進每一步，簡化成單欄 */
.step-mock { margin-top: 24px; border-radius: var(--r-md); overflow: hidden; background: radial-gradient(110% 90% at 0% 0%, #E4ECFF 0%, transparent 60%), radial-gradient(90% 80% at 100% 100%, #DDF3EC 0%, transparent 60%), #EEF1F8; }
.step-mock .stage-item { position: relative; inset: auto; opacity: 1; transform: none; padding: 28px 16px; font-size: 12px; }
.step-mock .float { position: relative; inset: auto; margin-top: 14px; opacity: 1; transform: none; font-size: 12px; }
.step-mock .mk-stage { flex-direction: column; align-items: stretch; }
.step-mock .mk-phone { width: auto; margin: 0 6px; }
.step-mock .mk-doc, .step-mock .mk-cal, .step-mock .mk-ar { width: 100%; }
.step-mock .mk-cal-grid { grid-template-columns: repeat(3, 1fr); }
.step-mock .mk-day:nth-child(n+4) { display: none; }
.step-mock .stage-line { padding: 16px 0; }
.step-mock .line-phone { width: min(360px, 88%); height: auto; }

@media (max-width: 960px) {
  .mk-app { grid-template-columns: 1fr; min-height: 0; }
  .mk-side { display: none; }
}
@media (max-width: 640px) {
  .hero-shot { padding: 18px 14px 0; }
  .hero-shot.mk { font-size: 10.5px; }
  .mk-cols { grid-template-columns: 1fr; }
  .mk-money { display: none; }
  .mk-tabs { gap: 1.2em; }
  .float-a { right: 6px; top: -14px; font-size: 11px; }
  .float-b { display: none; }
}

/* 報價：三種版型切換（預覽圖由系統的報價單產生器輸出） */
.qd-demo { display: grid; grid-template-columns: 11em 1fr; gap: 1em; width: 95%; height: 90%; padding: 1em; background: var(--white); border-radius: 1em; box-shadow: 0 2em 4em -1.5em rgba(20, 35, 80, 0.3); }
.qd-pick { display: flex; flex-direction: column; gap: 0.45em; padding: 0.9em; background: #F7F8FA; border-radius: 0.8em; }
.qd-pick > b { font-size: 1.05em; }
.qd-pick > small { margin-bottom: 0.4em; }
.qd-opt { display: block; padding: 0.65em 0.8em; background: var(--white); border: 1.5px solid #E5E7EC; border-radius: 0.7em; cursor: pointer; transition: border-color 300ms ease, background-color 300ms ease; }
.qd-opt b { display: block; font-size: 0.95em; }
.qd-opt small { font-size: 0.78em; }
.qd-opt.is-on { border-color: var(--blue); background: #F2F7FF; }
.qd-opt.is-on b { color: var(--blue); }
.qd-dl { margin-top: auto; padding: 0.55em; text-align: center; font-size: 0.85em; font-weight: 700; color: var(--white); background: var(--blue); border-radius: 999px; }
.qd-paper { position: relative; overflow: hidden; border-radius: 0.5em; background: #F1EFEA; box-shadow: inset 0 0 0 1px #ECE8E0; }
.qd-paper img { position: absolute; left: 4%; top: 3%; width: 92%; height: auto; border-radius: 0.3em; box-shadow: 0 1em 2em -0.8em rgba(60, 40, 20, 0.35); opacity: 0; }
.qd-paper img.is-on { opacity: 1; }
.step-mock .qd-demo { width: 100%; height: auto; grid-template-columns: 1fr; }
.step-mock .qd-pick { flex-direction: row; flex-wrap: wrap; }
.step-mock .qd-pick > b, .step-mock .qd-pick > small, .step-mock .qd-dl { display: none; }
.step-mock .qd-opt { flex: 1 1 30%; text-align: center; padding: 0.55em 0.3em; }
.step-mock .qd-opt small { display: none; }
.step-mock .qd-paper { height: 320px; }
@media (prefers-reduced-motion: reduce) { .qd-opt { transition: none; } }

/* 系統真實截圖 */
.mk-real { display: block; width: 100%; height: auto; }
.real-shot { margin: 56px auto 0; max-width: 1080px; }
.real-shot .mk-win { font-size: 14px; }
.real-shot figcaption { margin-top: 16px; text-align: center; font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .real-shot .mk-win { font-size: 10px; } .real-shot { margin-top: 36px; } }

.real-phone { width: 15.5em; border-radius: 2.2em; overflow: hidden; background: #F4F6FB; box-shadow: 0 2em 4em -1.5em rgba(20, 35, 80, 0.35), 0 0 0 0.45em #1D1D1F; aspect-ratio: 780 / 1300; }
.real-phone img { width: 100%; height: auto; display: block; }
.step-mock .real-phone { width: min(280px, 82%); margin: 0 auto; font-size: 12px; }
@media (max-width: 640px) {
  .hero-shot .mk-real { max-height: 520px; object-fit: cover; object-position: top; }
}

/* AI 專員：重新開始、串流游標、招呼泡泡 */
.ai-reset { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--muted); background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.ai-reset:hover { background: rgba(0, 0, 0, 0.05); color: var(--ink); }
.ai-reset svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ai-streaming p { white-space: pre-wrap; }
.ai-streaming p::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--blue); animation: ai-caret 0.9s steps(2) infinite; }
@keyframes ai-caret { 50% { opacity: 0; } }

.ai-teaser {
  position: fixed; right: 22px; bottom: 84px; z-index: 59;
  display: flex; align-items: flex-start; gap: 2px;
  max-width: min(280px, calc(100vw - 44px));
  padding: 4px 4px 4px 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 18px 18px 6px 18px;
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.28);
  animation: ai-in 420ms var(--ease);
}
.ai-teaser[hidden] { display: none; }
.ai-teaser-open { display: flex; flex-direction: column; gap: 2px; padding: 10px 6px 10px 16px; font: inherit; text-align: left; color: var(--ink); background: transparent; border: 0; cursor: pointer; }
.ai-teaser-open b { font-size: 15px; }
.ai-teaser-open span { font-size: 13px; color: var(--blue); }
.ai-teaser-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--muted); background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.ai-teaser-x:hover { background: rgba(0, 0, 0, 0.05); }
.ai-teaser-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
html.ai-open .ai-teaser { display: none; }
@media (max-width: 640px) {
  .ai-teaser { right: 14px; bottom: calc(70px + env(safe-area-inset-bottom)); }
  body:has(.dock:not([hidden])) .ai-teaser { bottom: calc(144px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .ai-streaming p::after { animation: none; }
  .ai-teaser { animation: none; }
}
