:root{--paper:#f6f4eb;--ink:#233c32;--green:#305e4e;--muted:#647369;--line:#d9dfd4;--gold:#9a7549;--serif:'Songti SC','STSong','Noto Serif CJK SC',serif;--sans:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:30px}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.8 var(--sans);-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}a:hover{color:var(--green);text-decoration:underline;text-underline-offset:5px}a:focus-visible{outline:2px solid var(--green);outline-offset:6px;border-radius:3px}img{display:block;max-width:100%;height:auto}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--serif);font-weight:500}.shell{max-width:1280px;padding:0 60px;margin:auto}.skip{position:absolute;left:16px;top:-90px;z-index:5;padding:8px 16px;background:var(--ink);color:white}.skip:focus{top:12px}header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px 0;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;white-space:nowrap}.brand>span:first-of-type{font:26px var(--serif);letter-spacing:5px}.brand img,.closing-icon{width:40px;height:40px;border-radius:22%;flex-shrink:0;box-shadow:0 3px 10px #233c3224;outline:1px solid #233c3212;outline-offset:-1px}.brand-note{margin-left:12px;padding-left:24px;border-left:1px solid var(--line);font-size:12px;color:var(--muted);letter-spacing:2px}header nav{display:flex;gap:26px;font-size:13px}nav [aria-current=page]{color:var(--green);text-decoration:underline;text-underline-offset:7px}.hero{display:grid;grid-template-columns:1.15fr 1fr;gap:60px;align-items:center;padding:78px 0 90px;min-height:800px}.eyebrow{color:var(--gold);font-size:12px;letter-spacing:4px;margin-bottom:24px}.hero h1{font-size:clamp(48px,5.7vw,77px);line-height:1.38;letter-spacing:2px}.hero h1 span{color:var(--green)}.intro{margin-top:28px;font-size:17px;line-height:2.1;color:var(--muted)}.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:38px} .app-store-link{display:inline-flex;width:164px;line-height:0;border-radius:9px}.app-store-link img{width:164px;height:auto}.app-store-link:focus-visible{outline-offset:5px}.button{display:inline-flex;gap:28px;justify-content:space-between;background:var(--green);color:white;padding:13px 24px;border-radius:8px;font-size:14px}.button.journey-button{width:164px;height:60px;align-items:center;justify-content:center;gap:14px;padding:0;font-size:16px;border-radius:9px;background:transparent;color:var(--green);box-shadow:inset 0 0 0 1px #9fb5a6}.button.journey-button:hover{background:#e6ece8;color:var(--ink)}.button:hover{background:var(--ink);color:white;text-decoration:none}.text-link{font-size:13px;color:var(--green);display:inline-flex;gap:20px;align-items:center}.release-note{font-size:13px;display:flex;align-items:center;gap:10px}.status-dot{width:6px;height:6px;border-radius:50%;background:var(--green)}.quiet-facts{display:flex;gap:0;margin-top:48px;font-size:12px;color:var(--muted)}.quiet-facts span+span{padding-left:18px;margin-left:18px;border-left:1px solid var(--line)}.hero-visual{position:relative;display:flex;flex-direction:column;align-items:center;padding:14px 0 0;background:radial-gradient(ellipse at 50% 45%,#dce3d5 0,transparent 68%)}.phone{width:272px;border:7px solid #254135;border-radius:39px;overflow:hidden;background:var(--paper);box-shadow:18px 28px 40px -20px #233c3238;transform:rotate(3deg)}.phone img{width:100%;aspect-ratio:1206/2622}.vertical-note{position:absolute;left:0;top:14%;writing-mode:vertical-rl;font:14px var(--serif);letter-spacing:6px;color:var(--gold)}.visual-caption{font-size:11px;color:var(--muted);letter-spacing:1px;margin-top:28px}.journey{padding:80px 0 95px;border-top:1px solid var(--line)}.section-heading{display:grid;grid-template-columns:1fr 1fr;column-gap:70px;align-items:end}.section-heading .eyebrow{grid-column:1/-1}.section-heading h2,.privacy-band h2{font-size:38px;line-height:1.6}.section-heading>p:last-child{color:var(--muted);font-size:14px;padding-bottom:10px}.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:30px;margin-top:56px}.steps article{padding-top:24px;border-top:1px solid #a7b8a7}.step-number{font:11px var(--sans);color:var(--gold);letter-spacing:2px}.steps h3{font-size:21px;margin:18px 0 14px}.steps p{font-size:13px;line-height:1.95;color:var(--muted)}.privacy-band{display:grid;grid-template-columns:1fr 1fr;gap:70px;background:#e9ede3;border-radius:4px;padding:50px 55px;margin-bottom:35px}.privacy-band>div:last-child{font-size:14px;color:#52665a;padding-top:18px}.privacy-band p+p{margin-top:15px}.privacy-band .text-link{margin-top:24px}.closing{text-align:center;padding:80px 20px 100px}.closing-icon{width:56px;height:56px;margin:0 auto 24px}.closing h2{font-size:34px;letter-spacing:3px}.closing p{font-size:13px;color:var(--muted);margin:22px 0}.closing-actions{display:flex;justify-content:center;margin-top:30px}.closing .text-link{margin-top:6px}footer{display:flex;justify-content:space-between;align-items:flex-end;border-top:1px solid var(--line);padding:30px 0 38px;gap:30px}.footer-brand{font:24px var(--serif);letter-spacing:4px}.footer-brand span{display:block;font:11px var(--sans);letter-spacing:1px;color:var(--muted);margin-top:12px}.footer-links{display:flex;gap:22px;flex-wrap:wrap;font-size:11px;color:var(--muted)}.footer-legal{font-size:10px;line-height:1.5;color:var(--muted);max-width:260px;margin-left:auto}.document-heading{padding:70px 0 45px;border-bottom:1px solid var(--line);max-width:900px}.document-heading h1{font-size:46px;margin-bottom:20px;letter-spacing:4px}.document-heading>p:not(.eyebrow){font-size:14px;color:var(--muted);max-width:650px}.document-heading .document-date{margin-top:18px;font-size:12px}.document-grid{display:grid;grid-template-columns:210px minmax(0,690px);gap:55px;padding:45px 0 90px}.document aside nav{position:sticky;top:25px;display:flex;flex-direction:column;gap:12px;font-size:12px;color:var(--muted)}.prose{font-size:15px;line-height:2;overflow-wrap:anywhere}.prose section+section{margin-top:38px}.prose h2{font-size:24px;margin-bottom:14px}.prose p+p{margin-top:14px}.prose a{color:var(--green);text-decoration:underline;text-underline-offset:4px}.document-contact{border-top:1px solid var(--line);padding-top:28px;margin-top:40px}.not-found{padding:100px 0;min-height:60vh}.not-found h1{font-size:40px}.not-found p{margin:20px 0}.not-found a{margin-top:15px}@media(min-width:1400px){.hero{gap:100px}}@media(max-width:1000px){.shell{padding:0 36px}.brand-note{display:none}.hero{gap:25px;min-height:740px}.hero h1{font-size:58px}.phone{width:245px}.vertical-note{left:-5px}.steps{grid-template-columns:1fr 1fr;gap:35px}.privacy-band{padding:40px 36px;gap:40px}.section-heading{column-gap:35px}.document-grid{grid-template-columns:160px minmax(0,1fr);gap:35px}.footer-links{max-width:330px;justify-content:flex-end}}@media(max-width:640px){.shell{padding:0 22px}header{padding:20px 0;align-items:flex-start;gap:14px}.brand{gap:9px}.brand img{width:32px;height:32px}.brand>span:first-of-type{font-size:22px}header nav{gap:11px;font-size:11px;padding-top:7px}.hero{grid-template-columns:1fr;gap:42px;padding:52px 0;min-height:auto}.eyebrow{margin-bottom:20px;font-size:11px}.hero h1{font-size:51px}.intro{font-size:15px;margin-top:20px}.hero-actions{margin-top:25px}.hero-actions{gap:12px}.quiet-facts{margin-top:28px}.hero-visual{margin-top:0}.phone{width:235px;border-width:6px;transform:rotate(2deg)}.vertical-note{left:8%;top:15%}.visual-caption{font-size:10px}.journey{padding:50px 0}.section-heading{grid-template-columns:1fr;gap:20px}.section-heading .eyebrow{margin:0}.section-heading h2,.privacy-band h2{font-size:30px}.section-heading>p:last-child{font-size:13px}.steps{gap:27px 22px;margin-top:30px}.steps h3{font-size:19px;line-height:1.6}.steps p{font-size:12px}.privacy-band{grid-template-columns:1fr;gap:6px;padding:30px 24px}.privacy-band>div:last-child{font-size:13px}.closing{padding:55px 0 65px}.closing h2{font-size:26px;letter-spacing:1px}.closing p{font-size:12px}footer{align-items:flex-start;flex-direction:column;gap:25px}.footer-links{justify-content:flex-start;max-width:none;gap:16px}.footer-legal{margin-left:0}.document-heading{padding:45px 0 30px}.document-heading h1{font-size:36px}.document-grid{grid-template-columns:1fr;gap:30px;padding:25px 0 55px}.document aside nav{position:static;flex-direction:row;flex-wrap:wrap;gap:10px 18px;border-bottom:1px solid var(--line);padding-bottom:23px}.prose{font-size:14px}.prose h2{font-size:23px}.desktop-break{display:none}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}@media print{header,footer,.document aside{display:none}.shell{padding:0}.document-grid{display:block}.document-heading{padding-top:0}.prose{font-size:11pt;color:#000}.document-contact,section{break-inside:avoid}body{background:white}}

.pro-band{display:grid;grid-template-columns:1fr 1fr;gap:70px;padding:45px 0 55px;border-bottom:1px solid var(--line)}.pro-band h2{margin-bottom:16px}.pro-summary{padding:28px 32px;border:1px solid #cbd6c7;border-radius:14px}.pro-summary h3{font-size:26px;margin-bottom:14px}.pro-summary h3 span{font:11px var(--sans);color:var(--gold);border:1px solid #d3c2a9;border-radius:20px;padding:4px 9px;vertical-align:middle;margin-left:7px}.pro-summary .pro-note{font-size:12px;margin-top:12px}.pro-summary .text-link{margin-top:18px}
.story-chapter{display:grid;grid-template-columns:minmax(0,0.9fr) minmax(0,1.1fr);gap:75px;align-items:center;padding:100px 0 115px;border-top:1px solid var(--line)}.chapter-copy{min-width:0;position:relative;z-index:2;max-width:450px}.chapter-copy h2{font-size:clamp(36px,3.6vw,51px);line-height:1.5;letter-spacing:1px;margin-bottom:25px}.chapter-copy h2 em{font-style:normal;color:var(--green)}.chapter-copy>p:not(.eyebrow){font-size:14px;line-height:2.05;color:var(--muted);margin-top:16px}.chapter-copy>.chapter-intro{font-size:17px!important;color:var(--ink)!important;line-height:1.95!important}.chapter-copy>.chapter-aside{font-size:12px!important;padding-left:16px;border-left:1px solid #b7c6b3;margin-top:26px!important}.wish-stage,.source-stage,.family-stage{position:relative;min-width:0;height:665px}.stage-word{position:absolute;font:260px/1 var(--serif);color:#dce3d4;opacity:.7;user-select:none}.wish-stage .stage-word{right:5%;top:5%}.story-shot{margin:0;position:absolute;z-index:1}.story-shot a{display:block;overflow:hidden;border:6px solid #254135;border-radius:34px;background:var(--paper);box-shadow:10px 24px 35px -18px #233c3240}.story-shot img{width:100%;height:auto;display:block}.story-shot figcaption{font-size:11px;letter-spacing:1px;text-align:center;color:var(--muted);padding-top:14px}.story-shot a:focus-visible{outline-offset:8px}.shot-home{width:255px;left:0;top:0;transform:rotate(-5deg)}.shot-wishes{width:270px;right:-5px;top:110px;transform:rotate(4deg);z-index:2}.stage-note{position:absolute;left:5px;bottom:22px;font:15px var(--serif);color:var(--gold);letter-spacing:2px;writing-mode:vertical-rl}.wish-words{display:flex;flex-wrap:wrap;gap:13px;margin-top:27px}.wish-words span{display:inline-flex;align-items:center;justify-content:center;font:16px/1.25 var(--sans);color:var(--green);padding:9px 16px;border-radius:12px;background:#e6ece8}.source-chapter{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:55px;align-items:center;padding:68px 58px 55px;margin:15px -28px 70px;border-radius:28px;background:#1c4034;color:#f7f5ed;overflow:hidden}.source-chapter .chapter-copy{max-width:430px}.source-chapter .eyebrow{color:#c9b389}.source-chapter h2 em{color:#bfd3b1}.source-chapter .chapter-copy>p:not(.eyebrow){color:#c3d0c4}.source-chapter blockquote{margin:30px 0;padding:18px 0 18px 23px;border-left:1px solid #b9ceaa66}.source-chapter blockquote p{font:29px/1.65 var(--serif);letter-spacing:1px}.source-chapter cite{font-style:normal;font-size:11px;letter-spacing:2px;display:block;margin-top:12px;color:#b2c5b5}.source-spines{display:flex;gap:0;margin-top:27px;color:#dbe6d1;font:13px var(--serif);letter-spacing:2px}.source-spines span+span{border-left:1px solid #a7bca34d;padding-left:12px;margin-left:12px}.source-stage{height:690px}.source-stage .stage-word{right:-12px;top:0;color:#c8d7b9;opacity:.08}.shot-detail{width:282px;left:4px;top:0;transform:rotate(-3deg)}.shot-detail a{border-color:#d9dece}.source-chapter .story-shot figcaption{color:#c3d0c4}.shot-library{width:280px;right:-18px;bottom:0;transform:rotate(3deg);z-index:2}.shot-library a{height:240px;border-radius:24px;border-width:4px;border-color:#d9dece}.shot-library img{margin-top:-74px}.family-chapter{grid-template-columns:minmax(0,1.1fr) minmax(0,0.9fr);gap:90px;border-top:0;padding-top:40px}.family-stage{height:670px}.family-stage .stage-word{left:-20px;top:40px}.shot-candidates{width:270px;left:30px;top:0;transform:rotate(-4deg)}.shot-history{width:280px;right:0;bottom:5px;transform:rotate(4deg);z-index:2}.shot-history a{height:225px;border-width:4px;border-radius:24px}.shot-history img{margin-top:-75px}.family-stage .stage-note{left:5px;bottom:40px}.family-notes{margin-top:26px}.family-notes p{font-size:13px;line-height:1.95;color:var(--muted);border-top:1px solid var(--line);padding-top:17px;margin-top:17px}.family-notes span{display:block;font:17px var(--serif);color:var(--ink);margin-bottom:7px}.privacy-band{margin-top:15px}.pro-band h2{font-size:36px;line-height:1.6}.pro-band p{font-size:14px;color:var(--muted);line-height:2}@media(max-width:1100px){.story-chapter{gap:36px}.shot-home{width:225px}.shot-wishes{width:235px;top:145px}.source-chapter{padding:50px 35px;gap:28px;margin-left:0;margin-right:0}.shot-detail{width:245px}.shot-library{width:245px;right:-10px}.shot-candidates{width:245px;left:15px}.shot-history{width:245px}.chapter-copy h2{font-size:39px}.family-chapter{gap:45px}.source-chapter blockquote p{font-size:25px}}@media(max-width:800px){.story-chapter{grid-template-columns:minmax(0,1fr);padding:65px 0;gap:32px}.chapter-copy{max-width:570px}.chapter-copy h2{font-size:40px}.wish-stage{height:650px;width:500px;max-width:100%;margin:auto}.shot-home{width:255px}.shot-wishes{width:265px;top:100px}.source-chapter{grid-template-columns:minmax(0,1fr);gap:35px;padding:45px 35px;margin-bottom:30px}.source-chapter .chapter-copy{max-width:550px}.source-stage{width:460px;max-width:100%;margin:auto;height:660px}.shot-detail{width:280px;left:10px}.shot-library{width:275px;right:0}.family-chapter .chapter-copy{grid-row:1}.family-stage{width:480px;max-width:100%;margin:auto}.shot-candidates{width:280px;left:30px}.shot-history{width:280px}.family-chapter .chapter-copy h2 br{display:none}.pro-band{gap:28px}.pro-summary{padding:24px}}@media(max-width:640px){.story-chapter{padding:50px 0 60px}.chapter-copy h2{font-size:36px;margin-bottom:20px}.wish-chapter h2 br:nth-child(2){display:none}.chapter-copy>.chapter-intro{font-size:16px!important}.chapter-copy>p:not(.eyebrow){font-size:13px}.wish-stage{height:550px;margin-top:10px}.shot-home{width:68%;max-width:230px;left:4px;top:0}.source-chapter{padding:34px 22px 25px;border-radius:20px;margin:0 -5px 15px;gap:25px}.source-chapter h2{font-size:32px}.source-chapter blockquote{padding-left:15px;margin:22px 0}.source-chapter blockquote p{font-size:22px;letter-spacing:0}.source-spines{font-size:11px;letter-spacing:1px;flex-wrap:wrap;row-gap:10px}.source-spines span+span{padding-left:9px;margin-left:9px}.source-stage{height:595px}.shot-detail{width:82%;max-width:270px;left:7px}.shot-library a{height:200px}.family-stage{height:580px}.shot-candidates{width:78%;max-width:270px;left:14px}.shot-history a{height:200px}.family-stage .stage-note{left:2px;bottom:15px}.pro-band{grid-template-columns:1fr;gap:22px;padding:35px 0 45px}.pro-band h2{font-size:30px}.pro-band p{font-size:13px}.privacy-band{margin-top:0}}

.wish-stage .stage-note{left:-28px;bottom:60px}@media(max-width:640px){.stage-note{display:none}}


/* Chapter navigation and screenshot reading. */
.chapter-index {
  display: grid;
  grid-template-columns: 1fr repeat(5, auto);
  align-items: center;
  gap: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.index-label {
  font: 16px var(--serif);
  color: var(--muted);
  letter-spacing: 2px;
}
#birth h2 + p { margin-top: 20px; color: var(--muted); font-size: 14px; }
#birth h3 { font-size: 21px; line-height: 1.6; margin-bottom: 10px; }
#birth p + h3 { margin-top: 24px; }
.chapter-index a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 13px;
}
.chapter-index a span:first-child {
  color: var(--gold);
  font-size: 11px;
}
.chapter-index a span:last-child { margin-left: 8px; }
.screenshot-hint { display: none; }
.screenshot-stage:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 8px;
  border-radius: 6px;
}
.source-stage:focus-visible { outline-color: #bfd3b1; }
.story-shot:focus-within { z-index: 3; }
.source-chapter .story-shot a:focus-visible { outline-color: #bfd3b1; }
.family-chapter .chapter-copy { grid-column: 2; grid-row: 1; }
.family-stage { grid-column: 1; grid-row: 1; }
@media (hover: hover) {
  .story-shot:hover { z-index: 3; }
}
@media (max-width: 1000px) {
  .chapter-index { gap: 18px; }
  .index-label { display: none; }
  .chapter-index { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .family-chapter .chapter-copy { grid-column: 1; }
  .family-stage { grid-column: 1; grid-row: auto; }
}
@media (max-width: 640px) {
  header { flex-wrap: wrap; align-items: center; gap: 8px 16px; }
  header nav { flex-wrap: wrap; gap: 4px 14px; padding-top: 0; }
  header nav a, .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .hero h1 { font-size: clamp(40px, 12vw, 51px); }
  .chapter-index { gap: 0; padding: 12px 0; }
  .chapter-index a { flex-wrap: wrap; gap: 4px 8px; font-size: 12px; padding: 8px 10px; line-height: 1.6; }
  .chapter-index a + a { border-left: 1px solid var(--line); }
  .chapter-index a:nth-of-type(odd) { border-left: 0; }
  .chapter-index a span:first-child { width: 100%; }
  .chapter-index a span:last-child { display: none; }
  .chapter-copy h2 { font-size: clamp(28px, 8.2vw, 36px); }
  .wish-chapter h2 br:nth-child(2) { display: inline; }
  .wish-ending { white-space: nowrap; }
  .family-chapter .chapter-copy h2 br { display: inline; }
  .story-chapter, .source-chapter { row-gap: 20px; }
  .screenshot-hint {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 1px;
    margin-top: 8px;
  }
  .source-chapter .screenshot-hint { color: #c3d0c4; }
  .screenshot-stage {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(78%, 250px);
    align-items: start;
    gap: 18px;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 10px 8px 22px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 8px;
    scrollbar-width: thin;
    scrollbar-color: #9eaf9b transparent;
  }
  .screenshot-stage .stage-word, .screenshot-stage .stage-note { display: none; }
  .screenshot-stage .story-shot {
    position: static;
    width: 100%;
    max-width: none;
    min-width: 0;
    transform: none;
    scroll-snap-align: start;
  }
  .screenshot-stage .story-shot a {
    height: auto;
    border-width: 5px;
    border-radius: 30px;
    box-shadow: 0 8px 15px -12px #233c3255;
  }
  .screenshot-stage .story-shot img { margin: 0; }
  .screenshot-stage .story-shot figcaption { padding-top: 12px; }
  .family-chapter .chapter-copy { grid-row: auto; }
  .source-chapter { overflow: visible; }
  .source-stage { scrollbar-color: #9eb39c transparent; }
}

.single-screen-stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: auto;
  padding: 12px 0 24px;
}
.single-screen-stage .story-shot {
  position: relative;
  width: min(100%, 282px);
  left: auto;
  top: auto;
  transform: none;
}

/* 1.2: widgets and reminders chapter, balanced closing line, footer alignment. */
.closing h2 { text-wrap: balance; }
.closing h2 span { display: inline-block; }
.footer-links { align-items: center; }
.widget-chapter { border-top: 0; padding-top: 40px; }
.widget-stage {
  display: grid;
  gap: 28px;
  min-width: 0;
}
.widget-shot { margin: 0; width: min(100%, 430px); }
.widget-shot img { width: 100%; height: auto; filter: drop-shadow(0 14px 16px #233c3224); }
.widget-shot figcaption {
  font-size: 11px;
  letter-spacing: 1px;
  text-align: center;
  color: var(--muted);
  padding-top: 12px;
}
.widget-today { justify-self: start; }
.widget-notebook { justify-self: end; }
.widget-lock { justify-self: start; width: min(100%, 330px); margin-left: 40px; }
.lock-screen {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 26px 28px 30px;
  color: #f7f5ed;
  border-radius: 24px;
  background: linear-gradient(160deg, #305e4e, #1c4034);
  box-shadow: 10px 20px 30px -18px #233c3260;
}
.lock-time { font: 200 64px/1 var(--sans); letter-spacing: 1px; }
.lock-widget {
  display: grid;
  width: 172px;
  padding: 10px 14px;
  border-radius: 18px;
  background: #ffffff1f;
  font-family: var(--sans);
}
.lock-widget b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.lock-widget strong { font: 600 30px/1.2 var(--serif); }
.lock-widget small { font: 600 15px var(--sans); margin-left: 4px; }
@media (max-width: 1000px) {
  .chapter-index a:last-child { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .widget-stage { width: 480px; max-width: 100%; margin: auto; }
}
@media (max-width: 640px) {
  .widget-chapter { padding-top: 20px; }
  .widget-stage { gap: 22px; }
  .widget-shot, .widget-lock { width: 100%; justify-self: stretch; margin-left: 0; }
  .lock-screen { padding: 20px; border-radius: 20px; }
}

/* ---------- Header + hero: compact, copy left, one screenshot right ---------- */
header { padding: 20px 0; }
html { scroll-padding-top: 24px; }
html, body { overflow-x: clip; }
.hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding: 40px 0 64px; min-height: 0; }
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 { font-size: clamp(44px, 4.6vw, 66px); line-height: 1.32; }
.intro { margin-top: 22px; font-size: 16px; line-height: 1.95; }
.hero-actions { margin-top: 30px; }
.quiet-facts { margin-top: 28px; }
.hero-visual { padding: 0; background: radial-gradient(ellipse 70% 60% at 50% 48%, #dfe6d8 0, transparent 70%); }
.hero .phone { width: 280px; transform: none; border-width: 8px; border-radius: 44px; box-shadow: 0 40px 70px -30px #233c3266, 0 2px 6px #233c3214; }
.visual-caption { margin-top: 24px; }
@media (max-width: 1000px) { .hero { gap: 28px; } .hero h1 { font-size: 50px; } .hero .phone { width: 250px; } }
@media (max-width: 640px) {
  header { padding: 16px 0; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 28px 0 40px; }
  .hero h1 { font-size: clamp(40px, 12vw, 51px); }
  .intro { font-size: 15px; margin-top: 18px; }
  .hero-actions { margin-top: 24px; }
  .quiet-facts { margin-top: 22px; }
  .hero .phone { width: 236px; border-width: 6px; border-radius: 36px; }
}

/* ---------- Chapter nav: side rail on desktop, sticky bar on phones ---------- */
.local-links a span { white-space: nowrap; }
.local-links a:hover { text-decoration: none; }
@media (min-width: 1360px) {
  .local-nav { position: fixed; left: 18px; top: 50%; translate: 0 -50%; z-index: 30; }
  .local-title, .local-cta { display: none; }
  .local-links { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 980px; background: color-mix(in srgb, var(--paper) 78%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 0 0 1px #233c3214, 0 10px 30px -14px #233c3240; }
  .local-links a { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--muted); transition: background-color .25s, color .25s; }
  .local-links .num { font-size: 10px; letter-spacing: .5px; }
  .local-links .label { position: absolute; left: calc(100% + 16px); top: 50%; translate: -6px -50%; padding: 3px 12px; border-radius: 980px; font-size: 12px; color: var(--ink); background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 0 0 1px #233c3214; opacity: 0; pointer-events: none; transition: opacity .25s, translate .25s; }
  .local-links a:hover, .local-links a:focus-visible { background: #233c3214; color: var(--ink); }
  .local-links a:hover .label, .local-links a:focus-visible .label { opacity: 1; translate: 0 -50%; }
}
@media (max-width: 1359px) {
  .local-nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 50px; margin: 0 -36px; padding: 0 36px; background: color-mix(in srgb, var(--paper) 80%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid #233c3214; }
  .local-title { display: none; }
  .local-links { display: flex; gap: 2px; min-width: 0; margin-left: -10px; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .local-links::-webkit-scrollbar { display: none; }
  .local-links a { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px; border-radius: 980px; font-size: 12px; color: var(--muted); transition: background-color .25s, color .25s; }
  .local-links .num { font-size: 10px; color: var(--gold); }
  .local-cta { flex-shrink: 0; margin-left: auto; padding: 4px 14px; border-radius: 980px; background: var(--green); color: white; font-size: 12px; line-height: 1.8; }
  .local-cta:hover { background: var(--ink); color: white; text-decoration: none; }
  html { scroll-padding-top: 66px; }
  body:has(.local-nav) header { border-bottom: 0; padding-bottom: 6px; }
}
@media (min-width: 1001px) and (max-width: 1359px) { .local-nav { margin: 0 calc(-60px - max(0px, (100vw - 1280px) / 2)); padding: 0 calc(60px + max(0px, (100vw - 1280px) / 2)); } .local-links { mask-image: none; -webkit-mask-image: none; } }
@media (max-width: 640px) { .local-nav { margin: 0 -22px; padding: 0 22px; } }

/* ---------- Motion: load transitions + scroll-driven reveals (CSS only) ---------- */
@keyframes rise { from { opacity: 0; translate: 0 28px; } }
@keyframes fade { from { opacity: 0; } }
@keyframes phone-rise { from { opacity: 0; translate: 0 70px; scale: .96; } }
@keyframes reveal { from { opacity: 0; translate: 0 56px; } }
@keyframes reveal-shot { from { opacity: 0; translate: 0 110px; scale: .92; } }
@keyframes drift { from { translate: 0 60px; } to { translate: 0 -60px; } }
@keyframes rail-in { from { opacity: 0; visibility: hidden; } }
@keyframes spy { from, to { background: var(--green); color: white; } }
@keyframes spy-num { from, to { color: white; } }
@keyframes spy-label { from, to { opacity: 1; translate: 0 -50%; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .07s; }
  .hero-copy > :nth-child(3) { animation-delay: .14s; }
  .hero-copy > :nth-child(4) { animation-delay: .22s; }
  .hero-copy > :nth-child(5) { animation-delay: .3s; }
  .hero .phone { animation: phone-rise 1.2s .25s cubic-bezier(.16, .8, .2, 1) both; }
  .visual-caption { animation: fade 1s .9s both; }
  .button, .app-store-link, .local-cta { transition: color .2s, background-color .2s, scale .25s cubic-bezier(.2, .7, .2, 1); }
  .app-store-link:hover, .journey-button:hover, .local-cta:hover { scale: 1.03; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .chapter-copy > *, .privacy-band > div, .pro-band > div, .closing > * { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .story-shot, .widget-shot { animation: reveal-shot linear both; animation-timeline: view(); animation-range: entry 0% entry 85%; }
    .shot-wishes, .widget-notebook { animation-range: entry 10% entry 95%; }
    .widget-lock { animation-range: entry 20% entry 100%; }
    .stage-word { animation: drift linear both; animation-timeline: view(); }
    .stage-note { animation: reveal linear both; animation-timeline: view(); animation-range: entry 30% entry 100%; }
  }
}
/* Scroll-spy (not motion: it only marks the chapter crossing mid-screen). */
@supports (animation-timeline: view()) {
  main { timeline-scope: --hero, --c1, --c2, --c3, --c4, --c5, --c6; }
  .hero { view-timeline: --hero block; }
  #birth { view-timeline: --c1 block; }
  #journey { view-timeline: --c2 block; }
  #sources { view-timeline: --c3 block; }
  #family { view-timeline: --c4 block; }
  #chosen { view-timeline: --c5 block; }
  #widgets { view-timeline: --c6 block; }
  #birth, #journey, #sources, #family, #chosen, #widgets { view-timeline-inset: 45% 54%; }
  .local-links a:nth-child(1) { --t: --c1; }
  .local-links a:nth-child(2) { --t: --c2; }
  .local-links a:nth-child(3) { --t: --c3; }
  .local-links a:nth-child(4) { --t: --c4; }
  .local-links a:nth-child(5) { --t: --c5; }
  .local-links a:nth-child(6) { --t: --c6; }
  .local-links a { animation: spy linear none; animation-timeline: var(--t); }
  .local-links a .num { animation: spy-num linear none; animation-timeline: var(--t); }
  @media (min-width: 1360px) {
    /* The rail appears once the hero has mostly scrolled away. */
    .local-nav { animation: rail-in linear both; animation-timeline: --hero; animation-range: exit 40% exit 80%; }
  }
  @media (min-width: 1500px) {
    .local-links a .label { animation: spy-label linear none; animation-timeline: var(--t); }
  }
}

/* Feature matrix and changelog. */
.matrix { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14px; line-height: 1.7; }
.matrix th, .matrix td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.matrix thead th { font: 12px var(--sans); color: var(--muted); letter-spacing: 1px; padding-top: 0; white-space: nowrap; }
.matrix tbody th { font: 500 15px var(--serif); white-space: nowrap; }
.matrix td { color: var(--muted); }
.matrix td:nth-child(3), .matrix td:nth-child(4) { white-space: nowrap; padding-right: 0; }
.tier, .since { font-size: 12px; color: var(--ink); }
.tier-limit { color: var(--green); }
.tier-pro, .since-new { color: var(--gold); }
.since-new { border: 1px solid #d3c2a9; border-radius: 20px; padding: 2px 8px; }
.release-meta { font-size: 13px; color: var(--muted); }
.prose ul { margin: 14px 0 0; padding-left: 1.2em; }
.prose li + li { margin-top: 8px; }
p.document-contact a { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 640px) {
  .matrix thead { display: none; }
  .matrix, .matrix tbody, .matrix tr { display: block; }
  .matrix tr { display: grid; grid-template-columns: 1fr auto auto; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .matrix th, .matrix td { padding: 0; border: 0; }
  .matrix tbody th { grid-column: 1; }
  .matrix td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: 13px; }
  .matrix td:nth-child(3) { grid-column: 2; grid-row: 1; }
  .matrix td:nth-child(4) { grid-column: 3; grid-row: 1; }
}
@media (min-width: 641px) {
  .matrix { table-layout: fixed; }
  .matrix thead th:nth-child(1) { width: 9em; }
  .matrix thead th:nth-child(3) { width: 4.5em; }
  .matrix thead th:nth-child(4) { width: 8em; }
  .matrix tbody th { white-space: normal; }
}

/* 1.3: what's new banner, the shortlist image and the 定名 chapter. */
.whats-new { display: flex; align-items: center; gap: 14px; width: fit-content; max-width: 100%; margin: 22px 0 0; padding: 6px 16px 6px 6px; border-radius: 980px; background: #e9ede3; font-size: 13px; line-height: 1.6; color: var(--ink); }
.whats-new:hover { text-decoration: none; background: #e1e8dc; color: var(--ink); }
.whats-new-tag { flex-shrink: 0; padding: 2px 10px; border-radius: 980px; background: var(--green); color: white; font-size: 12px; letter-spacing: 1px; }
.whats-new-text { min-width: 0; }
.whats-new-more { flex-shrink: 0; color: var(--green); }
.paper-shot a { border: 0; border-radius: 6px; background: transparent; box-shadow: 0 22px 40px -22px #233c3266, 0 1px 3px #233c3226; }
.shot-shortlist { width: 300px; right: -10px; bottom: 30px; transform: rotate(4deg); z-index: 2; }
.chosen-chapter { border-top: 0; padding-top: 40px; }
.chosen-stage { position: relative; min-width: 0; height: 680px; }
.chosen-stage .stage-word { right: -10px; top: 0; }
.shot-chosen { width: 262px; left: 0; top: 30px; transform: rotate(-4deg); }
.keep-night { width: 215px; right: 0; top: 0; transform: rotate(5deg); }
.keep-plain { width: 235px; right: 70px; top: 215px; transform: rotate(-2deg); z-index: 2; }
.keep-vermilion, .keep-minimal { display: none; }
.chosen-stage .stage-note { left: auto; right: -6px; bottom: 30px; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .keep-plain, .shot-shortlist { animation-range: entry 10% entry 95%; }
  }
}
@media (max-width: 1100px) {
  .shot-chosen { width: 235px; }
  .keep-night { width: 190px; }
  .keep-plain { width: 210px; right: 40px; top: 230px; }
  .shot-shortlist { width: 260px; }
}
@media (max-width: 1000px) {
  .whats-new-detail { display: none; }
}
@media (max-width: 800px) {
  .chosen-stage { width: 500px; max-width: 100%; margin: auto; }
  .shot-chosen { width: 255px; }
  .keep-night { width: 200px; }
  .keep-plain { width: 225px; right: 30px; }
}
@media (max-width: 640px) {
  .chosen-stage { height: auto; }
  .whats-new { margin-top: 14px; gap: 10px; padding-right: 12px; font-size: 12px; }
  .whats-new-more { display: none; }
  .chosen-chapter { padding-top: 20px; }
  .screenshot-stage .keep-vermilion, .screenshot-stage .keep-minimal { display: block; }
  .screenshot-stage .paper-shot a { border-radius: 4px; box-shadow: 0 8px 15px -12px #233c3255, 0 1px 3px #233c3220; }
}

/* 1.3: Traditional pages under /zh-Hant use Traditional Chinese fonts; the language switch sits at the end of both link rows. */
html:lang(zh-Hant) { --serif: 'Songti TC', 'Noto Serif CJK TC', serif; --sans: -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Microsoft JhengHei', sans-serif; }
.lang-switch { color: var(--muted); }
header nav .lang-switch { padding-left: 20px; border-left: 1px solid var(--line); }
.document-heading > p.document-note { margin-top: 8px; font-size: 12px; color: var(--muted); }
.document-note a { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 640px) {
  header nav .lang-switch { padding-left: 0; border-left: 0; }
}

/* Footer: two compact rows. The name and its line sit left of the page links; the copyright, both filing numbers
   and the trademark note share a quieter second row. Its links keep a 44pt target, like the other footer links. */
footer { display: block; padding: 30px 0 18px; }
.footer-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 40px; }
.footer-brand { display: flex; align-items: baseline; gap: 18px; }
.footer-brand span { display: inline; margin-top: 0; }
.footer-links { max-width: none; justify-content: flex-end; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; max-width: none; margin: 22px 0 0; padding-top: 2px; border-top: 1px solid var(--line); font-size: 11px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-legal a:hover { color: var(--green); }
.footer-legal .beian-mps { gap: 5px; }
.footer-legal .beian-mps img { width: 14px; height: 15px; }
.footer-legal .footer-trademark { margin-left: auto; font-size: 10px; }
@media (max-width: 640px) {
  .footer-main { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer-links { justify-content: flex-start; }
  .footer-legal { gap: 0 16px; margin-top: 12px; }
  .footer-legal > span { flex-basis: 100%; padding-top: 12px; }
  .footer-legal .footer-trademark { flex-basis: 100%; margin: 2px 0 6px; }
}
