/* koomu.app — colours match the app (mobile/lib/theme.dart). */
:root {
  --orange: #ff7a1a;
  --orange-deep: #e85d04;
  --orange-tint: #ffe6d2;
  --sun: #ffc83a;
  --sun-light: #ffe9a8;
  --teal: #14a3b8;
  --teal-dark: #0b7285;
  --teal-tint: #d5f0f4;
  --cream: #fff8ec;
  --line: #f1e4cf;
  --ink: #3b2a1a;
  --ink-soft: #8a7563;
  --green: #3bb273;
  --green-tint: #ddf3e6;
  --grape: #8e6cef;
  --night: #1f3b63;
  --card: #fff;
  --radius: 24px;
  --display: "Baloo 2", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --body: "Nunito", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 600 17px/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0; line-height: 1.25; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 28px/1 var(--display); }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 700; }
.nav-links a:hover { color: var(--ink); }
.lang {
  text-decoration: none; font-weight: 800; font-size: 15px;
  border: 2px solid var(--line); border-radius: 999px; padding: 5px 14px; background: #fff;
}
.lang:hover { border-color: var(--orange); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px; padding: 14px 26px;
  font: 800 17px/1 var(--body); text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 0 var(--orange-deep); }
.btn-primary:hover { box-shadow: 0 8px 0 var(--orange-deep); }
.nav .btn { padding: 11px 20px; font-size: 15px; box-shadow: 0 4px 0 var(--orange-deep); }

/* Hero */
.hero { position: relative; padding: 56px 0 88px; }
.hero::before {
  content: ""; position: absolute; inset: -120px -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, var(--orange-tint), transparent 70%);
  z-index: -1;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 2px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 15px; font-weight: 800; color: var(--teal-dark);
}
.hero h1 { font-size: clamp(44px, 6.4vw, 80px); margin: 20px 0 22px; }
.hero h1 em { font-style: normal; color: var(--orange); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: .06em; height: .16em;
  background: var(--sun); border-radius: 99px; z-index: -1;
}
.lead { font-size: 20px; color: var(--ink-soft); max-width: 34em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 190px; padding: 11px 22px; border-radius: 16px;
  background: var(--ink); color: #fff; text-decoration: none;
}
.store small { font-size: 12px; font-weight: 700; opacity: .7; letter-spacing: .04em; text-transform: uppercase; }
.store b { font: 800 20px/1.2 var(--display); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; color: var(--ink-soft); font-size: 15px; font-weight: 800; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }

.hero-art { position: relative; min-height: 600px; display: flex; justify-content: flex-end; align-items: center; padding-right: 24px; }
.hero-art .mascot {
  position: absolute; left: -10px; bottom: -10px; width: 230px; z-index: 3;
  filter: drop-shadow(0 18px 24px rgba(59, 42, 26, .18));
  animation: bob 5s ease-in-out infinite;
}
.bubble {
  position: absolute; z-index: 4;
  background: #fff; border-radius: 18px; padding: 10px 16px;
  font-weight: 800; font-size: 15px; box-shadow: 0 10px 30px rgba(59, 42, 26, .12);
  white-space: nowrap;
}
.bubble.b1 { right: -6px; top: 70px; }
.bubble.b2 { left: 0; top: 170px; color: var(--teal-dark); }
.stars { color: var(--sun); letter-spacing: 2px; }

