/* ============================================================
   算分明 CalcRight — 行銷網站樣式
   品牌色系對齊 lib/presentation/theme/brand_theme.dart
   （Brand Blue 從 logo 向量檔抽色 2026-05-14）
   ============================================================ */

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

/* ── 設計 token ── */
:root {
  /* 品牌藍（從 logo 實際抽色，與 App 同源）*/
  --primary:        #145AA0;   /* dominant 主色 brandBluePrimary */
  --primary-light:  #1373B7;   /* 漸層高光 brandBlueLight */
  --primary-dark:   #0D3E89;   /* 陰影/輪廓最深 brandBlueDeep */
  --primary-50:     #F0F4FA;
  --primary-100:    #DBEAFE;
  --primary-200:    #BFDBFE;
  --primary-300:    #93C5FD;
  --surface-dark:   #0D2647;   /* 深底（品牌深藍延伸）*/

  /* 強調色（橘黃 CTA）*/
  --accent:         #F59E0B;
  --accent-hover:   #D97706;
  --accent-100:     #FEF3C7;
  --accent-700:     #B45309;

  /* 語意色 */
  --success:        #10B981;
  --success-bg:     #ECFDF5;
  --warning:        #F59E0B;
  --danger:         #EF4444;

  /* 中性色階（對齊 BrandColors neutral）*/
  --gray-50:  #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --white:    #ffffff;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;

  --shadow-card: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-elevated: 0 8px 32px rgba(0,0,0,0.14);

  --section-padding: 5rem 1.5rem;
  --container-max: 1040px;
}

/* ── 基礎 ── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
  color: var(--gray-700);
  line-height: 1.7;
  background: var(--white);
}
img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }

/* ── 版面容器 ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── 導覽列 ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--surface-dark);
  height: 60px;
  display: flex;
  align-items: center;
  transition: box-shadow .2s;
}
.nav--scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.25); }
.nav__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav__logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}
.nav__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nav__links a {
  color: var(--gray-300);
  font-size: 0.9rem;
  transition: color .2s;
}
.nav__links a:hover { color: var(--white); }

/* ── Hero ── */
.hero {
  background: linear-gradient(150deg, #0D2647 0%, var(--primary-dark) 58%, var(--primary) 100%);
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(19,115,183,0.22) 0%, transparent 60%);
  pointer-events: none;
}
.hero__badges {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge--brand {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
}
.badge--privacy {
  background: rgba(16,185,129,0.18);
  border: 1px solid rgba(16,185,129,0.45);
  color: #6ee7b7;
}
.badge--store {
  background: rgba(245,158,11,0.16);
  border: 1px solid rgba(245,158,11,0.45);
  color: #fcd34d;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.hero__title em {
  font-style: normal;
  color: var(--primary-300);
}
.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.78);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  text-wrap: balance;
}
.hero__cta-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-elevated); }
.btn--primary { background: var(--primary-light); color: var(--white); }
.btn--accent  { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.35);
  color: var(--white);
}
.btn--disabled {
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  cursor: default;
}
.btn--disabled:hover { transform: none; box-shadow: none; }
.hero__note {
  margin-top: 1.25rem;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}

/* ── 區塊標題 ── */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.section-desc {
  color: var(--gray-500);
  max-width: 580px;
  font-size: 1.05rem;
  text-wrap: balance;
}

/* ── 痛點區 ── */
.pain { background: var(--gray-50); padding: var(--section-padding); }
.pain__header { text-align: center; margin-bottom: 3rem; }
.pain__header .section-desc { margin: 0 auto; }
.pain__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pain-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--danger);
}
.pain-card__icon { font-size: 2rem; margin-bottom: 1rem; }
.pain-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}
.pain-card__desc { color: var(--gray-500); font-size: 0.95rem; }

/* ── 三大價值 ── */
.value { padding: var(--section-padding); }
.value__header { text-align: center; margin-bottom: 3.5rem; }
.value__header .section-desc { margin: 0 auto; }
.value__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.value-card {
  text-align: center;
  padding: 1rem;
}
.value-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: var(--primary-50);
  border: 1.5px solid var(--primary-100);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
}
.value-card__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.6rem;
}
.value-card__desc { color: var(--gray-500); font-size: 0.96rem; }

