/* 對外頁（首頁、關鍵字落地頁）：motion1 版。
   黑白為主（約九成），橘色只留給主按鈕、首屏與重播段裡「裝了之後」那條儀表和停下的次數（清單見 .runs/motion1/research.md）。
   不用分隔線：段落靠留白、背景明暗漸層、陰影深度區隔。
   動畫只動 transform／opacity：支援 CSS scroll-driven animations 的瀏覽器走原生（不佔主執行緒），不支援的由 /motion.js 退路；
   使用者設定「減少動態效果」時全部關掉，版面維持最終狀態 */
body.site {
  --bg: #0a0a0a; --bg-2: #121212; --panel: #161616; --sunken: #1d1d1d; --text: #f5f5f5; --muted: #a3a3a3;
  --line: #262626; --line-strong: #3d3d3d; --accent: #f5f5f5; --code-bg: #1d1d1d; --inv-bg: #f5f5f5; --inv-text: #0a0a0a;
  --hot: #ff5b1f; --shadow: 0 1px 0 rgb(255 255 255 / .04) inset, 0 24px 60px -24px rgb(0 0 0 / .8);
  --r-lg: 22px; --r-md: 14px;
  background: var(--bg); font-size: var(--fs-lg);
}
:root[data-theme="light"] body.site {
  --bg: #fafafa; --bg-2: #f0f0f0; --panel: #ffffff; --sunken: #f2f2f2; --text: #0a0a0a; --muted: #525252;
  --line: #e5e5e5; --line-strong: #d4d4d4; --accent: #0a0a0a; --code-bg: #f0f0f0; --inv-bg: #0a0a0a; --inv-text: #fafafa;
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 24px 60px -28px rgb(0 0 0 / .22);
}
.site .wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.site-main { max-width: none; margin: 0; padding: 0; overflow-x: clip; }

