/* ScenarioPlay · Koko's World landing. Hand-designed, no script. Tokens first, then base, layout, components.
   Brand source: the app's own kid-theme (dark purple night sky, #a855f7, gold XP, Nunito). */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("/ScenarioPlay/assets/fonts/nunito-latin.woff2?v=ba344451") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* palette */
  --night-0: #0b0717;
  --night-1: #0f0a1e;
  --night-2: #170f31;
  --night-3: #21144a;
  --violet: #a855f7;
  --violet-deep: #7c3aed;
  --violet-soft: #d8b4fe;
  --gold: #ffd54a;
  --mint: #68d8a0;
  --coral: #ff8a7a;
  --sky: #7dc4ff;
  --ink: #f7f3ff;
  --ink-2: rgba(247, 243, 255, 0.82);
  --ink-3: rgba(247, 243, 255, 0.66);
  --line: rgba(255, 255, 255, 0.11);
  --glass: rgba(255, 255, 255, 0.055);
  --glass-2: rgba(255, 255, 255, 0.09);
  /* shape and depth */
  --r-s: 12px;
  --r-m: 20px;
  --r-l: 30px;
  --r-pill: 999px;
  --shadow-card: 0 18px 40px -22px rgba(0, 0, 0, 0.7);
  --shadow-phone: 0 50px 90px -34px rgba(168, 85, 247, 0.6), 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  /* type */
  --font: "Nunito", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-0: 1rem;
  --step-1: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  --step-2: clamp(1.6rem, 1.2rem + 1.9vw, 2.65rem);
  --step-3: clamp(2rem, 1.25rem + 2.9vw, 3.6rem);
  /* rhythm */
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font: 400 var(--step-0)/1.75 var(--font);
  background: var(--night-1);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
p, li, summary { text-wrap: pretty; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: var(--r-s);
  background: var(--gold); color: var(--night-0); font-weight: 800; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }

/* ---- top bar ---- */
.top { position: relative; z-index: 5; padding-block: 18px; }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 44px; height: 44px; border-radius: 10px; box-shadow: 0 8px 24px -10px rgba(168, 85, 247, 0.8); }
.brand__name { font-weight: 900; font-size: 1.2rem; letter-spacing: 0.01em; white-space: nowrap; }
.top .pill { white-space: nowrap; }
.top__end { display: flex; align-items: center; gap: 10px; flex: none; }
/* the language link (LANDING-BILINGUAL-SSOT): a plain link to the other-language page, labelled in that language */
.lang-switch {
  display: inline-flex; align-items: center; min-height: 40px; padding: 7px 14px; border-radius: var(--r-pill);
  font-size: 0.9rem; font-weight: 800; line-height: 1.2; color: var(--ink); text-decoration: none; white-space: nowrap;
  border: 1px solid rgba(216, 180, 254, 0.45);
}
.lang-switch:hover { background: var(--glass-2); border-color: var(--violet-soft); }
/* narrow phones: the hero's status card already says the product is coming soon, so the header keeps the logo and the language link */
@media (max-width: 419px) { .top .pill { display: none; } }
@media (max-width: 359px) {
  .brand { gap: 10px; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 1.05rem; }
}
/* one logo per screen: the header carries the mark; the hero has no second one (founder 2026-10-24) */

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--r-pill);
  font-size: 0.9rem; font-weight: 800; line-height: 1.2;
  background: var(--glass-2); border: 1px solid var(--line);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(255, 213, 74, 0.6); flex: none; }
.dot--lg { width: 12px; height: 12px; margin-top: 7px; }

