/* =====================================================================
   口袋唱片 PocketDisc 網站樣式（中英文首頁、隱私權政策、404 共用）
   設計規則見 SKILL.md，tests/ 會自動檢查：
   - 字級只用 Tailwind 字級表。英文行高照 Tailwind 配對；中文行高比較鬆（使用者指示）
   - 間距只用 0、2、4、8、12、16、24、32、40、48、64、80、96px
   - 圓角只用 Tailwind 的數值；內外兩層的圓角：內層 = 外層 − 間距
   - 背景是平的、不用漸層；框線四邊都有或都沒有
   - 動態只動 transform 與 opacity（hover 可以變色），曲線一律用 --ease
   - .device 裡面是 App 畫面示意，照 App 的淺色介面配色
   ===================================================================== */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 設計變數 ---------- */
:root {
  color-scheme: dark;
  --bg: #000000;
  --surface-1: #181818;
  --surface-2: #1F1F1F;
  --surface-3: #272727;
  --surface-4: #313131;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #FFFFFF;
  --text-2: #B4B4B4;
  --text-3: #8F8F8F;
  --accent: #5EE0FF;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* 拉丁字母與數字用 Geist，中文交給系統字型（蘋方、微軟正黑體） */
  --font: "Geist", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
/* 行高：英文照 Tailwind 字級的配對 */
:root,
:lang(en) {
  --lh-xs: 16px;
  --lh-sm: 20px;
  --lh-base: 24px;
  --lh-lg: 28px;
  --lh-xl: 28px;
  --lh-2xl: 32px;
  --lh-3xl: 36px;
  --lh-4xl: 40px;
  --lh-5xl: 48px;
  --lh-6xl: 60px;
  --track: 0;
  --track-tight: -0.02em;
}
/* 中文：內文約 1.75 倍、標題約 1.3 倍，字距略寬，避免擠在一起 */
:lang(zh) {
  --lh-xs: 20px;
  --lh-sm: 24px;
  --lh-base: 28px;
  --lh-lg: 32px;
  --lh-xl: 32px;
  --lh-2xl: 36px;
  --lh-3xl: 40px;
  --lh-4xl: 48px;
  --lh-5xl: 64px;
  --lh-6xl: 76px;
  --track: 0.02em;
  --track-tight: 0.01em;
}

/* ---------- 基本 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background-color: var(--bg);
}
body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: var(--lh-base);
  letter-spacing: var(--track);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* 換語言的區塊（例如中文頁裡的英文摘要）依自己的語言重新計算行高：
   行高會以算好的數值繼承下去，不重新宣告就會沿用外層語言的行高 */
[lang] {
  line-height: var(--lh-base);
}
html.menu-open {
  overflow: hidden;
}
img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
button {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}
b,
strong {
  font-weight: 600;
}
h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: var(--track-tight);
  text-wrap: balance;
}
p,
li,
figcaption,
dd,
summary {
  text-wrap: pretty;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
main:focus {
  outline: none;
}
::selection {
  background-color: rgba(94, 224, 255, 0.3);
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.line {
  display: block;
}
.phrase {
  display: inline-block;
}
/* 段落最後幾個字綁在一起，避免最後一行只剩一個詞 */
.nowrap {
  white-space: nowrap;
}
.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 300ms var(--ease);
}
.text-link:hover {
  color: var(--text);
}

/* ---------- 版面 ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
}
.section {
  padding-block: 64px;
}
/* 灰色色帶：用平的 #181818 分出段落（B4 不用漸層）；色帶裡的表面要往上提一階，才不會跟色帶同色 */
.section.is-band {
  background-color: var(--surface-1);
}
.section-head {
  display: grid;
  gap: 16px;
  max-width: 680px;
  margin-bottom: 48px;
}
.section-head.is-center {
  margin-inline: auto;
  justify-items: center;
  text-align: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: var(--lh-sm);
  font-weight: 600;
  color: var(--accent);
}
.kicker .icon {
  width: 16px;
  height: 16px;
}
.section-title {
  font-size: 30px;
  line-height: var(--lh-3xl);
}
.section-lead {
  font-size: 18px;
  line-height: var(--lh-lg);
  color: var(--text-2);
}
@media (min-width: 640px) {
  .container {
    padding-inline: 24px;
  }
}
@media (min-width: 768px) {
  .section-title {
    font-size: 36px;
    line-height: var(--lh-4xl);
  }
}
@media (min-width: 1024px) {
  .container {
    padding-inline: 32px;
  }
  .section {
    padding-block: 96px;
  }
}

/* ---------- 按鈕（B2：上下 8px、左右 12px；B9：hover、按下、焦點） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 16px;
  line-height: var(--lh-base);
  font-weight: 600;
  white-space: nowrap;
  transition: transform 500ms var(--ease), background-color 300ms var(--ease), color 300ms var(--ease);
}
.btn-sm {
  font-size: 14px;
  line-height: var(--lh-sm);
  border-radius: 8px;
}
.btn-primary {
  background-color: #FFFFFF;
  color: #000000;
}
.btn-primary:hover {
  background-color: #E6E6E6;
  transform: translateY(-2px);
}
.btn-secondary {
  background-color: var(--surface-3);
  color: var(--text);
}
.btn-secondary:hover {
  background-color: var(--surface-4);
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-color: var(--surface-3);
  color: var(--text);
  transition: transform 500ms var(--ease), background-color 300ms var(--ease);
}
.icon-btn:hover {
  background-color: var(--surface-4);
}
.btn:active,
.icon-btn:active {
  transform: scale(0.98);
}
.link-button {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 300ms var(--ease);
}
.link-button:hover {
  color: var(--text);
}

/* 跳到主要內容：平常藏在畫面上方，按 Tab 才出現 */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-200%);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
}

