:root {
  --base: #FBB584;
  --accent-light: #D9692E;
  --accent: var(--accent-light);
  --accent-strong: color-mix(in srgb, var(--accent-light) 80%, black);
  --soft: color-mix(in srgb, var(--base) 22%, white);
  --text: #2B1D14;
  --muted: #7A6A60;
  --bg: color-mix(in srgb, var(--base) 4%, white);
  --card: #FFFFFF;
  --line: color-mix(in srgb, var(--base) 30%, transparent);
  --hero-top: color-mix(in srgb, var(--base) 12%, white);
  --hero-bottom: color-mix(in srgb, var(--base) 55%, white);
  --glow-a: color-mix(in srgb, var(--base) 35%, white);
  --glow-b: var(--base);
  --shadow: 0 24px 60px -24px color-mix(in srgb, var(--base) 50%, rgba(80, 40, 10, 0.6));
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: color-mix(in srgb, var(--base) 85%, white);
    --accent-strong: color-mix(in srgb, var(--base) 60%, white);
    --soft: color-mix(in srgb, var(--base) 20%, #15100D);
    --text: #F7EEE8;
    --muted: #B5A69C;
    --bg: color-mix(in srgb, var(--base) 4%, #110D0B);
    --card: color-mix(in srgb, var(--base) 6%, #1C1715);
    --line: color-mix(in srgb, var(--base) 18%, transparent);
    --hero-top: color-mix(in srgb, var(--base) 8%, #15100D);
    --hero-bottom: color-mix(in srgb, var(--base) 32%, #15100D);
    --glow-a: color-mix(in srgb, var(--base) 35%, black);
    --glow-b: color-mix(in srgb, var(--base) 55%, black);
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: clip; }
body {
  margin: 0; background: var(--bg); transition: background-color 0.5s; color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.75; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* 頂部導覽：固定在上方，往下捲時變成霧面玻璃 */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.topbar.scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-links { display: flex; gap: 22px; font-size: 15px; }
.lang-switch {
  appearance: none; -webkit-appearance: none; font: inherit; font-size: 14px; color: var(--text);
  background: color-mix(in srgb, var(--card) 70%, transparent); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 30px 6px 14px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
.nav-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }

/* 開頭 */
.hero { position: relative; background: linear-gradient(180deg, var(--hero-top), var(--hero-bottom)); overflow: hidden; padding-top: 72px; isolation: isolate; }
/* 柔和光暈，慢慢飄動 */
.glow { position: absolute; inset: -20% -10% auto -10%; height: 140%; z-index: -1; pointer-events: none; }
.glow::before, .glow::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.65;
  animation: drift 18s ease-in-out infinite alternate;
}
.glow::before { width: 520px; height: 520px; left: 8%; top: 10%; background: radial-gradient(circle, var(--glow-a), transparent 70%); }
.glow::after { width: 600px; height: 600px; right: 0; top: 25%; background: radial-gradient(circle, var(--glow-b), transparent 70%); animation-duration: 22s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.15); } }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 40px 0 0; }
.hero-text { padding-bottom: 120px; }
.hero h1 { font-size: clamp(48px, 8vw, 84px); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
.hero .subname { font-size: clamp(26px, 4vw, 38px); font-weight: 700; color: var(--accent); margin: 8px 0 18px; }
.hero .lead { text-wrap: pretty; font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 30em; }
.badge {
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s;
  box-shadow: 0 10px 24px -12px rgba(43, 29, 20, 0.6);
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: var(--bg);
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 16px;
}
.badge svg { width: 20px; height: 20px; }
/* App Store 官方下載徽章（上架後 tools/release_website.py 會換上） */
.store-badge { display: inline-block; transition: transform 0.25s cubic-bezier(.2,.8,.2,1); }
/* 寫成 a.store-badge img：結尾區塊的大圖示樣式（.cta img）才不會套到徽章上 */
a.store-badge img { display: block; height: 54px; width: auto; margin: 0; border-radius: 0; box-shadow: none; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge:active { transform: scale(0.96); transition-duration: 0.1s; }
footer.site .trademark { margin-top: 6px; font-size: 12px; }
.badge:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(43, 29, 20, 0.6); }
.badge:active { transform: scale(0.96); transition-duration: 0.1s; }
.hero-note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.hero-phone { display: flex; justify-content: center; align-self: end; }
.hero-phone .phone { --pw: min(280px, 72vw, calc((100vh - 100px) * 0.45)); margin-bottom: -140px; }

/* 手機外框：照 iPhone 的比例畫（邊框、圓角、動態島都跟著手機寬度 --pw 縮放，小螢幕上才不會變粗） */
.phone {
  --pw: 280px;
  --bezel: calc(var(--pw) * 0.03);
  --screen-r: calc(var(--pw) * 0.135);
  position: relative; width: var(--pw);
  background: #0B0B0C; border-radius: calc(var(--screen-r) + var(--bezel)); padding: var(--bezel);
  /* 外圈鈦金屬邊 */
  box-shadow: var(--shadow), 0 0 0 calc(var(--pw) * 0.009) #5C5C61, 0 0 0 calc(var(--pw) * 0.014) #2A2A2D;
}
/* 動態島 */
.phone::before {
  content: ""; position: absolute; z-index: 3; left: 50%; translate: -50% 0;
  top: calc(var(--bezel) + var(--pw) * 0.03);
  width: calc(var(--pw) * 0.3); height: calc(var(--pw) * 0.088);
  border-radius: 999px; background: #000;
}
/* 側邊按鈕：左邊動作按鈕、音量鍵，右邊電源鍵 */
.phone::after {
  content: ""; position: absolute; z-index: -1;
  left: calc(var(--pw) * -0.022); top: calc(var(--pw) * 0.36);
  width: calc(var(--pw) * 0.012); height: calc(var(--pw) * 0.11);
  border-radius: 2px; background: #3A3A3D;
  box-shadow:
    0 calc(var(--pw) * 0.17) 0 #3A3A3D,
    0 calc(var(--pw) * 0.31) 0 #3A3A3D,
    calc(var(--pw) * 1.032) calc(var(--pw) * 0.16) 0 #3A3A3D;
}
.phone img { border-radius: var(--screen-r); width: 100%; }
/* 手機裡的畫面輪流切換 */
.screens { position: relative; border-radius: var(--screen-r); overflow: hidden; }
.screens img { transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.8,.2,1); }
.screens img + img { position: absolute; inset: 0; }
.js .screens img { opacity: 0; transform: scale(1.03); }
.js .screens img.active { opacity: 1; transform: none; }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* 區塊 */
section { padding: 96px 0 0; }
.section-title { text-align: center; margin: 0 auto 48px; max-width: 34em; }
.section-title .eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: 0.12em; }
.section-title h2 { font-size: clamp(26px, 4vw, 40px); line-height: 1.3; margin: 6px 0 10px; text-wrap: balance; }
.section-title p { color: var(--muted); margin: 0; font-size: 17px; }

/* iPad */
.devices { text-align: center; }
.tablet {
  /* 依螢幕高度限制大小，整台 iPad 都看得到 */
  width: min(600px, 100%, calc((100vh - 220px) * 0.97)); margin: 0 auto; background: #1C1C1E; border-radius: 36px; padding: 14px;
  box-shadow: var(--shadow), inset 0 0 0 2px #3A3A3C;
}
.tablet img { border-radius: 24px; width: 100%; }
.device-tags { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.device-tags span { background: var(--soft); color: var(--accent-strong); padding: 6px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; }

/* 常見問題 */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; margin: 12px 0; padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details { transition: box-shadow 0.3s, opacity 0.7s, translate 0.7s cubic-bezier(.2,.8,.2,1); }
.faq details:hover { box-shadow: 0 12px 30px -20px rgba(150, 80, 30, 0.35); }
.plus { position: relative; flex: none; width: 16px; height: 16px; transition: transform 0.35s cubic-bezier(.2,.8,.2,1); }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; border-radius: 2px; background: var(--accent); }
.plus::after { transform: rotate(90deg); }
.faq details[open]:not(.closing) .plus { transform: rotate(45deg); }
.faq .answer { overflow: hidden; }
.faq .answer p { margin: 0 0 18px; color: var(--muted); }
.faq .steps-list { margin: 0 0 14px; padding-left: 1.4em; color: var(--muted); }
.faq .steps-list li { margin: 6px 0; padding-left: 4px; }
.faq .steps-list li::marker { color: var(--accent); font-weight: 700; }
.ai-table-wrap { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ai-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.ai-table th, .ai-table td { padding: 10px 12px; text-align: left; vertical-align: top; }
.ai-table thead th { background: var(--soft); font-weight: 700; }
.ai-table thead .gemini { color: #4285F4; }
.ai-table thead .apple { color: #AF52DE; }
.ai-table tbody th { color: var(--text); font-weight: 600; white-space: nowrap; }
.ai-table td, .ai-table thead th + th { width: 50%; }
.ai-table td { color: var(--muted); }
.ai-table tbody tr + tr { border-top: 1px solid var(--line); }
@media (max-width: 520px) {
  .faq details { padding: 0 16px; }
  .ai-table { font-size: 13.5px; }
  .ai-table th, .ai-table td { padding: 8px 7px; }
  .ai-table tbody th { font-size: 12.5px; }
}

/* 結尾 */
.cta {
  margin: 96px auto 0; text-align: center; border-radius: 32px; padding: 56px 24px;
  background: linear-gradient(135deg, var(--hero-top), var(--hero-bottom));
}
.cta img { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 16px; box-shadow: var(--shadow); }
.cta h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 8px; }
.cta p { color: var(--muted); margin: 0 0 24px; }

footer.site { padding: 48px 0 56px; text-align: center; color: var(--muted); font-size: 14px; }
footer.site a { color: var(--muted); }

/* 隱私權政策等文件頁 */
.doc { max-width: 720px; margin: 0 auto; padding: 24px 20px 40px; }
.doc.with-topbar { padding-top: 88px; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.25; margin: 24px 0 4px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 20px; margin: 36px 0 8px; }
.doc li { margin: 6px 0; }
.doc .back { display: inline-block; margin-top: 40px; }

/* 手機版 */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; padding-top: 24px; }
  .hero-text { padding-bottom: 8px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-phone .phone { margin-bottom: -160px; }
  section { padding-top: 72px; }
  .tablet { border-radius: 22px; padding: 8px; }
  .tablet img { border-radius: 15px; }
}


/* ===== 華麗版動畫 ===== */

/* 標題逐字彈出、螢光筆 */
.split-letters .ch { display: inline-block; will-change: transform; }
.mark { position: relative; display: inline-block; z-index: 0; }
.mark::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: 0.08em; height: 0.42em; z-index: -1;
  background: color-mix(in srgb, var(--base) 55%, transparent); border-radius: 6px;
  transform: scaleX(0); transform-origin: left; animation: mark-in 0.9s cubic-bezier(.6,0,.2,1) 1.1s forwards;
}
@keyframes mark-in { to { transform: scaleX(1); } }

/* 手機跟著滑鼠傾斜 */
.hero-phone { perspective: 1200px; }
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt .phone { position: relative; }
.shine {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--sx, 30%) var(--sy, 20%), rgba(255,255,255,0.75), transparent 45%);
  opacity: 0.8;
}

