/*
 * TimeMind 首頁（2026-10-19 改版）
 * - 只有三語首頁載入，放在 site.css 與 public-stats.css 之後。
 * - 首屏：左邊一句話說清楚 App 在做什麼＋兩個下載按鈕（電腦再加掃碼），右邊是「說一句話 → 任務」的手機示範。
 * - App 介面示意全部用 HTML／CSS 畫（沒有截圖），顏色對齊 constants/theme.ts，跟著網站深淺色切換；
 *   示意元件都標 aria-hidden，旁邊的文字才是內容。小時的造型與配色同 components/xiaoshi/mascotGeometry.ts：
 *   深色模式也維持白色臉與炭黑五官（2026-10-19 App 改動），只有輪廓、天線與小手改淺灰 #AEAEB2。
 * - 文字最小 .88rem（15px，只有標籤），內文 ≥ .94rem。
 */

/* ───────── App 介面與小時的色票 ───────── */

:root {
  --app-bg: #f5f4f0;
  --app-card: #ffffff;
  --app-ink: #262626;
  --app-muted: #67676c;
  --app-line: rgba(0, 0, 0, .07);
  --app-fill: #ecebe5;
  --app-accent: #0f766e;
  --app-accent-fill: #0d9488;
  --app-accent-soft: #e3f4f1;
  --app-violet: #6d5bd0;
  --app-violet-soft: #ece9fb;
  --app-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 24px -14px rgba(0, 0, 0, .22);
  --stage-glow: rgba(13, 148, 136, .26);
  --xs-outline: #262626;
  --xs-body: #ffffff;
  --xs-shade: #efe8db;
  --xs-feature: #262626;
  --xs-cheek: #f6a393;
  --xs-cheek-o: .55;
  --xs-knob: #2dd4bf;
  --xs-tongue: #f07f72;
  --xs-shadow: #262626;
  --xs-shadow-o: .12;
  --xs-gloss-o: 0;
}

:root[data-theme="dark"] {
  --app-bg: #000000;
  --app-card: #161618;
  --app-ink: #fafafa;
  --app-muted: #98989f;
  --app-line: rgba(255, 255, 255, .08);
  --app-fill: #1c1c1e;
  --app-accent: #5eead4;
  --app-accent-fill: #0d9488;
  --app-accent-soft: #123b37;
  --app-violet: #b3a8f5;
  --app-violet-soft: #26213f;
  --app-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 12px 28px -14px rgba(0, 0, 0, .8);
  --stage-glow: rgba(94, 234, 212, .2);
  --xs-outline: #aeaeb2;
  --xs-body: #ffffff;
  --xs-shade: #efe8db;
  --xs-feature: #262626;
  --xs-cheek: #f6a393;
  --xs-cheek-o: .55;
  --xs-knob: #5eead4;
  --xs-tongue: #f07f72;
  --xs-shadow: #000000;
  --xs-shadow-o: .35;
  --xs-gloss-o: 0;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --app-bg: #000000;
    --app-card: #161618;
    --app-ink: #fafafa;
    --app-muted: #98989f;
    --app-line: rgba(255, 255, 255, .08);
    --app-fill: #1c1c1e;
    --app-accent: #5eead4;
    --app-accent-fill: #0d9488;
    --app-accent-soft: #123b37;
    --app-violet: #b3a8f5;
    --app-violet-soft: #26213f;
    --app-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 12px 28px -14px rgba(0, 0, 0, .8);
    --stage-glow: rgba(94, 234, 212, .2);
    --xs-outline: #aeaeb2;
    --xs-body: #ffffff;
    --xs-shade: #efe8db;
    --xs-feature: #262626;
    --xs-cheek: #f6a393;
    --xs-cheek-o: .55;
    --xs-knob: #5eead4;
    --xs-tongue: #f07f72;
    --xs-shadow: #000000;
    --xs-shadow-o: .35;
    --xs-gloss-o: 0;
  }
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ───────── 首屏 ───────── */

