/*
  產品介紹頁共用的補充樣式（/beliau/、/paw-circle/、/suite/）
  版面與元件都在 design-system/components/bundle.css（ProductPage、Field、Disclosure、VideoFrame）；
  這裡只放 bundle.css 沒有、但產品頁需要的東西。
*/

html { scroll-behavior: smooth; }
/* 黏在上方的導覽 72px：錨點跳過去時標題不要被蓋住 */
.st-page__section, .st-page__hero { scroll-margin-top: 80px; }

/* 跳到主要內容（鍵盤使用者第一個 Tab） */
.st-skip { position: absolute; left: var(--space-3); top: -100px; z-index: 10; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: var(--ink); color: var(--on-vivid); font-size: 15px; font-weight: 500; text-decoration: none; }
.st-skip:focus { top: var(--space-3); outline: 2px solid var(--focus); outline-offset: 2px; }

/* 導覽與頁尾的文字連結也要有焦點外框 */
.st-page__nav .st-nav__brand:focus-visible, .st-page__foot a:focus-visible, .st-page a.st-text-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

/* 詞組不斷行（例如「進銷存」不要拆成兩行） */
.nb { display: inline-block; }
.st-page__title .nb { display: inline-block; color: inherit; }   /* 標題的 span 預設是第二句（獨立一行、變灰），詞組不斷行要另外蓋回來 */

/* 內文裡的文字連結 */
.st-text-link { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.st-text-link:hover { color: var(--ink-muted); }

/* 段落裡的小字補充（玻璃面板的備註、條款說明） */
.st-page__aside, .st-page__section .st-glass > .st-page__aside { max-width: 36em; margin: var(--space-4) 0 0; color: var(--ink-muted); font-size: 13px; line-height: 1.6; }

/* 段落標題後的引言：bundle.css 只處理 .st-glass > p，包在 split 裡的也一樣 */
.st-page__split > div > .st-two-tone + p, .st-page__section .st-page__intro { max-width: 36em; margin: 0; color: var(--ink-muted); font-size: 16px; line-height: 1.75; }
.st-page__split > div > p + p { margin: var(--space-3) 0 0; }

/* 試算表示意（日報）：放在 st-frame 裡，太寬時在框內左右捲 */
.st-sheet { overflow-x: auto; }
.st-sheet table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-sheet caption { padding: var(--space-3); color: var(--ink-muted); font-size: 13px; text-align: left; }
.st-sheet th, .st-sheet td { padding: var(--space-2) var(--space-3); text-align: right; border-bottom: 1px solid var(--line); }
.st-sheet th { color: var(--ink-muted); font-weight: 500; }
.st-sheet th:first-child, .st-sheet td:first-child { text-align: left; }

/* 完整版影片（VideoFrame）：橫式 .st-frame__h、直式 .st-frame__v，640px 以下換直式；直式限制高度，不要比一個畫面還高 */
.st-frame--film { max-width: 880px; }
.st-frame--film .st-frame__v { display: none; }
.st-frame__play[hidden] { display: none; }   /* bundle.css 的 display: grid 會蓋掉 hidden */
.st-frame--film video { display: block; width: 100%; height: auto; background: var(--deck); }
.st-frame--film video:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
@media (max-width: 640px) {
  .st-frame--film .st-frame__h { display: none; }
  .st-frame--film .st-frame__v { display: block; max-height: 78vh; object-fit: contain; }
}
/* 短片（16:9）並排橫向滑動：一張約 420px，手機約八成寬，旁邊露出下一張 */
.st-frame--clip { width: min(420px, 78vw); }
.st-frame--clip video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.st-page__section .st-frames + .st-list, .st-page__section .st-frame--film + .st-frames { margin-top: var(--space-5); }

/* 分頁面板開頭的一句話（原本各段標題的第二句） */
.st-tabs__lead { max-width: 36em; margin: 0 0 var(--space-4); color: var(--ink-muted); font-size: 20px; line-height: 1.6; }
.st-tabs__panel .st-frame--film + .st-frames { margin-top: var(--space-4); }
.st-tabs__panel p:not(.st-tabs__lead) { max-width: 36em; margin: 0; color: var(--ink-muted); font-size: 16px; line-height: 1.75; }

/* 三欄的 st-facts（安心的地方）；手機一欄 */
.st-facts--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .st-facts--3 { grid-template-columns: 1fr; }
  .st-facts--3 > li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
}

/* 四個步驟一列（合作方式） */
.st-steps--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .st-steps--4 { grid-template-columns: 1fr; } }

/* 文字價格（「依需求報價」）：比數字價格小一號 */
.st-page__price--text { font-size: 52px; }
@media (max-width: 760px) { .st-page__price--text { font-size: 40px; } }

/* 聯絡：信箱放大、旁邊複製按鈕 */
.st-page__mail { display: inline-block; margin-top: var(--space-4); color: var(--ink); font-size: 28px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; overflow-wrap: anywhere; }
.st-page__mail:hover { color: var(--ink-muted); }
@media (max-width: 760px) { .st-page__mail { font-size: min(22px, 6.2vw); white-space: nowrap; overflow-wrap: normal; } }
.st-page__mail:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

/* 官網狀態（內測／正式上線）切換的區塊 */
[data-stage="prelaunch"] [data-only="launch"], [data-stage="launch"] [data-only="prelaunch"] { display: none !important; }

@media (max-width: 760px) {
  .st-frames { margin-right: calc(-1 * var(--space-4)); }   /* 截圖列在手機上可以捲到面板邊緣 */
  .st-frame--phone { width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