/* ── 雙模式 ── */
.modes { background: var(--gray-50); padding: var(--section-padding); }
.modes__header { text-align: center; margin-bottom: 3rem; }
.modes__header .section-desc { margin: 0 auto; }
.modes__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
.mode-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-card);
  border-top: 5px solid var(--primary);
}
.mode-card:nth-child(2) { border-top-color: var(--accent); }
.mode-card__icon { font-size: 2.2rem; margin-bottom: 1rem; }
.mode-card__name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.4rem;
}
.mode-card__tagline {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.mode-card:nth-child(2) .mode-card__tagline { color: var(--accent-hover); }
.mode-card__list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.mode-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--gray-600);
}
.mode-card__list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── App 截圖展示 ── */
.mockup {
  background: linear-gradient(160deg, #15304f 0%, #0D2647 100%);
  padding: var(--section-padding);
}
.mockup__header { text-align: center; margin-bottom: 3rem; }
.mockup__header .section-label { color: var(--primary-300); }
.mockup__header .section-title { color: var(--white); }
.mockup__header .section-desc  { color: rgba(255,255,255,0.6); margin: 0 auto; }
.mockup__screens {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.phone-label { color: rgba(255,255,255,0.5); font-size: 0.82rem; }
.phone {
  width: 240px;
  background: #1f2937;
  border-radius: 32px;
  border: 8px solid #374151;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.06);
  overflow: hidden;
}
.phone--main { width: 260px; border-color: #4B5563; }
.phone__bar {
  background: var(--surface-dark);
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 9px;
  color: rgba(255,255,255,0.6);
}
.phone__bar-dot { width: 8px; height: 8px; background: rgba(255,255,255,0.15); border-radius: 50%; }
.phone__appbar {
  background: var(--primary);
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
}
.phone__appbar-back {
  font-size: 18px;
  opacity: 0.8;
  margin-right: 4px;
}
.phone__body { background: var(--gray-100); padding: 10px; min-height: 380px; }

/* ── App 畫面內容 ── */
.app-section-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 4px 4px;
}
.app-card {
  background: var(--white);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}
.app-card--primary { border-left: 3px solid var(--primary); }
.app-card--success { border-left: 3px solid var(--success); }
.app-card--accent  { border-left: 3px solid var(--accent); }
.app-card__title { font-size: 12px; font-weight: 700; color: var(--gray-800); margin-bottom: 3px; }
.app-card__sub   { font-size: 10px; color: var(--gray-500); }
.app-card__row   { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.app-card__badge {
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 600;
}
.badge--pending { background: #FEF3C7; color: #B45309; }
.badge--done    { background: var(--success-bg); color: var(--success); }
.badge--todo    { background: var(--primary-100); color: var(--primary-dark); }
.app-room-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: var(--white);
  border-radius: 10px;
  margin-bottom: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.app-room-name { font-size: 11px; font-weight: 700; color: var(--gray-800); }
.app-room-days { font-size: 9px; color: var(--gray-400); }
.app-room-amount { font-size: 13px; font-weight: 800; color: var(--primary); }
.app-total {
  background: var(--success-bg);
  border: 1.5px solid #a7f3d0;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.app-total__icon { font-size: 14px; }
.app-total__text { font-size: 10px; font-weight: 700; color: var(--success); }
.app-actions {
  display: flex;
  gap: 6px;
  padding: 8px 0 0;
}
.app-btn {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
}
.app-btn--pdf  { background: var(--primary); color: white; }
.app-btn--line { background: #06C755; color: white; }

/* ── 真實截圖展示 ── */
.shots {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.shot-wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem; max-width: 250px; }
.shot-label { color: rgba(255,255,255,0.6); font-size: 0.85rem; text-align: center; }
/* 手機螢幕截圖（含原生狀態列，外加機身外框）*/
.shot-phone {
  position: relative;
  width: 230px;
  border-radius: 30px;
  border: 7px solid #374151;
  background: #1f2937;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.06);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .15s, box-shadow .15s;
}
.shot-phone[data-full]:hover { transform: translateY(-4px); box-shadow: 0 28px 66px rgba(0,0,0,0.6); }
.shot-phone--main { width: 250px; border-color: #4B5563; }
.shot-phone img { width: 100%; display: block; }
/* 請款圖卡（房客收到的分享圖，無機身外框）*/
.shot-card {
  position: relative;
  width: 230px;
  height: 498px;            /* 與手機框等高，超長圖卡從頂端裁切 */
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: zoom-in;
  transition: transform .15s, box-shadow .15s;
}
.shot-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0,0,0,0.55); }
/* 「點看完整」提示 */
.shot-card__hint {
  position: absolute;
  z-index: 2;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  pointer-events: none;
}
.shot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ── 圖卡完整版燈箱 ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(13,38,71,0.85);
  display: none;
  overflow-y: auto;
  padding: 3rem 1rem;
  backdrop-filter: blur(2px);
}
.lightbox.open { display: block; }
.lightbox__inner {
  max-width: 420px;
  margin: 0 auto;
}
.lightbox__inner img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  display: block;
}
.lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.lightbox__close:hover { background: rgba(255,255,255,0.3); }
.lightbox__caption {
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-top: 1rem;
}
/* 底部柔化漸層，暗示「下方還有明細」 */
.shot-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 56px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.92) 100%);
  pointer-events: none;
}

