:root {
  --sky: #8fd3f4; --sky-soft: #d9f1fb; --cream: #fffaf0; --paper: #fff4dd;
  --sun: #ffc94d; --sun-dark: #d99a1c; --grass: #79c267; --grass-soft: #cdeeb9;
  --ink: #3b3a5a; --ink-soft: #5c5b7c; --wood: #8a5a20; --empty: #eee6d6; --hit: #d9f2cf;
  --display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
  --gutter: clamp(20px, 6vw, 96px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 18px/1.6 var(--body); overflow-x: clip; }
html[data-lang="zh"] body { line-height: 1.75; }
html[data-lang="en"] body [lang="zh-Hans"]:not([data-keep]),
html[data-lang="zh"] body [lang="en"]:not([data-keep]) { display: none !important; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, .display { font-family: var(--display); font-weight: 800; letter-spacing: -.01em; }
html[data-lang="zh"] h1, html[data-lang="zh"] h2, html[data-lang="zh"] h3 { letter-spacing: .01em; line-height: 1.25; }
.nb { white-space: nowrap; }
.sprites { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Header */
.top { position: absolute; z-index: 10; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font: 800 19px/1 var(--display); }
.brand img { width: 42px; height: auto; }
.switch { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 250, 240, .85); }
.switch button { min-width: 52px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font: 700 15px/1 var(--display); }
.switch button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }

/* Store status. It only becomes a button when APP_STORE_URL is set. */
.cta { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 800 20px/1.2 var(--display); text-decoration: none; white-space: nowrap; }
.cta img { width: 34px; height: auto; flex: none; }
.cta .live { display: none; }
.cta.is-live .soon { display: none; }
.cta.is-live .live { display: inline; }
html[data-lang="en"] .cta.is-live .live[lang="zh-Hans"], html[data-lang="zh"] .cta.is-live .live[lang="en"] { display: none; }
.cta.is-live { justify-content: center; min-height: 64px; padding: 14px 30px; border-radius: 26px; background: var(--sun); box-shadow: 0 6px 0 var(--sun-dark); transition: transform .12s, box-shadow .12s; }
.cta.is-live:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--sun-dark); }
.cta.is-live:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--sun-dark); }

