
:root {
  --bg: #fbf7f8;
  --surface: #ffffff;
  --field: #f3ecef;
  --line: #e9e1e4;
  --ink: #17121a;
  --muted: #5f5860;
  --accent: #b8336a;
  --accent-press: #9c2a59;
  --accent-ink: #6b1d3e;
  --inverse: #17121a;
  --inverse-ink: #fbf7f8;
  --inverse-muted: #c9bfc4;

  --font: "DM Sans", "Noto Sans TC", system-ui, sans-serif;
  --t-xl: clamp(52px, 8vw, 128px);
  --t-l: clamp(36px, 3.6vw, 60px);
  --t-m: clamp(24px, 2.6vw, 40px);
  --t-body: 17px;
  --t-small: 15px;

  --margin: 32px;
  --gap: 24px;
  --section: 200px;
  --radius: 4px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 720px) { :root { --margin: 16px; --gap: 16px; --section: 120px; --t-body: 16px; --t-small: 15px; } }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--t-body); line-height: 1.75; overflow-x: hidden; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: #fff; }
.vh { position: absolute; 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; min-height: 48px; padding: 0 22px;
  background: var(--accent); color: #fff; border: 0; border-radius: var(--radius); font-weight: 600; font-size: var(--t-small);
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .2s var(--ease), background-color .2s ease;
}
.btn:hover { background: var(--accent-press); }
.btn:active { transform: scale(0.97); }
.btn.on-dark:focus-visible { outline-color: var(--inverse-ink); }
.tlink { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color .2s ease, opacity .2s ease; }
.tlink:hover { color: var(--accent-ink); }
.tlink:active { opacity: 0.7; }

/* ---------- 導覽列 ---------- */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px var(--margin); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; transition: opacity .2s ease; }
.wordmark svg { width: 22px; height: 22px; color: var(--accent); }
.wordmark small { font-size: var(--t-small); font-weight: 500; color: var(--muted); }
.wordmark:hover { opacity: 0.8; }
.wordmark:active { opacity: 0.6; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: var(--t-small); }
.nav-links a:not(.btn) { text-decoration: none; padding: 6px 0; color: var(--muted); transition: color .2s ease; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn):active { opacity: 0.7; }
.nav-links .btn { min-height: 44px; }
@media (max-width: 720px) { .nav-links .hide-s { display: none; } .nav-links { gap: 16px; } }