/* ── 訂閱方案 ── */
.pricing { padding: var(--section-padding); }
.pricing__header { text-align: center; margin-bottom: 3rem; }
.pricing__header .section-desc { margin: 0 auto; }
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.price-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-200);
  position: relative;
}
.price-card--featured {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 32px rgba(20,90,160,0.35);
  border-color: var(--primary);
  transform: scale(1.04);
}
.price-card__tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.price-card__tier {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}
.price-card--featured .price-card__tier { color: rgba(255,255,255,0.7); }
.price-card__name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1rem;
}
.price-card--featured .price-card__name { color: var(--white); }
.price-card__amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.price-card--featured .price-card__amount { color: #cfe3f7; }
.price-card__period {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
}
.price-card--featured .price-card__period { color: rgba(255,255,255,0.6); }
.price-card__divider {
  height: 1px;
  background: var(--gray-200);
  margin: 1.25rem 0;
}
.price-card--featured .price-card__divider { background: rgba(255,255,255,0.2); }
.price-card__features { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.price-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--gray-600);
}
.price-card--featured .price-card__features li { color: rgba(255,255,255,0.85); }
.price-card__features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.price-card--featured .price-card__features li::before { color: #6ee7b7; }
.price-card__lock {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 1.25rem;
  text-align: center;
}
.price-card--featured .price-card__lock { color: rgba(255,255,255,0.5); }
.pricing__note {
  max-width: 680px;
  margin: 2.5rem auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
}

/* ── FAQ ── */
.faq { background: var(--gray-50); padding: var(--section-padding); }
.faq__header { text-align: center; margin-bottom: 3rem; }
.faq__header .section-desc { margin: 0 auto; }
.faq__list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.85rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item__q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: inherit;
}
.faq-item__q::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item.open .faq-item__q::after { transform: rotate(45deg); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  color: var(--gray-600);
  font-size: 0.95rem;
}
.faq-item__a-inner { padding: 0 1.4rem 1.2rem; }
.faq-item.open .faq-item__a { max-height: 420px; }
.faq__more { text-align: center; margin-top: 2.5rem; }

/* ── FAQ 完整頁專用 ── */
.faqpage { padding: 3.5rem 1.5rem 5rem; max-width: 820px; margin: 0 auto; }
.faqpage__title { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; color: var(--gray-900); margin-bottom: 0.5rem; }
.faqpage__sub { color: var(--gray-500); margin-bottom: 2.5rem; }
.faq-group { margin-bottom: 2.5rem; }
.faq-group__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-100);
}