/* ---------- 導覽列（B7：浮在頂端、置中、依內容寬度、半透明加模糊） ---------- */
.site-nav {
  position: fixed;
  top: 12px;
  inset-inline: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin-inline: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background-color: rgba(24, 24, 24, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 8px;
  font-size: 16px;
  line-height: var(--lh-base);
  font-weight: 600;
  white-space: nowrap;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav-links a,
.lang-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: var(--lh-sm);
  color: var(--text-2);
  white-space: nowrap;
  transition: color 300ms var(--ease), background-color 300ms var(--ease);
}
.nav-links a:hover,
.lang-link:hover {
  color: var(--text);
  background-color: var(--surface-3);
}
.nav-links a[aria-current="true"] {
  color: var(--text);
  background-color: var(--surface-4);
}
.lang-link .icon {
  width: 16px;
  height: 16px;
}
.site-nav .lang-link {
  display: none;
}
/* 隱私權政策、404 沒有手機選單，語言切換一直顯示 */
.site-nav .lang-link.is-always {
  display: inline-flex;
}
.menu-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: background-color 300ms var(--ease);
}
.menu-toggle:hover {
  background-color: var(--surface-3);
}
.menu-toggle .bar {
  position: absolute;
  top: 19px;
  left: 12px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--text);
  transition: transform 500ms var(--ease);
}
.menu-toggle .bar:first-child {
  transform: translateY(-4px);
}
.menu-toggle .bar:last-child {
  transform: translateY(4px);
}
.menu-toggle[aria-expanded="true"] .bar:first-child {
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .bar:last-child {
  transform: rotate(-45deg);
}

/* 手機選單：全高面板，連結依序上升淡入（每個晚 60ms，最多 400ms） */
.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 96px 24px 48px;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.88);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  transition: opacity 500ms var(--ease);
}
.menu-panel[hidden] {
  display: none;
}
.menu-panel.is-open {
  opacity: 1;
}
.menu-panel a {
  --i: 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
  transition-delay: 0ms;
}
.menu-panel.is-open a {
  opacity: 1;
  transform: none;
  transition-delay: min(calc(var(--i) * 60ms), 400ms);
}
.menu-link {
  padding-block: 12px;
  font-size: 24px;
  line-height: var(--lh-2xl);
  font-weight: 600;
}
.menu-panel .lang-link {
  align-self: flex-start;
  margin-top: 16px;
  padding: 8px 0;
}
.menu-panel .btn {
  margin-top: 24px;
}
@media (min-width: 1024px) {
  .nav-links,
  .site-nav .lang-link {
    display: flex;
  }
  .menu-toggle,
  .menu-panel {
    display: none;
  }
}

