/* The landing page (welcome.html). Tokens only — colours, sizes and durations come from tokens.css (design gate). */
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: var(--fs-md); line-height: 1.55; }
.lp { max-width: 1080px; margin: 0 auto; padding: var(--s5) var(--s4) var(--s7); }
.lp-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s4); }
.lp-brand { color: var(--ink); font-weight: var(--fw-bold); text-decoration: none; }
.lp-switch, .lp-levels button { font: inherit; font-size: var(--fs-sm); background: var(--wash); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-pill); padding: var(--s1) var(--s3); cursor: pointer; transition: background var(--t-fast) var(--ease); }
.lp-levels { display: flex; gap: var(--s1); flex-wrap: wrap; }
.lp-levels button[aria-selected="true"] { background: var(--done); color: var(--on-color); border-color: var(--done); }
.lp-lang { display: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-card); padding: var(--s5); }
.lp[data-lang="en"] .lp-lang[data-lang="en"], .lp[data-lang="zh"] .lp-lang[data-lang="zh"] { display: block; }
.lp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s3); flex-wrap: wrap; }
.lp-head h1 { font-size: var(--fs-xl); margin: 0; }
.lp-stage { display: flex; flex-direction: column; align-items: center; gap: var(--s5); margin-top: var(--s4); }
.lp-figure { margin: 0; width: 100%; max-width: 640px; transition: max-width var(--t-slow) var(--ease-out); }
.lp-figure svg { display: block; width: 100%; height: auto; }
.lp-l1, .lp-l2, .lp-l3 { display: none; width: 100%; }
.lp[data-level="1"] .lp-l1, .lp[data-level="2"] .lp-l2, .lp[data-level="3"] .lp-l3 { display: block; animation: lp-fade var(--t-slow) var(--ease-out) both; }
.lp-l1 { text-align: center; }
.lp-tag { font-size: var(--fs-lg); margin: 0 0 var(--s3); }
.lp-chip { display: inline-block; font-size: var(--fs-sm); color: var(--mute); background: var(--wash); border-radius: var(--r-pill); padding: var(--s1) var(--s3); margin: 0; }
.lp-btn { display: inline-block; background: var(--focus); color: var(--on-color); font-weight: var(--fw-medium); text-decoration: none; border-radius: var(--r-pill); padding: var(--s2) var(--s5); transition: box-shadow var(--t-fast) var(--ease); }
.lp-btn:hover { box-shadow: var(--sh-lift); }
/* level 2: picture beside three acts, each with its own picture panel */
.lp[data-level="2"] .lp-stage { flex-direction: row; align-items: flex-start; }
.lp[data-level="2"] .lp-figure { max-width: 48%; }
.lp-l2 { display: none; }
.lp[data-level="2"] .lp-l2 { display: grid; gap: var(--s3); }
.lp-act { display: flex; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.lp-act .lp-pic { width: 34%; min-height: 96px; display: flex; align-items: center; justify-content: center; font-size: var(--fs-xl); letter-spacing: var(--s1); }
.lp-act-text { padding: var(--s3); }
.lp-act h3, .lp-row h3, .lp-l3 h3 { font-size: var(--fs-md); margin: 0 0 var(--s1); }
.lp-act p { margin: 0; font-size: var(--fs-sm); color: var(--mute); }
.lp-honest { font-size: var(--fs-sm); color: var(--mute); background: var(--wash); border-radius: var(--r-md); padding: var(--s2) var(--s3); }
.lp-cta-row { text-align: center; margin: 0; }
/* level 3: the whole method; every step keeps a picture panel (≈ 30% of the row) */
.lp[data-level="3"] .lp-figure { max-width: 300px; }
.lp-l3 > * + * { margin-top: var(--s3); }
.lp-row { display: flex; gap: var(--s3); }
.lp-row .lp-pic { width: 30%; flex-shrink: 0; border-radius: var(--r-md); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: var(--fs-xxl); color: var(--on-color); }
.lp-row .lp-pic small { font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.lp-row p { margin: 0; }
.lp-short { font-weight: var(--fw-regular); color: var(--mute); font-size: var(--fs-sm); }
.lp-l3 ul { margin: 0; padding-left: var(--s5); }
/* the picture */
.lp-track { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 3 7; }
.lp-node { animation: lp-light var(--t-slow) var(--ease-out) both; animation-delay: calc(var(--t-stagger) * var(--i) * 4); }
.lp-icon { font-size: 24px; }
.lp-label { font-size: 13px; font-weight: var(--fw-medium); fill: var(--ink); }
.lp-centre { font-size: 26px; font-weight: var(--fw-bold); fill: var(--ink); }
.lp-centre-sub { font-size: 13px; fill: var(--mute); }
.lp-baton { fill: var(--focus); }
.lp-orbit { animation: lp-spin calc(var(--t-reveal) * 10) linear infinite; }
.lp-handoff { fill: none; stroke: var(--focus); stroke-width: 2.5; stroke-dasharray: 6 6; animation: lp-flow calc(var(--t-reveal) * 2) linear infinite; }
.lp-arrowhead { fill: var(--focus); }
.lp-next { fill: var(--wash); stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 3 6; }
.lp-next-label { font-size: 14px; font-weight: var(--fw-medium); fill: var(--mute); }
@keyframes lp-light { from { opacity: .2; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes lp-spin { to { transform: rotate(360deg); } }
@keyframes lp-flow { to { stroke-dashoffset: -24; } }
@keyframes lp-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .lp[data-level="2"] .lp-stage { flex-direction: column; }
  .lp[data-level="2"] .lp-figure { max-width: 100%; }
  .lp[data-level="3"] .lp-figure { max-width: 220px; }
  .lp-lang { padding: var(--s4); }
}
.lp-row .lp-pic-soft { background: var(--wash); color: var(--ink); }
.lp-row section { min-width: 0; }
@media (max-width: 720px) {
  .lp-tag { font-size: var(--fs-sm); margin-bottom: var(--s2); }
  .lp-l1 p { margin: 0 0 var(--s2); }
  .lp-chip { font-size: var(--fs-xs); }
  .lp-btn { padding: var(--s2) var(--s4); font-size: var(--fs-sm); }
  .lp-act { flex-direction: column; }
  .lp-act .lp-pic { width: 100%; min-height: 110px; font-size: var(--fs-xxl); }
  .lp-act-text { padding: var(--s2) var(--s3); }
}
