/* ==========================================================================
   衛教說得通 — 對外介紹頁（未登入的首頁）與登入頁
   沿用 app.css 的色彩 token；只放這兩頁用到的版面
   ========================================================================== */
.lp { background: var(--bg); overflow-x: hidden; }
/* 小字對比：app.css 的 --muted 在米色底只有約 3.6:1，這兩頁改深一點（WCAG AA 4.5:1） */
.lp, .au { --muted: #5E686B; }
:root[data-theme="dark"] .lp, :root[data-theme="dark"] .au { --muted: #9AA5A4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lp, :root:not([data-theme="light"]) .au { --muted: #9AA5A4; } }
.lp-skip {
  position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px;
  background: var(--brand); color: var(--on-brand); font-weight: 700; transition: top .15s;
}
.lp-skip:focus { top: 12px; text-decoration: none; }
#main:focus { outline: none; }
.lp a:focus-visible, .lp summary:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-glow); border-radius: 8px; }
html:has(body.lp) { scroll-behavior: smooth; scroll-padding-top: 76px; }
.lp-wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.lp-wrap.narrow { width: min(760px, 100% - 40px); }
.lp-wrap.narrow-l { width: min(980px, 100% - 40px); }
br.m { display: none; }
.lp h1, .lp h2, .lp h3, .au h1, .au h2 { text-wrap: balance; }

/* ---------------------------------------------------------------- 導覽 */
.lp-nav {
  position: sticky; top: 0; z-index: 50; transition: background .2s, box-shadow .2s, border-color .2s;
  border-bottom: 1px solid transparent;
}
.lp-nav.scrolled, .lp-nav.open {
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
}
.lp-nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.lp-logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.lp-logo:hover { text-decoration: none; }
.lp-logo span { display: flex; flex-direction: column; line-height: 1.15; }
.lp-logo b { font-size: 19px; font-weight: 900; letter-spacing: .08em; }
.lp-logo small { font-size: 11px; color: var(--muted); letter-spacing: .1em; margin-top: 2px; }
.lp-links { display: flex; gap: 4px; margin-left: auto; }
.lp-links a { padding: 8px 12px; border-radius: 9px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.lp-links a:hover { background: var(--bg-2); color: var(--ink); text-decoration: none; }
.lp-links a[aria-current] { color: var(--brand-ink); background: var(--brand-soft); }
.lp-nav-cta { display: flex; align-items: center; gap: 6px; }
.lp-menu { display: none; }

/* ---------------------------------------------------------------- Hero */
.lp-hero { position: relative; padding: 56px 0 72px; }
.lp-hero::before {
  content: ""; position: absolute; inset: -68px 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 60% at 85% 20%, var(--brand-soft) 0%, transparent 70%),
    radial-gradient(40% 50% at 10% 90%, var(--bg-2) 0%, transparent 70%);
}
.lp-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--brand-ink);
  box-shadow: var(--shadow-1);
}
.lp-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.lp-hero h1 { margin: 0; font-weight: 900; }
.lp-h1-main { display: block; margin-top: 22px; font-size: clamp(36px, 5.2vw, 60px); line-height: 1.18; letter-spacing: .02em; }
.lp-hero h1 em {
  font-style: normal; color: var(--brand);
  background: linear-gradient(transparent 68%, color-mix(in srgb, var(--brand) 16%, transparent) 68%);
}
.lp-lead { margin-top: 22px; font-size: 17px; line-height: 1.85; color: var(--ink-2); max-width: 34em; }
.lp-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.lp-hero-cta .btn.lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 14px; gap: 8px; }
.lp-btn-line { background: var(--surface); }
.lp-hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--ink-2); }
.lp-hero-points li { display: flex; align-items: center; gap: 6px; }
.lp-hero-points svg { color: var(--ok); }