/* ---------- 首頁主視覺 ---------- */
.hero {
  padding-top: 96px;
  padding-bottom: 64px;
}
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.hero-copy {
  display: grid;
  gap: 24px;
  justify-items: start;
}
.hero-title {
  max-width: 680px;
  padding-bottom: 8px;
  font-size: 36px;
  line-height: var(--lh-4xl);
  color: #FFFFFF;
  background-image: linear-gradient(90deg, #FFFFFF, #9B9B9B);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  max-width: 680px;
  font-size: 18px;
  line-height: var(--lh-lg);
  color: var(--text-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
  line-height: var(--lh-sm);
  color: var(--text-2);
}
.proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.proof .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
@media (min-width: 640px) {
  .hero-title {
    font-size: 48px;
    line-height: var(--lh-5xl);
  }
}
@media (min-width: 1024px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: 100svh;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
  .hero-title {
    font-size: 60px;
    line-height: var(--lh-6xl);
  }
}

/* QR Code：只在有滑鼠的大螢幕顯示（手機無法掃自己的螢幕） */
.qr-block {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qr-block p {
  max-width: 128px;
  font-size: 14px;
  line-height: var(--lh-sm);
  color: var(--text-2);
}
.qr {
  position: relative;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  flex: none;
  padding: 8px;
  border-radius: 12px;
  background-color: #FFFFFF;
}
.qr img,
.qr canvas {
  width: 112px;
  height: 112px;
  border-radius: 4px;
}
.qr.is-loading {
  background-color: var(--surface-3);
}
.qr.is-loading::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 4px;
  background-color: var(--surface-4);
}
.qr.is-error {
  padding: 12px;
  background-color: var(--surface-2);
  color: var(--text-2);
  font-size: 12px;
  line-height: var(--lh-xs);
  text-align: center;
}
@media (hover: none), (max-width: 767px) {
  .qr-block {
    display: none;
  }
}

/* ---------- 主視覺的兩支手機 ---------- */
.hero-visual {
  position: relative;
}
.hero-stage {
  --s: 0.46;
  --gap: 24px;
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  column-gap: var(--gap);
  padding-block: 16px;
}
.hero-phone {
  position: relative;
  display: grid;
  gap: 16px;
  width: calc(320px * var(--s));
}
.hero-phone .device-label {
  justify-self: center;
}
.device-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: var(--lh-xs);
  color: var(--text-3);
  white-space: nowrap;
}
.device-label .icon {
  width: 16px;
  height: 16px;
}
.hero-chip {
  position: absolute;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background-color: var(--surface-3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  font-size: 12px;
  line-height: var(--lh-xs);
  font-weight: 600;
  white-space: nowrap;
}
.hero-chip .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.hero-chip.is-airdrop {
  z-index: 10;
  top: 24%;
  left: 50%;
  translate: -50% 0;
}
/* 放在專輯列表與迷你播放器之間的空白處（畫面座標 560） */
.hero-chip.is-offline {
  top: calc(560px * var(--s));
  right: calc(12px * var(--s));
}
/* 從左邊手機的第一張專輯飛到右邊手機的同一個位置（狀態列 52 + 導覽列 48 + 標題 56 = 156） */
.fly {
  --fly-x: calc(320px * var(--s) + var(--gap));
  position: absolute;
  z-index: 9;
  top: calc(156px * var(--s));
  left: calc(16px * var(--s));
  width: calc(138px * var(--s));
  border-radius: 8px;
  opacity: 0;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
@media (min-width: 640px) {
  .hero-stage {
    --s: 0.7;
    --gap: 40px;
  }
  .hero-chip {
    font-size: 14px;
    line-height: var(--lh-sm);
  }
}
@media (min-width: 1024px) {
  .hero-stage {
    --s: 0.72;
  }
}

/* ---------- 手機外框與 App 畫面示意 ---------- */
.device {
  position: relative;
  flex: none;
  width: calc(320px * var(--s, 1));
  height: calc(696px * var(--s, 1));
}
.ios {
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  height: 696px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 32px;
  background-color: #FFFFFF;
  color: #000000;
  box-shadow: 0 0 0 6px #0A0A0A, 0 0 0 7px rgba(255, 255, 255, 0.16), 0 32px 64px rgba(0, 0, 0, 0.55);
  font-size: 14px;
  line-height: var(--lh-sm);
  letter-spacing: 0;
  transform: scale(var(--s, 1));
  transform-origin: 0 0;
}
.ios .icon {
  width: 20px;
  height: 20px;
}
.ios-island {
  position: absolute;
  top: 12px;
  left: 112px;
  z-index: 20;
  width: 96px;
  height: 28px;
  border-radius: 9999px;
  background-color: #000000;
}
.ios-home {
  position: absolute;
  bottom: 8px;
  left: 104px;
  z-index: 20;
  width: 112px;
  height: 4px;
  border-radius: 9999px;
  background-color: #000000;
}
.ios-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
}
.ios-screen.is-grouped {
  background-color: #F2F2F7;
}
.ios-status {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 12px 24px 0 32px;
  font-size: 14px;
  line-height: var(--lh-sm);
  font-weight: 600;
}
.ios-signal {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ios-signal .icon {
  width: 16px;
  height: 16px;
}
.ios-signal .is-off {
  color: rgba(60, 60, 67, 0.45);
}
.ios-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 48px;
  padding: 0 16px;
}
.ios-bar-title {
  position: absolute;
  inset-inline: 0;
  font-size: 14px;
  line-height: var(--lh-sm);
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}
.ios-bar-group {
  display: flex;
  gap: 8px;
}
.ios-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 32px;
  height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  font-size: 14px;
  line-height: var(--lh-sm);
  font-weight: 600;
}
.ios-glass.is-round {
  padding: 0;
}
.ios-glass .icon {
  width: 16px;
  height: 16px;
}
.ios-blue {
  color: #007AFF;
}
/* 標題與專輯格子用固定高度：中英文行高不同，動畫的位移量才會一樣 */
.ios-title {
  height: 56px;
  padding: 4px 16px 0;
  font-size: 30px;
  line-height: var(--lh-3xl);
  font-weight: 700;
}
.ios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
  padding: 0 16px;
}
.ios-album {
  display: grid;
  align-content: start;
  height: 190px;
}
.ios-album img {
  width: 100%;
  border-radius: 16px;
}
.ios-album-name {
  overflow: hidden;
  padding-top: 8px;
  font-size: 14px;
  line-height: var(--lh-sm);
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ios-album-meta,
.ios-sub,
.ios-caption {
  font-size: 12px;
  line-height: var(--lh-xs);
  font-weight: 400;
  color: rgba(60, 60, 67, 0.6);
}
.ios-sub {
  display: block;
}
.ios-section {
  padding: 16px 32px 8px;
  font-size: 12px;
  line-height: var(--lh-xs);
  color: rgba(60, 60, 67, 0.6);
}
.ios-card {
  margin-inline: 16px;
  overflow: hidden;
  border-radius: 16px;
  background-color: #FFFFFF;
}
.ios-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: var(--lh-sm);
}
.ios-row + .ios-row::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 16px;
  height: 1px;
  background-color: rgba(60, 60, 67, 0.12);
}
.ios-row.is-small {
  padding-block: 8px;
  font-size: 12px;
  line-height: var(--lh-xs);
}
.ios-row > .icon {
  color: #007AFF;
}
.ios-row-text {
  flex: 1;
  min-width: 0;
}
.ios-num {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 9999px;
  background-color: rgba(0, 122, 255, 0.12);
  color: #007AFF;
  font-size: 12px;
  line-height: var(--lh-xs);
  font-weight: 600;
}
.ios-time {
  margin-left: auto;
  font-size: 12px;
  line-height: var(--lh-xs);
  color: rgba(60, 60, 67, 0.6);
  font-variant-numeric: tabular-nums;
}
.ios-pill-btn {
  flex: none;
  padding: 4px 12px;
  border-radius: 9999px;
  background-color: #007AFF;
  color: #FFFFFF;
  font-size: 12px;
  line-height: var(--lh-xs);
  font-weight: 600;
}
.ios-address {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 24px 16px;
  text-align: center;
}
.ios-address .icon {
  width: 32px;
  height: 32px;
  color: #007AFF;
}
.ios-url {
  font-family: var(--mono);
  font-size: 16px;
  line-height: var(--lh-base);
  font-weight: 500;
}
.ios-file {
  display: none;
}
.ios-file .icon {
  color: #34C759;
}
/* 第一個檔案出現時，上面的「還沒有收到檔案」已經藏起來，不需要分隔線 */
.ios-file[data-at="1"]::before {
  display: none;
}
.ios-card.is-inset {
  margin-inline: 0;
  border-radius: 8px;
  background-color: #F2F2F7;
}
.ios-inbox-empty {
  display: none;
}
.ios-incoming-head .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
}

