/* ============ THEME ============ */
:root {
  --ink: #2d1f5e;
  --ink-soft: #5a4d86;
  --cream: #fff8ec;
  --cream-2: #fff1f7;
  --sky-1: #6ec8ff;
  --sky-2: #b6e6ff;
  --yellow: #ffd23f;
  --pink: #ff5fa2;
  --purple: #8b5cf6;
  --teal: #17b3a3;
  --orange: #ff8a3d;
  --blue: #3b82f6;
  --radius: 22px;
  --shadow: 0 10px 0 rgba(45, 31, 94, 0.12), 0 18px 40px rgba(45, 31, 94, 0.12);
  --head: "Baloo 2", "Comic Sans MS", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Works on older iPads, iPhones and Android phones too: each newer feature below has a plain fallback first. */
:root { --vh: 100vh; }
@supports (height: 100dvh) { :root { --vh: 100dvh; } }   /* the real visible height on phones, where it is known */
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.6;
}
/* no sideways scrolling: html hides it for the whole window; the body only uses "clip" where it exists, because
   "hidden" on the body makes older iPhones/iPads scroll the body instead of the page (the story-themes scroll
   then never hears the scrolling and its sticky stage slides away) */
@supports (overflow-x: clip) { body { overflow-x: clip; } }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 .4em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(780px, 100% - 32px); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--head); font-weight: 800; font-size: 1.1rem;
  padding: .75em 1.4em; border-radius: 999px; border: 3px solid var(--ink);
  text-decoration: none; cursor: pointer; color: var(--ink);
  box-shadow: 0 5px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 8px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn-yellow { background: var(--yellow); }
.btn-white { background: #fff; }
.btn-pink { background: var(--pink); color: #fff; }
.btn-small { font-size: .95rem; padding: .45em 1em; box-shadow: 0 3px 0 var(--ink); }
.btn-big { font-size: 1.25rem; width: 100%; justify-content: center; }

/* ============ NAV ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px max(16px, calc((100% - 1180px) / 2));
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: #fff8ec; box-shadow: 0 2px 0 rgba(45,31,94,.10); } /* crisp edge (owner, 9 Oct 2026): the soft 20px shadow looked like a blurred band under the top bar on iPad */
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--head); font-size: 1.6rem; }
.logo-star {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--yellow); border: 3px solid var(--ink); font-size: 1.3rem;
  animation: spin 8s linear infinite;
}
.logo-text b { color: var(--pink); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a:not(.btn) { font-weight: 800; text-decoration: none; position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 4px; width: 0;
  background: var(--yellow); border-radius: 4px; transition: width .25s;
}
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-toggle { display: none; background: var(--yellow); border: 3px solid var(--ink); border-radius: 14px; width: 48px; height: 44px; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 3px; background: var(--ink); border-radius: 3px; margin: 4px 0; transition: .3s; }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh; padding: 110px 0 140px;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 70%, #d9f3ff 100%);
  overflow: hidden; display: flex; align-items: center;
}
.hero-inner {
  position: relative; z-index: 2;
  width: min(1180px, 100% - 32px); margin-inline: auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
}
.age-badge {
  display: inline-block; background: #fff; border: 3px solid var(--ink); border-radius: 999px;
  padding: .3em 1em; font-weight: 800; transform: rotate(-3deg); box-shadow: 0 4px 0 var(--ink);
  animation: pop 3s ease-in-out infinite;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.9rem); font-weight: 800; margin: .35em 0 .25em; color: #fff;  text-shadow: 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink), 1.42px 1.42px 0 var(--ink), -1.42px 1.42px 0 var(--ink), 1.42px -1.42px 0 var(--ink), -1.42px -1.42px 0 var(--ink), 0 6px 0 var(--ink); letter-spacing: .5px; }
.hero h1 .ch { display: inline-block; animation: bounceIn .6s cubic-bezier(.3,1.6,.5,1) both; }
.hero h1 .ch:nth-child(4n+1) { color: var(--yellow); }
.hero h1 .ch:nth-child(4n+2) { color: #fff; }
.hero h1 .ch:nth-child(4n+3) { color: #ffc2dd; }
.hero h1 .ch:nth-child(4n) { color: #fff; }
.hero h1 .word { display: inline-block; white-space: nowrap; }
.lead { font-size: clamp(.98rem, 1.32vw, 1.12rem); font-weight: 700; max-width: 62ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }

.hero-3d { position: relative; height: 540px; }
.hero-fallback { position: absolute; inset: 0; }
.hero-3d.webgl-on .hero-fallback { display: none; }
.hb {
  position: absolute; width: 56%; border-radius: 16px; border: 5px solid #fff;
  box-shadow: 0 20px 40px rgba(45,31,94,.3);
}
.hb1 { left: 0; top: 50px; transform: rotate(-12deg); animation: float1 6s ease-in-out infinite; }
.hb3 { right: 0; top: 60px; transform: rotate(10deg); animation: float3 7s ease-in-out infinite; }
.hb2 { left: 22%; top: 0; z-index: 2; animation: float2 5s ease-in-out infinite; }
.mascot { position: absolute; bottom: -10px; right: 6%; z-index: 3; animation: hop 2.4s ease-in-out infinite; }
.mascot .eyes { animation: blink 4s infinite; transform-origin: 60px 46px; }
.mascot .page-flap { animation: flap 2.4s ease-in-out infinite; transform-origin: 60px 50px; }
.speech {
  position: absolute; top: -34px; left: -60px; background: #fff; border: 3px solid var(--ink);
  border-radius: 16px; padding: 2px 12px; font-family: var(--head); font-weight: 800; white-space: nowrap;
}

/* sky decorations */
.sky { position: absolute; inset: 0; pointer-events: none; }
.sun {
  position: absolute; top: 90px; right: 8%; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, #fff4a8 0 45%, var(--yellow) 46%);
  box-shadow: 0 0 0 18px rgba(255, 210, 63, .25), 0 0 0 38px rgba(255, 210, 63, .12);
  animation: pulse 4s ease-in-out infinite;
}
.cloud {
  position: absolute; background: #fff; border-radius: 100px; height: 48px; opacity: .95;
  animation: drift linear infinite;
}
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 60px; height: 60px; top: -30px; left: 22px; }
.cloud::after { width: 80px; height: 80px; top: -44px; left: 62px; }
.c1 { width: 180px; top: 18%; animation-duration: 55s; animation-delay: -10s; }
.c2 { width: 150px; top: 40%; animation-duration: 70s; animation-delay: -40s; transform: scale(.7); opacity: .8; }
.c3 { width: 200px; top: 68%; animation-duration: 85s; animation-delay: -25s; opacity: .7; }
.balloon {
  position: absolute; width: 54px; height: 66px; border-radius: 50% 50% 48% 48%;
  bottom: -120px; animation: rise linear infinite;
}
.balloon::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 70px; background: rgba(45,31,94,.4); }
.balloon::before { content: ""; position: absolute; top: 12px; left: 12px; width: 12px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.55); }
.b1 { left: 6%; background: var(--pink); animation-duration: 16s; }
.b2 { left: 46%; background: var(--yellow); animation-duration: 20s; animation-delay: -8s; }
.b3 { left: 88%; background: var(--purple); animation-duration: 18s; animation-delay: -13s; }
.stars span {
  position: absolute; color: #fff; font-size: 16px; line-height: 1; animation: twinkle 2.5s ease-in-out infinite;
  text-shadow: 0 0 8px rgba(255,255,255,.9);
}
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 110px; z-index: 3; }
.wave-top { top: -1px; bottom: auto; }

