/* LAILOLA 三語首頁共用樣式（2026-10-28 改版：滑動進場、Lola 吉祥物、互動小示範、影片版位）
   動畫只在 html.motion（瀏覽器支援、而且沒開「減少動態效果」）時才播；否則內容直接顯示。 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --paper: #fbf7f0;
    --paper-2: #f5ede0;
    --card: #ffffff;
    --ink: #212b3b;
    --ink-2: #4b5568;
    --ink-3: #737b8c;
    --line: #e8dfd1;
    --indigo: #2b4c7e;
    --indigo-d: #213c66;
    --indigo-2: #3d63a0;
    --indigo-soft: #e9eef7;
    --peach: #f3bfa7;
    --coral: #cf634a;
    --fur: #ead8c0;
    --gold: #c99a3b;
    --radius: 22px;
    --shadow: 0 14px 40px rgba(43, 76, 126, 0.12);
    --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "PingFang TC", "Noto Sans TC", "Segoe UI", sans-serif;
    --round: var(--font);
}
:lang(ja) { --round: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif; }
:lang(en) { --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
    min-width: 320px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
a { color: inherit; }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, .tagline, .price, .fact strong { font-family: var(--round); }
:lang(ja) .tagline, :lang(ja) h2, :lang(ja) h3, :lang(ja) p, :lang(ja) li { word-break: auto-phrase; line-break: strict; }
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nb { display: inline-block; }

/* 語言切換（位置沿用原本；首頁改成跟著頁面捲走，不蓋住內容） */
.lang-switch { position: absolute; top: 12px; right: 12px; z-index: 60; display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 13px; }
.lang-switch a { padding: 3px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 650; }
.lang-switch a.active { background: var(--indigo); color: #fff; }

/* 頁首小標 */
.topbar { position: relative; z-index: 5; }
.topbar .wrap { display: flex; align-items: center; gap: 8px; min-height: 60px; padding-right: 200px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--round); font-weight: 800; letter-spacing: 0.04em; color: var(--indigo); }
.brand .lola { width: 34px; height: 36px; }

