/* 科啟官網：米白底、墨色字、抹茶綠是唯一的重點色（和練習系統同一個綠，也是 logo 那張學習卡的顏色）；General Sans＋Noto Sans TC。
   品牌規則在 docs/brand.md。插畫負責情緒、手機外框裡的練習系統畫面負責證明。 */
:root {
  --bg: #f6f6f1;
  --surface: #ecebe4;
  --surface-2: #e1e0d8;
  --ink: #16191a;
  --muted: #5e625f;
  --accent: #0d6b4e;
  --accent-hover: #0a5a41;
  --accent-soft: #dcefe5;
  --seal: #e0533d;
  --chart: #14845c;
  --accent-ink: #ffffff;
  --field: #16191a;
  --field-2: #23282a;
  --field-ink: #ffffff;
  --field-muted: #a9afab;
  --good: #11795a;
  --good-soft: #e3f3ec;
  --bad: #c2362f;
  --bad-soft: #fbe9e8;

  --font: "General Sans", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-mid: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.75rem, 1.2rem + 5.4vw, 6rem);

  --m: clamp(20px, 3.4vw, 48px);
  --max: 1440px;
  --section: clamp(96px, 11vw, 176px);
  --r: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.55; overflow-x: clip; -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
h1 .ph, h2 .ph, h3 .ph { display: inline-block; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 90; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--m); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 按鈕：一種形狀（膠囊） */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; cursor: pointer; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; transition: background-color .2s var(--ease), transform .2s var(--ease), color .2s; }
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: var(--surface); color: var(--ink); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: var(--accent-soft); }
.btn.big { min-height: 56px; padding: 0 30px; font-size: var(--step-body); }
.link { color: var(--accent); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.arrow::after { content: " →"; display: inline-block; transition: transform .2s var(--ease); }
.arrow:hover::after { transform: translateX(4px); }

/* ── 頁首：一條普通的列，捲動時固定在上方 ── */
.bar { position: sticky; top: 0; z-index: 40; background: var(--bg); transition: background-color .3s, color .3s; }
.bar.dark { background: var(--field); color: var(--field-ink); }
.bar .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .04em; font-size: var(--step-lead); text-decoration: none; white-space: nowrap; }
.wordmark img { width: 64px; height: 34px; transition: transform .3s var(--ease); }
.wordmark:hover img { transform: rotate(-6deg); }
.wordmark .lw, .bar.dark .wordmark .lk { display: none; }
.bar.dark .wordmark .lw { display: block; }
.nav { display: flex; gap: 26px; font-size: 1rem; font-weight: 500; }
/* 頁首：首頁捲到哪一章，就在選單旁邊寫那一章的名字（換章時淡入） */
.chapter { margin-right: auto; display: flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 600; color: var(--ink); white-space: nowrap; opacity: 0; translate: 0 6px; transition: opacity .35s var(--ease), translate .35s var(--ease), color .3s; }
.chapter::before { content: ""; width: 1px; height: 16px; background: var(--surface-2); /* taste-skill-ignore：頁首分隔 */ }
.chapter.on { opacity: 1; translate: none; }
.bar.dark .chapter { color: #fff; }
.bar.dark .chapter::before { background: #3a4043; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.bar.dark .nav a { color: var(--field-muted); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.bar.dark .nav a:hover, .bar.dark .nav a[aria-current] { color: #fff; }
.search-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 8px 0 16px; border: 0; border-radius: 999px; background: var(--surface); color: var(--muted); font: inherit; font-size: 1rem; cursor: pointer; transition: background-color .2s; }
.search-btn:hover { background: var(--surface-2); }
.bar.dark .search-btn { background: var(--field-2); color: var(--field-muted); }
.bar.dark .search-btn:hover { background: #222833; }
.search-btn .ico { display: none; }
.search-btn kbd { font: inherit; font-size: 14px; padding: 2px 8px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.bar.dark .search-btn kbd { background: var(--field); }
.bar .btn { min-height: 40px; padding: 0 18px; font-size: 1rem; gap: 0; }
/* 登入：次要的文字按鈕，和搜尋、主按鈕同高；深色頁首（.bar.dark）時改白字 */
.bar .login { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--ink); font-size: 1rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .2s; }
.bar .login:hover { background: var(--surface); }
.bar.dark .login { color: #fff; }
.bar.dark .login:hover { background: var(--field-2); }
.menu-btn { display: none; }
.menu-login { display: none; }  /* 手機選單裡的登入，桌機不顯示 */
@media (max-width: 900px) {
  .bar .wrap { gap: 10px; height: 60px; }
  .nav { display: none; }
  .wordmark { margin-right: auto; font-size: var(--step-body); }
  .search-btn { width: 40px; padding: 0; justify-content: center; }
  .chapter { display: none; }
  .search-btn .label, .search-btn kbd { display: none; }
  .search-btn .ico { display: block; }
  .menu-btn { display: inline-flex; width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--surface); color: inherit; cursor: pointer; align-items: center; justify-content: center; font: inherit; font-size: 14px; }
  .bar.dark .menu-btn { background: var(--field-2); }
  .bar .btn { padding: 0 14px; }
  .bar.open .nav { display: flex; flex-direction: column; gap: 0; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg); padding: 8px var(--m) 24px; box-shadow: 0 24px 40px rgba(11,13,18,.12); /* taste-skill-ignore：展開的選單 */ }
  .bar.open.dark .nav { background: var(--field); }
  .bar.open .nav a { padding: 14px 0; font-size: var(--step-lead); color: inherit; }
  .bar.open .nav .menu-login { display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 24px; padding: 0 20px; border-radius: 999px; background: var(--surface); font-size: var(--step-body); font-weight: 600; }
  .bar.open.dark .nav .menu-login { background: var(--field-2); color: #fff; }
}
@media (max-width: 420px) { .bar .btn .long { display: none; } .bar .wrap { gap: 6px; } .bar .login { padding: 0 8px; } }
@media (max-width: 340px) { .bar .login { display: none; } }  /* 最窄的手機放不下，登入改由選單打開 */

/* ── 搜尋（指令面板） ── */
.palette { /* taste-skill-ignore：浮在頁面上的對話框 */ width: min(640px, calc(100vw - 32px)); max-height: min(560px, calc(100svh - 96px)); padding: 0; border: 0; border-radius: 16px; background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px rgba(11,13,18,.28); /* taste-skill-ignore */ margin-top: 12vh; overflow: hidden; }
.palette::backdrop { background: rgba(11,13,18,.45); }
.palette form { display: flex; flex-direction: column; max-height: inherit; }
.palette input { width: 100%; border: 0; padding: 22px 24px; font: inherit; font-size: var(--step-body); background: var(--surface); color: var(--ink); }
.palette input:focus { outline: none; }
.results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.results li a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 16px; border-radius: 10px; text-decoration: none; }
.results li a span { color: var(--muted); font-size: 1rem; white-space: nowrap; }
.results li a[aria-selected="true"], .results li a:hover { background: var(--accent-soft); }
.results .empty { padding: 16px; color: var(--muted); }
.results .grp { padding: 12px 16px 4px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* ── 首頁：深色的第一屏，左邊是一句話，右邊是真的能作答的 App 畫面 ── */
.hero { padding-block: clamp(32px, 5vw, 80px) clamp(56px, 7vw, 112px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: center; min-height: calc(100svh - 68px - clamp(96px, 13vw, 208px)); }
.hero h1 { font-size: clamp(2.5rem, 1rem + 4.6vw, 5.25rem); line-height: 1.04; letter-spacing: -0.035em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line span { display: inline-block; }
.hero .lede { margin-top: 28px; max-width: 30em; font-size: var(--step-lead); line-height: 1.5; }
.hero .lede b { font-weight: 700; }
.hero .lede .say { box-shadow: inset 0 -.4em 0 var(--accent-soft); /* taste-skill-ignore：螢光筆底線，不是陰影 */ }
.finder { margin-top: 36px; position: relative; max-width: 560px; }
.finder label { display: block; font-size: 1rem; color: var(--field-muted); margin-bottom: 10px; }
.finder input { width: 100%; min-height: 56px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--field-2); color: #fff; font: inherit; font-size: var(--step-body); }
.finder input::placeholder { color: #7d8595; }
.finder input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.finder .results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20; background: var(--bg); color: var(--ink); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.35); /* taste-skill-ignore：下拉選單 */ max-height: 360px; }
.finder .results[hidden] { display: none; }
.hero .actions { margin-top: 28px; display: flex; gap: 12px 24px; align-items: center; flex-wrap: wrap; }

/* App 畫面片段 */
[data-ui] { font-family: var(--font); color: var(--ink); background: #fff; border-radius: 16px; font-size: 1rem; line-height: 1.45; }
.phone[data-ui] { background: #0b0d12; border-radius: calc(var(--pw) * .16); }
.qcard { padding: clamp(20px, 2.4vw, 32px); }
.qhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.pill.blue { background: var(--accent-soft); color: var(--accent); }
.qstem { margin-top: 16px; font-size: var(--step-body); line-height: 1.5; font-weight: 500; min-height: 3em; }
.qopts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.qopt { width: 100%; display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; min-height: 52px; padding: 10px 14px; border: 0; border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; text-align: left; cursor: pointer; transition: background-color .18s, transform .18s var(--ease); }
.qopt:hover { background: var(--surface-2); }
.qopt:active { transform: scale(.99); }
.qopt .k { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 14px; font-weight: 600; }
.qopt .tag { font-size: 14px; font-weight: 600; }
.qopt.right { background: var(--good-soft); }
.qopt.right .k { background: var(--good); color: #fff; }
.qopt.right .tag { color: var(--good); }
.qopt.wrong { background: var(--bad-soft); }
.qopt.wrong .k { background: var(--bad); color: #fff; }
.qopt.wrong .tag { color: var(--bad); }
.qopts.done .qopt { cursor: default; }
.qres { margin-top: 18px; min-height: 96px; }
.qres .msg { font-size: 1rem; }
.qres .msg b { font-weight: 600; }
.strip { margin-top: 12px; display: flex; gap: 2px; height: 30px; align-items: flex-end; }
.strip i { flex: 1; height: 10px; border-radius: 2px; background: var(--surface-2); transition: height .5s var(--ease); }
.strip i.on { height: 30px; background: var(--chart); border-radius: 4px 4px 0 0; }
.strip-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 14px; color: var(--muted); }
.qfoot { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.qfoot .btn { min-height: 40px; padding: 0 16px; font-size: 1rem; }

/* ── App 畫面片段的共用元件（內頁也用） ── */
.screen { padding: 28px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.screen .t1 { font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.screen h3 { font-size: var(--step-lead); letter-spacing: -0.01em; }
.kp-text { font-size: 14px; line-height: 1.65; }
.card-word { font-size: var(--step-mid); font-weight: 700; letter-spacing: .02em; line-height: 1.3; }
.card-word rt { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: .1em; }
.kp-text b { font-weight: 600; }
.kp-pit { font-size: 14px; background: var(--surface); padding: 12px 14px; border-radius: 10px; }
.hbars { display: grid; gap: 10px; }
.hbar { color: inherit; text-decoration: none; display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr) 3.2em; gap: 12px; align-items: center; font-size: 14px; }
.hbar .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .track { height: 14px; }
.hbar .track i { display: block; height: 100%; background: var(--chart); border-radius: 0 4px 4px 0; transform-origin: left; transition: transform 1s var(--ease) calc(var(--i, 0) * 70ms), background-color .2s; }
.hbar .v { text-align: right; font-weight: 600; }
.screen .foot-note { margin-top: auto; font-size: 14px; color: var(--muted); }


/* ── 手機外框：照 iPhone 15 的比例（機身 71.6×147.6mm、螢幕 393×852pt、狀態列 54pt、動態島 126×37pt） ──
   --pw 是機身寬度；邊框每邊 3.5%，螢幕寬 = 0.93 × --pw，螢幕高 = 螢幕寬 × 852 / 393 */
.phone { --pw: 280px; position: relative; width: var(--pw); flex: 0 0 auto; aspect-ratio: 1000 / 2086; padding: calc(var(--pw) * .035); border-radius: calc(var(--pw) * .165); background: #0b0d12; outline: 2px solid #2c313c; outline-offset: -2px; }
.phone .scr { position: relative; height: 100%; overflow: hidden; border-radius: calc(var(--pw) * .13); background: #fff; display: flex; flex-direction: column; }
.phone .scr::after { content: ""; position: absolute; left: 50%; bottom: calc(var(--pw) * .02); width: 36%; height: calc(var(--pw) * .012); transform: translateX(-50%); border-radius: 999px; background: #0b0d12; opacity: .85; z-index: 3; }
.phone .sb { flex: 0 0 auto; height: 6.34%; display: flex; justify-content: space-between; align-items: center; padding: 0 8.5% 0 11%; font-size: calc(var(--pw) * .042); font-weight: 600; color: #0b0d12; background: #fff; }
.phone .sb i { display: inline-block; width: calc(var(--pw) * .068); height: calc(var(--pw) * .032); border-radius: 3px; outline: 1.5px solid #0b0d12; outline-offset: 1px; position: relative; }
.phone .sb i::after { content: ""; position: absolute; inset: 1px 25% 1px 1px; background: #0b0d12; border-radius: 1px; }
.phone .island { position: absolute; top: calc(var(--pw) * .061); left: 50%; width: calc(var(--pw) * .298); height: calc(var(--pw) * .0876); transform: translateX(-50%); border-radius: 999px; background: #0b0d12; z-index: 4; }
.phone img { flex: 1 1 auto; min-height: 0; width: 100%; object-fit: cover; object-position: top; }
.phone .live { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px 16px 14px; display: flex; flex-direction: column; }
.phone .live .qcard { flex: 1 0 auto; display: flex; flex-direction: column; }
.phone .live .qfoot { margin-top: auto; padding-top: 14px; }
.phone .ahead { flex: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 10px 16px; font-size: 14px; color: var(--muted); border-bottom: 1px solid #eceee9; /* taste-skill-ignore：App 畫面 */ }
.phone .ahead b { color: var(--ink); font-size: 1rem; }
.phone .ahead span:last-child { text-align: right; }
.phone .atab { flex: 0 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); padding: 10px 6px 16px; font-size: 14px; color: var(--muted); text-align: center; border-top: 1px solid #eceee9; /* taste-skill-ignore：App 畫面 */ }
.phone .atab .on { color: var(--accent); font-weight: 600; }

/* ── 第一屏的兩支手機與浮動提示 ── */
.hero-art { position: relative; }
.hero-art .pic { display: block; width: 100%; height: auto; }
.float { position: absolute; z-index: 3; background: var(--field); color: #fff; border-radius: 14px; padding: 12px 16px; font-size: 14px; line-height: 1.35; display: flex; gap: 12px; align-items: center; animation: bob 6s ease-in-out infinite; }
.float b { display: block; font-size: var(--step-body); font-weight: 600; letter-spacing: -0.01em; }
.float span:last-child { color: var(--field-muted); }
.float b { color: #fff; }
.float .dot { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; font-size: 1rem; }
.float.f1 { left: -6%; top: 48%; }
.float.f2 { right: -2%; bottom: 4%; animation-delay: -3s; }
.float.f3 { left: 2%; top: 6%; animation-delay: -1.5s; }
.hero-art .pic { translate: calc(var(--mx, 0) * 8px) calc(var(--my, 0) * 6px); transition: translate .7s var(--ease); }
.hero-art .float { translate: calc(var(--mx, 0) * -22px) calc(var(--my, 0) * -16px); }
/* ── 首頁：每一段是一張換了顏色的紙，往下捲時從下面疊上來，看得出換了一個主題 ── */
.home .chap { position: relative; margin-top: -32px; border-radius: 32px 32px 0 0; }
.home .hero { padding-bottom: calc(clamp(56px, 7vw, 112px) + 32px); }
.home .story { background: #ffffff; }
.home .data { background: var(--accent-soft); }
.home .data .chartcard { background: #ffffff; }
.home .cover { background: var(--bg); padding-bottom: calc(var(--section) + 32px); }
.home .tryit { background: var(--field); padding-bottom: calc(var(--section) + 32px); }
.home .plans { background: var(--surface); padding-bottom: calc(var(--section) + 32px); }
.home .plans .plan-c:not(.rec) { background: #ffffff; }
.home .faq { background: #ffffff; padding-top: var(--section); padding-bottom: calc(var(--section) + 32px); }
.home .faq .acc details { background: var(--bg); }
.home .faq .acc details[open] { background: var(--accent-soft); }
.home .join { background: var(--accent-soft); padding-bottom: calc(clamp(80px, 9vw, 140px) + 32px); }
.home .story, .home .data { padding-bottom: calc(var(--section) + 32px); }
.home .foot { position: relative; margin-top: -32px; border-radius: 32px 32px 0 0; }
@media (max-width: 900px) {
  .home .chap, .home .foot { margin-top: -24px; border-radius: 24px 24px 0 0; }
}
/* 進來的那一章從稍微縮小、圓角大一點，跟著捲動長到滿版（瀏覽器支援捲動時間軸才有；不支援就直接是完成的樣子） */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .home .chap, .home .foot { transform-origin: 50% 0; animation: sheet-in linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    @keyframes sheet-in { from { scale: .93; border-radius: 56px 56px 0 0; } to { scale: 1; } }
  }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.trust { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.trust span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 1rem; }
.trust span b { color: var(--ink); font-weight: 600; margin-right: 6px; }

/* ── 數據：舊題比例 ── */
.data { background: var(--surface); padding-block: var(--section); }
.data .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.data h2 { font-size: var(--step-head); }
.data .kpi { margin-top: 32px; font-size: clamp(5rem, 3rem + 7vw, 10rem); font-weight: 700; line-height: .9; letter-spacing: -0.06em; color: var(--accent); }
.data .kpi small { font-size: .42em; letter-spacing: -0.02em; }
.data .kpi-cap { margin-top: 12px; font-size: var(--step-lead); font-weight: 500; max-width: 18em; }
.data .copy p.more { margin-top: 18px; color: var(--muted); max-width: 30em; }
.data .copy .link { display: inline-block; margin-top: 16px; }
.chartcard { padding: 28px 28px 22px; }
.chartcard .t1 { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.chartcard h3 { margin: 6px 0 20px; font-size: var(--step-lead); }
.chartcard .hbars { gap: 12px; }
.chartcard .hbar { grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr) 3em; font-size: 1rem; }
.chartcard .hbar .track { height: 18px; background: var(--surface); border-radius: 0 4px 4px 0; }
.chartcard .hbar.me .name, .chartcard .hbar.me .v { font-weight: 700; color: var(--accent); }
.chartcard .hbars { margin-inline: -10px; }
.chartcard a.hbar { padding: 6px 10px; border-radius: 8px; transition: background-color .18s; }
.chartcard a.hbar:hover, .chartcard a.hbar:focus-visible { background: var(--accent-soft); }
.chartcard a.hbar:hover .track i { background: var(--accent); }
.chartcard a.hbar:hover .name { color: var(--accent); }
.chartcard .foot-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ── 可以練的考試：三欄＋插圖 ── */
.cover { padding-block: var(--section); }
.cover h2 { font-size: var(--step-head); }
.cover .lede { margin-top: 16px; color: var(--muted); max-width: 34em; font-size: var(--step-body); }
.tracks { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.track-c { display: flex; flex-direction: column; padding: 28px; border-radius: 20px; background: var(--surface); text-decoration: none; transition: transform .3s var(--ease), background-color .3s; }
.track-c:hover { transform: translateY(-4px); background: var(--accent-soft); }
.track-c .art { height: 190px; display: flex; align-items: flex-end; justify-content: center; }
.track-c .art img { height: 190px; width: auto; max-width: 100%; object-fit: contain; transition: transform .4s var(--ease); }
.track-c:hover .art img { transform: translateY(-6px) rotate(-1.5deg); }
.track-c h3 { margin-top: 20px; font-size: var(--step-lead); }
.track-c p:not(.big) { margin-top: 10px; font-size: 1rem; line-height: 1.7; }
.track-c .big { margin-top: 6px; font-size: var(--step-mid); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.track-c .big small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.track-c ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; font-size: 1rem; }
.track-c li { display: flex; justify-content: space-between; gap: 12px; }
.track-c li span { color: var(--muted); }
.track-c .go { margin-top: auto; padding-top: 22px; color: var(--accent); font-weight: 600; }

/* ── 試一題：手機裡真的能作答 ── */
.tryit { background: var(--field); color: #fff; padding-block: var(--section); overflow: hidden; }
.tryit .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.tryit h2 { font-size: var(--step-head); }
.tryit .copy p { margin-top: 20px; font-size: var(--step-lead); color: var(--field-muted); max-width: 24em; }
.tryit .copy ul { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; font-size: var(--step-body); color: var(--field-muted); }
.tryit .copy li { display: flex; gap: 12px; align-items: baseline; }
.tryit .copy li b { color: #fff; font-weight: 600; }
.tryit .copy li::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; background: #3fbf8f; transform: translateY(-2px); }
.tryit .phone { --pw: 340px; margin-inline: auto; }
.tryit .qcard { padding: 0; background: transparent; border-radius: 0; }
.tryit .qstem { font-size: var(--step-body); min-height: 0; }
.tryit .qopt { font-size: 1rem; min-height: 48px; }
.tryit .qres { min-height: 0; }
.try-tabs { flex: 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 10px 16px 0; padding: 4px; border-radius: 999px; background: var(--surface); }
.try-tabs button { min-height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s; }
.try-tabs button[aria-selected="true"] { background: var(--field); color: #fff; }

/* ── 方案：三張卡 ── */
.plans { padding-block: var(--section); }
.plans .top { max-width: 44em; }
.plans h2 { font-size: var(--step-head); }
.plans .top p { margin-top: 16px; font-size: var(--step-lead); line-height: 1.5; }
.plans .calc { margin-top: 32px; }
.plancards { margin-top: 20px; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan-c { position: relative; display: flex; flex-direction: column; padding: clamp(24px, 2.2vw, 32px); border-radius: 20px; background: var(--surface); }
.plan-c.rec { background: var(--accent); color: #fff; }
.plan-c h3 { font-size: var(--step-lead); }
.plan-c .price { margin-top: 12px; font-size: var(--step-mid); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.plan-c .price small { display: block; margin-top: 6px; font-size: 1rem; font-weight: 500; letter-spacing: 0; opacity: .85; }
.plancards .price { font-size: clamp(1.75rem, 1.25rem + 1.2vw, 2.5rem); }
.plancards .amt { white-space: nowrap; }
.plan-c .eq { margin-top: 14px; font-size: 1rem; line-height: 1.5; color: var(--muted); }
.plan-c.rec .eq { color: #d9efe4; }
.plan-c ul { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 10px; font-size: 1rem; }
.plan-c li { display: flex; gap: 10px; }
.plan-c li::before { content: ""; flex: 0 0 11px; height: 6px; margin-top: .5em; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan-c.rec li::before { border-color: #b8f0d6; }
.plan-c .renew { margin: auto 0 16px; font-size: .9375rem; line-height: 1.5; color: var(--muted); }
.plan-c.rec .renew { color: #d9efe4; }
.plan-c .btn { margin-top: auto; }
.plan-c .renew + .btn { margin-top: 0; }
.plan-c.rec .btn { background: #fff; color: var(--accent); }
.plan-c.rec .btn:hover { background: var(--accent-soft); }
.plan-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-height: 26px; }
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
/* 新手體驗：方案卡上方的一行說明 */
.trial { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 18px 24px; border-radius: 16px; background: #ffffff; }
.trial p { font-size: 1rem; line-height: 1.6; }
.plans .fine { margin-top: 24px; color: var(--muted); font-size: 1rem; }

/* ── 常見問題：手風琴 ── */
.faq { padding-bottom: var(--section); }
.faq .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.faq h2 { font-size: var(--step-head); }
.faq .wrap > div > p { margin-top: 16px; color: var(--muted); }
.acc { display: grid; gap: 10px; }
.acc details { background: var(--surface); border-radius: 14px; padding: 0 22px; transition: background-color .2s; }
.acc details[open] { background: var(--accent-soft); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; font-weight: 600; font-size: var(--step-body); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: var(--step-lead); font-weight: 400; color: var(--accent); transition: transform .25s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc details p { padding-bottom: 20px; font-size: 1rem; line-height: 1.7; max-width: 44em; }

/* ── 報名：夜景照片上的表單＋一支手機 ── */
.join { position: relative; background: var(--accent-soft); color: var(--ink); overflow: hidden; padding-block: clamp(80px, 9vw, 140px); }
.join .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.join .pic { width: 100%; height: auto; }
.join h2 { font-size: clamp(2.5rem, 1rem + 4.6vw, 5.25rem); line-height: 1; letter-spacing: -0.04em; }
.join .copy > p { margin-top: 24px; font-size: var(--step-lead); line-height: 1.45; max-width: 26em; }
.jform { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: end; }
.jform label { display: grid; gap: 8px; font-size: 1rem; font-weight: 500; }
.jform input:not([type=checkbox]), .jform select { -webkit-appearance: none; appearance: none; width: 100%; min-height: 56px; padding: 0 18px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; }
.jform .btn { grid-column: 1 / -1; min-height: 56px; }
.jform .agree { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; font-weight: 400; font-size: 1rem; }
.jform .agree input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; flex: 0 0 20px; }
.jform .agree a { color: var(--accent); }
.jform .msg { grid-column: 1 / -1; min-height: 1.5em; font-size: 1rem; font-weight: 600; }
.hp { position: absolute; left: -9999px; }


/* ── 頁尾：黑底，最下面是整行的品牌名 ── */
.foot { background: var(--field); color: var(--field-ink); padding-top: clamp(56px, 6vw, 88px); }
.foot .cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; font-size: 1rem; }
.foot h3 { font-size: 1rem; font-weight: 600; }
.foot ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--field-muted); text-decoration: none; transition: color .2s; }
.foot a:hover { color: #fff; }
.foot .about { color: var(--field-muted); margin-top: 12px; max-width: 24em; }
.foot .mark { padding-top: clamp(48px, 6vw, 96px); }
.foot .mark img { display: block; width: min(100%, 880px); height: auto; }
.foot .legal { padding-block: 20px 28px; font-size: 1rem; color: var(--field-muted); }
.foot .legal span { display: block; max-width: 60em; }

/* ── 內頁 ── */
.page { padding-block: clamp(40px, 5vw, 72px) var(--section); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 1rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.page h1 { margin-top: 20px; font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.75rem); line-height: 1.06; letter-spacing: -0.035em; max-width: 16em; }
.page-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.page-head.with-phone { align-items: center; }
.page-head .actions { margin-top: 28px; display: flex; gap: 12px 24px; align-items: center; flex-wrap: wrap; }
.head-art { display: flex; justify-content: flex-end; }
.head-art .phone { --pw: 272px; transform: rotate(2deg); }
.head-art .pic { width: 100%; max-width: 520px; height: auto; }
.page-head.compact .head-art .phone { --pw: 190px; }
.page-head .screen { padding: 28px; }
.page-head .stack { display: grid; gap: 10px; }
.page-head .stack div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 18px; border-radius: 10px; background: var(--surface); }
.page-head .stack b { font-size: var(--step-mid); font-weight: 600; letter-spacing: -0.03em; }
.page-head .stack span { font-size: 1rem; color: var(--muted); white-space: nowrap; }
.page-head .stack b { text-align: right; }
.page .lede { margin-top: 22px; max-width: 34em; font-size: var(--step-lead); line-height: 1.5; }
.page h2 { margin-top: clamp(56px, 6vw, 96px); font-size: var(--step-mid); letter-spacing: -0.025em; }
.page h3 { margin-top: 28px; font-size: var(--step-lead); }
.prose { max-width: 42em; }
.prose p, .prose ul, .prose ol { margin-top: 18px; line-height: 1.75; }
.prose li + li { margin-top: 8px; }
.two-col { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.aside-box { position: sticky; top: 92px; margin-top: clamp(56px, 6vw, 96px); background: var(--surface); border-radius: var(--r); padding: 28px; }
.aside-box h2 { margin-top: 0; font-size: var(--step-lead); }
.aside-box p { margin-top: 10px; font-size: 1rem; color: var(--muted); }
.aside-box .btn { margin-top: 20px; width: 100%; }
.kv { margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 26px 28px; border-radius: 20px; background: var(--surface); }
.kv b { display: block; font-size: var(--step-mid); font-weight: 600; letter-spacing: -0.035em; line-height: 1; white-space: nowrap; }
.kv span { display: block; margin-top: 10px; font-size: 1rem; color: var(--muted); }
.src { margin-top: 24px; font-size: 1rem; color: #3d4350; max-width: 48em; }
table.t { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: var(--step-body); }
.t th, .t td { text-align: left; padding: 14px 16px; vertical-align: top; }
.t th { font-size: 1rem; font-weight: 600; color: var(--muted); }
.t tr:nth-child(even) td { background: var(--surface); }
.t td.n, .t th.n { text-align: right; white-space: nowrap; }
.t a { font-weight: 600; text-decoration: none; }
.t a:hover { color: var(--accent); }
.table-scroll { overflow-x: auto; }
.filters { margin-top: 36px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.chip { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s; }
.chip:hover { background: var(--surface-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.filters input { min-height: 40px; flex: 1 1 240px; max-width: 360px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--surface); font: inherit; font-size: 1rem; }
.paper-list { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.paper-list a { background: var(--surface); border-radius: 10px; padding: 14px 16px; text-decoration: none; display: flex; justify-content: space-between; gap: 10px; font-weight: 600; transition: background-color .18s, color .18s; }
.paper-list a span { font-weight: 400; color: var(--muted); }
.paper-list a:hover { background: var(--accent); color: #fff; }
.paper-list a:hover span { color: #cdeadd; }
.chart { margin-top: 28px; position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--surface-2); stroke-width: 1; }
.chart .grid text, .chart .xl { fill: var(--muted); font-size: 14px; font-family: var(--font); }
.chart .bar { fill: var(--chart); transform-box: fill-box; transform-origin: 50% 100%; transition: fill .2s, transform .9s var(--ease) calc(var(--i, 0) * 22ms); }
.chart g.col:hover .bar, .chart g.col:focus .bar { fill: var(--accent-hover); }
.chart g.col:focus { outline: none; }
.chart rect.hit { fill: transparent; }
.chart g.col { cursor: pointer; }  /* iOS Safari 只有可點的元素才會送出 click */
.chart .tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: 14px; padding: 8px 12px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); box-shadow: 0 10px 30px rgba(11,13,18,.25); /* taste-skill-ignore：提示框 */ }
.chart .tip[hidden] { display: none; }
.chart details { margin-top: 12px; font-size: 1rem; }
details:not([open]) > :not(summary) { display: none; }
.chart summary { cursor: pointer; color: var(--accent); font-weight: 600; }

/* 題目（考卷頁可以直接點選作答） */
.qs { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 1100px) { .qs.cols { grid-template-columns: 1fr 1fr; } }
.q { background: var(--surface); border-radius: 14px; padding: clamp(20px, 2.2vw, 28px); }
.q .no { font-size: 14px; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.q .no .res { font-weight: 600; }
.q .no .res.good { color: var(--good); }
.q .no .res.bad { color: var(--bad); }
.q .stem { margin-top: 8px; font-size: var(--step-body); font-weight: 500; line-height: 1.6; }
.q ol { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.q li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 8px 10px; border-radius: 10px; background: var(--bg); font-size: 1rem; transition: background-color .18s; }
.q li .k { width: 26px; height: 26px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.q.live li { cursor: pointer; }
.q.live li:hover { background: var(--surface-2); }
.q li.right, .show-answers .q li.ok { background: var(--good-soft); }
.q li.right .k, .show-answers .q li.ok .k { background: var(--good); color: #fff; }
.q li.wrong { background: var(--bad-soft); }
.q li.wrong .k { background: var(--bad); color: #fff; }
.q.done li { cursor: default; }
.q details { margin-top: 10px; }
.q summary { cursor: pointer; font-size: 1rem; font-weight: 600; color: var(--accent); display: inline-block; padding: 4px 0; }
.q .ans { margin-top: 4px; font-size: 1rem; }
.subject-head { margin-top: 56px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.subject-head h2 { margin-top: 0; }
.toolbar { position: sticky; top: 68px; z-index: 30; margin: 28px calc(-1 * var(--m)) 0; padding: 12px var(--m); background: var(--bg); display: flex; gap: 12px 20px; flex-wrap: wrap; align-items: center; }
.toolbar .score { margin-right: auto; }
@media (max-width: 900px) { .toolbar { top: 60px; } }
.score { font-size: 1rem; color: var(--muted); }
.score b { color: var(--ink); font-weight: 600; }
.heat-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-weight: 600; font-size: 14px; background: var(--surface-2); white-space: nowrap; }
.heat-tag.must { background: var(--accent); color: #fff; }
.locked td { color: var(--muted); }
.cta-strip { margin-top: clamp(56px, 6vw, 96px); background: var(--field); color: #fff; border-radius: 20px; padding: clamp(28px, 4vw, 56px); display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap; }
.cta-strip h2 { margin: 0; font-size: var(--step-mid); }
.cta-strip p { margin-top: 10px; max-width: 34em; color: var(--field-muted); }
.article-meta { margin-top: 18px; font-size: 1rem; color: var(--muted); }
.article-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.article-aside { position: sticky; top: 100px; margin-top: 20px; display: grid; justify-items: end; gap: 16px; text-align: right; }
.article-aside .phone { --pw: 250px; transform: rotate(2deg); }
.article-aside p { font-size: 1rem; color: var(--muted); max-width: 18em; }
.posts { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.posts a { display: flex; flex-direction: column; gap: 18px; text-decoration: none; height: 100%; }
.posts .pic { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; background: var(--surface); padding: 20px 20px 0; }
.posts .pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 10px 10px 0 0; transition: scale .5s var(--ease); }
.posts a:hover .pic img { scale: 1.04; }
.posts .txt { display: grid; gap: 8px; }
.posts .d { font-size: 14px; color: var(--muted); }
.posts b { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.01em; }
.posts a:hover b { color: var(--accent); }
@media (max-width: 1100px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .posts { grid-template-columns: minmax(0, 1fr); } }
.contact-aside { margin-top: 40px; display: grid; gap: 40px; }
.contact-aside .head-art { justify-content: center; }
.chapters { margin: 28px 0 0; padding-left: 1.4em; columns: 2; column-gap: clamp(32px, 6vw, 96px); }
.chapters li { padding: 8px 0; break-inside: avoid; line-height: 1.5; }
@media (max-width: 600px) { .article-grid h1 { font-size: var(--step-mid); } }
@media (max-width: 900px) { .article-grid { grid-template-columns: minmax(0, 1fr); } .article-aside { display: none; } .chapters { columns: 1; } }
.big-quote { margin: 32px 0 0; padding: 28px; background: var(--surface); border-radius: var(--r); font-size: var(--step-lead); line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; }
.form { margin-top: 40px; display: grid; gap: 16px; }
.form label { display: grid; gap: 8px; font-weight: 600; font-size: 1rem; }
.form input:not([type=checkbox]), .form select, .form textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 0; border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: var(--step-body); }
.form textarea { min-height: 160px; resize: vertical; }
.form .agree { display: flex; gap: 10px; align-items: center; font-weight: 400; font-size: 1rem; }
.form .agree input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.form .msg { min-height: 1.5em; font-weight: 600; }

/* ── 從答錯到記住：桌機是左邊文字捲過、右邊一支手機換畫面；手機版是可以左右滑的四張 ── */
.story { padding-block: var(--section); }
.story h2 { font-size: var(--step-head); }
.story-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.story-head p { margin-top: 16px; max-width: 30em; font-size: var(--step-lead); line-height: 1.5; }
.story-head .pic { width: 100%; max-width: 460px; height: auto; justify-self: end; }
.faq .pic { margin-top: 32px; width: 100%; max-width: 380px; height: auto; }
.story-body { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); }
.story-steps { list-style: none; margin: 0; padding: 0; }
.story-step h3 { font-size: var(--step-mid); letter-spacing: -0.03em; }
.story-step p { margin-top: 14px; font-size: var(--step-lead); line-height: 1.5; max-width: 20em; }
.story-step .shot { margin-bottom: 28px; }
.story-step .shot .phone { --pw: 240px; }
.story-stage, .story-dots { display: none; }
@media (min-width: 901px) {
  .js .story-step { min-height: 72svh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s var(--ease); }
  .js .story-step.on { opacity: 1; }
  .js .story-step .shot { display: none; }
  .js .story-step:first-child { min-height: 52svh; justify-content: flex-start; padding-top: 18svh; }
  .js .story-stage { display: flex; flex-direction: column; align-items: center; gap: 24px; position: sticky; top: calc(50svh - 360px + 34px); align-self: start; }
  .story-stage .phone { --pw: 330px; }
  .story-stage .stack { position: relative; flex: 1 1 auto; min-height: 0; }
  .story-stage .stack img { position: absolute; inset: 0; height: 100%; opacity: 0; scale: 1.03; transition: opacity .6s var(--ease), scale .9s var(--ease); }
  .story-stage .stack img.on { opacity: 1; scale: 1; }
  .story-progress { display: flex; gap: 6px; width: 160px; }
  .story-progress i { flex: 1; height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; position: relative; }
  .story-progress i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
  .story-progress i.on::after, .story-progress i.done::after { transform: none; }
}
@media (min-width: 901px) and (max-height: 820px) { .story-stage .phone { --pw: 290px; } .js .story-stage { top: calc(50svh - 318px + 34px); } }
@media (min-width: 901px) and (max-height: 720px) { .story-stage .phone { --pw: 250px; } .js .story-stage { top: calc(50svh - 276px + 34px); } }
@media (max-width: 900px) {
  .story-body { display: block; margin-top: 36px; }
  .story-steps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin-inline: calc(-1 * var(--m)); padding: 0 var(--m) 4px; scroll-padding-inline: var(--m); scrollbar-width: none; }
  .story-steps::-webkit-scrollbar { display: none; }
  .story-step { flex: 0 0 80%; scroll-snap-align: start; }
  .js .story-step[data-rise] { opacity: 1; transform: none; }   /* 橫向滑的卡片：還沒滑到的也要先畫好，不要滑過去才淡入 */
  .story-step h3 { font-size: var(--step-lead); }
  .story-step p { font-size: var(--step-body); }
  .js .story-dots { display: flex; gap: 6px; margin-top: 24px; }
  .story-dots button { flex: 1; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
  .story-dots i { display: block; width: 100%; height: 4px; border-radius: 2px; background: var(--surface-2); transition: background-color .3s; }
  .story-dots [aria-current="true"] i { background: var(--accent); }
}

/* ── 考期試算：深色的一塊，選考試和日期，下面三個數字跟著變 ── */
.calc { font-size: var(--step-body); background: var(--field); color: #fff; border-radius: 20px; padding: clamp(24px, 3vw, 36px); display: grid; gap: 24px; }
.calc-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; }
.calc label, .calc-j .field { display: grid; gap: 8px; font-size: 1rem; font-weight: 500; color: #d7dbe2; }
.calc select, .calc input, .calc-j input { -webkit-appearance: none; appearance: none; width: 100%; min-height: 56px; padding: 0 18px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; font-weight: 500; }
.calc select, .jform select { padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%230b0d12' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 20px center; }
.calc input::-webkit-date-and-time-value, .calc-j input::-webkit-date-and-time-value { text-align: left; }
.calc-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.calc-out b { display: block; font-size: var(--step-mid); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; color: #fff; white-space: nowrap; }
.calc-out b.tick { animation: tick .45s var(--ease); }
@keyframes tick { from { opacity: .2; transform: translateY(10px); } }
.calc-out span { display: block; margin-top: 8px; font-size: 1rem; color: var(--field-muted); }
.calc-note { font-size: 1rem; color: #d7dbe2; }
.page-head .calc-out { grid-template-columns: 1fr; gap: 16px; }
.page-head .calc-out div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.page-head .calc-out span { margin: 0; text-align: right; }
.page-head .calc-in { grid-template-columns: 1fr; }
@media (max-width: 900px) {
  .calc-in { grid-template-columns: minmax(0, 1fr); }
  .calc-out { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .calc-out div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
  .calc-out b { font-size: var(--step-mid); }
  .calc-out span { margin: 0; text-align: right; }
}

/* ── 內頁的區塊：每一塊都用滿整個寬度 ── */
.sec { margin-top: clamp(80px, 8vw, 136px); }
.sec-top { max-width: 44em; }
.page .sec-top h2, .page .sec > h2, .page .pair h2 { margin-top: 0; }
.page .pair h2.sub { margin-top: 56px; }
.pair .acc { margin-top: 24px; }
.pair .head-art { align-self: center; }
.sec-top p { margin-top: 14px; font-size: var(--step-lead); line-height: 1.5; }
.pair { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.advice { background: var(--field); color: #fff; border-radius: 20px; padding: clamp(24px, 3vw, 40px); }
.advice h2 { color: #fff; }
.advice p { margin-top: 16px; line-height: 1.7; color: #d7dbe2; }
.advice p b { color: #fff; font-weight: 600; }
.advice .link { display: inline-block; margin-top: 20px; color: #7fdcb6; }
.advice .fine { font-size: 1rem; color: var(--field-muted); }
.advice .acc { margin-top: 20px; }
.advice .acc details { background: var(--field-2); }
.advice .acc details[open] { background: #1f2630; }
.advice .acc summary::after { color: #7fdcb6; }
.calc-j { font-size: var(--step-body); line-height: 1.55; }
.calc-j .field { margin-top: 24px; }
.calc-j .out { margin-top: 20px; font-size: var(--step-lead); color: #fff; }
.calc-j .out .big-n { font-size: var(--step-mid); letter-spacing: -0.03em; color: #7fdcb6; }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; max-width: 34em; }
.ticks li { display: flex; gap: 12px; line-height: 1.6; }
.ticks li::before { content: ""; flex: 0 0 11px; height: 6px; margin-top: .55em; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.t tr { transition: background-color .15s; }
.t tr:has(a):hover td { background: var(--accent-soft); }
.meter { display: inline-block; width: 56px; height: 6px; margin-right: 10px; vertical-align: middle; border-radius: 3px; background: var(--surface-2); position: relative; overflow: hidden; }
.meter::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--chart); }
.filters .count { font-size: 1rem; color: var(--muted); }
.empty-note { margin-top: 32px; font-size: var(--step-lead); }
.feat-list { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px clamp(32px, 6vw, 96px); }
.page .feat-list h3 { margin-top: 0; font-size: var(--step-lead); letter-spacing: -0.02em; }
.feat-list p { margin-top: 12px; line-height: 1.7; }
@media (max-width: 900px) {
  .pair, .feat-list { grid-template-columns: minmax(0, 1fr); }
  .feat-list { gap: 32px; }
  .meter { display: none; }
  .paper-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paper-list a:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ── 考試總覽：考試清單（不放統計數字）＋怎麼練 ── */
.group-note { margin-top: 12px; max-width: 40em; font-size: var(--step-body); }
.exam-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.exam-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; padding: 12px 18px; border-radius: 12px; background: var(--surface); text-decoration: none; transition: background-color .18s, transform .18s var(--ease); }
.exam-list a:hover { background: var(--accent-soft); transform: translateX(4px); }
.exam-list b { font-weight: 600; }
.exam-list .tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.exam-list .tags span { font-size: 14px; color: var(--muted); white-space: nowrap; }
.exam-list .tags span + span::before { content: "・"; margin-right: 6px; color: var(--surface-2); }
.exam-list .tags .on { color: var(--accent); font-weight: 600; }
.exam-list .tags .soon { color: var(--muted); }
.how-row { margin-top: clamp(48px, 6vw, 96px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.how-row.rev .how-pic { order: 2; }
.how-pic { display: flex; justify-content: center; }
.how-pic .phone { --pw: 280px; }
.page .how-copy h3 { margin-top: 0; font-size: var(--step-mid); letter-spacing: -0.02em; }
.how-copy p { margin-top: 16px; max-width: 32em; font-size: var(--step-lead); line-height: 1.6; }
@media (max-width: 900px) {
  .exam-list { grid-template-columns: minmax(0, 1fr); }
  .exam-list a { min-height: 56px; }
  .how-row { grid-template-columns: minmax(0, 1fr); }
  .how-row.rev .how-pic { order: 0; }
  .how-pic .phone { --pw: 230px; }
}

/* ── 日檢：五個級數切換、翻面的學習卡 ── */
.levels { margin-top: 24px; display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--surface); width: fit-content; max-width: 100%; }
.levels a { display: flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; text-decoration: none; transition: background-color .2s, color .2s; }
.levels a b { font-weight: 700; font-size: var(--step-body); }
.levels a span { font-size: 14px; color: var(--muted); }
.levels a:hover { background: var(--surface-2); }
.levels a[aria-current] { background: var(--ink); color: #fff; }
.levels a[aria-current] span { color: var(--field-muted); }
.flips { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.flip { position: relative; display: block; width: 100%; height: 190px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; perspective: 900px; text-align: center; }
.flip .f, .flip .b { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; padding: 18px; border-radius: 16px; -webkit-backface-visibility: hidden; backface-visibility: hidden; transition: transform .7s var(--ease), opacity 0s linear .2s, background-color .2s; }
.flip .f { background: var(--surface); font-size: var(--step-mid); font-weight: 700; line-height: 1.3; }
.flip .f rt { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: .08em; }
.flip:hover .f { background: var(--surface-2); }
.flip .b { background: var(--accent); color: #fff; transform: rotateY(180deg); font-size: 1rem; line-height: 1.5; }
.flip .b b { font-size: var(--step-lead); }
.flip .b span:last-child { color: #cdeadd; }
/* iOS Safari 的 backface-visibility 不可靠：翻到一半時用 opacity 換面 */
.flip .b { opacity: 0; }
.flip[aria-pressed="true"] .f { transform: rotateY(-180deg); opacity: 0; }
.flip[aria-pressed="true"] .b { transform: none; opacity: 1; }
html:not(.js) .flip { height: auto; }
html:not(.js) .flip .f, html:not(.js) .flip .b { position: static; transform: none; opacity: 1; border-radius: 0; }
@media (max-width: 900px) {
  .levels { width: 100%; justify-content: space-between; }
  .levels a { flex: 1; flex-direction: column; align-items: center; gap: 0; padding: 8px 4px; }
  .levels a span { font-size: 14px; }
  .flips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flip { height: 170px; }
  .flip .f { font-size: var(--step-lead); word-break: keep-all; }
}

/* ── 內頁最後：深色一條，三支手機放練習系統的畫面 ── */
.band { background: var(--field); color: #fff; overflow: hidden; padding-block: clamp(80px, 9vw, 140px) 0; }
.band .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.band h2 { font-size: var(--step-head); }
.band .copy { padding-bottom: clamp(64px, 8vw, 120px); }
.band .copy > p { margin-top: 20px; font-size: var(--step-lead); line-height: 1.5; color: #d7dbe2; max-width: 24em; }
.band .actions { margin-top: 32px; display: flex; gap: 12px 24px; align-items: center; flex-wrap: wrap; }
.band .actions .link { color: #fff; }
.trio { display: flex; justify-content: center; align-items: flex-end; margin-bottom: -90px; }
.trio .phone { --pw: 250px; transition: translate .5s var(--ease); }
.trio .p1 { transform: rotate(-4deg); margin-right: -36px; margin-bottom: 40px; }
.trio .p2 { z-index: 2; --pw: 272px; }
.trio .p3 { transform: rotate(4deg); margin-left: -36px; margin-bottom: 40px; }
.trio .phone:hover { translate: 0 -12px; }
@media (max-width: 1100px) { .trio .phone { --pw: 200px; } .trio .p2 { --pw: 220px; } }
@media (max-width: 900px) {
  .band .wrap { grid-template-columns: minmax(0, 1fr); }
  .band .copy { padding-bottom: 8px; }
  .trio { margin-bottom: -70px; }
  .trio .phone { --pw: 118px; } .trio .p2 { --pw: 146px; }
  .trio .p1 { margin-right: -24px; margin-bottom: 20px; } .trio .p3 { margin-left: -24px; margin-bottom: 20px; }
}

/* 進場：只用 transform 與 opacity；沒有 JS 時內容照樣顯示 */
.js [data-rise] .t tr { opacity: 0; translate: 0 12px; transition: opacity .6s var(--ease), translate .6s var(--ease), background-color .15s; transition-delay: calc(var(--r, 0) * 35ms + 120ms); }
.js [data-rise].in .t tr { opacity: 1; translate: none; }
.js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-rise].in { opacity: 1; transform: none; }
.js .hero h1 .line span { transform: translateY(105%); transition: transform .9s var(--ease); }
.js .hero h1 .line + .line span { transition-delay: .11s; }
.js .hero.go h1 .line span { transform: none; }
.js .hero .after { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease) .45s, transform .7s var(--ease) .45s; }
.js .hero.go .after { opacity: 1; transform: none; }
.js .flowbar .seg { transform: scaleX(.2); transform-origin: left; opacity: 0; transition: transform 1s var(--ease), opacity .6s; transition-delay: calc(var(--i, 0) * 120ms); }
.js .flowbar.in .seg { transform: none; opacity: 1; }
.js .screen:not(.in) .hbar .track i { transform: scaleX(0); }
.js .chart:not(.in) .bar { transform: scaleY(0); }
.js .hero .hero-art .pic, .js .hero .float { opacity: 0; scale: .96; transition: opacity .9s var(--ease), scale 1.1s var(--ease), translate .7s var(--ease); }
.js .hero .hero-art .pic { transition-delay: .2s; }
.js .hero .float.f3 { transition-delay: .7s; } .js .hero .float.f1 { transition-delay: .85s; } .js .hero .float.f2 { transition-delay: 1s; }
.js .hero.go .hero-art .pic, .js .hero.go .float { opacity: 1; scale: 1; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rise], .js .hero h1 .line span, .js .hero .after, .js .flowbar .seg, .js .screen:not(.in) .hbar .track i, .js .chart:not(.in) .bar,
  .js .hero .hero-art .pic, .js .hero .float, .js [data-rise] .t tr { opacity: 1; transform: none; scale: none; translate: none; transition: none; }
  .float { animation: none; }
  .story-stage .stack img, .story-step, .flip .f, .flip .b, .story-progress i::after { transition: none !important; }
}

/* ── 平板與手機 ── */
@media (max-width: 1100px) {
  .jform { grid-template-columns: 1fr 1fr; }
  .jform label:first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 4rem); }
  .hero-art { margin: 8px auto 0; max-width: 520px; }
  .float { font-size: 14px; padding: 10px 12px; }
  .float b { font-size: 1rem; }
  .float.f1 { left: -2%; top: 40%; }
  .float.f2 { right: -2%; bottom: -4%; }
  .float.f3 { display: none; }
  .data .wrap, .tryit .wrap, .faq .wrap, .join .wrap, .story-head { grid-template-columns: minmax(0, 1fr); }
  .story-head .pic { justify-self: center; max-width: 320px; }
  .faq .pic { display: none; }
  .tracks { grid-template-columns: minmax(0, 1fr); }
  .tryit .phone { --pw: 330px; max-width: 100%; }
  .join .pic { max-width: 420px; margin: 0 auto; }
  .jform { grid-template-columns: minmax(0, 1fr); }
  .foot .cols { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .foot .mark { padding-top: 56px; }
  .two-col, .page-head { grid-template-columns: 1fr; }
  .aside-box { position: static; }
  .kv { grid-template-columns: 1fr 1fr; gap: 22px 16px; padding: 22px; }
  .head-art { display: none; }
  .head-art:has(> .pic) { display: flex; justify-content: center; }
  .t { font-size: 1rem; }
  .t .opt { display: none; }
  .t th, .t td { padding: 12px 10px; }
}
@media (max-width: 400px) {
  .hero-art .phone.front { --pw: 210px; }
  .hero-art .phone.back { --pw: 180px; }
}

/* ── 產品線頁（/finance/、/jlpt/）與首頁的「選你的考試」 ── */
.tracks { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.track-c .pitch { margin-top: 8px; font-weight: 600; color: var(--accent); }
.track-c.soon .go { color: var(--muted); }
.soon-tag { display: inline-flex; align-items: center; height: 26px; margin-left: 10px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: 0; vertical-align: middle; }
.line-hero .hero-art .pic { max-width: 520px; margin-inline: auto; }
.line .feats { background: #ffffff; padding-block: var(--section) calc(var(--section) + 32px); }
.line .feats h2, .line .lexams h2, .line .lhow h2 { font-size: var(--step-head); }
.feat-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.feat-c { padding: 32px; border-radius: 20px; background: var(--bg); }
.feat-c h3 { margin-top: 0; font-size: var(--step-lead); }
.feat-c p { margin-top: 10px; font-size: 1rem; line-height: 1.7; }
.line .lexams { background: var(--accent-soft); padding-block: var(--section) calc(var(--section) + 32px); }
.lexams .exam-list a { background: #ffffff; }
.lexams .exam-list a:hover { background: var(--bg); }
.lgroup { margin-top: 48px; }
.lgroup h3 { font-size: var(--step-lead); }
.lgroup .group-note { margin-top: 8px; color: var(--muted); }
.line .lhow { background: #ffffff; padding-block: var(--section) calc(var(--section) + 32px); }
.lhow .how-copy h3 { margin-top: 0; font-size: var(--step-mid); letter-spacing: -0.02em; }
.plan-rules { margin-top: 32px; padding: 32px; border-radius: 20px; background: #ffffff; }
.plan-rules h3 { font-size: var(--step-lead); }
.plan-rules .ticks { margin-top: 16px; }
/* 考試頁與日檢頁：這條線的訂閱（最低價起） */
.sub-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: 20px; background: var(--accent-soft); }
.page .sub-cta h2 { margin-top: 0; font-size: var(--step-mid); letter-spacing: -0.02em; }
.sub-cta p { margin-top: 12px; max-width: 36em; font-size: var(--step-body); line-height: 1.6; }
.sub-side { display: grid; gap: 6px; justify-items: start; }
.sub-side span { color: var(--muted); }
.sub-side .btn { margin-top: 10px; }
/* 方案總覽：每條線的四個訂閱，一列一段（桌機一列四欄，手機兩行） */
.subs { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.subs li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.2fr); grid-template-areas: "name price eq renew"; gap: 8px 28px; align-items: baseline; padding: 22px 28px; border-radius: 16px; background: #ffffff; }
.subs li.rec { background: var(--accent-soft); }
.subs-name { grid-area: name; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: var(--step-body); font-weight: 600; }
.subs-price { grid-area: price; font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.subs-price small { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.subs-eq { grid-area: eq; }
.subs-renew { grid-area: renew; color: var(--muted); }
/* /exams/：依產品線分組 */
.line-group { margin-top: clamp(32px, 4vw, 56px); padding: clamp(24px, 4vw, 56px); border-radius: 24px; background: #ffffff; }
.line-group .exam-list a { background: var(--bg); }
.line-group .exam-list a:hover { background: var(--accent-soft); }
.page .line-title { margin-top: 0; font-size: var(--step-head); }
.line-title a { color: inherit; text-decoration: none; }
.line-title a:hover { color: var(--accent); }
.line-pitch { margin-top: 12px; font-size: var(--step-lead); }
.line-pitch .link { font-size: 1rem; margin-left: 6px; white-space: nowrap; }
.line-group .sec { margin-top: 40px; }
.page .line-group .sec h3 { margin-top: 0; font-size: var(--step-lead); }
a.plain { color: inherit; text-decoration: none; }
a.plain:hover { color: var(--accent); }
@media (max-width: 1100px) {
  .plancards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.line-hero h1 { font-size: clamp(2.25rem, 0.8rem + 3.6vw, 4rem); }
@media (max-width: 900px) {
  .line-hero h1 { font-size: clamp(1.75rem, 8.2vw, 3rem); }
  .tracks, .feat-grid { grid-template-columns: minmax(0, 1fr); }
  .sub-cta { grid-template-columns: minmax(0, 1fr); }
  .subs li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "eq eq" "renew renew"; }
  .line-hero .hero-art .pic { max-width: 360px; }
}
@media (max-width: 600px) {
  .plancards { grid-template-columns: minmax(0, 1fr); }
}

/* 註冊收尾區（_join.html）：一顆「免費註冊」按鈕，直接連到註冊頁 */
.join .actions { margin-top: 36px; display: flex; gap: 12px 24px; align-items: center; flex-wrap: wrap; }
