/* 毛伴 MAOPAL 產品官網
   品牌色:松綠 #14503A、金盞橘 #E0A23C、奶油白 #FCF9F1、米紙色 #F1EBDD、墨黑 #14241C
   70% 專業科技感、30% 溫暖:平面卡片、細框線、少量陰影只給手機外框,動畫只做淡入與小幅上移 */
:root {
  --pine: #14503A;
  --pine-deep: #0E3D2C;
  --pine-tint: #E2ECE5;
  --marigold: #E0A23C;
  --marigold-tint: #F7E8C9;
  --marigold-ink: #6E4B0E;
  --cream: #FCF9F1;
  --paper: #F1EBDD;
  --ink: #14241C;
  --text: #24342B;
  --muted: #536158;
  --surface: #FFFFFF;
  --line: rgba(20, 36, 28, .12);
  --line-strong: rgba(20, 36, 28, .22);

  --font: "Inter", "Noto Sans TC", "PingFang TC", "Heiti TC", "Microsoft JhengHei", sans-serif;

  --ease: cubic-bezier(.23, 1, .32, 1);
  --gutter: clamp(16px, 4.4vw, 40px);
  --max: 1200px;
  --header: 68px;
  --pad: clamp(64px, 8.6vw, 120px);
  --r-card: 18px;
  --r-panel: 28px;
  --phone-w: min(260px, 70vw);
  --shadow-card: 0 1px 2px rgba(20, 36, 28, .06), 0 6px 18px rgba(20, 36, 28, .06);
  --shadow-phone: 0 18px 40px rgba(20, 36, 28, .16), 0 2px 6px rgba(20, 36, 28, .08);
}
@media (min-width: 960px) { :root { --phone-w: 280px; } }

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: calc(var(--header) + 16px);
  background: var(--cream);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 400 16px/1.75 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  line-break: strict;
}
@media (min-width: 960px) { body { font-size: 17px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--pine-tint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; }
ul { margin: 0; padding: 0; }
li { list-style: none; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.nw { display: inline-block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--pine); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.center-text { text-align: left; }
.centered { text-align: center; }

/* ---------- 字級 ---------- */
.display { color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.h-xl { font-size: clamp(34px, 4.7vw, 64px); line-height: 1.22; }
.h-lg { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.3; }
.h-md { font-size: clamp(21px, 1.8vw, 24px); line-height: 1.45; }
.lead { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.8; color: var(--muted); }
.small { font-size: 14px; line-height: 1.7; color: var(--muted); }
.eyebrow {
  display: block;
  font: 600 13.5px/1.4 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--pine);
}
.eyebrow::before { content: ""; display: inline-block; vertical-align: middle; width: 18px; height: 2px; margin: -2px 10px 0 0; border-radius: 2px; background: var(--marigold); }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 12px; border: 1.5px solid transparent;
  font: 600 16px/1.2 var(--font);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 160ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: 10px; }
.btn-ink, .btn-primary { background: var(--pine); color: #fff; }
.btn-ghost { border-color: var(--line-strong); color: var(--pine); background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover, .btn-primary:hover { background: var(--pine-deep); }
  .btn-ghost:hover { border-color: var(--pine); background: rgba(20, 80, 58, .04); }
}
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btns.center { justify-content: flex-start; }
.textlink {
  color: var(--pine); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  text-decoration-color: rgba(20, 80, 58, .35);
  transition: text-decoration-color 200ms ease;
}
.textlink svg { display: inline-block; width: 16px; height: 16px; margin-left: 4px; vertical-align: -3px; transition: transform 200ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .textlink:hover { text-decoration-color: currentColor; }
  .textlink:hover svg { transform: translateX(3px); }
}

/* ---------- 頁首 ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(252, 249, 241, .96); border-bottom: 1px solid var(--line); }
.top .wrap { height: var(--header); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand b { display: block; font: 700 18px/1 var(--font); letter-spacing: .04em; }
.brand small { display: block; font: 600 10.5px/1 var(--font); letter-spacing: .22em; color: var(--muted); margin-top: 5px; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; font-size: 15.5px; font-weight: 500; padding: 8px 14px; border-radius: 10px; color: var(--text); transition: color 160ms ease, background-color 160ms ease; }
.nav a[aria-current="page"] { color: var(--pine); background: var(--pine-tint); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--pine); } }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; position: relative; margin-right: -8px; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 240ms var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.panel {
  position: fixed; inset: var(--header) 0 auto 0; z-index: 49;
  background: var(--cream); color: var(--ink);
  padding: 4px var(--gutter) 24px;
  border-bottom: 1px solid var(--line);
  display: grid;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.panel.open { opacity: 1; transform: none; pointer-events: auto; }
/* 收起時真的移除,選單連結不能被 Tab 鍵或螢幕閱讀器選到 */
.panel[hidden] { display: none; }
.panel a:not(.btn) { text-decoration: none; font-size: 18px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.panel a[aria-current="page"] { color: var(--pine); font-weight: 600; }
.panel .btn { margin-top: 18px; }
@media (max-width: 899px) {
  .nav, .top .desk { display: none; }
  .menu-btn { display: block; }
}
@media (min-width: 900px) { .panel { display: none; } }

/* ---------- 區段 ---------- */
.section { padding: var(--pad) 0; }
.section.flush-top { padding-top: 0; }
.band-paper { background: var(--paper); }
.head { max-width: 760px; margin: 0 0 clamp(36px, 4.6vw, 56px); }
.head .lead { margin-top: 18px; max-width: 36em; }
.head.centered { margin-inline: auto; }
.head.centered .lead { margin-inline: auto; }
.head .eyebrow { margin-bottom: 16px; }
.more { margin-top: 28px; }
.sheet { padding-top: 0; }

/* ---------- 手機外框:全站同一個尺寸 ---------- */
.phone {
  position: relative; width: var(--phone-w); flex: none;
  padding: 7px; border-radius: 42px;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px #2E3E35, var(--shadow-phone);
}
.phone .scr { position: relative; border-radius: 35px; overflow: hidden; aspect-ratio: 780 / 1688; background: var(--cream); }
.phone .scr img { width: 100%; height: 100%; object-fit: cover; }

/* 浮動小卡:手機旁的一則重點,內容取自同一張截圖 */
.float {
  position: absolute; z-index: 2;
  display: flex; gap: 12px; align-items: flex-start;
  width: max-content; max-width: 250px;
  padding: 14px 16px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  font-size: 14px; line-height: 1.5;
}
.float .fi { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--pine-tint); color: var(--pine); }
.float .fi.warm { background: var(--marigold-tint); color: var(--marigold-ink); }
.float .fi svg { width: 18px; height: 18px; }
.float b { display: block; color: var(--ink); font-weight: 600; font-size: 14.5px; }
.float small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

/* 產品展示舞台:米紙底圓角,手機置中 */
.stage {
  position: relative; display: flex; justify-content: center; align-items: center;
  padding: clamp(28px, 4vw, 48px) 16px;
  border-radius: var(--r-panel); background: var(--paper);
}
.band-paper .stage { background: var(--cream); }
.stage .float { left: clamp(8px, 2vw, 20px); bottom: clamp(20px, 6%, 56px); }
.stage .float + .float { left: auto; right: clamp(8px, 2vw, 20px); bottom: auto; top: clamp(28px, 12%, 88px); }
@media (max-width: 559px) {
  .stage .float { max-width: 210px; padding: 12px 14px; }
  .stage .float + .float { display: none; }
}

/* ---------- 左右展示(首頁核心功能、功能頁各區共用) ---------- */
.show { display: grid; gap: clamp(32px, 5vw, 48px); align-items: center; }
.show-copy .eyebrow { margin-bottom: 16px; }
.show-copy .lead { margin-top: 18px; max-width: 34em; }
.show-copy .note { margin-top: 22px; }
.show-copy .more { margin-top: 24px; }
.show + .show { margin-top: var(--pad); }
@media (min-width: 960px) {
  .show { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: clamp(48px, 6vw, 96px); }
  .show.flip { grid-template-columns: minmax(0, 500px) minmax(0, 1fr); }
  .show.flip .show-media { order: -1; }
  .show.wide { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: start; }
  .show.wide.flip { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); }
  .show.wide .show-media { position: sticky; top: calc(var(--header) + 32px); }
}

/* ---------- 卡片 ---------- */
.cards { display: grid; gap: 16px; }
@media (min-width: 720px) { .cards.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards.three { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card, .cards > li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 28px 26px 30px;
  transition: border-color 240ms ease;
}
/* 卡片不能點,滑過只淡淡加深框線,不浮起來假裝可以點 */
@media (hover: hover) and (pointer: fine) { .card:hover, .cards > li:hover { border-color: rgba(20, 80, 58, .35); } }
.card .ci { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--pine-tint); color: var(--pine); margin-bottom: 20px; }
.card .ci svg { width: 22px; height: 22px; }
.card h3, .cards > li h3 { font-size: clamp(19px, 1.6vw, 21px); line-height: 1.45; font-weight: 700; }
.card p, .cards > li p { margin-top: 8px; color: var(--muted); font-size: 15.5px; line-height: 1.75; }

/* ---------- 功能清單 ---------- */
.feats { display: grid; gap: 12px; margin-top: 32px; }
@media (min-width: 640px) { .feats.cols { grid-template-columns: 1fr 1fr; } }
.feat {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; align-content: start;
  padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
}
.band-paper .feat { background: var(--cream); }
.feat .fi { grid-row: span 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--pine-tint); color: var(--pine); }
.feat .fi svg { width: 20px; height: 20px; }
.feat h3 { font-size: 17px; line-height: 1.5; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.feat p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.feat .meta { font-size: 13.5px; color: var(--pine); margin-top: 2px; }

/* 狀態標籤:免費、Plus、合作診所、尚未開放 */
.badge { display: inline-flex; align-items: center; font: 600 12px/1 var(--font); letter-spacing: .02em; padding: 5px 8px; border-radius: 6px; white-space: nowrap; }
.b-free { background: var(--pine-tint); color: var(--pine); }
.b-plus { background: var(--marigold-tint); color: var(--marigold-ink); }
.b-clinic { background: #E4E9EE; color: #2F4656; }
.b-soon { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* 提醒、聲明 */
.note {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border-radius: 14px;
  background: var(--marigold-tint); color: var(--marigold-ink);
  font-size: 14.5px; line-height: 1.75;
}
.note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.note b { font-weight: 700; }
.note.quiet { background: var(--paper); color: var(--text); }
.band-paper .note.quiet { background: var(--cream); }

/* ---------- 首頁主視覺 ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 var(--pad); }
.hero-split { display: grid; gap: clamp(40px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; justify-items: start; }
.soon { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 1.4; color: var(--muted); padding: 7px 12px; border-radius: 999px; background: var(--paper); }
.soon svg { width: 14px; height: 14px; }
.soon span { margin-left: 4px; }
.hero h1 { margin-top: 22px; }
.hero .lead { margin-top: 22px; max-width: 30em; }
.hero .btns { margin-top: 34px; }
.hero-visual { position: relative; width: min(100%, 540px); aspect-ratio: 540 / 600; justify-self: center; }
.hero-photo { position: absolute; left: 0; top: 13%; width: 62%; margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 420 / 359; object-fit: cover; border-radius: 22px; }
.hero-visual .phone { position: absolute; right: 0; top: 0; width: 52%; padding: 6px; border-radius: 36px; }
.hero-visual .phone .scr { border-radius: 30px; }
.hero-visual .float { left: 3%; bottom: 9%; }
@media (min-width: 960px) {
  .hero-split { grid-template-columns: minmax(0, 1fr) minmax(0, 540px); }
  .hero-visual .phone { width: 280px; }
}
@media (max-width: 479px) {
  .hero-visual .float { left: 0; bottom: 4%; max-width: 200px; padding: 10px 12px; gap: 10px; }
  .hero-visual .float .fi { width: 30px; height: 30px; }
}

/* ---------- 首頁:品牌價值 ---------- */
.value-head { display: grid; gap: 20px; margin-bottom: clamp(36px, 4.6vw, 56px); }
.value-head .lead { max-width: 36em; }
@media (min-width: 960px) { .value-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: end; } }

/* ---------- 首頁:為什麼選擇毛伴(松綠底) ---------- */
.band-pine { background: var(--pine); color: #E6EFE9; }
.band-pine h2, .band-pine h3 { color: #fff; }
.band-pine :focus-visible { outline-color: var(--marigold); }
.why { display: grid; gap: 0; margin-top: clamp(36px, 4.6vw, 56px); border-top: 1px solid rgba(255, 255, 255, .18); }
.why li { padding: 28px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 18px; }
.why .ci { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: var(--marigold); }
.why .ci svg { width: 22px; height: 22px; }
.why h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.4; font-weight: 700; }
.why p { color: #C9D9CF; font-size: 16px; }
@media (min-width: 900px) {
  .why { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 20px; }
  .why li { display: block; padding: 32px 28px 34px; border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--r-card); }
  .why .ci { margin-bottom: 22px; }
  .why p { margin-top: 8px; }
}

/* ---------- 首頁:社群 ---------- */
.mini { display: grid; gap: 14px; margin-top: 28px; }
.mini li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 14px; align-items: start; }
.mini .fi { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface); color: var(--pine); border: 1px solid var(--line); }
.mini .fi svg { width: 18px; height: 18px; }
.mini h3 { font-size: 17px; font-weight: 700; line-height: 1.5; }
.mini p { color: var(--muted); font-size: 15px; }

/* ---------- 會員方案 ---------- */
.plans { display: grid; gap: 20px; }
@media (min-width: 860px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 30px 28px 32px; display: grid; align-content: start; }
.plan.plus { border: 1.5px solid var(--pine); }
.plan h3 { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.plan .price { font: 700 clamp(38px, 4.4vw, 50px)/1.05 var(--font); letter-spacing: -.02em; color: var(--ink); margin-top: 16px; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.plan .sub { color: var(--muted); font-size: 15px; margin-top: 8px; }
.yearly { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.yearly b { font-weight: 700; color: var(--ink); font-size: 17px; }
.plan ul { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 15.5px; line-height: 1.65; color: var(--text); }
.plan li svg { width: 18px; height: 18px; margin-top: 4px; color: var(--pine); stroke-width: 2; }
.table-sheet { margin-top: clamp(40px, 5vw, 64px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 8px clamp(16px, 3vw, 32px) 4px; overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.compare caption { text-align: left; padding: 18px 0 8px; font-size: 19px; font-weight: 700; color: var(--ink); }
.compare th, .compare td { padding: 14px 12px 14px 0; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.compare td { width: 26%; font-variant-numeric: tabular-nums; color: var(--muted); }
.compare td.p { color: var(--pine); font-weight: 600; }
.compare th[scope="row"] { font-weight: 500; color: var(--text); }
.compare svg { width: 18px; height: 18px; vertical-align: -3px; stroke-width: 2; }
.compare .no { color: #9AA39D; }
@media (max-width: 559px) { .compare th, .compare td { padding: 13px 8px 13px 0; } .compare td { width: 28%; } }
#plans .small { margin-top: 20px; }

/* ---------- 常見問題 ---------- */
.narrow-sheet { max-width: 860px; margin: 0 auto; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-size: 17.5px; line-height: 1.55; font-weight: 600; color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--pine); border-bottom: 2px solid var(--pine);
  transform: rotate(45deg); transition: transform 240ms var(--ease);
}
.faq details[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.faq .ans { padding: 0 44px 24px 0; color: var(--muted); display: grid; gap: 12px; }

/* ---------- 最終行動區、404 ---------- */
.cta-panel {
  display: grid; justify-items: center; text-align: center;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 64px);
  border-radius: var(--r-panel); background: var(--paper);
}
.cta-panel .mascot { width: clamp(120px, 14vw, 156px); margin-bottom: 20px; }
.cta-panel .lead { margin-top: 18px; max-width: 32em; }
.cta-panel .btns { margin-top: 32px; justify-content: center; }
.mailbox { margin-top: 20px; font-size: 14px; color: var(--muted); }
.mailbox a { color: var(--pine); overflow-wrap: anywhere; }
.notify-in { display: grid; justify-items: center; text-align: center; max-width: 680px; margin: 0 auto; }
.notify .mascot { width: clamp(150px, 18vw, 200px); margin-bottom: 24px; }
.notify .lead { margin-top: 18px; max-width: 30em; }
.notify .btns { margin-top: 30px; justify-content: center; }
.nf { padding-top: clamp(56px, 8vw, 96px); }

/* ---------- 子頁主視覺 ---------- */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); }
.page-hero .wrap { display: grid; justify-items: start; }
.page-hero .lead { margin-top: 20px; max-width: 36em; }
.page-hero .btns { margin-top: 32px; }
.page-hero .btns.center { justify-content: flex-start; }
.page-hero.compact { padding-bottom: clamp(32px, 4vw, 48px); }
.page-hero.centered .wrap { justify-items: center; }
.page-hero.centered .lead { margin-inline: auto; }
.page-hero.centered .btns, .page-hero.centered .jump { justify-content: center; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.jump a { text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); transition: border-color 200ms ease, color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .jump a:hover { border-color: var(--pine); color: var(--pine); } }

/* ---------- 功能頁:完整功能總覽 ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 28px; font-size: 14px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.overview { columns: 1; column-gap: 16px; }
@media (min-width: 720px) { .overview { columns: 2; } }
@media (min-width: 1080px) { .overview { columns: 3; } }
.ov { break-inside: avoid; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px 22px 14px; }
.ov h3 { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; padding-bottom: 12px; }
.ov h3 svg { width: 20px; height: 20px; color: var(--pine); }
.ov li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.55; }
.ov li > span:first-child { min-width: 0; }
.ov li small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.ov .bs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; flex: none; max-width: 52%; }
.ov li.off > span:first-child { color: var(--muted); }

/* ---------- 給動物醫院頁 ---------- */
.split { display: grid; gap: 44px; align-items: center; }
.split .lead { margin-top: 16px; }
.split-media { display: flex; justify-content: center; }
.flow { margin-top: 28px; display: grid; }
.flow li { padding: 18px 0; border-top: 1px solid var(--line); }
.flow li:last-child { border-bottom: 1px solid var(--line); }
.flow h3 { font-size: 17.5px; font-weight: 700; line-height: 1.5; }
.flow p { margin-top: 4px; color: var(--muted); font-size: 15.5px; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(48px, 7vw, 104px); } }

/* 法律頁 */
.legal { max-width: 860px; margin: 0 auto; }
.legal h2 { font-size: 20px; line-height: 1.5; margin: 36px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 1.2em; margin: 10px 0; display: grid; gap: 8px; }
.legal li { list-style: disc; }
.legal li::marker { color: var(--muted); }
.legal b { font-weight: 600; color: var(--ink); }

/* ---------- 頁尾 ---------- */
.foot { border-top: 1px solid var(--line); background: var(--cream); color: var(--muted); padding: 64px 0 36px; font-size: 15px; }
.foot-grid { display: grid; gap: 36px; }
.foot .brand { margin-bottom: 14px; }
.foot h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: .1em; color: var(--ink); font-weight: 700; }
.foot ul { display: grid; gap: 8px; }
.foot a { text-decoration: none; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .foot a:hover { color: var(--pine); } }
.foot .legal-row { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ---------- 動畫:淡入與小幅上移,只跑一次 ---------- */
.js .rise { opacity: 0; transform: translateY(12px); animation: rise 400ms var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms + 60ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .rise { opacity: 1; transform: none; }
}
#faq + #notify { padding-top: 0; }

/* AI 共同開發醫院(給動物醫院頁) */
.aip-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.aip-list li { border-radius: 16px; background: #F1EBDD; padding: 16px 18px; display: grid; gap: 4px; min-width: 0; color: #14241C; }
.aip-list li b { font-size: 17px; overflow-wrap: anywhere; }
.aip-list li span { font-size: 13.5px; color: #14503A; }
