/* 17FIT Business — 現代化改版
   文案與人像沿用原頁；素材圖示、插圖、底圖全部改為手繪 inline SVG。
   品牌色沿用原站實值：青 #38b0e3、暖漸層 #fdbb57→#fd6358。
   頁首／頁尾由 PagesService 注入，本檔只依 policies 的 heightPx 預留空間。 */

:root {
  --navy: #0b1220;
  --navy-2: #14235c;
  --indigo: #2b4bd8;
  --blue: #3b5bdb;
  --cyan: #38b0e3;
  --mint: #4fd1c5;
  --amber: #fdbb57;
  --coral: #fd6358;
  --ink: #16202e;
  --text: #5c6672;
  --muted: #6b7688;        /* 白底 4.64:1；原 #8b96a5 只有 3.0:1 */
  --link: #1878a6;         /* 白底 4.97:1；品牌青 #38b0e3 當文字只有 2.47:1 */
  --line: #e6ecf5;
  --tint: #f2f7ff;
  --card: #ffffff;
  --warm: linear-gradient(90deg, #fdbb57 13.54%, #fd6358 100%);
  --warm-ink: #4d1a06;      /* 暖漸層上的文字色：白字實測僅 1.40:1，深棕 6–10:1 */
  --cool: linear-gradient(135deg, #38b0e3, #3b5bdb);
  --shadow-sm: 0 2px 10px rgba(17, 42, 88, .06);
  --shadow: 0 10px 34px rgba(17, 42, 88, .09);
  --shadow-lg: 0 26px 70px rgba(9, 26, 62, .18);
  --bg: #ffffff;
  --panel: linear-gradient(150deg, #eaf5ff, #e4ecff);
  --ico-a: linear-gradient(150deg, #e2f4ff, #d8e6ff);
  --ico-b: linear-gradient(150deg, #e6fbf7, #ddf1ff);
  --svg-paper: #e8f1ff;
  --svg-line: #b9d3f2;
  --svg-line2: #c3d9f5;
  --glass: rgba(255, 255, 255, .72);
  --glass-line: rgba(17, 42, 88, .12);
  --header-h: 64px;
  --ease: cubic-bezier(.22, .68, .32, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Hiragino Sans", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: var(--link); text-decoration: none; }
/* 全域焦點框用雙環：本頁在深色 hero／contact 區內有可聚焦元素，
   單環 var(--link) 在深藍底只有約 2:1。雙環在任何底色都至少一環達標。
   保留 outline 是為了 Windows 高對比模式（該模式忽略 box-shadow）。 */
:focus-visible {
  outline: 2px solid #fff; outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(11, 18, 32, .92) !important;
}

h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.36; }
blockquote { margin: 0; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.br-sm, .br-lg { display: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ── 圖示：符號以 stroke 繪製，漸層由 use 繼承 ── */
.ico {
  width: 24px; height: 24px; flex: none;
  fill: none;
  stroke: url(#gStroke);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.ico--14 { width: 14px; height: 14px; stroke-width: 2.2; }
.ico--16 { width: 16px; height: 16px; stroke-width: 2.1; }
.ico--20 { width: 20px; height: 20px; stroke-width: 1.9; }
.ico--28 { width: 28px; height: 28px; }
.ico--32 { width: 32px; height: 32px; stroke-width: 2; }
.ico--40 { width: 40px; height: 40px; stroke-width: 1.8; }

/* ── 漸層文字 ── */
.grad-warm, .grad-mint {
  background-clip: text; -webkit-background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.grad-warm { background-image: linear-gradient(92deg, #ffd479, #fdbb57 38%, #fd8a5e 78%, #fd6358); }
.grad-mint { background-image: linear-gradient(92deg, #8ff0e4, #4fd1c5 55%, #38b0e3); }

/* ── 按鈕 ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 34px;
  border-radius: 999px;
  font-size: 18px; font-weight: 700; letter-spacing: .02em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-position .5s var(--ease);
}
.btn .ico { stroke: currentColor; }
.btn--warm {
  background: linear-gradient(90deg, #fdbb57, #fd6358, #fdbb57) 0 0 / 220% 100%;
  color: var(--warm-ink);
  box-shadow: 0 12px 30px rgba(253, 99, 88, .32);
}
.btn--warm:hover { background-position: 100% 0; transform: translateY(-3px); box-shadow: 0 18px 40px rgba(253, 99, 88, .4); }
.btn--lg { padding: 17px 38px; font-size: 19px; }
.btn--ghost {
  border: 1.5px solid rgba(255, 255, 255, .38);
  color: #fff;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(6px);
  font-size: 16.5px; font-weight: 500;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }

/* ── 捲動揭示（只在有 JS 時隱藏，避免無腳本白頁） ── */
html.js .reveal { opacity: 0; transform: translateY(22px); }
html.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
}

/* ── 極光光斑 ── */
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.blob--1 { width: 46vw; height: 46vw; left: -8vw; top: -12vw; background: #2b4bd8; animation: drift 22s var(--ease) infinite alternate; }
.blob--2 { width: 38vw; height: 38vw; right: -6vw; top: 4vw; background: #38b0e3; animation: drift 26s var(--ease) infinite alternate-reverse; }
.blob--3 { width: 30vw; height: 30vw; left: 32vw; top: 26vw; background: #4fd1c5; opacity: .35; animation: drift 30s var(--ease) infinite alternate; }
.blob--4 { width: 40vw; height: 40vw; left: -6vw; bottom: -14vw; background: #2b4bd8; animation: drift 24s var(--ease) infinite alternate; }
.blob--5 { width: 32vw; height: 32vw; right: -8vw; top: -8vw; background: #38b0e3; animation: drift 28s var(--ease) infinite alternate-reverse; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vw, 3vw, 0) scale(1.14); }
}

/* ── 主視覺 ── */
.hero {
  position: relative;
  padding: 84px 0 0;
  background: linear-gradient(180deg, var(--navy) 0%, #16266b 34%, #2547c4 70%, #2f7ad6 100%);
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.hero__aurora { position: absolute; inset: 0; z-index: -2; }
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.tw { animation: tw 3.6s ease-in-out infinite; animation-delay: var(--d, 0s); transform-origin: center; }
@keyframes tw { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.hero__orbit {
  position: absolute; right: 4%; top: 16%;
  width: 240px; height: 240px; z-index: -1; opacity: .95;
}
.orbit__spin { animation: spin 26s linear infinite; transform-origin: 120px 120px; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__inner { position: relative; z-index: 1; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 22px;
  padding: 7px 18px 7px 14px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  backdrop-filter: blur(8px);
  color: #eaf3ff; font-size: 15px; letter-spacing: .04em;
}
.hero__eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 4px rgba(79, 209, 197, .25);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(79, 209, 197, .3); } 50% { box-shadow: 0 0 0 9px rgba(79, 209, 197, 0); } }

.hero__title {
  color: #fff;
  font-size: clamp(38px, 5.4vw, 70px);
  font-weight: 800;
  letter-spacing: .03em;
  text-shadow: 0 4px 28px rgba(6, 20, 60, .3);
}
/* 主標旁的桂冠徽章（文字為可查證事實，不寫無依據的 #1） */
.hero__headline { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero__headline .hero__title { margin: 0; }
.laurel { display: inline-flex; align-items: center; gap: 2px; color: #fdbb57; }
.laurel__wing { width: 28px; height: 60px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.laurel__wing--r { transform: scaleX(-1); }
.laurel__body { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.laurel__trophy { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.laurel__num { display: block; margin-top: 2px; color: #fff; font-size: 20px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.laurel__txt { display: block; color: #ffe0a8; font-size: 12px; font-weight: 600; letter-spacing: .08em; white-space: nowrap; }
.hero__sub { margin: 20px 0 0; color: rgba(233, 242, 255, .92); font-size: clamp(16px, 1.5vw, 21px); }
.hero__cta { margin: 34px 0 0; }

/* 裝置 */
.device { position: relative; margin: 62px auto 0; max-width: 1000px; }
.device__glow {
  position: absolute; inset: 12% 6% -6%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(79, 209, 197, .55), transparent 70%);
  filter: blur(46px);
}
.device__frame {
  position: relative;
  padding: 12px 12px 0;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 20px 20px 0 0;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: rise 1.1s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
.device__bar { display: flex; gap: 7px; padding: 0 4px 11px; }
.device__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.device__bar span:first-child { background: rgba(253, 99, 88, .8); }
.device__bar span:nth-child(2) { background: rgba(253, 187, 87, .8); }
.device__frame img { border-radius: 12px 12px 0 0; }

.device__chip { position: absolute; width: 168px; filter: drop-shadow(0 14px 30px rgba(8, 24, 60, .28)); }
.device__chip--a { left: -46px; top: 26%; animation: float 6.5s ease-in-out infinite; }
.device__chip--b { right: -40px; top: 52%; animation: float 7.5s ease-in-out .8s infinite; }
.device__chip .bars rect { transform-box: fill-box; transform-origin: bottom; animation: grow 2.8s var(--ease) infinite alternate; }
.device__chip .bars rect:nth-child(2) { animation-delay: .2s; }
.device__chip .bars rect:nth-child(3) { animation-delay: .4s; }
.device__chip .bars rect:nth-child(4) { animation-delay: .6s; }
@keyframes grow { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.hero__wave { position: relative; display: block; width: 100%; height: clamp(56px, 8vw, 130px); margin-top: -2px; }

/* ── 區塊通用 ── */
.sec { position: relative; padding: 104px 0; }
.sec__title {
  font-size: clamp(26px, 3.4vw, 46px);
  font-weight: 800;
  text-align: center;
  letter-spacing: .02em;
  background-image: var(--cool);
  background-clip: text; -webkit-background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.sec__lead { margin: 22px auto 0; max-width: 780px; font-size: clamp(15px, 1.3vw, 18.5px); text-align: center; }

/* 平台簡介 */
.sec--platform { padding-bottom: 68px; }
.flowline { display: block; width: 100%; max-width: 900px; margin: 34px auto 0; }
.flowline__path { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.reveal.in .flowline__path, .flowline.in .flowline__path { animation: draw 2s var(--ease) .1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.flowline__nodes circle { fill: #fff; stroke: url(#gStroke); stroke-width: 3; }

/* ── 功能卡 ── */
.sec--features { background: linear-gradient(180deg, var(--bg), var(--tint) 26%, var(--tint) 74%, var(--bg)); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 58px; }
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 34px 30px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--cool);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .32s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card__icon {
  display: grid; place-items: center;
  width: 62px; height: 62px;
  border-radius: 17px;
  background: var(--panel);
  transition: transform .38s var(--ease);
}
.card:hover .card__icon { transform: translateY(-2px) rotate(-5deg) scale(1.06); }
.card__icon .ico { width: 30px; height: 30px; }
.card__title { margin: 20px 0 0; font-size: 21px; font-weight: 700; }
.card__desc { flex: 1; margin: 11px 0 0; font-size: 15.5px; line-height: 1.85; }
.more { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-size: 15px; font-weight: 600; }
.more .ico { transition: transform .28s var(--ease); }
.card:hover .more .ico, .more:hover .ico { transform: translateX(5px); }
/* 整張卡片都可點：把「了解更多」的點擊範圍延伸到整張卡片 */
.card:has(> .more) { cursor: pointer; }
.card > .more::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card > .more:focus-visible { outline: none; }
.card:has(> .more:focus-visible) { outline: 2px solid var(--blue); outline-offset: 4px; }

/* ── 店家規模 ── */
.scale { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 58px; }
.scale__item {
  padding: 30px 28px 34px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .32s var(--ease), box-shadow .32s var(--ease);
}
.scale__item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.scale__art { margin: 0 auto; max-width: 260px; }
.fl { animation: floatY 5.4s ease-in-out infinite; animation-delay: var(--dly, 0s); transform-box: fill-box; transform-origin: center; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.netline { stroke-dasharray: 5 6; animation: dash 3.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -44; } }
.scale__title { margin: 18px 0 0; font-size: 23px; font-weight: 700; text-align: center; }
.scale__desc { margin: 12px 0 0; font-size: 15.5px; }

/* ── 行業 ── */
.sec--industry { background: linear-gradient(180deg, var(--bg), var(--tint)); }
.industry__label { margin: 40px 0 18px; font-size: 19px; font-weight: 600; color: var(--ink); text-align: center; }
.industry { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); gap: 26px; justify-content: center; }
.ind {
  display: flex; align-items: center; gap: 20px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.ind:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.ind__ico { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; flex: none; }
.ind__ico--a { background: var(--ico-a); }
.ind__ico--b { background: var(--ico-b); }
.ind__name { flex: 1; font-size: 23px; font-weight: 700; }
.ind__arrow { transition: transform .3s var(--ease); }
.ind:hover .ind__arrow { transform: translateX(7px); }

/* ── 數據 ── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 62px; text-align: center; }
.stat__ring { position: relative; width: 148px; margin: 0 auto; }
.stat__ring > svg:not(.stat__ico) { display: block; width: 148px; height: 148px; transform: rotate(-90deg); }
.stat__ring > svg.stat__ico { width: 40px; height: 40px; }
.ring__bg { fill: none; stroke: #e4ecf8; stroke-width: 9; }
.ring__fg {
  fill: none; stroke: url(#gMint); stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
}
.stat.in .ring__fg { transition: stroke-dashoffset 1.5s var(--ease) .15s; stroke-dashoffset: calc(326.7 * (1 - var(--pct))); }
html:not(.js) .ring__fg { stroke-dashoffset: calc(326.7 * (1 - var(--pct))); }
.stat__ico { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.stat__num {
  margin: 20px 0 0;
  font-size: clamp(34px, 3.6vw, 48px); font-weight: 800; line-height: 1.2;
  background-image: var(--cool); background-clip: text; -webkit-background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat__unit { font-size: .5em; }
.stat__label { font-size: 21px; font-weight: 700; }
.stat__desc { margin: 8px 0 0; font-size: 15.5px; }

/* ── 推薦 ── */
.sec--voices { background: linear-gradient(180deg, var(--tint), var(--bg)); }
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 58px; }
.voices__more { margin-top: 48px; text-align: center; }
.voice {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: 34px 28px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform .32s var(--ease), box-shadow .32s var(--ease);
}
.voice:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.voice__mark { position: absolute; left: 24px; top: 20px; fill: url(#gStroke); stroke: none; opacity: .2; }
.voice__avatar {
  width: 108px; height: 108px; border-radius: 50%;
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(17, 42, 88, .12);
  overflow: hidden;
}
.voice__avatar img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.voice:hover .voice__avatar img { transform: scale(1.06); }
.voice__quote { flex: 1; margin: 20px 0 0; font-size: 15.5px; line-height: 1.9; }
.voice__who { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); width: 100%; }
.voice__who strong { display: block; color: var(--ink); font-size: 16.5px; }
.voice__who span { font-size: 14.5px; color: var(--muted); }

/* ── 聯絡 ── */
.sec--contact {
  position: relative;
  padding: 128px 0 104px;
  background: linear-gradient(150deg, var(--navy) 0%, #16266b 45%, #2547c4 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.contact__wave { position: absolute; left: 0; top: -1px; width: 100%; height: clamp(50px, 7vw, 120px); z-index: 1; }
.contact__aurora { position: absolute; inset: 0; z-index: -1; }
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 48px; }
.contact__text { flex: 1 1 420px; }
.contact__title { color: #fff; font-size: clamp(26px, 3.2vw, 42px); font-weight: 800; }
.contact__lead { margin: 20px 0 0; color: rgba(232, 241, 255, .92); font-size: 17.5px; }
.contact__list { margin: 20px 0 0; color: rgba(232, 241, 255, .9); font-size: 16.5px; }
.contact__list li { position: relative; padding-left: 22px; }
.contact__list li::before { content: "・"; position: absolute; left: -1px; color: var(--mint); }
.contact__actions { display: flex; flex-direction: column; gap: 16px; }

/* ── 響應式 ── */
@media (max-width: 1199px) {
  .cards, .voices { grid-template-columns: repeat(2, 1fr); }
  .scale { grid-template-columns: 1fr; gap: 26px; }
  .scale__item { display: grid; grid-template-columns: 200px 1fr; gap: 8px 28px; align-items: center; }
  .scale__art { grid-row: span 2; }
  .scale__title { text-align: left; align-self: end; }
  .scale__desc { align-self: start; }
  .hero__orbit { width: 180px; height: 180px; right: 2%; top: 12%; }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .sec { padding: 68px 0; }
  .hero { padding-top: 56px; }
  .hero__orbit { width: 120px; height: 120px; top: 8%; right: -2%; opacity: .8; }
  .device { margin-top: 44px; }
  .device__chip { width: 116px; }
  .device__chip--a { left: -14px; }
  .device__chip--b { right: -12px; }
  .cards, .voices, .industry { grid-template-columns: 1fr; }
  .scale__item { grid-template-columns: 1fr; padding: 26px 22px 30px; }
  .scale__art { grid-row: auto; max-width: 220px; }
  .scale__title { text-align: center; }
  .br-sm { display: inline; }
  .sec--contact { padding: 96px 0 76px; }
  .contact { flex-direction: column; align-items: flex-start; gap: 34px; }
  .contact__actions { width: 100%; }
  .btn { width: 100%; justify-content: center; }
}

@media (min-width: 1200px) { .br-lg { display: inline; } }

/* ── 無障礙：尊重減少動態偏好 ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .blob { animation: none; }
  .flowline__path { stroke-dashoffset: 0; }
  .ring__fg { stroke-dashoffset: calc(326.7 * (1 - var(--pct))); }
}

/* ═══════════════════════════════════════════════════════════════
   深色模式
   hero 與 contact 兩段在兩種模式下都維持深色（它們本來就是「夜景」），
   這裡翻的是原本亮面的頁面底、卡片、分隔線與文字。
   ═══════════════════════════════════════════════════════════════ */
/* 沒有 JS 時 data-theme 不會被設定，所以要有 media query 兜底，
   否則停用 JS 的使用者永遠只看得到亮色。子頁都有這段，首頁原本漏了。 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #080e1c;
  --tint: #0c1428;
  --card: #111c33;
  --line: #22304c;
  --ink: #eaf1fb;
  --text: #9fb0c6;
  --muted: #8494ab;
  --link: #52c4f0;
  --panel: linear-gradient(150deg, #16233f, #121b31);
  --ico-a: linear-gradient(150deg, #17304f, #16224a);
  --ico-b: linear-gradient(150deg, #123430, #152742);
  --svg-paper: #1b2a47;
  --svg-line: #3a5379;
  --svg-line2: #44608b;
  --glass: rgba(19, 31, 56, .72);
  --glass-line: rgba(255, 255, 255, .14);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .34);
  --shadow: 0 10px 34px rgba(0, 0, 0, .46);
  --shadow-lg: 0 26px 70px rgba(0, 0, 0, .58);
}
}
[data-theme="dark"] {
  --bg: #080e1c;
  --tint: #0c1428;
  --card: #111c33;
  --line: #22304c;
  --ink: #eaf1fb;
  --text: #9fb0c6;
  --muted: #8494ab;
  --link: #52c4f0;
  --panel: linear-gradient(150deg, #16233f, #121b31);
  --ico-a: linear-gradient(150deg, #17304f, #16224a);
  --ico-b: linear-gradient(150deg, #123430, #152742);
  --svg-paper: #1b2a47;
  --svg-line: #3a5379;
  --svg-line2: #44608b;
  --glass: rgba(19, 31, 56, .72);
  --glass-line: rgba(255, 255, 255, .14);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .34);
  --shadow: 0 10px 34px rgba(0, 0, 0, .46);
  --shadow-lg: 0 26px 70px rgba(0, 0, 0, .58);
}
/* 內嵌 SVG 的紙面／線條色：CSS 規則優先於 presentation attribute，
   所以用屬性選擇器覆蓋，不必逐一改 HTML 裡的 fill。 */
[fill="#e8f1ff"], [fill="#eaf1ff"], [fill="#e9f5ff"], [fill="#e8f3ff"] { fill: var(--svg-paper); }
[fill="#b9d3f2"] { fill: var(--svg-line); }
[fill="#c3d9f5"] { fill: var(--svg-line2); }
/* 切換主題不做過場：只有 body 能淡入、卡片與區塊卻瞬間跳變，反而不協調；
   全頁一起瞬間切換看起來才像刻意設計。 */

/* ── 浮動主題切換鈕 ───────────────────────────────────────────── */
.themetoggle { display: none; }
html.theme-js .themetoggle {
  position: fixed; right: 20px;
  bottom: max(20px, calc(env(safe-area-inset-bottom, 0px) + 16px));
  z-index: 60; width: 52px; height: 52px; padding: 0;
  border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--shadow);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .28s var(--ease);
}
html.theme-js .themetoggle:hover { transform: translateY(-3px) scale(1.05); box-shadow: var(--shadow-lg); }
html.theme-js .themetoggle:active { transform: translateY(-1px) scale(.98); }
/* 雙環焦點框：這顆鈕是 fixed，會浮在任何底色上（手機橫放時壓在深藍 hero 上）。
   單一顏色無法同時滿足亮底與深底——--link 在深藍 hero 只有 1.54-2.10:1。
   內白環 + 外深環，任何底色至少一環達 10:1 以上。保留 outline 是為了 Windows 高對比模式。 */
html.theme-js .themetoggle:focus-visible {
  outline: 2px solid #fff; outline-offset: 2px;
  box-shadow: var(--shadow), 0 0 0 6px rgba(11, 18, 32, .92);
}
.themetoggle svg { width: 22px; height: 22px; grid-area: 1 / 1; transition: opacity .3s var(--ease), transform .5s var(--ease); }
.themetoggle .ico-sun  { color: #f4b23f; }
.themetoggle .ico-moon { color: var(--ink)  /* 亮色模式顯示月亮，必須是深色：#cfe0ff 是為深底挑的，用在亮底只有 1.21-1.33:1，違反 WCAG 1.4.11 的 3:1 */; }
[data-theme="light"] .themetoggle .ico-sun,
[data-theme="dark"]  .themetoggle .ico-moon { opacity: 0; transform: rotate(-80deg) scale(.45); }
[data-theme="light"] .themetoggle .ico-moon,
[data-theme="dark"]  .themetoggle .ico-sun  { opacity: 1; transform: rotate(0) scale(1); }

/* ── 進場流星 ─────────────────────────────────────────────────── */
.hero__meteors { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.meteor {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--len, 190px); height: 2px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(150, 205, 255, 0) 0%, rgba(185, 228, 255, .5) 46%, #fff 100%);
  box-shadow: 0 0 8px rgba(150, 210, 255, .7);
  opacity: 0; will-change: transform, opacity;
}
.meteor--burst { animation: meteorOnce var(--dur, 1.7s) var(--ease) var(--d, 0s) 1 both; }
.meteor--amb   { animation: meteorLoop var(--dur, 13s) linear var(--d, 0s) infinite; }
@keyframes meteorOnce {
  0%   { opacity: 0; transform: rotate(var(--a, 22deg)) translateX(0) scaleX(.18); }
  12%  { opacity: 1; }
  72%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a, 22deg)) translateX(var(--tr, 900px)) scaleX(1); }
}
@keyframes meteorLoop {
  0%        { opacity: 0; transform: rotate(var(--a, 22deg)) translateX(0) scaleX(.18); }
  2%        { opacity: 1; }
  11%       { opacity: 1; }
  15%, 100% { opacity: 0; transform: rotate(var(--a, 22deg)) translateX(var(--tr, 900px)) scaleX(1); }
}

/* ── 影片（點擊才載入 Vimeo，未點擊前不發任何第三方請求）────────── */
.video { margin: 48px auto 0; max-width: 880px; }
.video__frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 18px; overflow: hidden;
  background: var(--navy); box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-line);
}
.video__btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; display: block; }
.video__poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.video__scrim {
  position: absolute; inset: 0; transition: background .3s var(--ease);
  background: radial-gradient(62% 62% at 50% 50%, rgba(8, 16, 34, .08), rgba(8, 16, 34, .56));
}
.video__ring, .video__play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px;
  margin: -38px 0 0 -38px; border-radius: 50%;
}
.video__ring { border: 2px solid rgba(255, 255, 255, .55); animation: vpulse 2.6s var(--ease) infinite; }
.video__play {
  background: var(--warm); display: grid; place-items: center;
  box-shadow: 0 14px 34px rgba(253, 99, 88, .45); transition: transform .3s var(--ease);
}
.video__play svg { width: 25px; height: 25px; margin-left: 3px; fill: var(--warm-ink); }
.video__btn:hover .video__play, .video__btn:focus-visible .video__play { transform: scale(1.09); }
.video__btn:hover .video__scrim { background: radial-gradient(62% 62% at 50% 50%, rgba(8, 16, 34, 0), rgba(8, 16, 34, .4)); }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@keyframes vpulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.6); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .hero__meteors { display: none; }
  .video__ring { animation: none; }
}
/* 無 JS 時：隱藏封面按鈕，改由 <noscript> 的 iframe 直接呈現影片 */
html:not(.theme-js) .video__btn { display: none; }
html:not(.theme-js) .video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ── 功能快覽（取代示意儀表板）：頁籤 + 真實產品畫面 ─────────────── */
[hidden] { display: none !important; }
.tour { margin: 56px auto 0; max-width: 1000px; }
.tour__tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 0 auto 20px;
}
.ftab {
  min-height: 44px; padding: 0 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .08);
  color: #ffffff; font: inherit; font-size: 15.5px; font-weight: 700; line-height: 1.2; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.ftab:hover { background: rgba(255, 255, 255, .18); border-color: #ffffff; }
.ftab[aria-selected="true"] { background: #ffffff; border-color: #ffffff; color: var(--navy-2); }
.ftab:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }
.fpanel__desc {
  max-width: 720px; margin: 0 auto 26px; color: rgba(233, 242, 255, .92);
  font-size: 16.5px; line-height: 1.8;
}
.fpanel__more {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 10px;
  color: #ffffff; font-weight: 700; white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, .55);
}
.fpanel__more:hover { border-bottom-color: #ffffff; text-decoration: none; }
.fpanel__more:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; border-radius: 4px; }
.tour .device { margin-top: 0; }
/* 畫面區固定比例：截圖尺寸不一，用 contain 完整顯示、不裁切，切頁籤時版面不跳 */
.device__stage {
  display: grid; place-items: center; aspect-ratio: 16 / 9;
  padding: clamp(10px, 2vw, 24px); border-radius: 12px 12px 0 0; background: #ffffff;
}
.device__stage img { width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 6px; object-fit: contain; }
.fpanel:not([hidden]) .device__frame { animation: rise .45s var(--ease) both; }
@media (max-width: 768px) {
  .tour { margin-top: 40px; }
  .tour__tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: -20px; padding: 0 20px 4px; scrollbar-width: none; }
  .tour__tabs::-webkit-scrollbar { display: none; }
  .ftab { flex: none; }
  .device__stage { aspect-ratio: 4 / 3; }
  .fpanel__more { display: flex; justify-content: center; margin: 8px 0 0; border-bottom: 0; text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) { .fpanel:not([hidden]) .device__frame { animation: none; } }

/* ── 功能快覽：程式繪製的介面插畫（取代截圖） ─────────────────────── */
.tour .device__stage {
  display: block; aspect-ratio: auto; min-height: 380px;
  padding: clamp(16px, 2.4vw, 28px); background: linear-gradient(160deg, #f6f9ff, #eef4ff);
  color: var(--ink); text-align: left; font-size: 14px; line-height: 1.6;
}
.vg { height: 100%; display: grid; gap: 16px; align-items: start; }
.vg--booking, .vg--app, .vg--customer, .vg--pay { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.vg--app { grid-template-columns: auto minmax(0, 1fr); justify-content: center; align-items: center; gap: 28px; }
.vc { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); padding: 16px; }
.vg b { color: var(--ink); font-weight: 700; }
.vg small, .vg-sub { color: var(--muted); font-size: 12.5px; }
.vg-sub { margin: 0 0 8px; }
.vg-i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vg-side { display: grid; gap: 12px; align-content: start; }
.vg-dot { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: #e8f1ff; color: var(--link); }
.vg-dot--mint { background: #e2f8f5; color: #127a70; }
.vg-toast { display: flex; gap: 12px; align-items: flex-start; }
.vg-toast p { margin: 2px 0 0; color: var(--text); font-size: 13px; line-height: 1.55; }

/* AI */
.vg-chat { max-width: 640px; margin: 0 auto; display: grid; gap: 12px; }
.vg-me { justify-self: end; max-width: 80%; margin: 0; padding: 10px 14px; border-radius: 16px 4px 16px 16px; background: var(--navy-2); color: #fff; }
.vg-ai { background: #fff; border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.vg-ai p { margin: 0 0 8px; }
.vg-ai__who { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; color: var(--link); font-size: 12.5px; font-weight: 700; }
.vg-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.vg-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 9px 12px; border-top: 1px solid var(--line); }
.vg-list li:first-child { border-top: 0; }
.vg-list span { grid-column: 1; color: var(--text); font-size: 12.5px; }
.vg-list em { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 3px 10px; border-radius: 999px; background: #e8f1ff; color: var(--link); font-style: normal; font-size: 12px; font-weight: 700; white-space: nowrap; }
.vg-note { margin: 10px 0 0 !important; color: var(--muted); font-size: 12.5px; }

/* 預約 */
.vg-week { padding: 14px; }
.vg-week__head, .vg-week__grid { display: grid; grid-template-columns: 44px repeat(5, minmax(0, 1fr)); gap: 6px; }
.vg-week__head { margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }
.vg-time { align-self: center; color: var(--muted); font-size: 11.5px; }
.vg-cell { position: relative; min-height: 56px; padding: 6px 7px 8px; border-radius: 8px; background: #eef5ff; overflow: hidden; display: grid; align-content: start; gap: 1px; }
.vg-cell b { font-size: 12px; line-height: 1.35; position: relative; }
.vg-cell small { font-size: 11px; position: relative; color: var(--link); font-weight: 700; }
.vg-cell i { position: absolute; left: 0; bottom: 0; height: 4px; width: calc(var(--f) * 100%); background: var(--cyan); border-radius: 0 2px 2px 0; }
.vg-cell.is-full { background: #fff2e6; }
.vg-cell.is-full small { color: #b4440f; }
.vg-cell.is-full i { background: var(--coral); }
.vg-cell--empty { background: repeating-linear-gradient(135deg, #f4f7fc 0 6px, #eef2f9 6px 12px); }

/* 品牌 App */
.vg-phone { width: 210px; padding: 10px; border-radius: 30px; background: #0f1830; box-shadow: var(--shadow); position: relative; }
.vg-phone__notch { position: absolute; top: 10px; left: 50%; width: 70px; height: 16px; margin-left: -35px; border-radius: 0 0 10px 10px; background: #0f1830; z-index: 1; }
.vg-phone__screen { border-radius: 22px; background: #f7f9fd; padding: 26px 12px 14px; display: grid; gap: 8px; }
.vg-app__top { display: flex; justify-content: space-between; align-items: center; }
.vg-app__logo { font-weight: 800; font-size: 13px; color: var(--navy-2); }
.vg-app__bell { color: var(--muted); }
.vg-app__hi { margin: 0; font-size: 12px; color: var(--text); }
.vg-app__card { display: grid; padding: 12px; border-radius: 12px; background: var(--cool); color: #fff; }
.vg-app__card small, .vg-app__card span { color: rgba(255,255,255,.88); font-size: 11px; }
.vg-app__card b { color: #fff; font-size: 18px; }
.vg-app__btn { display: block; padding: 8px; border-radius: 999px; background: var(--warm); color: var(--warm-ink); text-align: center; font-weight: 800; font-size: 12.5px; }
.vg-app__label { margin: 4px 0 0; font-size: 11px; color: var(--muted); font-weight: 700; }
.vg-app__row { display: flex; justify-content: space-between; padding: 7px 9px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 11.5px; }
.vg-app__row b { font-size: 11.5px; }
.vg-pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.vg-pill-row span { padding: 4px 12px; border-radius: 999px; background: #eef5ff; color: var(--link); font-size: 12.5px; font-weight: 700; }

/* 客戶 */
.vg-profile { display: grid; gap: 12px; }
.vg-profile__head { display: flex; gap: 12px; align-items: center; }
.vg-profile__head div { display: grid; }
.vg-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--cool); color: #fff; font-weight: 800; }
.vg-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.vg-tags span { padding: 3px 10px; border-radius: 999px; background: #e2f8f5; color: #127a70; font-size: 12px; font-weight: 700; }
.vg-tags span:first-child { background: #fff2e6; color: #b4440f; }
.vg-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.vg-fields div { padding: 8px 10px; border-radius: 8px; background: #f6f9ff; }
.vg-fields .vg-wide { grid-column: 1 / -1; }
.vg-fields dt { color: var(--muted); font-size: 11.5px; }
.vg-fields dd { margin: 0; font-weight: 700; font-size: 13px; }
.vg-plan__row { display: flex; justify-content: space-between; font-size: 13px; }
.vg-bar { height: 8px; margin: 6px 0; border-radius: 999px; background: #e8eef8; overflow: hidden; }
.vg-bar i { display: block; height: 100%; width: calc(var(--w) * 100%); border-radius: 999px; background: var(--cool); transform-origin: left; }
.vg-timeline__title { display: block; margin-bottom: 8px; }
.vg-timeline ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vg-timeline li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; font-size: 13px; color: var(--ink); padding-left: 12px; border-left: 2px solid #d6e4f7; }
.vg-timeline li span { color: var(--muted); font-size: 12px; }

/* 金流 */
.vg-checkout { display: grid; gap: 4px; }
.vg-checkout__item { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px dashed var(--line); }
.vg-checkout__item div { display: grid; }
.vg-checkout__item strong { font-size: 18px; color: var(--ink); white-space: nowrap; }
.vg-methods { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.vg-methods li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.vg-methods li.is-on { border-color: var(--cyan); background: #eef8fd; font-weight: 700; }
.vg-radio { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #b9c6d9; flex: none; }
.vg-methods li.is-on .vg-radio { border: 4px solid var(--cyan); }
.vg-paybtn { display: block; padding: 10px; border-radius: 999px; background: var(--navy-2); color: #fff; text-align: center; font-weight: 800; }
.vg-secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.vg-renew ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vg-renew li { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: #f6f9ff; font-size: 13px; }
.vg-renew li span { color: var(--muted); font-size: 12px; }
.vg-renew em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); }
.vg-renew em.ok { color: #127a70; }

/* 報表 */
.vg-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vg-kpi { display: grid; gap: 2px; padding: 12px 14px; }
.vg-kpi b { font-size: clamp(18px, 2.2vw, 24px); white-space: nowrap; }
.vg-kpi b.vg-hot { color: #c2410c; }
.vg-kpi span { color: #127a70; font-size: 12px; font-weight: 700; }
.vg-chart__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; font-size: 13px; }
.vg-chart__head span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.lg--bar { background: #7cc8ec; }
.lg--line { height: 3px; background: var(--coral); }
.vg-svg { display: block; width: 100%; height: auto; max-height: 200px; }
.vg-grid line { stroke: #e3eaf5; stroke-width: 1; }
.vg-bar-r { fill: #7cc8ec; transform-box: fill-box; transform-origin: bottom; }
.vg-line { fill: none; stroke: var(--coral); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; }
.vg-dots circle { fill: #fff; stroke: var(--coral); stroke-width: 2; }
.vg-labels text { fill: var(--muted); font-size: 11px; }

/* 動態：切到該頁籤時播放一次 */
.fpanel.is-on .vg-a { animation: vgIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
@keyframes vgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fpanel.is-on .vg-bar i { animation: vgGrowX 1s var(--ease) .4s both; }
@keyframes vgGrowX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.fpanel.is-on .vg-cell i { animation: vgGrowX .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 300ms); transform-origin: left; }
.fpanel.is-on .vg-bar-r { animation: vgGrowY .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 200ms); }
@keyframes vgGrowY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.fpanel.is-on .vg-line { animation: vgDraw 1.2s var(--ease) .7s both; }
@keyframes vgDraw { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
.fpanel.is-on .vg-dots { animation: vgIn .4s var(--ease) 1.6s both; }

@media (max-width: 860px) {
  .vg--booking, .vg--customer, .vg--pay { grid-template-columns: 1fr; }
  .vg--app { grid-template-columns: 1fr; justify-items: center; }
  .vg--app .vg-side { width: 100%; }
  .tour .device__stage { min-height: 0; }
}
@media (max-width: 520px) {
  .vg-week__head, .vg-week__grid { grid-template-columns: 36px repeat(5, minmax(0, 1fr)); gap: 4px; }
  .vg-cell { min-height: 48px; padding: 5px; }
  .vg-cell b { font-size: 11px; }
  .vg-kpis { grid-template-columns: 1fr; }
  .vg-methods { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .fpanel.is-on .vg-a, .fpanel.is-on .vg-bar i, .fpanel.is-on .vg-cell i, .fpanel.is-on .vg-bar-r, .fpanel.is-on .vg-line, .fpanel.is-on .vg-dots { animation: none; }
  .vg-line { stroke-dasharray: none; }
}
