/* 對齊漸強公司頁 https://www.cresclab.com/tw/company 的字體、配色與互動（2026-10-07 量測）。
 *
 * landing.html 與 trial.html 共用，載入順序在各頁自己的 <style> 之後，所以這裡寫的會蓋過去。
 * 量到的數值（1440×900、getComputedStyle）：
 *   字體     tt-commons-pro, "Noto Sans TC", "PingFang TC"；tt-commons-pro 是 Adobe Fonts 授權字，
 *            綁 cresclab.com 網域，這裡不載（docs/taste-audit.md 也規定不載 webfont）。中文兩頁同一套。
 *   h1       56px／500／字距 0.56px／#222a36；上方一行藍色漸層字（「漸強實驗室 Crescendo Lab」）
 *   h2       40px／700／字距 0.4px
 *   h3       28.8px／600（產品卡）、24px／600（功能卡）
 *   內文     17.6px／行高 28.16px／字距 0.704px／#6b7280
 *   大數字   80px／500，漸層字 linear-gradient(114deg, #3f7bff 5%, #5090ff 50%, #80bbff)
 *   按鈕     膠囊；實心是 linear-gradient(115deg, #3f7bff, #5090ff 46%, #80bbff)、1px 白邊、
 *            inset 0 -8px 16px rgba(255,255,255,.5)；外框是 1px #5090ff 邊、藍字。
 *            hover：按鈕裡的字往上翻一格（Webflow IX，translate3d(0,-3em,0)）。
 *   卡片     平的：#f8f9fc 底、圓角 32px、沒有陰影；灰底節區上的卡片是白底。
 *   節區     白底與 #f8f9fc 交替；每一節捲到時淡入（初始 opacity:0）。
 *   影片     公司頁與 /tw 首頁都沒有 <video>，只有插圖（avif）與認證徽章，所以這裡也不放影片。
 *
 * 兩處刻意不照抄（對比，WCAG AA）：
 *   一、實心按鈕的白字落在 #5090ff 上只有 3.10:1。漸層方向與形狀照抄，色階整段往深移一階，
 *      字重從 400 提到 500。
 *   二、漸層字只用在 18px 以上的大字（大字門檻 3:1），淺端停在 #5a95ff，不到 #80bbff。
 *
 * 頁面自己的 token 一律寫成 var(--lv-x, 預設值)，理由見 test/css-tokens.test.mjs。 */

