/* 桔珜工作室 v4 — 黑色劇場:純黑畫布、灰階層次、青紫漸層是唯一的顏色
   動態原則:只動 transform 與 opacity;沒有 filter / backdrop-filter / 大陰影 / 全螢幕疊層
   v4:首屏 WebGL 流動光場(js/bg.js,半解析度);v5:JE 系統改用網站自己的線條畫的情境動畫(.scene) */
@view-transition { navigation: auto; }

:root {
  --bg: #000;
  --bg-2: #050608;
  --s1: #111112;
  --s2: #1d1d1f;
  --s3: #2a2a2d;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #6e6e73;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --grad: linear-gradient(90deg, #5CE1E6 0%, #C6A6FF 100%);
  --sans: "Inter", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --latin: "Inter", "Noto Sans TC", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: 16px;
  --max: 1200px;
  --wide: 1360px;
  --r: 28px;
  --sec: clamp(96px, 11vw, 160px);
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background: var(--bg);
  font: 400 17px/1.5 var(--sans); letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p, figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(198, 166, 255, .32); color: #fff; }
.sr-only { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #000; padding: 10px 18px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.wrap.wide { max-width: calc(var(--wide) + var(--gutter) * 2); }
.num { font-family: var(--latin); font-variant-numeric: tabular-nums; }

/* ── 字 ── */
.label { font: 600 12px/1.4 var(--latin); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.display { font-weight: 700; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
.h1 { font-size: clamp(42px, 7vw, 96px); letter-spacing: -.025em; line-height: 1.08; }
.h2 { font-size: clamp(34px, 5.2vw, 76px); }
.h3 { font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -.015em; line-height: 1.15; }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 34em; font-weight: 500; }
.lead b, .lead strong { color: var(--ink); font-weight: 500; }
.muted { color: var(--ink-2); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.caption { font: 500 13px/1.5 var(--sans); letter-spacing: .04em; color: var(--ink-3); margin-top: 22px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.ln { display: block; }
.cnt { display: inline-grid; justify-items: start; font-variant-numeric: tabular-nums; }
.cnt > * { grid-area: 1 / 1; }
.cnt .ghost { visibility: hidden; }
.lead, .muted, .caption, .t-cap p, .fit p, .principles p { text-wrap: pretty; }

/* ── 頁首:不透明黑底,不用 backdrop-filter ── */
.top { position: fixed; inset: 0 0 auto; z-index: 50; height: 64px; view-transition-name: top; background: rgba(0, 0, 0, 0); border-bottom: 1px solid transparent; transition: background-color .5s var(--ease), border-color .5s var(--ease); }
.top.scrolled, .top.open { background: rgba(0, 0, 0, .92); border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 100%; max-width: calc(var(--wide) + var(--gutter) * 2); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand svg { width: 30px; height: 30px; }
.brand .wm { display: grid; line-height: 1.15; }
.brand .wm b { font: 700 15px/1.2 var(--sans); letter-spacing: .14em; }
.brand .wm small { font: 600 9px/1.3 var(--latin); letter-spacing: .24em; color: var(--ink-3); }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-size: 14px; font-weight: 500; letter-spacing: .04em; color: var(--ink-2); padding: 8px 0; transition: color .4s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.top .btn { min-height: 36px; padding: 8px 18px; font-size: 13px; }
.top .acts { display: flex; align-items: center; gap: 24px; }
.top .login { font-size: 14px; font-weight: 500; letter-spacing: .04em; color: var(--ink-2); padding: 8px 0; transition: color .4s var(--ease); }
.top .login:hover { color: var(--ink); }
.menu-btn { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: transparent; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; border-radius: 2px; background: var(--ink); transition: transform .5s var(--ease); }
.menu-btn span:nth-child(1) { top: 18px; } .menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.panel { position: fixed; inset: 64px 0 0; z-index: 49; background: #000; padding: 20px var(--gutter) 40px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; }
.panel[hidden] { display: none; }
.panel a { display: block; padding: 14px 0; font-size: 28px; font-weight: 700; letter-spacing: -.01em; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.panel a[aria-current="page"] { color: var(--ink); }
.panel a.btn { display: flex; margin-top: 32px; padding: 14px 30px; font-size: 16px; font-weight: 600; letter-spacing: .04em; min-height: 54px; border-bottom: 0; color: #000; }
.js .panel:not([hidden]) > * { animation: panel-in .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes panel-in { from { opacity: 0; transform: translate3d(0, 16px, 0); } }
html.menu-open { overflow: hidden; }
@media (max-width: 960px) {
  .nav, .top .btn.desk, .top .login.desk { display: none; }
  .menu-btn { display: block; }
}

/* ── 按鈕:膠囊,沒有陰影 ── */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 14px 30px; border-radius: 999px;
  font: 600 16px/1 var(--sans); letter-spacing: .04em; border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .6s var(--ease), border-color .4s var(--ease), background-color .4s var(--ease); }
.btn:hover { border-color: rgba(255, 255, 255, .4); }
.btn-primary { background: var(--grad); color: #000; border-color: transparent; }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .22); opacity: 0; transition: opacity .4s var(--ease); }
.btn-primary:hover { border-color: transparent; }
.btn-primary:hover::after { opacity: 1; }
.btn-quiet { background: var(--s2); border-color: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--s3); border-color: transparent; }
.btn:disabled { opacity: .5; cursor: default; }
.chev { display: inline-block; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); margin-left: 2px; transition: transform .5s var(--ease); }
.btn:hover .chev, .link:hover .chev { transform: translateX(3px) rotate(45deg); }
.link { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 500; color: var(--ink); padding: 6px 0; }
.link span:first-child { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); padding-bottom: 2px; }
.link:hover span:first-child { background-size: 100% 1px; }
.actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.center .actions { justify-content: center; }

/* ── 版面節奏 ── */
main { position: relative; }
.section { padding-block: var(--sec); position: relative; }
.section.flush-top { padding-top: 0; }
.sec-head { display: grid; gap: 24px; max-width: 900px; }
.sec-head.center { margin-inline: auto; justify-items: center; }
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 120px); align-items: end; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 32px; } }

/* ── 首屏 ── */
.hero { position: relative; padding: clamp(132px, 15vw, 190px) 0 clamp(56px, 7vw, 90px); text-align: center; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; display: grid; justify-items: center; gap: 28px; }
.hero .lead { max-width: 30em; }
.hero .actions { margin-top: 10px; }
.page-hero { padding-bottom: clamp(72px, 9vw, 130px); }
/* 呼吸光:放射漸層,只動 opacity 與 transform */
.aura { position: absolute; left: 50%; top: clamp(40px, 6vw, 80px); width: min(1100px, 150vw); aspect-ratio: 1.6; margin-left: calc(min(1100px, 150vw) / -2); pointer-events: none; z-index: 0;
  background:
    radial-gradient(38% 46% at 34% 46%, rgba(92, 225, 230, .17), rgba(92, 225, 230, 0) 100%),
    radial-gradient(40% 48% at 66% 54%, rgba(198, 166, 255, .15), rgba(198, 166, 255, 0) 100%),
    radial-gradient(closest-side, rgba(120, 190, 240, .07), rgba(0, 0, 0, 0) 100%); }
.page-hero .aura { opacity: .7; }
/* v4 流動光場:WebGL 成功才顯示,同時收起 CSS 光暈;失敗或減少動態時維持上面的 .aura */
.glow { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.8s var(--ease); }
.glow.on { opacity: 1; }
.hero.gl .aura { display: none; }
.js .glow.drift { animation: glow-drift 28s ease-in-out infinite alternate; transform-origin: 50% 40%; }
@keyframes glow-drift { from { transform: scale(1.06) translate3d(-1.5%, 0, 0); } to { transform: scale(1.12) translate3d(1.5%, 1%, 0); } }
.js .aura { animation: aura-in 2.4s var(--ease) both, breathe 9s ease-in-out 2.4s infinite; }
.js .aura.paused { animation-play-state: paused; }
@keyframes aura-in { from { opacity: 0; transform: scale(.8); } }
@keyframes breathe { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .6; transform: scale(1.06); } }

.hero-mark { width: clamp(84px, 9vw, 116px); aspect-ratio: 1; margin-bottom: 6px; }
.hero-mark svg { width: 100%; height: 100%; overflow: visible; }
.js .hero-mark .outline { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.65, 0, .35, 1) .15s forwards; }
.js .hero-mark .beat { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .8s cubic-bezier(.65, 0, .35, 1) 1.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* 載入序列:淡入、上浮、微縮放 .96→1 */
.js .rise { opacity: 0; animation: rise 1.2s var(--ease) both; animation-delay: calc(.35s + var(--i, 0) * .12s); }
.js .h1 .ln { opacity: 0; transform-origin: 50% 100%; animation: rise-scale 1.4s var(--ease) both; animation-delay: calc(.45s + var(--i, 0) * .14s); }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
@keyframes rise-scale { from { opacity: 0; transform: translate3d(0, 24px, 0) scale(.96); } to { opacity: 1; transform: none; } }

/* ── 捲動浮現(一個 IntersectionObserver)── */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-lines] .ln { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 100ms + var(--d, 0) * 1ms); }
.js [data-lines].in .ln { opacity: 1; transform: none; }

/* ── 展示台:背後一圈柔光 ── */
.theatre { position: relative; padding-bottom: var(--sec); overflow-x: clip; }
.theatre .wrap { position: relative; }
.halo { position: absolute; left: 50%; top: 50%; width: 130%; height: 120%; transform: translate(-50%, -50%); pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(120, 200, 230, .2), rgba(160, 150, 255, .09) 50%, rgba(0, 0, 0, 0) 100%); }
.tilt { perspective: 2200px; perspective-origin: 50% 0%; position: relative; z-index: 1; }
.scrub { transform-origin: 50% 100%; backface-visibility: hidden; }
.live { will-change: transform; }
.theatre .caption { text-align: center; position: relative; z-index: 1; }
@media (max-width: 600px) { :root { --r: 20px; } }