/* 頁首：半透明、沒有底線；捲動時靠底下內容的明暗跟它分開 */
.site .top { padding: 0; border-bottom: 0; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.site .top .brand { padding: 0 var(--s5) 0 40px; margin-right: 0; }
.site .top nav.modules { margin-right: auto; }
.site .top nav a, .site #theme { border-left: 0; }
.site .top nav a { border-radius: 999px; height: 36px; align-self: center; padding: 0 14px; }
.site .top nav a[aria-current="page"] { box-shadow: none; background: var(--sunken); }
.site .top nav .n { color: var(--muted); }
.site .top nav.tr { gap: 4px; padding-right: 12px; }
.site .top nav.tr a.pill { background: var(--hot); color: #140703; font-weight: 600; }
.site .top nav.tr a.pill:hover { background: color-mix(in srgb, var(--hot) 88%, #fff); color: #140703; }

/* 段落：一律同一個底色；.alt 只是稍亮一階，上下用漸層淡進淡出，看不到硬邊 */
.band { padding: 72px 0 120px; background: var(--bg); color: var(--text); }
.band.alt { background: linear-gradient(180deg, var(--bg) 0, var(--bg-2) 22%, var(--bg-2) 78%, var(--bg) 100%); }
.band.plain { padding: var(--s6) 0 96px; }

.kicker { display: flex; justify-content: space-between; gap: var(--s4); margin: 0 0 28px; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; color: var(--muted); }
.site-main section p.kicker { max-width: none; font-size: 12px; line-height: 1.4; color: var(--muted); }
.kicker b { color: var(--text); font-weight: 500; }

/* 首屏：左文案、右儀表；背後一圈很淡的光暈代替分隔線 */
.site-hero { position: relative; background: radial-gradient(60% 70% at 78% 40%, color-mix(in srgb, var(--text) 7%, transparent), transparent 70%), var(--bg); }
.site-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); }
.site-hero.home .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); min-height: 640px; align-items: center; }
.hero-l { padding: 88px 0 72px; }
.site-hero.home .hero-l { padding-right: 56px; }
.hero-r { display: flex; flex-direction: column; justify-content: center; padding: 64px 0 64px 24px; perspective: 1400px; }
.tag { display: flex; gap: 10px; margin: 0 0 32px; font: 500 12px/1.4 var(--mono); letter-spacing: .04em; color: var(--muted); }
.tag b { color: var(--hot); font-weight: 500; }
.site-hero .tag { background: none; padding: 0; border-radius: 0; }
.site-hero h1 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.1; font-weight: 700; letter-spacing: -0.035em; margin: 0 0 28px; max-width: 16em; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
.site-hero:not(.home) h1 { font-size: clamp(30px, 3.6vw, 48px); }
.lead { font-size: 18px; font-weight: 400; line-height: 1.7; color: var(--muted); max-width: 34em; margin: 0 0 36px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.site .cta .btn { min-height: 52px; padding: 0 26px; font-size: 15px; border-radius: 999px; }
.site .cta .btn:not(.secondary) { background: var(--hot); border-color: var(--hot); color: #140703; }
.site .cta .btn.secondary { background: var(--panel); border-color: transparent; color: var(--text); box-shadow: var(--shadow); }
.site-main .cta-note { font-size: var(--fs-sm); color: var(--muted); margin: var(--s3) 0 0; }

/* 一行安裝：浮起來的面板，兩列之間用間距不用線 */
.install { max-width: 760px; display: grid; gap: 4px; padding: 4px; background: var(--sunken); border-radius: var(--r-md); margin: 0 0 var(--s3); }
.install-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 12px; padding: 10px 6px 10px 14px; background: var(--panel); border-radius: 10px; }
.install-os { grid-column: 1; font: 500 11px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.site-main .install code { grid-column: 1; grid-row: 2; background: none; padding: 0; font-family: var(--mono); font-size: 13px; color: var(--text); white-space: nowrap; overflow-x: auto; scrollbar-width: thin; }
.site .install .copy { grid-column: 2; grid-row: 1 / 3; align-self: center; min-height: 34px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--sunken); color: var(--text); font: 500 12px var(--mono); }
.site .install .copy:hover { background: var(--inv-bg); color: var(--inv-text); }
.site-main .install-note { font-size: var(--fs-sm); color: var(--muted); margin: 0 0 32px; max-width: 46em; }

/* 首屏儀表：每格 2 次呼叫。圓角面板＋陰影 */
.gauge { margin: 0; background: var(--panel); border-radius: var(--r-lg); box-shadow: var(--shadow); transform-origin: 50% 0; }
.gauge-head { display: flex; justify-content: space-between; gap: var(--s3); padding: 16px 20px 4px; font: 500 11px/1.5 var(--mono); letter-spacing: .05em; color: var(--muted); }
.gauge-head b { color: var(--accent); font-weight: 500; white-space: nowrap; }
.lanes { padding: 18px 20px 4px; }
.lane { margin-bottom: 18px; }
.lane-t { display: flex; justify-content: space-between; gap: var(--s3); margin-bottom: 8px; font: 12px/1.5 var(--mono); color: var(--text); }
.lane-t span:last-child { color: var(--muted); text-align: right; }
.cells { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; }
.cells i { height: 16px; border-radius: 3px; background: var(--line-strong); }
.cells.before i { background: color-mix(in srgb, var(--text) 32%, var(--panel)); }
.cells.after i { background: var(--sunken); }
.cells.after i.on { background: var(--hot); }
.gauge-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 8px 20px 18px; font: 11px/1.5 var(--mono); color: var(--muted); }
.gauge-legend i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; }
.lg-loop { background: color-mix(in srgb, var(--text) 32%, var(--panel)); }
.lg-on { background: var(--hot); }
.lg-x { background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line-strong); }
.gauge-note { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 14px 0 0; }