/* 長按選單 */
.ios-dim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-color: rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 500ms var(--ease);
}
.ios-album.is-target img {
  position: relative;
  z-index: 4;
  transition: transform 500ms var(--ease);
}
.ios-menu {
  position: absolute;
  top: 312px;
  left: 16px;
  z-index: 5;
  display: grid;
  width: 200px;
  padding: 8px;
  border-radius: 24px;
  background-color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: scale(0.8);
  transform-origin: 32px 0;
  transition: opacity 300ms var(--ease), transform 500ms var(--ease);
}
.ios-menu.is-right {
  left: 104px;
  transform-origin: 168px 0;
}
.ios-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 14px;
  line-height: var(--lh-sm);
  transition: background-color 300ms var(--ease);
}
.ios-menu-item .icon {
  width: 16px;
  height: 16px;
}
.ios-menu-item.is-danger {
  color: #FF3B30;
}

/* 底部浮起的面板、提示框、迷你播放器 */
.ios-sheet {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  z-index: 6;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  background-color: #FFFFFF;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.14);
  transform: translateY(110%);
  transition: transform 500ms var(--ease);
}
.ios-sheet.is-tall {
  top: 56px;
}
.ios-sheet-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
}
.ios-sheet-title {
  position: absolute;
  inset-inline: 0;
  font-size: 14px;
  line-height: var(--lh-sm);
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}
.ios-hero-cover {
  width: 96px;
  justify-self: center;
  border-radius: 16px;
}
.ios-center {
  display: grid;
  justify-items: center;
  text-align: center;
}
.ios-name {
  font-size: 20px;
  line-height: var(--lh-xl);
  font-weight: 600;
}
.ios-notice {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background-color: #F2F2F7;
  font-size: 12px;
  line-height: var(--lh-xs);
}
.ios-notice b {
  display: block;
  font-size: 14px;
  line-height: var(--lh-sm);
}
.ios-notice .icon {
  color: #007AFF;
}
.ios-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background-color: #007AFF;
  color: #FFFFFF;
  font-size: 14px;
  line-height: var(--lh-sm);
  font-weight: 600;
}
.ios-primary .icon {
  width: 16px;
  height: 16px;
}
.ios-share-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ios-share-head img {
  width: 40px;
  border-radius: 8px;
}
.ios-people {
  display: flex;
  gap: 24px;
  padding: 8px 4px;
}
.ios-person {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 64px;
  font-size: 12px;
  line-height: var(--lh-xs);
  text-align: center;
}
.ios-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background-color: #A2A7B3;
  color: #FFFFFF;
  font-size: 20px;
  line-height: var(--lh-xl);
  font-weight: 600;
}
.ios-avatar.is-alt {
  background-color: #C2A27A;
}
.ios-avatar .ios-airdrop-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background-color: #007AFF;
  color: #FFFFFF;
}
.ios-avatar .ios-airdrop-badge .icon {
  width: 12px;
  height: 12px;
}
.ios-ring {
  position: absolute;
  inset: 0;
  border: 2px solid #007AFF;
  border-radius: 9999px;
  opacity: 0;
  transition: opacity 300ms var(--ease);
}
.ios-person-state > span {
  display: none;
}
.ios-person-state > span:first-child {
  display: inline;
}
.ios-alert {
  position: absolute;
  top: 248px;
  left: 40px;
  z-index: 7;
  display: grid;
  gap: 4px;
  width: 240px;
  padding: 16px;
  border-radius: 24px;
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  text-align: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 300ms var(--ease), transform 500ms var(--ease);
}
.ios-alert b {
  font-size: 16px;
  line-height: var(--lh-base);
}
.ios-alert p {
  font-size: 12px;
  line-height: var(--lh-xs);
}
.ios-alert-btn {
  margin-top: 12px;
  padding: 8px;
  border-radius: 8px;
  background-color: rgba(120, 120, 128, 0.16);
  color: #007AFF;
  font-size: 14px;
  line-height: var(--lh-sm);
  font-weight: 600;
}
.ios-mini {
  position: absolute;
  right: 8px;
  bottom: 24px;
  left: 8px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 16px 0 12px;
  border-radius: 24px;
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  font-size: 14px;
  line-height: var(--lh-sm);
  font-weight: 600;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.ios-mini img {
  width: 32px;
  border-radius: 8px;
}
.ios-mini .ios-row-text {
  display: grid;
}
.ios-mini .icon {
  width: 20px;
  height: 20px;
}

/* 播放畫面 */
.ios-album-head {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 0 16px 16px;
  text-align: center;
}
.ios-album-head img {
  width: 160px;
  margin-bottom: 8px;
  border-radius: 16px;
}
.ios-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
}
.ios-soft-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border-radius: 9999px;
  background-color: rgba(120, 120, 128, 0.12);
  color: #007AFF;
  font-size: 14px;
  line-height: var(--lh-sm);
  font-weight: 600;
}
.ios-soft-btn .icon {
  width: 16px;
  height: 16px;
}
.ios-tracks .ios-row {
  padding-inline: 16px;
}
.ios-track-num {
  width: 16px;
  flex: none;
  color: rgba(60, 60, 67, 0.6);
  font-size: 12px;
  line-height: var(--lh-xs);
  text-align: center;
}
.ios-now {
  gap: 16px;
  padding: 12px 24px 24px;
}
.ios-grabber {
  justify-self: center;
  width: 40px;
  height: 4px;
  border-radius: 9999px;
  background-color: rgba(60, 60, 67, 0.3);
}
.ios-now-cover {
  justify-self: center;
  width: 224px;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(140, 89, 242, 0.35);
  transform: scale(0.88);
  transition: transform 500ms var(--ease);
}
.ios-now-title {
  font-size: 20px;
  line-height: var(--lh-xl);
  font-weight: 600;
}
.ios-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 9999px;
  background-color: rgba(60, 60, 67, 0.18);
}
.ios-progress span {
  display: block;
  height: 100%;
  background-color: #007AFF;
  transform: scaleX(0.06);
  transform-origin: left center;
}
.ios-scrub {
  display: grid;
  gap: 8px;
}
.ios-times {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  line-height: var(--lh-xs);
  color: rgba(60, 60, 67, 0.6);
  font-variant-numeric: tabular-nums;
}
.ios-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ios-controls .icon {
  width: 24px;
  height: 24px;
}
.ios-controls .is-small {
  width: 20px;
  height: 20px;
  color: rgba(60, 60, 67, 0.6);
}
.ios-play {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background-color: #000000;
  color: #FFFFFF;
}
.ios-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  line-height: var(--lh-xs);
  color: rgba(60, 60, 67, 0.6);
}
.ios-foot .icon {
  width: 20px;
  height: 20px;
}