.lp-hero-art { position: relative; padding: 0 0 40px 28px; }
.lp-hero-img {
  border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-3); aspect-ratio: 1280 / 714;
  border: 6px solid var(--surface);
}
.lp-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* 浮在插圖上的介面示意卡 */
.lp-mock {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-3);
  padding: 14px 16px; font-size: 13px;
}
.lp-mock .k { font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .08em; }
.lp-mock-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.lp-dots { display: flex; gap: 4px; }
.lp-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.lp-mock-chat { position: absolute; left: -12px; bottom: 0; width: min(330px, 78%); }
.lp-bub { padding: 9px 12px; border-radius: 14px; line-height: 1.6; max-width: 92%; }
.lp-bub + .lp-bub { margin-top: 8px; }
.lp-bub.pt { background: var(--bg-2); color: var(--ink); border-bottom-left-radius: 4px; }
.lp-bub.me { background: var(--brand); color: var(--on-brand); margin-left: auto; border-bottom-right-radius: 4px; }
.lp-fb { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.lp-mock-score { position: absolute; right: -14px; top: -22px; width: 210px; }
.lp-bars { display: grid; gap: 8px; margin-top: 8px; }
.lp-bars div { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.lp-bars b { height: 8px; border-radius: 99px; background: var(--bg-2); position: relative; overflow: hidden; }
.lp-bars b::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--brand), #2A9D8F); }

/* 適用情境 */
.lp-uses { list-style: none; padding: 0; margin: 56px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lp-uses::before { content: "適用於"; width: 100%; text-align: center; font-size: 12.5px; font-weight: 700; letter-spacing: .2em; color: var(--muted); margin-bottom: 4px; }
.lp-uses li { padding: 7px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink-2); }

/* ---------------------------------------------------------------- 區塊共用 */
.lp-sec { padding: 96px 0; }
.lp-head { max-width: 720px; }
.lp-head.center { margin-inline: auto; text-align: center; }
.lp-kicker { font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--brand); }
.lp-sec h2, .lp-cta h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.35; font-weight: 900; margin-top: 10px; letter-spacing: .02em; }
.lp-sub { margin-top: 14px; font-size: 16px; color: var(--ink-2); line-height: 1.85; }
.lp-sub.left { max-width: 30em; }
.lp-fine { margin-top: 18px; font-size: 13px; color: var(--muted); }
.lp-fine.center { text-align: center; }

/* 痛點 */
.lp-pain { background: var(--surface); border-block: 1px solid var(--line); }
.lp-pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.lp-quote { margin: 0; padding: 28px 26px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); position: relative; }
.lp-quote::before {
  content: "“"; position: absolute; top: 6px; right: 18px; font-family: var(--serif); font-size: 72px; line-height: 1;
  color: var(--brand); opacity: .22;
}
.lp-quote blockquote { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.75; font-weight: 600; color: var(--ink); }
.lp-quote figcaption { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 14px; color: var(--ink-2); }

