/* PresCue 官網樣式 — 沿用 app 三時刻三色(聽稿藍/綵排綠/上台金) */

:root {
  --accent: #4C6FFF;
  --accent-soft: #E9EEFF;
  --rehearse: #0E9F6E;
  --rehearse-soft: #E3F5ED;
  --stage: #B37B00;
  --stage-soft: #FFF3D1;
  --bg: #F4F5F9;
  --card: #FFFFFF;
  --border: #E3E5EE;
  --text: #1B1E28;
  --text-soft: #4A5063;
  --sub: #7A7F92;
  --dark: #111318;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Noto Sans SC",
    "PingFang TC", "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; padding: 12px 22px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(76, 111, 255, .28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(76, 111, 255, .34); }
.btn-ghost { background: #fff; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-lg { padding: 15px 30px; font-size: 16.5px; }
/* TestFlight 連結尚未填入時的佔位提示 */
.is-placeholder { opacity: .8; outline: 1.5px dashed rgba(76, 111, 255, .55); outline-offset: 3px; }

/* ---------- 導覽列 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 245, 249, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 22px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15.5px; }
.brand-icon { width: 27px; height: 27px; border-radius: 6px; }
.nav-links { display: flex; gap: 18px; }
.nav-link { font-size: 14px; color: var(--text-soft); transition: color .15s; }
.nav-link:hover { color: var(--accent); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 2px; }
.lang-link { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; color: var(--sub); transition: color .15s, background .15s; }
.lang-link:hover { color: var(--text); }
.lang-link.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 90px; position: relative; overflow: hidden;
  background:
    radial-gradient(620px 420px at 88% 8%, rgba(76, 111, 255, .10), transparent 62%),
    radial-gradient(520px 400px at 6% 92%, rgba(14, 159, 110, .09), transparent 62%),
    radial-gradient(420px 320px at 55% 105%, rgba(179, 123, 0, .07), transparent 62%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-block; background: #fff; border: 1px solid var(--border);
  color: var(--accent); font-size: 12.5px; font-weight: 600;
  padding: 5px 14px; border-radius: 999px;
}
.hero-title { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.18; letter-spacing: -.5px; margin: 20px 0 12px; }
.ht-line { display: block; }
.hero-slogan { color: var(--accent); font-weight: 700; font-size: 17px; }
.hero-fromstage { color: var(--sub); font-style: italic; font-size: 14.5px; margin-top: 3px; }
.hero-sub { color: var(--text-soft); font-size: 17px; margin: 16px 0 26px; max-width: 52ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta.center { justify-content: center; }
.hero-note { font-size: 13px; color: var(--sub); margin-top: 14px; }

/* ---------- 手機 mockup ---------- */
.hero-visual { display: flex; justify-content: center; }
.phone {
  width: 302px; background: #0B0D12; border-radius: 44px; padding: 10px;
  box-shadow: 0 30px 60px rgba(27, 30, 40, .25), 0 4px 14px rgba(27, 30, 40, .12);
  position: relative;
}
.phone-island {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 25px; background: #0B0D12; border-radius: 14px; z-index: 2;
}
.screen {
  background: var(--bg); border-radius: 35px; overflow: hidden;
  padding: 42px 13px 12px; display: flex; flex-direction: column; gap: 9px; min-height: 596px;
}
.deck-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--sub); padding: 0 2px; }
.deck-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.phone--green .deck-dot { background: var(--rehearse); }
.deck-name { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deck-page { margin-left: auto; background: #fff; border: 1px solid var(--border); padding: 2px 9px; border-radius: 999px; font-size: 11px; flex: none; }
.slide-area {
  background: linear-gradient(135deg, #171B26, #232941); border-radius: 14px;
  padding: 16px 18px; color: #fff; min-height: 118px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.slide-kicker { font-size: 10px; color: rgba(255, 255, 255, .55); letter-spacing: 1px; }
.slide-title { font-size: 17px; font-weight: 700; }
.slide-lines { display: block; margin-top: 2px; }
.slide-lines i { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .2); margin-top: 7px; }
.slide-lines i:first-child { width: 92%; }
.slide-lines i:nth-child(2) { width: 78%; }
.transcript { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 13px; flex: 1; }
.k-line { font-size: 15.5px; line-height: 2; color: var(--text); }
.k-line--next { color: var(--sub); opacity: .65; font-size: 13px; margin-top: 8px; }
/* 卡拉OK逐字著色:灰 → 深 → 主色(只變色,不改字重,避免跳動) */
.karaoke .w { color: #B9BDCB; transition: color .22s ease; }
.karaoke .w.done { color: var(--text); }
.karaoke .w.now { color: var(--accent); }
.phone--green .karaoke .w.now { color: var(--rehearse); }
.status-chip, .mic-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; margin-bottom: 9px;
}
.status-chip { background: var(--accent-soft); color: var(--accent); }
.mic-chip { background: var(--rehearse-soft); color: var(--rehearse); }
.mic-dot { width: 7px; height: 7px; background: var(--rehearse); border-radius: 50%; animation: pulse 1.3s infinite; }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 10px; }
.eq i { width: 3px; background: currentColor; border-radius: 1px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .18s; }
.eq i:nth-child(3) { animation-delay: .36s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 10px; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(14, 159, 110, .45); }
  70% { box-shadow: 0 0 0 7px rgba(14, 159, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 159, 110, 0); }
}
.player-bar {
  display: flex; align-items: center; justify-content: center; gap: 15px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 9px;
}
.pb-icon svg { width: 17px; height: 17px; fill: var(--sub); display: block; }
.pb-play {
  width: 38px; height: 38px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center; box-shadow: 0 4px 10px rgba(76, 111, 255, .35);
}
.pb-play svg { width: 17px; height: 17px; fill: #fff; }
.phone--green .pb-play { background: var(--rehearse); box-shadow: 0 4px 10px rgba(14, 159, 110, .35); }
.pb-speed { font-size: 11.5px; color: var(--sub); border: 1px solid var(--border); border-radius: 8px; padding: 3px 8px; }
.journey { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; color: var(--sub); padding: 3px 0 3px; }
.j-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); display: inline-block; margin-right: 4px; }
.j-step { display: inline-flex; align-items: center; }
.j-step.active { color: var(--accent); font-weight: 600; }
.j-step.active .j-dot { background: var(--accent); }
.phone--green .j-step.active { color: var(--rehearse); }
.phone--green .j-step.active .j-dot { background: var(--rehearse); }
.j-sep { width: 14px; height: 1px; background: var(--border); margin: 0 2px; }
.stats-row { display: flex; gap: 8px; margin-top: 11px; }
.stat-pill { font-size: 11px; font-weight: 600; background: var(--rehearse-soft); color: var(--rehearse); padding: 3px 10px; border-radius: 999px; }