.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(36px, 5vw, 80px) 0 clamp(72px, 8vw, 120px); }
/* 柔光（右側薄荷、左上暖光）＋淡出的點陣，只在首屏頂端，不影響文字對比。 */
.hero::before {
  content: ""; position: absolute; inset: -240px -12% auto; z-index: -2; height: 1100px; pointer-events: none;
  background:
    radial-gradient(34% 42% at 74% 44%, var(--stage-glow), transparent 72%),
    radial-gradient(30% 34% at 12% 10%, rgba(251, 191, 120, .16), transparent 72%),
    radial-gradient(24% 28% at 96% 6%, rgba(94, 234, 212, .16), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0 0 auto; z-index: -1; height: 880px; pointer-events: none;
  background-image: radial-gradient(var(--grid-line) 1.1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(64% 58% at 50% 18%, #000 0%, transparent 76%);
  mask-image: radial-gradient(64% 58% at 50% 18%, #000 0%, transparent 76%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(32px, 5vw, 80px);
  width: min(var(--wrap-wide), 100% - 2 * var(--gutter)); margin-inline: auto;
}
.hero-grid > .wrap, .hero-grid > .wrap-wide { width: auto; margin-inline: 0; }
.hero-inner { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.hero-brand { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: 1.24rem; font-weight: 700; letter-spacing: -.02em; }
.hero-icon {
  width: 60px; height: 60px; border-radius: 15px;
  box-shadow: 0 0 0 .5px var(--line), 0 2px 6px rgba(0, 0, 0, .06), 0 14px 30px -10px rgba(0, 0, 0, .28);
}
.hero h1 {
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 3.6vw + 1.1rem, 4.75rem); line-height: 1.06; font-weight: 700; letter-spacing: -.038em;
  text-wrap: balance; overflow-wrap: break-word;
}
html[lang^="zh"] .hero h1 { line-height: 1.16; letter-spacing: -.02em; }
.hero-accent {
  background: linear-gradient(100deg, var(--ink) 8%, var(--accent) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero .hero-lead { max-width: 27em; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; }

/* 商店風格的下載按鈕：深色模式反白。沒有使用 Apple 標誌，只用手機與 Android 輪廓。 */
.store-btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 62px; padding: 10px 24px 10px 18px;
  border-radius: 18px; background: var(--ink); color: var(--paper); text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .14), 0 16px 32px -18px rgba(0, 0, 0, .55);
  transition: transform .2s ease, box-shadow .2s ease;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0, 0, 0, .14), 0 22px 40px -18px rgba(0, 0, 0, .6); }
.store-btn:active { transform: scale(.98); }
.store-btn svg { width: 28px; height: 28px; flex: none; }
.store-btn-label { display: grid; line-height: 1.22; text-align: left; }
.store-btn-label small { font-size: .88rem; font-weight: 500; opacity: .78; }
.store-btn-label strong { font-size: 1.18rem; font-weight: 700; letter-spacing: -.01em; }

.qr-code { display: block; width: 100%; height: auto; padding: 7%; border-radius: 10px; background: #ffffff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.hero-qr { display: none; }

.platform-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; margin-top: 20px; color: var(--muted); font-size: .94rem; }
.platform-links span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.platform-links span::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.4 8.3 2.3 2.3 4.9-5' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
:root[data-theme="dark"] .platform-links span::before { background-color: var(--app-accent-fill); }
.platform-links a { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: none; }
.platform-links a::after { content: "›"; color: var(--accent); font-size: 1.2em; line-height: 1; }
.platform-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* 人生時鐘入口（2026-10-24）：手機沒有頂部選單、小節在很下面，首屏放一個膠囊連結。 */
.hero-life-clock {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 12px; padding: 6px 16px 6px 9px; box-sizing: border-box;
  border-radius: 999px; background: color-mix(in srgb, #C9860A 13%, var(--card)); color: var(--ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #C9860A 30%, transparent);
  font-size: 1rem; font-weight: 700; line-height: 1.3; text-align: start; text-decoration: none;
  transition: background-color .2s ease;
}
.hero-life-clock svg { width: 30px; height: 30px; flex: none; }
.hero-life-clock::after { content: "›"; margin-left: -2px; opacity: .55; font-size: 1.3em; line-height: 1; }
.hero-life-clock:hover { background: color-mix(in srgb, #C9860A 21%, var(--card)); }
.hero-life-clock:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 3px; }

.hero-inner > .public-stats { width: min(100%, 31rem); margin-top: 30px; padding: 18px 22px; border-radius: 22px; }

/* 開場：首屏只播一次的淡入（減少動態效果時由 site.css 關閉）。 */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-inner > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-inner > :nth-child(2) { animation-delay: .06s; }
.hero-inner > :nth-child(3) { animation-delay: .12s; }
.hero-inner > :nth-child(4) { animation-delay: .18s; }
.hero-inner > :nth-child(n+5) { animation-delay: .24s; }
.hero-stage { animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) .2s both; }

/* ───────── 手機示範（說一句話 → 任務） ───────── */

.hero-stage { position: relative; display: grid; justify-items: center; min-width: 0; }
.hero-stage::before {
  content: ""; position: absolute; top: 6%; left: 50%; z-index: -1; width: min(560px, 120%); aspect-ratio: 1; translate: -50% 0;
  border-radius: 50%; background: radial-gradient(closest-side, var(--stage-glow), transparent); pointer-events: none;
}
.capture { position: relative; display: grid; justify-items: center; gap: 26px; }
.phone {
  --pw: min(340px, 82vw);
  position: relative; width: var(--pw); aspect-ratio: 340 / 700; padding: .74em;
  font-size: calc(var(--pw) / 23);
  border-radius: 3.7em;
  background: linear-gradient(150deg, #3b3b3f 0%, #141416 16%, #0b0b0c 58%, #2b2b2e 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .16),
    inset 0 0 0 .34em #0a0a0b,
    0 2px 4px rgba(0, 0, 0, .1),
    0 44px 80px -34px rgba(16, 24, 22, .6);
}
.phone::before, .phone::after { content: ""; position: absolute; width: .24em; border-radius: .2em; background: #1f1f22; }
.phone::before { left: -.2em; top: 18%; height: 6.5%; box-shadow: 0 calc(var(--pw) * .115) 0 #1f1f22; }
.phone::after { right: -.2em; top: 25%; height: 11%; }
.phone-screen {
  position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border-radius: 2.96em; background: var(--app-bg); color: var(--app-ink); line-height: 1.4;
}
.phone-status { position: relative; display: flex; align-items: center; justify-content: space-between; flex: none; height: 3.4em; padding: .35em 1.9em 0 2.2em; font-weight: 600; }
.phone-status svg { width: 2.7em; height: .82em; }
.phone-island { position: absolute; top: .74em; left: 50%; width: 7.2em; height: 2.1em; margin-left: -3.6em; border-radius: 99em; background: #000000; }
.phone-bar { display: grid; grid-template-columns: 2.6em minmax(0, 1fr) 2.6em; align-items: center; flex: none; padding: .35em 1.05em .9em; text-align: center; }
.phone-bar strong { font-size: 1.06em; font-weight: 600; }
.phone-btn {
  display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%;
  background: var(--app-card); box-shadow: 0 0 0 1px var(--app-line), 0 1px 2px rgba(0, 0, 0, .06); color: var(--app-ink);
}
.phone-btn svg { width: 1.2em; height: 1.2em; }
.phone-btn.is-ok { color: var(--app-accent); }
.phone-home { position: absolute; bottom: .55em; left: 50%; width: 8.6em; height: .3em; margin-left: -4.3em; border-radius: 99em; background: var(--app-ink); opacity: .8; }

/* 卡片排列：DOM 先「你說」再「新任務」；畫面上任務在上、語音在下（靠近麥克風）。 */
.capture-flow { display: flex; flex: 1; flex-direction: column-reverse; justify-content: space-between; gap: .9em; min-height: 0; padding: 0 1.05em 1.75em; }
.said, .made { border-radius: 1.45em; background: var(--app-card); box-shadow: var(--app-shadow); }
.said { padding: 1em 1.1em 1.1em; transition: box-shadow .35s ease; }
.capture.is-listening .said { box-shadow: 0 0 0 2px var(--app-accent-fill), var(--app-shadow); }
.said-head { display: flex; align-items: center; gap: .55em; color: var(--app-muted); font-size: .94em; font-weight: 600; }
.mic { position: relative; display: grid; place-items: center; width: 2.05em; height: 2.05em; border-radius: 50%; background: var(--app-accent-fill); color: #ffffff; }
.mic svg { width: 1.05em; height: 1.05em; }
.capture.is-listening .mic::after { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: mic-pulse 1.3s ease-out infinite; }
@keyframes mic-pulse { from { box-shadow: 0 0 0 0 rgba(13, 148, 136, .5); } to { box-shadow: 0 0 0 .75em rgba(13, 148, 136, 0); } }
.wave { display: flex; align-items: center; gap: .2em; height: 1.4em; margin-left: auto; }
.wave i { display: block; width: .2em; height: .42em; border-radius: .1em; background: color-mix(in srgb, var(--app-muted) 40%, transparent); transform-origin: center; }
.capture.is-listening .wave i { background: var(--app-accent-fill); animation: wave .9s ease-in-out infinite; }
.capture.is-listening .wave i:nth-child(2n) { animation-delay: -.3s; }
.capture.is-listening .wave i:nth-child(3n) { animation-delay: -.6s; }
@keyframes wave { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(2.8); } }
.said-text {
  min-height: calc(1.36em * 3); margin-top: .62em;
  font-family: var(--font-display); font-size: 1.34em; line-height: 1.36; font-weight: 600; letter-spacing: -.012em;
  text-wrap: pretty; overflow-wrap: anywhere;
}
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: var(--app-accent-fill); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.made { padding: .45em 1.15em .65em; transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1); }
.capture.is-listening .made { opacity: .42; transform: translateY(.5em) scale(.985); }
.made-head { display: flex; align-items: center; justify-content: space-between; gap: .6em; padding: .75em 0 .4em; }
.made-head strong { font-size: 1.04em; font-weight: 700; }
.ai-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  background: var(--app-accent-soft); color: var(--app-accent); font-size: .88rem; font-weight: 700; line-height: 1.5; white-space: nowrap;
}
.ai-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.phone .ai-tag { gap: .4em; padding: .2em .72em; font-size: .86em; }
.phone .ai-tag::before { width: .42em; height: .42em; }
.made .ai-tag { transition: opacity .3s ease; }
.capture.is-working .made .ai-tag { opacity: 0; }
.fields > div { display: grid; grid-template-columns: 3.7em minmax(0, 1fr); gap: .6em; align-items: baseline; padding: .6em 0; border-top: 1px solid var(--app-line); }
html[lang="en"] .fields > div { grid-template-columns: 5.4em minmax(0, 1fr); }
.fields > div:first-child { border-top: 0; }
.fields dt { color: var(--app-muted); font-size: .94em; }
.fields dd { font-size: 1.04em; font-weight: 600; transition: opacity .35s ease, color .6s ease; }
.fields dd.is-pending { opacity: 0; }
.fields dd.is-fresh { color: var(--app-accent); }

.capture-langs {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 2px; padding: 4px; border-radius: 999px;
  background: var(--card); box-shadow: var(--tile-edge), 0 10px 24px -16px rgba(0, 0, 0, .3);
}
.capture-langs button {
  min-width: 0; min-height: 44px; padding: 6px 18px; border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); font-size: .94rem; font-weight: 600; cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
.capture-langs button:hover { color: var(--ink); }
.capture-langs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* 手機旁浮出的卡片：只蓋在畫面中段的空白處，不擋示範內容。 */
.float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: .7em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 24px 44px -20px rgba(0, 0, 0, .45);
  animation: bob 7s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -.4em; } }
.float-xs { flex: none; width: 2.5em; height: 2.5em; }
.float-island {
  --xs-outline: #aeaeb2; --xs-knob: #5eead4; --xs-shadow-o: 0;
  top: 47%; left: max(-4.4em, -6vw); padding: .62em .7em .62em .55em; border-radius: 99em; background: #050505; color: #f5f5f7;
}
:root[data-theme="dark"] .float-island { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 24px 44px -20px rgba(0, 0, 0, .8); }
.float-island > span:not(.float-ring) { display: grid; line-height: 1.25; padding-right: .4em; }
.float-island strong { font-size: 1em; font-weight: 600; }
.float-island small { color: rgba(245, 245, 247, .6); font-size: .86em; }
.float-ring {
  display: grid; place-items: center; width: 3.5em; height: 3.5em; border-radius: 50%; color: #5eead4; font-size: .82em; font-weight: 700;
  background: radial-gradient(closest-side, #050505 80%, transparent 82%), conic-gradient(#5eead4 0 72%, rgba(255, 255, 255, .16) 72% 100%);
}
.float-chat {
  top: 61%; right: max(-4.6em, -6vw); width: 13.6em; align-items: flex-start; padding: .8em .95em .85em .75em; border-radius: 1.3em 1.3em 1.3em .4em;
  background: color-mix(in srgb, var(--card) 88%, transparent); color: var(--ink);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 0 0 1px var(--hairline), 0 24px 44px -20px rgba(0, 0, 0, .4);
  animation-delay: -3.5s;
}
.float-chat .float-xs { width: 2.3em; height: 2.3em; }
.float-chat p { font-size: .94em; line-height: 1.45; }
.float-chat strong { display: block; color: var(--accent); font-size: .92em; }

/* ───────── 功能：三張卡片＋App 介面示意 ───────── */

.home .section { padding-block: clamp(80px, 9vw, 128px); }

.tour { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; }
.tour-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border-radius: var(--r-stage); background: var(--card); box-shadow: var(--tile-edge), 0 1px 2px rgba(0, 0, 0, .03);
}
.tour-copy { padding: 36px 34px 0; }
.tour-copy h3 { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.25; font-weight: 700; letter-spacing: -.022em; }
.tour-copy p { margin-top: 10px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.tour-visual {
  position: relative; flex: 1; min-height: 320px; margin-top: 28px; padding: 24px 26px 28px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--paper-alt) 80%, transparent) 70%);
  color: var(--app-ink); font-size: 15px; line-height: 1.4;
  overflow: hidden; /* App 介面示意只是裝飾：放大字級時裁掉，不撐出畫面。 */
}
:root[data-theme="dark"] .tour-visual { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .03) 70%); }
.mock-card { border-radius: 18px; background: var(--app-card); box-shadow: 0 0 0 1px var(--app-line), var(--app-shadow); }
.mock-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 8px; }
.mock-row { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); gap: 8px; padding: 8px 0; border-top: 1px solid var(--app-line); }
html[lang="en"] .mock-row { grid-template-columns: 4.6em minmax(0, 1fr); }
.mock-row span { color: var(--app-muted); }
.mock-row strong { font-weight: 600; }