/* ---------- 首屏：句子被一格畫面切開，畫面是一條直走的膠卷，每格是學院的一個階段 ---------- */
.hero { position: relative; height: 100svh; min-height: 680px; overflow: hidden; }
.hero h1 { position: absolute; top: 50%; left: var(--margin); right: var(--margin); translate: 0 -50%; display: flex; justify-content: space-between; align-items: center; pointer-events: none; font-size: var(--t-l); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.hero h1 .half { display: block; overflow: clip; padding-bottom: 0.08em; }
.hero h1 .half > span { display: block; }
.hero h1 .b { text-align: right; }
.reel-window { --fh: calc(40vw * 9 / 16); --fgap: max(24px, calc((100svh - var(--fh)) / 2 - 60px)); position: absolute; left: 50%; top: 0; width: 40vw; height: 100%; translate: -50% 0; }
.reel { display: grid; gap: var(--fgap); padding-top: calc((100svh - var(--fh)) / 2); transition: transform 1s var(--ease); }
.frame { position: relative; height: var(--fh); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.reel-tabs { position: absolute; left: 50%; top: calc(50% + 40vw * 9 / 32 + 12px); translate: -50% 0; z-index: 2; display: flex; gap: 4px; padding: 4px; border-radius: 6px; background: var(--bg); }
.reel-tabs button { min-height: 36px; padding: 0 12px; border: 0; border-radius: var(--radius); background: transparent; color: var(--muted); font-size: var(--t-small); cursor: pointer; transition: color .2s ease, background-color .2s ease, transform .2s var(--ease); }
.reel-tabs button:hover { color: var(--ink); }
.reel-tabs button:active { transform: scale(0.96); }
.reel-tabs button[aria-selected="true"] { background: var(--field); color: var(--ink); font-weight: 600; }
.hero-note { position: absolute; left: var(--margin); top: calc(50% + var(--t-l) * 0.6 + 40px); max-width: 26ch; font-size: 18px; line-height: 1.7; }
.hero-note strong { font-weight: 600; }
@media (min-width: 1500px) { .hero-note { max-width: 30ch; } }

@media (max-width: 900px) {
  .hero { height: auto; min-height: 0; display: flex; flex-direction: column; padding: 100px 0 40px; }
  .hero h1 { position: static; translate: none; display: block; padding: 0 var(--margin); font-size: 9.6vw; }
  .hero h1 .b { text-align: left; margin-top: 4px; }
  .hero-note { position: static; order: 1; margin: 24px var(--margin) 0; max-width: 36ch; }
  .reel-window { --fh: min(calc((100vw - 2 * var(--margin)) * 3 / 4), 340px); --fgap: 16px; position: relative; order: 2; left: auto; translate: none; width: auto; height: var(--fh); margin: 32px var(--margin) 0; overflow: hidden; }
  .reel { padding-top: 0; }
  .reel-tabs { position: static; order: 3; translate: none; align-self: flex-start; margin: 12px var(--margin) 0; flex-wrap: wrap; }
  .reel-tabs button { min-height: 44px; }
}

/* ---------- 膠卷裡的產品畫面（data-ui：產品自己的邊框與字級） ---------- */
[data-ui] { font-size: 14px; line-height: 1.5; color: var(--ink); }
.ui { height: 100%; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); } /* taste-skill-ignore：data-ui 產品畫面自己的邊框 */
.ui-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); } /* taste-skill-ignore */
.ui-bar b { color: var(--ink); font-weight: 600; font-size: 14px; }
.ui-body { flex: 1; min-height: 0; padding: 14px 16px; display: grid; align-content: start; gap: 10px; }
.ui-row { display: flex; align-items: center; gap: 12px; }
.ui-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.ui-bubble { background: var(--field); border-radius: 10px; padding: 8px 12px; }
.ui-list { display: grid; gap: 4px; padding-left: 52px; list-style: decimal inside; color: var(--ink); }
.ui-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: auto; }
.ui-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 6px; border: 1px solid #d3cbcf; background: var(--surface); font-size: 13px; font-weight: 500; } /* taste-skill-ignore */
.ui-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.ui-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 13px; font-weight: 500; background: #fdf2f7; color: var(--accent-ink); white-space: nowrap; }
.ui-pill.ok { background: #dcfce7; color: #14532d; }
.ui-kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; }
.ui-kv dt { color: var(--muted); }
.ui-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.ui-steps li { padding: 2px 8px; border-radius: 999px; font-size: 13px; background: var(--field); color: var(--muted); }
.ui-steps li.done { background: #f8dbe8; color: var(--accent-ink); }
.ui-steps li.now { background: var(--accent); color: #fff; }
.ui-shot { position: relative; flex: 1; min-height: 0; border-radius: 6px; overflow: hidden; background: #2a2128; display: flex; align-items: center; justify-content: center; }
.ui-shot img { height: 100%; width: auto; }
.ui-shot .badge { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 4px; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; }
.ui-shot .sub { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; color: #fff; font-size: 13px; }
.ui-shot .sub span { background: rgba(0,0,0,.55); padding: 2px 8px; border-radius: 4px; }
.ui-url { font-weight: 600; color: var(--accent-ink); }
.ui-num { font-variant-numeric: tabular-nums; font-weight: 600; }
.ui-table { width: 100%; border-collapse: collapse; }
.ui-table td { padding: 6px 0; border-top: 1px solid var(--line); } /* taste-skill-ignore：真的表格 */
.ui-table td:last-child { text-align: right; }

/* ---------- 區段共用 ---------- */
.section { padding: var(--section) var(--margin) 0; }
.section h2 { font-weight: 700; letter-spacing: -0.03em; }
.big { font-size: var(--t-xl); line-height: 1.0; letter-spacing: -0.04em; font-weight: 700; }

/* ---------- 挑網址：標題就是輸入框 ---------- */
.pick h2 { font-size: var(--t-m); line-height: 1.2; }
.pick-line { display: flex; align-items: baseline; margin-top: 32px; font-size: var(--t-xl); line-height: 1.1; font-weight: 700; letter-spacing: -0.04em; }
.pick-line input {
  min-width: 0; width: var(--w, 7ch); max-width: 62vw; border: 0; background: transparent; padding: 0; outline: none;
  font-weight: 700; letter-spacing: -0.04em; color: var(--ink); caret-color: var(--accent);
}
.pick-mirror { position: absolute; visibility: hidden; white-space: pre; font-weight: 700; letter-spacing: -0.04em; }
.pick-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: var(--gap) 64px; margin-top: 48px; align-items: start; }
.pick-preview { min-height: 280px; }
.pick-preview .ui-shop { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; }
.pick-preview .ui-cover { aspect-ratio: 1; border-radius: 6px; background: #f8dbe8; display: grid; place-items: center; color: var(--accent-ink); font-weight: 700; font-size: 22px; }
.pick-line:focus-within { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: 2px; }
.pick-line .suffix { color: var(--muted); white-space: nowrap; }
.pick-answer { max-width: 560px; }
.pick-status { font-size: var(--t-body); }
.pick-status b { font-weight: 600; }
.pick-status.bad { color: #a11d23; }
.pick-answer .btn { margin-top: 20px; }
.pick-more { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: var(--t-body); }
.pick-more span { color: var(--muted); }
.pick-more button { background: none; border: 0; padding: 6px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; transition: color .2s ease; }
.pick-more button:hover { color: var(--accent-ink); }
.pick-more button:active { opacity: 0.7; }
@media (max-width: 1100px) {
  .pick-body { grid-template-columns: 1fr; }
  .pick-preview { max-width: 560px; min-height: 0; }
}
@media (max-width: 720px) {
  .pick-line { font-size: 10vw; flex-wrap: wrap; }
  .pick-line input { max-width: 100%; }
  .pick-body { margin-top: 28px; }
  .pick-more { gap: 8px; }
  .pick-more button { min-height: 44px; padding: 0 14px; background: var(--field); text-decoration: none; border-radius: var(--radius); }
}

/* ---------- 從開站到開課：一條放大的進度條 ---------- */
.stages h2 { font-size: var(--t-xl); line-height: 1.0; letter-spacing: -0.04em; margin-bottom: 64px; }
.bar { display: flex; gap: 6px; }
.seg { min-width: 12%; }
.seg-fill { height: 22vh; min-height: 150px; padding: 20px; border-radius: var(--radius); font-size: var(--t-m); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.seg:nth-child(1) .seg-fill { background: var(--accent-ink); color: #fff; }
.seg:nth-child(2) .seg-fill { background: var(--ink); color: #fff; }
.seg:nth-child(3) .seg-fill { background: var(--field); color: var(--ink); }
.seg p { margin-top: 16px; max-width: 22ch; font-size: var(--t-body); }
.seg p b { font-weight: 600; }
@media (max-width: 1000px) {
  .bar { flex-direction: column; }
  .seg { min-width: 0; }
  .seg-fill { height: auto; min-height: 72px; }
  .seg:nth-child(2) .seg-fill { min-height: 120px; }
  .seg:nth-child(3) .seg-fill { min-height: 260px; }
  .seg p { max-width: none; margin: 12px 0 16px; }
}

/* ---------- 功能：一條軸線，右邊掛畫面 ---------- */
.rows-head { display: grid; align-content: center; padding-left: 35%; }
.rows-head h2 { font-size: var(--t-xl); line-height: 1.0; letter-spacing: -0.04em; }
.rows-head p { margin-top: 32px; max-width: 34ch; }
.rows { display: grid; gap: 112px; margin-top: 48px; }
.row { display: grid; grid-template-columns: 35% minmax(0, 1fr) auto; align-items: start; gap: var(--gap); }
.row-text { grid-column: 2; max-width: 34ch; }
.row h3 { font-size: var(--t-m); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.row-text p { margin-top: 16px; }
.row figure { grid-column: 3; }
.row figcaption { margin-top: 8px; font-size: var(--t-small); color: var(--muted); }
.fig-avatars { width: 300px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fig-avatars img { width: 100%; aspect-ratio: 1; border-radius: var(--radius); background: #fff; object-fit: cover; }
.fig-studio { width: 340px; aspect-ratio: 3 / 2; }
.fig-mail { width: 260px; }
.fig-pay { width: 320px; aspect-ratio: 3 / 2; }
.fig-domain { width: 220px; aspect-ratio: 1; }
@media (max-width: 900px) {
  .rows-head { padding-left: 0; }
  .rows { gap: 72px; }
  .row { grid-template-columns: 1fr; }
  .row-text, .row figure { grid-column: 1; }
  .row figure { margin-top: 8px; }
  .row:nth-child(odd) figure { justify-self: start; }
  .row:nth-child(even) figure { justify-self: end; }
  .fig-avatars, .fig-studio, .fig-pay { width: 100%; }
  .fig-mail { width: 70%; }
  .fig-domain { width: 55%; }
}

/* ---------- 價格：整個方案是一句話 ---------- */
.price { margin-top: 160px; padding: 120px var(--margin); background: var(--field); }
.price h2 { font-size: var(--t-xl); line-height: 1.0; letter-spacing: -0.04em; }
.price .tag { background: var(--accent); color: #fff; padding: 0 0.15em; border-radius: var(--radius); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.price-foot { margin-top: 64px; display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.price-foot p { max-width: 46ch; font-size: 20px; line-height: 1.6; }
@media (max-width: 720px) {
  .price { padding: 96px var(--margin); }
  .price-foot { flex-direction: column; align-items: stretch; }
  .price-foot p { font-size: var(--t-body); }
}

/* ---------- 常見問題：大問題、答案在旁邊，全部打開 ---------- */
.faq { display: grid; gap: 56px; }
.qa { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: baseline; }
.qa h2, .qa h3 { grid-column: 1 / span 6; font-size: var(--t-m); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.qa h2 { color: var(--muted); font-weight: 700; }
.qa p { grid-column: 8 / span 5; max-width: 40ch; font-size: 18px; line-height: 1.75; }
@media (max-width: 720px) {
  .faq { gap: 56px; }
  .qa { grid-template-columns: 1fr; gap: 12px; }
  .qa h2, .qa h3, .qa p { grid-column: 1; }
}

/* ---------- 頁尾：句子裡的空格就是表單，下面是被切掉的名字 ---------- */
.foot { position: relative; overflow: hidden; margin-top: 160px; background: var(--inverse); color: var(--inverse-ink); padding: 140px var(--margin) 0; }
.foot-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.foot-top > div { grid-column: 1 / span 8; }
.foot form { font-size: var(--t-l); font-weight: 700; line-height: 1.3; letter-spacing: -0.03em; }
.blank {
  display: inline-block; vertical-align: baseline; width: 7em; height: 1.2em; padding: 0 0.2em; border: 0; border-radius: var(--radius);
  background: #2c2329; color: var(--inverse-ink); font-weight: 700; letter-spacing: -0.03em; font-size: 1em;
}
.blank::placeholder { color: #9b9096; }
.blank:focus-visible { outline: 2px solid var(--inverse-ink); outline-offset: 4px; }
.foot .go { display: inline-block; height: 1.2em; padding: 0 0.3em; border: 0; border-radius: var(--radius); background: var(--accent); color: #fff; font-size: 1em; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; cursor: pointer; transition: transform .2s var(--ease), background-color .2s ease; }
.foot .go:hover { background: var(--accent-press); }
.foot .go:active { transform: scale(0.97); }
.foot .go:focus-visible { outline-color: var(--inverse-ink); }
.foot-note { margin-top: 24px; color: var(--inverse-muted); font-size: var(--t-body); }
.foot-links { grid-column: 10 / span 3; display: grid; gap: 8px; align-content: start; font-size: var(--t-body); }
.foot-links a { text-decoration: none; color: var(--inverse-muted); padding: 4px 0; transition: color .2s ease; }
.foot-links a:hover { color: var(--inverse-ink); }
.foot-links a:active { opacity: 0.7; }
.foot-links a:focus-visible, .foot-legal a:focus-visible { outline-color: var(--inverse-ink); }
.foot-legal { margin-top: 160px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; font-size: var(--t-small); color: var(--inverse-muted); }
.foot-legal a { text-decoration: none; transition: color .2s ease; }
.foot-legal a:hover { color: var(--inverse-ink); }
.foot-name { width: 128vw; margin-left: calc(-1 * var(--margin)); margin-bottom: -9vw; color: var(--inverse-ink); }
@media (max-width: 900px) {
  .foot-top { grid-template-columns: 1fr; }
  .foot-top > div, .foot-links { grid-column: 1; }
}
@media (max-width: 720px) {
  .foot { padding-top: 96px; }
  .foot form { font-size: 9vw; }
  .blank { display: block; width: 100%; margin: 6px 0; }
  .foot-legal { margin-top: 96px; }
  .foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 40px; }
  .foot-name { width: 150vw; margin-bottom: -11vw; }
}

/* ---------- 動態：只動 transform 與 opacity；沒有 JS 或要求減少動態時全部直接顯示 ---------- */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .rise.in { opacity: 1; transform: none; }
.js .hero h1 .half > span { transform: translateY(105%); transition: transform .9s var(--ease); }
.js .hero h1 .b > span { transition-delay: .11s; }
.js .hero.ready h1 .half > span { transform: none; }
.js .hero .hero-note, .js .nav, .js .reel-tabs { opacity: 0; transition: opacity .6s ease .45s; }
.js .hero.ready .hero-note, .js .hero.ready .nav, .js .hero.ready .reel-tabs { opacity: 1; }
.caret { display: inline-block; width: 0.08em; height: 0.85em; margin-left: 0.04em; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pick-line:focus-within .caret { display: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rise, .js .hero h1 .half > span, .js .hero .hero-note, .js .nav, .js .reel-tabs { opacity: 1; transform: none; transition: none; }
  .caret { animation: none; }
  .reel { transition: none; }
}