/* ── 信任 ── */
.trust { padding: 3.5rem 1.5rem; background: var(--white); border-top: 1px solid var(--gray-100); }
.trust__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-600);
  font-size: 0.92rem;
}
.trust-item__icon {
  width: 44px;
  height: 44px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.trust-item__title { font-weight: 700; color: var(--gray-800); }
.trust-item__sub   { font-size: 0.8rem; color: var(--gray-400); }
.trust-divider { width: 1px; height: 40px; background: var(--gray-200); }

/* ── 品牌故事 / 背書 ── */
.story {
  background: linear-gradient(150deg, #0D2647 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: var(--section-padding);
}
.story__inner { max-width: 780px; margin: 0 auto; text-align: center; }
.story__inner .section-label { color: var(--primary-300); }
.story__title {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: #fff;
}
.story__text {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  line-height: 1.85;
  max-width: 600px;
  margin: 0 auto 1.1rem;
  text-align: left;
  text-wrap: pretty;
}
.story__text:last-of-type { margin-bottom: 2.5rem; }
.story__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.story__stat-num { font-size: 2.6rem; font-weight: 800; color: #fff; line-height: 1; }
.story__stat-num em { font-style: normal; color: var(--primary-300); font-size: 1.3rem; margin-left: 2px; }
.story__stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.65); margin-top: 0.5rem; }
.story__cred {
  margin: 2.25rem auto 0;
  max-width: 600px;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.6;
}

/* ── 專利背書 ── */
.patent {
  background: var(--gray-50);
  padding: var(--section-padding);
}
.patent__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.78fr);
  gap: 2rem;
  align-items: center;
}
.patent__copy .section-title { max-width: 620px; }
.patent__lead {
  color: var(--gray-600);
  font-size: 1.02rem;
  line-height: 1.85;
  max-width: 640px;
  margin-bottom: 1.5rem;
}
.patent__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 0 1.25rem;
}
.patent__facts div {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.patent__facts dt {
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 0.25rem;
}
.patent__facts dd {
  color: var(--gray-800);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.55;
}
.patent__note {
  color: var(--gray-500);
  font-size: 0.86rem;
  line-height: 1.7;
  max-width: 620px;
  padding-left: 1rem;
  border-left: 3px solid var(--primary-200);
}
.patent__certificate {
  appearance: none;
  width: min(100%, 340px);
  justify-self: center;
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: zoom-in;
  font-family: inherit;
  font-weight: 800;
  text-align: center;
}
.patent__certificate img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 18px 48px rgba(13,38,71,0.16);
  background: var(--white);
  transition: transform .15s, box-shadow .15s;
}
.patent__certificate:hover img,
.patent__certificate:focus-visible img {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(13,38,71,0.22);
}
.patent__certificate span {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.86rem;
}

/* ── 適合誰 ── */
.audience { padding: var(--section-padding); }
.audience__header { text-align: center; margin-bottom: 2.75rem; }
.audience__grid {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2.5rem;
}
.audience__item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--gray-700);
}
.audience__item::before { content: '✅'; flex-shrink: 0; }

/* ── 報名表單 ── */
.signup { background: var(--gray-50); padding: var(--section-padding); }
.signup__card {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.signup__title {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.6rem;
}
.signup__sub { color: var(--gray-500); margin-bottom: 1.75rem; font-size: 0.98rem; }
.signup__form { display: flex; flex-direction: column; gap: 0.9rem; text-align: left; }
.signup__field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 0.35rem;
}
.signup__field input,
.signup__field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--gray-800);
  background: var(--gray-50);
}
.signup__field input:focus,
.signup__field select:focus { outline: none; border-color: var(--primary); background: #fff; }
.signup__btn { margin-top: 0.5rem; width: 100%; justify-content: center; }
.signup__note { font-size: 0.8rem; color: var(--gray-400); margin-top: 1rem; }
.signup__alt { font-size: 0.85rem; color: var(--gray-500); margin-top: 0.75rem; }
.signup__alt a { color: var(--primary); text-decoration: underline; }

/* 創始會員價差徽章 */
.price-card__save {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

/* ── 末段 CTA ── */
.cta-band {
  background: linear-gradient(150deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 4.5rem 1.5rem;
  text-align: center;
  color: var(--white);
}
.cta-band__title {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.cta-band__sub {
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin: 0 auto 2rem;
  font-size: 1.02rem;
  text-wrap: balance;
}

/* ── Footer ── */
.footer {
  background: var(--surface-dark);
  color: rgba(255,255,255,0.55);
  padding: 3rem 1.5rem;
}
.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}
.footer__brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.footer__brand-name { color: var(--white); font-weight: 700; font-size: 1rem; }
.footer__tagline { font-size: 0.85rem; margin-bottom: 0.5rem; }
.footer__company { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: color .2s;
}
.footer__links a:hover { color: var(--white); }
.footer__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
  text-align: center;
  color: rgba(255,255,255,0.25);
}

/* ── 法律文件頁（privacy/terms/delete）── */
.legal { max-width: 820px; margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }
.legal h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; color: var(--gray-900); margin-bottom: 0.5rem; }
.legal__meta { color: var(--gray-400); font-size: 0.85rem; margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.2rem; font-weight: 800; color: var(--primary); margin: 2.25rem 0 0.85rem; }
.legal h3 { font-size: 1.02rem; font-weight: 700; color: var(--gray-800); margin: 1.5rem 0 0.5rem; }
.legal p, .legal li { color: var(--gray-600); font-size: 0.96rem; margin-bottom: 0.6rem; }
.legal ul, .legal ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.legal a { color: var(--primary); text-decoration: underline; }
.legal table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.9rem; }
.legal th, .legal td { border: 1px solid var(--gray-200); padding: 0.6rem 0.8rem; text-align: left; vertical-align: top; }
.legal th { background: var(--gray-50); font-weight: 700; color: var(--gray-700); }
.legal__note {
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-sm);
  padding: 1rem 1.4rem;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