/* 點擊位置的提示圈 */
.tap {
  position: absolute;
  top: var(--y);
  left: var(--x);
  z-index: 30;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background-color: rgba(0, 0, 0, 0.16);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  [data-beat~="1"] .tap[data-at="1"],
  [data-beat~="2"] .tap[data-at="2"],
  [data-beat~="3"] .tap[data-at="3"],
  [data-beat~="4"] .tap[data-at="4"],
  [data-beat~="5"] .tap[data-at="5"],
  [data-beat~="6"] .tap[data-at="6"] {
    animation: tap 800ms var(--ease) both;
  }
  [data-beat~="1"] .tap.is-hold[data-at="1"],
  [data-beat~="2"] .tap.is-hold[data-at="2"] {
    animation: tap-hold 1200ms var(--ease) both;
  }
}
/* 重新開始一段示範時，先關掉轉場，避免看到元件倒退回去 */
[data-resetting],
[data-resetting] * {
  transition: none !important;
  animation: none !important;
}

/* ---------- 主視覺動畫：長按分享 → 飛到家人手機 → 沒有網路照樣播 ---------- */
.hero-visual .tile-shift {
  transition: transform 500ms var(--ease), opacity 500ms var(--ease);
}
.hero-visual[data-armed] .tile-new {
  opacity: 0;
  transform: scale(0.8);
}
.hero-visual[data-armed] .tile-shift[data-from="1"] {
  transform: translateX(-150px);
}
.hero-visual[data-armed] .tile-shift[data-from="2"] {
  transform: translate(150px, -206px);
}
.hero-visual[data-armed] .tile-shift[data-from="3"] {
  transform: translateX(-150px);
}
.hero-visual .hero-chip {
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.hero-visual[data-armed] .hero-chip {
  opacity: 0;
  transform: translateY(8px);
}
.hero-visual[data-beat~="1"] .is-target img {
  transform: scale(0.96);
}
.hero-visual[data-beat~="2"] .ios-dim {
  opacity: 1;
}
.hero-visual[data-beat~="2"] .is-target img {
  transform: scale(1.04);
}
.hero-visual[data-beat~="2"] .ios-menu {
  opacity: 1;
  transform: none;
}
.hero-visual[data-beat~="3"] .ios-menu-item.is-share {
  background-color: rgba(0, 0, 0, 0.08);
}
.hero-visual[data-beat~="4"] .ios-dim {
  opacity: 0;
}
.hero-visual[data-beat~="4"] .is-target img {
  transform: none;
}
.hero-visual[data-beat~="4"] .ios-menu {
  opacity: 0;
  transform: scale(0.8);
}
.hero-visual[data-beat~="4"] .hero-chip.is-airdrop {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-visual[data-beat~="4"] .fly {
    animation: fly 1100ms var(--ease) both;
  }
}
.hero-visual[data-beat~="5"] .tile-new,
.hero-visual[data-beat~="5"] .tile-shift[data-from] {
  opacity: 1;
  transform: none;
}
.hero-visual[data-beat~="5"] .hero-chip.is-airdrop {
  opacity: 0;
  transform: translateY(8px);
}
.hero-visual[data-beat~="6"] .ios-mini {
  opacity: 1;
  transform: none;
}
.hero-visual[data-beat~="6"] .hero-chip.is-offline {
  opacity: 1;
  transform: none;
}
/* 第 7 拍倒帶回起點，下一輪重新開始時畫面不會跳動 */
.hero-visual[data-beat~="7"] .tile-new {
  opacity: 0;
  transform: scale(0.8);
}
.hero-visual[data-beat~="7"] .tile-shift[data-from="1"],
.hero-visual[data-beat~="7"] .tile-shift[data-from="3"] {
  transform: translateX(-150px);
}
.hero-visual[data-beat~="7"] .tile-shift[data-from="2"] {
  transform: translate(150px, -206px);
}
.hero-visual[data-beat~="7"] .ios-mini,
.hero-visual[data-beat~="7"] .hero-chip.is-offline {
  opacity: 0;
  transform: translateY(16px);
}

/* ---------- 為什麼用口袋唱片 ---------- */
.benefits {
  display: grid;
  gap: 24px;
}
.benefit {
  display: grid;
  gap: 40px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background-color: var(--surface-1);
}
.benefit-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}
.benefit-title {
  font-size: 30px;
  line-height: var(--lh-3xl);
}
.benefit-copy > p {
  color: var(--text-2);
}
.checks {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}
.checks li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
}
.checks .icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}
.checks b {
  display: block;
  color: var(--text);
}
.checks span {
  color: var(--text-2);
}
.note-card {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background-color: var(--surface-2);
  font-size: 14px;
  line-height: var(--lh-sm);
  color: var(--text-2);
}
.note-card .icon {
  color: var(--accent);
}
.benefit-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: 24px;
}
.shot {
  width: 224px;
  overflow: hidden;
  border-radius: 24px;
  background-color: #000000;
  box-shadow: 0 0 0 6px #0A0A0A, 0 0 0 7px rgba(255, 255, 255, 0.16), 0 24px 48px rgba(0, 0, 0, 0.5);
}
.benefit-visual .hero-chip.is-a {
  top: 16%;
  left: 0;
}
.benefit-visual .hero-chip.is-b {
  right: 0;
  bottom: 20%;
}
.flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.flow figure {
  display: grid;
  gap: 12px;
}
.flow img {
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 16px 32px rgba(0, 0, 0, 0.4);
}
.flow figcaption {
  font-size: 12px;
  line-height: var(--lh-xs);
  color: var(--text-2);
  text-align: center;
}
.flow figcaption b {
  display: block;
  color: var(--accent);
}
.features {
  display: grid;
  gap: 16px;
}
.feature {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background-color: var(--surface-1);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  border-radius: 12px;
  background-color: var(--surface-3);
  color: var(--accent);
}
.feature-icon .icon {
  width: 24px;
  height: 24px;
}
.feature h3 {
  font-size: 20px;
  line-height: var(--lh-xl);
}
.feature p {
  font-size: 14px;
  line-height: var(--lh-sm);
  color: var(--text-2);
}
@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .flow {
    gap: 16px;
  }
}
@media (min-width: 768px) {
  .benefit {
    padding: 48px;
  }
  .benefit-title {
    font-size: 36px;
    line-height: var(--lh-4xl);
  }
}
@media (min-width: 1024px) {
  .benefit {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
  }
  .benefit.is-flip .benefit-visual {
    order: -1;
  }
  .features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- 標語（B11：捲動時逐字由淡轉亮） ---------- */
.tagline {
  padding-block: 96px;
}
.tagline-text {
  position: relative;
  max-width: 680px;
  margin-inline: auto;
  font-size: 36px;
  line-height: var(--lh-4xl);
  font-weight: 600;
  letter-spacing: var(--track-tight);
  text-align: center;
}
.is-armed .tagline-word {
  opacity: 0.3;
  transition: opacity 500ms var(--ease);
}
.is-armed .tagline-word.is-lit {
  opacity: 1;
}
@media (min-width: 768px) {
  .tagline-text {
    font-size: 48px;
    line-height: var(--lh-5xl);
  }
}

/* ---------- 操作示範 ---------- */
.demo {
  display: grid;
  gap: 40px;
}
.demo-stage {
  --s: 1;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 24px;
  width: 100%;
  padding-block: 8px;
}
.demo-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-count {
  min-width: 64px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: var(--lh-sm);
  font-weight: 500;
  color: var(--text-3);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
[data-demo-toggle][data-state="playing"] .is-play,
[data-demo-toggle][data-state="paused"] .is-pause {
  display: none;
}
html:not(.js) .demo-controls,
html:not(.js) .qr-block {
  display: none;
}
.demo-callout {
  position: absolute;
  top: 64px;
  right: 0;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background-color: var(--surface-3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  font-size: 14px;
  line-height: var(--lh-sm);
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.demo-callout .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
/* 外框上的說明跟著目前的段落（根元素用 data-current，不能用 data-scene，否則會選到每一段） */
.demo[data-current="6"][data-current-beat~="3"] .demo-callout {
  opacity: 1;
  transform: none;
}
.demo-steps {
  display: grid;
  gap: 24px;
}
.demo-group {
  display: grid;
  gap: 8px;
}
.demo-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  line-height: var(--lh-xl);
  font-weight: 600;
}
.demo-group-num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background-color: var(--surface-3);
  color: var(--accent);
  font-size: 14px;
  line-height: var(--lh-sm);
  font-weight: 600;
}
.demo-group ol {
  display: grid;
  gap: 4px;
}
.demo-step {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 16px;
  text-align: left;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease);
}
.demo-step:hover {
  background-color: var(--surface-1);
}
.demo-step[aria-current="step"] {
  border-color: var(--line-strong);
  background-color: var(--surface-2);
}
.is-band .demo-step:hover {
  background-color: var(--surface-2);
}
.is-band .demo-step[aria-current="step"] {
  background-color: var(--surface-3);
}
.demo-step-title {
  font-size: 16px;
  line-height: var(--lh-base);
  font-weight: 600;
  color: var(--text-2);
  transition: color 300ms var(--ease);
}
.demo-step[aria-current="step"] .demo-step-title {
  color: var(--text);
}
.demo-step-desc {
  font-size: 14px;
  line-height: var(--lh-sm);
  color: var(--text-3);
}
.demo-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 48px;
  font-size: 14px;
  line-height: var(--lh-sm);
  color: var(--text-3);
}
.demo-screen {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
  pointer-events: none;
}
.demo-screen[data-active] {
  z-index: 1;
  opacity: 1;
  transform: none;
}
@media (min-width: 1024px) {
  .demo {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 64px;
    align-items: center;
  }
  .demo-stage {
    order: 2;
    width: 360px;
  }
}