/* 手機框:鈦金屬邊、灰階,沒有陰影 */
.phone { position: relative; width: 100%; max-width: 300px; border-radius: 54px; padding: 2px; background: linear-gradient(150deg, #4a4a4e, #1c1c1e 30%, #2c2c2f 70%, #4a4a4e); }
.phone .bezel { border-radius: 52px; padding: 9px; background: #050505; }
.phone .scr { position: relative; overflow: hidden; border-radius: 43px; background: var(--s1); }
/* 截圖是 iPhone 原生畫面,已含狀態列;這裡只補上動態島 */
.phone .scr::before { content: ""; position: absolute; z-index: 1; top: 0; margin-top: 3.5%; left: 34.4%; width: 31.2%; aspect-ratio: 3.44 / 1; border-radius: 999px; background: #000; }
.phone img { width: 100%; height: auto; }
@media (max-width: 600px) { .phone { border-radius: 44px; } .phone .bezel { border-radius: 42px; padding: 7px; } .phone .scr { border-radius: 35px; } }

/* ── 看診流程 ── */
.flow-wrap { position: relative; margin-top: clamp(64px, 8vw, 110px); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.flow-line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.flow-line i { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(1); }
.js .flow-line i { transform: scaleX(0); }
.flow li { padding: 40px 28px 0 0; min-width: 0; position: relative; }
.flow li::before { content: ""; position: absolute; left: 0; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: #000; border: 1px solid var(--ink-3); }
.flow li::after { content: ""; position: absolute; left: 0; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); opacity: 1; transform: scale(1); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.js .flow li::after { opacity: 0; transform: scale(.3); }
.js .flow li.lit::after { opacity: 1; transform: scale(1); }
.flow .n { display: block; font: 600 13px/1 var(--latin); letter-spacing: .14em; color: var(--ink-3); margin-bottom: 22px; }
.flow b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; }
.flow span { display: block; color: var(--ink-2); font-size: 16px; }
@media (max-width: 860px) {
  .flow-wrap { padding-left: 32px; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow-line { left: 4px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .flow-line i { transform-origin: 50% 0; }
  .js .flow-line i { transform: scaleY(0); }
  .flow li { padding: 0 0 48px; }
  .flow li::before, .flow li::after { left: -32px; top: 8px; }
  .flow li:last-child { padding-bottom: 0; }
}

/* ── 卡片 ── */
.card { position: relative; border-radius: var(--r); background: var(--s1); overflow: hidden; min-width: 0; }
@media (hover: hover) and (pointer: fine) {
  .card.lift { transition: transform .8s var(--ease), background-color .6s var(--ease); }
  .card.lift:hover { transform: translate3d(0, -6px, 0); background: #151517; }
}

/* 首頁雙產品 */
.duo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; margin-top: clamp(56px, 7vw, 96px); }
.duo .card { display: flex; flex-direction: column; padding: clamp(32px, 4vw, 56px) clamp(28px, 4vw, 56px) 0; min-height: 640px; }
.duo .meta { display: grid; gap: 14px; justify-items: start; position: relative; z-index: 1; }
.duo .meta .muted { max-width: 26em; }
.duo .media { margin-top: auto; padding-top: 48px; display: flex; justify-content: center; }
.duo .media.left { justify-content: flex-start; }
.duo .media .scene { max-width: 680px; margin-bottom: clamp(32px, 4vw, 56px); }
.duo .media .phone { max-width: 270px; margin-bottom: -150px; }
@media (max-width: 900px) {
  .duo { grid-template-columns: minmax(0, 1fr); }
  .duo .card { min-height: 0; }
  .duo .media .phone { max-width: 240px; margin-bottom: -120px; }
}

/* 價格開場 */
.statement { display: grid; justify-items: center; gap: 28px; text-align: center; }
.statement .big { font-size: clamp(40px, 6.4vw, 92px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.statement .big .num { letter-spacing: -.035em; }
.statement .big { white-space: nowrap; }
@media (max-width: 420px) { .statement .big { font-size: 36px; } }

/* ── 方案 ── */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 24px; padding: 44px 36px 40px; }
.plan.featured { background: var(--s2); }
.plan .tier { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan .tier h3 { font-size: 26px; letter-spacing: -.01em; }
.plan .for { font-size: 15px; color: var(--ink-2); margin-top: -14px; }
.plan .tag { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: #000; background: var(--ink); border-radius: 999px; padding: 6px 12px; }
.price { display: flex; align-items: baseline; gap: 8px; padding: 8px 0 26px; border-bottom: 1px solid var(--line); }
.price .cur { font: 600 17px/1 var(--latin); color: var(--ink-2); }
.price .amt { font: 700 clamp(52px, 5vw, 68px)/1 var(--latin); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.price .per { font-size: 15px; color: var(--ink-2); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; color: var(--ink); font-size: 16px; }
.plan li { display: flex; gap: 14px; align-items: baseline; }
.plan li::before { content: ""; flex: none; width: 10px; height: 6px; border-left: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: translateY(-3px) rotate(-45deg); }
.plan .btn { margin-top: auto; align-self: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; } .plan { padding: 36px 28px; } }

/* 比較表 */
.table-wrap { margin-top: clamp(48px, 6vw, 80px); overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); background: var(--s1); }
table.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 20px 24px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.compare thead th { font-size: 18px; font-weight: 700; color: var(--ink); }
.compare thead th small { display: block; font: 500 13px/1.6 var(--latin); color: var(--ink-2); margin-top: 2px; }
.compare tbody th { text-align: left; font-weight: 400; color: var(--ink); position: sticky; left: 0; background: var(--s1); z-index: 1; }
.compare thead th:first-child { text-align: left; position: sticky; left: 0; background: var(--s1); z-index: 2; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .yes { display: inline-block; width: 13px; height: 7px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg) translateY(-2px); }
.compare .no { display: inline-block; width: 12px; height: 1.5px; background: var(--ink-3); vertical-align: middle; }
.compare .col-f { background: rgba(255, 255, 255, .035); }
.table-hint { display: none; margin-top: 14px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 700px) { .table-hint { display: block; } .compare th, .compare td { padding: 16px 18px; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; font-size: 21px; font-weight: 700; letter-spacing: -.005em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; flex: none; width: 14px; height: 14px; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--ink-2); transition: transform .6s var(--ease); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq .ans { padding: 0 0 32px; max-width: 40em; color: var(--ink-2); }
.js .faq details[open] .ans { animation: rise .7s var(--ease) both; }

/* ── JE 系統:置頂劇場 ── */
.t-track { position: relative; margin-top: clamp(48px, 8vw, 72px); }
.t-index { display: none; }
.t-step { display: grid; gap: 18px; padding-block: 0 clamp(72px, 10vw, 120px); }
.t-step:last-child { padding-bottom: 0; }
.t-cap { display: grid; gap: 14px; max-width: 34em; }
.t-cap .idx { font: 600 13px/1 var(--latin); letter-spacing: .14em; color: var(--ink-3); }
.t-cap h3 { font-size: clamp(28px, 3vw, 44px); letter-spacing: -.02em; line-height: 1.12; }
.t-cap p { color: var(--ink-2); }
.t-img { margin-top: 18px; }
@media (min-width: 1000px) and (min-height: 620px) {
  .js .theater .t-track { height: calc(100vh + (var(--n) - 1) * 70vh); margin-top: clamp(24px, 3vw, 48px); }
  .js .theater .t-sticky { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: clamp(40px, 5vw, 80px); align-content: center; padding-top: 64px; }
  .js .theater .t-step { display: contents; }
  .js .theater .t-cap { grid-column: 1; grid-row: 1; align-self: end; opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .6s var(--ease), transform .9s var(--ease); pointer-events: none; }
  .js .theater .t-img { grid-column: 2; grid-row: 1 / 4; align-self: center; margin: 0; width: 100%; max-width: calc((100vh - 200px) * 1.6); justify-self: end; opacity: 0; transform: scale(1.04); transition: opacity 1s var(--ease), transform 1.4s var(--ease); }
  .js .theater .t-step.on .t-cap { opacity: 1; transform: none; transition-delay: .18s; pointer-events: auto; }
  .js .theater .t-step.on .t-img { opacity: 1; transform: none; }
  .js .theater .t-index { display: grid; grid-column: 1; grid-row: 2; margin: 44px 0 0; padding: 0; list-style: none; gap: 2px; }
  .js .theater .t-index button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 7px 0; border: 0; background: none; text-align: left; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--ink-3); transition: color .5s var(--ease); }
  .js .theater .t-index button::before { content: ""; width: 18px; height: 1.5px; background: currentColor; transform-origin: 0 50%; transform: scaleX(.45); transition: transform .6s var(--ease); }
  .js .theater .t-index button:hover { color: var(--ink-2); }
  .js .theater .t-index button[aria-current="true"] { color: var(--ink); }
  .js .theater .t-index button[aria-current="true"]::before { transform: scaleX(1); }
  .js .theater .t-sticky > .sc-foot { grid-column: 1; grid-row: 3; align-self: start; justify-content: flex-start; flex-wrap: wrap; }
}

/* 適合誰 */
.fit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: clamp(56px, 7vw, 96px); }
.fit .card { padding: 40px 32px 44px; display: grid; gap: 14px; align-content: start; }
.fit h3 { font-size: 24px; letter-spacing: -.01em; }
.fit p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 1000px) { .fit { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fit { grid-template-columns: minmax(0, 1fr); } .fit .card { padding: 32px 26px 36px; } }

/* ── 毛伴 App ── */
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 64px); justify-items: center; align-items: center; max-width: 1080px; margin: 0 auto; position: relative; z-index: 1; }
.phones .phone:nth-child(2) { max-width: 330px; }
.phones .phone:not(:nth-child(2)) { max-width: 280px; }
@media (max-width: 760px) { .phones { grid-template-columns: minmax(0, 1fr); } .phones .phone { max-width: 260px !important; } .phones .phone:not(:nth-child(2)) { display: none; } }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 140px); align-items: center; padding-block: clamp(72px, 9vw, 130px); }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .f-media { order: -1; }
.feature .f-copy { display: grid; gap: 22px; max-width: 30em; }
.feature .f-copy .h3 { font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -.025em; line-height: 1.1; }
.feature .f-media { display: flex; justify-content: center; align-items: flex-start; gap: 24px; }
.feature .f-media .phone { max-width: 290px; }
.feature .f-media .scene { max-width: 520px; }
.feature .f-media.pair .phone { max-width: 250px; }
.feature .f-media.pair .phone:nth-child(2) { margin-top: 80px; }
@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .feature.flip .f-media { order: 0; }
  .feature .f-media .phone { max-width: 260px; }
  .feature .f-media.pair { gap: 14px; }
  .feature .f-media.pair .phone { max-width: 48%; }
  .feature .f-media.pair .phone:nth-child(2) { margin-top: 44px; }
}
.note-card { padding: 40px 36px; display: grid; gap: 6px; max-width: 400px; width: 100%; }
.note-card .label { margin-bottom: 14px; }
.note-card .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 500; }
.note-card .row:last-child { border-bottom: 0; }
.note-card .row span:first-child { display: flex; align-items: center; gap: 14px; }
.note-card .row span:first-child i { font: 600 12px/1 var(--latin); color: var(--ink-3); font-style: normal; width: 18px; }
.note-card .row span:last-child { color: var(--ink-2); font-size: 15px; font-weight: 400; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 11px 22px 11px 18px; border-radius: 999px; background: var(--s2); color: var(--ink); font-size: 16px; font-weight: 600; }
.store svg { width: 20px; height: 20px; flex: none; }
.store small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--ink-2); line-height: 1.3; }
.store > span { line-height: 1.25; text-align: left; }

