/* 卡寶官網 — 亮色高質感版型 */

:root {
  --ink: #14100c;
  --ink-2: #4b423a;
  --sub: #857a6d;
  --line: #ece5d9;
  --line-2: #e2dace;
  --brand: #e8825a;
  --brand-deep: #d2673d;
  --cream: #fbf7ee;
  --cool: #f4f8f9;
  --dark: #17130f;
  --r: 22px;
  --maxw: 1140px;
  --shadow-s: 0 1px 2px rgba(20, 16, 12, .05);
  --shadow-m: 0 12px 34px rgba(20, 16, 12, .09);
  --shadow-l: 0 30px 70px rgba(20, 16, 12, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "PingFang TC", "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.75; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.muted { color: var(--sub); }

/* ---------- 字級 ---------- */
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -.025em; line-height: 1.08; }
h1 { font-size: clamp(38px, 5.4vw, 66px); }
h2 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.12; }
h3 { font-size: 20px; line-height: 1.4; letter-spacing: -.01em; }
.lede { font-size: clamp(16px, 1.5vw, 18.5px); color: var(--ink-2); margin: 22px 0 0; max-width: 32em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow-s); border-radius: 999px;
  padding: 7px 16px 7px 8px; font-size: 14px; font-weight: 700; color: var(--ink-2);
}
.eyebrow img { width: 26px; height: 26px; border-radius: 50%; }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: none; border-radius: 999px; padding: 15px 28px; font: inherit; font-weight: 800;
  font-size: 16px; cursor: pointer; transition: transform .2s cubic-bezier(.2,.8,.3,1), box-shadow .2s, background .2s;
}
.btn.dark { background: var(--ink); color: #fff; box-shadow: var(--shadow-m); }
.btn.dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-l); }
.btn.light { background: #fff; color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--shadow-s); }
.btn.light:hover { transform: translateY(-2px); border-color: var(--ink); }
.btn.sm { padding: 10px 20px; font-size: 14.5px; }
/* App Store 徽章式雙行按鈕 */
.badge {
  display: inline-flex; align-items: center; gap: 11px; background: var(--ink); color: #fff;
  border-radius: 14px; padding: 11px 20px; transition: transform .2s, box-shadow .2s; box-shadow: var(--shadow-m);
}
.badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-l); }
.badge .ic { font-size: 22px; line-height: 1; }
.badge small { display: block; font-size: 11px; opacity: .8; letter-spacing: .04em; line-height: 1.3; }
.badge b { display: block; font-size: 16.5px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.badge.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--shadow-s); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); transition: box-shadow .25s, border-color .25s; border-bottom: 1px solid transparent; }
.nav.stuck { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; height: 76px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 21px; letter-spacing: -.02em; white-space: nowrap; }
.logo img { width: 34px; height: 34px; border-radius: 10px; }
.nav-links { display: flex; gap: 30px; margin: 0 auto; }
.nav-links a { font-weight: 600; font-size: 15.5px; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; }
@media (max-width: 1000px) { .nav-links { display: none; } .nav .wrap { justify-content: space-between; } }
@media (max-width: 560px) {
  .nav-cta .hide-xs { display: none; }
  /* 手機：logo 一行、下載鈕縮成單行小膠囊（原本兩行大按鈕會把 logo 擠到換行） */
  .logo { font-size: 17px; gap: 8px; }
  .logo img { width: 28px; height: 28px; }
  .nav-cta .badge { padding: 9px 14px; }
  .nav-cta .badge small { display: none; }
  .nav-cta .badge b { font-size: 13.5px; }
  .nav-cta .badge .ic { font-size: 16px; }
}