/* 每一段示範的狀態都限定在自己的 data-scene 裡，避免兩段共用的元件互相觸發 */
.demo-screen .ios-sheet.is-open {
  transform: none;
}
/* 第 1 段：Wi-Fi 傳歌，檔案一個一個進來 */
.ios-count > span {
  display: none;
}
[data-scene="1"]:not([data-beat~="1"]) .ios-count .c0,
[data-scene="1"][data-beat~="1"]:not([data-beat~="2"]) .ios-count .c1,
[data-scene="1"][data-beat~="2"]:not([data-beat~="3"]) .ios-count .c2,
[data-scene="1"][data-beat~="3"] .ios-count .c3 {
  display: inline;
}
[data-scene="1"][data-beat~="1"] .ios-empty {
  display: none;
}
[data-scene="1"][data-beat~="1"] .ios-file[data-at="1"],
[data-scene="1"][data-beat~="2"] .ios-file[data-at="2"],
[data-scene="1"][data-beat~="3"] .ios-file[data-at="3"] {
  display: flex;
}
/* 第 2 段：匯入資料夾 */
[data-scene="2"][data-beat~="2"] .ios-dim,
[data-scene="5"][data-beat~="3"] .ios-dim {
  opacity: 1;
}
[data-scene="2"][data-beat~="2"] .ios-alert,
[data-scene="5"][data-beat~="3"] .ios-alert {
  opacity: 1;
  transform: none;
}
[data-scene="2"][data-beat~="2"] .ios-inbox-folder {
  display: none;
}
[data-scene="2"][data-beat~="2"] .ios-inbox-empty {
  display: flex;
}
[data-scene="2"][data-beat~="4"] .ios-dim {
  opacity: 0;
}
[data-scene="2"][data-beat~="4"] .ios-alert {
  opacity: 0;
  transform: scale(0.96);
}
/* 第 3 段：長按專輯 */
[data-scene="3"][data-beat~="1"] .is-target img {
  transform: scale(0.96);
}
[data-scene="3"][data-beat~="2"] .is-target img {
  transform: scale(1.04);
}
[data-scene="3"][data-beat~="2"] .ios-dim {
  opacity: 1;
}
[data-scene="3"][data-beat~="2"] .ios-menu {
  opacity: 1;
  transform: none;
}
[data-scene="3"][data-beat~="3"] .ios-menu-item.is-share {
  background-color: rgba(0, 0, 0, 0.08);
}
/* 第 4 段：確認後用 AirDrop 傳送 */
[data-scene="4"] .ios-dim {
  opacity: 1;
}
[data-scene="4"][data-beat~="2"] .ios-sheet.is-confirm {
  transform: translateY(110%);
}
[data-scene="4"][data-beat~="2"] .ios-sheet.is-share {
  transform: none;
}
[data-scene="4"][data-beat~="4"] .ios-ring {
  opacity: 1;
}
[data-scene="4"][data-beat~="4"] .ios-person-state > span:first-child {
  display: none;
}
[data-scene="4"][data-beat~="4"]:not([data-beat~="5"]) .ios-person-state .s1,
[data-scene="4"][data-beat~="5"] .ios-person-state .s2 {
  display: inline;
}
[data-scene="4"][data-beat~="5"] .ios-person-state .s2 {
  color: #007AFF;
  font-weight: 600;
}
/* 第 5 段：收到分享 → 匯入，新專輯出現在第一格 */
[data-scene="5"] .tile-new {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
[data-scene="5"][data-beat~="2"] .ios-sheet.is-incoming {
  transform: translateY(110%);
}
[data-scene="5"][data-beat~="2"] .tile-new {
  opacity: 1;
  transform: none;
}
/* 第 6 段：播放，沒有網路照樣播 */
[data-scene="6"][data-beat~="2"] .ios-sheet.is-now {
  transform: none;
}
[data-scene="6"][data-beat~="2"] .ios-now-cover {
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  [data-scene="1"][data-beat~="1"] .ios-file[data-at="1"],
  [data-scene="1"][data-beat~="2"] .ios-file[data-at="2"],
  [data-scene="1"][data-beat~="3"] .ios-file[data-at="3"] {
    animation: row-in 500ms var(--ease) both;
  }
}

/* ---------- 放入音樂的分頁 ---------- */
.tabs {
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 24px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background-color: var(--surface-1);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tab {
  flex: none;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: var(--lh-sm);
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 300ms var(--ease), background-color 300ms var(--ease);
}
.tab:hover {
  color: var(--text);
}
.tab[aria-selected="true"] {
  background-color: var(--surface-4);
  color: var(--text);
}
.tab-panel {
  display: grid;
  gap: 40px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background-color: var(--surface-1);
}
.tab-panel[hidden] {
  display: none;
}
.panel-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}
.panel-tag {
  font-size: 14px;
  line-height: var(--lh-sm);
  font-weight: 600;
  color: var(--accent);
}
.panel-title {
  font-size: 24px;
  line-height: var(--lh-2xl);
}
.steps {
  display: grid;
  gap: 16px;
}
.steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background-color: var(--surface-3);
  color: var(--accent);
  font-size: 14px;
  line-height: var(--lh-sm);
  font-weight: 600;
}
.steps b {
  display: block;
}
.steps .step-detail {
  display: block;
  font-size: 14px;
  line-height: var(--lh-sm);
  color: var(--text-2);
}
.panel-note {
  font-size: 14px;
  line-height: var(--lh-sm);
  color: var(--text-3);
}
.panel-figure {
  display: grid;
  justify-items: center;
  gap: 12px;
}
.panel-figure .is-wide {
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 48px rgba(0, 0, 0, 0.4);
}
.panel-figure figcaption {
  font-size: 14px;
  line-height: var(--lh-sm);
  color: var(--text-3);
  text-align: center;
}
@media (min-width: 768px) {
  .tab-panel {
    padding: 48px;
  }
}
@media (min-width: 1024px) {
  .tab-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
  }
}