/* ── 關於 ── */
.prose { display: grid; gap: 26px; max-width: 34em; font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.prose p:first-child { color: var(--ink); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(72px, 9vw, 130px); }
.principles .card { padding: 44px 36px 48px; display: grid; gap: 14px; align-content: start; }
.principles .n { font: 600 13px/1 var(--latin); letter-spacing: .14em; color: var(--ink-3); margin-bottom: 18px; }
.principles h3 { font-size: 26px; letter-spacing: -.01em; }
.principles p { color: var(--ink-2); font-size: 16px; }
.principles .sub { color: var(--ink); font-weight: 500; }
.tagline { font: 500 14px/1.5 var(--latin); letter-spacing: .08em; color: var(--ink-3); }
.hero .tagline { margin-top: 18px; }
.cta-band .tagline { margin-top: -6px; margin-bottom: 4px; }
.foot .tagline { margin-top: 10px; font-size: 13px; }
@media (max-width: 860px) { .principles { grid-template-columns: minmax(0, 1fr); } }

/* ── 表單 ── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-aside { display: grid; gap: 36px; }
.mail-card { padding: 32px; display: grid; gap: 16px; }
.mail { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.mail span { font: 500 clamp(16px, 1.5vw, 18px)/1.4 var(--latin); word-break: break-all; }
.copy { font: 600 14px/1 var(--sans); padding: 10px 18px; min-height: 40px; border-radius: 999px; border: 0; background: var(--s3); color: var(--ink); cursor: pointer; transition: background-color .4s var(--ease); }
.copy:hover { background: #38383b; }
form.trial { padding: clamp(28px, 4vw, 52px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
.field { display: grid; gap: 10px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field-h .count { font: 500 13px/1 var(--latin); color: var(--ink-3); font-variant-numeric: tabular-nums; padding-right: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink-2); padding-left: 4px; }
.field input, .field select, .field textarea { width: 100%; min-height: 54px; font: 400 17px/1.4 var(--sans); color: var(--ink); background: var(--s2); border: 1px solid transparent; border-radius: 999px; padding: 14px 22px; transition: border-color .4s var(--ease), background-color .4s var(--ease); }
.field select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 26px) 52%, calc(100% - 21px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 48px; }
.field select option { background: var(--s2); color: var(--ink); }
.field textarea { min-height: 140px; border-radius: 24px; padding: 16px 22px; line-height: 1.6; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:hover, .field select:hover, .field textarea:hover { background-color: #232326; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 10px; }
.msg { font-size: 15px; font-weight: 500; }
.msg.ok { color: var(--ink); }
.msg.err { color: #ff9aa8; }
@media (max-width: 560px) { form.trial { grid-template-columns: minmax(0, 1fr); padding: 28px 20px; } .form-foot .btn { width: 100%; } }

/* ── CTA 與頁尾 ── */
.cta-band { text-align: center; }
.cta-band .wrap { display: grid; justify-items: center; gap: 28px; }
.cta-band .lead { margin-inline: auto; }
.foot { border-top: 1px solid var(--line); padding-block: 72px 48px; color: var(--ink-2); font-size: 14px; }
.foot .wrap { max-width: calc(var(--wide) + var(--gutter) * 2); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.foot-grid > :first-child p { margin-top: 22px; max-width: 24em; }
.foot h4 { font: 600 12px/1.4 var(--latin); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; overflow-wrap: anywhere; min-width: 0; }
.foot a { color: var(--ink-2); transition: color .4s var(--ease); }
.foot a:hover { color: var(--ink); }
.foot .legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.foot .legal span:last-child { font-family: var(--latin); letter-spacing: .14em; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* 404 */
.nf { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.nf .code { font: 700 clamp(110px, 20vw, 220px)/1 var(--latin); letter-spacing: -.05em; color: var(--ink); }

/* ── 情境動畫:用網站自己的線條、深灰與青紫漸層畫功能在做什麼,不放任何系統畫面
   每個場景一個循環 --T;只動 transform 與 opacity;離開畫面暫停(.play 由 site.js 切換);
   元素的基本樣式就是「故事最後一格」,減少動態時動畫全關,直接顯示這一格 ── */
.scene { --T: 8s; --e: cubic-bezier(.22, 1, .36, 1); container: sc / inline-size; position: relative; width: 100%; margin: 0; }
.stage { position: relative; width: 100%; aspect-ratio: var(--ar, 16 / 10); }
.o { position: absolute; left: calc(var(--x) * 1cqw); top: calc(var(--y) * 1cqw); width: calc(var(--w) * 1cqw); }
@container sc (max-width: 640px) {
  .stage { aspect-ratio: var(--nar, var(--ar, 16 / 10)); }
  .o { left: calc(var(--nx) * 1cqw); top: calc(var(--ny) * 1cqw); width: calc(var(--nw) * 1cqw); }
}
.scene .an { animation-duration: var(--T); animation-timing-function: var(--e); animation-iteration-count: infinite; animation-fill-mode: both; }
.js .scene:not(.play) .an, .sc-paused .scene .an, .scene.rs .an { animation-play-state: paused !important; }
.scene.rs .an { animation-name: none !important; }

/* 共用零件:螢幕、手機、面板、骨架線、勾勾、點擊波紋 */
.mon, .ph, .pnl { container-type: inline-size; }
.mon-in { position: relative; aspect-ratio: 16 / 10; border-radius: 3cqw; border: 1px solid var(--line-2); background: #0a0a0b; overflow: hidden; }
.mon::after { content: ""; position: absolute; left: 42%; width: 16%; top: 100%; height: 4.5cqw; border: 1px solid var(--line-2); border-top: 0; border-radius: 0 0 1.4cqw 1.4cqw; }
.mon-top { position: absolute; left: 0; right: 0; top: 0; height: 7.5cqw; display: flex; align-items: center; gap: 1.1cqw; padding: 0 3cqw; border-bottom: 1px solid var(--line); }
.mon-top i { width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: var(--s3); }
.mon-top span { margin-left: auto; font: 500 clamp(9px, 2.3cqw, 14px)/1 var(--sans); letter-spacing: .04em; color: var(--ink-3); white-space: nowrap; }
.mon-body { position: absolute; left: 0; right: 0; top: 7.5cqw; bottom: 0; }
.ph-in { position: relative; aspect-ratio: 9 / 19; border-radius: 15cqw; border: 1px solid var(--line-2); background: #0a0a0b; }
.ph-in.an { transform-origin: 50% 60%; }
.ph-scr { position: absolute; inset: 3.2cqw; border-radius: 12cqw; background: var(--s1); overflow: hidden; }
.ph-scr::after { content: ""; position: absolute; z-index: 5; top: 3.2cqw; left: 50%; width: 28cqw; height: 7.6cqw; margin-left: -14cqw; border-radius: 99px; background: #000; }
.pnl-in { position: relative; aspect-ratio: var(--a, 1); border-radius: 6cqw; border: 1px solid var(--line-2); background: #0a0a0b; overflow: hidden; }
.scene .t { position: absolute; margin: 0; white-space: nowrap; line-height: 1.2; }
.scene .h { font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.scene .q { color: var(--ink-3); font-weight: 500; }
.sk { position: absolute; display: block; height: 2.4cqw; border-radius: 99px; background: var(--s3); }
.ok { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: var(--grad); }
.ok::after { content: ""; position: absolute; left: 30%; top: 31%; width: 42%; height: 21%; border-left: calc(var(--s) * .09) solid #000; border-bottom: calc(var(--s) * .09) solid #000; transform: rotate(-45deg); }
.tap { position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; border: 1px solid rgba(255, 255, 255, .75); opacity: 0; pointer-events: none; }
.pill { position: relative; display: block; border-radius: 99px; border: 1px solid var(--line-2); color: var(--ink); font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; isolation: isolate; }
.pill > b { position: absolute; inset: -1px; display: grid; place-items: center; border-radius: 99px; background: var(--grad); color: #000; font-weight: 700; opacity: 0; }

/* 外框:網站深色桌面 + 角落淡淡青紫光 */
.sc-frame { position: relative; z-index: 1; border-radius: var(--r); border: 1px solid #222225; padding: clamp(14px, 3.4vw, 52px);
  background: radial-gradient(70% 60% at 12% 0%, rgba(92, 225, 230, .08), rgba(0, 0, 0, 0) 70%), radial-gradient(60% 60% at 96% 100%, rgba(198, 166, 255, .08), rgba(0, 0, 0, 0) 70%), #070809; }
.sc-sec { position: relative; padding-bottom: var(--sec); overflow-x: clip; }
.sc-sec .wrap.wide { position: relative; max-width: calc(1180px + var(--gutter) * 2); }
.sc-sec .tilt { perspective: 2400px; }
.sc-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; margin-top: 18px; }
.sc-foot .caption { margin: 0; }
.sc-btn { display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 16px 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font: 500 13px/1 var(--sans); cursor: pointer; flex: none; transition: color .35s var(--ease), border-color .35s var(--ease); }
.sc-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.sc-btn[hidden] { display: none; }
.sc-btn i { position: relative; width: 10px; height: 12px; flex: none; }
.sc-btn i::before, .sc-btn i::after { content: ""; position: absolute; top: 0; width: 3px; height: 12px; border-radius: 1px; background: currentColor; }
.sc-btn i::before { left: 1px; } .sc-btn i::after { right: 1px; }
.sc-btn.paused i::before { left: 1px; width: 0; height: 0; border-radius: 0; background: none; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.sc-btn.paused i::after { display: none; }
.theater .sc-foot { margin-top: clamp(40px, 6vw, 64px); }
@media (min-width: 1000px) and (min-height: 620px) {
  .js .theater .t-step:not(.on) .scene .an { animation-play-state: paused !important; }
  .js .theater .sc-foot { margin-top: 28px; }
}

/* ① 叫號:電腦叫下一號 → 手機跳通知 */
.cl-k { left: 6cqw; top: 5.4cqw; font: 600 max(9px, 2.6cqw)/1 var(--sans); letter-spacing: .2em; color: var(--ink-3); }
.cl-num { position: absolute; left: 5.4cqw; top: 9cqw; width: 34cqw; height: 22cqw; font: 700 22cqw/1 var(--latin); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.cl-num span { position: absolute; left: 0; top: 0; }
.cl-num .a { opacity: 0; animation-name: cl-a; }
.cl-num .b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation-name: cl-b; }
.cl-ring { position: absolute; left: 2cqw; top: 3.5cqw; width: 33cqw; height: 33cqw; border-radius: 50%; border: 1px solid rgba(92, 225, 230, .6); opacity: 0; animation-name: cl-ring; }
.cl-room { left: 6cqw; top: 34.5cqw; font: 500 max(10px, 4.4cqw)/1.2 var(--sans); color: var(--ink-2); }
.cl-bw { position: absolute; right: 6cqw; top: 5cqw; }
.cl-bw .pill { padding: 2.2cqw 3.8cqw; font-size: max(9px, 3cqw); line-height: 1; }
.cl-bw .pill > b { animation-name: cl-flash; }
.cl-bw .tap { --s: 13cqw; animation-name: cl-tap; }
.cl-q { position: absolute; left: 6cqw; bottom: 6cqw; display: flex; align-items: center; gap: 2cqw; }
.cl-q em { font: 500 max(9px, 2.6cqw)/1 var(--sans); font-style: normal; color: var(--ink-3); white-space: nowrap; }
.cl-qw { width: 40.8cqw; overflow: hidden; }
.cl-qr { display: flex; gap: 1.6cqw; transform: translate3d(-10.6cqw, 0, 0); animation-name: cl-q; }
.cl-qr span { flex: none; width: 9cqw; height: 6cqw; border-radius: 99px; border: 1px solid var(--line-2); font: 500 max(9px, 2.8cqw)/calc(6cqw - 2px) var(--latin); text-align: center; color: var(--ink-2); }
.cl-qr span:first-child { opacity: 0; animation-name: cl-q0; }
.sc-call .ph-in { animation-name: buzz; }
.ph-sk .sk { height: 3cqw; }
.ph-blk { position: absolute; left: 6cqw; right: 6cqw; height: 40cqw; border-radius: 7cqw; background: var(--s2); }
.ph-blk .sk { background: var(--s3); }
.nt { position: absolute; left: 5cqw; right: 5cqw; top: 13cqw; z-index: 6; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 4cqw; row-gap: 1.4cqw; align-items: center; padding: 5cqw; border-radius: 7cqw; background: #2a2a2d; border: 1px solid var(--line-2); animation-name: nt-in; }
.nt .dot { grid-row: span 2; width: 11cqw; height: 11cqw; border-radius: 3.4cqw; background: var(--grad); }
.nt b { font: 700 max(11px, 7cqw)/1.2 var(--sans); color: var(--ink); white-space: nowrap; }
.nt span { font: 500 max(10px, 5.8cqw)/1.2 var(--sans); color: var(--ink-2); white-space: nowrap; }
@keyframes cl-a { 0%, 22% { opacity: 1; transform: none; } 30%, 93% { opacity: 0; transform: translate3d(0, -26%, 0); } 94% { opacity: 0; transform: none; } 100% { opacity: 1; transform: none; } }
@keyframes cl-b { 0%, 24% { opacity: 0; transform: translate3d(0, 26%, 0); } 32%, 86% { opacity: 1; transform: none; } 93%, 100% { opacity: 0; transform: none; } }
@keyframes cl-ring { 0%, 27% { opacity: 0; transform: scale(.5); } 31% { opacity: .9; } 48%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes cl-flash { 0%, 15% { opacity: 0; } 19%, 24% { opacity: 1; } 32%, 100% { opacity: 0; } }
@keyframes cl-tap { 0%, 14% { opacity: 0; transform: scale(.3); } 17% { opacity: .9; } 28%, 100% { opacity: 0; transform: scale(1.4); } }
@keyframes cl-q { 0%, 26% { opacity: 1; transform: none; } 34%, 88% { opacity: 1; transform: translate3d(-10.6cqw, 0, 0); } 92% { opacity: 0; transform: translate3d(-10.6cqw, 0, 0); } 93% { opacity: 0; transform: none; } 98%, 100% { opacity: 1; transform: none; } }
@keyframes cl-q0 { 0%, 26% { opacity: 1; transform: none; } 32%, 93% { opacity: 0; transform: scale(.7); } 94%, 100% { opacity: 1; transform: none; } }
@keyframes nt-in { 0%, 36% { opacity: 0; transform: translate3d(0, -40%, 0) scale(.94); } 44%, 86% { opacity: 1; transform: none; } 93%, 100% { opacity: 0; transform: translate3d(0, -16%, 0) scale(.97); } }
@keyframes buzz { 0%, 41% { transform: none; } 43% { transform: rotate(-2deg); } 45% { transform: rotate(1.8deg); } 47% { transform: rotate(-1.2deg); } 49%, 100% { transform: none; } }

/* ② 看診開藥:病歷寫一行 → 處方單滑到藥局 → 藥袋打勾 */
.rx-card { --a: 1 / .8; }
.rx-av { position: absolute; left: 7cqw; top: 7cqw; width: 10cqw; height: 10cqw; border-radius: 50%; background: var(--s3); }
.rx-card .h { left: 21cqw; top: 6.6cqw; font-size: max(11px, 5cqw); }
.rx-w { position: absolute; left: 7cqw; top: 54cqw; width: 30cqw; height: 8cqw; overflow: hidden; font: 600 max(10px, 4.8cqw)/8cqw var(--sans); color: var(--ink); white-space: nowrap; }
.rx-cv { position: absolute; inset: 0; background: #0a0a0b; transform-origin: 100% 50%; transform: scaleX(0); animation-name: rx-cv; }
.rx-ca { position: absolute; left: 0; top: 1cqw; width: .8cqw; height: 6cqw; border-radius: 2px; background: var(--grad); opacity: 0; animation-name: rx-ca; }
.rx-bw { position: absolute; right: 7cqw; bottom: 7cqw; }
.rx-bw .pill { padding: 2.6cqw 5cqw; font-size: max(9px, 3.8cqw); line-height: 1; }
.rx-bw .pill > b { animation-name: rx-flash; }
.rx-bw .tap { --s: 16cqw; animation-name: rx-tap; }
.rx-slip { --a: 1 / 1.15; --dx: 35.5; --dy: -13; z-index: 3; animation-name: rx-slip; }
.rx-slip .pnl-in { background: var(--s2); border-radius: 9cqw; }
.rx-slip .h { left: 11cqw; top: 10cqw; font-size: max(10px, 11cqw); }
.cap { position: absolute; left: 11cqw; width: 18cqw; height: 8cqw; border-radius: 99px; background: linear-gradient(90deg, var(--ink-2) 50%, #3a3a3e 50%); }
.rx-slip .sk { height: 4.4cqw; left: 36cqw; }
.rx-ph { --a: 1 / .9; }
.rx-ph .h { left: 8cqw; top: 7cqw; font-size: max(11px, 5.6cqw); }
.rx-st { position: absolute; right: 8cqw; top: 8.6cqw; width: 3cqw; height: 3cqw; border-radius: 50%; background: var(--ink-3); }
.bag { position: absolute; left: 30cqw; top: 25cqw; width: 40cqw; height: 52cqw; border-radius: 4cqw 4cqw 6cqw 6cqw; background: var(--s2); border: 1px solid var(--line-2); opacity: 1; animation-name: rx-bag; }
.bag::before { content: ""; position: absolute; left: 0; right: 0; top: 9cqw; border-top: 1px dashed var(--line-2); }
.bag .sk { left: 7cqw; height: 2.6cqw; }
.rx-ph .ok { --s: 15cqw; left: 62cqw; top: 18cqw; animation-name: rx-ok; }
.rx-done { left: 0; right: 0; top: 80cqw; text-align: center; font: 500 max(10px, 4.6cqw)/1.2 var(--sans); color: var(--ink-2); animation-name: rx-done; }
@container sc (max-width: 640px) { .rx-slip { --dx: -5; --dy: 40.7; } }
@keyframes rx-cv { 0%, 6% { transform: scaleX(1); } 20%, 90% { transform: scaleX(0); } 97%, 100% { transform: scaleX(1); } }
@keyframes rx-ca { 0%, 5.9% { opacity: 0; transform: none; } 6% { opacity: 1; transform: none; } 20% { opacity: 1; transform: translate3d(30cqw, 0, 0); } 24%, 100% { opacity: 0; transform: translate3d(30cqw, 0, 0); } }
@keyframes rx-flash { 0%, 23% { opacity: 0; } 26%, 30% { opacity: 1; } 38%, 100% { opacity: 0; } }
@keyframes rx-tap { 0%, 22% { opacity: 0; transform: scale(.3); } 25% { opacity: .9; } 35%, 100% { opacity: 0; transform: scale(1.4); } }
@keyframes rx-slip { 0%, 27% { opacity: 0; transform: translate3d(0, 3cqw, 0) scale(.9); } 33%, 38% { opacity: 1; transform: none; } 54% { opacity: 1; transform: translate3d(calc(var(--dx) * 1cqw), calc(var(--dy) * 1cqw), 0) scale(.82); } 60%, 100% { opacity: 0; transform: translate3d(calc(var(--dx) * 1cqw), calc(var(--dy) * 1cqw), 0) scale(.6); } }
@keyframes rx-bag { 0%, 55% { opacity: .35; transform: none; } 60% { opacity: 1; transform: translate3d(0, -2cqw, 0); } 66%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: .35; transform: none; } }
@keyframes rx-ok { 0%, 60% { opacity: 0; transform: scale(.3); } 65% { opacity: 1; transform: scale(1.15); } 69%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }
@keyframes rx-done { 0%, 64% { opacity: 0; transform: translate3d(0, 2cqw, 0); } 70%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }

/* ③ 收費:帳單金額出現 → 刷卡 → 付款完成打勾 → 收據飛出 */
.py-bill { --a: 1 / 1.05; }
.py-bill .h { left: 8cqw; top: 7.4cqw; font-size: max(11px, 6cqw); }
.py-c { right: 8cqw; top: 8.8cqw; font: 500 max(9px, 3.6cqw)/1 var(--sans); color: var(--ink-3); }
.py-r { position: absolute; left: 8cqw; right: 8cqw; height: 7cqw; animation-name: py-row; animation-delay: calc(var(--i) * .32s); }
.py-r .sk { left: 0; top: 2.4cqw; }
.py-r span { position: absolute; right: 0; top: 0; font: 500 max(10px, 4.6cqw)/7cqw var(--latin); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.py-dv { position: absolute; left: 8cqw; right: 8cqw; top: 63cqw; border-top: 1px solid var(--line-2); }
.py-tl { left: 8cqw; top: 70.5cqw; font: 500 max(10px, 4.4cqw)/1.2 var(--sans); color: var(--ink-2); animation-name: py-tot; }
.py-tt { right: 8cqw; top: 67cqw; font: 700 max(14px, 10cqw)/1 var(--latin); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; animation-name: py-tot; }
.py-st { position: absolute; left: 8cqw; top: 86cqw; display: flex; align-items: center; gap: 2.4cqw; font: 600 max(10px, 4.4cqw)/1 var(--sans); color: var(--ink); transform-origin: 0 50%; animation-name: py-st; }
.py-st .ok { --s: 6.4cqw; position: relative; }
.py-tm { --a: 1 / 1.25; z-index: 2; }
.tm-s { position: absolute; left: 10cqw; right: 10cqw; top: 10cqw; height: 50cqw; border-radius: 6cqw; background: #000; border: 1px solid var(--line); }
.tm-amt { left: 0; right: 0; top: 28.5cqw; text-align: center; font: 700 max(12px, 13cqw)/1 var(--latin); letter-spacing: -.03em; color: var(--ink); opacity: 0; animation-name: tm-amt; }
.tm-ok { position: absolute; inset: 0; animation-name: tm-ok; }
.tm-ok .ok { --s: 18cqw; left: 41cqw; top: 18cqw; }
.tm-ok .t { left: 0; right: 0; top: 41cqw; text-align: center; font: 600 max(10px, 6cqw)/1.2 var(--sans); color: var(--ink); }
.tm-k { position: absolute; left: 32.5cqw; top: 70cqw; display: grid; grid-template-columns: repeat(3, 9cqw); gap: 4cqw; }
.tm-k i { width: 9cqw; height: 9cqw; border-radius: 50%; border: 1px solid var(--line-2); }
.py-cc { z-index: 4; opacity: 0; container-type: inline-size; animation-name: py-cc; }
.cc-in { position: relative; aspect-ratio: 1.586; border-radius: 7cqw; border: 1px solid var(--line-2); background: linear-gradient(140deg, #2a2a2d, #141416); }
.cc-in::before { content: ""; position: absolute; left: 9cqw; top: 20cqw; width: 15cqw; height: 11cqw; border-radius: 2.6cqw; background: #3a3a3e; }
.cc-in::after { content: ""; position: absolute; left: 9cqw; bottom: 14cqw; width: 42cqw; height: 3.6cqw; border-radius: 99px; background: var(--grad); }
.py-rc { --t: 14; z-index: 1; container-type: inline-size; animation-name: py-rc; }
.rc-in { position: relative; aspect-ratio: 1 / 1.45; border-radius: 4cqw; background: var(--ink); }
.rc-in .t { left: 12cqw; top: 11cqw; font: 700 max(9px, 10cqw)/1 var(--sans); color: #000; }
.rc-in .sk { left: 12cqw; height: 4cqw; background: rgba(0, 0, 0, .16); }
.rc-in .sk.k { background: #000; }
@container sc (max-width: 640px) { .py-rc { --t: 17; } }
@keyframes py-row { 0%, 4% { opacity: 0; transform: translate3d(0, 2cqw, 0); } 10%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }
@keyframes py-tot { 0%, 18% { opacity: 0; transform: translate3d(0, 2cqw, 0); } 24%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }
@keyframes py-st { 0%, 53% { opacity: 0; transform: scale(.8); } 58%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }
@keyframes tm-amt { 0%, 21% { opacity: 0; } 26%, 45% { opacity: 1; } 49%, 100% { opacity: 0; } }
@keyframes tm-ok { 0%, 48% { opacity: 0; transform: scale(.7); } 53% { opacity: 1; transform: scale(1.05); } 57%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }
@keyframes py-cc { 0%, 28% { opacity: 0; transform: translate3d(24cqw, -3cqw, 0) rotate(8deg); } 36% { opacity: 1; transform: translate3d(1cqw, -2cqw, 0) rotate(-6deg); } 41% { opacity: 1; transform: rotate(-8deg); } 44% { opacity: 1; transform: translate3d(0, 1.2cqw, 0) rotate(-8deg); } 47% { opacity: 1; transform: rotate(-8deg); } 56%, 100% { opacity: 0; transform: translate3d(12cqw, -6cqw, 0) rotate(2deg); } }
@keyframes py-rc { 0%, 57% { opacity: 0; transform: translate3d(0, calc(var(--t) * 1cqw), 0); } 58% { opacity: 1; transform: translate3d(0, calc(var(--t) * 1cqw), 0); } 66%, 74% { opacity: 1; transform: none; } 86%, 100% { opacity: 0; transform: translate3d(9cqw, -11cqw, 0) rotate(12deg); } }

/* ④ 報表:長條一根根長出來 */
.rp-k { left: 6cqw; top: 5.4cqw; font: 500 max(9px, 2.8cqw)/1 var(--sans); color: var(--ink-3); }
.rp-v { left: 6cqw; top: 10cqw; font: 700 max(14px, 8cqw)/1 var(--latin); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; animation-name: rp-v; }
.rp-bars { position: absolute; left: 6cqw; right: 6cqw; bottom: 7cqw; height: 25cqw; display: flex; align-items: flex-end; gap: 2cqw; border-bottom: 1px solid var(--line-2); }
.rp-bars i { flex: 1; height: var(--h); border-radius: 1.2cqw 1.2cqw 0 0; background: var(--s3); transform-origin: 50% 100%; animation-name: rp-bar; animation-delay: calc(var(--i) * 90ms); }
.rp-bars i:last-child { background: linear-gradient(180deg, #C6A6FF, #5CE1E6); }
.rp-tip { right: 4.4cqw; top: 15cqw; padding: 1.4cqw 2.4cqw; border-radius: 99px; background: var(--ink); color: #000; font: 700 max(9px, 2.6cqw)/1 var(--sans); animation-name: rp-tip; }
@keyframes rp-bar { 0%, 4% { transform: scaleY(0); } 22%, 86% { transform: scaleY(1); } 94%, 100% { transform: scaleY(0); } }
@keyframes rp-v { 0%, 20% { opacity: 0; transform: translate3d(0, 2cqw, 0); } 28%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }
@keyframes rp-tip { 0%, 30% { opacity: 0; transform: translate3d(0, 2cqw, 0) scale(.9); } 36%, 86% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: none; } }

/* ⑤ LINE 提醒:日曆上一天亮起 → 手機收到訊息 */
.ln-cal { --a: 1 / 1; }
.ln-cal .h { left: 7cqw; top: 6.6cqw; font-size: max(11px, 6cqw); }
.ln-c { right: 7cqw; top: 8.4cqw; font: 500 max(9px, 3.4cqw)/1 var(--sans); color: var(--ink-3); }
.ln-wd, .ln-d { position: absolute; left: 7cqw; right: 7cqw; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.ln-wd { top: 19cqw; font: 500 max(8px, 3.2cqw)/1 var(--sans); color: var(--ink-3); }
.ln-d { top: 26cqw; grid-auto-rows: 12cqw; font: 500 max(9px, 3.8cqw)/12cqw var(--latin); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ln-d span { position: relative; }
.ln-d .td::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8.6cqw; height: 8.6cqw; margin: -4.3cqw 0 0 -4.3cqw; border-radius: 50%; border: 1px solid var(--line-2); }
.ln-d .lt b { position: absolute; left: 50%; top: 50%; width: 8.6cqw; height: 8.6cqw; margin: -4.3cqw 0 0 -4.3cqw; border-radius: 50%; background: var(--grad); color: #000; font-weight: 700; line-height: 8.6cqw; animation-name: ln-lit; }
.ln-d .lt i { position: absolute; left: 50%; top: 50%; width: 9cqw; height: 9cqw; margin: -4.5cqw 0 0 -4.5cqw; border-radius: 50%; border: 1px solid rgba(92, 225, 230, .7); opacity: 0; animation-name: ln-rip; }
.ln-lg { position: absolute; left: 7cqw; top: 89cqw; display: flex; align-items: center; gap: 2cqw; font: 500 max(9px, 3.6cqw)/1 var(--sans); color: var(--ink-2); animation-name: ln-lg; }
.ln-lg i { width: 3cqw; height: 3cqw; border-radius: 50%; background: var(--grad); }
.sc-line .ph-in { animation-name: buzz; animation-delay: calc(var(--T) * -.08); }
.ch-av { position: absolute; left: 8cqw; top: 16cqw; width: 11cqw; height: 11cqw; border-radius: 50%; background: var(--grad); }
.ch-n { left: 23cqw; top: 18.4cqw; font: 600 max(10px, 5.4cqw)/1.2 var(--sans); color: var(--ink); }
.ch-dv { position: absolute; left: 0; right: 0; top: 33cqw; border-top: 1px solid var(--line); }
.bb { position: absolute; left: 7cqw; padding: 4.4cqw 5.4cqw; border-radius: 2.4cqw 7cqw 7cqw 7cqw; background: var(--s2); border: 1px solid var(--line); font: 500 max(11px, 6.6cqw)/1.35 var(--sans); color: var(--ink); white-space: nowrap; transform-origin: 0 0; }
.bb.b1 { top: 44cqw; animation-name: bb-a; }
.bb.b2 { top: 72cqw; animation-name: bb-b; }
.ch-in { position: absolute; left: 6cqw; right: 6cqw; bottom: 7cqw; height: 14cqw; border-radius: 99px; border: 1px solid var(--line-2); }
@keyframes ln-lit { 0%, 8% { opacity: 0; transform: scale(.3); } 14% { opacity: 1; transform: scale(1.12); } 18%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }
@keyframes ln-rip { 0%, 12% { opacity: 0; transform: scale(.8); } 15% { opacity: .9; } 30%, 100% { opacity: 0; transform: scale(2.4); } }
@keyframes ln-lg { 0%, 16% { opacity: 0; transform: translate3d(-2cqw, 0, 0); } 22%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }
@keyframes bb-a { 0%, 34% { opacity: 0; transform: translate3d(0, 4cqw, 0) scale(.94); } 41%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }
@keyframes bb-b { 0%, 48% { opacity: 0; transform: translate3d(0, 4cqw, 0) scale(.94); } 55%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }

/* ── 頁面轉場:只淡入與位移,頁首不動 ── */
::view-transition-old(root) { animation: vt-out .28s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in .7s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translate3d(0, 14px, 0); } }

/* ── 減少動態:全部關掉,內容直接顯示 ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js [data-lines] .ln, .js .rise, .js .h1 .ln { opacity: 1 !important; transform: none !important; }
  .js .hero-mark .outline, .js .hero-mark .beat { stroke-dashoffset: 0 !important; }
  .js .flow-line i { transform: none !important; }
  .js .flow li::after { opacity: 1 !important; transform: none !important; }
  .scrub, .halo-scrub { transform: none !important; }
  .glow { display: none !important; }
  .hero.gl .aura { display: block; }
  ::view-transition-old(root), ::view-transition-new(root), ::view-transition-group(*) { animation: none !important; }
}
.hero .lead, .cta-band .lead, .statement .lead { text-wrap: balance; }
.t-cap h3, .h3, .fit h3, .plan .tier h3 { text-wrap: balance; }
.theater { overflow-x: clip; }
.plan .orig { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 0; font-size: 14px; color: var(--ink-3); }
.plan .orig s { font-family: var(--latin); font-variant-numeric: tabular-nums; text-decoration-thickness: 1px; }
.plan .orig .deal { margin-left: auto; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--ink); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); }
