:root {
  --landing-ink: #172837;
  --chalk: #fffdf7;
  --marker: #ffe086;
  --board-blue: #205c85;
  --board-green: #286048;
  --rule: #ded5c1;
  --landing-radius: 22px;
}

.landing-page { color: var(--landing-ink); }
.landing-page .wrap { max-width: 1200px; padding-inline: clamp(20px, 4vw, 40px); }
.landing-page .top { border-bottom-color: var(--line); }
.landing-page :is(section[id], #demo) { scroll-margin-top: 80px; }
.landing-page :focus-visible, .pricing-page :focus-visible, .pricing-questions :focus-visible { outline: 2px solid var(--board-blue); outline-offset: 4px; }
.landing-page p { text-wrap: pretty; }
.landing-page h2 { font-size: clamp(27px, 3.4vw, 42px); line-height: 1.28; letter-spacing: -.025em; margin: 0; }

.landing-hero { padding-block: clamp(46px, 6.5vw, 100px); }
.landing-hero > .wrap { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(24px, 4.5vw, 72px); }
.section-label { color: #795711; font-size: 14px; font-weight: 900; letter-spacing: .09em; margin: 0 0 14px; }
.hero-copy .section-label { width: fit-content; max-width: 100%; background: #fff2d1; border-radius: 999px; padding: 5px 12px; letter-spacing: .025em; }
.landing-hero h1 { margin: 0 0 24px; font-size: clamp(37px, 5vw, 66px); font-weight: 900; line-height: 1.19; letter-spacing: -.055em; }
.landing-hero h1 span { background: linear-gradient(transparent 76%, var(--marker) 76% 94%, transparent 94%); }
.hero-lead { max-width: 25em; margin: 0 0 26px; color: var(--ink2); font-size: clamp(16px, 1.55vw, 19px); line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.hero-actions .btn { min-height: 48px; }
.hero-video-link { min-height: 44px; display: inline-flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 800; text-underline-offset: 5px; text-decoration-color: #a9976f; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: welcome-in .58s ease-out both; }
  .hero-copy h1 { animation-delay: .07s; }
  .hero-copy .hero-lead { animation-delay: .14s; }
  .hero-copy .hero-actions { animation-delay: .21s; }
  :where(.lab-intro, .how-head, .theater, .section-intro, .flow-card, #pricing-preview .plan, .close-note) { transition: opacity .56s ease-out, translate .56s ease-out; }
  .will-enter:not(:focus-within) { opacity: 0; translate: 0 15px; }
}
@keyframes welcome-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.lesson-demo { min-width: 0; background: #fff; border: 1px solid var(--rule); border-radius: var(--landing-radius); box-shadow: 0 16px 40px #55421c1c, 0 3px 8px #55421c0b; overflow: hidden; }
.demo-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px clamp(14px, 2.6vw, 24px); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink2); }
.demo-header div { display: flex; align-items: center; gap: 8px; color: var(--landing-ink); }
.demo-status { width: 9px; height: 9px; border-radius: 50%; background: #e1a920; }
.lesson-demo.is-playing .demo-status { box-shadow: 0 0 0 3px #f7e8bf; }
.demo-board { padding: clamp(15px, 2.4vw, 27px) clamp(15px, 3vw, 32px) 16px; background: var(--chalk) radial-gradient(#cbbf9f88 .75px, transparent .9px) 3px 3px / 19px 19px; border-bottom: 1px solid var(--line); }
.demo-board h2 { font-family: var(--hand); font-size: clamp(22px, 2.5vw, 32px); line-height: 1.25; padding: 0; letter-spacing: 0; }
.refraction-canvas, .math-canvas { display: block; width: 100%; height: auto; }
.refraction-canvas { margin-top: 8px; aspect-ratio: 600 / 270; }
.math-canvas { aspect-ratio: 520 / 260; }
.demo-lines [data-dialogue]:not([hidden]), .demo-lines [data-reply]:not([hidden]) { animation: dialogue-in .24s ease-out both; }
@keyframes ink-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes dialogue-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.demo-dialogue { display: flex; gap: 11px; padding: 13px clamp(14px, 2.6vw, 24px); min-height: 104px; align-items: flex-start; }
.demo-avatar { flex: 0 0 31px; height: 31px; display: grid; place-items: center; background: #fff1c8; color: #704c0b; border-radius: 50%; font-weight: 900; font-size: 14px; }
.demo-lines { font-size: 14px; color: var(--ink2); padding-top: 3px; }
.demo-lines p { margin: 0; }
.demo-lines strong { color: var(--landing-ink); margin-inline-end: 4px; }
.demo-lines .demo-student { background: #fff4d6; border-radius: 6px; padding: 4px 8px; margin: 0 0 5px; width: fit-content; }
.demo-controls { display: flex; justify-content: space-between; align-items: center; gap: 4px 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 6px clamp(10px, 2.5vw, 20px); background: #fffcf4; }
.demo-controls[hidden] { display: none; }
.demo-progress { height: 3px; flex-basis: 100%; background: #eee6d1; border-radius: 4px; overflow: hidden; }
.demo-progress i { height: 100%; display: block; background: #ca931f; transform: scaleX(0); transform-origin: left; }
.demo-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 0 3px; }
.demo-controls button { min-height: 44px; font: 800 13px/1.3 var(--sans); color: var(--landing-ink); border: 0; border-radius: 7px; background: none; padding: 6px 9px; cursor: pointer; }
.demo-controls button:hover { background: #f3eedf; }
.demo-controls button[aria-pressed="true"] { background: #fff0c0; color: #694a12; }
.demo-controls .demo-transport { color: var(--board-blue); }
.demo-transport span { display: inline-block; min-width: 12px; margin-inline-end: 2px; text-align: center; }

/* ---------- 主標題下的功能捷徑 ---------- */
.hero-features { list-style: none; margin: clamp(26px, 3.4vw, 40px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 560px; }
.hero-features a { display: flex; gap: 11px; align-items: center; min-height: 58px; padding: 10px 13px; border: 1px solid var(--rule); border-radius: 14px; background: #fffdf7; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.hero-features a:hover { border-color: #d9bc79; transform: translateY(-1px); box-shadow: 0 6px 16px #55421c12; }
.hero-features svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: #fff3cc; fill: none; stroke: #8a5a00; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-features span { display: grid; line-height: 1.35; min-width: 0; }
.hero-features b { font-size: 15px; font-weight: 700; }
.hero-features small { color: var(--ink2); font-size: 12.5px; }

/* ---------- 互動白板：往下滑換科目（版面固定，捲動切換） ---------- */
.landing-lab { background: #fffcf5; border-top: 1px solid var(--line); }
.lab-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px clamp(24px, 5vw, 72px); align-items: end; margin-bottom: clamp(24px, 3.6vw, 38px); }
.lab-intro > p { margin: 0; color: var(--ink2); font-size: 16.5px; max-width: 34em; }
.lab-reel { --lab-top: 75px; --lab-step: clamp(260px, 62vh, 560px); }
@supports (height: 1svh) { .lab-reel { --lab-step: clamp(260px, 62svh, 560px); } }
.lab-showcase { border: 1px solid var(--rule); border-radius: var(--landing-radius); background: #fff; box-shadow: 0 14px 34px #55421c14, 0 2px 6px #55421c0a; }
.lab-reel.is-pinned .lab-showcase { position: sticky; top: var(--lab-top); }
.lab-stack { overflow: hidden; border-radius: 0 0 var(--landing-radius) var(--landing-radius); }
.lab-track { display: flex; }
.lab-panel { flex: 0 0 100%; align-items: stretch; }
.lab-copy { align-self: center; }
.lab-board { display: flex; flex-direction: column; justify-content: center; }
/* 固定在畫面上：往下捲＝整排往左滑一格 */
.lab-reel.is-pinned .lab-track { transition: transform .55s cubic-bezier(.45, 0, .2, 1); will-change: transform; }
.lab-reel.is-pinned .lab-runway { height: calc(var(--lab-step) * (var(--lab-count) - 1)); }
/* 畫面太矮放不下：改成左右滑的卡片，一次一科 */
.lab-reel:not(.is-pinned) .lab-stack { overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.lab-reel:not(.is-pinned) .lab-stack::-webkit-scrollbar { display: none; }
.lab-reel:not(.is-pinned) .lab-panel { scroll-snap-align: start; scroll-snap-stop: always; }
.lab-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 2px 12px; flex-wrap: wrap; border-bottom: 1px solid var(--rule); padding: 7px clamp(12px, 2.7vw, 24px); }
.lab-tabs { display: flex; flex-wrap: wrap; gap: 0 clamp(2px, 1.4vw, 14px); }
.lab-tabs a { min-height: 44px; display: inline-flex; align-items: center; font: 700 15px/1.35 var(--sans); color: var(--landing-ink); text-decoration: none; border-radius: 8px; padding: 7px clamp(10px, 1.7vw, 18px); }
.lab-tabs a:hover { background: #fff5da; }
.lab-tabs a[aria-current] { background: #fff0c0; color: #694a12; box-shadow: inset 0 -2px 0 #e3ae29; }
.lab-position { color: var(--ink2); font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: .045em; padding-inline-end: 4px; }
.lab-panel { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); gap: clamp(16px, 3vw, 40px); align-items: center; padding: clamp(16px, 2.6vw, 30px) clamp(16px, 3vw, 34px); scroll-margin-top: 78px; }
.lab-copy { min-width: 0; }
.lab-copy h3 { margin: 10px 0 10px; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.32; letter-spacing: -.015em; }
.lab-copy > p:not(.lab-tutor) { margin: 0; color: var(--ink2); font-size: 15.5px; }
.lab-kind { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #795711; background: #fff3cc; border-radius: 999px; padding: 2px 10px; }
.lab-tutor { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 11px 13px; border: 1px solid #e8e0cf; border-radius: 14px; background: #fffdf7; font-size: 14.5px; color: var(--landing-ink); min-height: 72px; }
.lab-tutor [data-say] { padding-top: 4px; }
.lab-board { min-width: 0; padding: clamp(12px, 2vw, 20px); border: 1px solid var(--line); border-radius: 14px; background: var(--chalk) radial-gradient(#cbbf9f88 .75px, transparent .9px) 3px 3px / 19px 19px; }
.lab-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 10px; }
.lab-controls label { display: grid; grid-template-columns: auto 1fr; justify-content: start; gap: 0 8px; font-size: 14px; font-weight: 700; color: var(--landing-ink); min-width: 150px; flex: 1 1 150px; }
.lab-controls output { color: #1d8fe1; font-variant-numeric: tabular-nums; }
.lab-controls input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: #1f2a37; min-height: 26px; margin: 2px 0 0; }
.lab-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.lab-presets button, .heart-chips button, .quiz-toggle, .lab-go { min-height: 40px; border: 1px solid #e8e0cf; background: #fff; color: var(--landing-ink); border-radius: 999px; padding: 6px 14px; font: 700 14px/1.2 var(--sans); cursor: pointer; transition: background .15s, border-color .15s; }
.lab-presets button:hover, .heart-chips button:hover { background: #fff3cc; border-color: #e9d59a; }
.lab-go, .quiz-toggle { background: #1f2a37; border-color: #1f2a37; color: #fff; }
.lab-go:hover, .quiz-toggle:hover { background: #374754; }
.quiz-toggle[aria-pressed="true"] { background: #fff; color: #1f2a37; }

/* 數學：常態分佈 */
.normal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 18px; align-items: center; }
.normal-plot, .proj-plot { display: block; width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.normal-plot { aspect-ratio: 640 / 290; cursor: crosshair; }
.np-grid line, .pj-grid line { stroke: #e2ddcf; stroke-width: 1; }
.np-axis text, .pj-grid text { font: 13px var(--sans); fill: #6b7280; }
.np-baseline, .pj-ground { stroke: #1f2a37; stroke-width: 2; }
.np-curve { fill: none; stroke: #1d8fe1; stroke-width: 3.2; stroke-linejoin: round; }
.np-area { fill: rgba(29, 143, 225, .18); stroke: none; }
.np-mean { stroke: #9aa3ae; stroke-width: 1.5; stroke-dasharray: 5 6; }
.np-handle { cursor: ew-resize; outline: none; }
.np-handle line { stroke: #e0483e; stroke-width: 2; stroke-dasharray: 4 4; }
.np-handle circle { fill: #e0483e; stroke: #fff; stroke-width: 2.5; transition: r .12s; }
.np-handle text { fill: #fff; font: 700 13px var(--sans); pointer-events: none; }
.np-handle:hover circle, .np-handle.dragging circle, .np-handle:focus-visible circle { r: 14; }
.np-handle:focus-visible circle { stroke: #1f2a37; }
.np-readout { display: grid; gap: 2px; justify-items: start; min-width: 150px; padding: 12px 16px; border: 1px solid #e8e0cf; border-radius: 14px; background: #fff; font-size: 14px; color: var(--ink2); }
.np-readout b { color: #e0483e; font-variant-numeric: tabular-nums; }
.np-readout strong { font: 400 clamp(34px, 4vw, 46px)/1.1 var(--hand); color: #1d8fe1; font-variant-numeric: tabular-nums; }
.np-readout small { font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* 生物：AI 插圖＋標註 */
.heart-figure { position: relative; margin: 0 auto; width: 100%; max-width: 600px; border-radius: 14px; overflow: hidden; background: #fbfaf5; border: 1px solid var(--line); }
.heart-figure img { display: block; width: 100%; height: auto; aspect-ratio: 1536 / 1024; object-fit: cover; }
.heart-marks { position: absolute; inset: 0; width: 100%; height: 100%; }
.hp { cursor: pointer; }
.hp-hit { fill: transparent; }
.hp-ring { fill: none; stroke: #e0483e; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .55s ease-out; }
.hp-leader { stroke: #1f2a37; stroke-width: 3; opacity: .75; }
.hp-label { font: 700 44px var(--hand); fill: #1f2a37; paint-order: stroke; stroke: #fbfaf5; stroke-width: 10px; stroke-linejoin: round; }
.hp:hover .hp-ring { stroke-dashoffset: 72; }
.hp.on .hp-ring { stroke-dashoffset: 0; }
.hp.on .hp-label { fill: #e0483e; }
.hp.right .hp-ring { stroke: #2a9d5c; }
.hp.right .hp-label { fill: #2a9d5c; }
.hp.wrong .hp-ring { stroke: #9aa3ae; stroke-dashoffset: 0; }
.heart-figure.quiz .hp:not(.on) :is(.hp-label, .hp-leader) { opacity: 0; }
.heart-figure.quiz .hp.on:not(.right) :is(.hp-label, .hp-leader) { opacity: 1; }
.heart-figure figcaption { position: absolute; left: 10px; bottom: 10px; right: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; color: var(--ink2); pointer-events: none; }
.heart-figure figcaption { width: fit-content; max-width: calc(100% - 20px); background: rgba(255, 255, 255, .88); border-radius: 999px; padding: 4px 11px 4px 5px; }
.ai-badge { background: #1f2a37; color: #fff; border-radius: 999px; padding: 1px 9px; font-weight: 700; font-size: 12px; }
.heart-controls { justify-content: space-between; }
.heart-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.heart-chips button[aria-pressed="true"] { background: #fff3cc; border-color: #e9d59a; color: #6b4a07; }

/* 物理：斜拋 */
.proj-plot { aspect-ratio: 640 / 280; }
.pj-path { fill: none; stroke: #1d8fe1; stroke-width: 3.2; stroke-linecap: round; }
.pj-ghost { fill: none; stroke: #9aa3ae; stroke-width: 2.2; stroke-dasharray: 6 7; }
.pj-aim { stroke: #1f2a37; stroke-width: 5; stroke-linecap: round; }
.pj-ball { fill: #e0483e; stroke: #fff; stroke-width: 2.5; }
.pj-range line { stroke: #e0483e; stroke-width: 2.5; }
.pj-range text { font: 700 13px var(--sans); fill: #e0483e; }
.pj-stats { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 4px; font-size: 14px; color: var(--ink2); }
.pj-stats b { font: 400 24px/1.2 var(--hand); color: var(--landing-ink); font-variant-numeric: tabular-nums; }

/* 化學：配平 */
.eq-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px clamp(6px, 1.4vw, 14px); padding: 6px 0 2px; font: 400 clamp(24px, 3vw, 34px)/1.2 var(--hand); color: var(--landing-ink); }
.eq-row > i { font-style: normal; color: var(--ink2); }
.eq-term { display: inline-flex; align-items: center; gap: 6px; }
.stepper { display: inline-grid; justify-items: center; }
.stepper output { min-width: 1.2em; text-align: center; color: #1d8fe1; font-variant-numeric: tabular-nums; }
.stepper button { width: 34px; height: 26px; border: 1px solid #e8e0cf; background: #fff; border-radius: 8px; font: 700 16px/1 var(--sans); color: var(--landing-ink); cursor: pointer; }
.stepper button:hover { background: #fff3cc; }
.eq-row.balanced b { background: linear-gradient(transparent 58%, var(--marker) 58% 92%, transparent 92%); }
.eq-molecules { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; min-height: 64px; margin: 10px 0; padding: 10px 12px; border: 1px dashed #e2ddcf; border-radius: 12px; background: #fffefa; }
.eq-molecules > div { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: center; }
.eq-molecules > span { color: var(--ink2); font-size: 20px; }
.molecule { display: inline-flex; align-items: center; }
.molecule .atom + .atom { margin-inline-start: -3px; }
.atom { display: inline-grid; place-items: center; width: 24px; aspect-ratio: 1; border-radius: 50%; font: 700 11px/1 var(--sans); font-style: normal; border: 1px solid; }
.atom-C { background: #3d4852; color: #fff; border-color: #2a333c; }
.atom-H { background: #f2f5f8; color: #4b5563; border-color: #c4ccd5; }
.atom-O { background: #f6ddd7; color: #913b30; border-color: #d6998c; }
.eq-count { width: min(100%, 360px); margin: 0 auto; border-collapse: collapse; font-size: 15px; text-align: center; font-variant-numeric: tabular-nums; }
.eq-count :is(th, td) { padding: 5px 8px; border-bottom: 1px solid #ece7da; }
.eq-count thead th { font-size: 12.5px; color: var(--ink2); font-weight: 700; }
.eq-count [data-ok] { font-weight: 700; color: #e0483e; width: 40px; }
.eq-count tr.ok [data-ok] { color: #2a9d5c; }

/* ---------- 實際上課影片：播放區＋段落目錄 ---------- */
.landing-how { background: #f7f0e1; border-block: 1px solid var(--line); }
.how-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px clamp(24px, 5vw, 72px); align-items: end; margin-bottom: clamp(24px, 4vw, 40px); }
.how-head > p { margin: 0; color: var(--ink2); font-size: 16.5px; max-width: 34em; }
.theater { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .36fr); border: 1px solid var(--rule); border-radius: var(--landing-radius); background: #fff; box-shadow: 0 18px 44px #55421c1a, 0 3px 8px #55421c0b; overflow: hidden; }
.theater-screen { position: relative; margin: 0; min-width: 0; background: var(--chalk); }
.theater-screen video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--chalk); }
.theater-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; border: 0; padding: 16px; cursor: pointer; font: inherit; color: var(--landing-ink); background: linear-gradient(180deg, rgba(253, 249, 240, .05) 30%, rgba(253, 249, 240, .78) 100%); }
.theater-play[hidden] { display: none; }
.play-ring { display: grid; place-items: center; width: clamp(64px, 8vw, 86px); aspect-ratio: 1; border-radius: 50%; background: #1f2a37; box-shadow: 0 0 0 10px rgba(255, 255, 255, .7), 0 14px 30px rgba(31, 42, 55, .28); transition: transform .18s; }
.play-ring svg { width: 42%; fill: #fff; margin-left: 6%; }
.theater-play:hover .play-ring { transform: scale(1.06); }
.play-text { display: grid; justify-items: center; gap: 2px; background: rgba(255, 255, 255, .92); border-radius: 14px; padding: 8px 16px; }
.play-text b { font-size: 16px; }
.play-text small { font-size: 13px; color: var(--ink2); }
.theater-side { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--line); background: #fffdf7; }
.theater-title { display: grid; gap: 2px; margin: 0; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.theater-title b { font-size: 17px; }
.theater-title span { font-size: 12.5px; color: var(--ink2); }
.theater-chapters { list-style: none; margin: 0; padding: 8px; display: grid; gap: 2px; overflow: auto; }
.theater-chapters button { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: baseline; width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; text-align: left; font: 14.5px/1.45 var(--sans); color: var(--landing-ink); cursor: pointer; }
.theater-chapters button:hover { background: #f7f0e1; }
.theater-chapters time { font-size: 13px; font-variant-numeric: tabular-nums; color: #1d8fe1; font-weight: 700; }
.theater-chapters button[aria-current="true"] { background: #fff3cc; font-weight: 700; }
.theater-chapters button[aria-current="true"] time { color: #8a5a00; }
.playback-error { position: absolute; left: 12px; bottom: 12px; margin: 0; background: #fff; border-radius: 10px; padding: 6px 10px; color: var(--ink2); font-size: 13px; }

/* ---------- 網站功能：上課前、上課中、下課後 ---------- */
.landing-features .section-intro { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: clamp(26px, 4vw, 44px); }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.flow-card { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 18px; background: #fffdf8; overflow: hidden; }
.flow-visual { min-height: 140px; display: grid; align-content: center; justify-items: center; gap: 8px; padding: 16px; border-bottom: 1px solid var(--rule); font-family: var(--hand); font-size: 15px; }
.flow-photo { background: #f7ebca radial-gradient(#7a673b24 1px,transparent 1.2px) 0 0 / 16px 16px; }
.flow-talk { background: #f4eedf; }
.flow-notes { background: #f6eee0; }
.mini-sheet { display: grid; gap: 3px; background: #fffefa; border: 1px solid #dbcda9; border-radius: 8px; padding: 6px 13px; line-height: 1.3; box-shadow: 0 4px 9px #55421c12; }
.mini-sheet small { color: var(--ink2); }
.mini-sheet b { font-size: 22px; color: var(--landing-ink); }
.flow-notes .mini-sheet { transform: rotate(-2deg); padding: 12px; }
.mini-sheet mark, .mini-annotation { background: #fff0bd; color: #62470e; padding: 1px 5px; }
.flow-talk > span { background: #fffefa; border: 1px solid #e8e0cf; border-radius: 10px; padding: 4px 8px; line-height: 1.36; max-width: 92%; }
.flow-talk > span:first-child { justify-self: end; background: #fff3cc; }
.flow-talk > span:last-child { justify-self: start; }
.flow-copy { padding: 18px clamp(16px, 2.2vw, 24px) 22px; }
.flow-step { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; color: #795711; }
.flow-copy h3 { font-size: clamp(18px, 1.9vw, 22px); line-height: 1.35; margin: 4px 0 12px; }
.flow-copy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.flow-copy li { display: flex; gap: 8px; font-size: 14.5px; color: var(--ink2); line-height: 1.6; }
.flow-copy li b { color: var(--landing-ink); font-weight: 700; }
.flow-copy li svg { flex: none; width: 19px; height: 19px; margin-top: 2px; fill: none; stroke: #2a9d5c; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.section-intro { margin-bottom: 30px; }
.section-intro > p:not(.section-label) { color: var(--ink2); margin: 10px 0 0; }
.landing-page #pricing-preview { background: #fcf8ee; border-top: 1px solid var(--line); }
#pricing-preview > .wrap > .section-intro { text-align: center; margin-bottom: clamp(30px, 4vw, 48px); }
.pricing-page { padding-block: clamp(40px, 6vw, 72px); }
.pricing-page h1, .pricing-questions h2 { margin: 0 0 10px; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.26; letter-spacing: -.025em; }
.pricing-questions, #billing { scroll-margin-top: 80px; }
.plans { display: grid; grid-template-columns: repeat(var(--plan-count), minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 28px); }
.plan, .trial-plan { min-width: 0; background: #fff; border: 1px solid var(--rule); border-radius: var(--landing-radius); padding: clamp(22px, 2.7vw, 30px); box-shadow: 0 5px 16px #55421c0a; }
.plan { position: relative; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.plan.hot { border-color: #374754; box-shadow: 0 9px 23px #55421c10; }
.plan-heading h3 { margin: 0 0 7px; font-size: clamp(24px, 2.5vw, 30px); line-height: 1.2; }
.plan-heading .badge { position: absolute; inset: -13px auto auto clamp(22px, 2.7vw, 30px); background: #ffe084; color: #51390b; border-radius: 999px; padding: 3px 11px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.plan-heading p { color: var(--ink2); font-size: 15px; margin: 0; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; margin-top: 18px; }
.plan-price small { font-size: 15px; color: var(--ink2); }
.plan-price strong { font-size: clamp(31px, 3.55vw, 48px); font-variant-numeric: tabular-nums; letter-spacing: -.05em; line-height: 1.12; }
.plan-allowance { margin: 6px 0 16px; color: var(--ink2); font-size: 14px; }
.plan .btn { width: 100%; min-height: 46px; font-size: 15px; padding: 8px; text-align: center; line-height: 1.35; }
.plan-benefits { flex: 1; display: grid; align-content: start; gap: 10px; list-style: none; margin: 0 0 24px; padding: 0; color: var(--ink2); font-size: 15px; }
.plan-benefits li { display: flex; gap: 8px; }
.plan-benefits li::before { content: '✓' / ''; flex: none; color: var(--board-green); font-weight: 900; }
.plan-benefits li.off { opacity: .65; }
.plan-benefits li.off::before { content: '–' / ''; color: inherit; }
.trial-plan { margin-top: 24px; }
.trial-plan h3 { margin: 0; }
.trial-plan p { margin: 0; font-size: 14px; }
.trial-plan .plan-benefits { margin-top: 16px; }
.plan-link { margin: 23px 0 0; text-align: center; color: var(--ink2); font-weight: 700; font-size: 15px; text-underline-offset: 4px; }

.landing-questions { background: #f5efde; border-block: 1px solid var(--line); }
.landing-questions > .wrap { max-width: 900px; }
.landing-questions .section-intro { text-align: center; margin: 0 0 clamp(30px, 5vw, 48px); }
.landing-questions a { text-underline-offset: 3px; }
.faq, .faq-extra { display: grid; gap: clamp(14px, 2vw, 22px); }
.faq-item { border: 1px solid var(--rule); background: #fff; border-radius: 16px; }
.faq-item[open] { border-color: #d9bc79; }
.faq summary { min-height: 62px; padding: 17px clamp(17px, 3vw, 28px); display: flex; justify-content: space-between; align-items: center; gap: 15px; cursor: pointer; font-size: clamp(17px, 1.65vw, 20px); font-weight: 500; line-height: 1.45; list-style: none; }
.faq summary:hover { color: #795711; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+' / ''; flex: none; color: #8b7860; font-size: 23px; font-weight: 500; line-height: 1; }
.faq details[open] > summary::after { content: '−' / ''; }
.faq-item p { border-top: 1px solid #efe7d7; margin: 0 clamp(17px, 3vw, 28px); padding: 14px 0 21px; color: var(--ink2); font-size: 15px; line-height: 1.88; }
.faq strong { color: var(--landing-ink); background: linear-gradient(transparent 62%, #ffedb5 62%); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.faq-more > summary { justify-content: center; gap: 8px; font-size: 14px; min-height: 44px; padding-block: 8px; color: var(--ink2); }
.faq-extra { padding-top: 6px; }
.faq-contact { text-align: center; margin: 0; color: var(--ink2); font-size: 14px; }

.landing-close { background: var(--paper); }
.close-note { display: flex; justify-content: space-between; align-items: center; gap: 20px 24px; flex-wrap: wrap; padding: clamp(24px, 5.7vw, 62px); border: 1px solid #e5d29d; border-radius: var(--landing-radius); background: #fbefcc radial-gradient(#91742b25 1px,transparent 1.2px) 0 0 / 19px 19px; }
.close-note :is(h2,p) { max-width: 28em; }
.close-note p { color: #514b3d; margin: 10px 0 0; }
.landing-page footer { margin-top: 0; }

@media (max-width: 920px) {
  .lab-panel { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; }
  .lab-board { grid-row: 1; }
  .lab-copy { align-self: start; }
  .lab-copy h3 { margin: 6px 0 4px; font-size: 19px; }
  .lab-tutor { margin-top: 10px; min-height: 0; }
  .theater { grid-template-columns: minmax(0, 1fr); }
  .theater-side { border-left: 0; border-top: 1px solid var(--line); }
  .theater-chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .landing-hero > .wrap, .lab-intro, .how-head { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 620px; }
  .landing-hero h1 { font-size: clamp(37px, 8vw, 61px); }
  :is(.lab-intro, .how-head) h2 br { display: none; }
  .flow { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
}

@media (min-width: 701px) and (max-width: 880px) {
  .plans { gap: 14px; }
  .plan { padding-inline: 16px; }
  .plan-benefits { font-size: 14px; }
  .plan-price strong { font-size: clamp(25px, 3.55vw, 32px); }
}

@media (max-width: 700px) {
  .plans { grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 520px; margin-inline: auto; }
}

@media (max-width: 760px) {
  .landing-page .nav { gap: 12px; }
  .landing-page .nav a[href="/pricing"] { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
  .normal-wrap { grid-template-columns: minmax(0, 1fr); }
  .np-readout { grid-template-columns: auto auto; align-items: baseline; gap: 0 12px; width: 100%; }
  .np-readout small { grid-column: 1 / -1; }
}

@media (max-width: 540px) {
  .landing-page .top .wrap { height: 58px; }
  .landing-hero { padding-top: 32px; }
  .landing-hero h1 { margin-bottom: 12px; }
  .hero-lead { margin-bottom: 15px; }
  .hero-actions { gap: 4px 14px; }
  .hero-actions .btn { font-size: 14px; padding: 9px 14px; min-height: 44px; }
  .hero-video-link { font-size: 14px; }
  .demo-dialogue { min-height: 116px; }
  .demo-controls { padding: 4px 8px; }
  .demo-controls button { padding-inline: 5px; }
  .hero-features { grid-template-columns: minmax(0, 1fr); }
  .lab-copy > p:not(.lab-tutor) { display: none; }
  .lab-panel { padding: 12px; }
  .lab-board { padding: 10px; }
  .lab-toolbar { padding-inline: 6px; }
  .lab-tabs a { padding-inline: 10px; font-size: 14px; }
  .hero-features small { display: none; }
  .hero-features a { min-height: 50px; }
  .theater-chapters { grid-template-columns: minmax(0, 1fr); }
  .lab-tutor { font-size: 14px; }
  .lab-controls label { min-width: 0; flex-basis: 100%; }
  .hp-label { font-size: 52px; }
  .heart-figure figcaption { display: none; }
  .stepper button { width: 30px; }
  .eq-row { font-size: 22px; }
  .atom { width: 20px; }
  .flow-visual { min-height: 120px; }
  .plan-price strong { font-size: clamp(34px, 9vw, 42px); }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.landing-page) { scroll-behavior: auto; }
  .lesson-demo .demo-lines * { animation: none !important; }
  .hp-ring, .hero-features a, .play-ring { transition: none; }
  .landing-page .btn { transition: none; }
}

/* ---------- 手機（2026-11-30）：首頁捷徑卡片只在電腦版顯示；互動白板縮成放得進一個畫面；影片區改成手機版排法 ---------- */
@media (max-width: 700px) {
  .hero-features { display: none; }

  /* 互動白板：每一科都要放得進一個手機畫面，才能固定住、往下滑換科 */
  .lab-intro { margin-bottom: 18px; }
  .lab-intro > p { font-size: 15px; }
  .lab-toolbar { padding: 4px 6px; }
  .lab-tabs { gap: 0; }
  .lab-tabs a { min-height: 40px; padding: 6px 11px; font-size: 14px; }
  .lab-position { font-size: 12px; }
  .lab-panel { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 10px; padding: 10px; }
  .lab-board { grid-row: 1; padding: 8px 10px 10px; }
  .lab-copy { align-self: start; }
  .lab-copy .lab-kind, .lab-copy > p:not(.lab-tutor) { display: none; }
  .lab-copy h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.35; }
  .lab-tutor { margin: 0; padding: 8px 10px; gap: 8px; min-height: 0; font-size: 13.5px; line-height: 1.55; border-radius: 12px; }
  .lab-tutor .demo-avatar { flex-basis: 26px; height: 26px; font-size: 12px; }
  .lab-tutor [data-say] { padding-top: 2px; }
  .lab-controls { gap: 6px 12px; margin-top: 6px; }
  .lab-controls label { flex: 1 1 calc(50% - 12px); min-width: 0; font-size: 13px; }
  .lab-controls input[type="range"] { min-height: 22px; }
  .lab-presets { width: 100%; }
  .lab-presets button, .heart-chips button, .quiz-toggle, .lab-go { min-height: 36px; padding: 4px 11px; font-size: 13px; }
  .lab-presets button { flex: 1; }
  /* 常態分佈：機率改成一行 */
  .normal-wrap { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .np-readout { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 10px; width: 100%; padding: 6px 12px; border-radius: 10px; font-size: 13px; }
  .np-readout strong { font-size: 28px; }
  .np-readout small { display: none; }
  /* 心臟 */
  .heart-controls { gap: 6px; }
  .heart-chips { gap: 4px; }
  .hp-label { font-size: 56px; }
  .heart-figure figcaption { display: none; }
  /* 斜拋 */
  .pj-stats { gap: 2px 14px; font-size: 13px; }
  .pj-stats b { font-size: 20px; }
  /* 配平 */
  .eq-row { font-size: 21px; gap: 4px 6px; padding: 0; }
  .stepper button { width: 28px; height: 22px; font-size: 14px; }
  .eq-molecules { min-height: 44px; margin: 6px 0; padding: 6px; gap: 6px; }
  .atom { width: 18px; font-size: 10px; }
  .eq-count { font-size: 13px; }
  .eq-count :is(th, td) { padding: 2px 6px; }

  /* 影片區 */
  .how-head { margin-bottom: 18px; }
  .how-head > p { font-size: 15px; }
  .theater { border-radius: 16px; }
  .theater-play { gap: 0; background: linear-gradient(180deg, transparent 40%, rgba(253, 249, 240, .45)); }
  .play-ring { width: 58px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .7), 0 8px 18px rgba(31, 42, 55, .25); }
  .play-text { display: none; }
  .theater-title { padding: 12px 14px 10px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
  .theater-title b { font-size: 16px; }
  .theater-title span { font-size: 12px; }
  .theater-title span::after { content: ' · 3:15'; }
  /* 段落：改成可以左右滑的小卡片，不再是長長一串 */
  .theater-chapters { display: flex; grid-template-columns: none; gap: 8px; overflow-x: auto; padding: 10px 14px 14px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .theater-chapters::-webkit-scrollbar { display: none; }
  .theater-chapters li { flex: 0 0 auto; scroll-snap-align: start; }
  .theater-chapters button { display: grid; grid-template-columns: none; gap: 2px; width: 148px; min-height: 64px; align-content: start; padding: 8px 11px; border: 1px solid #e8e0cf; border-radius: 12px; background: #fff; font-size: 13.5px; line-height: 1.4; }
  .theater-chapters time { font-size: 12px; }
}