/* ---------- 實機截圖 ---------- */
.gallery {
  display: flex;
  gap: 16px;
  padding: 8px 4px 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-4) transparent;
  border-radius: 16px;
}
.gallery figure {
  display: grid;
  gap: 12px;
  width: 184px;
  flex: none;
  scroll-snap-align: start;
}
.gallery img {
  border-radius: 24px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.gallery figcaption {
  font-size: 14px;
  line-height: var(--lh-sm);
  color: var(--text-2);
  text-align: center;
}

/* ---------- 常見問題 ---------- */
.faq-layout {
  display: grid;
  gap: 32px;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background-color: var(--surface-1);
  transition: border-color 300ms var(--ease);
}
.faq-item[open] {
  border-color: var(--line-strong);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-radius: 16px;
  font-size: 16px;
  line-height: var(--lh-base);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary .icon {
  color: var(--text-3);
  transition: transform 500ms var(--ease);
}
.faq-item[open] summary .icon {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 24px 24px;
  color: var(--text-2);
}
@media (min-width: 1024px) {
  .faq-layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 64px;
    align-items: start;
  }
  .faq-layout .section-head {
    position: sticky;
    top: 96px;
    margin-bottom: 0;
  }
}

/* ---------- 最後的下載區 ---------- */
.cta-card {
  display: grid;
  justify-items: center;
  gap: 24px;
  padding: 48px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background-color: var(--surface-1);
  text-align: center;
}
.cta-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(61, 123, 255, 0.35);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.cta-card .qr-block {
  text-align: left;
}
.cta-card .proof {
  justify-content: center;
}
@media (min-width: 768px) {
  .cta-card {
    padding: 64px 48px;
  }
}

/* ---------- 頁尾 ---------- */
.site-footer {
  padding-block: 48px 64px;
}
.footer-inner {
  display: grid;
  gap: 24px;
}
.footer-brand {
  display: grid;
  gap: 8px;
}
.footer-brand .brand {
  padding-right: 0;
}
.footer-brand p {
  font-size: 14px;
  line-height: var(--lh-sm);
  color: var(--text-3);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 14px;
  line-height: var(--lh-sm);
  color: var(--text-2);
}
.footer-links a,
.footer-links button {
  font-size: 14px;
  line-height: var(--lh-sm);
  transition: color 300ms var(--ease);
}
.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--text);
}
.footer-copy {
  font-size: 12px;
  line-height: var(--lh-xs);
  color: var(--text-3);
}
@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
  .footer-copy {
    grid-column: 1 / -1;
  }
}

