/* 產品首頁（/、/en/）共用樣式。色票取自設計稿（CLAUDE.md「設計系統」）；開頭與結尾兩段一律深色，和 App Store 截圖一致。 */
:root {
  --bg: #FFFFFF; --surface: #F7F8FA; --surface-2: #F0F2F5; --line: #E5E7EB;
  --ink: #15171C; --ink-2: #5A6070; --ink-3: #6B7180;
  --accent: #4F5BD5; --accent-ink: #4450CC; --accent-soft: #EEF0FE;
  --warm: #C24A3E; --warm-ink: #B8433A; --warm-soft: #FDEEEC;
  --night: #0E1014; --night-2: #171A20; --night-line: #2A2F37; --night-ink: #ECEEF2; --night-ink-2: #A3A9B5; --lav: #C3C9FF;
  --serif: 'Noto Serif TC', 'Songti TC', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  --shadow: 0 1px 2px rgba(21, 23, 28, .06), 0 12px 32px rgba(21, 23, 28, .10);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1014; --surface: #13161B; --surface-2: #1F232A; --line: #2A2F37;
    --ink: #ECEEF2; --ink-2: #A3A9B5; --ink-3: #8E95A3;
    --accent: #5563E0; --accent-ink: #A9B1FF; --accent-soft: #22274A;
    --warm-ink: #FF9F94; --warm-soft: #36201E;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .45);
  }
}
html:lang(en) { --serif: 'Noto Serif', 'Noto Serif TC', Georgia, serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
/* 標題只在標點斷行、行長平均；內文避免最後一行只剩一個字 */
h1, h2, h3, summary { text-wrap: balance; }
html:lang(zh-Hant) h1, html:lang(zh-Hant) h2, html:lang(zh-Hant) h3 { word-break: keep-all; }
p, li { text-wrap: pretty; }
a { color: var(--accent-ink); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--bg); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* 按鈕 */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 14px; background: var(--accent); color: #fff;
  font-size: 17px; font-weight: 700; text-decoration: none; transition: transform .15s, background .15s; }
.btn:hover { background: #4450CC; transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
/* App 上架前的「即將上架」：不是連結 */
.btn.soon, .btn.soon:hover { background: rgba(195, 201, 255, .14); color: var(--lav); box-shadow: inset 0 0 0 1px rgba(195, 201, 255, .25); transform: none; cursor: default; }
.btn-note { margin: 12px 0 0; font-size: 14px; color: var(--night-ink-2); }

/* 開頭（深色） */
.hero { position: relative; overflow: hidden; background: var(--night); color: var(--night-ink);
  background-image: radial-gradient(60% 50% at 78% 40%, rgba(85, 99, 224, .28), transparent 70%), radial-gradient(40% 40% at 10% 0%, rgba(195, 201, 255, .08), transparent 70%); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--lav); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: 2px; }