/* Apple 式捲動故事 */
.story { padding-top: 120px; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; min-height: 100vh; padding-top: 72px; padding-bottom: 24px; }
.story .eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: 0.12em; }
.story h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.2; margin: 6px 0 24px; text-wrap: balance; }
.story-progress { display: flex; gap: 8px; margin-bottom: 28px; max-width: 360px; }
.story-progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--soft); position: relative; overflow: hidden; }
.story-progress span::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--p, 1)); transform-origin: left; }
.story-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.story-step .num { font-size: 15px; font-weight: 800; color: var(--accent); letter-spacing: 0.08em; }
.story-step h3 { font-size: clamp(22px, 2.6vw, 30px); margin: 2px 0 6px; }
.story-step p { margin: 0; color: var(--muted); font-size: 17px; max-width: 26em; }
.story-device { display: flex; justify-content: center; }
.story-device .phone { --pw: min(300px, 64vw, calc((100vh - 150px) * 0.45)); }
.story-screens { position: relative; border-radius: var(--screen-r); overflow: hidden; aspect-ratio: 640 / 1391; background: #fff; }
.story-screen { position: absolute; inset: 0; width: 100%; height: 100%; }
/* 示意畫面用固定大小畫，再依手機大小等比例縮放 */
.mock-post, .mock-share { width: 300px; height: 652px; inset: 0 auto auto 0; transform: scale(var(--k, 0.93)); transform-origin: 0 0; }
/* 沒有動畫時：只顯示最後的整理結果 */
.story-screen:not(:last-child) { opacity: 0; }
/* 有動畫時：文字疊在一起依序切換 */
.story.animated .story-steps { display: block; position: relative; min-height: 190px; }
.story.animated .story-step { position: absolute; inset: 0 0 auto 0; }
.story.animated .story-progress span::after { transform: scaleX(var(--p, 0)); }

/* 示意畫面：貼文 */
.mock-post { background: #fff; color: #111; font-size: 13px; padding: 0 14px; text-align: left; }
.mp-status { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px 6px 30px; font-weight: 600; font-size: 14px; }
.mp-icons { display: flex; gap: 4px; align-items: center; }
.mp-icons svg { height: 9px; width: auto; fill: currentColor; }
.mp-bar { display: flex; justify-content: space-between; font-weight: 700; font-size: 17px; padding: 6px 0 10px; border-bottom: 1px solid #eee; }
.mp-head { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.mp-av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #FBB584, #F7A1C4); display: grid; place-items: center; font-size: 18px; }
.mp-head b { display: block; font-size: 14px; } .mp-head small { color: #999; font-size: 12px; }
.mp-text { font-size: 14px; line-height: 1.6; margin: 10px 0; }
.mp-img { height: 46%; border-radius: 14px; background: linear-gradient(135deg, #FFE3C9, #FBB584 60%, #F59A62); display: grid; place-items: center; font-size: 72px; }
.mp-acts { display: flex; gap: 18px; color: #666; margin-top: 12px; font-size: 13px; }
.mp-share { margin-left: auto; color: #111; font-weight: 600; background: #f2f2f2; padding: 2px 10px; border-radius: 999px; }

/* 示意畫面：分享選單 */
.mock-share { color: #111; }
.ms-dim { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.ms-sheet { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; background: #F2F2F7; border-radius: 26px 26px 0 0; padding: 8px 14px; text-align: left; }
.ms-grab { width: 40px; height: 5px; border-radius: 3px; background: #C7C7CC; margin: 0 auto 12px; }
.ms-link { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 14px; padding: 10px; }
.ms-thumb { width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(135deg, #FFE3C9, #FBB584); display: grid; place-items: center; font-size: 22px; flex: none; }
.ms-link b { display: block; font-size: 13px; line-height: 1.3; } .ms-link small { color: #8E8E93; font-size: 11px; }
.ms-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 16px 0; text-align: center; font-size: 11px; }
.ms-apps i { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 13px; margin: 0 auto 5px; font-style: normal; font-size: 24px; overflow: hidden; }
.ms-apps i img { width: 100%; height: 100%; }
.ms-notedly { position: relative; font-weight: 600; }
.ms-notedly i { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--base); }
.ms-row { background: #fff; border-radius: 12px; padding: 11px 12px; font-size: 13px; margin-top: 8px; }
.ms-tap { position: absolute; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.55); border: 2px solid #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.25); left: 50%; top: 62%; translate: -50% -50%; opacity: 0; }

/* 大字逐字亮起 */
.statement-wrap { padding-top: 140px; }
.statement { font-size: clamp(30px, 5.2vw, 64px); font-weight: 800; line-height: 1.35; letter-spacing: -0.01em; margin: 0 auto; max-width: 18em; text-align: center; text-wrap: balance; }
.statement .ch { opacity: 0.15; }

/* 功能卡片 3D 旋轉輪播 */
.carousel { text-align: center; overflow: hidden; padding: 20px 0; }
.carousel-stage { perspective: 1400px; height: 360px; display: grid; place-items: center; touch-action: pan-y; cursor: grab; user-select: none; }
.carousel-stage.dragging { cursor: grabbing; }
.ring { position: relative; width: 280px; height: 300px; transform-style: preserve-3d; }
.card {
  position: absolute; inset: 0; background: var(--card); border: 1px solid var(--line); border-radius: 26px;
  padding: 30px 26px; text-align: left; backface-visibility: hidden; box-shadow: var(--shadow);
}
.card .icon { width: 52px; height: 52px; border-radius: 15px; background: var(--soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin: 0 0 8px; font-size: 21px; }
.card p { margin: 0; color: var(--muted); }
.carousel-nav { display: flex; justify-content: center; gap: 14px; margin-top: 24px; }
.carousel-nav button {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--accent);
  font-size: 28px; line-height: 1; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.carousel-nav button:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.carousel-nav button:active { transform: scale(0.92); }

/* 九色主題 */
.swatches { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.swatches button {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s;
}
.swatches button:hover { transform: scale(1.12); }
/* 圓點依序彈出 */
.js .swatches.reveal button { scale: 0; rotate: -90deg; transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s, scale 0.6s cubic-bezier(.3,1.6,.5,1), rotate 0.6s cubic-bezier(.3,1.6,.5,1); transition-delay: 0s, 0s, calc(var(--n) * 60ms + 150ms), calc(var(--n) * 60ms + 150ms); }
.js .swatches.reveal.in button { scale: 1; rotate: 0deg; }
.swatches button[aria-checked="true"] { box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--c); transform: scale(1.08); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.6s; }

@media (max-width: 820px) {
  .story-grid { grid-template-columns: 1fr; gap: 20px; text-align: center; align-content: center; padding-top: 80px; }
  .story-progress { margin-left: auto; margin-right: auto; }
  .story-step p { margin: 0 auto; }
  .story.animated .story-steps { min-height: 150px; }
  .story-device { order: -1; }
  .story-device .phone { --pw: min(200px, 50vw, calc((100svh - 360px) * 0.45)); }
  .story h2 { margin-bottom: 14px; }
  .statement-wrap { padding-top: 96px; }
  .carousel-stage { height: 330px; }
  .ring { width: 230px; height: 280px; }
  .card { padding: 24px 20px; }
}

/* 開頭依序出現 */
.js .intro { opacity: 0; translate: 0 18px; animation: rise 0.9s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--d) * 0.12s + 0.1s); }
.js .hero-phone .phone { opacity: 0; animation: phone-in 1.2s cubic-bezier(.2,.8,.2,1) 0.35s forwards, float 6s ease-in-out 1.6s infinite; }
@keyframes rise { to { opacity: 1; translate: 0 0; } }
@keyframes phone-in { from { opacity: 0; transform: translateY(80px) rotate(2deg); } to { opacity: 1; transform: none; } }

/* 往下捲時淡入 */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity 0.7s ease, translate 0.7s cubic-bezier(.2,.8,.2,1), transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s, border-color 0.35s; transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s, 0s, 0s; }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* 手機設定「減少動態效果」時關掉動畫 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .intro, .js .reveal, .js .hero-phone .phone { opacity: 1; translate: none; }
  .mark::after { transform: none; }
  .statement .ch { opacity: 1; }
}

/* 更多功能：六格 */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px 24px; box-shadow: var(--shadow); text-align: left; }
.tile .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.tile .icon svg { width: 24px; height: 24px; }
.tile h3 { margin: 0 0 8px; font-size: 20px; }
.tile p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* 截圖上方蓋一條和示意畫面一樣的狀態列，三個步驟、首頁的手機看起來才一致 */
.status-cover {
  position: absolute; top: 0; left: 0; z-index: 2; width: 300px; height: 40px; overflow: hidden;
  background: #fff; color: #111; transform: scale(var(--k, 0.93)); transform-origin: 0 0; pointer-events: none;
}
.shot img { width: 100%; height: 100%; display: block; }