/* 功能 */
.lp-feat-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.lp-feat-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 600; }
.lp-feat-tabs a:hover { border-color: var(--line-2); text-decoration: none; box-shadow: var(--shadow-1); }
.lp-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.lp-dot.is-brand { background: var(--brand); } .lp-dot.is-voice { background: var(--voice); } .lp-dot.is-med { background: var(--med); } .lp-dot.is-violet { background: var(--violet); }
.lp-feat { scroll-margin-top: 96px; }
.lp-feat { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; margin-top: 80px; }
.lp-feat.flip .lp-feat-media { order: 2; }
.lp-feat-media { position: relative; }
.lp-feat-media > img { width: 100%; height: auto; border-radius: 24px; box-shadow: var(--shadow-2); aspect-ratio: 16 / 10; object-fit: cover; }
.lp-feat-media > img.sq { aspect-ratio: 16 / 11; object-position: center 40%; }
.lp-feat-copy h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; line-height: 1.4; margin-top: 14px; }
.lp-feat-copy > p { margin-top: 12px; font-size: 15.5px; color: var(--ink-2); line-height: 1.85; }
.lp-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.lp-tag.brand { background: var(--brand-soft); color: var(--brand-ink); }
.lp-tag.voice { background: var(--voice-soft); color: color-mix(in srgb, var(--voice) 82%, var(--ink)); }
.lp-tag.med { background: var(--med-soft); color: var(--med); }
.lp-tag.violet { background: var(--violet-soft); color: var(--violet); }
.lp-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 2px; }
.lp-list li { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.lp-list li:last-child { border-bottom: 1px solid var(--line); }
.lp-list b { color: var(--ink); font-weight: 600; }

.lp-mock-visits { position: absolute; right: -18px; bottom: -28px; width: 250px; }
.lp-mock-visits ol { list-style: none; padding: 0; margin: 10px 0 8px; display: grid; gap: 6px; }
.lp-mock-visits li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.lp-mock-visits li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.lp-mock-visits li.done::before { background: var(--brand); border-color: var(--brand); }
.lp-mock-visits li.now::before { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.lp-mock-visits li b { width: 3.5em; color: var(--ink); }
.lp-mock-visits p { font-size: 12px; color: var(--muted); line-height: 1.6; }

.lp-mock-heard { position: absolute; left: -18px; bottom: -28px; width: 260px; display: grid; gap: 4px; }
.lp-mock-heard .said, .lp-mock-heard .heard { padding: 9px 12px; border-radius: 12px; line-height: 1.6; }
.lp-mock-heard .said { background: var(--bg); }
.lp-mock-heard .heard { background: var(--voice-soft); color: var(--ink); font-weight: 600; }
.lp-mock-heard .k { display: block; margin-bottom: 2px; }
.lp-mock-heard .arrow { display: grid; place-items: center; color: var(--voice); }

.lp-mock-plain { position: absolute; right: -18px; bottom: -28px; width: 280px; display: grid; gap: 6px; }
.lp-mock-plain .row { padding: 8px 12px; border-radius: 12px; line-height: 1.6; }
.lp-mock-plain .before { background: var(--bg); color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 70%, transparent); }
.lp-mock-plain .after { background: var(--med-soft); color: var(--ink); font-weight: 600; }
.lp-mock-plain .k { display: block; text-decoration: none; margin-bottom: 1px; }

/* 怎麼練 */
.lp-how { background: var(--brand-ink); color: #EAF4F2; }
.lp-how .lp-kicker { color: #9ED8CF; }
.lp-how h2 { color: #fff; }
.lp-steps { list-style: none; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.lp-steps li {
  position: relative; padding: 26px 22px 24px; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
}
.lp-steps .n {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-weight: 900; font-size: 18px;
  background: #fff; color: #0B4F4A;
}
.lp-steps h3 { margin-top: 18px; font-size: 18px; color: #fff; }
.lp-steps p { margin-top: 8px; font-size: 14px; line-height: 1.8; color: #C5DEDA; }
.lp-steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 45px; right: -16px; width: 12px; height: 2px; background: rgba(255, 255, 255, .3);
}
:root[data-theme="dark"] .lp-how { background: #0E2A27; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lp-how { background: #0E2A27; } }

/* 比較 */
.lp-scroll-hint { display: none; }
.lp-cmp-wrap:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-glow); }
.lp-cmp-wrap { margin-top: 44px; overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-2); }
.lp-cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.lp-cmp th, .lp-cmp td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lp-cmp tbody tr:last-child th, .lp-cmp tbody tr:last-child td { border-bottom: 0; }
.lp-cmp thead th { font-size: 13px; color: var(--muted); font-weight: 700; letter-spacing: .04em; background: var(--surface-2); }
.lp-cmp tbody th { font-weight: 600; color: var(--ink); width: 30%; }
.lp-cmp .us { background: var(--brand-soft); }
.lp-cmp thead .us { color: var(--brand-ink); font-size: 15px; }
.lp-cmp span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.lp-cmp span::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: center / 12px no-repeat; }
.lp-cmp .yes { color: var(--ink); font-weight: 600; }
.lp-cmp .yes::before { background-color: var(--ok); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.lp-cmp .no::before { background-color: var(--bg-2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237B8588' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }
.lp-cmp .mid::before { background-color: var(--warn-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A86A12' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E"); }

/* 內容把關 */
.lp-trust { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.lp-trust-cards { display: grid; gap: 14px; }
.lp-src { display: flex; gap: 16px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.lp-src .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none; }
.lp-src .ic svg { width: 22px; height: 22px; }
.lp-src h3 { font-size: 17px; }
.lp-src p { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); line-height: 1.75; }
.lp-src.med { border-left: 4px solid var(--med); }
.lp-src.med .ic { background: var(--med-soft); color: var(--med); }
.lp-src.voice { border-left: 4px solid var(--voice); }
.lp-src.voice .ic { background: var(--voice-soft); color: var(--voice); }
.lp-src.safe { border-left: 4px solid var(--ok); }
.lp-src.safe .ic { background: var(--ok-soft); color: var(--ok); }

/* 主題 */
.lp-topics { background: var(--surface); border-block: 1px solid var(--line); }
.lp-topic-grid { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.lp-topic-grid li.custom { grid-column: span 2; aspect-ratio: auto; }
.lp-topic-grid li.custom img { position: absolute; inset: 0; }
.lp-topic-grid li { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 1; background: var(--bg-2); }
.lp-topic-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.lp-topic-grid li:hover img { transform: scale(1.05); }
.lp-topic-grid span {
  position: absolute; left: 10px; bottom: 10px; padding: 4px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--ink); backdrop-filter: blur(6px);
}
.lp-topic-grid li.custom span { background: var(--brand); color: var(--on-brand); }

/* 適合誰 */
.lp-who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.lp-who-card { padding: 14px 14px 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.lp-who-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 25%; border-radius: 14px; }
.lp-who-card h3 { margin: 18px 10px 0; font-size: 18px; }
.lp-who-card p { margin: 8px 10px 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.8; }

/* FAQ */
.lp-faq .lp-head { margin-bottom: 36px; }
.lp-faq details { border-bottom: 1px solid var(--line); }
.lp-faq details:first-of-type { border-top: 1px solid var(--line); }
.lp-faq summary {
  list-style: none; cursor: pointer; padding: 20px 4px; font-size: 16.5px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand); transition: transform .2s; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq summary:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-glow); border-radius: 8px; }
.lp-faq details p { padding: 0 4px 22px; color: var(--ink-2); font-size: 15px; line-height: 1.85; }

/* CTA */
.lp-cta { padding: 0 0 96px; }
.lp-cta-in {
  text-align: center; padding: 64px 32px; border-radius: 32px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(80% 120% at 100% 0%, #13867C 0%, transparent 60%), radial-gradient(60% 100% at 0% 100%, #073B37 0%, transparent 55%), #0B4F4A;
}
.lp-cta-in img { margin: 0 auto; background: #fff; border-radius: 16px; padding: 8px; box-sizing: content-box; }
.lp-cta h2 { color: #fff; margin-top: 22px; }
.lp-cta p { margin-top: 10px; color: #CFE6E2; font-size: 16px; }
.lp-btn-light { margin-top: 28px; background: #fff; color: #0B4F4A; border-color: #fff; height: 52px; padding: 0 28px; font-size: 16px; gap: 8px; }
.lp-btn-light:hover { background: #F2FAF8; border-color: #F2FAF8; }

/* 頁尾 */
.lp-foot { border-top: 1px solid var(--line); background: var(--surface); }
.lp-foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 32px; padding: 56px 0 36px; }
.lp-foot-brand p.lp-foot-name { margin-top: 8px; font-size: 13px; color: var(--muted); }
.lp-foot-brand p { margin-top: 14px; font-size: 14px; color: var(--ink-2); line-height: 1.8; max-width: 26em; }
.lp-foot nav { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.lp-foot-h { font-size: 13px; letter-spacing: .12em; color: var(--muted); margin-bottom: 4px; }
.lp-foot nav a { color: var(--ink-2); }
.lp-foot nav a:hover { color: var(--brand); }
.lp-foot-fine { padding: 20px 0 32px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* 手機底部登入列 */
.lp-sticky { display: none; }

/* 進場動畫 */
.anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.anim .reveal.in { opacity: 1; transform: none; }
.lp-pain-grid .reveal:nth-child(2), .lp-steps .reveal:nth-child(2), .lp-who .reveal:nth-child(2) { transition-delay: .08s; }
.lp-pain-grid .reveal:nth-child(3), .lp-steps .reveal:nth-child(3), .lp-who .reveal:nth-child(3) { transition-delay: .16s; }
.lp-steps .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------------------------------------------------------------- 響應式 */
@media (max-width: 1020px) {
  .lp-links a { padding: 8px 8px; font-size: 14px; }
  .lp-hero-in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .lp-hero-art { max-width: 640px; }
  .lp-feat, .lp-trust { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .lp-feat.flip .lp-feat-media { order: 0; }
  .lp-steps { grid-template-columns: repeat(2, 1fr); }
  .lp-topic-grid { grid-template-columns: repeat(4, 1fr); }
  .lp-steps li::after { display: none; }
}
@media (max-width: 820px) {
  .lp-menu { display: inline-flex; }
  .lp-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
  }
  .lp-nav.open .lp-links { display: flex; }
  .lp-links a { padding: 13px 8px; font-size: 15.5px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .lp-pain-grid, .lp-who { grid-template-columns: minmax(0, 1fr); }
  .lp-foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-foot-brand { grid-column: 1 / -1; }
  .lp-sticky {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
    padding: 10px 10px 10px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
    box-shadow: var(--shadow-3); font-size: 14px; font-weight: 600; color: var(--ink);
    transform: translateY(140%); transition: transform .25s ease;
  }
  .lp-sticky.on { transform: none; }
  .lp-foot-fine { padding-bottom: 96px; }
}
@media (max-width: 600px) {
  .lp-wrap, .lp-wrap.narrow { width: calc(100% - 32px); }
  br.m { display: inline; }
  .lp-nav-in { height: 60px; gap: 12px; }
  .lp-links { top: 60px; }
  .lp-nav-cta .btn.primary { height: 38px; padding: 0 14px; font-size: 14px; }
  .lp-logo small { display: none; }
  .lp-hero { padding: 28px 0 64px; }
  .lp-lead { font-size: 16px; }
  .lp-hero-cta .btn.lg { flex: 1 1 100%; justify-content: center; }
  .lp-hero-art { padding: 28px 0 0; }
  .lp-hero-img { border-radius: 20px; border-width: 4px; }
  .lp-mock-score { position: relative; right: auto; top: auto; width: auto; margin-top: -16px; margin-inline: 12px; display: none; }
  .lp-mock-chat { position: relative; left: auto; bottom: auto; width: auto; margin: -36px 12px 0; }
  .lp-sec { padding: 72px 0; }
  .lp-feat { margin-top: 64px; gap: 28px; }
  .lp-feat-media > img { border-radius: 18px; }
  .lp-mock-visits, .lp-mock-heard, .lp-mock-plain { position: relative; left: auto; right: auto; bottom: auto; width: auto; margin: -28px 12px 0; }
  .lp-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .lp-steps { grid-template-columns: minmax(0, 1fr); }
  .lp-topic-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .lp-topic-grid li.custom { aspect-ratio: 2 / 1; }
  .lp-cta { padding-bottom: 64px; }
  .lp-cta-in { padding: 48px 20px; border-radius: 24px; }
  .lp-uses { margin-top: 40px; gap: 8px; }
  .lp-uses li { padding: 6px 12px; font-size: 13px; }
  .lp-feat-tabs { justify-content: center; gap: 8px 6px; }
  .lp-feat-tabs a { flex: none; padding: 7px 13px; font-size: 13.5px; min-height: 40px; display: inline-flex; align-items: center; }
  .lp-nav-cta .btn { min-height: 40px; }
  .lp-cmp th, .lp-cmp td { padding: 13px 12px; font-size: 13.5px; }
  .lp-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; padding-top: 44px; }
  .lp-foot nav { gap: 0; }
  .lp-foot nav a { min-height: 40px; display: flex; align-items: center; }   /* 12/01 QA：手機頁尾連結點擊目標 ≥40px */
  .lp-btn-light { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.lp) { scroll-behavior: auto; }
  .lp-topic-grid img { transition: none; }
  .lp-sticky { transition: none; }
}

/* ==========================================================================
   登入頁
   ========================================================================== */
.au { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 560px); background: var(--surface); }
.au-side {
  position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column; padding: 40px clamp(32px, 5vw, 64px);
  background: radial-gradient(70% 60% at 100% 0%, #13867C 0%, transparent 60%), radial-gradient(60% 60% at 0% 100%, #073B37 0%, transparent 55%), #0B4F4A;
}
.au-side .lp-logo { color: #fff; }
.au-side .lp-logo small { color: #BFE0DB; }
.au-side-body { margin: auto 0; max-width: 520px; padding: 40px 0; }
.au-side h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.3; font-weight: 900; letter-spacing: .02em; }
.au-side h2 em { font-style: normal; color: #9ED8CF; }
.au-side-body > p { margin-top: 16px; color: #CFE6E2; font-size: 16px; line-height: 1.85; }
.au-art { margin-top: 36px; border-radius: 22px; overflow: hidden; border: 5px solid rgba(255, 255, 255, .14); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .5); aspect-ratio: 16 / 10; }
.au-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.au-quote { margin-top: 22px; font-family: var(--serif); font-size: 16px; line-height: 1.75; color: #EAF4F2; }
.au-quote small { font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: #A9CFC9; margin-left: 4px; }
.au-quote span { display: block; margin-top: 6px; font-family: var(--sans); font-size: 13px; color: #A9CFC9; }

.au-main { display: flex; flex-direction: column; padding: 28px clamp(24px, 5vw, 64px) 32px; }
.au-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); align-self: flex-start; padding: 6px 10px 6px 6px; border-radius: 9px; }
.au-back:hover { background: var(--bg); text-decoration: none; color: var(--ink); }
.au-form { margin: auto 0; width: 100%; max-width: 380px; align-self: center; padding: 32px 0; }
.au-form .lp-logo { display: none; }
.au-form h1 { font-size: 28px; font-weight: 900; letter-spacing: .02em; }
.au-form .lead { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.au-form .field { margin-top: 28px; }
.au-pw { position: relative; display: block; }
.au-pw .input { height: 54px; font-size: 16px; padding-right: 52px; border-radius: 12px; width: 100%; }
.au-eye { position: absolute; right: 6px; top: 7px; width: 40px; height: 40px; border: 0; background: transparent; border-radius: 9px; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.au-eye:hover { background: var(--bg); color: var(--ink); }
.au-eye:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-glow); }
.au .err { color: var(--danger); font-size: 13.5px; margin-top: 8px; min-height: 22px; }
.au-submit { width: 100%; height: 54px; font-size: 16px; border-radius: 12px; margin-top: 4px; gap: 8px; justify-content: center; }
.au-help { margin-top: 24px; padding: 14px 16px; border-radius: 12px; background: var(--bg); font-size: 13.5px; color: var(--ink-2); line-height: 1.75; display: flex; gap: 10px; }
.au-help svg { color: var(--brand); margin-top: 3px; }
.au-foot { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.7; }

@media (max-width: 900px) {
  .au { grid-template-columns: minmax(0, 1fr); }
  .au-side { display: none; }
  .au-main { padding: 16px 16px 24px; min-height: 100vh; background: var(--surface); }
  .au-form { padding: 24px 0; }
  .au-form .lp-logo { display: flex; margin-bottom: 28px; }
}
@media (max-width: 700px) {
  /* 比較表在手機橫向捲動時，第一欄固定 */
  .lp-cmp tbody th, .lp-cmp thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
  .lp-cmp thead th:first-child { background: var(--surface-2); }
  .lp-scroll-hint { display: block; margin: 28px 0 -32px; text-align: right; font-size: 12.5px; color: var(--muted); }
  .lp-cmp tbody th { width: 8.5em; min-width: 8.5em; }
}

/* ---------------------------------------------------------------- 兩種用法（11/23）：練習＝brand、製作＝ink（陶土橘保留給病友聲音） */
.lp-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 980px; margin: 32px auto 0; }
.lp-mode {
  --tone: var(--brand); --tone-soft: var(--brand-soft);
  display: flex; flex-direction: column; gap: 8px; padding: 24px 26px; border-radius: 22px; background: var(--surface);
  border: 1px solid var(--line); border-top: 4px solid var(--tone); color: var(--ink); transition: box-shadow .18s, transform .18s, border-color .18s;
}
.lp-mode.is-make { --tone: var(--ink); --tone-soft: var(--bg-2); }
.lp-mode:hover { text-decoration: none; box-shadow: var(--shadow-2); transform: translateY(-2px); }
.lp-mode-k { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; color: color-mix(in srgb, var(--tone) 85%, var(--ink)); }
.lp-mode-t { font-size: 22px; font-weight: 900; letter-spacing: .02em; }
.lp-mode-d { font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.lp-mode-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.lp-mode-tags span { padding: 3px 10px; border-radius: 999px; background: var(--tone-soft); color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.lp-mode-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14.5px; font-weight: 700; color: color-mix(in srgb, var(--tone) 85%, var(--ink)); }
.lp-mode:hover .lp-mode-go .i { transform: translateX(3px); }
.lp-mode-go .i { transition: transform .15s; }
.lp-feat-tabs-k { display: inline-flex; align-items: center; padding: 0 2px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.lp-feat-tabs-k:not(:first-child) { margin-left: 10px; border-left: 1px solid var(--line-2); padding-left: 16px; }
.lp-dot.is-make { background: var(--ink); }
.lp-tag.make { background: var(--bg-2); color: var(--ink); border: 1px solid var(--line-2); }
.lp-make-h { max-width: 720px; margin: 104px auto 0; padding-top: 56px; border-top: 1px solid var(--line); text-align: center; }
.lp-make-h h3 { margin-top: 14px; font-size: clamp(24px, 3vw, 32px); font-weight: 900; }
.lp-make-h p { margin-top: 12px; font-size: 16px; color: var(--ink-2); line-height: 1.85; }
.lp-make-h + .lp-feat { margin-top: 56px; }
.lp-feat-more { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.lp-feat-more a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lp-mock-kit { position: absolute; right: -18px; bottom: -32px; width: 270px; }
.lp-mock-kit dl { margin: 10px 0; display: grid; gap: 4px; }
.lp-mock-kit dl div { display: grid; grid-template-columns: 3em 1fr; gap: 8px; font-size: 12.5px; }
.lp-mock-kit dt { color: var(--muted); }
.lp-mock-kit dd { margin: 0; color: var(--ink); font-weight: 600; }
.lp-mock-kit ul { list-style: none; padding: 10px 0 0; margin: 0; display: flex; flex-wrap: wrap; gap: 5px; border-top: 1px dashed var(--line-2); }
.lp-mock-kit li { padding: 3px 9px; border-radius: 7px; background: var(--bg-2); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.lp-mock-card { position: absolute; left: -18px; bottom: -28px; width: 250px; }
.lp-mock-card ol { margin: 8px 0 0; padding-left: 1.3em; display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink); }
@media (max-width: 600px) {
  .lp-mock-kit, .lp-mock-card { position: relative; right: auto; left: auto; bottom: auto; width: auto; margin: -28px 12px 0; }
}
@media (max-width: 720px) {
  .lp-modes { grid-template-columns: minmax(0, 1fr); }
  .lp-feat-tabs-k { width: 100%; justify-content: center; padding: 6px 0 0; border: 0 !important; margin: 0 !important; }
  .lp-make-h { margin-top: 72px; padding-top: 40px; }
}

/* 11/23 審查修正 */
.lp-hero-note { margin-top: 14px; font-size: 13.5px; color: var(--ink-2); }
.lp-hero-note a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lp-make-h.is-first { margin-top: 56px; padding-top: 0; border-top: 0; }
.lp-trust-more { margin-top: 12px; font-size: 14px; }
.lp-trust-more a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lp-feat-tabs-k { white-space: nowrap; flex: none; }
.au-help a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- 11/23 晚 UX 修正 */
@media (max-width: 820px) { .lp-nav-cta { margin-left: auto; } }   /* 手機頂列：選單收起後按鈕靠右 */
.lp h1, .lp h2, .lp h3, .au h1, .au h2 { text-wrap: pretty; }      /* balance 會把中文詞切成兩半；pretty 只避免最後一行剩一個字 */
.lp-cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.lp-cta-btns .lp-btn-light { margin-top: 0; }
.lp-btn-ghost-light { height: 52px; padding: 0 24px; font-size: 15.5px; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .5); }
.lp-btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
@media (max-width: 600px) { .lp-cta-btns .btn { width: 100%; justify-content: center; } }

/* 範例畫面（給評估導入的主管先看品質；固定截圖，不呼叫 API） */
.lp-samples { background: var(--surface); border-block: 1px solid var(--line); }
.lp-sample-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; margin-top: 44px; align-items: start; }
.lp-sample { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.lp-sample-shot { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; box-shadow: var(--shadow-2); }
.lp-sample-shot img { display: block; width: 100%; height: auto; }
.lp-sample { gap: 10px; }
.lp-sample-badge {
  align-self: flex-start; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line-2);
}
a.lp-sample-shot { display: block; cursor: zoom-in; transition: box-shadow .15s, transform .15s; }
a.lp-sample-shot:hover { box-shadow: var(--shadow-3); transform: translateY(-2px); }
.lp-sample figcaption { margin-top: 4px; }
.lp-sample figcaption { font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }
.lp-sample figcaption b { display: block; font-size: 17px; color: var(--ink); margin-bottom: 2px; }
.lp-sample-shot.paper { background: #E9E6DF; padding: 18px; }
.lp-sample-shot.paper img { border-radius: 4px; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
@media (max-width: 900px) { .lp-sample-grid { grid-template-columns: minmax(0, 1fr); } }
/* 介紹頁導覽 8 個連結：821–960px 會折成兩行，這段寬度也改用選單（資源區連結少，維持 820） */
.lp-links a { white-space: nowrap; }
@media (max-width: 960px) {
  body.lp:not(.lr) .lp-menu { display: inline-flex; }
  body.lp:not(.lr) .lp-nav-cta { margin-left: auto; }
  body.lp:not(.lr) .lp-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); margin-left: 0;
  }
  body.lp:not(.lr) .lp-nav.open .lp-links { display: flex; }
  body.lp:not(.lr) .lp-links a { padding: 13px 8px; font-size: 15.5px; border-bottom: 1px solid var(--line); border-radius: 0; }
}
@media (max-width: 600px) { body.lp:not(.lr) .lp-links { top: 60px; } }

/* ---------------------------------------------------------------- 第三種用法「檢查我的衛教」（11/24）：石板藍灰 --chk */
.lp-mode.is-check { --tone: var(--chk); --tone-soft: var(--chk-soft); }
.lp-dot.is-check { background: var(--chk); }
.lp-tag.check { background: var(--chk-soft); color: var(--chk); border: 1px solid var(--chk-line); }
@media (min-width: 1000px) { .lp-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1160px; } }
@media (min-width: 721px) and (max-width: 999px) {
  .lp-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-mode.is-check { grid-column: 1 / -1; }
}
.lp-mock-read { position: absolute; right: -18px; bottom: -32px; width: 280px; }
.lp-mock-read .q { margin: 8px 0 6px; padding: 8px 12px; border-radius: 12px; background: var(--bg); color: var(--ink); line-height: 1.6; font-weight: 600; }
.lp-mock-read .v { font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.lp-mock-read .chip { margin-right: 6px; }
.lp-mock-talk { position: absolute; left: -18px; bottom: -28px; width: 260px; }
.lp-mock-talk ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 7px; }
.lp-mock-talk li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.lp-mock-talk .chip { flex: none; }
@media (max-width: 600px) {
  .lp-mock-read, .lp-mock-talk { position: relative; right: auto; left: auto; bottom: auto; width: auto; margin: -28px 12px 0; }
}
/* 三組分類一行放不下：「檢查」自成第二行，不讓最後一顆單獨掉下去 */
.lp-feat-tabs-br { flex-basis: 100%; height: 0; }
.lp-feat-tabs-k.is-after-br { margin-left: 0; border-left: 0; padding-left: 10px; }
@media (max-width: 720px) { .lp-feat-tabs-br { display: none; } }
/* 小字的警示 chip：#A86A12 在淺底只有 3.95:1，介紹頁加深（深色模式維持原色） */
:root:not([data-theme="dark"]) .lp .chip.warn { color: color-mix(in srgb, var(--warn) 72%, var(--ink)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lp .chip.warn { color: var(--warn); } }
:root:not([data-theme="dark"]) .lp .lp-mock-talk .chip.ok { color: color-mix(in srgb, var(--ok) 80%, var(--ink)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lp .lp-mock-talk .chip.ok { color: var(--ok); } }
.lp-sample.wide { grid-column: 1 / -1; max-width: 1000px; width: 100%; justify-self: center; margin-top: 12px; }

/* Google 登入按鈕（12/01）：照 Google 規範，白底灰框、四色 G；深色模式用 Google 的深色版 */
.au-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; margin-top: 26px; padding: 0 18px;
  border: 1px solid #747775; border-radius: 12px; background: #fff; color: #1F1F1F; font-size: 16px; font-weight: 600; letter-spacing: .02em; text-decoration: none;
  transition: background .15s, box-shadow .15s; }
.au-google:hover { background: #F6F8F8; box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .18); text-decoration: none; }
.au-google:focus-visible { outline: 3px solid var(--brand-glow); outline-offset: 2px; }
.au-google .au-g { width: 22px; height: 22px; flex: none; }
.au-form .err:empty { display: none; }
.au-form .err { margin-top: 18px; }
:root[data-theme="dark"] .au-google { background: #131314; border-color: #8E918F; color: #E3E3E3; }
:root[data-theme="dark"] .au-google:hover { background: #1E1F20; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .au-google { background: #131314; border-color: #8E918F; color: #E3E3E3; }
  :root:not([data-theme="light"]) .au-google:hover { background: #1E1F20; }
}

/* 12/01 公開頁擴充：主題卡、角色卡連到各自的頁面 */
.lp-topic-grid li a { display: block; height: 100%; color: inherit; }
.lp-topic-grid li a:hover { text-decoration: none; }
.lp-topic-grid li a:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.lp-who-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; }
.lp-who-links a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 700; font-size: 14.5px; color: var(--brand-ink); }
.lp-who-all { margin-top: 28px; text-align: center; }
.lp-sub a { text-decoration: underline; text-underline-offset: 3px; }   /* 段落裡的連結要有底線（axe link-in-text-block） */