/* ── 首屏 ── */
.hero { position: relative; overflow: hidden; padding: 6px 0 56px; background:
    radial-gradient(1100px 520px at 85% 20%, #f1e3cf 0%, rgba(241, 227, 207, 0) 65%),
    radial-gradient(700px 420px at 0% 100%, var(--indigo-soft) 0%, rgba(233, 238, 247, 0) 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); grid-template-areas: "copy media" "cta media"; column-gap: 56px; align-items: start; padding-top: 34px; }
.hero-copy { grid-area: copy; }
.hero-media { grid-area: media; position: relative; justify-self: center; align-self: center; }
.hero-cta { grid-area: cta; scroll-margin-top: 90px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--indigo); font-size: 13.5px; font-weight: 700; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.hero h1 { margin-top: 18px; font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: 0.02em; color: var(--indigo); }
.tagline { margin-top: 20px; font-size: 34px; line-height: 1.45; font-weight: 800; color: var(--ink); }
.supporting { margin-top: 16px; max-width: 34em; color: var(--ink-2); font-size: 17px; }

/* 手繪底線、螢光筆 */
.u { position: relative; display: inline-block; white-space: nowrap; }
.u svg { position: absolute; left: -2%; bottom: -0.32em; width: 104%; height: 0.5em; overflow: visible; pointer-events: none; }
.u path { fill: none; stroke: var(--coral); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hl { background-image: linear-gradient(transparent 60%, rgba(243, 191, 167, 0.75) 60%); background-repeat: no-repeat; background-size: 100% 100%; padding: 0 2px; color: var(--ink); font-weight: 700; }

/* 商店按鈕（release_day.py 會把 Mac 的 span 換成 <a href="https://apps.apple.com/...">） */
.store-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store-btn { display: inline-flex; flex-direction: column; justify-content: center; min-height: 60px; min-width: 220px; padding: 9px 22px; border: 2px solid var(--indigo); border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; line-height: 1.35; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.store-btn b { font-size: 16.5px; }
.store-btn span { font-size: 13px; color: var(--ink-2); }
.store-btns > span.store-btn { position: relative; padding-left: 40px; border-style: dashed; cursor: default; }
.store-btns > span.store-btn::before { content: ""; position: absolute; left: 18px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(207, 99, 74, 0.5); }
.motion .store-btns > span.store-btn::before { animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(207, 99, 74, 0.5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(207, 99, 74, 0); } }
a.store-btn[href^="https://apps.apple.com"] { background: var(--indigo); color: #fff; box-shadow: 0 10px 24px rgba(43, 76, 126, 0.28); }
a.store-btn[href^="https://apps.apple.com"] span { color: #dfe7f4; }
a.store-btn[href="#windows"] { border-color: #c9ccd6; }
a.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.price-line { margin-top: 16px; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.limits-line { margin-top: 6px; max-width: 36em; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.limits-line a, .pdf-link, .text-link { color: var(--indigo); font-weight: 700; text-underline-offset: 3px; }
.pdf-link { display: inline-block; margin-top: 12px; font-size: 15px; }
.share-mac { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.share-mac button { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; min-height: 42px; padding: 8px 16px; border: 0; border-radius: 12px; background: var(--indigo-soft); color: var(--indigo); font: inherit; font-weight: 700; cursor: pointer; }
.share-mac button svg { width: 18px; height: 18px; }
.share-mac .done { margin-left: 8px; color: var(--indigo); font-weight: 700; }
.demo-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px; max-width: 36em; }
.demo-note strong { color: var(--ink); }
.demo-note .dot { flex: 0 0 10px; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--coral); }

/* ── 直式影片位 ── */
.vslot { position: relative; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: linear-gradient(170deg, #fffaf2 0%, #f3e6d3 58%, #e9d6bd 100%); box-shadow: 0 24px 60px rgba(43, 76, 126, 0.18), 0 0 0 8px #fff; isolation: isolate; }
.hero-media .vslot { width: 300px; }
.vslot img.poster, .vslot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vslot video { background: #000; z-index: 2; }
.vslot .ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 18px 16px 22px; text-align: center; }
.vslot .ph-lola { position: absolute; left: 50%; top: 11%; width: 90%; height: auto; transform: translateX(-50%); -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); }
.vslot .ph .lola { width: 58%; height: auto; position: absolute; left: 21%; top: 16%; }
.vslot .ph-title { position: relative; font-family: var(--round); font-weight: 800; font-size: 19px; line-height: 1.4; color: var(--ink); }
.vslot .ph-badge { position: relative; margin-top: 8px; display: inline-block; padding: 3px 12px; border-radius: 999px; background: rgba(43, 76, 126, 0.1); color: var(--indigo); font-size: 12.5px; font-weight: 700; }
.vslot .play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); cursor: pointer; display: grid; place-items: center; transition: transform 0.2s ease; }
.vslot .play::before { content: ""; margin-left: 6px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent var(--indigo); }
.vslot .play:hover { transform: scale(1.06); }
.vslot .cap { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px; background: linear-gradient(transparent, rgba(20, 26, 38, 0.72)); color: #fff; font-weight: 700; font-size: 15px; line-height: 1.4; }
.vslot.playing .play, .vslot.playing .cap { display: none; }
.hero-media .peek { position: absolute; left: -104px; bottom: -26px; width: 132px; height: 140px; z-index: 3; cursor: pointer; }
.hero-media .spark { position: absolute; z-index: 3; color: var(--gold); width: 22px; height: 22px; }
.hero-media .spark.s1 { right: -26px; top: 40px; }
.hero-media .spark.s2 { right: -12px; top: 92px; width: 14px; height: 14px; color: var(--coral); }
.hero-media .spark.s3 { left: -30px; top: 120px; width: 16px; height: 16px; color: var(--indigo-2); }
.motion .spark { animation: twinkle 3.2s ease-in-out infinite; }
.motion .spark.s2 { animation-delay: 1.1s; }
.motion .spark.s3 { animation-delay: 2s; }
@keyframes twinkle { 0%, 100% { transform: scale(0.7) rotate(0deg); opacity: 0.5; } 50% { transform: scale(1.1) rotate(20deg); opacity: 1; } }
.motion .hero-media .vslot { animation: floaty 6s ease-in-out infinite; }
.motion .hero-media .vslot.playing { animation: none; }
.hero-media .vslot.playing ~ .peek, .hero-media .vslot.playing ~ .spark { opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s 0.3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* 短片列 */
.shorts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.shorts .short { scroll-snap-align: start; }
.shorts .vslot { box-shadow: 0 12px 30px rgba(43, 76, 126, 0.12), 0 0 0 5px #fff; border-radius: 20px; }
.shorts .vslot .ph-title { font-size: 16px; }
.short-title { margin-top: 12px; font-weight: 700; font-size: 15px; line-height: 1.45; }
.short:nth-child(4n+2) .vslot { background: linear-gradient(170deg, #f6f8fd 0%, #e3eaf6 60%, #d3ddef 100%); }
.short:nth-child(4n+3) .vslot { background: linear-gradient(170deg, #fff7f2 0%, #f9e0d4 60%, #f2cbb9 100%); }
.short:nth-child(4n+4) .vslot { background: linear-gradient(170deg, #fffaf0 0%, #f6ead0 60%, #ecd9ae 100%); }

/* ── 重點 ── */
.facts { margin-top: 48px; }
.facts-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fact { padding: 18px 18px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.fact strong { display: block; color: var(--indigo); font-size: 23px; line-height: 1.3; }
.fact span { color: var(--ink-2); font-size: 14px; }

/* ── 區塊 ── */
.section { padding: 92px 0; position: relative; overflow-x: hidden; overflow-x: clip; }
.section.alt { background: #fff; }
.section.soft { background: var(--indigo-soft); }
.sec-head { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: end; margin-bottom: 40px; }
.label { display: inline-block; color: var(--coral); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; }
h2 { margin-top: 6px; font-size: 36px; line-height: 1.35; font-weight: 800; }
.sec-head p { color: var(--ink-2); }
.sec-head .lola { width: 70px; height: 76px; margin-bottom: 4px; }

/* ── 互動小示範 ── */
.demos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.demo { display: flex; flex-direction: column; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 22px rgba(43, 76, 126, 0.06); }
.demo h3 { font-size: 20px; line-height: 1.4; }
.demo > p { margin-top: 4px; color: var(--ink-2); font-size: 14.5px; }
.demo .stage { margin-top: 16px; flex: 1; }
.demo .fine { margin-top: 12px; color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.btn-soft { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 7px 14px; border: 0; border-radius: 12px; background: var(--indigo-soft); color: var(--indigo); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.btn-soft:hover { background: #dbe4f2; }
.btn-main { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 10px 20px; border: 0; border-radius: 14px; background: var(--indigo); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn-main:hover { background: var(--indigo-d); }

/* 示範 A：期限切れの写真 */
.photo-card { position: relative; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 16px; overflow: hidden; cursor: pointer; background: #ddd; display: block; padding: 0; font: inherit; text-align: left; }
.photo-card svg.scene { width: 100%; height: 100%; filter: grayscale(1) contrast(0.7) brightness(1.08) blur(1.6px); transition: filter 1.6s ease; }
.photo-card .badge { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 3px 11px; border-radius: 999px; background: rgba(33, 43, 59, 0.78); color: #fff; font-size: 12.5px; font-weight: 700; transition: background 0.4s; }
.photo-card .scan { position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.75) 50%, transparent 70%); background-size: 250% 100%; opacity: 0; }
.photo-card .tap { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 6px 12px; border-radius: 12px; background: #fff; color: var(--indigo); font-size: 13px; font-weight: 800; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); }
.motion .photo-card:not(.found) .tap { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(-3px); } }
.photo-card.scanning .scan { opacity: 1; animation: sweep 1.1s linear infinite; }
@keyframes sweep { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.photo-card.found svg.scene { filter: none; }
.photo-card.found .badge { background: var(--indigo); }
.photo-card.found .tap { display: none; }
.found-msg { margin-top: 14px; min-height: 3.4em; font-weight: 700; color: var(--indigo); font-size: 15.5px; line-height: 1.6; opacity: 0; transform: translateY(6px); transition: opacity 0.5s ease, transform 0.5s ease; }
.found-msg.show { opacity: 1; transform: none; }
.demo-photo .again { margin-top: 6px; visibility: hidden; }
.demo-photo.done .again { visibility: visible; }

/* 示範 B：検索 */
.search-box { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--indigo); background: #fff; }
.search-box svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--indigo); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; color: var(--ink); background: transparent; }
.search-box .caret { width: 2px; height: 1.2em; background: var(--indigo); }
.motion .search-box .caret { animation: caret 1s steps(1) infinite; }
.search-box.focused .caret { display: none; }
@keyframes caret { 50% { opacity: 0; } }
.hits-count { margin: 10px 2px 6px; font-size: 13px; color: var(--ink-3); min-height: 1.4em; }
.hits { list-style: none; display: grid; gap: 8px; align-content: start; min-height: 150px; }
.hits li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 9px 10px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; }
.hits li[hidden] { display: none; }
.hits .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo-soft); color: var(--indigo); font-weight: 800; font-size: 14px; }
.hits .meta { display: block; font-size: 12px; color: var(--ink-3); }
.hits .ago { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--peach); color: #6b2e1f; font-weight: 700; font-size: 11.5px; }
.hits mark { background: rgba(243, 191, 167, 0.8); color: inherit; border-radius: 3px; padding: 0 1px; }
.motion .hits li.pop { animation: pop 0.45s cubic-bezier(.2, .8, .3, 1.2) both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }

/* 示範 C：バックアップ → スキャン */
.flow { display: grid; gap: 14px; }
.flow-step { padding: 12px 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.flow-step .t { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; }
.flow-step .n { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo); color: #fff; font-size: 13px; }
.flow-step .ok { margin-left: auto; color: var(--indigo); opacity: 0; transition: opacity 0.3s; }
.flow-step.done .ok { opacity: 1; }
.bar { margin-top: 9px; height: 8px; border-radius: 8px; background: #ece4d6; overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--indigo-2), var(--indigo)); transform-origin: left; transform: scaleX(0); }
.flow-step .sub { margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; text-align: center; }
.counts div { padding: 6px 2px; border-radius: 10px; background: #fff; }
.counts b { display: block; font-family: var(--round); font-size: 19px; color: var(--indigo); font-variant-numeric: tabular-nums; }
.counts span { font-size: 12px; color: var(--ink-2); }
.devices { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 4px; color: var(--indigo); }
.devices svg { width: 34px; height: 34px; }
.devices .wire { flex: 0 1 90px; height: 2px; background: repeating-linear-gradient(90deg, var(--indigo) 0 6px, transparent 6px 11px); }
.motion .devices .wire { animation: wire 0.8s linear infinite; background-size: 22px 2px; }
@keyframes wire { to { background-position: 22px 0; } }

/* ── 截圖 ── */
.shots-wrap { position: relative; }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 760px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.shots figure { scroll-snap-align: start; }
.shots img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: #fff; box-shadow: 0 12px 32px rgba(33, 43, 59, 0.08); }
.shots figcaption { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; }
.shots-note { margin-top: 10px; color: var(--ink-3); font-size: 13.5px; }
.shots-nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.shots-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--indigo); font-size: 20px; font-weight: 800; cursor: pointer; }
.shots-nav button:hover { background: var(--indigo-soft); }

/* ── 功能 ── */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature { padding: 22px 20px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.feature .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--indigo-soft); color: var(--indigo); }
.feature .ic svg { width: 28px; height: 28px; }
.feature h3 { margin-top: 14px; font-size: 18px; line-height: 1.45; }
.feature p { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; }
.motion .feature:hover .ic { animation: wiggle 0.5s ease; }
@keyframes wiggle { 30% { transform: rotate(-8deg); } 60% { transform: rotate(6deg); } }

/* ── 三步驟（時間軸跟著捲動畫下去） ── */
.steps-tl { position: relative; display: grid; gap: 22px; padding-left: 52px; max-width: 760px; }
.steps-tl .rail, .steps-tl .rail-fill { position: absolute; left: 19px; top: 12px; bottom: 12px; width: 4px; border-radius: 4px; }
.steps-tl .rail { background: #e4dccd; }
.steps-tl .rail-fill { background: linear-gradient(var(--indigo), var(--coral)); transform-origin: top; transform: scaleY(1); }
.motion .steps-tl .rail-fill { transform: scaleY(0); }
.step { position: relative; padding: 16px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.step .num { position: absolute; left: -52px; top: 12px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo); color: #fff; font-weight: 800; font-family: var(--round); box-shadow: 0 0 0 5px var(--paper); transition: background 0.4s, transform 0.4s; }
.motion .step:not(.in) .num { background: #cfc6b6; transform: scale(0.85); }
.step h3 { font-size: 18px; }
.step p { margin-top: 4px; color: var(--ink-2); font-size: 15px; }
.steps-note { margin-top: 18px; color: var(--ink-2); font-size: 15px; max-width: 760px; }

/* ── 隱私 ── */
.privacy-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.privacy-copy p { margin-top: 14px; color: var(--ink-2); }
.lock { width: 64px; height: 64px; color: var(--indigo); margin-bottom: 8px; }
.lock .shackle { transition: transform 0.6s cubic-bezier(.3, 1.6, .5, 1) 0.3s; transform-box: fill-box; transform-origin: center bottom; }
.motion .privacy-copy:not(.in) .lock .shackle { transform: translateY(-7px); }
.privacy-list { list-style: none; display: grid; gap: 10px; }
.privacy-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid #d7e0ee; font-size: 15px; }
.privacy-list li::before { content: ""; flex: 0 0 20px; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--indigo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }

/* ── Windows ── */
.win-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.win-steps article { padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.win-steps .k { color: var(--ink-3); font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; }
.win-steps h3 { margin-top: 6px; font-size: 17px; }
.win-steps p { margin-top: 4px; color: var(--ink-2); font-size: 14.5px; }
.release-note { display: inline-block; margin-top: 18px; padding: 6px 14px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font-size: 14px; font-weight: 700; }

/* ── Pro ── */
.pro-band { background: var(--indigo); color: #f3f6fb; overflow: hidden; }
.pro-band .label { color: var(--peach); }
.pro-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; position: relative; }
.pro-layout p { margin-top: 14px; color: #d5deec; }
.price { margin-top: 20px; font-size: 52px; line-height: 1.1; font-weight: 800; color: #fff; }
.price span { display: block; margin-top: 8px; font-family: var(--font); font-size: 14px; font-weight: 500; color: #d5deec; }
.pro-list { list-style: none; display: grid; gap: 10px; }
.pro-list li { display: flex; gap: 12px; align-items: center; padding: 13px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); }
.pro-list li::before { content: ""; flex: 0 0 22px; width: 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.2C1 8.6 3 5 6.6 5c2.1 0 3.6 1.2 5.4 3.2C13.8 6.2 15.3 5 17.4 5 21 5 23 8.6 21.6 11.8 19.5 16.4 12 21 12 21z' fill='%23f3bfa7'/%3E%3C/svg%3E") center / contain no-repeat; }
.pro-cta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pro-cta .btn-main { background: #fff; color: var(--indigo); }
.pro-cta .btn-main:hover { background: var(--paper); }
.pro-band .lola-pro { position: absolute; right: -6px; bottom: -40px; width: 120px; height: 130px; opacity: 0.95; }

/* ── 更多 ── */
.more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.more-grid a { display: block; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.more-grid a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cdd7e8; }
.more-grid b { display: block; color: var(--indigo); font-size: 16.5px; }
.more-grid span { display: block; margin-top: 4px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }

/* ── 頁尾 ── */
footer { padding: 44px 16px 110px; background: #fff; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12.5px; text-align: center; line-height: 1.8; }
footer .lola { width: 56px; height: 60px; margin: 0 auto 10px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 12px; font-size: 13.5px; }
.footer-links a { color: var(--ink-2); text-underline-offset: 4px; }

/* ── 下方浮動列 ── */
.dock { position: fixed; left: 50%; bottom: 14px; z-index: 55; display: flex; align-items: center; gap: 10px; width: min(560px, calc(100% - 24px)); padding: 8px 8px 8px 12px; border-radius: 20px; background: rgba(255, 255, 255, 0.95); border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(33, 43, 59, 0.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transform: translate(-50%, 140%); visibility: hidden; transition: transform 0.45s cubic-bezier(.2, .8, .2, 1), visibility 0s linear 0.45s; }
.dock.show { transform: translate(-50%, 0); visibility: visible; transition: transform 0.45s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.dock .lola { flex: 0 0 38px; width: 38px; height: 40px; }
.dock .txt { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.dock .txt b { display: block; color: var(--ink); font-size: 14.5px; }
.dock .btn-main { min-height: 44px; padding: 8px 16px; font-size: 14.5px; white-space: nowrap; }

/* ── Lola（SVG 由 home.js 放進 [data-lola]） ── */
.lola { display: inline-block; }
.lola svg { width: 100%; height: 100%; overflow: visible; }
.lola .l-ear-l { transform-origin: 52px 40px; }
.lola .l-ear-r { transform-origin: 108px 40px; }
.lola .l-eyes { transform-origin: 80px 72px; transition: transform 0.08s; }
.lola.blink .l-eyes { transform: scaleY(0.1); }
.lola .l-heart { transform-origin: 80px 132px; }
.lola .l-hop { transform-origin: 80px 160px; }
.motion .lola .l-ear-l { animation: earL 3.6s ease-in-out infinite; }
.motion .lola .l-ear-r { animation: earR 3.6s ease-in-out infinite; }
.motion .lola .l-heart { animation: beat 2.4s ease-in-out infinite; }
@keyframes earL { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(7deg); } }
@keyframes earR { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-7deg); } }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 70% { transform: scale(1.12); } 80% { transform: scale(0.98); } 90% { transform: scale(1.06); } }
.motion .lola.hop .l-hop { animation: hop 0.7s cubic-bezier(.3, .6, .3, 1); }
@keyframes hop { 0% { transform: translateY(0) scale(1, 1); } 15% { transform: translateY(0) scale(1.06, 0.92); } 45% { transform: translateY(-22px) scale(0.96, 1.05); } 75% { transform: translateY(0) scale(1.05, 0.94); } 100% { transform: translateY(0) scale(1, 1); } }
.heart-pop { position: absolute; z-index: 70; width: 18px; height: 18px; pointer-events: none; color: var(--coral); animation: heartUp 1.1s ease-out forwards; }
@keyframes heartUp { from { opacity: 1; transform: translate(0, 0) scale(0.6); } to { opacity: 0; transform: translate(var(--dx, 0), -70px) scale(1.2); } }

/* ── 滑動進場 ── */
.motion .rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease-out, transform 0.8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.motion .rv.in { opacity: 1; transform: none; }
.motion .rv.from-l { transform: translateX(-30px); }
.motion .rv.from-r { transform: translateX(30px); }
.motion .rv.pop-in { transform: scale(0.92); }
.motion .rv.in.from-l, .motion .rv.in.from-r, .motion .rv.in.pop-in { transform: none; }
.motion .u path { stroke-dashoffset: 1; transition: stroke-dashoffset 0.9s cubic-bezier(.6, .1, .3, 1) 0.9s; }
.motion .in .u path, .motion .u.in path { stroke-dashoffset: 0; }
.motion .hl { background-size: 0% 100%; transition: background-size 0.8s ease 1.3s; }
.motion .in .hl { background-size: 100% 100%; }

/* ── 平板 ── */
@media (max-width: 960px) {
    .hero-grid { column-gap: 32px; }
    .hero h1 { font-size: 54px; }
    .tagline { font-size: 29px; }
    .hero-media .vslot { width: 260px; }
    .demos { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
    .feature-grid, .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── 手機 ── */
@media (max-width: 760px) {
    .topbar .wrap { min-height: 56px; padding-right: 180px; }
    .hero { padding-bottom: 40px; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "media" "cta"; padding-top: 12px; }
    .hero h1 { font-size: 44px; margin-top: 14px; }
    .tagline { margin-top: 14px; font-size: 25px; }
    .supporting { font-size: 16px; }
    .hero-media { margin: 30px auto 6px; }
    .hero-media .vslot { width: min(55vw, 240px); }
    .hero-media .peek { left: -80px; bottom: -20px; width: 100px; height: 106px; }
    .store-btns { margin-top: 22px; }
    .store-btn { flex: 1 1 100%; min-width: 0; }
    .share-mac { display: block; }
    .facts-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .fact { padding: 14px; }
    .fact strong { font-size: 20px; }
    .section { padding: 68px 0; }
    .sec-head { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 28px; }
    h2 { font-size: 28px; }
    .shorts { grid-auto-columns: 62%; gap: 14px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px; }
    .shots { grid-auto-columns: 90%; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px; }
    .shots-nav { display: none; }
    .feature-grid, .more-grid, .win-steps { grid-template-columns: minmax(0, 1fr); }
    .privacy-layout, .pro-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .price { font-size: 44px; }
    .pro-band .lola-pro { width: 90px; height: 98px; bottom: -48px; }
    .steps-tl { padding-left: 50px; }
    .demo { padding: 18px; }
}
@media (hover: none) and (pointer: coarse) { .share-mac { display: block; } }

/* ── 減少動態效果：全部直接顯示、不播動畫 ── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
    .rv { opacity: 1 !important; transform: none !important; }
}

/* 首屏不等 JS：純 CSS 進場，結尾就是顯示狀態（慢速網路、省電模式、爬蟲都不會看到空白首屏） */
.hero .rv, .motion .hero .rv { opacity: 1; transform: none; transition: none; animation: hero-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s) both; }
.hero .rv.pop-in, .motion .hero .rv.pop-in { animation-name: hero-pop; }
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hero-pop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero .rv, .motion .hero .rv { animation: none; } }