/* ── RWD ── */
@media (max-width: 900px) {
  .pain__grid,
  .value__grid,
  .modes__grid,
  .features__grid,
  .audience__grid,
  .pricing__grid,
  .patent__inner,
  .patent__facts { grid-template-columns: 1fr; }
  .price-card--featured { transform: none; }
  .footer__inner { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .phone--main { width: 240px; }
}
@media (max-width: 600px) {
  :root { --section-padding: 3.5rem 1rem; }
  .hero { padding: 4rem 1rem 3.5rem; }
  .mockup__screens { gap: 1.5rem; }
  .trust-divider { display: none; }
  /* 故事數字手機版 3 欄平分，標籤自動換行，避免 2+1 不對稱 */
  .story__stats { gap: 0.75rem; flex-wrap: nowrap; }
  .story__stat { flex: 1; min-width: 0; }
  .story__stat-num { font-size: 2rem; }
  .story__stat-num em { font-size: 1rem; }
  .story__stat-label { font-size: 0.74rem; }
}

/* ═══════════════════════════════════════════════════
   下載區塊(iOS App Store + Android Google Play)
   2026-07-01 加,對應 iOS 1.0.17(71) 上架
   ═══════════════════════════════════════════════════ */
.download {
  padding: 4.5rem 0;
  background: var(--primary-50);
  border-top: 1px solid var(--primary-100);
  border-bottom: 1px solid var(--primary-100);
}
.download__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}
.download__header .section-label { color: var(--primary); }
.download__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 780px;
  margin: 0 auto;
}
.download-card {
  display: block;
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 2px solid var(--primary-100);
  border-radius: 16px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.download-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--primary);
}
.download-card__icon { font-size: 2.6rem; margin-bottom: 0.5rem; }
.download-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}
.download-card__badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  margin-bottom: 0.6rem;
}
.download-card__badge--beta {
  background: var(--accent);
}
.download-card__sub {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}
.download__note {
  max-width: 640px;
  margin: 1.75rem auto 0;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.7;
  text-align: center;
}
.cta-band__buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .download { padding: 3rem 0; }
  .download__grid { grid-template-columns: 1fr; gap: 1rem; max-width: 400px; }
  .download-card { padding: 1.5rem 1rem; }
  .download-card__icon { font-size: 2.2rem; }
  .cta-band__buttons { flex-direction: column; align-items: stretch; max-width: 320px; margin-left: auto; margin-right: auto; }
}

/* 長 email / URL 連結在窄視窗允許斷行（2026-07-05 SEO 健檢修正） */
a[href^="mailto:"] { overflow-wrap: anywhere; }

/* ══ 教學影片區（2026-07-17）══ */
.tutorials {
  padding: var(--section-padding);
  background: var(--primary-50);
}
.tutorials__header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.tutorials__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
}
.tutorial-video__frame {
  /* Shorts 直式 9:16，比照 App 截圖手機框視覺 */
  width: 270px;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-200);
  background: var(--surface-dark);
}
.tutorial-video__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.tutorial-video__label {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--primary-dark);
}
.tutorial-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tutorial-step {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-card);
  padding: 1.1rem 1.25rem;
}
.tutorial-step__num {
  flex-shrink: 0;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tutorial-step__title {
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.tutorial-step__desc {
  color: var(--gray-600, #4b5563);
  margin: 0;
}
.tutorials__more {
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.tutorials__more:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .tutorials__grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2rem;
  }
  .tutorial-steps { width: 100%; max-width: 420px; }
}