:root{ --lv-fg2:#6b7280; --lv-fg3:#6b7280 }
:root[data-theme="dark"]{ --lv-fg2:#aab3c0; --lv-fg3:#98a2b0 }
/* 後台頁（body.clb-app）沒有自己定義 --lv-*，深色模式時卡片、側欄、頁首、輸入框會停在 fallback 的白底，
 * 配上 theme.css 深色的淺色字就看不見。數值照 landing／trial 的深色 token。 */
:root[data-theme="dark"] body.clb-app{
  --lv-tint:#131820; --lv-card:#171b21; --lv-fg:#e9ecf1; --lv-line:#2a313a;
  --lv-blue-ink:#8db0ff; --lv-blue-bg2:#1a2433 }

body{letter-spacing:.01em}

/* ── 字 ──────────────────────────────────────────────────────────────── */
h1{font-size:clamp(2.1rem,1.15rem + 2.7vw,3.5rem)!important;font-weight:500!important;letter-spacing:.01em!important;line-height:1.2!important}
h1 .hl{color:inherit!important}
h2{font-weight:700;letter-spacing:.01em}
.lead,.sub,.head p,.trytext p,.case p,.step p,details p,.contact .intro p{
  font-size:clamp(1rem,.95rem + .2vw,1.1rem);line-height:1.6;letter-spacing:.04em;color:var(--lv-fg2,#6b7280)}

/* 標題上方那一行藍色漸層字（公司頁 h1 上的「漸強實驗室 Crescendo Lab」） */
.kicker{
  display:inline-block;margin:0 0 14px;font-size:clamp(1.15rem,1rem + .5vw,1.4rem);font-weight:600;letter-spacing:.02em;
  background:linear-gradient(114deg,#2d67f7 5%,#3f7bff 50%,#5a95ff);-webkit-background-clip:text;background-clip:text;color:transparent}
:root[data-theme="dark"] .kicker{background:linear-gradient(114deg,#8db0ff,#b4ccff);-webkit-background-clip:text;background-clip:text}

/* ── 按鈕：115° 斜向漸層膠囊＋白邊＋內側高光；外框款 ──────────────────── */
.btn,#trialpage button:not(.ghost):not(.stop):not([data-theme-toggle]){
  background:linear-gradient(115deg,#2d67f7 0%,#3570fa 46%,#4f8bff 100%)!important;
  border:1px solid #fff!important;color:#fff!important;font-weight:500!important;
  box-shadow:inset 0 -8px 16px rgba(255,255,255,.35)!important;
}
.btn:hover,#trialpage button:not(.ghost):not(.stop):not([data-theme-toggle]):hover{filter:brightness(1.06)}
.btn-outline,.link-cta{
  display:inline-flex;align-items:center;padding:12px 24px;border:1px solid #5090ff;border-radius:999px;
  color:var(--lv-blue-ink,#2456d6)!important;background:var(--lv-card,#fff);font-weight:500;text-decoration:none!important;
  box-shadow:inset 0 -8px 16px rgba(255,255,255,.5);line-height:1.25;white-space:nowrap}
.btn-outline.sm{padding:9px 20px;font-size:14.5px}
.link-cta:hover,.btn-outline:hover{background:var(--lv-blue-bg2,#eef4ff)}
:root[data-theme="dark"] .btn,:root[data-theme="dark"] .btn-outline,:root[data-theme="dark"] .link-cta{border-color:rgba(255,255,255,.2)!important}

/* hover：字往上翻一格（公司頁的 Webflow 互動）。字由 cl-brand.js 包成兩層。 */
.roll{display:inline-block;height:1.3em;line-height:1.3em;overflow:hidden;vertical-align:top}
.roll>span{display:block;transition:transform .4s cubic-bezier(.2,.7,.3,1)}
a:hover>.roll>span,button:hover>.roll>span,a:focus-visible>.roll>span,button:focus-visible>.roll>span{transform:translateY(-100%)}
@media (prefers-reduced-motion: reduce){ .roll>span{transition:none} a:hover>.roll>span,button:hover>.roll>span{transform:none} }

/* ── 卡片：平的，不帶陰影。白底節區用淺灰卡、灰底節區用白卡 ─────────────── */
.card{border:0!important;box-shadow:none!important;background:var(--lv-tint,#f8f9fc)!important}
section.tint .card,.tint .card{background:var(--lv-card,#fff)!important}
.case.clinic{border-top:0!important}

/* ── 首屏：白底，不放光暈（公司頁首屏是純白） ─────────────────────────── */
section.hero{background:var(--lv-bg,#fff)!important}
/* 流程卡照公司頁首屏的圖框：淺灰圓角框，底部一段藍色漸層 */
.flow.card{background:linear-gradient(180deg,var(--lv-tint,#f8f9fc) 0%,var(--lv-tint,#f8f9fc) 62%,#cfe0ff 100%)!important}
:root[data-theme="dark"] .flow.card{background:linear-gradient(180deg,#131820 0%,#131820 62%,#1c2c4d 100%)!important}
.flow .flow-top{background:transparent!important;border-bottom:0!important}
.flow .screens{margin:0 16px;background:var(--lv-card,#fff);border-radius:24px}
.flow .steps{padding-top:14px}
.flow .steps button[aria-selected="true"]{background:var(--lv-card,#fff)}

/* ── 每一節捲到時淡入（公司頁每一節初始都是 opacity:0） ─────────────────── */
html.reveal main>section:not(.hero){opacity:0;transform:translateY(24px);transition:opacity .7s cubic-bezier(.2,.7,.3,1),transform .7s cubic-bezier(.2,.7,.3,1)}
html.reveal main>section.in{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){ html.reveal main>section:not(.hero){opacity:1;transform:none;transition:none} }
/* 列印與存 PDF：還沒捲到的節區不可以是空白 */
@media print{ html.reveal main>section{opacity:1!important;transform:none!important} }

/* ── 試聽頁（#trialpage 是 trial.html 的 body id） ──────────────────────── */
#trialpage .card .siteopt,#trialpage .kv>div,#trialpage .tx p:not(.ai){background:var(--lv-card,#fff)!important}
#trialpage button.ghost{border-color:#5090ff!important;color:var(--lv-blue-ink,#2456d6)!important}
html.embed #trialpage .card{background:transparent!important;padding:clamp(20px,2.6vw,32px)!important}
#trialpage .intro h1{margin-bottom:14px}
/* 試聽頁獨立開的時候也是純白底（公司頁沒有光暈）。嵌入模式在上面另外處理成透明。 */
html:not(.embed) body#trialpage{background:var(--lv-bg,#fff)!important}

/* ══ 後台四頁（settings／calls／leads／forwarding）════════════════════════
 * body 掛 .clb-app。這四頁是操作介面，所以只換外觀，不加 hover 翻字與捲動淡入
 * （cl-brand.js 不載）：那兩個是行銷頁的效果，放在表單與表格上只會礙事。
 * 版型照公司頁的「灰底節區＋白卡」：頁面 #f8f9fc、卡片白底 24px 圓角不帶陰影。 */
body.clb-app{background:var(--lv-tint,#f8f9fc)!important;color:var(--lv-fg,#222a36)}
.clb-app .wrap{padding-top:16px!important}

/* 頁首：浮動白色膠囊，捲動時黏在上面 */
.clb-app .wrap>header{
  position:sticky;top:16px;z-index:10;background:var(--lv-card,#fff);border-radius:999px;
  box-shadow:0 0 15px rgba(0,64,193,.06);padding:10px 14px 10px clamp(18px,3vw,28px)!important;
  margin:0 0 clamp(28px,4vw,44px)!important;min-height:60px;flex-wrap:nowrap!important}
.clb-app .wrap>header nav{gap:clamp(12px,2vw,24px)!important;font-size:15px!important;margin-left:auto}
.clb-app .wrap>header nav a{color:var(--lv-fg2,#6b7280);text-decoration:none}
.clb-app .wrap>header nav a:hover{color:var(--lv-blue-ink,#2456d6)}
@media (max-width:620px){
  .clb-app .wrap>header{border-radius:24px;flex-wrap:wrap!important;row-gap:8px}
  .clb-app .wrap>header nav{width:100%;justify-content:space-between}
}

/* 字 */
.clb-app h1{font-size:clamp(1.8rem,1.3rem + 1.6vw,2.4rem)!important;font-weight:500!important;letter-spacing:.01em!important;line-height:1.3!important}
.clb-app .sub,.clb-app .hint{letter-spacing:.03em;color:var(--lv-fg2,#6b7280)}
.clb-app .sub{font-size:clamp(1rem,.95rem + .2vw,1.08rem)}
.clb-app .card h2,.clb-app .card h3{font-weight:700;letter-spacing:.01em}

/* 卡片：白、平、24px 圓角 */
.clb-app .card{background:var(--lv-card,#fff)!important;border:0!important;box-shadow:none!important;
  border-radius:24px!important;padding:clamp(20px,2.6vw,28px)!important}

/* 按鈕：實心＝115° 斜向漸層膠囊；ghost＝藍框白底膠囊（公司頁的外框款） */
.clb-app button:not(.ghost):not([data-theme-toggle]){
  border-radius:999px!important;border:1px solid #fff!important;color:#fff!important;font-weight:500!important;
  background:linear-gradient(115deg,#2d67f7 0%,#3570fa 46%,#4f8bff 100%)!important;
  box-shadow:inset 0 -8px 16px rgba(255,255,255,.35)!important}
.clb-app button:not(.ghost):not([data-theme-toggle]):hover{filter:brightness(1.06)}
.clb-app button.ghost{border-radius:999px!important;border:1px solid #5090ff!important;background:var(--lv-card,#fff)!important;
  color:var(--lv-blue-ink,#2456d6)!important;font-weight:500}
.clb-app button.ghost:hover{background:var(--lv-blue-bg2,#eef4ff)!important}
.clb-app [data-theme-toggle]{border-radius:999px!important;background:transparent!important;border:1px solid var(--lv-line,#e4e4e4)!important;color:var(--lv-fg2,#6b7280)!important}
:root[data-theme="dark"] .clb-app button:not(.ghost):not([data-theme-toggle]){border-color:rgba(255,255,255,.2)!important}

/* 輸入框 */
.clb-app input:not([type=checkbox]):not([type=radio]),.clb-app select,.clb-app textarea{
  border-radius:14px!important;border:1px solid var(--lv-line,#e4e4e4)!important;background:var(--lv-card,#fff)}
.clb-app input:not([type=checkbox]):not([type=radio]):focus,.clb-app select:focus,.clb-app textarea:focus{border-color:#3f7bff!important}

/* 提示框與 MVP 說明條：圓角、無邊線 */
.clb-app .okbox,.clb-app .warnbox,.clb-app .err,.clb-app .rejectbox{border:0!important;border-radius:18px!important}
.clb-app .mvp{border-left:0!important;border-radius:18px!important;background:var(--lv-blue-bg2,#eef4ff)!important}

/* 表格：表頭灰字、列線改淡 */
.clb-app th{color:var(--lv-fg3,#6b7280)!important;font-weight:500!important}
.clb-app th,.clb-app td{border-bottom-color:var(--lv-line,#e4e4e4)!important}

/* 設定頁：未登入時的三步清單（垂直）與登入後的步驟條，跟卡片同一套：白底、24px、不帶邊線 */
.clb-app #gate.out ol.steps{border:0!important;border-radius:24px!important;background:var(--lv-card,#fff)!important;padding:10px 28px 16px!important}
.clb-app #gate.out ol.steps li{border-bottom-color:var(--lv-line,#e4e4e4)!important}
.clb-app #gate:not(.out) ol.steps li{border-radius:18px!important;border-color:var(--lv-line,#e4e4e4)}
.clb-app #gate:not(.out) ol.steps li.on{border-color:#3f7bff!important;box-shadow:inset 0 0 0 1px #3f7bff!important}
.clb-app #gate.out ol.steps li.on{box-shadow:none!important;border-top:0!important;border-left:0!important;border-right:0!important}

/* 提示框裡只有第一個 <strong> 是標題；段落中間的 <strong> 是強調，留在行內。
   轉接說明頁原本整段被拆成三行就是因為這條（「讓你先看懂機制」被當成標題獨立一行）。 */
.clb-app .warnbox strong:not(:first-child),.clb-app .okbox strong:not(:first-child){display:inline!important;font-size:inherit!important;margin:0!important}
.clb-app #gate.out ol.steps li{border-radius:0!important}