/* ============ SECTIONS ============ */
.section { padding: 90px 0; position: relative; }
.section-title { text-align: center; font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
.section-title.left { text-align: left; }
.section-title.light, .section-sub.light { color: #fff; }
.section-sub { text-align: center; font-size: 1.2rem; font-weight: 700; color: var(--ink-soft); max-width: 60ch; margin: 0 auto 30px; }
.wiggle { display: inline-block; animation: wiggle 2s ease-in-out infinite; }

/* ============ FILTERS ============ */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filter {
  font-family: var(--head); font-weight: 700; font-size: 1rem;
  border: 3px solid var(--ink); background: #fff; color: var(--ink);
  border-radius: 999px; padding: .4em 1em; cursor: pointer;
  box-shadow: 0 4px 0 var(--ink); transition: transform .15s, background .2s;
}
.filter:hover { transform: translateY(-2px) rotate(-2deg); }
.filter.active { background: var(--c, var(--yellow)); color: #fff; }
.filter[data-cat="all"].active { background: var(--ink); }

/* ============ BOOK CARDS ============ */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 34px; }
.book-card {
  --c: var(--pink);
  position: relative; background: #fff; border: 4px solid var(--ink); border-radius: var(--radius);
  padding: 14px 14px 18px; cursor: pointer; text-align: left; font: inherit; color: inherit;
  box-shadow: 0 8px 0 var(--ink);
  transition: transform .35s cubic-bezier(.3,1.6,.5,1), box-shadow .3s;
  transform-style: preserve-3d;
}
.book-card:nth-child(odd) { transform: rotate(-1.2deg); }
.book-card:nth-child(even) { transform: rotate(1.2deg); }
.book-card:hover, .book-card:focus-visible { transform: translateY(-10px) rotate(0) scale(1.03); box-shadow: 0 16px 0 var(--ink); outline: none; }
.book-card.hide { display: none; }
/* the cover is a real little book: it tilts toward the cursor and swings open to show page 2 */
.book3d { position: relative; perspective: 1100px; }
.book-inner {
  position: relative; aspect-ratio: 900 / 1164; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s cubic-bezier(.3,1.4,.5,1);
}
.tilting .book-inner { transition: transform .08s linear; }
.book-inner::before { /* page edges on the right = book thickness */
  content: ""; position: absolute; top: 3%; bottom: 3%; right: -7px; width: 9px; border-radius: 0 6px 6px 0;
  background: repeating-linear-gradient(90deg, #fffaf0 0 2px, #e7dcc6 2px 3px);
  box-shadow: 2px 2px 0 rgba(45,31,94,.25);
}
.book-inner .inside {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 6px 14px 14px 6px;
  box-shadow: inset 12px 0 16px -8px rgba(0,0,0,.25);
  transform: translateZ(-2px); /* sits just behind the cover */
}
.cover-wrap {
  position: relative; height: 100%; border-radius: 6px 14px 14px 6px; overflow: hidden; background: var(--c);
  transform-origin: left center; transform: translateZ(2px); transition: transform .7s cubic-bezier(.3,1.3,.5,1), box-shadow .7s;
  box-shadow: inset 8px 0 0 rgba(0,0,0,.12), 0 6px 14px rgba(45,31,94,.18);
}
.cover-wrap img { width: 100%; height: 100%; object-fit: cover; }
.book-card:hover .cover-wrap, .book-card:focus-visible .cover-wrap {
  transform: translateZ(2px) rotateY(-38deg); box-shadow: inset 8px 0 0 rgba(0,0,0,.12), 18px 10px 24px rgba(45,31,94,.35);
}
.glare {
  position: absolute; inset: 0; transform: translateZ(3px); border-radius: 14px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.55), transparent 55%);
  mix-blend-mode: soft-light;
}
.tilting .glare { opacity: 1; }
.cover-wrap::after { /* shine sweep */
  z-index: 1;
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%);
  transform: translateX(-120%); transition: transform .8s;
}
.book-card:hover .cover-wrap::after { transform: translateX(120%); }
.ribbon {
  position: absolute; top: -14px; right: -10px; z-index: 2;
  background: var(--c); color: #fff; font-family: var(--head); font-weight: 800; font-size: .85rem;
  padding: .25em .8em; border: 3px solid var(--ink); border-radius: 12px; transform: rotate(6deg);
}
.play-badge {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  background: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 2px 10px;
  font-weight: 800; font-size: .85rem;
}
.book-card h3 { font-size: 1.3rem; margin: 14px 4px 4px; }
.book-card .ages { margin: 0 4px; font-weight: 800; color: var(--ink-soft); font-size: .95rem; }
.peek-hint { display: inline-block; margin: 10px 4px 0; font-weight: 800; color: var(--c); }

/* ============ PERSONAL ============ */
.personal {
  background: linear-gradient(160deg, #8b5cf6 0%, #b05cf6 45%, #ff5fa2 100%);
  padding-top: 150px; overflow: hidden; color: #fff;
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 40px 0 70px; position: relative; }
.step {
  position: relative; background: #fff; color: var(--ink); border: 4px solid var(--ink);
  border-radius: var(--radius); padding: 30px 24px 24px; text-align: center; box-shadow: 0 8px 0 var(--ink);
}
.step:nth-child(2) { transform: translateY(20px); }
.step-num {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink);
  display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 1.3rem;
}
.step-ico { font-size: 3rem; animation: bob 3s ease-in-out infinite; }
.step:nth-child(2) .step-ico { animation-delay: -1s; }
.step:nth-child(3) .step-ico { animation-delay: -2s; }
.made-title { text-align: center; font-size: 1.8rem; color: #fff; }
.carousel { overflow: hidden; padding: 30px 0 40px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.carousel-track { display: flex; gap: 30px; width: max-content; animation: marquee 45s linear infinite; }
.carousel:hover .carousel-track { animation-play-state: paused; }
.p-card {
  width: 230px; flex: none; background: #fff; color: var(--ink); border: 4px solid var(--ink); border-radius: 20px;
  padding: 10px 10px 14px; cursor: pointer; font: inherit; text-align: left; box-shadow: 0 8px 0 var(--ink);
  transition: transform .3s cubic-bezier(.3,1.6,.5,1);
}
.p-card:nth-child(odd) { transform: rotate(-3deg); }
.p-card:nth-child(even) { transform: rotate(3deg) translateY(14px); }
.p-card:hover { transform: rotate(0) scale(1.07); }
.p-card img { border-radius: 12px; aspect-ratio: 900/1164; object-fit: cover; width: 100%; }
.p-card h4 { font-size: 1.05rem; margin: 10px 4px 2px; }
.p-card p { margin: 0 4px; font-size: .9rem; font-weight: 700; color: var(--ink-soft); }

/* ============ REQUEST FORM ============ */
.request { background: #fff4d6; }
.request-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: start; }
.request-intro p { font-size: 1.15rem; font-weight: 700; }
.ticks { list-style: none; padding: 0; font-weight: 800; font-size: 1.1rem; }
.ticks li { margin: 10px 0; padding-left: 38px; position: relative; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal); color: #fff; display: grid; place-items: center; font-size: .95rem;
}
.doodle-rainbow {
  width: 220px; height: 110px; margin-top: 30px; border-radius: 220px 220px 0 0;
  background: radial-gradient(circle at 50% 100%, transparent 38%, var(--purple) 38% 46%, var(--blue) 46% 54%, var(--teal) 54% 62%, var(--yellow) 62% 70%, var(--orange) 70% 78%, var(--pink) 78% 86%, transparent 86%);
  animation: bob 4s ease-in-out infinite;
}
.request-form {
  background: #fff; border: 4px solid var(--ink); border-radius: 28px; padding: 30px;
  box-shadow: 10px 12px 0 var(--pink);
}
.request-form label { display: block; font-weight: 800; margin-bottom: 14px; }
.hint { font-weight: 600; color: var(--ink-soft); font-size: .9rem; }
.request-form input:not([type=checkbox]), .request-form select, .request-form textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 600; color: var(--ink);
  border: 3px solid #d9d1f5; border-radius: 14px; padding: .65em .9em; background: #fbf9ff;
  transition: border-color .2s, box-shadow .2s;
}
.request-form input:focus, .request-form select:focus, .request-form textarea:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(139,92,246,.2);
}
.request-form .invalid { border-color: var(--pink) !important; animation: shake .4s; }
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 16px; }
.chip {
  font: inherit; font-weight: 700; font-size: .95rem; border: 3px solid #d9d1f5; background: #fbf9ff; color: var(--ink);
  border-radius: 999px; padding: .3em .85em; cursor: pointer; transition: transform .15s, background .2s, border-color .2s;
}
.chip:hover { transform: scale(1.06); }
.chip.on { background: var(--yellow); border-color: var(--ink); transform: rotate(-3deg) scale(1.05); }
.check { display: flex !important; gap: 10px; align-items: center; }
.check input { width: 22px; height: 22px; accent-color: var(--pink); }
.form-note { font-weight: 800; text-align: center; min-height: 1.6em; margin: 12px 0 0; }

/* ============ PARENTS ============ */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.feature {
  background: #fff; border: 4px solid var(--ink); border-radius: var(--radius); padding: 26px 22px;
  box-shadow: 0 8px 0 var(--c); transition: transform .3s cubic-bezier(.3,1.6,.5,1);
}
.feature:hover { transform: translateY(-8px) rotate(-2deg); }
.f-ico {
  width: 70px; height: 70px; border-radius: 20px; background: var(--c); display: grid; place-items: center;
  font-size: 2.1rem; border: 3px solid var(--ink); margin-bottom: 14px; transform: rotate(-6deg);
}
.feature h3 { font-size: 1.35rem; }
.feature p { margin: 0; color: var(--ink-soft); font-weight: 600; }