/* ---------- 區塊 ---------- */
section { padding: 84px 0; }
section.tight { padding: 64px 0; }
.bg-cool { background: linear-gradient(180deg, #f3f9fa 0%, #fdfefe 100%); }
.bg-cream { background: var(--cream); }
.bg-dark { background: var(--dark); color: #f6efe4; }
.bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark .muted { color: #a99d8d; }
.head { max-width: 30em; margin: 0 auto 46px; text-align: center; }
.head p { color: var(--ink-2); margin: 16px 0 0; font-size: 17.5px; }
.bg-dark .head p { color: #b6aa99; }

/* ---------- hero ---------- */
.hero { padding: 68px 0 84px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } .hero .lede { margin-inline: auto; } .hero .cta-row { justify-content: center; } }

/* 手機外框 */
.phones { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 18px; }
.phone { position: relative; width: 238px; flex: 0 0 auto; border-radius: 40px; padding: 9px; background: linear-gradient(160deg, #26201a, #0e0b09); box-shadow: var(--shadow-l); }
/* 截圖本身就是 iPhone 比例（1284×2778），維持原比例才不會把畫面切掉 */
.phone img { border-radius: 32px; width: 100%; height: auto; aspect-ratio: 1284 / 2778; }
.phone.tilt { transform: rotate(-3.5deg); }
.phone.small { width: 198px; margin-top: 70px; transform: rotate(4.5deg); }
@media (max-width: 520px) { .phone { width: 208px; } .phone.small { display: none; } }
/* 浮動數字標籤 */
.pin {
  position: absolute; background: #fff; border-radius: 14px; padding: 9px 15px; box-shadow: var(--shadow-m);
  font-size: 14px; font-weight: 800; white-space: nowrap; border: 1px solid var(--line);
}
.pin span { display: block; font-size: 11.5px; color: var(--sub); font-weight: 700; letter-spacing: .02em; }
.pin.a { top: 8%; left: -6%; }
.pin.b { top: 44%; right: -8%; }
.pin.c { bottom: 9%; left: -4%; }
@media (max-width: 940px) { .pin.a { left: 2% } .pin.b { right: 0 } .pin.c { left: 4% } }
@media (max-width: 520px) { .pin { font-size: 12.5px; padding: 7px 12px; } }

/* ---------- 品牌牆 ---------- */
.brands { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; margin: 0 auto; }
.brands span { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 20px; font-weight: 700; font-size: 15.5px; color: var(--ink-2); box-shadow: var(--shadow-s); }

/* ---------- 功能：手機 + 卡片堆 ---------- */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; }
.split.flip { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 940px) { .split, .split.flip { grid-template-columns: 1fr; gap: 42px; } .split .phones { order: -1; } }
.stack { display: grid; gap: 14px; }
.icard { border: 1px solid var(--line); border-radius: var(--r); padding: 26px 28px; background: #fff; transition: border-color .25s, transform .25s, box-shadow .25s; }
.icard:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.icard.hi { border-color: var(--ink); box-shadow: var(--shadow-m); }
.icard p { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; }
.bg-cream .icard { background: #fffdf8; }

/* ---------- 三張卡 ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }
/* 只有兩張卡時用這個，否則三欄格線會空一欄、看起來像跑版 */
.duo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 880px; margin: 0 auto; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 32px 28px; transition: transform .25s, box-shadow .25s; }
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.tile { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 20px; }
.tcard p { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; }

/* ---------- 深色區：來源分層 ---------- */
.tiers { display: grid; gap: 14px; max-width: 880px; margin: 0 auto; }
.tier { display: flex; gap: 20px; align-items: flex-start; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); padding: 24px 26px; }
.tier .tag { flex: 0 0 auto; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 800; color: #17130f; }
.tier p { margin: 8px 0 0; color: #b6aa99; font-size: 15.5px; }

/* ---------- 數字 ---------- */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
@media (max-width: 760px) { .nums { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; } }
.nums b { display: block; font-size: clamp(34px, 5vw, 54px); font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.nums span { font-size: 14.5px; color: var(--sub); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 22px 26px; margin-bottom: 12px; transition: border-color .2s, box-shadow .2s; }
.faq[open] { border-color: var(--line-2); box-shadow: var(--shadow-m); }
.faq summary { cursor: pointer; font-weight: 800; font-size: 17.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 10px; height: 10px; border-right: 2.4px solid var(--sub); border-bottom: 2.4px solid var(--sub); transform: rotate(45deg); transition: transform .25s; flex: 0 0 auto; margin-right: 4px; }
.faq[open] summary::after { transform: rotate(-135deg); }
.faq p { color: var(--ink-2); margin: 16px 0 0; font-size: 16px; }
.faq ol { color: var(--ink-2); margin: 14px 0 0; padding-left: 22px; font-size: 16px; }
.faq ol li { margin-bottom: 7px; }
.tip { margin-top: 16px; background: var(--cream); border-radius: 14px; padding: 15px 18px; font-size: 15px; color: var(--ink-2); }
.faq-wrap { max-width: 800px; margin: 0 auto; }

/* ---------- 結尾 CTA ---------- */
.finale { text-align: center; }
.finale .cta-row { justify-content: center; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 64px 0 72px; background: #fff; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .foot { grid-template-columns: 1fr 1fr; gap: 34px; } }
footer h4 { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer a { color: var(--ink-2); font-size: 15.5px; }
footer a:hover { color: var(--brand-deep); }
.copy { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 14px; color: var(--sub); }

/* ---------- 進場動畫（預設可見，JS 接手才隱藏） ---------- */
.reveal { transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.3,1); }
html.anim .reveal { opacity: 0; transform: translateY(26px); }
html.anim .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } html.anim .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- 小標 ---------- */
.kicker { color: var(--brand-deep); font-weight: 900; letter-spacing: .1em; font-size: 13px; margin: 0 0 18px; text-transform: uppercase; }

/* ---------- 打勾清單 ---------- */
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 13px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink-2); font-size: 16.5px; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ---------- 可點的功能卡 ---------- */
button.icard { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
button.icard[aria-selected="true"] { border-color: var(--ink); box-shadow: var(--shadow-m); }
button.icard[aria-selected="false"] p { color: var(--sub); }
button.icard:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
#shot { transition: opacity .17s ease; }

/* 頁籤圓點 */
.dots { display: flex; gap: 8px; justify-content: center; position: absolute; bottom: -30px; left: 0; right: 0; }
.dots .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: background .2s, transform .2s; }
.dots .dot.on { background: var(--ink); transform: scale(1.25); }
.split .phones { padding-bottom: 34px; }