html:lang(en) .brand { letter-spacing: .5px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.nav a { color: var(--night-ink-2); text-decoration: none; }
.nav a:hover { color: var(--night-ink); }
.nav .lang { padding: 5px 12px; border: 1px solid var(--night-line); border-radius: 999px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 56px; padding-top: 40px; padding-bottom: 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 5px 12px; border-radius: 999px; background: rgba(195, 201, 255, .1);
  color: var(--lav); font-size: 14px; font-weight: 500; letter-spacing: 1px; }
html:lang(en) .eyebrow { letter-spacing: .3px; }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 900; font-size: clamp(44px, 6.4vw, 76px); line-height: 1.12; letter-spacing: 2px; }
html:lang(en) .hero h1 { letter-spacing: -.5px; line-height: 1.06; }
.hero h1 em, .final h2 em { font-style: normal; color: var(--lav); }
.lead { max-width: 34em; margin: 24px 0 32px; font-size: 19px; line-height: 1.8; color: var(--night-ink-2); }
.lead del, .demo del { color: #FF9F94; text-decoration-color: var(--warm); text-decoration-thickness: 2px; }
.phone { position: relative; width: 320px; aspect-ratio: 9 / 16; border-radius: 36px; overflow: hidden; background: var(--night-2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px rgba(0, 0, 0, .55), 0 0 120px rgba(85, 99, 224, .25); }
.phone video { width: 100%; height: 100%; object-fit: cover; }

/* 區塊 */
section { padding: 104px 0; }
.alt { background: var(--surface); }
.kicker { margin: 0 0 10px; color: var(--accent-ink); font-size: 14px; font-weight: 700; letter-spacing: 2px; }
html:lang(en) .kicker { letter-spacing: 1.2px; text-transform: uppercase; font-size: 13px; }
h2 { margin: 0; font-family: var(--serif); font-weight: 900; font-size: clamp(30px, 4vw, 44px); line-height: 1.25; letter-spacing: 1px; }
html:lang(en) h2 { letter-spacing: -.3px; }
.section-lead { max-width: 40em; margin: 16px 0 0; color: var(--ink-2); }
.head { margin-bottom: 56px; }
.head.center { text-align: center; }
.head.center .section-lead { margin-left: auto; margin-right: auto; }

/* 三個步驟 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 28px 26px 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 18px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 16px; font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.steps h3 { margin: 0 0 8px; font-size: 19px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 16px; }
.aside { display: flex; gap: 10px; align-items: flex-start; max-width: 46em; margin: 28px auto 0; color: var(--ink-3); font-size: 15px; justify-content: center; text-align: left; }
.aside svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--accent-ink); }

/* 功能 */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 72px; }
.feature + .feature { margin-top: 112px; }
.feature.flip .shot { order: -1; }
.feature h3 { margin: 0 0 16px; font-family: var(--serif); font-weight: 900; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.25; letter-spacing: 1px; }
html:lang(en) .feature h3 { letter-spacing: -.3px; }
.feature p { margin: 0 0 16px; color: var(--ink-2); }
.feature ul { margin: 18px 0 0; padding: 0; list-style: none; }
.feature li { position: relative; padding-left: 28px; margin: 10px 0; color: var(--ink-2); font-size: 16px; }
.feature li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 14px; height: 8px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg); }
.shot { justify-self: center; width: min(340px, 100%); }
.shot img { width: 100%; height: auto; aspect-ratio: 1320 / 1868; border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface-2); }
.demo { margin: 22px 0 0; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.alt .demo { background: var(--bg); }
.demo div + div { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.demo .tag { display: inline-block; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--ink-3); }
.demo p { margin: 0; font-size: 16px; color: var(--ink-2); }
.demo del { color: var(--warm-ink); }
.demo .clean { color: var(--ink); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li { margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 15px; font-weight: 500; }
.chips li::before { display: none; }
.feature .chips li { padding-left: 14px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 112px; }
.card { padding: 28px 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg); }
.trio .card { display: flex; flex-direction: column; padding-bottom: 0; overflow: hidden; }
.trio h3 { margin: 0 0 8px; font-size: 20px; }
.trio p { margin: 0 0 22px; color: var(--ink-2); font-size: 16px; }
.trio .crop { margin-top: auto; height: 300px; overflow: hidden; }
.trio .crop img { width: 82%; margin: 0 auto; height: auto; aspect-ratio: 1320 / 1868; border-radius: 22px 22px 0 0; border: 1px solid var(--line); border-bottom: 0; box-shadow: var(--shadow); }

/* 隱私 */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.privacy .card { display: flex; gap: 18px; align-items: flex-start; }
.icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
.icon svg { width: 22px; height: 22px; }
.privacy h3 { margin: 0 0 6px; font-size: 18px; }
.privacy p { margin: 0; color: var(--ink-2); font-size: 16px; }
.more { margin: 32px 0 0; text-align: center; font-size: 16px; }

/* 方案 */
.plans { max-width: 880px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan.pro { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan h3 { margin: 0; font-size: 22px; }
.price { margin: 8px 0 4px; font-family: var(--serif); font-weight: 900; font-size: 34px; line-height: 1.2; }
.price-text { font-size: 28px; }
.price small { font-family: var(--sans); font-weight: 500; font-size: 15px; color: var(--ink-3); }
.plan .sub { margin: 0; font-size: 15px; color: var(--ink-3); }
.badge { position: absolute; top: -13px; right: 22px; padding: 3px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
.plan ul { margin: 20px 0 0; padding: 0; list-style: none; }
.plan li { position: relative; padding-left: 28px; margin: 10px 0; font-size: 16px; color: var(--ink-2); }
.plan li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 14px; height: 8px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg); }
.fine { max-width: 880px; margin: 24px auto 0; color: var(--ink-3); font-size: 14px; text-align: center; }

/* 常見問題 */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px; cursor: pointer; font-size: 18px; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .2s; margin-right: 6px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { margin: 0 4px 22px; color: var(--ink-2); font-size: 16px; }

/* 結尾（深色） */
.final { background: var(--night); color: var(--night-ink); text-align: center;
  background-image: radial-gradient(50% 60% at 50% 100%, rgba(85, 99, 224, .3), transparent 70%); }
.final img { width: 88px; height: 88px; margin: 0 auto 28px; border-radius: 22px; box-shadow: 0 10px 40px rgba(85, 99, 224, .35); }
.final h2 { font-size: clamp(34px, 5vw, 54px); }
.final p { margin: 16px auto 32px; max-width: 30em; color: var(--night-ink-2); }
footer { padding: 36px 0 48px; background: var(--night); color: var(--night-ink-2); font-size: 14px; border-top: 1px solid var(--night-line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; }
footer ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
footer a { color: var(--night-ink-2); text-decoration: none; }
footer a:hover { color: var(--night-ink); text-decoration: underline; }

@media (max-width: 900px) {
  .nav ul li.optional { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding-top: 24px; padding-bottom: 72px; }
  .phone { justify-self: center; width: min(300px, 78vw); }
  section { padding: 80px 0; }
  .steps, .grid-2, .trio { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .shot { order: 0; }
  .feature + .feature, .trio { margin-top: 88px; }
  .shot { width: min(300px, 82%); }
  .trio .crop { height: 280px; }
  .trio .crop img { width: min(260px, 82%); }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  .nav { padding-top: 16px; padding-bottom: 16px; }
  .nav ul { gap: 14px; }
  .brand { font-size: 16px; }
  .lead { font-size: 17px; }
  .btn { width: 100%; justify-content: center; }
  .head { margin-bottom: 40px; }
  .card { padding: 22px 20px; }
  .trio .card { padding-bottom: 0; }
  .privacy .card { gap: 14px; }
  .faq summary { font-size: 17px; }
}
