/* Walkie landing page (/walkie). Separate from /assets/styles.css, which stays the plain document style for the
   legal pages. References: Finch (character standing in the painted world), Duolingo (one big headline + one
   short paragraph per section, big art alternating sides, no cards), Pikmin Bloom (characters peeking in from
   edges, soft paper palette). Colours are the app's own (HomeLayout + the launch-screen sun yellow). */

@font-face {
  font-family: "Fredoka";
  src: url("fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #fbf9f4;
  --paper: #f5efe3;
  --sun: #f9c75e;
  --sun-soft: #fdebc2;
  --brown: #3b2a1a;
  --title: #4b3229;
  --ink: #1f1d1b;
  --muted: #6f6a64;
  --green: #769e6f;
  --green-deep: #578454;
  --green-pale: #edf2e5;
  --line: #ebe4d6;
  --radius-phone: 46px;
  --wrap: 1160px;
  --display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
body::after {
  content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 30; background: var(--brown); color: #fff;
  padding: 10px 16px; border-radius: 12px; font-weight: 800; text-decoration: none; transition: top .15s;
}
.skip:focus { top: 12px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 3px; border-radius: 8px; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 36px; height: 36px; border-radius: 9px; }
.logo span { font-family: var(--display); font-weight: 600; font-size: 24px; color: var(--brown); letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-weight: 700; font-size: 16px; }
.nav-links a { text-decoration: none; color: var(--title); opacity: .8; }
.nav-links a { transition: color .2s, opacity .2s; }
.nav-links a:hover, .nav-links a[aria-current="true"] { opacity: 1; color: var(--green-deep); }
.nav-links a[aria-current="true"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.nav-cta {
  font-family: var(--display); font-weight: 600; font-size: 16px; text-decoration: none;
  background: var(--green-deep); color: #fff; padding: 10px 20px; border-radius: 999px;
  box-shadow: 0 3px 0 #3f6a3d;
  transition: transform .12s, box-shadow .12s;
}
.nav-cta:hover { transform: translateY(1px); box-shadow: 0 2px 0 #3f6a3d; }
.nav-cta:active { transform: translateY(3px); box-shadow: 0 0 0 #3f6a3d; }

/* ── Hero ────────────────────────────────────────────────────────────── */
/* Copy centred on cream, then the Maple Lane panorama (the App Store header art) as one wide window. */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 50% 100%, var(--sun-soft) 0%, transparent 70%),
    var(--cream);
  padding: 40px 0 88px;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; min-height: min(720px, calc(100dvh - 120px)); }
h1, h2, h3 { font-family: var(--display); color: var(--brown); margin: 0; letter-spacing: -0.02em; }
h1 { font-weight: 600; font-size: clamp(44px, 5.6vw, 78px); line-height: .98; margin: 0 0 22px; max-width: 10ch; text-wrap: balance; }
.hero-lede { font-size: 20px; color: var(--muted); max-width: 34ch; margin: 0; text-wrap: pretty; }
.hero-note { margin: 22px 0 0; font-weight: 700; font-size: 15px; color: var(--muted); }
h1 em { font-style: normal; color: var(--green-deep); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 11px 22px 11px 16px; border-radius: 16px; min-width: 196px;
}
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 12px; font-weight: 700; opacity: .72; line-height: 1.1; }
.store b { display: block; font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.15; }
.store[aria-disabled="true"] { cursor: default; }
.appstore { display: inline-block; line-height: 0; border-radius: 12px; transition: transform .2s cubic-bezier(.2, .7, .2, 1); }
.appstore img { height: 60px; width: auto; }
.appstore:hover { transform: translateY(-2px); }
.appstore:active { transform: scale(.97); }
.appstore:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 4px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-weight: 700; font-size: 15px; color: var(--muted); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--green-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.6' fill='none' stroke='%23578454' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }

/* Right side: the Maple Lane trio in a frame, the real app (a looping outfit video) standing in front of it. */
.hero-art {
  position: relative; height: 600px;
  transform: perspective(1600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.scene--hero {
  position: absolute; right: 0; top: 50%; width: 84%; aspect-ratio: 5 / 4;
  transform: translateY(calc(-50% + var(--sy, 0) * 70px));
}
.scene--hero img { transform: scale(calc(1.02 + var(--sy, 0) * .08)); transform-origin: 50% 60%; }
.scene--hero img { object-position: 30% 50%; }
.hero-art .phone { position: absolute; left: 0; top: 50%; width: 236px; transform: translateY(calc(-50% - var(--sy, 0) * 90px)); z-index: 2; }
.phone video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius-phone) - 9px); background: #f6f1e6; }

/* Laurel proof badges (laurel halves: Wikimedia Commons, CC0). Only numbers we can show: the live store rating. */
.awards { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 30px 0 30px; }
.award { display: flex; align-items: center; gap: 4px; color: #a07a2c; }
.award .laurel { width: auto; height: 62px; flex: none; }
.award div { display: grid; text-align: center; line-height: 1.05; min-width: 88px; }
.award b { font-family: var(--display); font-size: 32px; font-weight: 600; color: var(--brown); letter-spacing: -0.02em; }
.award b i { font-style: normal; color: #e0a72e; font-size: .8em; }
.award span { font-size: 12.5px; font-weight: 800; color: var(--muted); margin-top: 5px; letter-spacing: .01em; max-width: 13ch; justify-self: center; line-height: 1.25; }

@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: 104px 0; }
.feature .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center; }
.feature--flip .wrap { grid-template-columns: 1fr 1.35fr; }
.feature--flip .feature-media { order: 2; }
.kicker { font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--green); margin: 0 0 14px; }
h2 { font-weight: 600; font-size: clamp(38px, 4.6vw, 60px); line-height: 1.02; color: var(--green-deep); }
.feature-copy p { font-size: 21px; color: #5f5a54; max-width: 32ch; margin: 22px 0 0; text-wrap: pretty; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; font-weight: 700; color: var(--title); }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); flex: none; transform: translateY(-1px); }

/* Each feature: a flat scene in a frame, with the real screenshot standing in front of it and breaking the frame. */
.feature-media { position: relative; min-height: 520px; display: flex; align-items: center; }
.scene {
  width: 86%; aspect-ratio: 3 / 2; border-radius: 36px; overflow: hidden;
  border: 8px solid #fff; box-shadow: 0 34px 70px -40px rgba(59, 42, 26, .5);
}
.scene img { width: 100%; height: 100%; object-fit: cover; }
.scene--map img { object-position: 50% 62%; }
.feature-media .phone { position: absolute; top: 50%; right: 0; transform: translateY(-50%); width: 232px; }
.feature-media--phone-left { justify-content: flex-end; }
.feature-media--phone-left .phone { right: auto; left: 0; }

.phone {
  position: relative; z-index: 1; width: 300px; aspect-ratio: 660 / 1434;
  border-radius: var(--radius-phone); background: #111; padding: 9px;
  box-shadow: 0 40px 70px -34px rgba(31, 29, 27, .55), inset 0 0 0 2px #2b2a28;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius-phone) - 9px); }

/* Walk with the world: the event art wide, copy and the five languages underneath. */
.world .wrap { max-width: 1160px; }
.world-art img { width: 100%; }
.world-copy { text-align: center; margin-top: 48px; }
.world-copy p { font-size: 20px; color: var(--muted); max-width: 44ch; margin: 22px auto 0; text-wrap: pretty; }
.world-copy .langs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; max-width: none; margin-top: 30px;
  font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--title);
}

/* Three small beats, image over text, no boxes. */
.beats .wrap > h2 { text-align: center; }
.beats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 64px; text-align: center; }
.beats-grid img { width: 190px; margin: 0 auto 12px; }
.beats-grid > :nth-child(2) { margin-top: 64px; }
.beats { padding-bottom: 150px; }
.beats-grid h3 { font-weight: 600; font-size: 26px; }
.beats-grid p { color: var(--muted); margin: 8px auto 0; max-width: 28ch; }