/* ---- hero ---- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(18px, 4vw, 48px) clamp(48px, 7vw, 88px);
  background:
    radial-gradient(60% 50% at 82% 18%, rgba(168, 85, 247, 0.34), transparent 70%),
    radial-gradient(45% 40% at 8% 70%, rgba(104, 216, 160, 0.12), transparent 70%),
    linear-gradient(180deg, var(--night-2) 0%, var(--night-1) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.9; pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 28% 64%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(2px 2px at 46% 12%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 63% 78%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.6px 1.6px at 79% 38%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 91% 86%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.4px 1.4px at 55% 48%, rgba(255, 213, 74, 0.9), transparent);
  background-size: 520px 520px;
}
.hero__in { display: grid; gap: clamp(36px, 6vw, 72px); align-items: center; }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 0.92rem; font-weight: 800; letter-spacing: 0.14em; color: var(--violet-soft);
}
.hero__title { font-size: var(--step-3); line-height: 1.12; font-weight: 900; letter-spacing: -0.01em; text-wrap: balance; }
.lead { margin-top: 20px; max-width: 34em; font-size: var(--step-1); line-height: 1.8; color: var(--ink-2); }
.lead--narrow { max-width: 38em; }

.status {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 30px; padding: 16px 20px; max-width: 30em;
  border-radius: var(--r-m); border: 1px solid rgba(255, 213, 74, 0.35);
  background: linear-gradient(135deg, rgba(255, 213, 74, 0.14), rgba(168, 85, 247, 0.1));
}
.status__text { display: grid; gap: 2px; }
.status__text strong { font-size: 1.1rem; font-weight: 900; color: var(--gold); }
.status__text span { color: var(--ink-2); font-size: 0.98rem; line-height: 1.6; }
/* Google Play placeholder: looks like a store badge but is not a control (dashed edge, no hover, no pointer). Text keeps full contrast. */
.play-row { margin-top: 18px; }
.play-row--center { margin-top: 26px; display: flex; justify-content: center; }
.play {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px; min-height: 52px;
  border-radius: var(--r-m); border: 1.5px dashed var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink); font-weight: 800; font-size: 1rem; letter-spacing: 0.01em;
  cursor: default; user-select: none;
}
.play__glyph { flex: none; color: var(--violet-soft); }
.hero__more { margin-top: 18px; }
.textlink { font-weight: 800; color: var(--violet-soft); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.textlink:hover { color: var(--ink); }

.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px clamp(18px, 4vw, 40px); margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.facts li { display: grid; gap: 4px; }
.facts b { font-size: 2.2rem; line-height: 1; font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums; }
.facts span { color: var(--ink-3); font-size: 0.92rem; line-height: 1.4; }

/* phones */
.phone {
  position: relative; border-radius: 38px; padding: 7px;
  background: linear-gradient(160deg, #2b1b57, #090513);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-phone);
}
.phone img { width: 100%; border-radius: 31px; }
.phones { position: relative; width: 100%; max-width: 620px; margin-inline: auto; padding-block: 28px 12px; }
.phone--main { width: 56%; margin-inline: auto; z-index: 3; }
.phone--side { position: absolute; width: 38%; z-index: 1; opacity: 0.96; }
.phone--left { left: 0; top: 14%; transform: rotate(-7deg); }
.phone--right { right: 0; top: 22%; transform: rotate(7deg); }
.phone--solo { width: min(100%, 360px); margin-inline: auto; }
.phone--solo img { aspect-ratio: 780 / 1030; } /* the intrinsic ratio of meet-koko.webp: the space is reserved before the lazy image loads */

/* ---- bands ---- */
.band { padding-block: var(--section); background: var(--night-1); }
.hero + .band { padding-top: clamp(36px, 5vw, 64px); }
.band--alt { background: linear-gradient(180deg, var(--night-2), var(--night-1)); border-block: 1px solid var(--line); }
.h2 { font-size: var(--step-2); line-height: 1.2; font-weight: 900; letter-spacing: -0.005em; text-wrap: balance; }

.moments { display: grid; gap: 16px; margin-top: 40px; }
.moment {
  padding: 26px 24px; border-radius: var(--r-m);
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.moment__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; font-size: 1.7rem; border-radius: 16px; background: var(--glass-2); }
.moment h3, .card h3, .steps h3 { font-size: 1.25rem; line-height: 1.35; font-weight: 900; }
.moment p { margin-top: 6px; color: var(--ink-2); }

.split { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.steps { display: grid; gap: 14px; margin-top: 30px; counter-reset: s; }
.steps li { display: flex; gap: 18px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-m); background: var(--glass); border: 1px solid var(--line); }
.steps__n {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  font-weight: 900; font-size: 1.15rem; color: var(--night-0);
  background: linear-gradient(135deg, var(--violet-soft), var(--violet));
}
.steps p { margin-top: 2px; color: var(--ink-2); }

.worlds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 34px; }
.world {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 18px 18px; border-radius: var(--r-m); font-size: 1.15rem; font-weight: 900;
  border: 1px solid var(--line); background: var(--glass);
}
.world span { font-size: 1.7rem; line-height: 1; }
/* the English world names (Feelings, Growth) are wider than the Chinese ones: tighter tiles on the narrowest phones */
@media (max-width: 379px) {
  .world { gap: 8px; padding: 14px 12px; font-size: 1rem; }
  .world span { font-size: 1.45rem; }
}
.world--home { background: linear-gradient(135deg, rgba(255, 138, 122, 0.22), var(--glass)); }
.world--school { background: linear-gradient(135deg, rgba(125, 196, 255, 0.22), var(--glass)); }
.world--create { background: linear-gradient(135deg, rgba(168, 85, 247, 0.28), var(--glass)); }
.world--social { background: linear-gradient(135deg, rgba(104, 216, 160, 0.2), var(--glass)); }
.world--city { background: linear-gradient(135deg, rgba(96, 165, 250, 0.24), var(--glass)); }
.world--mood { background: linear-gradient(135deg, rgba(244, 114, 182, 0.24), var(--glass)); }
.world--quest { background: linear-gradient(135deg, rgba(134, 239, 172, 0.2), var(--glass)); }
.world--grow { background: linear-gradient(135deg, rgba(255, 213, 74, 0.24), var(--glass)); }

.h3 { margin-top: clamp(36px, 5vw, 56px); font-size: 1.35rem; line-height: 1.4; font-weight: 900; color: var(--violet-soft); }
.traits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.traits li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--r-pill); font-weight: 800; background: var(--glass-2); border: 1px solid var(--line); }

