/* ===== 古詩詞就醬學 landing page（沿用 app.css 的色彩變數與元件） ===== */
body.lp { background: var(--paper); }
.lp-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .lp-wrap { padding: 0 28px; } }
.lp-narrow { max-width: 760px; }
.lp-center { text-align: center; }

/* 導覽列 */
.lp-nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.lp-nav-in { height: 60px; display: flex; align-items: center; gap: 12px; }
.lp-links { display: none; gap: 4px; margin-left: 12px; }
.lp-links a { text-decoration: none; color: var(--ink-2); padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 15px; }
.lp-links a:hover { background: var(--paper-2); color: var(--seal); }
@media (min-width: 768px) { .lp-links { display: flex; } }
.lp-nav-cta { margin-left: auto; }

/* Hero */
.lp-hero { position: relative; overflow: hidden; padding: 40px 0 48px; }
.lp-hero-art { position: absolute; inset: 0; opacity: .55; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 98%); mask-image: linear-gradient(to bottom, #000 40%, transparent 98%); }
.lp-hero-in { position: relative; display: grid; gap: 28px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .lp-hero { padding: 72px 0 88px; } .lp-hero-in { grid-template-columns: 1.15fr .85fr; gap: 48px; } }
.lp-kicker { color: var(--seal); font-weight: 700; letter-spacing: .08em; font-size: 14px; margin-bottom: 10px; }
.lp-hero h1 { font-size: clamp(40px, 9vw, 72px); line-height: 1.12; letter-spacing: .06em; text-shadow: 0 0 18px var(--paper); }
.lp-lead { font-size: clamp(17px, 2.2vw, 20px); line-height: 1.8; color: var(--ink-2); margin-top: 18px; max-width: 34em; text-shadow: 0 0 12px var(--paper); }
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.lp-btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.lp-note { margin-top: 14px; color: var(--ink-3); font-size: 14px; }

.lp-demo { display: block; text-decoration: none; color: inherit; padding: 20px; background: color-mix(in srgb, var(--card) 94%, transparent); max-width: 460px; width: 100%; justify-self: center; transform: rotate(-1deg); transition: transform .2s; }
.lp-demo:hover { transform: rotate(0) translateY(-2px); }
.lp-demo-head { display: flex; align-items: center; gap: 12px; }
.lp-demo-head .badge { margin-left: auto; }
.lp-demo-title { font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: .08em; }
.lp-demo-body { margin-top: 14px; font-size: 19px; border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2); padding: 14px 0; }
.lp-demo-foot { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; color: var(--ink-2); }
.lp-chip-note { font-family: var(--serif); font-weight: 700; color: var(--seal); border-bottom: 2px dotted var(--seal); }

/* 數字 */
.lp-stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.lp-stats-in { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.lp-stats-in > div { padding: 22px 8px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.lp-stats-in strong { font-family: var(--serif); font-size: clamp(28px, 5vw, 40px); color: var(--seal); line-height: 1.2; font-variant-numeric: tabular-nums; }
.lp-stats-in span { color: var(--ink-3); font-size: 14px; }
@media (min-width: 768px) { .lp-stats-in { grid-template-columns: repeat(4, 1fr); } .lp-stats-in > div + div { border-left: 1px solid var(--line); } }

/* 區塊 */
.lp-section { padding: 56px 0; }
@media (min-width: 768px) { .lp-section { padding: 88px 0; } }
.lp-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-h2 { font-size: clamp(28px, 4.5vw, 40px); letter-spacing: .06em; }
.lp-sub { color: var(--ink-2); margin-top: 10px; font-size: 17px; line-height: 1.8; }
.lp-features { display: grid; gap: 14px; margin-top: 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .lp-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lp-features { grid-template-columns: repeat(3, 1fr); } }
.lp-feature { padding: 22px; }
.lp-feature h3 { font-size: 19px; margin-top: 12px; }
.lp-feature p { color: var(--ink-2); line-height: 1.8; margin-top: 6px; }
.lp-seal { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--seal); color: var(--on-seal); font-family: var(--serif); font-weight: 700; font-size: 22px; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--on-seal) 55%, transparent); }
.lp-steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 12px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 768px) { .lp-steps { grid-template-columns: repeat(4, 1fr); } }
.lp-steps li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.lp-steps li div { display: flex; flex-direction: column; }
.lp-steps li span:not(.lp-step-seal) { color: var(--ink-3); font-size: 14px; }
.lp-step-seal { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 2px solid var(--seal); color: var(--seal); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 18px; }

/* 朝代長廊 */
.lp-dyn { display: grid; gap: 14px; margin-top: 32px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .lp-dyn { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lp-dyn { grid-template-columns: repeat(4, 1fr); } }
a.card.lp-dyn-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.lp-dyn-art { height: 120px; border-bottom: 1px solid var(--line); }
.lp-dyn-body { padding: 14px 16px 16px; }
.lp-dyn-name { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.lp-dyn-line { font-family: var(--serif); color: var(--ink-2); margin: 6px 0 4px; line-height: 1.7; }

/* 詩人 */
.lp-poets { display: grid; gap: 10px; margin: 32px 0 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .lp-poets { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .lp-poets { grid-template-columns: repeat(6, 1fr); } }
.lp-poet { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border-radius: var(--radius); text-decoration: none; color: inherit; text-align: center; transition: background .15s; }
.lp-poet:hover { background: var(--paper-2); }
.lp-poet strong { font-family: var(--serif); font-size: 18px; margin-top: 6px; }
.lp-poet .portrait { width: 96px; height: 96px; }
@media (min-width: 900px) { .lp-poet .portrait { width: 112px; height: 112px; } }

/* 給老師 */
.lp-teacher { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-teacher-in { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .lp-teacher-in { grid-template-columns: 1.1fr .9fr; gap: 48px; } }
.lp-checks { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 12px; }
.lp-checks li { position: relative; padding-left: 30px; line-height: 1.8; color: var(--ink-2); }
.lp-checks li::before { content: '✓'; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--jade); color: var(--card); display: grid; place-items: center; font-size: 12px; font-weight: 700; line-height: 1; }
.lp-checks strong { color: var(--ink); }
.lp-hero-art .art-seal { display: none; }
.lp-mock { padding: 20px; max-width: 460px; width: 100%; justify-self: center; transform: rotate(1deg); }
.lp-mock-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-family: var(--serif); font-size: 18px; }
.lp-mock-list { margin-top: 12px; display: grid; }
.lp-mock-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.lp-mock-item .grow { flex: 1; min-width: 0; }
.lp-mock-item .title { font-family: var(--serif); font-weight: 700; }
.lp-mock-item .sub { color: var(--ink-3); font-size: 13px; }

/* FAQ */
.lp-faq { margin-top: 24px; display: grid; gap: 10px; }
.lp-faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; }
.lp-faq summary { cursor: pointer; min-height: 56px; display: flex; align-items: center; font-weight: 600; font-size: 17px; list-style: none; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '＋'; margin-left: auto; color: var(--seal); font-weight: 700; }
.lp-faq details[open] summary::after { content: '－'; }
.lp-faq details p { color: var(--ink-2); line-height: 1.8; padding-bottom: 16px; }

/* 結尾 */
.lp-final { padding: 64px 0 72px; background: linear-gradient(180deg, var(--paper), var(--paper-2)); border-top: 1px solid var(--line); }
.lp-final .btn { margin-top: 22px; }
.lp-footer { border-top: 1px solid var(--line); padding: 20px 0 28px; }
.lp-footer-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; justify-content: space-between; }
.lp-footer .lp-links { display: flex; margin-left: 0; flex-wrap: wrap; }