/* ---------- 章節骨架 ---------- */
.sec { padding: 88px 0; }
.sec--alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-head { max-width: 680px; margin: 0 auto 46px; text-align: center; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.3px; margin: 14px 0 10px; line-height: 1.3; }
.sec-head > p { color: var(--sub); font-size: 16px; }
.kicker {
  display: inline-block; background: var(--accent-soft); color: var(--accent);
  font-size: 12.5px; font-weight: 700; padding: 4px 14px; border-radius: 999px; letter-spacing: .5px;
}
.kicker--green { background: rgba(14, 159, 110, .18); color: #4ADE9C; }
.journey-line {
  display: inline-block; margin-top: 14px; font-weight: 600; color: var(--text);
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 18px; font-size: 14px;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- 三支柱 ---------- */
.pillar-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 26px;
  box-shadow: 0 2px 10px rgba(27, 30, 40, .04); position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pillar-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(27, 30, 40, .09); }
.pillar-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent); }
.pillar-card.color-green::before { background: var(--rehearse); }
.pillar-card.color-gold::before { background: var(--stage); }
.pillar-icon { font-size: 25px; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); }
.color-green .pillar-icon { background: var(--rehearse-soft); }
.color-gold .pillar-icon { background: var(--stage-soft); }
.pillar-card h3 { margin: 15px 0 4px; font-size: 18px; }
.pillar-card h3 small { color: var(--sub); font-weight: 500; font-size: 12.5px; margin-left: 6px; }
.pillar-desc { color: var(--sub); font-size: 14px; }
.pillar-card ul { margin-top: 13px; display: grid; gap: 8px; }
.pillar-card li { font-size: 14px; color: var(--text-soft); padding-left: 21px; position: relative; }
.pillar-card li::before { content: '✓'; position: absolute; left: 0; font-weight: 700; color: var(--accent); }
.color-green li::before { color: var(--rehearse); }
.color-gold li::before { color: var(--stage); }

/* ---------- 核心演示(深色區) ---------- */
.sec--demo { background: var(--dark); color: #fff; }
.demo-grid { display: grid; grid-template-columns: 1fr .92fr; gap: 48px; align-items: center; }
.demo-copy h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.3px; margin: 14px 0 12px; }
.demo-sub { color: rgba(255, 255, 255, .75); font-size: 16.5px; }
.demo-caption { font-size: 12.5px; color: rgba(255, 255, 255, .42); margin-top: 20px; }
.demo-visual { display: flex; justify-content: center; }
.sec--demo .phone { box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }

/* ---------- 為什麼 ---------- */
.why-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.why-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(27, 30, 40, .08); }
.why-icon { font-size: 24px; }
.why-card h3 { font-size: 16.5px; margin: 12px 0 6px; }
.why-card p { font-size: 14px; color: var(--text-soft); }

/* ---------- 場景 ---------- */
.use-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.use-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(27, 30, 40, .07); }
.use-card:first-child {
  background: linear-gradient(180deg, #F3F6FF, #fff);
  border-color: rgba(76, 111, 255, .35);
}
.use-icon { font-size: 24px; }
.use-card h3 { font-size: 16.5px; margin: 12px 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.use-badge {
  font-style: normal; background: var(--accent); color: #fff; font-size: 11px;
  font-weight: 600; padding: 2px 9px; border-radius: 999px;
}
.use-card p { font-size: 14px; color: var(--text-soft); }

/* ---------- 定價 ---------- */
.free-banner {
  display: flex; gap: 15px; align-items: flex-start;
  background: linear-gradient(120deg, var(--accent-soft), var(--rehearse-soft));
  border: 1px solid rgba(76, 111, 255, .18); border-radius: 16px;
  padding: 20px 24px; margin-bottom: 22px;
}
.free-icon {
  width: 32px; height: 32px; border-radius: 50%; background: var(--rehearse);
  color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; margin-top: 2px;
}
.free-banner h3 { font-size: 16.5px; margin-bottom: 4px; }
.free-banner ul { display: grid; gap: 3px; }
.free-banner li { font-size: 14px; color: var(--text-soft); }
.grid-price { align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 30px 24px 26px; text-align: center; position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.price-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(27, 30, 40, .08); }
.price-card.featured { border: 2px solid var(--accent); box-shadow: 0 12px 32px rgba(76, 111, 255, .16); }
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 13px; border-radius: 999px; white-space: nowrap;
}
.price-count { font-size: 14px; color: var(--sub); }
.price-count small { font-size: 13px; }
.price-value { font-size: 32px; font-weight: 800; letter-spacing: -.5px; margin: 6px 0 4px; }
.price-label { font-size: 13.5px; color: var(--sub); }
.pricing-note { margin-top: 24px; text-align: center; font-size: 14px; color: var(--text-soft); }
.pricing-footnote { margin-top: 6px; text-align: center; font-size: 12.5px; color: var(--sub); }

/* ---------- FAQ ---------- */
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 16px 18px; font-weight: 600; font-size: 15px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-caret {
  width: 9px; height: 9px; border-right: 2px solid var(--sub); border-bottom: 2px solid var(--sub);
  transform: rotate(45deg); transition: transform .2s ease; flex: none; margin-top: -4px;
}
.faq-item[open] .faq-caret { transform: rotate(225deg); }
.faq-a { padding: 0 18px 17px; color: var(--text-soft); font-size: 14.5px; line-height: 1.75; }

/* ---------- CTA 帶 ---------- */
.cta-band {
  background: linear-gradient(115deg, #4C6FFF 0%, #5A7BF5 45%, #0E9F6E 115%);
  padding: 84px 0; text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.3px; }
.cta-band p { color: rgba(255, 255, 255, .86); margin: 12px 0 28px; font-size: 16.5px; }
.cta-band .btn-primary { background: #fff; color: var(--accent); box-shadow: 0 10px 26px rgba(0, 0, 0, .2); }
.cta-note { font-size: 13px !important; color: rgba(255, 255, 255, .72) !important; margin: 16px 0 0 !important; }

/* ---------- Footer ---------- */
.footer { background: #0F1117; color: #C9CDD8; padding: 50px 0 26px; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.footer .brand { color: #fff; }
.footer-tagline { font-size: 13px; color: #8B90A0; margin-top: 7px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: #C9CDD8; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.lang-switch--footer { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.lang-switch--footer .lang-link { color: #9AA0B0; }
.lang-switch--footer .lang-link:hover { color: #fff; }
.lang-switch--footer .lang-link.active { background: rgba(255, 255, 255, .1); color: #fff; }
.footer-copy { padding-top: 18px; font-size: 12.5px; color: #6D7280; }

/* ---------- 進場動畫 ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.grid-3 .reveal:nth-child(2) { transition-delay: .08s; }
.grid-3 .reveal:nth-child(3) { transition-delay: .16s; }

/* ---------- RWD ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero { padding: 64px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { margin-top: 6px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .demo-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
  .nav-inner { gap: 12px; }
  .brand span { font-size: 14px; }
  .sec { padding: 64px 0; }
  .phone { width: 274px; }
  .screen { min-height: 560px; }
  .free-banner { flex-direction: row; }
}

/* ---------- 動態減量 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .eq i, .mic-dot { animation: none; }
  .btn, .pillar-card, .why-card, .use-card, .price-card { transition: none; }
}