/* ============ FAQ ============ */
.faq { background: #e9f7ff; }
.faq .section-title { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-bottom: 18px; }
.faq .section-title .ico3d { transform: scale(.8); }
details { border-bottom: 2px solid rgba(45, 31, 94, .16); padding: 0 4px; }
details:first-of-type { border-top: 2px solid rgba(45, 31, 94, .16); }
summary {
  font-family: var(--head); font-weight: 700; font-size: 1.05rem; cursor: pointer; padding: 11px 0;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--pink); transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 14px; font-weight: 600; font-size: .98rem; color: var(--ink-soft); }
.faq.section { padding: 56px 0; }

/* ============ FOOTER ============ */
.footer { position: relative; background: #3dbb5a; color: #fff; padding: 70px 0 20px; }
.grass {
  position: absolute; top: -40px; left: 0; right: 0; height: 42px;
  background:
    radial-gradient(circle at 20px 42px, #3dbb5a 22px, transparent 23px) 0 0 / 40px 42px repeat-x;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.footer .logo-text b { color: var(--yellow); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-weight: 800; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline wavy var(--yellow); }
.copy { text-align: center; opacity: .9; font-size: .9rem; margin: 30px 16px 0; }

/* ============ MODAL ============ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(45,31,94,.65); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .3s; }
.modal-card {
  position: relative; width: min(1020px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--cream); border: 5px solid var(--ink); border-radius: 30px; padding: 28px;
  animation: popIn .45s cubic-bezier(.3,1.6,.5,1);
}
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid var(--ink); background: var(--yellow); font-size: 1.3rem; font-weight: 800; cursor: pointer; color: var(--ink);
}
.modal-close:hover { transform: rotate(90deg); transition: transform .3s; }
.modal-body { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: start; }
.viewer-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.vtab {
  flex: 1; font-family: var(--head); font-weight: 800; font-size: 1rem; padding: .5em; cursor: pointer;
  border: 3px solid var(--ink); border-radius: 14px; background: #fff; color: var(--ink);
}
.vtab.active { background: var(--purple); color: #fff; }
.vtab[hidden] { display: none; }
.flipbook { position: relative; perspective: 1600px; }
.page-stage {
  border-radius: 14px; overflow: hidden; border: 4px solid var(--ink); background: #fff;
  box-shadow: 8px 8px 0 rgba(45,31,94,.18); aspect-ratio: 900 / 1164; display: grid; place-items: center;
}
.page-stage img { width: 100%; height: 100%; object-fit: contain; transform-origin: left center; }
.page-stage img.turn-next { animation: turnNext .5s ease; }
.page-stage img.turn-prev { animation: turnPrev .5s ease; }
.flip-btn {
  position: absolute; top: 45%; z-index: 2; width: 50px; height: 50px; border-radius: 50%;
  border: 3px solid var(--ink); background: var(--yellow); font-size: 2rem; line-height: 1; cursor: pointer;
  font-weight: 800; color: var(--ink); box-shadow: 0 4px 0 var(--ink);
}
.flip-btn.prev { left: -18px; }
.flip-btn.next { right: -18px; }
.flip-btn:disabled { opacity: .35; cursor: default; }
.page-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.page-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; padding: 0; cursor: pointer; }
.page-dots button.on { background: var(--pink); transform: scale(1.3); }
.video-wrap video { width: 100%; max-height: 70vh; border-radius: 14px; border: 4px solid var(--ink); background: #000; }
.modal-info h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 8px; }
.cat-pill { display: inline-block; background: var(--c, var(--pink)); color: #fff; font-weight: 800; border: 3px solid var(--ink); border-radius: 999px; padding: .15em .9em; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.meta span { background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 2px 10px; font-weight: 800; font-size: .9rem; }
.modal-info p { font-size: 1.1rem; font-weight: 600; }
.learns { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.learns li { background: #fff4a8; border: 2px dashed var(--ink); border-radius: 12px; padding: 4px 12px; font-weight: 800; }

/* ============ CONFETTI & REVEAL ============ */
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; width: 100%; height: 100%; }
.reveal { opacity: 0; transform: translateY(40px) scale(.97); transition: opacity .7s ease, transform .7s cubic-bezier(.3,1.4,.5,1); }
.reveal.in { opacity: 1; transform: none; }
.book-card.reveal.in:nth-child(odd) { transform: rotate(-1.2deg); }
.book-card.reveal.in:nth-child(even) { transform: rotate(1.2deg); }
.book-card.reveal.in:hover { transform: translateY(-10px) rotate(0) scale(1.03); }
.sparkle { position: fixed; pointer-events: none; z-index: 150; font-size: 14px; animation: sparkle .9s ease-out forwards; }

/* ============ KEYFRAMES ============ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0%,100% { transform: rotate(-3deg) scale(1); } 50% { transform: rotate(2deg) scale(1.05); } }
@keyframes bounceIn { 0% { opacity: 0; transform: translateY(-60px) scale(.5); } 100% { opacity: 1; transform: none; } }
@keyframes float1 { 0%,100% { transform: rotate(-12deg) translateY(0); } 50% { transform: rotate(-9deg) translateY(-18px); } }
@keyframes float2 { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-22px) rotate(2deg); } }
@keyframes float3 { 0%,100% { transform: rotate(10deg) translateY(0); } 50% { transform: rotate(7deg) translateY(-14px); } }
@keyframes hop { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-24px) rotate(-6deg); } 60% { transform: translateY(0) rotate(0); } }
@keyframes blink { 0%,92%,100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes flap { 0%,100% { transform: scaleX(1); } 50% { transform: scaleX(.85); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes drift { from { left: -260px; } to { left: 110%; } }
@keyframes rise { from { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-60vh) rotate(6deg); } to { transform: translateY(-125vh) rotate(-4deg); } }
@keyframes twinkle { 0%,100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes wiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.7) rotate(-4deg); } }
@keyframes turnNext { 0% { transform: rotateY(-70deg); opacity: .3; } 100% { transform: none; opacity: 1; } }
@keyframes turnPrev { 0% { transform: rotateY(70deg); opacity: .3; transform-origin: right center; } 100% { transform: none; opacity: 1; } }
@keyframes sparkle { to { transform: translateY(24px) scale(.2) rotate(180deg); opacity: 0; } }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; font-size: 1.15rem; max-width: 36ch; }
  .hero-ctas { justify-content: center; }
  .hero-3d { height: 420px; max-width: 520px; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .step:nth-child(2) { transform: none; }
  .request-wrap { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .modal-body { grid-template-columns: 1fr; }
  .flipbook { max-width: 420px; margin: 0 auto; }
  .viewer-tabs { margin-right: 52px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 16px; right: 16px; flex-direction: column; gap: 14px;
    background: #fff; border: 4px solid var(--ink); border-radius: 22px; padding: 20px;
    box-shadow: 0 8px 0 var(--ink); transform-origin: top; transform: scaleY(0); opacity: 0;
    transition: transform .3s cubic-bezier(.3,1.5,.5,1), opacity .2s; pointer-events: none;
  }
  .nav.open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .logo { font-size: 1.35rem; }
  .section { padding: 70px 0; }
  .personal { padding-top: 120px; }
  .features { grid-template-columns: 1fr; }
  .row.two { grid-template-columns: 1fr; gap: 0; }
  .request-form { padding: 20px; box-shadow: 6px 8px 0 var(--pink); }
  .modal-card { padding: 18px; border-radius: 22px; }
  .flip-btn.prev { left: -8px; } .flip-btn.next { right: -8px; }
  .sun { width: 70px; height: 70px; top: 80px; }
  .speech { left: -40px; font-size: .9rem; }
  .book-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px; }
  .book-card { padding: 8px 8px 12px; }
  .book-card h3 { font-size: 1.05rem; }
  .ribbon { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .carousel-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .reveal { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .p-card.dup { display: none; } }

/* ============================================================
   v2 ADD-ONS — 3D icons, Story Club, lock screen, 3D hero
   ============================================================ */
[class^="ph-"], [class*=" ph-"] { line-height: 1; }
.btn i, .filter i, .chip i, .ribbon i, .cat-pill i, .meta i, .learns i, .nav-login i { font-size: 1.15em; vertical-align: -0.15em; }
.logo-star i { font-size: 1.2rem; }

/* glossy "3D" icon badges */
.ico3d {
  --c1: #ff9ec4; --c2: #e11d74;
  display: inline-grid; place-items: center; width: 1.35em; height: 1.35em; border-radius: 30%;
  vertical-align: -0.2em; color: #fff; position: relative;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.75) 0 12%, transparent 13%),
              linear-gradient(145deg, var(--c1), var(--c2));
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.18), inset 0 3px 0 rgba(255,255,255,.45), 0 5px 0 rgba(45,31,94,.25), 0 10px 18px rgba(45,31,94,.18);
  transform: rotate(-8deg);
}
.ico3d i { font-size: .8em; filter: drop-shadow(0 2px 0 rgba(0,0,0,.2)); }
.ico3d.big { font-size: 3.4rem; margin-bottom: 14px; animation: bob 3s ease-in-out infinite; }
.step:nth-child(2) .ico3d.big { animation-delay: -1s; }
.step:nth-child(3) .ico3d.big { animation-delay: -2s; }
.feature:hover .ico3d.big, .step:hover .ico3d.big { animation: jelly .7s; }
.section-title .ico3d { margin-right: .15em; }

/* nav */
.nav-login { display: inline-flex; align-items: center; gap: 4px; }

/* hero */
.hero-note { font-weight: 800; margin-top: 16px; }
.hero-note s { opacity: .6; }
.hero-note b { color: #e11d74; }
.hero-note i { color: #e11d74; }
/* the 3D scene covers the whole hero, behind the words; the book column still receives taps */
.hero-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; z-index: 1; pointer-events: none; }
.hero-caption {
  position: absolute; bottom: 6px; left: 0; right: 120px; margin: 0; z-index: 2; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.25;
}
.hero-caption b { font-family: var(--head); font-size: 1.15rem; background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 2px 12px; box-shadow: 0 4px 0 var(--ink); }
.hero-caption span { font-weight: 800; font-size: .85rem; margin-top: 6px; color: var(--ink-soft); }
.hero-3d .mascot { bottom: 0; right: 0; }

/* pricing */
.pricing { background: var(--cream-2); }
.plans { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 28px; align-items: center; margin-top: 30px; perspective: 1200px; }
.plan {
  position: relative; background: #fff; border: 4px solid var(--ink); border-radius: 28px; padding: 30px 26px;
  box-shadow: 0 10px 0 var(--c); display: flex; flex-direction: column; align-items: flex-start;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.3,1.4,.5,1);
}
.plan.tilting { transition: transform .08s linear; }
.plan h3 { font-size: 1.6rem; margin-top: 6px; }
.plan-ico { font-size: 3rem; }
.plan ul { list-style: none; padding: 0; margin: 10px 0 22px; flex: 1; }
.plan li { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; margin: 8px 0; }
.plan li i { color: var(--c); font-size: 1.3rem; flex: none; margin-top: 2px; }
.price { margin: 0; font-family: var(--head); font-size: 1.3rem; }
.price b { font-size: 2.6rem; color: var(--ink); }
.price s { font-size: 1.5rem; opacity: .5; margin-right: 4px; }
.price small { font-size: 1.1rem; font-weight: 700; color: var(--ink-soft); }
.price-note { margin: 0; font-weight: 800; color: #e11d74; font-size: .95rem; }
.plan-star { padding: 40px 30px; background: linear-gradient(180deg, #fff 0%, #fff4fa 100%); box-shadow: 0 14px 0 var(--c), 0 30px 60px rgba(255,95,162,.3); }
.plan-star .btn-big { width: 100%; justify-content: center; }
.plan-flag {
  position: absolute; top: -20px; right: 22px; background: var(--yellow); border: 3px solid var(--ink); border-radius: 14px;
  padding: 3px 14px; font-family: var(--head); font-weight: 800; transform: rotate(4deg); animation: pop 2.6s ease-in-out infinite;
}
.secure { margin: 12px 0 0; font-weight: 700; font-size: .9rem; color: var(--ink-soft); align-self: center; }
.secure i { color: var(--teal); }

/* lock card in the flipbook */
.page-stage { position: relative; }
.page-stage img.blurred { filter: blur(10px) saturate(1.2); transform: scale(1.1); }
.lock-card {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 24px; background: rgba(255, 248, 236, .72); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); transform-origin: left center;
}
.lock-card.turn-next { animation: turnNext .5s ease; }
.lock-card.turn-prev { animation: turnPrev .5s ease; }
.lock-card h3 { font-size: 1.7rem; margin: 10px 0 4px; }
.lock-card p { font-weight: 700; margin: 0 0 18px; }
.lock-ico {
  width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; font-size: 2.8rem; color: #fff;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.7) 0 12%, transparent 13%), linear-gradient(145deg, #ffe066, #f59e0b);
  border: 4px solid var(--ink); box-shadow: 0 6px 0 var(--ink); animation: jiggle 2.4s ease-in-out infinite;
}
.lock-alt { margin-top: 12px; font-weight: 800; color: var(--ink-soft); }
.lock-card.personal .join-btn { display: none; }
.lock-card.personal p { display: none; }
.lock-card.personal h3::after { content: " Want one for your child?"; display: block; font-size: 1.1rem; margin-top: 6px; }
.page-dots button { display: grid; place-items: center; }
.page-dots button i { font-size: 9px; color: var(--ink); }
.page-dots button:last-child { width: 20px; height: 20px; background: var(--yellow); }
.page-dots button:last-child.on { background: var(--pink); }
.page-dots button:last-child.on i { color: #fff; }
.flip-btn { display: grid; place-items: center; font-size: 1.5rem; }

.video-wrap { position: relative; }
.video-end {
  position: absolute; inset: 4px; border-radius: 12px; background: rgba(45,31,94,.82); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px;
}
.video-end[hidden] { display: none; }
.modal-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.modal-close { display: grid; place-items: center; }
.learns li { display: inline-flex; align-items: center; gap: 6px; }
.cat-pill { display: inline-flex; align-items: center; gap: 6px; }
.meta span { display: inline-flex; align-items: center; gap: 4px; }

/* request form: personalized / printed switch */
.seg { display: flex; gap: 10px; margin: -6px 0 16px; }
.seg label { flex: 1; margin: 0 !important; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: .6em; border-radius: 14px; cursor: pointer;
  border: 3px solid #d9d1f5; background: #fbf9ff; font-weight: 800; transition: .2s;
}
.seg input:checked + span { background: var(--purple); color: #fff; border-color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.seg input:focus-visible + span { outline: 3px solid var(--yellow); }
[data-kind][hidden] { display: none; }

.made-title i { color: var(--yellow); }
.sparkle { line-height: 1; }
.spin { display: inline-block; animation: spin 1s linear infinite; }
.magnetic { transition: transform .15s, box-shadow .15s, translate .25s cubic-bezier(.3,1.6,.5,1); }

@keyframes jelly { 0% { transform: rotate(-8deg) scale(1); } 30% { transform: rotate(-8deg) scale(1.25, .8); } 50% { transform: rotate(-8deg) scale(.85, 1.15); } 70% { transform: rotate(-8deg) scale(1.08, .95); } 100% { transform: rotate(-8deg) scale(1); } }
@keyframes jiggle { 0%,100% { transform: rotate(0); } 10% { transform: rotate(-12deg); } 20% { transform: rotate(10deg); } 30% { transform: rotate(-6deg); } 40% { transform: rotate(0); } }

@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .hero-caption { right: 0; bottom: -4px; }
  .hero-3d .mascot { display: none; }
}
@media (max-width: 760px) {
  .nav-login { font-size: 1.1rem; }
  .hero-3d { height: 380px; }
  .modal-ctas .btn { flex: 1; justify-content: center; }
}

/* nav collapses into the menu button earlier now that it has more links */
.logo { white-space: nowrap; }
.nav-links a { white-space: nowrap; }
@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 16px; right: 16px; flex-direction: column; gap: 14px;
    background: #fff; border: 4px solid var(--ink); border-radius: 22px; padding: 20px;
    box-shadow: 0 8px 0 var(--ink); transform-origin: top; transform: scaleY(0); opacity: 0;
    transition: transform .3s cubic-bezier(.3,1.5,.5,1), opacity .2s; pointer-events: none;
  }
  .nav.open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============ testimonials (real kids' stories) ============ */
.made-sub { text-align: center; color: #fff; font-weight: 700; margin: -4px 0 0; opacity: .95; }
.t-card {
  width: 340px; flex: none; display: flex; flex-direction: column; gap: 10px; text-align: left; cursor: pointer;
  background: #fff; color: var(--ink); font: inherit; border: 4px solid var(--ink); border-radius: 26px; padding: 18px 20px 20px;
  box-shadow: 0 8px 0 var(--ink); transition: transform .35s cubic-bezier(.3,1.6,.5,1);
}
.t-card:nth-child(odd) { transform: rotate(-2deg); }
.t-card:nth-child(even) { transform: rotate(2deg) translateY(14px); }
.t-card:hover, .t-card:focus-visible { transform: rotate(0) scale(1.04); outline: none; }
.t-top { display: flex; gap: 14px; align-items: center; }
.t-top img {
  width: 76px; aspect-ratio: 900/1164; object-fit: cover; border-radius: 6px 10px 10px 6px; flex: none;
  box-shadow: inset 5px 0 0 rgba(0,0,0,.12), 3px 4px 0 rgba(45,31,94,.25); transform: rotate(-5deg);
  transition: transform .4s cubic-bezier(.3,1.6,.5,1);
}
.t-card:hover .t-top img { transform: rotate(3deg) scale(1.08); }
.t-top div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.t-name { font-family: var(--head); font-size: 1.3rem; }
.t-stars { color: #f5b700; font-size: 1rem; letter-spacing: 1px; }
.t-book { font-size: .85rem; font-weight: 700; color: var(--ink-soft); line-height: 1.3; }
.t-kid {
  position: relative; margin: 6px 0 0; background: #fff4a8; border: 3px solid var(--ink); border-radius: 18px;
  padding: 10px 14px; font-family: var(--head); font-weight: 700; font-size: 1.1rem; line-height: 1.3;
}
.t-kid::before { /* speech-bubble tail */
  content: ""; position: absolute; top: -12px; left: 28px; width: 18px; height: 18px; background: #fff4a8;
  border-left: 3px solid var(--ink); border-top: 3px solid var(--ink); transform: rotate(45deg);
}
.t-kid i { color: var(--pink); margin-right: 4px; }
.t-parent { margin: 4px 0 0; font-weight: 600; color: var(--ink-soft); font-style: italic; line-height: 1.5; }
.t-from { font-weight: 800; color: var(--purple); }
@media (max-width: 760px) { .t-card { width: 290px; } }
@media (prefers-reduced-motion: reduce) { .t-card.dup { display: none; } }

/* ============================================================
   v3 — Buzz Bee, 3D bookshelf books, "why kids love us" trio
   ============================================================ */
/* reading buddies are pictures now (buddies.js): keep their shape when a style sets only the width */
img.buddy { height: auto; object-fit: contain; -webkit-user-select: none; user-select: none; }
.bee .wing { transform-box: fill-box; transform-origin: bottom center; animation: beeFlap .16s ease-in-out infinite alternate; }
.bee .wing.r { animation-delay: .08s; }
@keyframes beeFlap { from { transform: rotate(-10deg); } to { transform: rotate(10deg) scaleY(.8); } }
.bee.hover { animation: beeHover 3s ease-in-out infinite; }
@keyframes beeHover { 0%,100% { transform: translate(0,0) rotate(-3deg); } 50% { transform: translate(5px,-10px) rotate(3deg); } }
.mascot .bee { display: block; }
.mascot .speech { top: -26px; left: -78px; }

/* 3D book on each bookshelf card: angled to show its spine, turns to face you on hover */
.stage3 { position: relative; perspective: 1000px; display: flex; justify-content: center; padding: 8px 0 6px;
  background: radial-gradient(ellipse 60% 12% at 50% 97%, rgba(45,31,94,.2), transparent 70%); }
.book3 { --d: 16px; width: 74%; position: relative; }
.book3 .b { position: relative; width: 100%; aspect-ratio: 900/1164; transform-style: preserve-3d; transform: rotateY(24deg); transition: transform .6s cubic-bezier(.3,1.3,.5,1); }
.book3 .b img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 3px 8px 8px 3px; box-shadow: inset 6px 0 0 rgba(0,0,0,.15); }
.book3 .spine { position: absolute; left: 0; top: 0; height: 100%; width: var(--d); background: var(--c); transform-origin: left center; transform: rotateY(-90deg);
  box-shadow: inset -3px 0 0 rgba(0,0,0,.18), inset 3px 0 0 rgba(255,255,255,.25); }
.book3 .pages { position: absolute; right: 0; top: 2%; height: 96%; width: var(--d); transform-origin: right center; transform: rotateY(90deg);
  background: repeating-linear-gradient(90deg, #fffaf0 0 2px, #e7dcc6 2px 3px); }
.book-card:hover .book3 .b, .book-card:focus-visible .book3 .b { transform: rotateY(-8deg) translateZ(30px); }
.stage3 .play-badge { left: 8%; bottom: 14px; z-index: 2; }

/* why kids and parents love us — painted circles */
.parents { background: #fff; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; text-align: center; margin-top: 40px; }
.trio h3 { font-size: 1.7rem; margin: 18px 0 8px; }
.trio p { color: var(--ink-soft); font-weight: 600; font-size: 1.05rem; max-width: 30ch; margin: 0 auto; }
.blob { width: 230px; height: 230px; margin: 0 auto; position: relative; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.blob:hover { transform: rotate(-4deg) scale(1.05); }
.blob .paint { position: absolute; inset: 0; background: var(--c); filter: url(#rough); border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%; }
.blob img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: cover; object-position: 50% 25%; border-radius: 50%; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }

/* ============ page-to-page transitions (browsers that support cross-page View Transitions) ============ */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .32s ease both; }
::view-transition-new(root) { animation: vtIn .5s cubic-bezier(.3,1.25,.5,1) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-18px) scale(.985); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(34px) scale(.985); } }
.nav .logo { view-transition-name: site-logo; }          /* the logo stays put while the page changes */
.auth-card { view-transition-name: auth-card; }          /* Sign in ⇄ Join morph into each other */
.auth-art { view-transition-name: auth-art; }
::view-transition-group(auth-card), ::view-transition-group(auth-art) { animation-duration: .45s; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ============ PHONES, TABLETS & THE INSTALLED APP (iOS / Android) ============ */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(80px + env(safe-area-inset-top)); }
body { -webkit-tap-highlight-color: transparent; }
button, a, input, select, textarea, label { touch-action: manipulation; } /* no double-tap zoom delay */
/* keep clear of the notch, rounded corners and the home bar */
.nav {
  padding-top: calc(12px + env(safe-area-inset-top));
  padding-left: max(16px, calc((100% - 1180px) / 2), calc(env(safe-area-inset-left) + 8px));
  padding-right: max(16px, calc((100% - 1180px) / 2), calc(env(safe-area-inset-right) + 8px));
}
.footer { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.container { width: min(1180px, 100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)); }
/* bigger tap targets for little fingers */
.footer-links a { display: inline-block; padding: 8px 2px; }
.seg label { position: relative; }
@media (max-width: 520px) { .ribbon { font-size: .75rem; } }
/* phone browsers: the address bar comes and goes — size to the part you can actually see */
@supports (height: 100svh) { .hero { min-height: 100svh; } }
.hero { padding-top: calc(110px + env(safe-area-inset-top)); }
/* as an installed app: no rubber-band bounce or text selection on buttons */
@media (display-mode: standalone) {
  body { overscroll-behavior-y: none; }
  .btn, button, .nav { -webkit-user-select: none; user-select: none; }
}

/* ---------- A letter from the author ---------- */
.author { padding-top: 10px; }
.author-note { position: relative; max-width: 680px; margin: 0 auto; padding: 40px 44px 34px; text-align: left; background: #fffdf5; border: 3px solid var(--ink); border-radius: 10px 26px 10px 26px;
  box-shadow: 0 10px 0 rgba(45, 31, 94, .14), 0 22px 40px rgba(45, 31, 94, .12); transform: rotate(-.6deg); }
.author-pin { position: absolute; top: -22px; left: 40px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: #fff; font-size: 1.25rem; border: 3px solid var(--ink); }
.author-note .author-dear { margin: 0 0 14px; font-family: "Caveat Brush", cursive; font-size: 1.9rem; line-height: 1.1; color: var(--ink); }
.author-note p { margin: 0 0 14px; font-size: 1.08rem; line-height: 1.7; color: #4a3f73; font-weight: 600; }
.author-note p b { color: #e11d74; }
.author-sign { margin: 18px 0 0 !important; text-align: right; font-family: Caveat, "Caveat Brush", cursive; font-weight: 600 !important; font-size: 1.6rem !important; line-height: 1.15 !important; }
.author-sign span { display: block; margin-top: 2px; font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--ink); }
.author-sign span b { color: #e11d74; font-weight: 700; }
.author-sign span i { font-style: normal; font-size: .62em; color: #e11d74; }
@media (max-width: 560px) { .author-note { padding: 36px 22px 26px; } .author-pin { left: 22px; } }

/* ---------- Pricing: compact enough to see all three plans without scrolling ---------- */
.pricing.section { padding: 46px 0 54px; }
.pricing .section-title { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.pricing .section-title .ico3d { transform: scale(.82); }
.pricing .section-sub { font-size: 1.02rem; margin-bottom: 26px; }
.pricing .plans { gap: 22px; margin-top: 0; align-items: stretch; }
.pricing .plan { padding: 0; align-items: stretch; border-radius: 24px; box-shadow: 0 8px 0 var(--c); }
.pricing .plan-star { padding: 0; box-shadow: 0 10px 0 var(--c), 0 22px 44px rgba(255,95,162,.25); }
/* each card: a coloured top with the title, the price in a pill, then the list and a one-line button */
.pricing .plan-top { background: var(--c); color: #fff; text-align: center; padding: 16px 12px 30px; border-radius: 20px 20px 0 0; }
.pricing .plan-top i { display: block; font-size: 2.1rem; }
.pricing .plan h3 { color: #fff; font-size: clamp(1.45rem, 2vw, 1.75rem); line-height: 1.05; margin: 4px 0 0; }
.pricing .plan-tag { position: relative; align-self: center; margin: -21px 0 0; background: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 3px 18px; white-space: nowrap; }
.pricing .price.price-text b { font-size: 1.1rem; }
.pricing .plan-body { display: flex; flex-direction: column; flex: 1; padding: 12px 22px 20px; }
.pricing .plan-body .price-note { text-align: center; margin-bottom: 2px; }
.pricing .plan-body .btn { width: 100%; justify-content: center; white-space: nowrap; }
.pricing .price { font-size: 1.05rem; line-height: 1.15; }
.pricing .price b { font-size: 1.9rem; }
.pricing .price s { font-size: 1.15rem; }
.pricing .price small { font-size: .95rem; }
.pricing .price-note { font-size: .85rem; line-height: 1.3; }
.pricing .plan ul { margin: 8px 0 14px; }
.pricing .plan li { margin: 4px 0; font-size: .95rem; line-height: 1.35; }
.pricing .plan li i { font-size: 1.1rem; }
.pricing .plan .btn { padding-top: 9px; padding-bottom: 9px; font-size: 1rem; }
.pricing .secure { margin: 22px 0 0; font-size: .9rem; text-align: center; }
.pricing .plan-flag { top: -16px; font-size: .9rem; }

/* ---------- What families say: picture + one card at a time ---------- */
.love { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 34px; align-items: center; max-width: 940px; margin: 26px auto 0; }
.love-art { position: relative; aspect-ratio: 400 / 420; max-width: 400px; width: 100%; margin: 0 auto; }
.love-splash { position: absolute; inset: 0; width: 100%; height: 100%; }
.love-tablet { position: absolute; left: 14%; right: 14%; top: 12%; padding: 12px; background: #1f1740; border-radius: 26px; transform: rotate(-4deg); box-shadow: 0 16px 0 rgba(45,31,94,.35), 0 30px 50px rgba(45,31,94,.3); }
.love-screen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; background: #fff8ec; border-radius: 14px; }
.love-screen img { width: 100%; aspect-ratio: 900 / 1164; object-fit: cover; border-radius: 5px; box-shadow: 2px 3px 0 rgba(45,31,94,.25); display: block; }
.love-art.has-photo .love-tablet { display: none; }
.love-photo { position: absolute; left: 2%; top: 13%; width: 96%; aspect-ratio: 930 / 690; object-fit: cover; border: 5px solid #fff; border-radius: 26px; transform: rotate(-3deg); box-shadow: 0 0 0 4px var(--ink), 0 14px 0 4px rgba(45,31,94,.35), 0 30px 50px rgba(45,31,94,.3); }
.love-stack { display: grid; }
.love-stack .t-card { grid-area: 1 / 1; width: 100%; max-width: 470px; justify-self: center; opacity: 0; pointer-events: none; transform: translateX(46px) rotate(3deg);
  transition: opacity .45s ease, transform .55s cubic-bezier(.3, 1.4, .5, 1); }
.love-stack .t-card.on { opacity: 1; pointer-events: auto; transform: rotate(-1.2deg); }
.love-stack .t-card.on:hover, .love-stack .t-card.on:focus-visible { transform: rotate(0) scale(1.02); }
.love-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; }
.love-nav > button { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; color: var(--ink); font-size: 1.1rem; cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 0 var(--ink); }
.love-dots { display: flex; gap: 8px; }
.love-dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; }
.love-dots button.on { background: var(--yellow); border-color: var(--ink); transform: scale(1.25); }
@media (max-width: 800px) { .love { grid-template-columns: 1fr; gap: 18px; } .love-art { max-width: 280px; } }
@media (prefers-reduced-motion: reduce) { .love-stack .t-card { transition: none; } }

/* ---------- Order a book: compact enough to see the whole form without scrolling ---------- */
.request.section { padding: 22px 0 40px; }
.request-wrap { gap: 40px; align-items: center; }
.request .section-title { font-size: clamp(1.7rem, 3.2vw, 2.2rem); margin-bottom: 8px; }
.request .section-title .ico3d { transform: scale(.8); }
.request-intro p { font-size: 1.02rem; margin: 0 0 8px; }
.request .ticks { font-size: .98rem; margin: 0; }
.request .ticks li { margin: 6px 0; padding-left: 32px; }
.request .ticks li::before { width: 23px; height: 23px; font-size: .8rem; }
.request .doodle-rainbow { width: 150px; height: 75px; margin-top: 14px; }
.request-form { padding: 18px 22px 16px; border-radius: 24px; box-shadow: 8px 9px 0 var(--pink); }
.request-form label { margin-bottom: 8px; font-size: .92rem; }
.request-form .hint { font-size: .8rem; }
.request-form input:not([type=checkbox]), .request-form select, .request-form textarea { margin-top: 3px; padding: .4em .75em; border-width: 2px; border-radius: 11px; font-size: .95rem; }
.request-form textarea { height: 56px; resize: vertical; }
.request-form .row.two { gap: 12px; }
.request-form .seg { margin-bottom: 8px; }
.request-form .seg span { padding-top: .42em; padding-bottom: .42em; font-size: .95rem; }
.request-form .chips { gap: 6px; margin: -2px 0 10px; }
.request-form .chip { font-size: .84rem; padding: .22em .7em; border-width: 2px; }
.request-form .btn-big { padding-top: 9px; padding-bottom: 9px; font-size: 1.05rem; margin-top: 2px; }
.request-form .form-note { min-height: 0; margin: 6px 0 0; font-size: .9rem; }

/* iPhones and iPads zoom the page in when a text box uses type smaller than 16px: keep them at 16px on touch screens */
@media (pointer: coarse) { input:not([type=range]):not([type=checkbox]):not([type=radio]):not(.sto-field), select, textarea:not(.sto-text) { font-size: max(16px, 1em) !important; } }   /* (the book studio sizes its own writing, never under 16px while typing: story.js) */

/* the author's letter: a few key words in colour */
.author-note b.w-pink { color: #e11d74; }
.author-note b.w-orange { color: #e2640f; }
.author-note b.w-teal { color: #0d8f83; }
.author-note b.w-purple { color: #7c3aed; }

/* ---------- Order a personalized book: the big panel above the request form ---------- */
.request-stack { display: block; }
.obook { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff3cf 0%, #ffe9d6 55%, #fde6f3 100%); border: 4px solid var(--ink); border-radius: 30px; padding: 30px 30px 28px; box-shadow: 0 10px 0 #8b5cf6; }
.obook-star { position: absolute; color: var(--yellow); font-size: 1.4rem; }
.obook-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 20px; align-items: center; }
.obook-top h2 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.02; margin: 0 0 12px; }
.obook-top h2 span:nth-child(5n+1) { color: #e11d74; } .obook-top h2 span:nth-child(5n+2) { color: #8b5cf6; } .obook-top h2 span:nth-child(5n+3) { color: var(--ink); } .obook-top h2 span:nth-child(5n+4) { color: #ff8a3d; } .obook-top h2 span:nth-child(5n) { color: #3b82f6; }
.obook-tag { font-family: var(--head); font-weight: 800; font-size: 1.12rem; line-height: 1.35; margin: 0 0 8px; }
.obook-say { margin: 0; line-height: 1.6; font-weight: 600; color: var(--ink-soft); max-width: 44ch; }
.obook-fan { position: relative; height: 270px; }
.obook-fan img { position: absolute; width: 46%; aspect-ratio: 900 / 1164; object-fit: cover; border: 3px solid var(--ink); border-radius: 6px 12px 12px 6px; box-shadow: 6px 8px 0 rgba(45,31,94,.22); background: #fff; }
.obook-fan img:nth-child(1) { left: 2%; top: 26px; transform: rotate(-11deg); }
.obook-fan img:nth-child(2) { right: 2%; top: 26px; transform: rotate(10deg); }
.obook-fan img:nth-child(3) { left: 27%; top: 4px; transform: rotate(-1deg); z-index: 2; width: 48%; }
.obook-incl { margin-top: 22px; background: rgba(255,255,255,.72); border: 3px solid var(--ink); border-radius: 22px; padding: 16px 20px 14px; }
.obook-incl h3 { font-size: 1.2rem; margin: 0 0 10px; }
.obook-incl ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.obook-incl li { display: flex; gap: 12px; align-items: center; }
.obook-ico { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 1.4rem; background: var(--c); box-shadow: 0 4px 0 rgba(45,31,94,.3); }
.obook-incl b { display: block; font-weight: 800; line-height: 1.25; }
.obook-incl small { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.obook-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.obook-card { background: #fff; border: 3px solid var(--ink); border-radius: 22px; padding: 14px 16px; box-shadow: 0 6px 0 var(--c); display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 6px 12px; align-items: end; }
.obook-card .hd { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.obook-card .hd h3 { flex: 1; margin: 0; font-size: 1.15rem; line-height: 1.1; color: var(--c); }
.obook-card .cost { font-family: var(--head); font-weight: 800; font-size: 1.9rem; line-height: 1; white-space: nowrap; }
.obook-card ul { list-style: none; margin: 0; padding: 0; }
.obook-card li { display: flex; gap: 7px; align-items: flex-start; margin: 5px 0; font-size: .93rem; font-weight: 700; line-height: 1.3; }
.obook-card li i { color: var(--c); font-size: 1.05rem; margin-top: 1px; }
.obook-card img { width: 92px; aspect-ratio: 900 / 1164; object-fit: cover; border: 3px solid var(--ink); border-radius: 4px 9px 9px 4px; transform: rotate(5deg); box-shadow: 4px 5px 0 rgba(45,31,94,.2); }
.obook-gift { margin-top: 18px; display: flex; align-items: center; gap: 14px; background: #ffe1ee; border: 3px solid var(--ink); border-radius: 20px; padding: 10px 16px; }
.obook-gift > i { font-size: 2.2rem; color: #e11d74; }
.obook-gift b { display: block; font-family: var(--head); font-weight: 800; font-size: 1.1rem; line-height: 1.2; color: #e11d74; }
.obook-gift span { font-size: .92rem; font-weight: 600; color: var(--ink-soft); }
.obook-gift .btn { margin-left: auto; flex: none; white-space: nowrap; }
@media (max-width: 760px) {
  .obook { padding: 22px 16px 20px; }
  .obook-top { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .obook-say { margin: 0 auto; }
  .obook-fan { height: 230px; max-width: 340px; width: 100%; margin: 0 auto; }
  .obook-incl ul, .obook-prices { grid-template-columns: minmax(0, 1fr); }
  .obook-gift { flex-wrap: wrap; justify-content: center; text-align: center; }
  .obook-gift .btn { margin: 4px auto 0; }
}

/* the keepsake card shows a real printed book lying on another one */
.obook-card.keep { grid-template-columns: minmax(0, 1fr) 170px; }
.obook-keep { position: relative; display: block; width: 170px; height: 128px; perspective: 700px; }
.obook-keep > i { position: absolute; right: 4px; top: 0; font-size: 1.3rem; color: var(--yellow); }
.kbook { --t: 13px; position: absolute; left: 30px; top: -6px; width: 104px; height: 134px; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-24deg); }
.kbook.under { --t: 11px; left: 20px; top: 12px; transform: translateZ(-16px) rotateX(58deg) rotateZ(14deg); }
.kbook::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: #2d1f5e; border-radius: 3px 6px 6px 3px; box-shadow: 10px 12px 14px rgba(45,31,94,.35); }
.kb-cover { position: absolute; top: 0; right: 0; bottom: 0; left: 0; transform: translateZ(var(--t)); background-size: cover; background-position: center; border: 2px solid #2d1f5e; border-radius: 3px 6px 6px 3px; }
.kb-edge { position: absolute; background: repeating-linear-gradient(0deg, #fffdf5 0 2px, #e2d9c2 2px 3px); border: 1.5px solid #2d1f5e; }
.kb-edge.b { left: 0; bottom: 0; width: 100%; height: var(--t); transform-origin: 50% 100%; transform: rotateX(-90deg); }
.kb-edge.r { right: 0; top: 0; width: var(--t); height: 100%; transform-origin: 100% 50%; transform: rotateY(90deg); background: repeating-linear-gradient(90deg, #fffdf5 0 2px, #e2d9c2 2px 3px); }
.kb-edge.l { left: 0; top: 0; width: var(--t); height: 100%; transform-origin: 0 50%; transform: rotateY(-90deg); background: #5a3fc0; }
@media (max-width: 760px) { .obook-card.keep { grid-template-columns: minmax(0, 1fr); } .obook-keep { margin: 6px auto 0; } }

/* the order panel, kept compact so it fits one laptop screen */
.obook { max-width: 1000px; margin: 0 auto; padding: 20px 26px 20px; border-radius: 26px; box-shadow: 0 8px 0 #8b5cf6; }
.obook-top h2 { font-size: clamp(1.7rem, 3.3vw, 2.4rem); margin-bottom: 8px; }
.obook-tag { font-size: 1rem; margin-bottom: 6px; }
.obook-say { font-size: .95rem; line-height: 1.5; max-width: 52ch; }
.obook-fan { height: 176px; }
.obook-fan img { width: 30%; border-width: 2px; }
.obook-fan img:nth-child(1) { left: 14%; top: 18px; }
.obook-fan img:nth-child(2) { right: 14%; top: 18px; }
.obook-fan img:nth-child(3) { left: 34%; top: 2px; width: 32%; }
.obook-incl { margin-top: 12px; padding: 10px 16px 10px; border-radius: 18px; }
.obook-incl h3 { font-size: 1.05rem; margin-bottom: 6px; }
.obook-incl ul { gap: 6px 20px; }
.obook-incl b { font-size: .95rem; } .obook-incl small { font-size: .8rem; }
.obook-ico { width: 36px; height: 36px; border-radius: 12px; font-size: 1.15rem; box-shadow: 0 3px 0 rgba(45,31,94,.3); }
.obook-prices { margin-top: 12px; gap: 16px; }
.obook-card { padding: 10px 14px; border-radius: 18px; grid-template-columns: minmax(0, 1fr) 66px; box-shadow: 0 5px 0 var(--c); }
.obook-card .hd h3 { font-size: 1.05rem; } .obook-card .cost { font-size: 1.6rem; }
.obook-card li { margin: 2px 0; font-size: .88rem; }
.obook-card img { width: 66px; }
.obook-card.keep { grid-template-columns: minmax(0, 1fr) 132px; }
.obook-keep { width: 132px; height: 96px; }
.kbook { --t: 10px; left: 24px; top: -8px; width: 80px; height: 103px; }
.kbook.under { --t: 8px; left: 16px; top: 6px; }
.obook-gift { margin-top: 12px; padding: 8px 14px; border-radius: 18px; }
.obook-gift > i { font-size: 1.8rem; } .obook-gift b { font-size: 1rem; } .obook-gift span { font-size: .88rem; }
@media (max-width: 760px) {
  .obook { padding: 20px 14px 18px; }
  .obook-fan { height: 190px; max-width: 320px; }
  .obook-fan img { width: 38%; } .obook-fan img:nth-child(1) { left: 6%; } .obook-fan img:nth-child(2) { right: 6%; } .obook-fan img:nth-child(3) { left: 30%; width: 40%; }
  .obook-card.keep { grid-template-columns: minmax(0, 1fr); }
}

/* the request form opens as a pop-up from "Order Now" */
.order-sheet { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 150; display: grid; place-items: center; padding: 16px; background: rgba(45,31,94,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.order-sheet[hidden] { display: none; }
.order-sheet .request-form { position: relative; width: 100%; max-width: 640px; max-height: calc(var(--vh, 100vh) - 32px); overflow-y: auto; margin: 0; animation: orderPop .35s cubic-bezier(.3,1.5,.5,1); }
@keyframes orderPop { from { opacity: 0; transform: scale(.92) translateY(14px); } }
.order-sheet h3 { font-size: 1.5rem; margin: 0 44px 2px 0; }
.order-lead { margin: 0 0 12px; font-weight: 700; color: var(--ink-soft); }
.order-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; color: var(--ink); font-size: 1.1rem; display: grid; place-items: center; cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
@media (prefers-reduced-motion: reduce) { .order-sheet .request-form { animation: none; } }

/* ---------- One personalized-story section: coloured title, the order panel, then the families ---------- */
.personal .section-title.rainbow {  text-shadow: 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink), 1.42px 1.42px 0 var(--ink), -1.42px 1.42px 0 var(--ink), 1.42px -1.42px 0 var(--ink), -1.42px -1.42px 0 var(--ink), 0 5px 0 var(--ink); font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: 20px; }
.section-title.rainbow span:nth-child(1) { color: #ffd23f; } .section-title.rainbow span:nth-child(2) { color: #ffc2dd; } .section-title.rainbow span:nth-child(3) { color: #fff; } .section-title.rainbow span:nth-child(4) { color: #ffb066; } .section-title.rainbow span:nth-child(5) { color: #8ff3e6; }
.personal .obook { color: var(--ink); padding-top: 14px; scroll-margin-top: 92px; }
.personal .obook-fan { height: 150px; }
.personal .obook-fan img { width: 25%; } .personal .obook-fan img:nth-child(1) { left: 20%; top: 14px; } .personal .obook-fan img:nth-child(2) { right: 20%; top: 14px; } .personal .obook-fan img:nth-child(3) { left: 36.5%; width: 27%; top: 2px; }
.personal .obook-incl { margin-top: 4px; }
.personal .obook-incl h3 { color: var(--ink); }
.personal .obook-card { grid-template-rows: auto 1fr; }
.personal .obook-card ul { align-self: start; }
.personal .obook-gift { margin-top: 26px; }
.personal .made-title { margin-top: 50px; }
.personal .t-card { cursor: default; text-align: left; }
@media (max-width: 760px) {
  .personal .obook-fan { height: 170px; }
  .personal .obook-fan img { width: 34%; } .personal .obook-fan img:nth-child(1) { left: 8%; } .personal .obook-fan img:nth-child(2) { right: 8%; } .personal .obook-fan img:nth-child(3) { left: 32%; width: 36%; }
}
@media (max-width: 760px) { .obook-star { display: none; } }

/* ---------- The personalized-story section sits on the same warm cream as the rest of the page ---------- */
.personal { background: var(--cream); color: var(--ink); }
.personal .section-title.rainbow { text-shadow: none; }
.personal .section-title.rainbow span:nth-child(1) { color: #e11d74; } .personal .section-title.rainbow span:nth-child(2) { color: #8b5cf6; } .personal .section-title.rainbow span:nth-child(3) { color: var(--ink); } .personal .section-title.rainbow span:nth-child(4) { color: #ff8a3d; } .personal .section-title.rainbow span:nth-child(5) { color: #3b82f6; }
.personal .obook { background: #fff; box-shadow: 0 8px 0 var(--yellow); }
.personal .obook-incl { background: #fffaf0; }
.personal .made-title, .personal .made-sub { color: var(--ink); }
.personal .made-title i { color: var(--pink); }
.personal .love-dots button { border-color: var(--ink); }

/* "How their story comes to life": four steps in a row with little arrows between them */
.obook-how { margin-top: 4px; background: #fffaf0; border: 3px solid var(--ink); border-radius: 18px; padding: 10px 16px 12px; }
.obook-how h3 { font-size: 1.05rem; margin: 0 0 8px; color: var(--ink); }
.obook-how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 26px; }
.obook-how li { position: relative; display: flex; align-items: center; gap: 10px; font-size: .95rem; line-height: 1.2; }
.obook-how li:not(:last-child)::after { content: "\2192"; position: absolute; right: -20px; top: 50%; transform: translateY(-50%); font-weight: 800; color: #b9b0d6; }
.obook-plus { grid-column: 1; margin: 0 0 2px; font-weight: 800; font-size: .88rem; color: var(--c); align-self: start; }
.obook-card.keep { grid-template-rows: auto auto 1fr; }
.obook-card.keep .obook-keep { grid-row: 2 / 4; grid-column: 2; align-self: end; }
.obook-gift > i { color: #f5b400; }
@media (max-width: 760px) {
  .obook-how ol { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .obook-how li:not(:last-child)::after { display: none; }
  .obook-card.keep .obook-keep { grid-row: auto; grid-column: auto; }
}
.personal .obook-tag { font-size: 1.25rem; line-height: 1.25; color: #e11d74; }

/* menu jumps land so the whole part fits on screen:
   Story Worlds: the scroll's stage pins to the very top (it already leaves room for the menu bar)
   Make My Story: the coloured title sits just under the menu bar, with the whole box below it */
#worlds { scroll-margin-top: calc(-80px - env(safe-area-inset-top)); }
#personal { scroll-margin-top: -128px; }
@media (max-width: 760px) { #personal { scroll-margin-top: -100px; } }

.request-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* a hidden box only spam robots fill in */
/* the big heading breaks the same way on every screen: "A magical world of / stories for curious / little minds." */
.hero h1 { max-width: 10em; }
@media (max-width: 960px) { .hero h1 { margin-inline: auto; } }

/* ---------- the illustrated logo (assets/brand/whizzbee-logo-b*.png, owner 24 Oct 2026) ---------- */
.logo-img { display: block; height: 84px; width: auto; margin: -4px 0 -20px; /* a bit bigger than the bar, so the words are easy to read */ filter: drop-shadow(0 2px 3px rgba(45,31,94,.18)); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.logo:hover .logo-img { transform: rotate(-3deg) scale(1.05); }
.nav { padding-top: calc(8px + env(safe-area-inset-top)); padding-bottom: 8px; }
.footer .logo-img { height: 140px; margin: 0; }
@media (max-width: 600px) { .logo-img { height: 64px; margin: 0 0 -14px; } .footer .logo-img { height: 110px; } }
@media (prefers-reduced-motion: reduce) { .logo-img { transition: none; } }

/* links to the Terms, Privacy and Cancellation & Refunds pages */
.legal-links { text-align: center; font-weight: 700; font-size: .9rem; color: var(--ink-soft); margin: 10px 0 0; }
.legal-links a { color: var(--ink-soft); font-weight: 800; }
.agree { text-align: center; font-size: .85rem; font-weight: 700; color: var(--ink-soft); margin: 8px 0 0; }
.agree a { color: var(--purple); font-weight: 800; }

/* In the iPhone/iPad and Android apps (Club.inApp): no joining, prices or paying, those stay on the website */
.in-app .web-only { display: none !important; }
.app-only { display: none; }
.in-app .app-only { display: inline; }
.usd-note { display: block; font-size: .78rem; font-weight: 700; color: var(--ink-soft); margin: 2px 0 6px; } .usd-note[hidden] { display: none; }

/* ---------- Two devices per account: the "already on 2 devices" and "signed out" pop-ups (club.js; mockups/devices-time-plan.html D2 to D4) ---------- */
.dv-pop { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(45,31,94,.6); }
.dv-pop[hidden] { display: none; }
.dv-card { width: min(420px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--cream, #fff8ec); border: 4px solid var(--ink); border-radius: 28px; padding: 24px 22px 20px; text-align: center; color: var(--ink); animation: popIn .4s cubic-bezier(.3,1.6,.5,1); }
.dv-card h2 { margin: 6px 0 6px; font: 800 1.45rem/1.2 var(--head); }
.dv-card p { margin: 0 0 14px; font-weight: 700; color: var(--ink-soft); }
.dv-card .btn { width: 100%; justify-content: center; margin-top: 8px; }
.dv-big { width: 76px; height: 76px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: #ffe1ee; color: var(--pink); font-size: 2.2rem; }
.dv-big.dv-out { background: #efe8ff; color: var(--purple); }
.dv-form { text-align: left; }
.dv-form input { display: block; width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; font-weight: 700; color: var(--ink); border: 3px solid #d9d1f5; border-radius: 14px; padding: .65em .9em; background: #fff; margin: 0 0 8px; }
.dv-form input:focus { outline: none; border-color: var(--purple); }
.dv-lbl { margin: 0 0 6px !important; font: 800 .85rem var(--head) !important; color: var(--ink) !important; }
.dv-msg { margin: 4px 0 0 !important; min-height: 1em; color: #e11d74 !important; font-size: .9rem; text-align: center; }
.dv-msg:empty { display: none; }
.dv-list { display: grid; gap: 8px; text-align: left; }
.dv-dev { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; background: #fff; border: 3px solid #e6e0f7; border-radius: 16px; cursor: pointer; font: inherit; color: var(--ink); text-align: left; }
.dv-dev.on { border-color: var(--purple); background: #f5f0ff; }
.dv-dev b { display: block; font: 800 1rem var(--head); }
.dv-dev small { font-weight: 700; color: var(--ink-soft); }
.dv-dev > span:nth-child(2) { flex: 1; }
.dv-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #efe8ff; color: var(--purple); font-size: 1.3rem; }
.dv-tick { color: var(--purple); font-size: 1.4rem; opacity: 0; }
.dv-dev.on .dv-tick { opacity: 1; }
.dv-small { margin: 6px 0 0 !important; font-size: .85rem; }

/* every print is one sheet of paper (owner, 23 Oct 2026): the page's own height, padding and background never add a page */
@media print { html, body { height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; background: #fff !important; } }