/* 重播段（只有首頁）：沒動畫時是普通的一段（步驟全列出、儀表停在最終狀態） */
.scrub { background: var(--bg); }
.scrub-pin { padding: 96px 0; }
.scrub-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.site-main .scrub .scrub-k { margin: 0 0 20px; max-width: none; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; color: var(--muted); }
.site-main .scrub h2 { font-size: clamp(26px, 3.2vw, 44px); line-height: 1.12; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 32px; max-width: 14em; text-wrap: balance; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.site-main .steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 8px; padding: 0; margin: 0; font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 32em; }
.steps .sn { grid-row: 1 / 3; font: 500 12px/2.3 var(--mono); color: var(--muted); }
.steps b { color: var(--text); font-size: 20px; letter-spacing: -0.01em; }
.scrub-r { position: relative; padding: 32px; background: var(--panel); border-radius: var(--r-lg); box-shadow: var(--shadow); display: grid; gap: 36px; }
.sl { position: relative; }
.sl-t { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; font: 12px/1.5 var(--mono); color: var(--muted); }
.sl-t .cnt { display: inline-block; min-width: 2ch; text-align: right; font: 700 44px/1 var(--sans); letter-spacing: -0.04em; color: var(--text); font-variant-numeric: tabular-nums; }
.sl.after .cnt { color: var(--hot); }
.sbar { position: relative; height: 22px; border-radius: 6px; overflow: hidden; background: var(--sunken); }
/* 30 格：底色條上蓋一層「格線」遮罩，填色條只做 scaleX */
.sbar::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 30 - 3px), var(--panel) calc(100% / 30 - 3px) calc(100% / 30)); }
.fill { position: absolute; inset: 0; transform-origin: 0 50%; background: color-mix(in srgb, var(--text) 40%, var(--panel)); }
.sl.after .fill { background: var(--hot); transform: scaleX(.1); }
.stamp { position: absolute; right: 0; bottom: -30px; font: 600 11px/1 var(--mono); letter-spacing: .12em; color: var(--text); padding: 6px 10px; border-radius: 999px; background: var(--sunken); }

