/* ============================================================
   DPASS 駕駛中心 — 好友同行計劃 活動頁
   移植自 Claude Design「好友同行計劃 Landing 電腦版.dc.html」
   配色 = 電光青檸、頁面底色 = 漸層拖尾（已固定，不再可切換）

   斷點沿用設計稿的 band 定義，以 shell 為 container：
     lg ≥ 1180 / md ≥ 900 / sm ≥ 560 / xs < 560
   ============================================================ */

:root {
  /* ── 電光青檸 ── */
  --c-hero: linear-gradient(150deg, #0A9C90 0%, #1A72BE 52%, #3B2E8F 100%);
  --c-glow-a: rgba(190, 242, 100, .55);
  --c-glow-b: rgba(45, 212, 191, .3);
  --c-hero-accent: #DCFF7A;
  --c-primary: #0E9F8A;
  --c-accent: #C7F464;
  --c-accent-ink: #13351F;
  --c-cta-ink: #0B6B5E;
  --data: #16528C;
  --data-bg: #E1F2FC;

  /* ── 漸層拖尾 ── */
  --c-page: color-mix(in srgb, #E1F2FC 78%, #FFFFFF);
  --c-ink-page: #000000;
  --c-badge-bg: #171E2B;
  --c-card-shadow: 0px 2px 2.5px rgba(0, 0, 0, .08);
  --c-hero-radius: 0 0 32px 32px;

  /* ── DS 中性色（取自 colors_and_type.css）── */
  --ink: #171E2B;
  --n-100: #EDEDED;
  --n-200: #E2E5E7;
  --n-300: #C3CBD1;
  --n-500: #89919C;
  --n-600: #5B6471;
  --n-800: #2F343A;

  --font-sans: "Noto Sans TC", "Noto Sans", "PingFang TC", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-num: "Barlow Condensed", "Noto Sans", system-ui, sans-serif;

  --pad: clamp(20px, 3cqw, 40px);
  --wrap: 1240px;
}

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

html { background: var(--c-page); }

body {
  margin: 0;
  background: var(--c-page);
  color: var(--n-800);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.shell {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  position: relative;
  background: var(--c-page);
  container-type: inline-size;
}

a { color: var(--data); text-decoration: none; font-weight: 600; }
a:hover { color: #0E4272; }

.t-num { font-family: var(--font-num); letter-spacing: .02em; font-variant-numeric: tabular-nums; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

[hidden] { display: none !important; }

/* 以 mask 上色的 icon */
.i {
  display: inline-block; flex-shrink: 0;
  background: currentColor;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.i-check   { -webkit-mask-image: url("../assets/icons/patch-check-fill.svg");        mask-image: url("../assets/icons/patch-check-fill.svg"); }
.i-warn    { -webkit-mask-image: url("../assets/icons/exclamation-circle-fill.svg"); mask-image: url("../assets/icons/exclamation-circle-fill.svg"); }
.i-date    { -webkit-mask-image: url("../assets/icons/date.svg");                    mask-image: url("../assets/icons/date.svg"); }
.i-driver  { -webkit-mask-image: url("../assets/icons/driver.svg");                  mask-image: url("../assets/icons/driver.svg"); }
.i-refresh { -webkit-mask-image: url("../assets/icons/refresh.svg");                 mask-image: url("../assets/icons/refresh.svg"); }
.i-time    { -webkit-mask-image: url("../assets/icons/time.svg");                    mask-image: url("../assets/icons/time.svg"); }
.i-ticket  { -webkit-mask-image: url("../assets/icons/ticket.svg");                  mask-image: url("../assets/icons/ticket.svg"); }
.i-close   { -webkit-mask-image: url("../assets/icons/close.svg");                   mask-image: url("../assets/icons/close.svg"); }
.i-security{ -webkit-mask-image: url("../assets/icons/security-fill.svg");           mask-image: url("../assets/icons/security-fill.svg"); }
.i-support { -webkit-mask-image: url("../assets/icons/customer-service.svg");        mask-image: url("../assets/icons/customer-service.svg"); }
.i-copy    { -webkit-mask-image: url("../assets/icons/copy.svg");                    mask-image: url("../assets/icons/copy.svg"); }
/* ⚠️ .i-tick（純勾勾）與 .i-check（patch-check-fill，鋸齒徽章造型）是**兩顆不同的
   icon**，不要合併：.i-check 在首頁「四步驟」與規則區還有兩處在用那個徽章造型。

   📌 **`copy.svg` 與 `share.svg` 是 Lucide 原檔**（lucide-static v1.45.0，ISC），
   viewBox 24 / `stroke-width: 2` / round cap+join —— **不要改它們的 stroke-width**，
   2 是 Lucide 的統一筆畫。2026-09-14 指定用 Lucide；兩顆並排在序號右側，
   所以**必須同時是 Lucide**，一顆 Lucide 一顆別的造型就會一粗一細（這輪先手繪了一顆
   share 寫 1.9、再降 1.1，都被回報不對盤，最後改用原檔才收斂）。
   ⚠️ 其餘 icon（ticket / close / date / driver / refresh / time / patch-check /
   customer-service / chevron）仍是原本的實心路徑造型，牆厚 1.0 單位。
   **本專案的 icon 目前是混用的**，要全面 Lucide 化是另一件事，尚未做。
   check.svg 是手繪的純勾勾（viewBox 16 / stroke 2.4），單獨放在綠色圓底裡當肯定符號，
   不與其他 icon 並排，所以不受這條規則約束。 */
.i-tick    { -webkit-mask-image: url("../assets/icons/check.svg");                   mask-image: url("../assets/icons/check.svg"); }
.i-share   { -webkit-mask-image: url("../assets/icons/share.svg");                   mask-image: url("../assets/icons/share.svg"); }
.i-chevron { -webkit-mask-image: url("../assets/icons/chevron-right.svg");           mask-image: url("../assets/icons/chevron-right.svg"); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-row {
  max-width: var(--wrap); margin: 0 auto;
  padding: 0 16px;
  height: 62px;
  display: flex; align-items: center; gap: 12px;
}
.logo-btn {
  border: 0; background: none; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; color: #FFFFFF;
}
/* wordmark 是深色路徑，壓在深色 header 上要反白才看得見。
   SVG 的 fill 是 currentColor，但它是用 <img> 載入的 —— currentColor 在獨立 SVG
   文件裡解析成預設的黑，吃不到 .logo-btn 的 color，所以只能靠 filter 反白。
   invert(1) 把黑轉成純白，不另加 opacity（2026-09-14 要求 100% 白）。 */
.logo-btn img {
  display: block; height: 16px; width: auto;
  filter: invert(1) brightness(2);
}
/* divider 與 label 在 md 以下收起（見 md 斷點） */
.header-divider { width: 1px; height: 22px; background: rgba(255, 255, 255, .16); display: none; }
.header-label { font: 500 15px/22px var(--font-sans); color: #FFFFFF; display: none; }
.site-header nav { margin-left: auto; }
.header-cta {
  border: 0; border-radius: 9999px;
  background: var(--c-accent); color: var(--c-accent-ink);
  padding: 11px 18px;
  font: 700 14px/20px var(--font-sans);
  cursor: pointer; transition: filter .18s ease, background .18s ease;
}
.header-cta:hover { filter: brightness(1.06); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--c-hero);
  border-radius: var(--c-hero-radius);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 82% -20%, var(--c-glow-a), var(--c-glow-b) 34%, transparent 74%);
}
.hero-grid {
  position: relative; max-width: var(--wrap); margin: 0 auto;
  padding: clamp(40px, 5cqw, 76px) var(--pad) clamp(52px, 6cqw, 88px);
  display: grid; gap: clamp(32px, 4cqw, 64px); align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(23, 30, 43, .3);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 9999px; padding: 6px 15px;
  margin-bottom: clamp(16px, 2cqw, 24px);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent); }
.hero-badge .lbl { font: 500 14px/20px var(--font-sans); color: #FFFFFF; }
.hero-badge .val { font-size: 16px; font-weight: 600; color: var(--c-accent); }

.hero h1 {
  margin: 0;
  font: 700 clamp(38px, 5.2cqw, 72px)/1.06 var(--font-sans);
  letter-spacing: -.035em; color: #FFFFFF;
}
.hero-tagline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  margin-top: clamp(18px, 2.2cqw, 28px);
  font: 600 clamp(22px, 2.5cqw, 34px)/1.2 var(--font-sans);
  letter-spacing: -.02em; color: #FFFFFF;
}
.hero-tagline > span { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.chip {
  display: inline-block; background: var(--c-accent); color: var(--c-accent-ink);
  border-radius: 16px; padding: 3px 16px;
  box-shadow: 0px 4px 3px rgba(0, 0, 0, .12);
}
.chip-l { transform: rotate(-2deg); }
.chip-r { transform: rotate(2deg); }

.hero-lede {
  margin: clamp(18px, 2cqw, 26px) 0 0;
  font: 400 18px/29px var(--font-sans);
  color: rgba(255, 255, 255, .88);
  max-width: 26em; text-wrap: pretty;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: clamp(26px, 2.8cqw, 36px);
}
.btn-primary {
  border: 0; border-radius: 9999px;
  background: var(--c-accent); color: var(--c-accent-ink);
  padding: 17px 34px;
  font: 700 17px/24px var(--font-sans); letter-spacing: -.017em;
  cursor: pointer; box-shadow: 0px 4px 3px rgba(0, 0, 0, .12);
  transition: transform .18s cubic-bezier(.4, 0, .2, 1), filter .18s ease;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .32); border-radius: 9999px;
  background: rgba(255, 255, 255, .1); color: #FFFFFF;
  padding: 17px 30px;
  font: 600 17px/24px var(--font-sans);
  cursor: pointer; transition: background .18s ease;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }

/* ── Hero 視覺：兩支手機 + 序號/麻吉幣往返動畫 ── */
.stage { position: relative; width: 100%; max-width: 500px; margin: 0 auto; aspect-ratio: 500 / 496; }
.stage .halo {
  position: absolute; left: 8%; top: 6%; width: 84%; height: 84%;
  border-radius: 9999px; pointer-events: none; filter: blur(8px);
  background: radial-gradient(circle, var(--c-glow-a), transparent 68%);
  animation: halo 7s ease-in-out infinite;
}
.phone { position: absolute; width: 36%; }
.phone-a { left: 0; bottom: 0; transform: rotate(-6deg); animation: floatA 6.5s ease-in-out infinite; }
.phone-b { right: 0; top: 0; transform: rotate(5deg); animation: floatB 7.4s ease-in-out infinite; }
.phone-frame {
  border-radius: 26px; background: var(--ink); padding: 7px;
  box-shadow: 0 18px 30px rgba(9, 20, 32, .38), 0 4px 8px rgba(9, 20, 32, .24);
}
.phone-screen {
  border-radius: 20px; background: #F4F6F8; overflow: hidden;
  aspect-ratio: 9 / 17.6; display: flex; flex-direction: column;
}
.phone-notch { height: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.phone-notch i { width: 32%; height: 4px; border-radius: 9999px; background: rgba(23, 30, 43, .2); display: block; }
.phone-body { flex: 1; padding: 4px 12px 12px; display: flex; flex-direction: column; min-height: 0; }
.phone-role { font: 700 10px/15px var(--font-sans); color: var(--n-500); letter-spacing: .04em; }

.ticket {
  position: absolute; width: 112px;
  border-radius: 12px; background: #FFFFFF;
  border-left: 3px solid var(--c-accent);
  box-shadow: 0 12px 18px rgba(9, 20, 32, .3);
  padding: 8px 11px;
  left: 18%; top: 76%;
  will-change: transform, opacity;
  animation: flyOut 10s linear infinite;
}
.coin {
  position: absolute;
  display: flex; align-items: center; gap: 6px;
  border-radius: 9999px; background: var(--c-accent);
  box-shadow: 0 10px 16px rgba(9, 20, 32, .24);
  padding: 8px 13px;
  left: 64%; top: 44%;
  will-change: transform, opacity;
  animation: flyBack 10s linear infinite;
}
.coin-gate { position: absolute; inset: 0; pointer-events: none; }
.gate-1 { animation: gate1 30s linear infinite; }
.gate-2 { animation: gate2 30s linear infinite; }
.gate-3 { animation: gate3 30s linear infinite; }

@keyframes halo   { 0%, 100% { opacity: .38; transform: scale(1); } 50% { opacity: .72; transform: scale(1.09); } }
@keyframes floatA { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-11px); } }
@keyframes floatB { 0%, 100% { transform: rotate(5deg) translateY(0); }  50% { transform: rotate(5deg) translateY(13px); } }
@keyframes gate1  { 0%, 33.2% { opacity: 1; } 33.4%, 100% { opacity: 0; } }
@keyframes gate2  { 0%, 33.2% { opacity: 0; } 33.4%, 66.5% { opacity: 1; } 66.7%, 100% { opacity: 0; } }
@keyframes gate3  { 0%, 66.5% { opacity: 0; } 66.7%, 100% { opacity: 1; } }

@keyframes flyOut {
  0%, 33%  { opacity: 0; transform: translate(0, 0) scale(.88) rotate(-5deg); animation-timing-function: cubic-bezier(.45, 0, .9, .85); }
  36%      { opacity: 1; transform: translate(26%, -18%) scale(1) rotate(-3deg); animation-timing-function: linear; }
  40%      { opacity: 1; transform: translate(72%, -48%) scale(1.02) rotate(0deg); animation-timing-function: linear; }
  44%      { opacity: 1; transform: translate(118%, -74%) scale(1.01) rotate(3deg); animation-timing-function: cubic-bezier(.1, .15, .55, 1); }
  47%      { opacity: 1; transform: translate(144%, -90%) scale(1) rotate(4deg); }
  50%, 100% { opacity: 0; transform: translate(144%, -90%) scale(.94) rotate(5deg); }
}
@keyframes flyBack {
  0%, 62%  { opacity: 0; transform: translate(0, 0) scale(.88) rotate(4deg); animation-timing-function: cubic-bezier(.45, 0, .9, .85); }
  65%      { opacity: 1; transform: translate(-26%, 18%) scale(1) rotate(2deg); animation-timing-function: linear; }
  69%      { opacity: 1; transform: translate(-72%, 48%) scale(1.02) rotate(0deg); animation-timing-function: linear; }
  73%      { opacity: 1; transform: translate(-118%, 74%) scale(1.01) rotate(-3deg); animation-timing-function: cubic-bezier(.1, .15, .55, 1); }
  76%      { opacity: 1; transform: translate(-144%, 90%) scale(1) rotate(-4deg); }
  79%, 100% { opacity: 0; transform: translate(-144%, 90%) scale(.94) rotate(-5deg); }
}

/* 手機畫面內的小動畫 */
.pa-stack { flex: 1; position: relative; margin-top: 6px; min-height: 0; }
.pa-form  { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 9px; animation: holdForm 10s linear infinite; }
.pa-wait  { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; animation: holdWait 10s linear infinite; }
.pa-done  { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; animation: reward 10s cubic-bezier(.16, 1, .3, 1) infinite; }
.pa-lbl   { font: 500 9px/13px var(--font-sans); color: var(--n-600); margin-bottom: 4px; }
.pa-bar   { height: 9px; border-radius: 9999px; background: var(--n-200); overflow: hidden; }
.pa-bar i { display: block; height: 100%; border-radius: 9999px; background: var(--data); transform-origin: left center; }
.pa-bar-a i { animation: fillA 10s cubic-bezier(.4, 0, .2, 1) infinite; }
.pa-bar-b i { animation: fillB 10s cubic-bezier(.4, 0, .2, 1) infinite; }
.pa-cta {
  margin-top: auto; height: 28px; border-radius: 9999px;
  background: var(--data); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  font: 700 10px/14px var(--font-sans); white-space: nowrap;
  animation: cta 10s ease-out infinite;
}
.pa-slot { position: relative; height: 30px; margin-top: 8px; }
.pa-coin {
  position: absolute; inset: 0; border-radius: 9999px; background: var(--c-accent);
  display: flex; align-items: center; justify-content: center; gap: 5px;
  animation: reward 10s cubic-bezier(.16, 1, .3, 1) infinite;
}
.pb-stack { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; }
.pb-hold  { position: absolute; text-align: center; animation: holdB 10s linear infinite; }
.pb-done  { position: absolute; text-align: center; animation: arrive 10s cubic-bezier(.16, 1, .3, 1) infinite; }
.pb-slot  { position: relative; height: 28px; }
.pb-empty {
  position: absolute; inset: 0; border: 1px dashed var(--n-300); border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  font: 600 10px/14px var(--font-sans); color: var(--n-500); white-space: nowrap;
  animation: holdC 10s linear infinite;
}
.pb-ok {
  position: absolute; inset: 0; border-radius: 9999px; background: var(--ink);
  display: flex; align-items: center; justify-content: center; gap: 5px;
  animation: popIn 10s cubic-bezier(.16, 1, .3, 1) infinite;
}

@keyframes fillA    { 0%, 4% { transform: scaleX(0); } 13% { transform: scaleX(1); } 96% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes fillB    { 0%, 15% { transform: scaleX(0); } 24% { transform: scaleX(1); } 96% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes cta      { 0%, 26% { transform: scale(1); filter: brightness(1); } 28.5% { transform: scale(.94); filter: brightness(.9); } 31% { transform: scale(1.06); filter: brightness(1.06); } 34%, 100% { transform: scale(1); filter: brightness(1); } }
@keyframes holdForm { 0%, 34% { opacity: 1; } 37%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes holdWait { 0%, 37% { opacity: 0; } 41%, 72% { opacity: 1; } 75%, 100% { opacity: 0; } }
@keyframes holdB    { 0%, 46% { opacity: 1; } 49%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes holdC    { 0%, 44% { opacity: 1; } 47%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes reward   { 0%, 76% { opacity: 0; transform: translateY(8px) scale(.94); } 82% { opacity: 1; transform: translateY(0) scale(1.05); } 86% { transform: translateY(0) scale(1); } 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes arrive   { 0%, 52% { opacity: 0; transform: translateY(8px) scale(.92); } 58% { opacity: 1; transform: translateY(0) scale(1.06); } 62% { transform: translateY(0) scale(1); } 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes popIn    { 0%, 46% { opacity: 0; transform: scale(.7); } 51% { opacity: 1; transform: scale(1.1); } 55% { transform: scale(1); } 94% { opacity: 1; } 97%, 100% { opacity: 0; } }

/* ============================================================
   通用區塊
   ============================================================ */
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(44px, 5cqw, 76px) var(--pad) 0; }
.section-first { padding-top: clamp(72px, 8cqw, 112px); }
.section-last { padding: clamp(40px, 4cqw, 68px) var(--pad) clamp(48px, 5cqw, 80px); }

.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(20px, 2.2cqw, 28px); }
.section-num {
  font-size: 16px; font-weight: 600;
  background: var(--c-badge-bg); color: #FFFFFF;
  border-radius: 4px; padding: 3px 9px;
}
.section-head h2 {
  margin: 0;
  font: 700 clamp(24px, 2.9cqw, 36px)/1.25 var(--font-sans);
  letter-spacing: -.02em; color: var(--c-ink-page);
}

.card { background: #FFFFFF; border-radius: 20px; box-shadow: var(--c-card-shadow); }

/* ── 01 回饋 ── */
.rewards {
  padding: clamp(24px, 2.8cqw, 40px);
  display: grid; align-items: stretch; gap: 26px;
  grid-template-columns: minmax(0, 1fr);
}
.rewards > div { display: flex; flex-direction: column; }
.rewards-divider { background: var(--n-200); height: 1px; width: 100%; }
.pill-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(16px, 1.8cqw, 22px); }
.pill {
  display: inline-flex; align-items: center; height: 28px; padding: 0 13px;
  border-radius: 9999px; font: 600 13px/18px var(--font-sans);
}
.pill-data { background: var(--data-bg); color: var(--data); }
.pill-ink { background: var(--ink); color: #FFFFFF; }
/* 兩欄標題同級。左欄原本把「1」放大到 78px（.reward-big），但填表的是推薦人，
   整頁第一個內容區塊最大的視覺元素卻在講好友的好處 —— 2026-09-14 決定
   拿掉放大，「12→13」改由下方的月份圖承擔。
   放大拿掉後 flex + gap:12px 也一起收掉：「年繳加送」「1」「個月」是三個文字
   節點，在 flex 容器裡會各自成為 flex item，被 gap 撐開三段 12px 的縫。 */
.reward-lead {
  font: 700 clamp(20px, 2.2cqw, 28px)/1.3 var(--font-sans);
  color: #000000; letter-spacing: -.02em;
}
.reward-sub { font: 600 17px/26px var(--font-sans); color: var(--n-800); margin-top: 10px; }
.reward-note { font: 400 15px/24px var(--font-sans); color: var(--n-600); margin-top: auto; padding-top: 16px; text-wrap: pretty; }

/* 月份圖 —— 12 格白底 ＋ 1 格藍底。沿用 02 .step-figure 的灰底圓角小圖語彙
   （#F4F6F8 / radius 14），把「付 12 個月、用 13 個月」變成可數的東西。
   flex:12 對 flex:1.5 是刻意的 —— ＋1 那格要放得下字，所以比單月略寬。
   ⚠️ 這是刻意偏離設計稿（設計稿左欄沒有圖），已登記進 README 偏離清單。 */
.rw-months { margin-top: clamp(26px, 3cqw, 40px); background: #F4F6F8; border-radius: 14px; padding: 18px 18px 14px; }
.rwm-track { display: flex; align-items: stretch; gap: 10px; }
.rwm-paid { flex: 12; display: flex; gap: 4px; min-width: 0; }
.rwm-paid i { flex: 1; height: 34px; border-radius: 6px; background: #FFFFFF; border: 1px solid var(--n-200); }
.rwm-free { flex: 1.5; min-width: 48px; height: 34px; border-radius: 6px; background: var(--data); display: flex; align-items: center; justify-content: center; }
.rwm-free span { font-size: 15px; font-weight: 700; line-height: 1; color: #FFFFFF; }
.rwm-legend { display: flex; justify-content: space-between; gap: 12px; margin-top: 11px; font: 500 13px/18px var(--font-sans); color: var(--n-600); }
.rwm-legend .is-free { color: var(--data); font-weight: 700; }
/* 三列共用同一組欄軌（.coin-row 用 subgrid 借用父層的欄），第二欄因此由
   「內容最寬的那一列」決定，三顆膠囊自動等寬，不必寫死寬度。
   ⚠️ 不要改回在 .amt 上寫 min-width：那只是下限，390px 下量到
   40／300 是 120px 而 1,000 被內容撐到 130px；而且 --font-num
   （Barlow Condensed）沒載入退回 Noto Sans 時數字更寬，任何 magic number
   都會破。subgrid：Chrome 117+／Safari 16+／Firefox 71+。 */
.coin-list { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.coin-row {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: subgrid;
  align-items: baseline; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--n-200);
}
.coin-row:last-of-type { border-bottom: 0; }
.coin-row .plan { font: 600 17px/26px var(--font-sans); color: #000000; }
/* 麻吉幣膠囊 —— 沿用 hero .pa-coin 的檸檬綠（--c-accent / --c-accent-ink），
   讓「你的回饋」在版面上有能跟左欄抗衡的重量。
   三顆等寬由 .coin-list 的 subgrid 負責（見該處註解），這裡只管把內容置中。
   ⚠️ 三階刻意維持等寬、不做比例化 —— 實際名單裡最低階佔絕大多數，
   比例化會讓多數讀者看到自己那一階只有一小截。

   🔒 這裡原本寫著另一檔活動的實際名單筆數與三階人數，2026-09-14 資安盤點時移除。
   **本檔會原樣發布到 campaign.pass.credit，註解不會被移除或壓縮**（純靜態站，
   沒有建置步驟會幫忙剝掉，見決策 D7）—— 以下都不要寫進
   `index.html` / `css/app.css` / `js/app.js`，要寫請寫在 README 或交接文件
   （`.vercelignore` 已排除所有 `*.md`）：

     · 內部營運數據（名單規模、方案佔比、轉換率、成本）
     · **同事的姓名或帳號**（2026-09-16 補：當時三個檔共有 25 處人名，已改成
       中性的「定案／要求／回報」。那是員工個資，發布在對外行銷頁上沒有必要）
     · 內部票號與決策編號（T17、D11 之類）、其他專案代號、內部檔名
       —— 它們對外沒有意義，只會揭露內部流程結構

   📌 技術性註解（為什麼要這個 hack、改了會壞什麼）**刻意保留**：它們是這個
      檔案不被改壞的主要保護，而且不含任何敏感資訊。這是已確認的取捨，
      不要因為「註解會被看到」就整批刪掉。 */
.coin-row .amt {
  justify-self: stretch; display: flex; align-items: baseline; justify-content: center; gap: 5px;
  padding: 5px 14px 6px; border-radius: 9999px; background: var(--c-accent);
  white-space: nowrap;
}
.coin-row .amt b { font-size: clamp(24px, 2.4cqw, 32px); font-weight: 700; line-height: 1; color: var(--c-accent-ink); }
.coin-row .amt span { font: 700 14px/20px var(--font-sans); color: var(--c-accent-ink); }

/* ── 02 四步驟 ── */
.steps { padding: clamp(24px, 2.8cqw, 40px); display: grid; grid-template-columns: minmax(0, 1fr); }
.step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 16px; min-width: 0; }
.step-rail { display: grid; grid-template-rows: 23px 34px minmax(0, 1fr); justify-items: center; gap: 8px; align-self: stretch; }
.step-lead, .step-line { width: 2px; min-height: 0; background: var(--n-200); border-radius: 2px; }
.step:first-child .step-lead { visibility: hidden; }
.step:last-child .step-line { visibility: hidden; }
.step-dot {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 9999px; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.step-dot span { font-size: 18px; font-weight: 600; color: #FFFFFF; }
.step-body { padding: 0 0 30px; }
.step:last-child .step-body { padding: 0; }
.step-figure {
  height: 96px; border-radius: 14px; background: #F4F6F8;
  display: flex; align-items: center; justify-content: center;
  margin: 0 0 16px; overflow: hidden;
}
.step-title { font: 600 18px/27px var(--font-sans); color: #000000; letter-spacing: -.017em; }
.step-desc { font: 400 15px/24px var(--font-sans); color: var(--n-600); margin-top: 7px; text-wrap: pretty; }

/* ── 03 活動規則（四卡）── */
.rules-grid { display: grid; gap: 16px; align-items: stretch; grid-template-columns: minmax(0, 1fr); }
.rule-card {
  background: #FFFFFF; border-radius: 20px; box-shadow: var(--c-card-shadow);
  padding: clamp(22px, 2.2cqw, 28px);
  display: flex; flex-direction: column; gap: 14px;
}
.rule-top { display: flex; align-items: center; gap: 10px; }
.rule-top .i { width: 20px; height: 20px; color: var(--data); }
.rule-kicker { font: 600 13px/18px var(--font-sans); color: var(--n-600); }
.rule-head { font: 700 18px/27px var(--font-sans); color: #000000; letter-spacing: -.017em; }
.rule-head em { font-style: normal; color: var(--data); }
.rule-body { font: 400 15px/24px var(--font-sans); color: var(--n-600); text-wrap: pretty; }

/* ── 04 FAQ ── */
/* 設計稿的三組 FAQ 共用「一張」白卡，組與組之間只靠 .faq-group 的 border-top 分隔；
   卡的上下內距只有 4px，其餘留白由 .faq-group 自己的 padding:24px 0 提供。 */
.faq-wrap { display: flex; flex-direction: column; gap: 16px; }
.faq-card {
  background: #FFFFFF; border-radius: 20px; box-shadow: var(--c-card-shadow);
  padding: 4px clamp(22px, 2.2cqw, 30px);
}
.faq-group {
  display: grid; align-items: start; gap: 14px; padding: 24px 0;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--n-200);
}
.faq-group:first-of-type { border-top: 0; }
.faq-side-title {
  /* 三顆等高：靠全域 *{box-sizing:border-box}，is-outline 的 1px 邊框算在 26px 內 */
  display: inline-flex; align-items: center; height: 26px; padding: 0 12px;
  border-radius: 9999px; font: 600 13px/18px var(--font-sans);
}
.faq-side-title.is-ink { background: var(--ink); color: #FFFFFF; }
.faq-side-title.is-data { background: var(--data-bg); color: var(--data); }
.faq-side-title.is-outline { background: transparent; border: 1px solid var(--n-300); color: var(--n-800); }
.faq-side-desc { font: 400 14px/21px var(--font-sans); color: var(--n-600); margin-top: 10px; }
.faq-list { display: grid; gap: 0; }
details.faq { border-top: 1px solid var(--n-200); }
details.faq:first-child { border-top: 0; }
/* 題目是按鈕不是內文：點下去把整行文字選起來（Safari 對 <summary> 特別積極，
   連點兩下開合也會選到整個詞）會閃一片藍色選取底。關掉題目的選取與觸控
   highlight；答案內文 .faq-a 不受影響，仍可複製。設計稿沒有這兩條，是移植時
   補的互動修正 —— 設計稿是靜態稿，這個問題在它自己的預覽裡也有。 */
details.faq > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 17px 0;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
details.faq:first-child > summary { padding: 0 0 17px; }
details.faq:last-child > summary { padding: 17px 0 0; }
details.faq > summary:hover { opacity: .7; }
details.faq > summary::-webkit-details-marker { display: none; }
.faq-q { flex: 1; font: 600 16px/25px var(--font-sans); color: #000000; }
details.faq[open] .faq-q { color: var(--data); }
.plus {
  width: 16px; height: 16px; flex-shrink: 0; position: relative;
  transition: transform .18s cubic-bezier(.4, 0, .2, 1);
}
.plus::before, .plus::after {
  content: ""; position: absolute; background: var(--data); border-radius: 2px;
}
.plus::before { left: 0; top: 7px; width: 16px; height: 2px; }
.plus::after { left: 7px; top: 0; width: 2px; height: 16px; }
details.faq[open] .plus { transform: rotate(45deg); }
.faq-a { font: 400 15px/24px var(--font-sans); color: var(--n-600); padding: 0 0 17px; text-wrap: pretty; }
details.faq:last-child .faq-a { padding: 12px 0 0; }

/* 客服卡：設計稿是一張可點的白卡（hover 會浮起），不是頁尾的一條分隔線文字。
   做成 <a data-link="support"> 以沿用「連結未設定就停用」的既有機制。 */
.support-card {
  display: flex; align-items: center; gap: 16px; color: inherit;
  background: #FFFFFF; border-radius: 20px; box-shadow: var(--c-card-shadow);
  padding: 20px clamp(22px, 2.2cqw, 30px);
  margin-top: clamp(28px, 3cqw, 44px);
  cursor: pointer;
  transition: transform .18s cubic-bezier(.4, 0, .2, 1), box-shadow .18s ease;
}
/* 蓋掉全域 a:hover 的換色；卡片 hover 只浮起、不變字色 */
.support-card:hover {
  color: inherit; transform: translateY(-2px);
  box-shadow: 0px 6px 6px rgba(0, 0, 0, .06), 0px 14px 12px rgba(0, 0, 0, .05);
}
.support-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 9999px;
  background: var(--data-bg); color: var(--data);
  display: flex; align-items: center; justify-content: center;
}
.support-icon .i { width: 22px; height: 22px; }
.support-text { flex: 1; }
.support-title { font: 600 16px/25px var(--font-sans); color: #000000; }
.support-sub { font: 400 14px/22px var(--font-sans); color: var(--n-600); }
.support-card .i-chevron { width: 20px; height: 20px; color: var(--n-600); }

/* ============================================================
   邀請表單
   ============================================================ */
/* 表單彈窗。2026-09-14 之前這裡是一個整頁式 route（.form-hero 漸層標題 + .form-card
   白卡 + .crumb 麵包屑 + .btn-back 回介紹頁），那些規則已隨 route 一起刪除。
   卡身白底：.modal 預設的 --n-100 灰底適合序號彈窗那種「灰底上放白色區塊」的結構，
   但表單整片都是輸入元件，灰底會讓欄位的白色填色與邊界糊在一起。 */
/* ⚠️ 必須寫成 .modal.modal-form：兩者都是單一 class、特異性相同，而 .modal
   （背景 --n-100）定義在本區塊之後，單寫 .modal-form 會被它蓋掉 —— 白底整段不生效。 */
.modal.modal-form { background: #FFFFFF; }

/* 漸層頭 —— 與 hero 同一道 --c-hero 加光暈（2026-09-14 於四個方向中選定）。
   目的是讓彈窗看起來仍在這個活動裡，而不是一個系統對話框。
   .modal-head 本來就是 position:sticky，內容捲動時頭會留在上面 —— 手機鍵盤彈起、
   可視高度變矮時會用到。sticky 本身是 positioned element，所以這裡的 ::before
   光暈不必再補 position:relative。
   ⚠️ **但這個前提在 <560 被自己的覆寫推翻過**：那裡為了讓頭捲得走曾改成
   `position:static`，頭就不再是 containing block，`inset:0` 的光暈改去對齊
   `.scrim`（fixed），整個視窗蓋上一層綠霧。<560 現在寫的是 `relative`。
   **任何時候都不要把這顆頭改成 static。**
   圓角由 .modal 的 overflow-y:auto + border-radius 裁切，這裡不重複寫。 */
.modal-form .modal-head {
  background: var(--c-hero);
  padding: 26px 28px 28px;
}
.modal-form .modal-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 88% -30%, var(--c-glow-a), var(--c-glow-b) 36%, transparent 72%);
}
/* 內容要壓在光暈之上 */
.modal-form .modal-head-row { position: relative; align-items: flex-start; }
.modal-brand {
  display: inline-flex; align-items: center; height: 26px; padding: 0 12px;
  border-radius: 9999px; background: rgba(255, 255, 255, .16);
  font: 600 12px/18px var(--font-sans); color: rgba(255, 255, 255, .92);
  letter-spacing: .02em; margin-bottom: 12px;
}
.modal-form .modal-title { font: 700 clamp(21px, 2.2cqw, 24px)/1.38 var(--font-sans); color: #FFFFFF; letter-spacing: -.02em; }
/* .88 而不是設計稿的 .82 —— 沿用頁面既有的 hero 內文值（原 .form-hero p），
   在青綠色那一端的對比也比較安全 */
.modal-form .modal-sub { color: rgba(255, 255, 255, .88); margin-top: 7px; }
.modal-form .modal-close { background: rgba(255, 255, 255, .16); }
.modal-form .modal-close:hover { filter: brightness(1.3); }
.modal-form .modal-close .i { color: #FFFFFF; }
.modal-form .modal-body { padding: 26px 28px 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font: 500 15px/23px var(--font-sans); color: var(--n-800); margin-bottom: 8px; }
.field input[type="email"] {
  width: 100%;
  border: 1px solid var(--n-300); border-radius: 12px;
  padding: 15px 16px; background: #FFFFFF;
  font: 400 16px/24px var(--font-sans); color: var(--n-800);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input[type="email"]:focus {
  outline: none; border-color: var(--data);
  box-shadow: 0 0 0 3px rgba(22, 82, 140, .12);
}
.field.is-error input[type="email"] { border-color: #D93A1E; }
.field-hint { font: 400 14px/21px var(--font-sans); color: var(--n-600); margin-top: 8px; }
.field-error {
  display: flex; align-items: flex-start; gap: 6px;
  font: 500 14px/21px var(--font-sans); color: #D93A1E; margin-top: 8px;
}
.field-error .i { width: 15px; height: 15px; margin-top: 2px; color: #D93A1E; }

.notice {
  display: flex; gap: 10px;
  background: var(--ink); border-radius: 14px; padding: 15px 16px;
  font: 500 15px/24px var(--font-sans); color: #FFFFFF;
  margin-bottom: 16px; text-wrap: pretty;
}
.notice .i { width: 20px; height: 20px; flex-shrink: 0; color: #FFFFFF; }

.consent { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px; cursor: pointer; }
.consent input[type="checkbox"] { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--data); flex-shrink: 0; }
.consent span { font: 400 14px/22px var(--font-sans); color: var(--n-600); text-wrap: pretty; }

.btn-submit {
  width: 100%; border: 0; border-radius: 9999px;
  background: var(--c-cta-ink); color: #FFFFFF;
  padding: 17px;
  font: 700 17px/25px var(--font-sans); letter-spacing: -.017em;
  box-shadow: 0px 1px 2px rgba(23, 30, 43, .1);
  cursor: pointer; transition: filter .18s ease;
}
.btn-submit:hover:not(:disabled) { filter: brightness(1.08); }
.btn-submit:disabled {
  background: var(--n-200); color: var(--n-500);
  box-shadow: none; cursor: not-allowed;
}

.form-foot { font: 400 14px/22px var(--font-sans); color: var(--n-600); margin-top: 14px; text-wrap: pretty; }

/* ============================================================
   底部黏著 CTA
   ============================================================ */
/* sticky（不是 fixed）：留在文件流內且排在 <footer> 之後，
   捲到底時落回自身位置，頁尾就不會被永久遮住。 */
.sticky-cta {
  position: sticky; bottom: 0; z-index: 45;
  background: var(--ink);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .18);
  transform: translateY(100%);
  opacity: 0; pointer-events: none;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), opacity .3s ease;
}
.sticky-cta.is-shown { transform: translateY(0); opacity: 1; pointer-events: auto; }
.sticky-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
}
.sticky-copy { min-width: 0; }
.sticky-title { font: 700 16px/24px var(--font-sans); color: #FFFFFF; letter-spacing: -.017em; }
.sticky-sub { font: 400 12px/18px var(--font-sans); color: rgba(255, 255, 255, .72); margin-top: 2px; }
.sticky-cta .btn-primary {
  margin-left: auto; flex-shrink: 0;
  padding: 13px 20px; font: 700 15px/22px var(--font-sans);
}

/* ============================================================
   彈窗
   ============================================================ */
.scrim {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fade .2s ease-out;
}
.modal {
  width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  background: var(--n-100); border-radius: 24px;
  animation: dialog .26s cubic-bezier(.4, 0, .2, 1);
}
/* 淺灰彈窗頭 —— 與 .modal 同底色，捲動時黏在頂端。
   不需要 border-radius：.modal 有 overflow-y:auto，本來就會把子元素
   裁進 24px 圓角裡，而且頭部底色和 .modal 完全相同。 */
.modal-head {
  position: sticky; top: 0; z-index: 2;
  padding: 22px 24px 14px;
  background: var(--n-100);
}
.modal-head-row { display: flex; align-items: center; gap: 14px; }
.modal-head-row > div { flex: 1; min-width: 0; }
.modal-head-badge {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 9999px;
  /* 2026-09-14 定案：改成「純勾勾 ＋ 綠色底」。原本是淺綠底 #DFF3E8 配
     深綠的 patch-check-fill（鋸齒徽章造型），造型本身已經是一枚徽章，
     再放進一個圓底等於兩層徽章。現在底色用原本那顆勾的綠，勾改白色。 */
  background: #1F8A5B;
  display: flex; align-items: center; justify-content: center;
}
.modal-head-badge .i { width: 23px; height: 23px; color: #FFFFFF; }
.modal-title { font: 600 19px/28px var(--font-sans); color: #000000; letter-spacing: -.017em; }
.modal-sub { font: 400 14px/22px var(--font-sans); color: var(--n-600); }
.modal-close {
  margin-left: auto; border: 0; background: var(--n-200);
  width: 38px; height: 38px; border-radius: 9999px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: filter .18s ease;
}
.modal-close:hover { filter: brightness(.94); }
.modal-close .i { width: 15px; height: 15px; color: var(--n-800); }

/* 漸層序號卡：底漸層 + radial glow(::before)。
   z-index 寫死（glow 0、內容 1），不靠 auto 的繪製順序；isolation:isolate 讓這組
   z-index 關在卡片自己的 stacking context 裡，不會跟 .modal-head(z-index:2)
   或 .sticky-cta 互相打架。

   📌 **2026-09-14：這張卡的底必須與表單彈窗頭（.modal-form .modal-head）完全相同。**
   定案要求「結果頁的底要跟輸入頁一樣」，同一個流程的兩步不該長得像兩個元件。
   ⚠️ 原本這裡多了一層 `::after { background: rgba(23,30,43,.32) }` 深色壓底，
   而表單彈窗頭沒有 —— 青綠端因此從 rgb(10,156,144) 被壓成 rgb(14,116,112)，
   整張卡暗一截。壓底已移除，glow 的三個參數也對齊成表單頭那組
   （88% -30% / 36% / 72%，原本是 88% -16% / 34% / 74%）。
   **三個面要一起改**：這張卡、`.modal-form .modal-head`、以及 js/app.js 的
   `buildCard()`（PNG 分享圖卡）。改一個沒改另外兩個就會再次不一致。 */
.code-card {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 18px 24px 0;
  border-radius: 20px; padding: 24px;
  background: var(--c-hero); color: #FFFFFF;
}
.code-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 88% -30%, var(--c-glow-a), var(--c-glow-b) 36%, transparent 72%);
}
.code-card > * { position: relative; z-index: 1; }

.code-label { display: flex; align-items: center; gap: 8px; font: 600 13px/20px var(--font-sans); color: #FFFFFF; margin-bottom: 12px; }
.code-label .i { width: 18px; height: 18px; color: var(--c-accent); }
/* 2026-09-14：「複製序號」原本是卡片下方的大按鈕（.code-actions），
   後改成序號右側的 icon；「傳給好友」同時下移到彈窗底部與
   「再邀請一位好友」同列。.code-actions 整組已刪。 */
.code-value-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.code-value {
  flex: 1 1 auto; min-width: 0;
  font-size: 50px; font-weight: 700; line-height: 54px;
  letter-spacing: .08em; color: #FFFFFF; margin: 0;
  word-break: break-all;
}
/* 序號右側的兩顆 icon 鈕：複製序號（#btn-copy）與傳給好友（#btn-share）。
   兩顆都是 icon-only，**必須保留 aria-label／title**，否則螢幕閱讀器只會唸到
   一顆空按鈕。「傳給好友」在 2026-09-14 曾短暫下放到彈窗底部當文字按鈕，
   後又要求移回序號旁並改用 share icon —— 底部現在只剩「再邀請一位好友」。 */
.code-act {
  flex: none; width: 44px; height: 44px; border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .18s ease;
}
.code-act:hover { background: rgba(255, 255, 255, .2); }
.code-act .i { width: 19px; height: 19px; color: #FFFFFF; }
/* 📌 2026-09-14 起全站**只剩一顆** .btn-copy —— 彈窗底部的「再邀請一位好友」
   （`#btn-again`）。漸層卡上的 .code-actions 與配對的 .btn-share 都已刪除，
   「複製序號」「傳給好友」改成序號右側的 .code-act icon 鈕。
   ⚠️ class 叫 .btn-copy 但它不是複製鈕 —— 這個名字現在純粹代表「主按鈕」，
   不要看到 id 與 class 對不上就「順手改正」。 */
.btn-copy {
  flex: 1 1 auto; min-width: 120px;
  border: 0; border-radius: 9999px; padding: 13px 20px;
  background: var(--data); color: #FFFFFF;
  font: 700 15px/22px var(--font-sans); cursor: pointer;
  transition: filter .18s ease, background .18s ease;
}
.btn-copy:hover { filter: brightness(1.08); }

/* <dl> 的 UA 預設 margin-block 是 1em；以前 .code-meta 是卡的最後一個子元素，
   多出來的 16px 看不太出來。現在後面接了 .code-sec，不歸零的話
   第一條虛線會比第二條多 16px 間距，所以改寫成完整的 margin。 */
.code-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 0; padding-top: 16px; border-top: 1px dashed rgba(255, 255, 255, .28); }
.code-meta dt { font: 600 12px/18px var(--font-sans); color: #FFFFFF; }
/* 2026-09-14 定案：兩欄的值要**同字級同粗細**並放大。原本左欄（信箱）是
   400 15px、右欄（日期）是 600 18px —— 字級與粗細都不一樣。現在統一 600 19px，
   只保留 font-family 的差異（日期走 --font-num 取等寬數字）。 */
.code-meta dd { margin: 3px 0 0; font: 600 19px/26px var(--font-sans); color: #FFFFFF; word-break: break-all; }
/* 📌 2026-09-14（二次）：原本「使用期限」帶 .t-num 走 --font-num（Barlow Condensed），
   與左欄信箱的 --font-sans 是兩種字體，後要求統一。.t-num 已從 HTML 移除，
   這條覆寫也一併刪掉 —— 兩欄現在完全共用上面那一條 .code-meta dd。 */

/* 「好友怎麼用」/「你的回饋」—— 設計稿把這兩塊放在漸層卡內，
   每段用一條虛線分隔，chip 是半透明白。虛線與 .code-meta 上緣同一組值，
   只有 margin-top 不同（meta 18px、這兩段 16px），照設計稿。 */
.code-sec { margin-top: 16px; padding-top: 16px; border-top: 1px dashed rgba(255, 255, 255, .28); }
.code-sec-title { font: 600 13px/20px var(--font-sans); color: #FFFFFF; margin-bottom: 10px; }

/* 2026-09-14：這兩段原本是 .code-grid 裡的半透明 chip（桌機 3 欄、<560 收成單欄）。
   回報 390px 下六個框「太長太佔空間」—— 單欄時每個 chip 都是滿版方塊，
   六個疊起來把彈窗撐得很長。改成純文字列：拿掉背景／邊框／內距，只留文字本身，
   縱向高度約剩三分之一。.code-grid / .code-chip 已刪（全站僅此兩處使用）。 */
.code-steps { display: grid; gap: 6px; }
.code-step { display: flex; align-items: baseline; gap: 9px; }
/* .code-step-num 不能用 font 縮寫 —— 會把 .t-num 的 font-family
   蓋掉（同 .code-meta dd.t-num 那個坑） */
.code-step-num { font-size: 13px; font-weight: 700; color: var(--c-accent); flex: none; }
.code-step-text { font: 500 13px/20px var(--font-sans); color: #FFFFFF; text-wrap: pretty; }
/* 白卡版用 var(--data) 標重點，在漸層上讀不到；改用純粗體，
   避免和青檸色的步驟編號搶同一個強調色。 */
.code-step-text b { font-weight: 700; color: #FFFFFF; }


.modal-body { padding: 18px 24px 24px; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.modal-actions .btn-copy { flex: none; width: 100%; padding: 16px; }
/* 底部只剩一顆「再邀請一位好友」（#btn-again，帶 .btn-copy）—— 2026-09-14 要求
   提高它的層級，用房子的主色（與 .btn-submit 同一顆 --c-cta-ink）。
   ⚠️ class 叫 .btn-copy 但它不是複製鈕；`.btn-copy` 在這裡純粹代表「主按鈕」。 */
.modal-actions .btn-copy {
  border: 0;
  background: var(--c-cta-ink); color: #FFFFFF;
  font: 700 16px/24px var(--font-sans); letter-spacing: -.017em;
  box-shadow: 0 1px 2px rgba(23, 30, 43, .1);
}
.modal-actions .btn-copy:hover { filter: brightness(1.08); }


/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 80; background: var(--ink); color: #FFFFFF;
  border-radius: 9999px; padding: 13px 24px;
  font: 600 15px/22px var(--font-sans);
  box-shadow: 0px 4px 3px rgba(0, 0, 0, .1), 0px 10px 8px rgba(0, 0, 0, .04);
  animation: toast .2s ease-out; white-space: nowrap;
  transition: bottom .3s ease;
}
.toast.is-raised { bottom: 96px; }

@keyframes fade   { from { opacity: 0; } to { opacity: 1; } }
@keyframes dialog { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast  { from { opacity: 0; transform: translateX(-50%) translateY(8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes rise   { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.route { animation: fade .24s ease-out; }
.rise { animation: rise .55s cubic-bezier(.16, 1, .3, 1) both; }
.rise-1 { animation-delay: .06s; }
.rise-2 { animation-delay: .12s; }
.rise-3 { animation-delay: .18s; }
.rise-4 { animation-delay: .24s; }

/* ============================================================
   Footer
   ============================================================ */
/* 設計稿的 footer 沒有 margin-top，上方留白全由 .section-last 的
   下內距提供；垂直內距掛在 footer 本體、水平內距掛在 inner。 */
.site-footer { background: var(--ink); padding: clamp(32px, 3.4cqw, 48px) 0 clamp(28px, 3cqw, 40px); }
.footer-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 0 var(--pad);
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px;
}
/* 與 header 的 logo 同一個處理（理由見 .logo-btn img）。原本反白是寫在 index.html
   的 inline style 上、而且 opacity 是 .72 —— 與 header 當時的 .78 各走各的，
   同一個 logo 在同一個底色上卻有兩種亮度。收進樣式表一起管，兩邊都不加 opacity。 */
.footer-inner img { height: 18px; width: auto; display: block; filter: invert(1) brightness(2); }
.footer-copy { display: block; margin-top: 14px; font: 400 13px/20px var(--font-sans); color: rgba(255, 255, 255, .5); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-links a { font: 500 15px/23px var(--font-sans); color: rgba(255, 255, 255, .72); }
.footer-links a:hover { color: #FFFFFF; }

/* ============================================================
   斷點：sm ≥ 560
   ============================================================ */
@container (min-width: 560px) {
  .modal-actions { flex-direction: row; }
  .modal-actions .btn-copy { width: auto; flex: 1; }
}

/* ============================================================
   斷點：md ≥ 900
   ============================================================ */
@container (min-width: 900px) {
  .header-row { height: 78px; padding: 0 var(--pad); gap: clamp(14px, 2.4cqw, 32px); }
  .logo-btn img { height: 19px; }
  .header-divider { display: block; }
  .header-label { display: block; }
  .header-cta { padding: 11px 24px; font: 700 15px/22px var(--font-sans); }

  .sticky-inner { padding: 16px var(--pad); gap: 24px; }
  .sticky-title { font: 700 18px/27px var(--font-sans); }
  .sticky-sub { font: 400 14px/22px var(--font-sans); }
  .sticky-cta .btn-primary { padding: 15px 32px; font: 700 16px/23px var(--font-sans); }

  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }

  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step { display: flex; flex-direction: column; }
  .step-rail {
    display: grid; grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
    grid-template-rows: none; align-items: center; gap: 10px; padding: 0 0 16px;
    /* 必須覆寫基礎規則的 justify-items:center —— 否則連接線會被置中
       而不是撐滿欄寬，空 div 寬度變 0，線就消失。 */
    justify-items: stretch;
  }
  .step-lead, .step-line { width: auto; height: 2px; }
  .step-body, .step:last-child .step-body { padding: 0 12px; text-align: center; }

  .rules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .faq-group { grid-template-columns: 200px minmax(0, 1fr); gap: 0 32px; }

}

/* ============================================================
   斷點：lg ≥ 1180
   ============================================================ */
@container (min-width: 1180px) {
  .rewards {
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    gap: clamp(28px, 3.4cqw, 52px);
  }
  .rewards-divider { width: 1px; height: 100%; }

  .rules-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================================================
   小螢幕收斂
   ============================================================ */
@container (max-width: 559px) {
  /* .header-label / .header-divider 的收合已上移到基礎值（md 以下一律隱藏） */
  .hero-actions .btn-primary, .hero-actions .btn-ghost { flex: 1 1 100%; text-align: center; }
  .sticky-inner { flex-wrap: wrap; }
  .sticky-cta .btn-primary { width: 100%; margin-left: 0; }
  .code-meta { grid-template-columns: minmax(0, 1fr); }
  /* footer 連結改直排（2026-09-14 定案）。當時是四條，原本 flex-wrap 橫排在 390px
     下剛好斷成「三條 ＋ 落單一條」，看起來像排版壞掉而不是刻意分組。
     ⚠️ 同日稍後「會員條款」被移除、剩三條，390px 一列其實塞得下 —— 直排是
     指定的做法，不是換行的副作用，**不要因為「現在不會斷行了」就把這條規則拿掉**。
     桌機維持橫排。
     ⚠️ `.footer-inner` 也要一起改直排：nav 收成單欄後寬度變窄，`flex-wrap` 就不再
     把它擠到下一行，會變成和 logo 並排、靠右對齊的一小欄。 */
  .footer-inner { flex-direction: column; gap: 20px; }
  .footer-links { flex-direction: column; gap: 12px; }
  /* 設計稿的 50px 是電腦版值。窄螢幕的卡片內容寬只有約 254px（390px 視窗：
     scrim 20×2 → modal 350、card margin 24×2 → 302、card padding 24×2 → 254），
     8 碼序號在 50px 會撐破。38px 下 Barlow Condensed 約佔 174px，
     連退回 Noto Sans 後備字型也只有約 226px，都還在 254px 內。 */
  /* 2026-09-14：序號右邊多了複製 icon，一列要塞下「序號 ＋ gap ＋ 按鈕」。
     卡內容寬 254px，扣掉 10px gap 與 38px 按鈕只剩 206px 給序號 —— 38px 時
     Barlow Condensed 約 174px 放得下，但**字型未載入退回 Noto Sans 時約 226px
     會爆行**，而驗證清單要求 390px 下序號不折行。降到 32px：
     退回字型也只有約 190px，仍有餘裕。 */
  /* ⚠️ 這四行是一組，動任何一個都要重量。序號列要在 254px 的卡內容寬裡塞下
     「序號 ＋ gap ＋ 鈕 ＋ gap ＋ 鈕」，序號的可用寬只剩 163px。
     字型是 Google Fonts 的 `display=swap`，**首次載入會先用退回字型算版**，
     所以要照 Noto Sans 的寬度抓，不能照 Barlow Condensed：
       28px/.05em → 164px（爆 1px）   28px/.03em → 160（餘 3）
       27px/.04em → 156px（餘 7）✅   26px/.05em → 152（餘 11）
     Barlow 載入後只有 108px。⚠️ 序號目前是 8 碼的 `GK83CXQ4`；正式序號若換成
     更寬的字母組合要重量一次（README 記著「待行銷確認」）。 */
  .code-value { font-size: 27px; line-height: 34px; letter-spacing: .04em; }
  .code-value-row { gap: 8px; }
  .code-act { width: 36px; height: 36px; }
  .code-act .i { width: 16px; height: 16px; }
  /* 📌 這裡原本有一條 .code-grid 的單欄覆寫（設計稿 3 欄在 390px 下每欄只剩
     79px，文字會斷 4 行）。2026-09-14 兩段改成純文字列後，本來就是一列一項、
     所有寬度都吃滿卡內容寬（390px 下 254px），不再需要斷點覆寫。 */
  .stage { max-width: 320px; }
  .ticket { width: 84px; padding: 6px 9px; }
  /* 月份圖：390px 下每格只剩約 14px 寬，格子細到讀不出「可以數」，但整條仍然
     傳達「一長串月份 ＋ 最後多一格」。降高度與間距讓它收成一條緊湊的帶子，
     而不是一排細長柱。格數維持 12 —— 為了好看而減格數就不誠實了。 */
  .rwm-paid { gap: 3px; }
  .rwm-paid i { height: 26px; border-radius: 4px; }
  .rwm-free { height: 26px; min-width: 42px; }
  .rwm-free span { font-size: 13px; }

  /* 表單彈窗的漸層頭在窄螢幕要收斂。390px 下量到 201px，佔彈窗可視高的 27%，
     而 .modal-head 預設是 sticky —— 鍵盤彈起後可視高度掉到約 500px，那顆頭會
     佔掉近 40%，正在填的欄位反而被擠出畫面。
     兩件事：拿掉品牌膠囊與部分內距（省約 56px），並改成 static 讓它捲得走。
     ⚠️ 關閉鈕因此不再永遠可見 —— 手機上關閉的主要途徑是返回手勢（見專案交接文件），
     點遮罩與 Esc 也都能關，往上捲一點就看得到關閉鈕。桌機維持 sticky。 */
  /* ⚠️ 這裡必須是 relative，**不可以是 static**（2026-09-14 回報「手機
     有一層綠霧」的根因）：頭上的光暈是 .modal-form .modal-head::before 的
     `position:absolute; inset:0`。頭一旦 static 就不再是它的 containing block，
     光暈改去對齊最近的 positioned 祖先 —— `.scrim`（position:fixed）—— 於是
     那圈 rgba(190,242,100,.55) 黃綠光暈鋪滿整個視窗。relative 同樣不黏頂
     （達成本區塊要的「捲得走」），又保住 containing block。 */
  .modal-form .modal-head { position: relative; padding: 20px 20px 22px; }
  .modal-brand { display: none; }
  .modal-form .modal-body { padding: 22px 20px 24px; }
}

/* ============================================================
   降低動態
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .ticket, .coin, .pa-form, .pa-wait, .pb-hold, .pb-empty { display: none !important; }
  .coin-gate ~ .coin-gate { display: none !important; }
  .pa-done, .pb-done, .pa-coin, .pb-ok { opacity: 1 !important; }
  .sticky-cta { transition: none; }
}
