/* ==========================================================================
   checkout-verify landing。方向：The well-kept board（tasteskill v2 dense-tiles）
   seed 765798631。整頁是一塊板：12 欄、8px 縫、12px 外緣，格子只填色不上框。
   取捨（逐條見 report 的 redraw 清單）：
   * 字型沿用自帶的 Geist：dealt 的 Jost 只有拉丁，本頁是繁體中文，且站規是
     不連第三方字型（零建置、CSP 'self'、離線可用）。只取 dealt 的字級角色。
   * 色票照 dealt：白底／--surface 一階／#111 墨／#1a4be0 單一強調色。
   形狀：一個半徑（0）、一顆按鈕形狀（方角實填）、一對頁緣（12px）。
   ========================================================================== */

/* 1. 字型：Geist（SIL OFL 1.1，latin subset，見 fonts/）。自帶 woff2，
      不連 Google Fonts、不跑打包。中文走系統字，Geist 只覆蓋拉丁與數字。 */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-sans-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono"; /* taste-skill-ignore: mono：face 宣告，散文不排等寬 */
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-mono-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Tokens */
:root {
  color-scheme: light;

  --bg: #ffffff;
  --surface: #f4f4f4;
  --surface-2: #ebebeb;
  --ink: #111111;
  --muted: #6b6b6b;

  --accent: #1a4be0;
  --accent-ink: #ffffff;
  --accent-soft: #e8edfd;

  --dark: #111111;
  --dark-2: #1b1b1b;
  --dark-ink: #ffffff;
  --dark-muted: #b9b9b9;
  --warn-ink: #ffb27a;

  /* 六個字級：小／本文／導言／節標／名目標／展示 */
  --fs-small: clamp(13px, 0.78rem + 0.1vw, 14px);
  --fs-body: clamp(16px, 0.95rem + 0.25vw, 18px);
  --fs-lead: clamp(20px, 1.15rem + 0.6vw, 26px);
  --fs-head2: clamp(20px, 0.9rem + 1.6vw, 40px);
  --fs-head: clamp(24px, 1rem + 2.2vw, 48px);
  --fs-display: clamp(34px, 1.1rem + 4.2vw, 100px);

  --measure: 40em;
  --gap: 8px;
  --edge: 12px;
  --pad: 24px;

  --font-sans: "Geist", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei",
    "Source Han Sans TC", system-ui, -apple-system, sans-serif;
  /* 等寬 token 只被 pre/code/kbd/samp 消費（見第 3 節的選擇器）。 */
  --font-mono: /* taste-skill-ignore: mono：只在 pre/code 內用 */ "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas,
    "Liberation Mono", monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.18s;
}

/* 3. Reset 與基礎 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 等寬只給真正的程式碼；其餘數字走路 text face 的等寬數字。 */
pre,
code,
kbd,
samp {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
}