/* Hero */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); min-height: max(720px, min(100svh, 960px)); padding: 96px var(--gutter) 0; background: linear-gradient(#8fd3f4, #c9ecfa 62%, #e8f7e0); }
.hero .sunball { position: absolute; top: 9%; right: 7%; width: clamp(90px, 13vw, 190px); aspect-ratio: 1; border-radius: 50%; background: #ffe08a; }
.cloud { position: absolute; fill: #fff; opacity: .95; }
.c1 { top: 15%; left: 44%; width: 200px; }
.c2 { top: 38%; right: 2%; width: 150px; }
.copy { position: relative; z-index: 2; align-self: center; padding-bottom: 88px; max-width: 700px; }
.copy .alt-name { display: block; font: 800 clamp(22px, 2.4vw, 34px)/1.2 var(--display); color: var(--ink-soft); margin-bottom: 2px; }
.hero h1 { font-size: clamp(54px, 7vw, 104px); line-height: 1; }
.promise { margin-top: 18px; font: 800 clamp(26px, 3.1vw, 44px)/1.2 var(--display); text-wrap: balance; }
.sub { margin-top: 16px; max-width: 34em; font-size: clamp(17px, 1.4vw, 20px); text-wrap: pretty; }
.hero .cta { margin-top: 28px; }
.stage { position: relative; z-index: 1; align-self: end; display: flex; justify-content: center; height: min(74svh, 660px); min-height: 500px; }
.phone { position: relative; flex: none; aspect-ratio: 1260 / 2736; margin: 0; padding: 9px; border-radius: clamp(30px, 3vw, 46px); background: #2f2e49; box-shadow: 0 24px 50px rgba(59, 58, 90, .26); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: clamp(22px, 2.4vw, 37px); background: var(--sky); }
.hero .phone { width: clamp(236px, 25vw, 340px); align-self: flex-start; }
.friend { position: absolute; z-index: 3; bottom: 58px; }
.friend.beaver { left: max(-34px, calc(50% - 300px)); width: clamp(104px, 11vw, 150px); }
.friend.rabbit { right: max(-16px, calc(50% - 280px)); bottom: 72px; width: clamp(70px, 7.5vw, 104px); }
.friend.duck { right: max(-46px, calc(50% - 330px)); width: clamp(66px, 7vw, 96px); bottom: 46px; }
.ground { position: absolute; z-index: 2; left: 0; right: 0; bottom: -1px; width: 100%; height: 120px; }

html.anim .rise { animation: rise .8s cubic-bezier(.2, .8, .25, 1) both; }
html.anim .rise.d1 { animation-delay: .12s; } html.anim .rise.d2 { animation-delay: .24s; } html.anim .rise.d3 { animation-delay: .36s; }
html.anim .hero .phone { animation: phone-up 1.1s cubic-bezier(.16, .9, .3, 1.04) .15s both; }
html.anim .friend { animation: hop .7s cubic-bezier(.3, 1.5, .5, 1) .75s both; }
html.anim .friend.rabbit { animation-delay: .9s; } html.anim .friend.duck { animation-delay: 1.02s; }
html.anim .cloud { animation: drift 16s ease-in-out infinite alternate; translate: calc(var(--scroll, 0) * -60px) 0; }
html.anim .c2 { animation-duration: 21s; }
html.anim .brand img { animation: swing 1s ease-out .3s both; transform-origin: 30% 45%; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes phone-up { from { transform: translateY(150px); opacity: 0; } }
@keyframes hop { from { transform: translateY(46px) scale(.9); opacity: 0; } }
@keyframes drift { to { transform: translateX(46px); } }
@keyframes swing { 0% { transform: rotate(-24deg); } 60% { transform: rotate(9deg); } }

/* A round */
.round { background: linear-gradient(var(--cream), #eaf7fd); padding: 72px var(--gutter); }
.round-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); column-gap: clamp(28px, 5vw, 80px); align-items: center; max-width: 1240px; margin: 0 auto; }
.round-left { min-width: 0; }
.kicker { font: 800 clamp(30px, 3.4vw, 46px)/1.15 var(--display); }
.picture { position: relative; margin-top: 22px; border-radius: 30px; overflow: hidden; background: var(--sky); }
.picture svg.world { width: 100%; height: auto; }
.letters { position: absolute; top: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.letters span { display: grid; place-items: center; width: clamp(30px, 3.2vw, 44px); aspect-ratio: 1; border-radius: 11px; background: var(--hit); color: var(--ink); font: 800 clamp(18px, 2vw, 26px)/1 var(--display); transition: background .3s, color .3s, transform .35s cubic-bezier(.3, 1.8, .5, 1); }
html.scrolly .letters span:not(.on) { background: rgba(255, 250, 240, .55); color: rgba(59, 58, 90, .28); transform: scale(.9); }
.plank { transition: opacity .2s, transform .4s cubic-bezier(.3, 1.6, .5, 1); }
html.scrolly .plank:not(.on) { opacity: 0; transform: translateY(-26px); }
.fog { transition: opacity .5s; }
.fog { opacity: 0; }
html.scrolly .fog { opacity: .95; }
html.scrolly .round.done .fog { opacity: 0; }
.hopper { transition: transform 1.4s cubic-bezier(.4, 0, .3, 1); }
html.scrolly .round:not(.done) .hopper { transform: translateX(310px); }
.twinkle { fill: var(--sun); transition: opacity .4s .5s; }
html.scrolly .round:not(.done) .twinkle { opacity: 0; }
.nodes { display: flex; gap: 10px; margin-top: 22px; }
.node { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--sun); box-shadow: 0 4px 0 var(--sun-dark); font: 800 20px/1 var(--display); transition: background .25s, box-shadow .25s; }
html.scrolly .node:not(.on) { background: #e6e3de; box-shadow: 0 4px 0 #cbc7c0; }
.steps { display: grid; gap: 28px; margin-top: 18px; }
.step h3 { font-size: clamp(25px, 2.7vw, 36px); line-height: 1.2; }
.step p { margin-top: 8px; max-width: 32em; color: var(--ink); }
.phones { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.phones .phone { width: min(100%, 260px); }

@media (max-width: 860px) { .round-in { grid-template-columns: minmax(0, 1fr); row-gap: 28px; } }

html.scrolly .round { height: 340vh; padding: 0 var(--gutter); }
html.scrolly .round-in { position: sticky; top: 0; height: 100vh; height: 100svh; padding: clamp(14px, 3.5vh, 40px) 0; }
html.scrolly .steps { grid-template-columns: minmax(0, 1fr); }
html.scrolly .step { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .3s, transform .3s, visibility .3s; }
html.scrolly .step.on { opacity: 1; visibility: visible; transform: none; }
html.scrolly .phones { position: relative; display: block; height: min(82vh, 760px); aspect-ratio: 1260 / 2736; justify-self: center; }
html.scrolly .phones .phone { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .35s, transform .45s; }
html.scrolly .phones .phone.on { opacity: 1; transform: none; }
@media (max-width: 860px) {
  html.scrolly .round { padding: 0 16px; }
  html.scrolly .round-in { grid-template-rows: auto minmax(0, 1fr); row-gap: 12px; padding: 12px 0 14px; }
  html.scrolly .phones { height: 100%; min-height: 0; }
  .kicker { font-size: 24px; }
  .picture { margin-top: 8px; border-radius: 22px; }
  .picture svg.world { height: clamp(132px, 34vw, 210px); }
  .letters { top: 6px; gap: 4px; }
  .letters span { width: 28px; border-radius: 8px; font-size: 16px; }
  .round-left { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; }
  .kicker, .picture, .steps { grid-column: 1 / -1; }
  .nodes { grid-column: 1 / -1; margin-top: 12px; gap: 8px; }
  .node { width: 34px; height: 34px; border-radius: 10px; font-size: 16px; box-shadow: 0 3px 0 var(--sun-dark); }
  .steps { margin-top: 8px; }
  .step h3 { font-size: 22px; }
  .step p { font-size: 16px; line-height: 1.5; margin-top: 4px; }
}

/* Scenes */
.scenes-title { padding: 88px var(--gutter) 44px; text-align: center; background: #eaf7fd; }
.scenes-title h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.12; text-wrap: balance; }
.scenes-title p { margin-top: 10px; }
.band { --p: 1; position: relative; overflow: hidden; min-height: 620px; height: 100svh; max-height: 980px; display: flex; align-items: center; justify-content: center; gap: clamp(32px, 5vw, 80px); padding: 40px var(--gutter); border-radius: 44px 44px 0 0; box-shadow: 0 -10px 30px rgba(59, 58, 90, .1); }
@media (min-height: 640px) { html.scrolly .band { position: sticky; top: 0; margin-bottom: 36vh; } html.scrolly .band:last-of-type { margin-bottom: 0; } }
.band.b1 { background: linear-gradient(#8fd3f4, #d9f1fb); }
.band.b2 { background: linear-gradient(#ffd98a, #fff0c9); }
.band.b3 { background: linear-gradient(#a7e8e4, #dcf7f1); }
.band.b4 { background: linear-gradient(#ffd9e2, #fff2d8); }
.band.b5 { background: linear-gradient(#3a4b7c, #637cb8); color: #fff; }
.band.b5 .who { color: #ffe08a; }
.band.b6 { background: linear-gradient(#f59e6c, #fcd59d); }
.band.b7 { background: linear-gradient(#7ac5b8, #bfeae2); }
.band.b8 { background: linear-gradient(#d8b4e2, #fae3fd); }
.band.flip { flex-direction: row-reverse; }
.band-text { flex: 0 1 400px; min-width: 0; }
.band .who { font: 800 18px/1.3 var(--display); color: var(--ink-soft); }
.band h3 { margin-top: 4px; font-size: clamp(36px, 4.2vw, 60px); line-height: 1.08; }
.band-text p:last-child { margin-top: 12px; font-size: clamp(17px, 1.4vw, 20px); }
/* Shows the world part of a phone screenshot: below the status bar, above the puzzle. */
.window { position: relative; flex: 0 1 780px; min-width: 0; margin: 0; aspect-ratio: 1 / .6; overflow: hidden; border-radius: 34px; box-shadow: 0 16px 40px rgba(59, 58, 90, .18); transform: translateY(calc((1 - var(--p)) * 70px)) scale(calc(.94 + var(--p) * .06)); }
.window img { position: absolute; top: 0; left: 0; width: 100%; height: auto; max-width: none; margin-top: -15.2%; }
@media (max-width: 860px) {
  .band, .band.flip { flex-direction: column; align-items: stretch; gap: 24px; min-height: 560px; padding: 32px 16px; border-radius: 30px 30px 0 0; }
  .band-text, .window { flex: none; }
  .band-text { padding: 0 4px; }
  .band h3 { font-size: 38px; }
  .window { width: 100%; border-radius: 24px; }
}

/* Six ways */
.ways { padding: clamp(72px, 10vw, 128px) var(--gutter); background: var(--sky-soft); position: relative; }
.ways h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.12; text-align: center; text-wrap: balance; }
.ways > p { text-align: center; margin-top: 10px; }
.book { display: grid; grid-template-columns: 1fr 1fr; max-width: 1180px; margin: 44px auto 0; background: var(--cream); border-radius: 34px; box-shadow: 0 10px 0 #e9dcc2; }
.page { padding: clamp(24px, 4vw, 52px); min-width: 0; }
.page + .page { border-left: 3px solid #f0e6d2; }
.page h3 { font-size: 26px; }
.way { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 22px; align-items: center; min-height: 148px; padding: 18px 0; }
.way + .way { border-top: 2px dashed #efe5d0; }
.way strong { display: block; font: 800 21px/1.25 var(--display); }
.way p { margin-top: 4px; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.puzzle { display: grid; gap: 4px; justify-content: center; grid-auto-rows: 30px; grid-template-columns: repeat(4, 30px); }
.t { display: grid; place-items: center; border-radius: 8px; background: #fff; box-shadow: 0 2px 0 #e7dcc6; font: 800 17px/1 var(--display); }
.t.e { background: var(--empty); box-shadow: none; }
.t.h { background: var(--hit); box-shadow: none; }
.t.g { background: var(--sun); box-shadow: 0 2px 0 var(--sun-dark); }
.t.n { background: none; box-shadow: none; font-size: 24px; }
.c1x { grid-column: 1; } .c2x { grid-column: 2; } .c3x { grid-column: 3; } .c4x { grid-column: 4; }
.r1 { grid-row: 1; } .r2 { grid-row: 2; } .r3 { grid-row: 3; } .r4 { grid-row: 4; }
.t.w { grid-column: span 4; }
.puzzle.cross5 { grid-template-columns: repeat(5, 24px); grid-auto-rows: 24px; gap: 3px; }
.c5x { grid-column: 5; } .r5 { grid-row: 5; }
.puzzle.cross5 .t { font-size: 14px; border-radius: 6px; }
html.anim .book .reveal.in .t { animation: pop .4s cubic-bezier(.3, 1.7, .5, 1) both; }
html.anim .book .reveal.in .t:nth-child(2) { animation-delay: .07s; } html.anim .book .reveal.in .t:nth-child(3) { animation-delay: .14s; } html.anim .book .reveal.in .t:nth-child(4) { animation-delay: .21s; } html.anim .book .reveal.in .t:nth-child(n+5) { animation-delay: .28s; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@media (max-width: 1040px) {
  .book { grid-template-columns: minmax(0, 1fr); }
  .page + .page { border-left: 0; border-top: 3px solid #f0e6d2; }
}
@media (max-width: 480px) { .way { grid-template-columns: 132px minmax(0, 1fr); gap: 14px; } .puzzle { grid-template-columns: repeat(4, 29px); grid-auto-rows: 29px; gap: 3px; } .puzzle.cross5 { grid-template-columns: repeat(5, 23px); grid-auto-rows: 23px; } .way strong { font-size: 19px; } }

/* Trust */
.trust { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; max-width: 1240px; margin: 0 auto; padding: clamp(72px, 10vw, 136px) var(--gutter); }
.gate { text-align: center; padding: clamp(32px, 4vw, 56px) 20px; border-radius: 36px; background: var(--paper); }
.gate small { display: block; font: 800 20px/1.3 var(--display); color: var(--ink-soft); }
.gate b { display: block; margin-top: 10px; font: 800 clamp(48px, 5.2vw, 76px)/1.05 var(--display); white-space: nowrap; }
.trust h2 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.12; text-wrap: balance; }
.promises { margin-top: 26px; }
.promises li { padding: 14px 0; border-top: 2px solid #f0e6d2; }
.promises li:first-child { border-top: 0; }
.promises strong { display: block; font: 800 23px/1.3 var(--display); }
.promises span { color: var(--ink-soft); }
.more { display: inline-block; margin-top: 16px; padding: 8px 0; font-weight: 600; }
@media (max-width: 860px) { .trust { grid-template-columns: minmax(0, 1fr); } .trust .gate { order: 2; } }

/* Ending */
.ending { position: relative; overflow: hidden; text-align: center; padding: clamp(84px, 11vw, 140px) var(--gutter) clamp(230px, 26vw, 370px); background: linear-gradient(#8fd3f4, #d9f1fb 70%, #f3f9df); }
.ending h2 { position: relative; z-index: 2; font-size: clamp(36px, 5.4vw, 76px); line-height: 1.1; text-wrap: balance; max-width: 15em; margin: 0 auto; }
.ending .cta { position: relative; z-index: 2; margin-top: 30px; }
.ending p { position: relative; z-index: 2; margin-top: 18px; }
.ending svg.art { position: absolute; left: 0; bottom: 0; width: 100%; height: clamp(220px, 27vw, 380px); }

/* Footer */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding: 26px var(--gutter); background: var(--ink); color: var(--cream); font-size: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.foot a { display: inline-block; padding: 8px 0; }

.reveal { transition: opacity .7s, transform .7s cubic-bezier(.2, .8, .25, 1); }
html.anim .reveal:not(.in) { opacity: 0; transform: translateY(26px); }

/* Document pages */
.doc-head { position: relative; overflow: hidden; padding: 112px var(--gutter) 96px; background: linear-gradient(#8fd3f4, #d9f1fb); }
.doc-head h1 { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; font-size: clamp(40px, 6vw, 72px); line-height: 1.1; }
.doc-head p { position: relative; z-index: 1; max-width: 720px; margin: 10px auto 0; }
.doc-head svg { position: absolute; left: 0; bottom: -1px; width: 100%; height: 60px; }
.doc { max-width: calc(720px + 2 * var(--gutter)); margin: 0 auto; padding: 24px var(--gutter) 88px; }
.doc h2 { text-wrap: balance; margin-top: 44px; font-size: 28px; line-height: 1.25; }
.doc h2 + p, .doc h2 + ol, .doc h2 + ul { margin-top: 10px; }
.doc p + p { margin-top: 12px; }
.doc ol, .doc ul { padding-left: 1.3em; }
.doc ol { list-style: decimal; } .doc ul { list-style: disc; }
.doc li { margin-top: 6px; }
.doc li + li { margin-top: 6px; }
.doc ul + p, .doc ol + p { margin-top: 12px; }
.mail { display: block; margin-top: 8px; padding: 26px; border-radius: 28px; background: var(--paper); text-align: center; }
.mail a { display: inline-block; padding: 8px 0; font: 800 clamp(23px, 4vw, 32px)/1.2 var(--display); overflow-wrap: anywhere; }
.short { margin-top: 8px; padding: 22px 26px; border-radius: 26px; background: var(--paper); }
.short ul { margin-top: 6px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 82px; }
  .copy { padding-bottom: 8px; align-self: start; }
  .c1, .c2 { display: none; }
  .hero .sunball { top: 74px; right: -30px; width: 110px; }
  .stage { height: 384px; min-height: 0; margin-top: 30px; }
  .hero .phone { width: 216px; }
  .friend.beaver { left: max(-10px, calc(50% - 200px)); width: 88px; bottom: 44px; }
  .friend.rabbit { right: max(16px, calc(50% - 176px)); width: 52px; bottom: 60px; }
  .friend.duck { right: max(-8px, calc(50% - 202px)); width: 50px; bottom: 34px; }
  .ground { height: 70px; }
  .cta.is-live { width: 100%; max-width: 420px; min-height: 62px; padding: 12px 18px; font-size: 18px; }
  .brand { font-size: 17px; }
  .top { padding: 12px 16px; }
  .switch button { min-width: 44px; padding: 0 11px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