/* 段落內文 */
.site-main section h2 { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.12; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 28px; max-width: 18em; text-wrap: balance; }
.site-main section p, .site-main section li, .site-main section dd { font-size: 16px; line-height: 1.75; max-width: 52em; }
.site-main section > .wrap > p:not(.kicker) { color: var(--muted); }
.site-main code { background: var(--code-bg); border-radius: 6px; padding: 1px 6px; font-size: .88em; overflow-wrap: anywhere; }
.site-main a:not(.btn) { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.site-main a:not(.btn):hover { text-decoration-color: currentColor; }
.site-main strong { font-weight: 650; color: var(--text); }

/* 清單：每列一張淡淡的卡片，用間距分開，左邊等寬編號 */
.site-main section ul:not(.feature-list ul) { list-style: none; padding: 0; margin: 0 0 var(--s5); counter-reset: li; max-width: none; display: grid; gap: 10px; }
.site-main section ul > li { counter-increment: li; position: relative; padding: 20px 24px 20px 76px; margin: 0; background: var(--panel); border-radius: var(--r-md); max-width: none; }
.site-main section ul > li::before { content: counter(li, decimal-leading-zero); position: absolute; left: 24px; top: 20px; font: 500 12px/2.2 var(--mono); color: var(--muted); }
.related ul > li, .site-main section .related ul > li { display: block; padding: 0; background: none; }
.related ul > li::before { content: none !important; }

/* 方案、裝好之後：並排卡片，第一張（免費）稍微浮高 */
.site-main .k-plans ul, .site-main .k-dashboard ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.site-main .k-dashboard ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.site-main .k-plans ul > li, .site-main .k-dashboard ul > li { padding: 56px 26px 30px; color: var(--muted); border-radius: var(--r-lg); }
.site-main .k-plans ul > li::before, .site-main .k-dashboard ul > li::before { left: 26px; top: 22px; }
.site-main .k-plans ul > li strong, .site-main .k-dashboard ul > li strong { display: block; margin-bottom: 10px; font-size: 19px; line-height: 1.4; letter-spacing: -0.01em; }
.site-main .k-plans .colon, .site-main .k-dashboard .colon { display: none; }
.site-main .k-dashboard ul > li a { display: inline-block; margin-top: 12px; font: 500 13px/1.5 var(--mono); }
.site-main .k-plans ul > li:first-child { background: var(--inv-bg); color: color-mix(in srgb, var(--inv-text) 72%, var(--inv-bg)); box-shadow: var(--shadow); }
.site-main .k-plans ul > li:first-child strong, .site-main .k-plans ul > li:first-child a:not(.btn) { color: var(--inv-text); }
.site-main .k-plans ul > li:first-child::before { color: color-mix(in srgb, var(--inv-text) 60%, var(--inv-bg)); }

/* 實測：表格排成四張大數字卡（螢幕閱讀器仍讀表格） */
.site-main table.proof { display: block; width: 100%; margin: var(--s5) 0 var(--s3); border: 0; }
table.proof thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
table.proof tbody { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
table.proof tr { display: flex; flex-direction: column; padding: 28px 24px; background: var(--panel); border-radius: var(--r-lg); }
table.proof tbody tr:hover td { background: none; }
table.proof th, table.proof td { display: block; padding: 0; border: 0; white-space: normal; text-align: left; }
table.proof th[scope="row"] { font: 500 12px/1.5 var(--mono); letter-spacing: 0; text-transform: none; color: var(--muted); min-height: 36px; }
table.proof td.big { margin: 20px 0 0; }
table.proof .n { display: inline-block; font: 700 64px/1 var(--sans); letter-spacing: -0.04em; color: var(--text); font-variant-numeric: tabular-nums; }
table.proof .u { margin-left: 4px; font: 600 18px/1 var(--sans); color: var(--muted); vertical-align: top; position: relative; top: 8px; }
table.proof .y { display: block; margin-top: 8px; font-size: 15px; font-weight: 650; color: var(--text); }
table.proof td.x { margin-top: 18px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* 比較表：沒有格線；Budgethelm 那欄反白成一條圓角柱 */
.site-main table.vs { width: 100%; border-collapse: separate; border-spacing: 0; margin: var(--s5) 0 var(--s3); font-size: 15.5px; }
.site-main table.vs th, .site-main table.vs td { padding: 18px 20px; border: 0; text-align: left; vertical-align: top; white-space: normal; color: var(--text); font-size: inherit; }
.site-main table.vs tbody tr:nth-child(odd) > :not(:last-child) { background: color-mix(in srgb, var(--text) 4%, transparent); }
.site-main table.vs thead th { font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.site-main table.vs thead th:last-child, .site-main table.vs td:last-child { background: var(--inv-bg); color: var(--inv-text); font-weight: 600; }
.site-main table.vs thead th:last-child { border-radius: var(--r-md) var(--r-md) 0 0; }
.site-main table.vs tbody tr:last-child td:last-child { border-radius: 0 0 var(--r-md) var(--r-md); }
.site-main table.vs tbody th { font: 600 15.5px/1.5 var(--sans); text-transform: none; letter-spacing: 0; width: 24%; }
.site-main table.vs tbody tr:hover td { background: inherit; }
.site-main table.vs tbody tr:hover td:last-child { background: var(--inv-bg); }
.table-scroll { overflow-x: auto; margin: var(--s5) 0 var(--s3); }
.site-main table.prices { width: 100%; border-collapse: collapse; font-size: 15px; }
.site-main table.prices caption { text-align: left; padding-bottom: 10px; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; color: var(--muted); }
.site-main table.prices th, .site-main table.prices td { padding: 12px 14px; border: 0; text-align: left; vertical-align: top; white-space: nowrap; color: var(--text); font-size: inherit; }
.site-main table.prices thead th { font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.site-main table.prices .num { text-align: right; font-variant-numeric: tabular-nums; }
.site-main table.prices tbody tr:nth-child(odd) > * { background: color-mix(in srgb, var(--text) 4%, transparent); }
.site-main table.prices tbody th { font-weight: 600; }
.as-of { margin: -4px 0 var(--s3); }
.site-main .muted.small, .site-main p.small { font-size: 13px; color: var(--muted); }

/* 落地頁的功能清單 */
.feature-list { display: grid; gap: 10px; }
.feature-list > section { margin: 0; padding: 22px 24px; background: var(--panel); border-radius: var(--r-md); }
.feature-list h3 { font-size: var(--fs-xl); letter-spacing: -0.01em; margin: 0 0 var(--s2); }
.feature-list p { margin-bottom: var(--s1); }

/* 一行接上 Claude Code */
.one-line pre { margin: 0 0 var(--s3); padding: 16px 18px; background: var(--panel); border: 0; border-radius: var(--r-md); white-space: pre-wrap; word-break: break-all; font-size: 14px; }
.one-line pre code { background: none; padding: 0; font-size: inherit; color: var(--text); }

/* 常見問題：編號＋問答，沿用 dl（JSON-LD 對照畫面）；用間距分組 */
.faq { counter-reset: q; margin: 0; }
.faq dt { counter-increment: q; display: grid; grid-template-columns: 56px minmax(0, 1fr); padding: 26px 0 0; font-weight: 650; font-size: 18px; line-height: 1.5; }
.faq dt::before { content: counter(q, decimal-leading-zero); font: 500 12px/2.3 var(--mono); color: var(--muted); }
.site-main .faq dd { margin: 8px 0 0; padding: 0 0 10px 56px; color: var(--muted); max-width: none; }

/* 其他功能：一排圓角膠囊 */
.rel-band { padding: 0 0 96px; }
.related { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.related h2 { font: 500 12px/1.4 var(--mono) !important; letter-spacing: .06em; color: var(--muted); margin: 0 12px 0 0 !important; }
.related ul { display: flex !important; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 !important; }
.site-main .related li a { display: block; padding: 12px 18px; border-radius: 999px; background: var(--panel); color: var(--text); text-decoration: none; font-size: 15px; }
.site-main .related li a:hover { background: var(--inv-bg); color: var(--inv-text); }

/* 結尾（只有首頁）：反白大卡（深色模式是白底黑字），只有按鈕是橘的 */
.close-band { padding: 24px 24px 96px; background: var(--bg); }
/* 卡片裡換成相反的一組 token（深色模式＝白卡黑字），裡面的安裝框、複製鈕自動跟著換 */
.close-band > .wrap { --bg: #f5f5f5; --panel: #ffffff; --sunken: #e8e8e8; --text: #0a0a0a; --muted: #525252; --accent: #0a0a0a; --inv-bg: #0a0a0a; --inv-text: #f5f5f5;
  padding: 112px 64px; background: var(--bg); color: var(--text); border-radius: 32px; box-shadow: var(--shadow); }
:root[data-theme="light"] .close-band > .wrap { --bg: #0a0a0a; --panel: #161616; --sunken: #262626; --text: #f5f5f5; --muted: #a3a3a3; --accent: #f5f5f5; --inv-bg: #f5f5f5; --inv-text: #0a0a0a; }
.close-h { font-size: clamp(32px, 4.8vw, 62px); line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; margin: 0 0 32px; max-width: 14em; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
.close-band .cta { margin-top: var(--s5); }

/* 頁尾：沒有上邊線，用一段漸層從內容淡出 */
/* 頁尾不包 .wrap（HTML 維持 main 原樣，避免和其他 PR 改頁尾連結時衝突），用 padding 對齊 .wrap 的 1200px 欄寬 */
.site .site-foot { --gut: 40px; max-width: none; margin: 0; padding: 28px max(var(--gut), calc((100% - 1200px) / 2 + var(--gut))) 56px; border-top: 0; background: linear-gradient(180deg, var(--bg), var(--bg-2)); font: 12px/1.7 var(--mono); color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s3) var(--s5); }
.site-foot p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s1) 22px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--text); }

@media (max-width: 1080px) {
  .site .top nav.modules { display: none; }
  .site .top nav.tr { margin-left: auto; }
  .site-hero.home .wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .site-hero.home .hero-l { padding: 64px 0 32px; }
  .hero-r { padding: 0 0 64px; }
  .scrub-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  table.proof tbody, .site-main .k-dashboard ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-main .k-plans ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .site .wrap { padding: 0 20px; }
  .site .site-foot { --gut: 20px; }
  .site .top .brand { padding-left: 20px; padding-right: var(--s3); }
  .site .top nav.tr a:not(.pill) { display: none; }
  .site .top nav.tr a.pill { padding: 0 var(--s3); }
  .hero-l, .site-hero.home .hero-l { padding: 48px 0 32px; }
  .tag { margin-bottom: 24px; font-size: 11px; }
  .lead { font-size: 16px; margin-bottom: 28px; }
  .site .cta .btn { min-height: 48px; padding: 0 20px; }
  .site-main .install code { white-space: normal; word-break: break-all; overflow: visible; }
  .gauge-head { flex-direction: column; gap: 4px; }
  .cells { gap: 2px; }
  .cells i { height: 14px; border-radius: 2px; }
  .band { padding: 48px 0 80px; }
  .kicker { margin-bottom: 20px; font-size: 11px; }
  .kicker span:last-child { display: none; }
  .scrub-pin { padding: 64px 0; }
  .scrub-r { padding: 22px 18px 40px; gap: 32px; }
  .sl-t .cnt { font-size: 36px; }
  .site-main section p, .site-main section li, .site-main section dd { font-size: 15px; }
  .site-main section ul > li { padding: 44px 18px 18px; }
  .site-main section ul > li::before { left: 18px; top: 16px; line-height: 1.5; }
  table.proof tbody, .site-main .k-dashboard ul { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .site-main .k-plans ul > li, .site-main .k-dashboard ul > li { padding: 48px 18px 22px; }
  .site-main .k-plans ul > li::before, .site-main .k-dashboard ul > li::before { left: 18px; top: 18px; }
  table.proof tr { padding: 22px 18px; }
  table.proof .n { font-size: 52px; }
  .site-main table.vs { font-size: 14px; table-layout: fixed; }
  .site-main table.vs th, .site-main table.vs td { padding: 12px 10px; }
  .site-main table.vs tbody th { font-size: 14px; width: 26%; }
  .faq dt { grid-template-columns: 40px minmax(0, 1fr); font-size: 16px; }
  .site-main .faq dd { padding-left: 40px; }
  .close-band { padding: 8px 10px 64px; }
  .close-band > .wrap { padding: 64px 22px; border-radius: 24px; }
}

/* ux1：手機也看得到「登入」（回來的使用者不用捲到底找）；「方案」在窄螢幕收起，首屏留給主要按鈕 */
@media (max-width: 640px) {
  .site .top nav.tr a.login-link { display: flex; padding: 0 var(--s3); }
}
@media (max-width: 1080px) { .site .top nav.tr a.pricing-link { display: none; } }
#main:focus { outline: none; }
#pricing { scroll-margin-top: 72px; }

/* ───────── 動畫（只在使用者沒要求減少動態效果時） ───────── */
@media (prefers-reduced-motion: no-preference) {
  /* 首屏儀表：一開頁淡入，捲動時從傾斜慢慢放平、放大（Apple／Linear 的產品畫面手法）；左邊文字往上淡出 */
  .gauge { animation: g-in .9s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes g-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }

  /* 重播段：沒動畫時保持一段；有動畫時拉高成 3 屏，內容釘在畫面中間（原生：@supports 區塊直接套；退路：等 motion.js 加 .live 才套） */
  .stamp { transition: opacity .25s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
  .scrub.live:not(.stopped) .stamp { opacity: 0; transform: scale(.6); }

  /* 不支援 scroll-driven（Firefox 等）：motion.js 加 .no-sda，進場用 .rv／.in 轉場，重播段由 JS 推 */
  .no-sda .rv { opacity: 0; transform: translateY(36px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
  .no-sda .rv.in { opacity: 1; transform: none; }
  .no-sda .scrub.live { height: 300svh; }
  .no-sda .scrub.live .scrub-pin { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; padding: 56px 0 0; }
  .no-sda .scrub.live .steps { grid-template-areas: "s"; }
  .no-sda .scrub.live .steps li { grid-area: s; transition: opacity .35s, transform .35s; }
  .no-sda .scrub.live .steps li:not(.on) { opacity: 0; transform: translateY(16px); }
  .no-sda .scrub.live .fill { transition: transform .12s linear; }

  /* 時間寫 1ms：Chrome 會忽略、照捲動進度跑；Firefox 要有非 0 的時間才會播（MDN 範例的寫法） */
  @supports (animation-timeline: view()) {
    .site-hero.home .gauge { animation: g-in .9s cubic-bezier(.2, .7, .2, 1) both, g-tilt linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 70vh; animation-duration: .9s, 1ms; }
    @keyframes g-tilt { from { transform: rotateX(16deg) scale(.94); } to { transform: rotateX(0) scale(1.04) translateY(-24px); } }
    .site-hero.home .hero-l { animation: h-out 1ms linear both; animation-timeline: scroll(root); animation-range: 0 80vh; }
    @keyframes h-out { to { opacity: .15; transform: translateY(-60px) scale(.97); } }

    /* 各段：小標、標題、段落、卡片、表格逐個上浮淡入；標題另外從小放大。淡入在前 45% 就做完（半透明的字對比不夠，不讓它停留太久） */
    .band .wrap > *, .band .wrap > ul > li, table.proof tr, .site-main .faq > * {
      animation: rise 1ms linear both; animation-timeline: view(); animation-range: entry 0% entry 75%; }
    .band .wrap > ul, .band .wrap > table.proof { animation: none; }
    .site-main .band h2 { animation-name: rise-zoom; }
    .band .wrap > ul > li:nth-child(2), table.proof tr:nth-child(2) { animation-range: entry 8% entry 85%; }
    .band .wrap > ul > li:nth-child(3), table.proof tr:nth-child(3) { animation-range: entry 16% entry 95%; }
    .band .wrap > ul > li:nth-child(n+4), table.proof tr:nth-child(4) { animation-range: entry 24% cover 30%; }
    @keyframes rise { from { opacity: 0; transform: translateY(48px); } 45% { opacity: 1; } }
    @keyframes rise-zoom { from { opacity: 0; transform: translateY(40px) scale(.9); } 45% { opacity: 1; } }

    /* 結尾大卡：從縮小的卡片放大到全寬（只縮放、不淡入：還沒捲到時也要保持字的對比） */
    .close-band > .wrap { animation: zoom-in 1ms linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes zoom-in { from { transform: scale(.86); } }

    /* 重播段：跟著捲動進度推進。節點要和 motion.js 的 fillAt() 一致：5%～90% 填滿，6/60 時停，步驟在 15%／55% 切換 */
    .scrub { height: 300svh; view-timeline: --scrub block; }
    .scrub-pin { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; padding: 56px 0 0; }
    .scrub .steps { grid-template-areas: "s"; }
    .scrub .steps li { grid-area: s; }
    .scrub .fill, .scrub .steps li { transition: none; animation-timeline: --scrub; animation-range: contain 0% contain 100%; animation-timing-function: linear; animation-fill-mode: both; animation-duration: 1ms; }
    .scrub .sl.before .fill { animation-name: sc-before; }
    .scrub .sl.after .fill { animation-name: sc-after; }
    @keyframes sc-before { 0%, 5% { transform: scaleX(0); } 90%, 100% { transform: scaleX(1); } }
    @keyframes sc-after { 0%, 5% { transform: scaleX(0); } 13.5%, 100% { transform: scaleX(.1); } }
    .scrub .steps li:nth-child(1) { animation-name: sc-s1; }
    .scrub .steps li:nth-child(2) { animation-name: sc-s2; }
    .scrub .steps li:nth-child(3) { animation-name: sc-s3; }
    @keyframes sc-s1 { 0%, 13% { opacity: 1; transform: none; } 17%, 100% { opacity: 0; transform: translateY(-16px); } }
    @keyframes sc-s2 { 0%, 13% { opacity: 0; transform: translateY(16px); } 17%, 53% { opacity: 1; transform: none; } 57%, 100% { opacity: 0; transform: translateY(-16px); } }
    @keyframes sc-s3 { 0%, 53% { opacity: 0; transform: translateY(16px); } 57%, 100% { opacity: 1; transform: none; } }
  }
}