p,
dd,
dt,
li {
  max-width: var(--measure);
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
figure,
pre {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 12px 18px;
  background: var(--dark);
  color: var(--dark-ink);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

/* 漸進增強：沒有 JS 時，被腳本揭露的節點照常顯示。 */
[hidden] {
  display: none !important;
}

/* 4. 板子：12 欄、8px 縫、12px 頁緣。每格只填色。 */
.board {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  margin-inline: var(--edge);
}

.t1 { grid-column: span 1; }
.t2 { grid-column: span 2; }
.t3 { grid-column: span 3; }
.t4 { grid-column: span 4; }
.t5 { grid-column: span 5; }
.t6 { grid-column: span 6; }
.t7 { grid-column: span 7; }
.t8 { grid-column: span 8; }
.t9 { grid-column: span 9; }
.t12 { grid-column: span 12; }
.t-start4 { grid-column: 4 / span 6; }

.tile {
  background: var(--surface);
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tile-dark {
  background: var(--dark);
  color: var(--dark-ink);
}

.tile-accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.tile-warn {
  background: var(--dark);
  color: var(--warn-ink);
}

.tile-flat {
  background: var(--surface-2);
}

.tile-ui {
  background: var(--surface-2);
  min-height: 220px;
}

.wrap {
  margin-inline: var(--edge);
}

/* 5. 導覽：一條素面橫桿：字標、幾條連結、一顆動作。 */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
}

.brand-name {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-inline-start: auto;
  font-size: var(--fs-small);
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  text-decoration: underline;
}

.lang-switch,
.menu-toggle {
  padding: 8px 10px;
  background: var(--surface);
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-small);
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

.menu-glyph {
  width: 1.3rem;
  height: 1.3rem;
}

.menu-glyph-x {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-glyph-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-glyph-x {
  display: block;
}

.mobile-menu {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  background: var(--dark);
  color: var(--dark-ink);
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-block: 8px;
}

.mobile-menu-link {
  padding: 14px 4px;
  color: inherit;
  text-decoration: none;
}

.mobile-menu-cta {
  margin-block: 8px;
  align-self: flex-start;
}

/* 6. 按鈕：一個形狀：方角實填，48px。 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  background: var(--surface-2);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: 500;
  text-align: start;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--dark);
}

.btn-on-accent {
  background: var(--accent-ink);
  color: var(--accent);
}

.btn-on-accent:hover {
  background: var(--dark);
  color: var(--dark-ink);
}

/* 次要動作在深底與強調底上需要一條邊才看得出來。這一條 1px 是控制項的
   外緣（不是拿來圍內容的框），這也是全頁唯一的描邊。 */
.btn-ghost {
  background: transparent;
  border: 1px solid currentColor; /* taste-skill-ignore: outlined-box */
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--ink);
}

.btn-ghost-on-accent {
  color: var(--accent-ink);
}

.btn-ghost-on-accent:hover {
  background: var(--accent-ink);
  color: var(--accent);
}

.btn-sm {
  min-height: 40px;
  padding: 8px 14px;
  font-size: var(--fs-small);
}

/* 7. 第一屏 */
.hero {
  padding-block: 8px 0;
}

.hero-board {
  align-items: stretch;
}

h1 {
  font-size: var(--fs-display);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}

.hero-sub {
  font-size: var(--fs-lead);
  line-height: 1.35;
  color: var(--dark-muted);
  margin-block-start: 18px;
}

.benefits {
  display: grid;
  gap: 10px;
  font-size: var(--fs-body);
  color: var(--dark-ink);
}

.benefits li {
  padding-inline-start: 16px;
  border-inline-start: 4px solid var(--accent);
}

.hero-lead {
  font-size: var(--fs-body);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* 8. 結果面板（產品介面本體，data-ui）：真的欄位、真的值。 */
.panel {
  background: var(--surface);
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-title,
.ui-title {
  font-size: var(--fs-small);
  color: var(--muted);
}

.tile-dark .ui-title,
.tile-warn .ui-title,
.tile-dark .panel-title,
.tile-warn .panel-title {
  color: var(--dark-muted);
}

.panel-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

[data-ui] .field {
  background: var(--bg);
  padding: 14px 16px;
}

[data-ui] .field-label {
  display: block;
  font-size: var(--fs-small);
  color: var(--muted);
}

[data-ui] .field-value {
  font-size: var(--fs-body);
  font-weight: 500;
}

[data-ui] .row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 12px 16px;
  background: var(--bg);
}

[data-ui] .row + .row {
  margin-block-start: 2px;
}

[data-ui] .row.is-active {
  background: var(--accent-soft);
}

[data-ui] .row-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 9em;
  color: var(--muted);
  font-size: var(--fs-small);
}

[data-ui] .row-value {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: var(--fs-body);
}

[data-ui] .row-value code,
[data-ui] .ui-readout code,
.ui-value code {
  background: none;
  padding: 0;
  font-size: var(--fs-body);
  font-variant-numeric: tabular-nums;
}

/* 行內程式碼（識別字、欄位名）要能在窄欄斷行，不把 pre 以外的地方撐寬。 */
.how-body code,
.note code,
.price-table code,
.tile code,
.snapshot code {
  overflow-wrap: anywhere;
}

.chip {
  padding: 2px 10px;
  font-size: var(--fs-small);
  background: var(--surface-2);
  color: var(--ink);
}

.chip-auto,
.chip-ok {
  background: var(--dark);
  color: var(--dark-ink);
}

.chip-alert {
  background: var(--accent);
  color: var(--accent-ink);
}

.confidence,
.sep,
.hint {
  font-size: var(--fs-small);
  color: var(--muted);
}

.panel-cap {
  margin-block-start: 12px;
  font-size: var(--fs-small);
  color: var(--muted);
}

.panel-foot {
  font-size: var(--fs-small);
  color: var(--muted);
}

/* 線路選擇器：頁面上那一件可以動手的事。沒有 JS 時晶片不存在，
   四條線的結果全部照常顯示。 */
.pickers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.picker {
  padding: 10px 14px;
  min-height: 44px;
  background: var(--bg);
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-small);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.picker:hover,
.picker[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

/* 介面片段裡的讀值表（欄位名與數字都是引擎值，兩語逐字相同）。
   列與列之間只用間距分，不畫框也不填色：一個資料片段的框已經由它所在的
   格子（data-ui）提供。 */
.ui-readout,
.snapshot {
  display: grid;
  gap: 2px;
}

.ui-readout > div,
.snapshot > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 10px 14px;
}

.ui-readout dt,
.snapshot dt {
  font-size: var(--fs-small);
  color: var(--muted);
  max-width: none;
}

.tile-dark .ui-readout dt,
.tile-warn .ui-readout dt {
  color: var(--dark-muted);
}

.ui-readout dd,
.snapshot dd {
  font-size: var(--fs-lead);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  max-width: none;
}

.ui-value {
  font-size: var(--fs-body);
}

/* 9. 四件事：左半淺色陳述格、右半深色列
   節與節之間留 40px：板子內部貼齊（8px），但標題前要有一口氣。 */
.section,
.band {
  padding-block: 40px;
}

.cell-light,
.cell-dark {
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cell-light {
  background: var(--surface);
}

.cell-dark {
  background: var(--dark);
  color: var(--dark-ink);
  gap: 8px;
}

h2 {
  font-size: var(--fs-head2);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

.sources-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sources-title .icon {
  width: 1em;
  height: 1em;
}

.section-lead {
  font-size: var(--fs-lead);
  line-height: 1.35;
}

.sources-lead {
  font-size: var(--fs-lead);
  line-height: 1.35;
}

.note {
  display: flex;
  gap: 10px;
  font-size: var(--fs-body);
  line-height: 1.6;
}

.note .icon {
  margin-block-start: 0.2em;
}

.note-alert {
  background: var(--warn-ink);
  color: var(--ink);
  padding: 16px;
  font-size: var(--fs-body);
}

.note-honest {
  color: var(--warn-ink);
  font-size: var(--fs-body);
}

.cell-dark .note {
  color: var(--dark-muted);
}

.cell-dark .card .note {
  background: var(--dark-2);
  padding: 12px 14px;
}

.ui-panel {
  background: var(--bg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 四張卡＝四列，兩種近黑輪替分列，不用線。 */
.card {
  padding: 20px;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card:nth-child(even) {
  background: var(--dark-2);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-icon {
  display: none;
}

.card h3 {
  font-size: var(--fs-lead);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-body {
  font-size: var(--fs-body);
  color: var(--dark-ink);
}

.how {
  background: var(--bg);
  color: var(--ink);
  padding: 0;
}

/* 收合的摺疊內容不參與版面。Chrome 對 content-visibility:hidden 的子樹仍會算出
   座標（只是不繪製），那些座標會疊到後面的章節上；任何以座標判斷「這段字在頁面
   哪一層」的量測都會把摺疊裡的文字當成頁面上的字。收合＝不排版，寫明白。 */
.how:not([open]) > .how-body {
  display: none;
}

.how > summary {
  padding: 12px 16px;
  cursor: pointer;
  font-size: var(--fs-small);
  max-width: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color var(--dur) var(--ease);
}

.how > summary::-webkit-details-marker {
  display: none;
}

.how > summary::before {
  content: "";
  width: 8px;
  height: 8px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transition: transform var(--dur) var(--ease);
}

.how[open] > summary::before {
  transform: rotate(90deg);
}

.how > summary:hover {
  background: var(--surface);
}

.how-body {
  padding: 4px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: var(--fs-body);
}

.how-inline {
  background: var(--surface);
}

.code-line,
.code-block {
  background: var(--dark);
  color: var(--dark-ink);
  padding: 12px 14px;
  overflow-x: auto;
}

.fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fields li {
  background: var(--surface-2);
  padding: 3px 8px;
  font-size: var(--fs-small);
  max-width: none;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.stats li {
  display: flex;
  flex-direction: column;
  max-width: none;
}

.stats strong {
  font-size: var(--fs-lead);
  font-variant-numeric: tabular-nums;
}

.stats span {
  font-size: var(--fs-small);
  color: var(--muted);
}

/* 10. 資料來源：格子放名字，一格兩倍寬在強調色上放標題 */
.tile-name {
  font-size: var(--fs-lead);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tile-body {
  font-size: var(--fs-body);
}

/* 11. 定價：放大字級的表 */
.price-wrap {
  margin-block: 8px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-body);
}

.price-table caption {
  text-align: start;
  font-size: var(--fs-small);
  color: var(--muted);
  padding-block-end: 10px;
  max-width: var(--measure);
}

.price-table th,
.price-table td {
  text-align: start;
  padding: 18px 16px;
  vertical-align: top;
  font-weight: 400;
}

.price-table thead th {
  font-size: var(--fs-lead);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.price-table tbody th {
  font-size: var(--fs-lead);
  font-weight: 700;
}

.price-table tbody td {
  font-size: var(--fs-lead);
  font-variant-numeric: tabular-nums;
}

/* 表頭一條色帶；身體各列不相間色：分列靠間距，填色的只有推薦方案那一列。 */
.price-table thead tr {
  background: var(--surface-2);
}

.price-table tbody tr.is-recommended {
  background: var(--accent);
  color: var(--accent-ink);
}

.price-table tbody tr.is-recommended code {
  color: inherit;
}

.price-table tfoot td {
  padding-block-start: 8px;
}

.price-table tfoot .btn {
  width: 100%;
}

.metering {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px var(--gap);
  margin-block: 8px;
}

.metering > div {
  padding-block: 16px;
}

.metering dt {
  font-size: var(--fs-body);
  font-weight: 700;
}

.metering dd {
  font-size: var(--fs-small);
  color: var(--muted);
}

.disclosure {
  display: flex;
  gap: 10px;
  font-size: var(--fs-small);
  color: var(--muted);
}

/* 12. 接入：中間一格動作格，兩側各一格 */
.connect-lead {
  font-size: var(--fs-body);
}

.connect-actions {
  margin-block-start: 8px;
}

/* 13. 上手：一條讀欄（how-it-works-run-in-column） */
.steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
  counter-reset: step;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-increment: step;
}

.step-title {
  font-size: var(--fs-body);
  font-weight: 700;
}

.step-title::before {
  content: counter(step) ".";
  margin-inline-end: 0.4em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.step-body,
.step-expect {
  font-size: var(--fs-body);
}

.step-expect {
  color: var(--muted);
}

.code {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-2);
  padding: 8px 14px;
}

.code-label {
  font-size: var(--fs-small);
  color: var(--muted);
}

.code-body {
  max-width: none;
  overflow-x: auto;
}

.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  min-height: 40px;
  background: var(--bg);
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-small);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.copy:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

/* 15. 頁尾：記號放大，欄位是板子的一列 */
.footer {
  margin-block-start: 16px;
  background: var(--dark);
  color: var(--dark-ink);
  padding-block: 40px;
}

.footer .board {
  gap: 24px 8px;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-mark {
  color: var(--accent);
}

.footer-mark svg {
  width: clamp(96px, 14vw, 220px);
  height: auto;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
}

.footer-col h2 {
  font-size: var(--fs-body);
  font-weight: 700;
  margin-block-end: 10px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: var(--fs-small);
}

.footer-col li {
  max-width: none;
}

.footer-base {
  margin-block-start: 32px;
  align-items: center;
}

.footer-base p {
  font-size: var(--fs-body);
  color: var(--dark-muted);
}

.footer-base .btn {
  width: 100%;
}

.footer-copy {
  font-weight: 700;
  color: var(--dark-ink);
}

/* 16. 動態層（tasteskill step 9）
   * signature move：結果面板像快門一樣從左緣開，內容 1.12 → 定。
   * 每一節的進場：格子的內容各自升起 24px（同一節內交錯）。
   * 控制項回饋：上面各元件的 transition。
   * 一件會動的圖：頁尾記號慢速漂移。
   * 只動 transform／opacity；reduced-motion 時全部拿掉、內容留著。 */
@media (prefers-reduced-motion: no-preference) {
  .panel {
    animation: cv-shutter 1.1s var(--ease) both;
  }

  .panel .panel-body {
    animation: cv-settle 1.1s var(--ease) both;
  }

  .footer-mark {
    animation: cv-drift 14s ease-in-out infinite;
  }

  html[data-motion] .reveal > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  }

  html[data-motion] .reveal.is-in > * {
    opacity: 1;
    transform: none;
  }

  html[data-motion] .reveal.reveal-d1 > * {
    transition-delay: 80ms;
  }

  html[data-motion] .reveal.reveal-d2 > * {
    transition-delay: 160ms;
  }
}

@keyframes cv-shutter {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes cv-settle {
  from { transform: scale(1.12); }
  to { transform: none; }
}

@keyframes cv-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* 17. 手機：同一塊板，兩欄 */
@media (max-width: 700px) {
  :root {
    --pad: 18px;
    --edge: 8px;
  }

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

  .t1, .t2, .t3, .t4, .t5, .t6, .t7, .t8, .t9, .t12,
  .t-start4 {
    grid-column: span 6;
  }

  .footer-col {
    grid-column: span 3;
  }

  .footer-base .t9,
  .footer-base .t1,
  .footer-base .t2 {
    grid-column: span 6;
  }

  .nav-inner {
    gap: 10px;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-inline-start: auto;
  }

  .nav-inner > .btn-sm {
    display: none;
  }

  .benefits li {
    padding-inline-start: 12px;
  }

  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table th,
  .price-table td {
    display: block;
    width: auto;
  }

  .price-table thead {
    display: none;
  }

  .price-table tbody tr {
    margin-block-end: 10px;
    padding: 6px 0;
  }

  .price-table tbody th {
    padding-block-end: 4px;
  }

  .price-table td {
    padding: 8px 16px;
  }

  .price-table td::before {
    content: attr(data-label);
    display: block;
    font-size: var(--fs-small);
    color: var(--muted);
  }

  .price-table tbody tr.is-recommended td::before {
    color: var(--accent-ink);
  }

  .price-table tfoot td {
    padding: 4px 0;
  }

  .metering {
    grid-template-columns: 1fr;
  }
}

/* 18. 平板：面板不再挨著文字，改成整寬排在下面 */
@media (min-width: 701px) and (max-width: 1023px) {
  .hero-board .t7,
  .hero-board .t5 {
    grid-column: span 12;
  }

  .hero-board .t4 {
    grid-column: span 6;
  }
}