.tips { display: grid; gap: 14px; margin-top: 28px; }
.tips li { display: flex; gap: 16px; align-items: center; padding: 14px 18px; border-radius: var(--r-m); background: var(--glass); border: 1px solid var(--line); }
.tips p { font-weight: 700; }
.tips__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; font-size: 1.4rem; }
.tips__icon--violet { background: linear-gradient(135deg, #a855f7, #6d28d9); }
.tips__icon--green { background: linear-gradient(135deg, #34d399, #15803d); }
.tips__icon--amber { background: linear-gradient(135deg, #fbbf24, #d97706); }
.tips__icon--pink { background: linear-gradient(135deg, #f472b6, #be185d); }
.note { margin-top: 22px; color: var(--ink-3); font-size: 0.97rem; }

.cards { display: grid; gap: 16px; margin-top: 36px; }
.card { padding: 26px 24px; border-radius: var(--r-m); background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.card p { margin-top: 8px; color: var(--ink-2); }

.faq { display: grid; gap: 12px; margin-top: 30px; }
.faq details { border-radius: var(--r-m); background: var(--glass); border: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; position: relative;
  font-size: 1.1rem; font-weight: 800; min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  font-size: 1.3rem; line-height: 1; color: var(--night-0); background: var(--violet-soft);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); }

.soon {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding-block: clamp(64px, 9vw, 110px);
  background: radial-gradient(70% 90% at 50% 100%, rgba(168, 85, 247, 0.38), transparent 70%), var(--night-1);
}
.soon__in { display: grid; justify-items: center; gap: 8px; }
.soon__bear { width: 96px; height: 80px; margin-bottom: 8px; object-fit: cover; border-radius: 26px; border: 1px solid var(--line); box-shadow: 0 16px 40px -14px rgba(168, 85, 247, 0.9); }

.foot { padding-block: 30px; border-top: 1px solid var(--line); background: var(--night-0); color: var(--ink-3); font-size: 0.95rem; }
.foot__in { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.foot__logo { display: block; width: 158px; height: 28px; }
.foot__links { display: flex; gap: 22px; }
.foot__legal { flex-basis: 100%; font-size: 0.85rem; color: var(--ink-3); }
.foot a { color: var(--ink-2); text-underline-offset: 4px; padding-block: 12px; }
.foot a:hover { color: var(--ink); }

/* ---- wider screens ---- */
@media (min-width: 640px) {
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .worlds { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 700px) {
  .moments { grid-template-columns: repeat(3, 1fr); }
}
/* the four privacy cards hold long CJK sentences: four in a row only when each card is wide enough (>= 1120 px) */
@media (min-width: 1120px) { .cards { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) {
  .hero__in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .steps li { flex-direction: column; gap: 16px; padding: 26px 24px; }
  .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .split--rev { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .split--rev .split__copy { order: 2; }
  .phone--solo { width: min(100%, 380px); }
}

/* ---- motion: only when the visitor allows it ---- */
@media (prefers-reduced-motion: no-preference) {
  .phone--main { animation: bob 7s ease-in-out infinite; }
  .phone--left { animation: bob-l 8s ease-in-out infinite; }
  .phone--right { animation: bob-r 9s ease-in-out infinite; }
  .pill .dot, .status .dot { animation: pulse 2.4s ease-out infinite; }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes bob-l { 0%, 100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(-7deg) translateY(-6px); } }
@keyframes bob-r { 0%, 100% { transform: rotate(7deg) translateY(0); } 50% { transform: rotate(7deg) translateY(-10px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 213, 74, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(255, 213, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 213, 74, 0); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (forced-colors: active) {
  .phone, .moment, .card, .steps li, .tips li, .faq details, .world, .traits li, .status { border: 1px solid CanvasText; }
}

/* ── Privacy policy page (landing/privacy/page.html) ── */
.legal { padding-block: clamp(40px, 7vw, 88px); }
.legal .h2 { margin-bottom: 10px; }
.legal__meta { color: var(--ink-3); font-size: 0.95rem; }
.legal__draft { margin-top: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--glass); color: var(--gold); font-weight: 700; }
.legal section { margin-top: 34px; }
.legal__h { font-size: var(--step-1); line-height: 1.3; font-weight: 900; margin-bottom: 10px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.8; }
.legal p + p { margin-top: 12px; }
.legal__summary ul { padding-left: 1.2em; display: grid; gap: 8px; }
.legal a { color: var(--violet-soft); text-underline-offset: 4px; }
.legal__back { margin-top: 44px; }
.legal__back a { display: inline-block; padding-block: 12px; font-weight: 800; }