/* Privacy band: full-bleed pale green, Gohan peeking over its top edge. */
.band { background: var(--green-pale); position: relative; padding: 110px 0 100px; margin-top: 80px; }
.band .peek-top { position: absolute; top: -118px; left: 50%; width: 220px; transform: translateX(-50%); }
.band .wrap { text-align: center; }
.band p.lead { font-size: 20px; color: var(--muted); max-width: 46ch; margin: 20px auto 0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 56px auto 0; max-width: 980px; text-align: left; }
.facts h3 { font-size: 22px; font-weight: 600; color: var(--green-deep); }
.facts p { margin: 6px 0 0; color: var(--muted); font-size: 17px; }

/* FAQ: native details, no script. */
.faq .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.faq-head { position: sticky; top: 108px; }
.faq-head .more { text-align: left; margin-top: 22px; font-weight: 700; color: var(--muted); max-width: 30ch; }
.faq h2 { text-align: left; }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { transition: color .2s;

  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--brown);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--green-deep); }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -10px;
  border-right: 3px solid var(--green); border-bottom: 3px solid var(--green); border-radius: 2px;
  transform: rotate(45deg); transition: transform .2s, margin .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { margin: -6px 0 24px; color: var(--muted); max-width: 62ch; }
.faq .more a { color: var(--green-deep); }