/* Phone mockup (a sketch of the real reader screen) */
.phone {
  position: relative; z-index: 2;
  width: 300px; height: 600px; border-radius: 46px; padding: 12px;
  background: #241a12; box-shadow: 0 30px 60px rgba(59, 42, 26, .28), inset 0 0 0 2px #3a2c20;
  transform: rotate(3deg);
}
.phone.flat { transform: none; }
.screen {
  height: 100%; border-radius: 36px; overflow: hidden; background: var(--cream);
  display: flex; flex-direction: column;
}
.screen-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 8px; font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.screen-top .pill { background: #fff; border-radius: 99px; padding: 3px 10px; }
.screen-img { margin: 0 12px; border-radius: 20px; overflow: hidden; aspect-ratio: 3 / 2; }
.screen-img img { width: 100%; height: 100%; object-fit: cover; }
.screen-text {
  margin: 12px; padding: 16px; background: #fff; border-radius: 20px;
  font: 800 23px/1.35 var(--body); flex: 1;
}
.screen-text .w { border-radius: 8px; padding: 0 2px; }
.screen-bar { display: flex; align-items: center; justify-content: space-around; padding: 6px 12px 22px; }
.round { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 18px; }
.mic {
  width: 64px; height: 64px; border-radius: 50%; background: var(--orange); color: #fff;
  display: grid; place-items: center; box-shadow: 0 0 0 8px var(--orange-tint);
}
.mic svg { width: 26px; height: 26px; }

/* Word-by-word highlight, like the app's narration. */
.karaoke .w { animation: hl 6s infinite; }
.karaoke .w:nth-child(1) { animation-delay: 0s; }
.karaoke .w:nth-child(2) { animation-delay: .6s; }
.karaoke .w:nth-child(3) { animation-delay: 1.2s; }
.karaoke .w:nth-child(4) { animation-delay: 1.8s; }
.karaoke .w:nth-child(5) { animation-delay: 2.4s; }
.karaoke .w:nth-child(6) { animation-delay: 3s; }
.karaoke .w:nth-child(7) { animation-delay: 3.6s; }
@keyframes hl {
  0%, 10% { background: var(--sun-light); color: var(--orange-deep); }
  11%, 100% { background: transparent; color: inherit; }
}
@keyframes bob { 50% { transform: translateY(-12px); } }

/* Sections */
section { padding: 96px 0; }
.eyebrow { font-weight: 800; color: var(--orange-deep); text-transform: uppercase; letter-spacing: .12em; font-size: 14px; }
:lang(zh) .eyebrow { letter-spacing: .2em; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 54px); margin: 10px 0 14px; }
.section-head p { font-size: 19px; color: var(--ink-soft); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.step { background: var(--card); border-radius: var(--radius); padding: 28px 24px 30px; border: 2px solid var(--line); }
.step .num { font: 800 15px/1 var(--display); color: var(--ink-soft); }
.step .icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; margin: 18px 0 16px; }
.step h3 { font-size: 28px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); }
.t-orange { background: var(--orange-tint); }
.t-teal { background: var(--teal-tint); }
.t-green { background: var(--green-tint); }
.t-grape { background: #ece5fd; }
.t-sun { background: var(--sun-light); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split > *, .hero .wrap > * { min-width: 0; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 18px; }
.ticks li::before {
  content: "✓"; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-tint); color: var(--green); display: grid; place-items: center; font-weight: 900; font-size: 15px;
}
.along-art { display: flex; justify-content: center; position: relative; }
.along-art::before {
  content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%;
  background: var(--teal-tint); top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 0;
}
.framed { box-shadow: 0 0 0 3px var(--orange); border-radius: 8px; padding: 0 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.read { color: var(--green); }
.screen-status { text-align: center; font-size: 14px; font-weight: 800; color: var(--teal-dark); padding: 0 12px 4px; }

.meet { background: #fff; border-radius: 48px; margin: 0 16px; }
.meet .split { grid-template-columns: .8fr 1.2fr; }
.meet-bird { position: relative; display: flex; justify-content: center; }
.meet-bird img { width: 340px; animation: bob 6s ease-in-out infinite; }
.meet-bird .bubble { top: 0; right: 10%; font-size: 20px; }
.shelf { display: flex; gap: 16px; overflow-x: auto; padding: 8px 4px 20px; scroll-snap-type: x mandatory; margin-top: 32px; }
.shelf figure { margin: 0; flex: none; width: 150px; scroll-snap-align: start; }
.shelf img { border-radius: 16px; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 10px 20px rgba(59, 42, 26, .14); }
.shelf figcaption { font-size: 14px; font-weight: 800; margin-top: 10px; line-height: 1.3; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { background: var(--card); border-radius: var(--radius); padding: 26px; border: 2px solid var(--line); }
.tile .icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 24px; margin-bottom: 16px; }
.tile h3 { font-size: 23px; margin-bottom: 6px; }
.tile p { color: var(--ink-soft); font-size: 16px; }

.parents { background: var(--night); color: #fff; }
.parents .eyebrow { color: var(--sun); }
.parents .section-head p, .parents .tile p { color: #c9d4e6; }
.parents .tile { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: 20px; border: 2px solid var(--line); padding: 4px 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font: 800 20px/1.3 var(--display); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; line-height: .8; color: var(--orange); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--ink-soft); }

.cta {
  position: relative; overflow: hidden;
  background: var(--orange); color: #fff; border-radius: 48px; margin: 0 16px 16px;
  padding: 72px 0;
}
.cta .wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
.cta h2 { font-size: clamp(34px, 4.4vw, 56px); margin-bottom: 12px; }
.cta p { font-size: 19px; opacity: .92; }
.cta .stores { margin-bottom: 0; }
.cta .store { background: #fff; color: var(--ink); }
.cta img { width: 260px; }

footer { padding: 40px 0 56px; color: var(--ink-soft); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
footer .brand { font-size: 22px; color: var(--ink); }
footer .brand img { width: 32px; height: 32px; border-radius: 9px; }
footer nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
footer a { text-decoration: none; font-weight: 800; }
footer a:hover { color: var(--ink); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav .wrap { gap: 12px; }
  .nav .lang { margin-left: auto; }
  .hero .wrap, .split, .meet .split, .cta .wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .hero-art { min-height: 560px; justify-content: center; padding-right: 0; }
  .hero-art .mascot { left: 0; width: 200px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .along-art { order: -1; }
  .cta img { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  .nav .btn { display: none; }
  .brand { font-size: 24px; }
  .lead { font-size: 18px; }
  section { padding: 64px 0; }
  .store { min-width: 0; flex: 1; }
  .hero-art { min-height: 520px; }
  .phone { width: 260px; height: 530px; }
  .screen-text { font-size: 20px; }
  .hero-art .mascot { width: 150px; left: -6px; }
  .bubble.b1 { right: 0; top: 30px; }
  .bubble.b2 { left: 0; top: 110px; }
  .steps, .grid-3 { grid-template-columns: 1fr; }
  .along-art::before { width: 320px; height: 320px; }
  .meet, .cta { border-radius: 32px; margin-left: 8px; margin-right: 8px; }
  .meet-bird img { width: 240px; }
  footer nav { margin-left: 0; }
}
