/* Panda Sprout: bright, rounded, book-cover colors on clean white */
:root {
  --bg: #FFFFFF;
  --tint: #FFF6D6;
  --card: #FFFFFF;
  --ink: #1F2A55;
  --muted: #4E5880;
  --line: #E6E2F5;
  --pink: #FF2E88;
  --blue: #1F6BFF;
  --coral: #FF4F1F;
  --green: #16C784;
  --purple: #7B3FF2;
  --sun: #FFD60A;
  --on-accent: #FFFFFF;
  --navy: #1F2A55;
  --font: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12172A; --tint: #1C2240; --card: #1E2640; --ink: #F1F3FA; --muted: #B4BAD4; --line: #313A5C;
    --pink: #FF4D9A; --blue: #3D80FF; --coral: #FF6A3D; --green: #2FD893; --purple: #9265FF; --sun: #FFD60A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12172A; --tint: #1C2240; --card: #1E2640; --ink: #F1F3FA; --muted: #B4BAD4; --line: #313A5C;
  --pink: #FF4D9A; --blue: #3D80FF; --coral: #FF6A3D; --green: #2FD893; --purple: #9265FF; --sun: #FFD60A;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 600; font-size: 17px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap {
  max-width: 1080px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-weight: 900; line-height: 1.15; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
p { margin: 0; }
.muted { color: var(--muted); }
.eyebrow { font-weight: 900; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pink); }

/* header */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; border-radius: 14px; background: var(--navy); display: grid; place-items: center; font-size: 1.5rem; }
.brand b { font-size: 1.25rem; font-weight: 900; display: block; line-height: 1.1; }
.brand small { color: var(--muted); font-size: 0.85rem; font-weight: 800; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 800; padding: 8px 14px; border-radius: 999px; }
.nav a:hover { background: var(--tint); }
.nav a.cta { background: var(--pink); color: var(--on-accent); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-weight: 900; text-decoration: none; border: 0; cursor: pointer; }
.btn.primary { background: var(--pink); color: var(--on-accent); }
.btn.sun { background: var(--sun); color: var(--navy); }
.btn.white { background: #FFFFFF; color: var(--navy); }
.btn.ghost { background: var(--tint); color: var(--ink); }
.btn:focus-visible, .nav a:focus-visible, input:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

/* hero */
.hero { padding-block: 56px 72px; color: #FFFFFF;
  background:
    radial-gradient(circle at 8% 22%, rgba(255,255,255,.22) 0 7px, transparent 8px),
    radial-gradient(circle at 92% 14%, rgba(255,214,10,.9) 0 9px, transparent 10px),
    radial-gradient(circle at 48% 88%, rgba(255,255,255,.18) 0 12px, transparent 13px),
    radial-gradient(circle at 78% 92%, rgba(255,46,136,.85) 0 8px, transparent 9px),
    radial-gradient(circle at 30% 8%, rgba(22,199,132,.85) 0 6px, transparent 7px),
    var(--blue); }
.hero .eyebrow { color: var(--sun); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); margin-block: 10px 16px; }
.hero h1 .zh { color: var(--sun); }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,.92); max-width: 34em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.fan { position: relative; height: 420px; }
.fan img { position: absolute; width: 56%; border-radius: 10px; box-shadow: 0 18px 40px rgba(15, 20, 60, 0.35); }
.fan img:nth-child(1) { left: 0; top: 40px; transform: rotate(-7deg); }
.fan img:nth-child(2) { left: 22%; top: 0; z-index: 2; }
.fan img:nth-child(3) { right: 0; top: 50px; transform: rotate(7deg); }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .fan { height: 300px; }
}

/* sections */
section { padding-block: 64px; }
section.tint { background: var(--tint); }
.section-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 40em; }