.mock-modes { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--app-card); box-shadow: 0 0 0 1px var(--app-line); }
.mock-modes span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; color: var(--app-muted); font-weight: 600; }
.mock-modes span.is-on { background: var(--app-accent-fill); color: #ffffff; }
.mock-modes svg { width: 16px; height: 16px; flex: none; }
.mock-poster {
  position: absolute; left: 22px; top: 76px; display: flex; flex-direction: column; gap: 6px; width: 118px; height: 154px; padding: 14px 13px;
  border-radius: 14px; color: #ffffff; rotate: -7deg;
  background: radial-gradient(90% 60% at 20% 10%, rgba(255, 255, 255, .28), transparent 60%), linear-gradient(160deg, #0d9488, #312e81 92%);
  box-shadow: 0 18px 30px -16px rgba(30, 27, 75, .6);
}
.mock-poster small { align-self: flex-start; padding: 1px 7px; border-radius: 6px; background: rgba(255, 255, 255, .22); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.mock-poster strong { margin-top: auto; font-family: var(--font-display); font-size: 21px; line-height: 1.1; letter-spacing: -.01em; }
.mock-poster span { font-size: 13px; opacity: .85; }
.mock-result { position: absolute; right: 20px; bottom: 24px; width: min(214px, 60%); padding: 12px 16px 6px; }
html[lang="en"] .mock-result { width: min(236px, 66%); }
.mock-card-head > strong { white-space: nowrap; }
.mock-result strong { font-weight: 700; }
.mock-result .mock-row strong { font-weight: 600; }

.mock-cal { display: flex; flex-direction: column; gap: 14px; }
.mock-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 6px; border-radius: 16px; background: var(--app-card); box-shadow: 0 0 0 1px var(--app-line); color: var(--app-muted); font-weight: 600; text-align: center; }
.mock-week span { padding: 6px 0; border-radius: 10px; }
.mock-week .is-today { background: var(--app-ink); color: var(--app-bg); }
.mock-day { position: relative; display: grid; grid-template-rows: repeat(5, 44px); }
.mock-hour { padding-top: 2px; border-top: 1px dashed color-mix(in srgb, var(--app-muted) 35%, transparent); color: var(--app-muted); font-size: 14px; }
.mock-event {
  position: absolute; left: 56px; right: 4px; display: flex; flex-direction: column; justify-content: center; padding: 4px 12px;
  border-radius: 12px; font-size: 14px; line-height: 1.3; overflow: hidden;
}
.mock-event strong { font-size: 15px; font-weight: 600; }
.mock-event span { color: var(--app-muted); }
.mock-event.is-yoga { top: 46px; height: 42px; background: var(--app-accent-soft); box-shadow: inset 3px 0 0 var(--app-accent-fill); }
.mock-event.is-call { top: 112px; height: 32px; flex-direction: row; align-items: center; justify-content: space-between; background: var(--app-violet-soft); box-shadow: inset 3px 0 0 var(--app-violet); }
.mock-event.is-ghost { top: 178px; height: 40px; border: 1.5px dashed color-mix(in srgb, var(--app-muted) 55%, transparent); }
.mock-event.is-drag {
  top: 150px; left: 70px; right: -6px; height: 44px; rotate: 2deg; background: var(--app-card);
  box-shadow: 0 0 0 1.5px var(--app-accent-fill), 0 18px 28px -14px rgba(0, 0, 0, .45);
}
.mock-event.is-drag span { color: var(--app-accent); font-weight: 600; }

.mock-friends { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.mock-share { padding: 14px 16px 16px; }
.mock-share-head { display: flex; align-items: center; gap: 10px; color: var(--app-muted); }
.mock-share-head strong, .mock-toast strong { margin-right: 4px; color: var(--app-ink); font-weight: 700; }
.mock-avatar { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--app-accent-soft); color: var(--app-accent); font-weight: 700; }
.mock-avatar.is-alt { background: var(--app-violet-soft); color: var(--app-violet); }
.mock-task { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--app-bg); }
.mock-task > span { display: grid; }
.mock-task strong { font-size: 16px; font-weight: 600; }
.mock-task small { color: var(--app-muted); font-size: 14px; }
.mock-check { flex: none; width: 22px; height: 22px; border: 2px solid color-mix(in srgb, var(--app-muted) 70%, transparent); border-radius: 50%; }
.mock-actions { display: flex; gap: 8px; margin-top: 12px; }
.mock-actions span { flex: 1; padding: 7px 10px; border-radius: 999px; background: var(--app-fill); font-weight: 600; text-align: center; }
.mock-actions .is-on { background: var(--app-accent-fill); color: #ffffff; }
.mock-toast { display: flex; align-items: center; gap: 10px; margin-left: 18px; padding: 12px 14px; color: var(--app-muted); }
.mock-toast > span:not(.mock-avatar):not(.mock-poke) { display: grid; min-width: 0; line-height: 1.35; }
.mock-toast small { font-size: 14px; }
.mock-poke { margin-left: auto; padding: 6px 12px; border-radius: 999px; background: var(--app-accent-soft); color: var(--app-accent); font-weight: 700; white-space: nowrap; }

/* ───────── 細節：大小不一的展示格 ───────── */

.home .section-details { padding-top: 0; }
.details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; }
.detail { display: flex; flex-direction: column; min-width: 0; padding: 32px 30px; border-radius: var(--r-tile); background: var(--card); box-shadow: var(--tile-edge); }
.detail svg { width: 30px; height: 30px; margin-bottom: 24px; color: var(--accent); }
.detail h3 { font-family: var(--font-display); font-size: 1.28rem; line-height: 1.3; font-weight: 700; letter-spacing: -.015em; }
.detail p { margin-top: 8px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.detail.is-feature {
  grid-column: span 2; grid-row: span 2; overflow: hidden; padding: 36px 34px 0;
  background: radial-gradient(70% 60% at 85% 100%, rgba(13, 148, 136, .45), transparent 70%), #0c0d0e; color: #f5f5f7;
}
:root[data-theme="dark"] .detail.is-feature { box-shadow: inset 0 0 0 1px var(--line); }
.detail.is-feature h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.detail.is-feature p { max-width: 30em; color: rgba(245, 245, 247, .68); font-size: 1.06rem; }
.detail.is-feature svg { color: #5eead4; }
.detail-visual { display: grid; justify-items: center; gap: 16px; margin-top: auto; padding: 36px 0 0; font-size: 15px; }
.mock-island {
  --xs-outline: #aeaeb2; --xs-knob: #5eead4; --xs-shadow-o: 0;
  display: flex; align-items: center; gap: 12px; width: min(100%, 340px); padding: 10px 12px 10px 10px; border-radius: 999px; background: #000000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 20px 40px -20px rgba(0, 0, 0, .8);
}
.mock-island > span:not(.mock-ring) { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.mock-island strong { font-weight: 600; }
.mock-island small { color: rgba(245, 245, 247, .6); font-size: 14px; }
.mock-xs { flex: none; width: 44px; height: 44px; }
.mock-ring {
  display: grid; flex: none; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: #5eead4; font-size: 13px; font-weight: 700;
  background: radial-gradient(closest-side, #000000 80%, transparent 82%), conic-gradient(#5eead4 0 72%, rgba(255, 255, 255, .16) 72% 100%);
}
.mock-lock {
  display: grid; gap: 10px; width: min(100%, 380px); padding: 18px 20px 20px; border-radius: 26px 26px 0 0;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.mock-lock-top { display: flex; justify-content: space-between; color: rgba(245, 245, 247, .6); font-size: 14px; }
.mock-lock > strong { font-size: 18px; font-weight: 700; }
.mock-bar { display: block; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.mock-bar i { display: block; width: 62%; height: 100%; border-radius: inherit; background: #5eead4; }
.mock-lock .mock-actions span { background: rgba(255, 255, 255, .14); color: #f5f5f7; }
.mock-lock .mock-actions .is-on { background: #5eead4; color: #04201d; }
.detail.is-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 28px; }
.detail-number {
  flex: none; font-family: var(--font-display); font-size: clamp(3.2rem, 6vw, 4.6rem); font-weight: 700; letter-spacing: -.05em; line-height: 1;
  background: linear-gradient(120deg, var(--ink), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ───────── 小時 ───────── */

.companion { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(40px, 7vw, 96px); align-items: center; }
.companion .section-head { margin-bottom: 0; }
.companion-notes { display: grid; gap: 14px; margin-top: 32px; list-style: none; }
.companion-notes li { position: relative; padding-left: 30px; color: var(--muted); }
.companion-notes li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ai-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m5 9.3 2.6 2.6L13 6.4' fill='none' stroke='%230f766e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
:root[data-theme="dark"] .companion-notes li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m5 9.3 2.6 2.6L13 6.4' fill='none' stroke='%235eead4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.companion-visual { position: relative; min-width: 0; padding-top: 92px; }
/* 人生時鐘小節（2026-10-23，website.md §3.10；2026-10-24 改成可以拖年齡的試玩卡，§3.14）。
   卡片底色跟著時段（同 /life-clock 的 THEMES）：home.js 設 data-period，傍晚與夜晚白字。 */
.life-preview {
  --lp-from: #FFF7DE; --lp-to: #FCDF9A; --lp-ink: #262626; --lp-soft: #5E5640; --lp-accent: #C9860A; --lp-knob: #FFF6DA;
  display: grid; justify-items: center; gap: 6px; padding: 32px 28px 26px;
  border-radius: var(--r-stage); background: linear-gradient(180deg, var(--lp-from), var(--lp-to)); color: var(--lp-ink);
  box-shadow: var(--shadow); text-align: center; min-width: 0;
}
.life-preview[data-period="dawn"] { --lp-from: #F6E4E8; --lp-to: #DCD3F2; --lp-soft: #5B5560; --lp-accent: #8F79CF; --lp-knob: #FBF3F6; }
.life-preview[data-period="noon"] { --lp-from: #E9F8F4; --lp-to: #BFEADF; --lp-soft: #3F5A54; --lp-accent: #0F766E; --lp-knob: #F1FBF8; }
.life-preview[data-period="afternoon"] { --lp-from: #FFEFD6; --lp-to: #F4C27F; --lp-soft: #5E4A2E; --lp-accent: #B45309; --lp-knob: #FFF4E2; }
.life-preview[data-period="evening"] { --lp-from: #F0936E; --lp-to: #9E4C7C; --lp-ink: #FFFFFF; --lp-soft: #FFE9E1; --lp-accent: #FFE2A8; --lp-knob: #9E4C7C; }
.life-preview[data-period="night"] { --lp-from: #2A3566; --lp-to: #0D1330; --lp-ink: #FFFFFF; --lp-soft: #D9DEF5; --lp-accent: #FFD86B; --lp-knob: #1A2250; }
.life-preview[data-period="overtime"] { --lp-from: #FCF1C9; --lp-to: #E9C767; --lp-soft: #5B4A1E; --lp-accent: #8A5A00; --lp-knob: #FFF8DF; }
.life-preview svg { width: min(240px, 62vw); height: auto; }
.life-preview .lp-arc { stroke: var(--lp-accent); transition: stroke-dasharray .35s ease; }
.life-preview .lp-knob { fill: var(--lp-accent); stroke: var(--lp-knob); }
.life-preview .lp-hand { transition: transform .35s ease; }
.life-preview-labels { fill: currentColor; fill-opacity: .72; font: 700 12px var(--font-round); text-anchor: middle; dominant-baseline: middle; }
.life-preview-time { font: 800 min(4.6rem, max(3.2rem, 9vw), 17vw)/1 var(--font-round); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.life-preview-period { padding: 2px 12px; border-radius: 999px; background: color-mix(in srgb, var(--lp-ink) 10%, transparent); font-size: 1rem; font-weight: 700; }
.life-preview-line { max-width: 24em; margin-top: 8px; color: var(--lp-soft); font-size: 1.06rem; font-weight: 600; line-height: 1.6; text-wrap: pretty; }
.life-age { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; width: 100%; max-width: 360px; margin-top: 14px; font-weight: 700; text-align: left; }
.life-age[hidden] { display: none; }
.life-age label { font-size: 1rem; }
.life-age output { font: 800 1.2rem/1.2 var(--font-round); font-variant-numeric: tabular-nums; }
.life-age input { grid-column: 1 / -1; width: 100%; height: 44px; margin: 0; accent-color: var(--lp-accent); cursor: pointer; }
.life-age input:focus-visible { outline: 3px solid color-mix(in srgb, var(--lp-ink) 55%, transparent); outline-offset: 2px; }
.life-cta { width: 100%; max-width: 360px; margin-top: 10px; }
.life-preview .more-link { color: var(--lp-ink); font-size: 1rem; }
@media (prefers-reduced-motion: reduce) { .life-preview .lp-arc, .life-preview .lp-hand { transition: none; } }
.companion-mascot {
  position: absolute; top: 4px; right: 18px; z-index: 2; width: 140px; height: 140px;
  filter: drop-shadow(0 20px 22px rgba(0, 0, 0, .14)); animation: bob 6s ease-in-out infinite;
}
.chat { position: relative; display: grid; gap: 10px; min-width: 0; padding: 26px; border-radius: var(--r-stage); background: var(--card); box-shadow: var(--shadow); overflow-wrap: anywhere; }
.chat-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-weight: 700; }
.chat-avatar { width: 36px; height: 36px; padding: 3px; border-radius: 50%; background: var(--paper-alt); }
.chat-who .ai-tag { margin-left: 2px; }
.bubble { max-width: 82%; padding: 11px 16px; border-radius: 20px; font-size: 1rem; line-height: 1.5; }
.bubble.me { justify-self: end; border-bottom-right-radius: 6px; background: var(--accent); color: var(--on-accent); }
.bubble.ai { justify-self: start; border-bottom-left-radius: 6px; background: var(--paper-alt); }

/* ───────── 版本故事：深色舞台，最新版在最前面；原生橫向捲動，沒有 JS 也能滑。 ───────── */

.release-history {
  --paper: #000000; --paper-alt: #111113; --card: #161618; --card-alt: #161618;
  --ink: #f5f5f7; --muted: #a1a1a6; --line: #2e2e31; --line-strong: #4a4a4e; --fill: #232326;
  --accent: #5eead4; --accent-hover: #99f6e4; --on-accent: #04201d; --link: #5eead4;
  --ai-soft: #123b37; --on-ink: #000000;
  --shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 24px 60px rgba(0, 0, 0, .55);
  position: relative; isolation: isolate; color-scheme: dark; overflow: hidden;
  background: radial-gradient(60% 50% at 12% 0%, rgba(13, 148, 136, .28), transparent 70%), #000000;
  color: var(--ink); container-type: inline-size;
}
:root[data-theme="dark"] .release-history { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.release-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.home .release-heading .section-head { max-width: 40em; min-width: 0; margin-bottom: 0; }
.release-controls { display: flex; flex: none; gap: 12px; }
.release-controls[hidden], .release-picker[hidden] { display: none; }
.release-arrow {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: var(--fill); color: var(--ink); cursor: pointer; transition: background-color .2s ease, opacity .2s ease;
}
.release-arrow svg { width: 22px; height: 22px; }
.release-arrow:hover:not([aria-disabled="true"]) { background: #3a3a3c; }
.release-arrow[aria-disabled="true"] { opacity: .35; cursor: default; }
.release-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(22rem, 84%); gap: 20px;
  padding: 4px 4px 22px; margin-inline: -4px; list-style: none;
  /* 卡片列延伸到視窗兩側，第一張仍與標題對齊。 */
  --bleed: max(var(--gutter), calc((100cqw - var(--wrap)) / 2));
  margin-inline: calc(50% - 50cqw); padding-inline: var(--bleed);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; scroll-padding-inline: var(--bleed); overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.release-track::-webkit-scrollbar { height: 5px; }
.release-track::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; }
.release-card { min-width: 0; scroll-snap-align: start; border-radius: var(--r-tile); background: var(--card); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.release-card article { display: flex; flex-direction: column; height: 100%; padding: 32px; overflow-wrap: anywhere; }
.release-card-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.release-version { color: var(--muted); font-size: 1.06rem; font-weight: 600; line-height: 1.4; }
.release-tag { padding: 4px 12px; border-radius: 999px; background: var(--fill); color: var(--ink); font-size: .88rem; font-weight: 600; line-height: 1.5; }
.release-art { display: grid; place-items: center; width: 64px; height: 64px; margin-block: 28px 24px; border-radius: 18px; background: var(--fill); color: var(--ink); }
.release-art svg { width: 34px; height: 36px; }
.release-card h3 { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; }
.release-intro { margin-top: 10px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.release-highlights { display: grid; gap: 12px; margin-top: 24px; list-style: none; font-size: 1rem; line-height: 1.55; }
.release-highlights li { position: relative; padding-left: 20px; }
.release-highlights li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* 最新版：較寬、薄荷光暈，是進入版本故事時第一眼看到的卡片。 */
.release-card.is-latest {
  grid-column: span 2;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(94, 234, 212, .22), transparent 60%),
    radial-gradient(80% 70% at 0% 100%, rgba(13, 148, 136, .25), transparent 65%),
    #161618;
  box-shadow: inset 0 0 0 1px rgba(94, 234, 212, .28);
}
.release-card.is-latest article { padding: 40px; }
.release-card.is-latest .release-version { color: var(--accent); }
.release-card.is-latest .release-tag { background: var(--accent); color: var(--on-accent); }
.release-card.is-latest .release-art { width: 76px; height: 76px; margin-block: 36px 28px; background: rgba(94, 234, 212, .14); color: var(--accent); }
.release-card.is-latest .release-art svg { width: 40px; height: 42px; }
.release-card.is-latest h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.release-card.is-latest .release-intro { font-size: 1.06rem; color: color-mix(in srgb, var(--ink) 78%, transparent); }
.release-card.is-latest .release-highlights { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 12px; }
.release-card.is-latest .release-highlights li { padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .06); }
.release-card.is-latest .release-highlights li::before { display: none; }

/* 大圓弧卡片列（site.js 確認支援 3D 且未減少動態效果時才加上 .is-arc）。
   卡片從同一個中心點出發，由 JS 依序沿大圓排成一橫排（rotateY／translateZ），兩側微微後退、淡出。 */
.release-history.is-arc .release-track {
  --ring-card-w: min(21rem, calc(100cqw - 6rem));
  position: relative; display: block; height: var(--ring-h, 34rem);
  margin: 8px 0 40px; padding: 0; overflow: visible;
  scroll-snap-type: none; perspective: 2400px; perspective-origin: 50% 40%;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.release-history.is-arc .release-track:focus-visible { outline-offset: 12px; border-radius: var(--r-tile); }
.release-history.is-arc .release-track::after {
  content: ""; position: absolute; left: 50%; bottom: -46px; z-index: 0; width: min(56rem, 130%); height: 90px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(94, 234, 212, .2), transparent 72%);
}
.release-history.is-dragging .release-track { cursor: grabbing; }
.release-history.is-arc .release-card,
.release-history.is-arc .release-card.is-latest {
  position: absolute; top: 0; left: 50%; width: var(--ring-card-w); height: var(--ring-h, auto);
  margin-left: calc(var(--ring-card-w) / -2); grid-column: auto;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; will-change: transform, opacity;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 60px rgba(0, 0, 0, .5);
}
.release-history.is-arc .release-card.is-latest { box-shadow: inset 0 0 0 1px rgba(94, 234, 212, .32), 0 30px 70px rgba(13, 148, 136, .22); }
.release-history.is-arc .release-card.is-latest article { padding: 32px; }
.release-history.is-arc .release-card:not(.is-front) { cursor: pointer; }
.release-history.is-arc .release-card.is-latest .release-highlights { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.release-history.is-arc .release-card.is-latest .release-highlights li { padding: 12px 16px; }
.release-history.is-arc .release-card.is-latest h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
@media (max-width: 760px) {
  .release-history.is-arc .release-card.is-latest article { padding: 26px; }
}
/* 寬螢幕：正中的卡片對齊標題左緣，圓弧往右側延伸、後退（避免左半邊留空）。 */
@media (min-width: 901px) {
  .release-history.is-arc .release-track { perspective-origin: calc(var(--ring-card-w) / 2) 40%; }
  .release-history.is-arc .release-card,
  .release-history.is-arc .release-card.is-latest { left: 0; margin-left: 0; }
}

.release-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; color: var(--muted); font-size: .94rem; }
.release-status:empty { display: none; }
.release-picker { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.release-picker button {
  min-height: 44px; padding: 8px 18px; border: 0; border-radius: 999px; background: var(--fill);
  color: var(--ink); font-size: .94rem; font-weight: 600; line-height: 1.5; cursor: pointer; transition: background-color .2s ease;
}
.release-picker button:hover { background: #3a3a3c; }
.release-picker button[aria-current="true"] { background: var(--ink); color: #000000; }

@media (max-width: 760px) {
  .release-heading { flex-wrap: wrap; align-items: center; gap: 24px; margin-bottom: 32px; }
  .release-controls { margin-left: auto; }
  .release-card article, .release-card.is-latest article { padding: 26px; }
  .release-card.is-latest { grid-column: span 1; }
}
@media (prefers-contrast: more) {
  .release-card, .release-card.is-latest { box-shadow: inset 0 0 0 1px var(--ink); }
}
@media print {
  .release-history { background: #fff; color: #000; }
  .release-track { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; }
  .release-card.is-latest { grid-column: span 2; }
  .release-controls, .release-picker, .release-hint, .release-status { display: none !important; }
  .release-card { break-inside: avoid; }
}

/* ───────── 隱私 ───────── */

.data-flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.flow { min-width: 0; padding: 38px 36px; border-radius: var(--r-stage); background: var(--card); box-shadow: var(--tile-edge); }
.flow h3 { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.3; letter-spacing: -.015em; }
.flow h3 svg { flex: none; width: 26px; height: 26px; padding: 9px; border-radius: 14px; background: var(--paper-alt); box-sizing: content-box; }
.flow-cloud h3 svg { background: var(--ai-soft); color: var(--accent); }
.flow > p { margin-top: 10px; color: var(--muted); }
.flow ul { margin-top: 22px; list-style: none; }
.flow li { padding: 14px 0; border-top: 1px solid var(--line); }
.flow li strong { display: block; font-weight: 600; }
.flow li span { display: block; margin-top: 2px; color: var(--muted); font-size: .94rem; line-height: 1.6; }
.privacy-promises { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; list-style: none; }
.privacy-promises li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px; background: var(--card); box-shadow: var(--tile-edge); font-size: .94rem; font-weight: 600; }
.privacy-promises svg { flex: none; width: 14px; height: 14px; padding: 4px; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-sizing: content-box; }

/* ───────── 方案 ───────── */

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 940px; margin-inline: auto; }
.plan { display: flex; flex-direction: column; min-width: 0; padding: 38px 36px 36px; border-radius: var(--r-stage); background: var(--card); box-shadow: var(--tile-edge); }
.plan h3 { font-family: var(--font-display); font-size: 2rem; line-height: 1.2; font-weight: 700; letter-spacing: -.025em; }
.plan-sub { margin-top: 4px; color: var(--muted); }
.plan-list { flex: 1; margin: 26px 0 30px; list-style: none; }
.plan-list li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.plan-list li > span { min-width: 0; color: var(--muted); }
.plan-list li > strong { margin-left: auto; font-weight: 600; text-align: right; }
.plan-list li.is-none > strong { color: var(--muted); font-weight: 400; }
.plan .btn { width: 100%; }
.plan.is-pro {
  --ink: #f5f5f7; --muted: rgba(245, 245, 247, .64); --line: rgba(255, 255, 255, .12);
  --accent: #5eead4; --accent-hover: #99f6e4; --on-accent: #04201d;
  position: relative; isolation: isolate; overflow: hidden; color: var(--ink);
  background: radial-gradient(90% 70% at 100% 0%, rgba(94, 234, 212, .26), transparent 60%), radial-gradient(70% 60% at 0% 100%, rgba(13, 148, 136, .3), transparent 65%), #0c0d0e;
  box-shadow: inset 0 0 0 1px rgba(94, 234, 212, .26), 0 30px 60px -32px rgba(13, 148, 136, .6);
}
.plan.is-pro h3 { color: var(--accent); }
.plans-note { max-width: 940px; margin: 22px auto 0; color: var(--muted); font-size: .94rem; line-height: 1.7; text-align: center; }
.pricing-more { display: grid; gap: 20px; max-width: 940px; margin: 48px auto 0; }
/* 終身方案「現行價」卡片：只有提前雙 11／雙 11 期間由 home.js 打開。深底配色同 Pro 方案卡，倒數用琥珀色。 */
.lifetime-now {
  --deal-ink: #f5f5f7; --deal-muted: rgba(245, 245, 247, .72); --deal-mint: #5eead4; --deal-amber: #fbbf24; --deal-tile: rgba(255, 255, 255, .08);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "offer timer" "cta timer"; gap: 22px 40px; align-items: center; min-width: 0;
  padding: 36px 38px; border-radius: var(--r-stage); color: var(--deal-ink);
  background: radial-gradient(80% 90% at 100% 0%, rgba(251, 191, 36, .2), transparent 60%), radial-gradient(70% 70% at 0% 100%, rgba(13, 148, 136, .34), transparent 65%), #0c0d0e;
  box-shadow: inset 0 0 0 1px rgba(94, 234, 212, .22), 0 30px 60px -32px rgba(13, 148, 136, .6);
}
.lifetime-now[hidden] { display: none; }
.lifetime-now-offer { grid-area: offer; display: grid; gap: 12px; justify-items: start; min-width: 0; }
.lifetime-now-timer { grid-area: timer; display: grid; gap: 16px; min-width: 0; container-type: inline-size; }
.lifetime-now .btn { grid-area: cta; justify-self: start; align-self: start; background: var(--deal-mint); color: #04201d; }
.lifetime-now .btn:hover { background: #99f6e4; }
.lifetime-now-pill {
  justify-self: start; max-width: 100%; padding: 6px 14px; border-radius: 16px; background: var(--deal-amber); color: #1d1d1f;
  font-size: .94rem; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere;
}
.lifetime-now-pill:empty { display: none; }
.lifetime-now-title { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.3; font-weight: 700; letter-spacing: -.015em; }
.lifetime-now-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-family: var(--font-round); font-variant-numeric: tabular-nums; }
.lifetime-now-price strong { color: var(--deal-mint); font-size: clamp(2.6rem, 8vw, 4rem); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; }
.lifetime-now-price s, .lifetime-now-alt s { color: var(--deal-muted); text-decoration-thickness: 2px; text-decoration-color: rgba(251, 191, 36, .85); }
.lifetime-now-price s { font-size: 1.3rem; font-weight: 700; }
.lifetime-now-alt { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; font-family: var(--font-round); font-variant-numeric: tabular-nums; }
.lifetime-now-alt li { padding: 5px 12px; border-radius: 999px; background: var(--deal-tile); font-size: .94rem; font-weight: 700; }
.lifetime-now-alt s { font-weight: 600; }
.lifetime-now-note { color: var(--deal-muted); font-size: .94rem; line-height: 1.6; }
.lifetime-now-next { font-size: 1.06rem; font-weight: 700; line-height: 1.5; }
.lifetime-now .countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lifetime-now .countdown > div { display: grid; justify-items: center; gap: 2px; min-width: 0; padding: 14px 4px 12px; border-radius: var(--r-inner); background: var(--deal-tile); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.lifetime-now .countdown span { color: var(--deal-amber); font-family: var(--font-round); font-size: min(2.4rem, 12cqi); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lifetime-now .countdown small { color: var(--deal-muted); font-size: .88rem; font-weight: 600; }
.lifetime-now-bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.lifetime-now-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--deal-mint), var(--deal-amber)); }
.lifetime-now-range { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--deal-muted); font-size: .88rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.lifetime-now-range span:empty { display: none; }
/* 放大字級或很窄時四格放不下：改兩欄兩列，數字跟著變大。 */
@container (max-width: 15rem) {
  .lifetime-now .countdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lifetime-now .countdown span { font-size: min(2.4rem, 22cqi); }
}
@media (prefers-contrast: more) {
  .lifetime-now { background: #000; box-shadow: inset 0 0 0 2px var(--deal-mint); }
  .lifetime-now-note, .lifetime-now-range, .lifetime-now .countdown small { color: var(--deal-ink); }
}
.lifetime { min-width: 0; padding: 32px 34px 34px; border-radius: var(--r-stage); background: var(--card); box-shadow: var(--tile-edge); }
.lifetime-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.lifetime-head p { color: var(--accent); font-weight: 700; }
.paddle-prices-title { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.3; font-weight: 700; letter-spacing: -.015em; }
.paddle-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 12px; margin-top: 20px; }
.paddle-prices > div { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 20px 20px 22px; border-radius: var(--r-inner); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hairline); transition: opacity .2s ease; }
.paddle-prices dt { font-size: 1.06rem; font-weight: 700; }
.paddle-prices dt small { display: block; margin-top: 2px; color: var(--muted); font-size: .94rem; font-weight: 500; }
.paddle-prices dd { margin: auto 0 0; font-family: var(--font-round); font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.6; overflow-wrap: anywhere; }
.lifetime .paddle-prices dd::first-line { font-size: 1.5rem; font-weight: 700; }
.price-main { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.35; }
.price-main + span { display: block; color: var(--muted); font-size: .94rem; }
/* home.js 依今天（UTC+8）標出目前階段；沒有 JS 時三格相同。 */
.stage-badge { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; background: var(--fill); color: var(--muted); font-size: .88rem; font-weight: 700; vertical-align: .08em; }
/* 已結束的階段對買的人沒有用：home.js 標上 past 後就收起（沒有 JS 時六段都顯示）。 */
.lifetime .paddle-prices > div[data-stage="past"] { display: none; }
.paddle-prices > div[data-stage="current"] { background: var(--card); box-shadow: inset 0 0 0 2px var(--accent), 0 18px 36px -22px color-mix(in srgb, var(--accent) 70%, transparent); }
.paddle-prices > div[data-stage="current"] .stage-badge { background: var(--accent); color: var(--on-accent); }
.lifetime-end { margin-top: 18px; color: var(--muted); font-size: .94rem; line-height: 1.7; }
.pricing-fine { border-bottom: 1px solid var(--line); }
.pricing-fine summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 16px 4px; font-weight: 600; cursor: pointer; list-style: none; }
.pricing-fine summary::-webkit-details-marker { display: none; }
.pricing-fine summary::after { content: "+"; flex: none; color: var(--muted); font-size: 1.5rem; line-height: 1; font-weight: 300; transition: transform .25s ease; }
.pricing-fine[open] summary::after { transform: rotate(45deg); }
.pricing-fine p { margin: 0 4px 16px; color: var(--muted); font-size: .94rem; line-height: 1.8; }
.pricing-fine a { color: var(--link); text-decoration: none; }
.pricing-fine a:hover { text-decoration: underline; }
.pricing-fine .android-prices { margin: 4px 4px 22px; }
.pricing-fine .paddle-prices-title { font-size: 1.06rem; }
.pricing-fine .paddle-prices { margin-top: 12px; }
.pricing-fine .paddle-prices > div { gap: 8px; padding: 16px 18px; }
.pricing-fine .price-main { font-size: 1.26rem; }

/* ───────── 下載 ───────── */

.closing { position: relative; isolation: isolate; overflow: hidden; padding: clamp(104px, 12vw, 160px) 0; background: var(--paper-alt); text-align: center; }
.closing::before {
  content: ""; position: absolute; inset: -30% -10% auto; z-index: -1; height: 900px; pointer-events: none;
  background: radial-gradient(40% 46% at 50% 28%, var(--stage-glow), transparent 72%);
}
.closing-head { max-width: 46em; margin-inline: auto; }
.closing-icon { width: 88px; height: 88px; margin: 0 auto 28px; border-radius: 21px; box-shadow: 0 0 0 .5px var(--line), 0 2px 6px rgba(0, 0, 0, .06), 0 20px 40px -12px rgba(0, 0, 0, .28); }
.closing .section-lead { margin-inline: auto; }
#download-title:focus:not(:focus-visible) { outline: none; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1000px; margin: 56px auto 0; text-align: left; }
.download-card {
  display: flex; flex-direction: column; min-width: 0; padding: 32px; border-radius: var(--r-tile);
  background: var(--card); box-shadow: var(--tile-edge); transition: transform .25s ease, box-shadow .25s ease;
}
.download-card:hover { transform: translateY(-2px); box-shadow: var(--tile-edge), 0 24px 48px -28px rgba(0, 0, 0, .32); }
.download-heading { display: flex; align-items: center; gap: 16px; }
.download-heading > div { min-width: 0; }
.download-heading h3 { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.25; letter-spacing: -.02em; }
.download-heading p { margin-top: 2px; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.download-cta { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.download-cta > .btn, .download-actions { flex: 1; min-width: 0; }
.download-card .btn { width: 100%; }
.download-actions { display: grid; gap: 4px; }
.download-actions .download-meta { display: grid; gap: 4px; margin-top: 8px; }
.download-actions .download-meta p { text-align: center; }
.download-qr { display: none; }
.download-card .download-detail-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; color: var(--link); font-size: .94rem; font-weight: 600; text-decoration: none; }
.download-card .download-detail-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.download-help { margin-top: 44px; }

/* 電腦（有滑鼠、寬螢幕）才顯示掃碼：手機掃自己的螢幕沒有意義。 */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .download-qr { display: grid; flex: none; justify-items: center; gap: 6px; width: 104px; text-align: center; }
  .download-qr .qr-code { width: 96px; }
  .download-qr span { color: var(--muted); font-size: .94rem; font-weight: 600; line-height: 1.35; }
}
/* 首屏掃碼放在兩個下載按鈕旁，寬度夠才顯示，避免單獨掉到第二行。 */
@media (hover: hover) and (pointer: fine) and (min-width: 1200px) {
  .hero-qr {
    display: flex; align-items: center; gap: 12px; margin-left: 4px; padding: 8px 16px 8px 8px; border-radius: 18px;
    background: var(--card); box-shadow: var(--tile-edge), 0 10px 24px -18px rgba(0, 0, 0, .35);
  }
  .hero-qr .qr-code { width: 80px; }
  .hero-qr span { color: var(--muted); font-size: .94rem; font-weight: 600; line-height: 1.35; }
}

/* 微信／QQ 等 App 內建瀏覽器的下載引導 */
.inapp-notice { margin-top: 16px; padding: 18px 20px; border-radius: var(--r-inner); background: var(--paper-alt); }
.inapp-notice p { color: var(--muted); font-size: .94rem; line-height: 1.7; }
.inapp-notice .inapp-notice-title { margin-bottom: 4px; color: var(--ink); font-weight: 700; }
.download-card .inapp-notice .btn { margin-top: 14px; }
.inapp-copy-status { margin-top: 10px; }
.inapp-copy-status:empty { display: none; }
.inapp-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: flex-end; padding: max(8px, env(safe-area-inset-top)) 16px 24px; background: rgba(0, 0, 0, .78); }
.inapp-overlay[hidden] { display: none; }
.inapp-arrow { width: 88px; height: 88px; margin-right: 6px; color: #ffffff; }
.inapp-overlay-card { align-self: stretch; max-width: 420px; margin: 8px 0 0 auto; padding: 24px; border-radius: 24px; background: var(--card); color: var(--ink); text-align: left; }
.inapp-overlay-card h2 { font-size: 1.25rem; line-height: 1.4; }
.inapp-overlay-card p { margin-top: 8px; color: var(--muted); font-size: .94rem; line-height: 1.7; }
.inapp-overlay-card .btn { width: 100%; margin-top: 16px; }
.inapp-overlay-card .btn + .btn { margin-top: 10px; }

/* ───────── 捲動時淡入（只用 CSS 捲動時間軸；不支援時直接顯示，減少動態效果時由 site.css 關閉） ───────── */

@supports (animation-timeline: view()) {
  .section-head, .tour-card, .detail, .companion-visual, .flow, .privacy-promises, .plan, .lifetime, .closing-head, .download-card, .faq details {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }
}
@keyframes reveal { from { opacity: 0; translate: 0 34px; } to { opacity: 1; translate: 0 0; } }

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .hero::after { display: none; }
  .float-chat { background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more), (forced-colors: active) {
  .hero-accent, .detail-number { background: none; color: inherit; }
}

/* ───────── Responsive ───────── */

@media (max-width: 1080px) {
  .tour { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
  .tour-visual { min-height: 300px; }
  .details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail.is-feature { grid-row: auto; }
}

/* 平板：功能卡改成左文右圖，避免一張卡只有上方一行字、下方大片空白。 */
@media (min-width: 700px) and (max-width: 1080px) {
  .tour { max-width: 860px; }
  .tour-card { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); }
  .tour-copy { align-self: center; padding: 36px 8px 36px 36px; }
  .tour-visual { min-height: 300px; margin-top: 0; }
}

/* 視窗不高（沒按 F11、Windows 縮放 125–150%）：首屏在一個畫面內放下標題、下載按鈕與整支手機示範。
   手機高度跟著視窗高度縮放，頁首已有 TimeMind 名稱，品牌列先收起。 */
@media (min-width: 901px) and (max-height: 880px) {
  .hero { padding-block: clamp(12px, 3vh, 36px) 56px; }
  .hero-brand { display: none; }
  .hero h1 { margin-top: 0; font-size: clamp(2.4rem, min(3.6vw + 1.1rem, 9.2vh), 4.75rem); }
  .hero .hero-lead { margin-top: 16px; }
  .hero-actions { margin-top: 24px; }
  .platform-links { margin-top: 12px; }
  .phone { --pw: clamp(210px, calc((100vh - 176px) * 340 / 700), 340px); }
  .capture { gap: 14px; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .float-island { left: -2.6em; }
  .float-chat { right: -2.6em; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero-inner { align-items: center; text-align: center; }
  .hero .hero-lead { margin-inline: auto; }
  .hero-actions, .platform-links { justify-content: center; }
  .companion { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .companion-visual { max-width: 520px; }
}

@media (max-width: 760px) {
  .home .section { padding-block: 72px; }
  .home .section-head { margin-bottom: 36px; }
  .closing { padding: 72px 0; }
  .download-grid { margin-top: 40px; }
  .data-flow, .plans, .paddle-prices { grid-template-columns: minmax(0, 1fr); }
  .download-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .flow { padding: 30px 24px; }
  .lifetime .paddle-prices > div { gap: 10px; padding: 16px 18px 18px; }
  .plan, .lifetime { padding: 30px 24px; }
  .lifetime-now { grid-template-columns: minmax(0, 1fr); grid-template-areas: "offer" "timer" "cta"; gap: 24px; padding: 30px 22px; }
  .lifetime-now .btn { justify-self: stretch; }
  .lifetime-now .countdown { gap: 8px; }
  .tour-copy { padding: 30px 26px 0; }
}

@media (max-width: 640px) {
  /* 小卡兩欄並排（文字都只有一兩行），大卡佔滿一列。 */
  .details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .detail.is-feature, .detail.is-wide { grid-column: 1 / -1; }
  .detail.is-feature { padding: 30px 24px 0; }
  .detail.is-wide { flex-direction: column; align-items: flex-start; gap: 12px; }
  .detail { padding: 22px 18px; border-radius: 22px; }
  .detail svg { width: 26px; height: 26px; margin-bottom: 14px; }
  .detail h3 { font-size: 1.12rem; }
  .detail p { font-size: .94rem; line-height: 1.55; }
}
@media (max-width: 359px) {
  .details { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .hero-icon { width: 52px; height: 52px; border-radius: 13px; }
  /* 「任務就整理好了。」要放得下一行，避免最後一個字掉到下一行。 */
  .hero h1 { margin-top: 22px; font-size: clamp(2rem, 10.4vw, 2.5rem); }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .store-btn { justify-content: center; }
  .hero-inner > .public-stats { width: 100%; }
  .phone { --pw: min(340px, 84vw); }
  .float-chat { width: 12.4em; }
  .tour-visual { padding: 22px 18px 24px; }
  .mock-poster { left: 12px; width: 106px; height: 144px; padding: 12px 11px; }
  .mock-poster strong { font-size: 19px; }
  .mock-result { right: 12px; width: 61%; }
  .platform-links span { flex-basis: 100%; justify-content: center; }
  .mock-toast { margin-left: 0; }
  .download-card { padding: 28px 24px; }
  .companion-mascot { right: 12px; width: 120px; height: 120px; }
  .companion-visual { padding-top: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  .capture.is-listening .wave i { transform: none; }
}