/* Closing scene. */
.finale { padding: 60px 0 0; }
.finale .wrap {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 40px;
  background: var(--sun); border-radius: 44px; padding: 72px 64px 0; overflow: hidden;
}
.finale h2 { color: var(--brown); }
.finale p { font-size: 20px; color: #6b4d24; margin: 18px 0 30px; max-width: 30ch; }
.finale .copy { padding-bottom: 72px; position: relative; z-index: 1; }
.finale .door { position: relative; height: 440px; }
.finale .door .arch-sm {
  position: absolute; right: 36px; bottom: 0; width: 300px; height: 420px;
  border-radius: 150px 150px 0 0; overflow: hidden; border: 8px solid #fff; border-bottom: 0;
}
.finale .door .arch-sm img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.finale .door .gohan { position: absolute; left: 0; bottom: -6px; width: 300px; z-index: 1; filter: drop-shadow(0 14px 14px rgba(59, 42, 26, .25)); }

/* ── Footer ──────────────────────────────────────────────────────────── */
.foot { padding: 72px 0 56px; color: var(--muted); font-size: 16px; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot h4 { margin: 0 0 12px; font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--brown); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--green-deep); text-decoration: underline; }
.foot a[aria-current] { color: var(--brown); font-weight: 700; }
.foot .fine { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 24px; font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot .about { max-width: 34ch; margin: 14px 0 0; }

/* Reveal on scroll (the script adds .in; without it everything is simply visible). */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .5s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .feature-copy.reveal, .js .world-copy.reveal, .js .faq-list.reveal { transition-delay: .12s; }
.js .beats-grid > .reveal:nth-child(2) { transition-delay: .1s; }
.js .beats-grid > .reveal:nth-child(3) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .finale .gohan { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Tablet / phone ──────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav .wrap { justify-content: space-between; }
  .hero { padding: 28px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; min-height: 0; text-align: center; }
  .hero h1, .hero-lede { margin-left: auto; margin-right: auto; }
  .hero-lede { font-size: 19px; }
  .awards, .stores, .trust { justify-content: center; }
  .hero-art { height: 440px; max-width: 460px; width: 100%; margin: 0 auto; }
  .scene--hero { width: 80%; border-radius: 28px; border-width: 6px; }
  .hero-art .phone { width: 190px; --radius-phone: 32px; padding: 7px; }
  .world-art img { border-radius: 24px; }
  .world-copy .langs { font-size: 19px; gap: 4px 18px; }
  .section { padding: 80px 0; }
  .feature .wrap, .feature--flip .wrap { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .feature--flip .feature-media { order: 0; }
  .feature-copy p { margin-left: auto; margin-right: auto; }
  .ticks { justify-items: center; }
  .feature-media, .feature-media--phone-left { min-height: 0; display: block; padding-bottom: 230px; max-width: 520px; margin: 0 auto; }
  .scene { width: 100%; border-radius: 28px; border-width: 6px; }
  .feature-media .phone, .feature-media--phone-left .phone { top: auto; bottom: 0; right: 6%; left: auto; transform: none; width: 160px; --radius-phone: 28px; padding: 6px; }
  .feature-media--phone-left .phone { right: auto; left: 6%; }
  .beats-grid > :nth-child(2) { margin-top: 0; }
  .beats { padding-bottom: 80px; }
  .faq .wrap { grid-template-columns: 1fr; gap: 28px; }
  .faq-head { position: static; text-align: center; }
  .faq h2, .faq-head .more { text-align: center; margin-left: auto; margin-right: auto; }
  .beats-grid, .facts { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .finale .wrap { grid-template-columns: 1fr; padding: 52px 28px 0; text-align: center; border-radius: 32px; }
  .finale p { margin-left: auto; margin-right: auto; }
  .finale .stores { justify-content: center; }
  .finale .copy { padding-bottom: 0; }
  .finale .door { height: 340px; max-width: 360px; width: 100%; margin: 0 auto; }
  .finale .door .arch-sm { width: 220px; height: 320px; }
  .finale .door .gohan { width: 220px; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .foot .brandcol { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  body { font-size: 17px; }
  .store { min-width: 0; flex: 1 1 150px; padding: 10px 14px; }
  .appstore img { height: 54px; }
  .hero-art { height: 380px; }
  .hero-art .phone { width: 168px; --radius-phone: 28px; padding: 6px; }
  .awards { gap: 10px 8px; flex-wrap: nowrap; }
  .award { gap: 2px; }
  .award .laurel { height: 46px; }
  .award div { min-width: 0; }
  .award b { font-size: 25px; }
  .award span { font-size: 11px; max-width: 13ch; }
  .band .peek-top { width: 170px; top: -92px; }
}

/* ── Motion ──────────────────────────────────────────────────────────── */
/* Masked word rise for headlines (.split is filled in by the script; without it the text is simply there). */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .12em; margin-bottom: -.12em; }
.split .w > span { display: inline-block; translate: 0 135%; transition: translate 1s cubic-bezier(.16, .84, .3, 1) calc(var(--d) * 70ms); }
.split.in .w > span { translate: 0 0; }

/* Hero entrance: copy settles in order, the scene opens, the phone rises in front of it. */
.js .hero-lede, .js .awards, .js .hero .stores, .js .hero-note { opacity: 0; translate: 0 18px; transition: opacity .8s ease, translate 1s cubic-bezier(.16, .84, .3, 1); }
.js.is-ready .hero-lede { opacity: 1; translate: 0 0; transition-delay: .35s; }
.js.is-ready .awards { opacity: 1; translate: 0 0; transition-delay: .5s; }
.js.is-ready .hero .stores { opacity: 1; translate: 0 0; transition-delay: .62s; }
.js.is-ready .hero-note { opacity: 1; translate: 0 0; transition-delay: .72s; }
.js .scene--hero { opacity: 0; scale: .9; clip-path: inset(8% 8% 8% 8% round 36px); transition: opacity .9s ease .15s, scale 1.4s cubic-bezier(.16, .84, .3, 1) .15s, clip-path 1.4s cubic-bezier(.16, .84, .3, 1) .15s; }
.js.is-ready .scene--hero { opacity: 1; scale: 1; clip-path: inset(0 0 0 0 round 36px); }
.js .hero-art .phone { translate: 0 110px; rotate: -5deg; transition: translate 1.4s cubic-bezier(.16, .84, .3, 1) .35s, rotate 1.4s cubic-bezier(.16, .84, .3, 1) .35s; }
.js.is-ready .hero-art .phone { translate: 0 0; rotate: 0deg; }
.award .laurel { transition: rotate 1.1s cubic-bezier(.16, .84, .3, 1) .6s; }
.js .award .laurel--l { rotate: -40deg; transform-origin: 100% 90%; }
.js .award .laurel--r { rotate: 40deg; transform-origin: 0 90%; }
.js.is-ready .award .laurel { rotate: 0deg; }

/* Nav tightens once the page moves. */
.nav .wrap { transition: height .35s cubic-bezier(.2, .7, .2, 1); }
.nav.is-stuck .wrap { height: 58px; }

/* The story: pinned stage on wide screens. */
.story { padding: 40px 0 40px; }
.story-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 72px; }
.story-stage { position: sticky; top: calc(50vh - 290px); height: 580px; margin-bottom: 15vh; }
.stage-scene {
  position: absolute; right: 0; top: 50%; translate: 0 -50%; width: 84%; aspect-ratio: 5 / 4;
  border-radius: 36px; overflow: hidden; border: 8px solid #fff; box-shadow: 0 34px 70px -40px rgba(59, 42, 26, .5); background: var(--paper);
}
.stage-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.12; transition: opacity .9s ease, scale 1.6s cubic-bezier(.16, .84, .3, 1); }
.stage-scene img.on { opacity: 1; scale: 1; }
.stage-scene img.map { object-position: 50% 62%; }
.stage-phone { position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 248px; z-index: 2; }
.stage-screens { position: relative; width: 100%; height: 100%; border-radius: calc(var(--radius-phone) - 9px); overflow: hidden; background: #f6f1e6; }
.phone .stage-screens img { position: absolute; inset: 0; border-radius: 0; opacity: 0; translate: 0 6%; scale: .98; transition: opacity .6s ease, translate .9s cubic-bezier(.16, .84, .3, 1), scale .9s cubic-bezier(.16, .84, .3, 1); }
.phone .stage-screens img.on { opacity: 1; translate: 0 0; scale: 1; }
.step { min-height: 92vh; display: flex; align-items: center; }
.step:first-child { min-height: 70vh; }
.step .feature-media { display: none; }
.step .feature-copy { opacity: .22; transition: opacity .6s ease; }
.step.is-active .feature-copy { opacity: 1; }

/* World: greetings drift past above the event art; the art drifts inside its frame. */
.hello { overflow: hidden; margin: 0 -24px 36px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.hello-track { display: flex; gap: 64px; width: max-content; animation: marquee 30s linear infinite; }
.hello-track span { font-family: var(--display); font-weight: 600; font-size: clamp(40px, 6vw, 84px); line-height: 1.1; color: #e8dfcd; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(calc(-50% - 32px)); } }
.world-art { overflow: hidden; border-radius: 36px; box-shadow: 0 40px 80px -46px rgba(59, 42, 26, .5); }
.world-art img { transform: scale(calc(1.14 - var(--z, 0) * .14)); transform-origin: 50% 40%; }

/* Small lives: poses breathe, Gohan peeks over the band and waves on the porch. */
.beats-grid img { animation: float 6s ease-in-out infinite; }
.beats-grid > :nth-child(2) img { animation-delay: -2s; }
.beats-grid > :nth-child(3) img { animation-delay: -4s; }
.beats-grid img:hover { animation-play-state: paused; }
.band .peek-top { translate: 0 70px; opacity: 0; transition: translate 1.1s cubic-bezier(.16, .84, .3, 1), opacity .6s ease; }
.band .peek-top.in { translate: 0 0; opacity: 1; }
.finale .door .gohan { transform-origin: 50% 100%; animation: sway 4.5s ease-in-out infinite; }
@keyframes sway { 0%, 100% { rotate: -2.5deg; } 50% { rotate: 2.5deg; } }
.scene, .phone { transition: box-shadow .4s ease; }

@media (max-width: 960px) {
  .story-grid { display: block; }
  .story-stage { display: none; }
  .step, .step:first-child { min-height: 0; display: block; padding: 64px 0; text-align: center; }
  .step .feature-media { display: block; margin-bottom: 36px; }
  .step .feature-copy { opacity: 1; }
  .step .feature-copy p { margin-left: auto; margin-right: auto; }
  .hello { margin: 0 -16px 24px; }
  .hello-track { gap: 36px; }
  .world-art { border-radius: 24px; }
  .hero-art .phone { transform: translateY(-50%); }
  .scene--hero { transform: translateY(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .split .w > span { translate: 0 0; transition: none; }
  .js .hero-lede, .js .awards, .js .hero .stores, .js .hero-note, .js .scene--hero, .js .hero-art .phone, .band .peek-top { opacity: 1; translate: 0 0; scale: 1; rotate: 0deg; clip-path: none; transition: none; }
  .js .award .laurel { rotate: 0deg; }
  .hello-track, .beats-grid img, .finale .door .gohan { animation: none; }
  .stage-scene img, .phone .stage-screens img { transition: opacity .2s; translate: 0 0; scale: 1; }
  .world-art img, .scene--hero img { transform: none; }
}

/* Localized pages (/walkie/ja, /ko, /zh-hant). Fredoka and Nunito only carry Latin, so CJK text falls to the
   platform's own faces: Hiragino Maru on Apple devices for Japanese (the app's own Japanese face), the system
   gothic elsewhere. Headlines get CJK-friendly line height, width and phrase-aware breaking. */
html:lang(ja) {
  --display: "Fredoka", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  --body: "Nunito", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}
html:lang(ko) {
  --display: "Fredoka", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --body: "Nunito", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}
html:lang(zh-Hant) {
  --display: "Fredoka", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --body: "Nunito", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
html:lang(ja) h1, html:lang(ja) h2, html:lang(zh-Hant) h1, html:lang(zh-Hant) h2 { letter-spacing: 0; line-height: 1.18; word-break: keep-all; overflow-wrap: anywhere; }
html:lang(ko) h1, html:lang(ko) h2 { letter-spacing: -0.01em; line-height: 1.14; word-break: keep-all; }
html:lang(ja) h1, html:lang(ko) h1, html:lang(zh-Hant) h1 { max-width: 8.5em; font-size: clamp(40px, 4.8vw, 66px); }
html:lang(ja) h2, html:lang(ko) h2, html:lang(zh-Hant) h2 { font-size: clamp(32px, 3.8vw, 50px); }
html:lang(ja) body, html:lang(zh-Hant) body { line-break: strict; }
html:lang(ja) p, html:lang(zh-Hant) p { letter-spacing: .02em; }
html:lang(ko) p { word-break: keep-all; }

/* ── 1.5: Social, Profile, Riverside ─────────────────────────────────── */
/* Journey chapter: the Riverside map from its top, where the path crosses the canal. */
.stage-scene img.map--canal, .scene--canal img { object-position: 50% 3%; }

/* Social: centred headline, then the World grid and a walkie's sheet standing in front of the meadow walk
   (the 1.5 store art), breaking its frame top and bottom; the trio walks between them. */
.social-head { text-align: center; max-width: 820px; margin: 0 auto; }
.social-head h2 { text-wrap: balance; }
.social-head p { font-size: 21px; color: #5f5a54; max-width: 44ch; margin: 22px auto 0; text-wrap: pretty; }
.social-stage { position: relative; height: 680px; margin-top: 60px; }
.social-scene {
  position: absolute; inset: 64px 0; border-radius: 36px; overflow: hidden; background: var(--paper);
  border: 8px solid #fff; box-shadow: 0 34px 70px -40px rgba(59, 42, 26, .5);
}
.social-scene img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 66%; transform: scale(calc(1.06 - var(--z, 0) * .06)); transform-origin: 50% 100%; }
.social-stage .phone { position: absolute; top: 50%; width: 268px; }
.phone--grid { left: 5%; translate: 0 calc(-50% + (var(--z, .5) - .5) * -36px); }
.phone--sheet { right: 5%; translate: 0 calc(-50% + (var(--z, .5) - .5) * 36px); }

/* How it works, in the app's own help-sheet words and painted icons. */
.howto { list-style: none; padding: 0; margin: 72px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.howto img { width: 64px; height: 64px; }
.howto h3 { font-weight: 600; font-size: 22px; line-height: 1.2; margin-top: 14px; }
.howto p { margin: 8px 0 0; color: var(--muted); font-size: 17px; text-wrap: pretty; }
.js .howto > .reveal:nth-child(2) { transition-delay: .08s; }
.js .howto > .reveal:nth-child(3) { transition-delay: .16s; }
.js .howto > .reveal:nth-child(4) { transition-delay: .24s; }

/* Profile: the phone in front of the backdrop it shows; the swatches swap the scene (script only). */
.scene--backdrop { position: relative; aspect-ratio: 5 / 4; }
.scene--backdrop img { position: absolute; inset: 0; object-position: 50% 62%; }
.scene--backdrop img.leaving { transition: opacity .6s ease, scale .9s cubic-bezier(.16, .84, .3, 1); }
.scene--backdrop img.leaving.gone { opacity: 0; scale: 1.05; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.swatches button {
  appearance: none; border: 0; padding: 0; width: 52px; height: 52px; border-radius: 15px; overflow: hidden; cursor: pointer;
  background: var(--paper); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s ease, transform .2s cubic-bezier(.2, .7, .2, 1);
}
.swatches button img { width: 100%; height: 100%; object-fit: cover; }
.swatches button:hover { transform: translateY(-2px); }
.swatches button:active { transform: scale(.94); }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--cream), 0 0 0 6px var(--green-deep); }
.swatches button:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 5px; }
.swatch-note { margin: 18px 0 0; font-size: 16px; font-weight: 700; color: var(--muted); display: grid; gap: 2px; }
.swatch-note b { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--title); }
html:not(.js) .swatches, html:not(.js) .swatch-note b { display: none; }

/* Privacy band: four facts. */
.band .facts { grid-template-columns: repeat(4, 1fr); max-width: 1112px; gap: 36px; }

/* The greeting marquee carries fifteen languages: same pace as five. */
.hello-track { animation-duration: 90s; }

@media (max-width: 960px) {
  .social-stage { height: auto; max-width: 520px; margin: 40px auto 0; padding-bottom: calc(95.6% - 64px); }
  .social-scene { position: relative; inset: auto; aspect-ratio: 4 / 3; border-radius: 28px; border-width: 6px; }
  .social-scene img { object-position: 50% 78%; transform: none; }
  .social-stage .phone { top: auto; bottom: 0; width: 44%; translate: none; --radius-phone: 30px; padding: 6px; }
  .phone--grid { left: 4%; }
  .phone--sheet { right: 4%; }
  .howto { grid-template-columns: 1fr 1fr; gap: 36px 28px; margin-top: 56px; text-align: center; }
  .howto img { margin: 0 auto; }
  .howto p { max-width: 30ch; margin-left: auto; margin-right: auto; }
  .swatches { justify-content: center; margin-left: auto; margin-right: auto; }
  .swatch-note { justify-items: center; }
  .band .facts { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
}
@media (max-width: 480px) {
  .social-stage .phone { --radius-phone: 24px; padding: 5px; }
  .howto { grid-template-columns: 1fr; gap: 26px; text-align: left; }
  .howto li { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; align-items: start; }
  .howto img { grid-row: span 2; width: 52px; height: 52px; margin: 2px 0 0; }
  .howto h3 { margin-top: 0; font-size: 20px; }
  .howto p { margin: 4px 0 0; max-width: none; }
  .swatches { gap: 8px; }
  .swatches button { width: 42px; height: 42px; border-radius: 12px; }
  .band .facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .social-scene img { transform: none; }
  .phone--grid, .phone--sheet { translate: 0 -50%; }
  .scene--backdrop img.leaving { transition: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 960px) {
  .phone--grid, .phone--sheet { translate: none; }
}