.books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .books { grid-template-columns: 1fr; max-width: 440px; } }
.book { background: var(--card); border: 3px solid var(--line); border-radius: 22px; padding: 16px; display: grid; gap: 12px; align-content: start; }
.book:nth-child(1) { border-color: var(--pink); }
.book:nth-child(2) { border-color: var(--blue); }
.book:nth-child(3) { border-color: var(--coral); }
.book img { border-radius: 10px; }
.book .num { font-weight: 900; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.book h3 { font-size: 1.3rem; }
.book .zh { color: var(--muted); font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { background: var(--tint); border-radius: 999px; padding: 3px 10px; font-size: 0.85rem; font-weight: 800; }
.book .btn { min-height: 46px; }
.soon { font-size: 0.85rem; color: var(--muted); text-align: center; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border-radius: 20px; padding: 22px; border: 2px solid var(--line); display: grid; gap: 8px; align-content: start; }
.step::before { counter-increment: step; content: counter(step); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: var(--on-accent); font-weight: 900; }
.step:nth-child(2)::before { background: var(--pink); }
.step:nth-child(3)::before { background: var(--green); }
.step:nth-child(4)::before { background: var(--purple); }
.step h3 { font-size: 1.15rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.pages { display: flex; gap: 14px; }
.pages img { width: 33%; border-radius: 8px; border: 1px solid var(--line); background: #fff; }

.signup { background: var(--purple); color: #FFFFFF; border-radius: 28px; padding: clamp(24px, 5vw, 48px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
@media (max-width: 760px) { .signup { grid-template-columns: 1fr; } }
.signup h2 { color: #FFFFFF; }
.signup p { opacity: 0.85; margin-top: 10px; }
form.printables { display: grid; gap: 12px; }
form.printables label { font-weight: 800; font-size: 0.9rem; }
form.printables input { width: 100%; min-height: 50px; border-radius: 14px; border: 0; padding: 0 16px; font: inherit; color: #1F2A55; background: #FFFFFF; }
.form-note { font-size: 0.9rem; min-height: 1.2em; }

footer { padding-block: 36px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.95rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.signup .btn.primary { background: var(--sun); color: var(--navy); }
section.tint { background: var(--tint); }

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }
.review { background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 20px; display: grid; gap: 10px; align-content: start; }
.review .stars { color: var(--sun); font-size: 1.3rem; letter-spacing: 2px; }
.review .who { color: var(--muted); font-size: 0.9rem; font-weight: 800; }
.review-box { background: var(--tint); border-radius: 28px; padding: clamp(22px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px; align-items: start; }
@media (max-width: 760px) { .review-box { grid-template-columns: 1fr; } }
.review-empty h3 { font-size: 1.4rem; margin-bottom: 10px; }
.review-form { display: grid; gap: 10px; }
.review-form label, .review-form legend { font-weight: 800; font-size: 0.9rem; }
.review-form input:not([type]), .review-form input[name="name"], .review-form select, .review-form textarea {
  width: 100%; min-height: 48px; border-radius: 14px; border: 2px solid var(--line); padding: 10px 14px; font: inherit; color: var(--ink); background: var(--card); }
.review-form textarea { resize: vertical; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.row2 > div { display: grid; gap: 6px; }
.stars-input { border: 0; padding: 0; margin: 0; }
.stars-input legend { padding: 0; margin-bottom: 4px; }
.stars-row { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input label { font-size: 2rem; line-height: 1; color: var(--line); cursor: pointer; font-weight: 400; }
.stars-row input:checked ~ label, .stars-row label:hover, .stars-row label:hover ~ label { color: var(--sun); }
.stars-input input:focus-visible + label { outline: 3px solid var(--pink); border-radius: 6px; }
.review-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.review-form .check input { margin-top: 5px; width: 18px; height: 18px; }

/* newsletter */
.news { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: center; }
@media (max-width: 760px) { .news { grid-template-columns: 1fr; } }
.news-copy { display: grid; gap: 12px; }
.perks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.perks li { position: relative; padding-left: 34px; }
.perks li::before { content: "★"; position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.8rem; background: var(--sun); color: var(--navy); }
.perks li:nth-child(2)::before { background: var(--pink); color: #fff; }
.perks li:nth-child(3)::before { background: var(--green); color: #fff; }
.perks li:nth-child(4)::before { background: var(--purple); color: #fff; }
.news-form { background: var(--card); border-radius: 24px; padding: clamp(20px, 4vw, 32px); display: grid; gap: 14px; box-shadow: 0 10px 30px rgba(31, 42, 85, 0.08); }
.news-form label, .news-form legend { font-weight: 800; font-size: 0.9rem; }
.news-form input[name="name"], .news-form input[type="email"] { width: 100%; min-height: 48px; border-radius: 14px; border: 2px solid var(--line); padding: 0 14px; font: inherit; color: var(--ink); background: var(--card); }
.chips-input { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips-input legend { width: 100%; margin-bottom: 6px; padding: 0; }
.chips-input label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--line); cursor: pointer; font-weight: 800; }
.chips-input label:has(input:checked) { border-color: var(--pink); background: var(--tint); }
.chips-input input { accent-color: var(--pink); width: 16px; height: 16px; margin: 0; }
.form-note.small { color: var(--muted); }
@media (max-width: 600px) {
  .site-head { position: static; }
  .nav a { padding: 6px 10px; font-size: 0.95rem; }
}
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }

/* brand kit */
h1, h2, h3, .brand b { font-family: "Fredoka", var(--font); font-weight: 600; letter-spacing: 0.01em; }
.brand-logo { height: 44px; width: auto; display: block; }
.mascot { display: block; height: auto; max-width: 40vw; }
.learn-head { display: flex; align-items: center; gap: 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-logo { background: #FFF6E8; border-radius: 12px; padding: 4px 8px; height: 52px; } }