/* ---------- 實機錄影對話框 ---------- */
.video-dialog {
  width: min(880px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background-color: var(--surface-1);
  color: var(--text);
}
.video-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.video-dialog-inner {
  display: grid;
  gap: 24px;
  padding: 24px;
}
.video-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.video-dialog-head h2 {
  font-size: 20px;
  line-height: var(--lh-xl);
}
.video-body {
  display: grid;
  gap: 24px;
}
.video-body video {
  width: min(280px, 100%);
  margin-inline: auto;
  aspect-ratio: 432 / 940;
  border-radius: 16px;
  background-color: #000000;
}
.chapters {
  display: grid;
  gap: 4px;
}
.chapter {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 12px;
  transition: background-color 300ms var(--ease);
}
.chapter:hover {
  background-color: var(--surface-3);
}
.chapter.is-active {
  background-color: var(--surface-4);
}
.chapter-num,
.chapter time {
  font-family: var(--mono);
  font-size: 12px;
  line-height: var(--lh-xs);
  font-weight: 500;
  color: var(--text-3);
}
.chapter-num {
  color: var(--accent);
}
.chapter-title {
  display: grid;
  font-size: 14px;
  line-height: var(--lh-sm);
  font-weight: 600;
}
.chapter-title span {
  font-size: 12px;
  line-height: var(--lh-xs);
  font-weight: 400;
  color: var(--text-3);
}
@media (min-width: 768px) {
  .video-body {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }
}

/* ---------- 隱私權政策、404 ---------- */
.legal {
  padding-top: 96px;
  padding-bottom: 64px;
}
.legal-inner {
  display: grid;
  gap: 16px;
  max-width: 780px;
  margin-inline: auto;
}
.legal-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: var(--lh-sm);
}
.legal h1 {
  font-size: 36px;
  line-height: var(--lh-4xl);
}
.legal-date {
  margin-bottom: 16px;
  color: var(--text-3);
}
.legal-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background-color: var(--surface-1);
}
.legal-card h2 {
  font-size: 20px;
  line-height: var(--lh-xl);
}
.legal-card p,
.legal-card li {
  color: var(--text-2);
}
.legal-card ul {
  display: grid;
  gap: 8px;
  padding-left: 24px;
  list-style: disc;
}
.legal-card b {
  color: var(--text);
}
.legal-en {
  margin-top: 24px;
}
.error-page {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 96px 16px 64px;
  text-align: center;
}
.error-inner {
  display: grid;
  justify-items: center;
  gap: 24px;
  max-width: 560px;
}
.error-code {
  font-family: var(--mono);
  font-size: 14px;
  line-height: var(--lh-sm);
  font-weight: 500;
  color: var(--accent);
}
.error-title {
  font-size: 36px;
  line-height: var(--lh-4xl);
}
.error-inner p {
  color: var(--text-2);
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- 捲動進場（B7：上升 32px、700ms、只播一次） ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 動畫 ---------- */
@keyframes pulse {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes tap {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }
  30% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2);
  }
}
@keyframes tap-hold {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.3);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.3);
  }
}
@keyframes fly {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(1);
  }
  15% {
    opacity: 1;
    transform: translate(0, -16px) scale(1.06);
  }
  85% {
    opacity: 1;
    transform: translate(var(--fly-x), -16px) scale(1.06);
  }
  100% {
    opacity: 0;
    transform: translate(var(--fly-x), 0) scale(1);
  }
}

/* 裝飾用的動畫只在沒有開啟「減少動態」時播放 */
@media (prefers-reduced-motion: no-preference) {
  .qr.is-loading::after {
    animation: pulse 1200ms var(--ease) infinite alternate;
  }
  .faq-item[open] .faq-answer {
    animation: fade-up 500ms var(--ease) both;
  }
  .video-dialog[open] {
    animation: dialog-in 500ms var(--ease) both;
  }
}

/* ---------- 減少動態：移動改成單純的淡入淡出 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal,
  .menu-panel a,
  .demo-screen,
  .hero-visual .hero-chip,
  .hero-visual[data-armed] .hero-chip,
  .demo-callout {
    transform: none;
  }
}
