@font-face {
  font-family: Wonder;
  src: url("assets/display.ttf");
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: #24413e;
  background: #fbf6eb;
  font-family: Arial, "Tahoma", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #d77658;
  outline-offset: 5px;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.25;
}
h1 {
  font-size: clamp(34px, 5.4vw, 70px);
  letter-spacing: -1px;
}
h2 {
  font-size: clamp(26px, 3vw, 43px);
}
h3 {
  font-size: 22px;
}
.en,
h1[lang="en"],
h2[lang="en"] {
  font-family: Wonder, Georgia, serif;
}
.wrap {
  max-width: 1190px;
  margin: auto;
  padding: 0 30px;
}
.site-header {
  max-width: 1320px;
  margin: auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  direction: ltr;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  line-height: 1.1;
  white-space: nowrap;
}
.brand b {
  font-family: Wonder, serif;
  font-size: 24px;
  letter-spacing: -0.9px;
}
.brand small {
  display: block;
  font: 9px Arial;
  letter-spacing: 1.6px;
  margin-top: 8px;
}
.brand-icon {
  font: 700 35px Georgia;
  background: #23685c;
  color: white;
  border-radius: 15px 15px 15px 5px;
  width: 49px;
  height: 49px;
  text-align: center;
  line-height: 44px;
  position: relative;
}
.brand-icon:after {
  content: "✦";
  position: absolute;
  color: #f2c969;
  font-size: 15px;
  right: -3px;
  top: -12px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  direction: rtl;
}
.nav a {
  text-decoration: none;
  font-size: 14px;
}
.nav a.active {
  color: #23685c;
  border-bottom: 2px solid #23685c;
}
.btn,
.quiet,
.icon-btn {
  border: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 11px 22px;
  border-radius: 14px;
  font-weight: bold;
  line-height: 1.4;
}
.btn {
  background: #23685c;
  color: white;
  box-shadow: 0 4px 0 #184c44;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #184c44;
}
.btn.coral {
  background: #d77658;
  box-shadow: 0 4px 0 #a5563d;
}
.btn.light {
  background: #f3e7d3;
  color: #24413e;
  box-shadow: 0 4px 0 #dfcaaa;
}
.quiet {
  background: #fffaf0;
  border: 1px solid #d7ded1;
  box-shadow: none;
  font-weight: normal;
}
.icon-btn {
  width: 48px;
  padding: 10px;
  background: #fff;
  border: 1px solid #dae1d7;
  font-size: 21px;
}
.eyebrow {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #23685c;
  margin-bottom: 18px;
  direction: ltr;
}
.muted {
  color: #71817b;
}
.small {
  font-size: 13px;
}
.pill {
  display: inline-block;
  background: #f1e9da;
  padding: 5px 13px;
  border-radius: 100px;
  font-size: 12px;
  color: #546c63;
}
.review-line {
  text-align: center;
  padding: 7px 12px;
  background: #eaf1e9;
  color: #546c63;
  font-size: 11px;
}
.review-line a {
  margin-inline-start: 10px;
}
.hero {
  position: relative;
  min-height: 580px;
  margin: 18px auto 0;
  max-width: 1260px;
  border-radius: 32px;
  overflow: hidden;
  direction: ltr;
  background: #f7f1e6 url("assets/hero.png") center/cover no-repeat;
  display: flex;
  align-items: center;
}
.hero-copy {
  position: relative;
  padding: 58px 50px;
  width: 51%;
  z-index: 1;
}
.hero-copy h1 {
  font-family: Wonder, Georgia, serif;
  font-size: clamp(37px, 4.8vw, 63px);
  line-height: 1.13;
  color: #284f46;
  letter-spacing: -2px;
}
.hero-copy em {
  color: #d77658;
  font-style: normal;
}
.hero-copy p {
  max-width: 410px;
  font-size: 17px;
  color: #5b7268;
}
.hero-copy .actions {
  direction: rtl;
  justify-content: flex-end;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 22px 0;
}
.hero-stamp {
  position: absolute;
  right: 30px;
  top: 28px;
  background: #fffcf1d9;
  border: 1px solid #fff;
  padding: 12px 18px;
  border-radius: 14px;
  transform: rotate(4deg);
  text-align: center;
  color: #51655d;
  font-size: 11px;
}
.hero-stamp b {
  display: block;
  font: 22px Wonder;
  margin-bottom: 2px;
}
.reasons {
  display: flex;
  justify-content: center;
  gap: 45px;
  padding: 29px 20px;
  font-size: 13px;
  flex-wrap: wrap;
}
.reasons span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.reasons b {
  color: #d77658;
  font-size: 23px;
}
.section {
  padding: 55px 0;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 25px;
}
.section-head p {
  max-width: 500px;
  margin-bottom: 4px;
  color: #71817b;
}
.three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fffdf7;
  padding: 28px;
  border: 1px solid #e9e4d7;
  border-radius: 24px;
  min-height: 230px;
}
.feature-card p {
  color: #71817b;
  font-size: 14px;
}
.feature-card .art {
  width: 125px;
  height: 115px;
  margin-bottom: 16px;
}
.art {
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.book-stack {
  position: relative;
  height: 410px;
  direction: ltr;
}
.book-cover {
  position: absolute;
  inset: 15px 60px 20px 60px;
  background: #f7edda;
  border: 1px solid #ddccb0;
  border-radius: 4px 18px 18px 4px;
  box-shadow:
    14px 14px 0 #ebe3d1,
    24px 28px 35px #213f3c20;
  transform: rotate(-6deg);
  padding: 30px;
  text-align: center;
  overflow: hidden;
}
.book-cover .en {
  font-size: 35px;
  font-weight: bold;
  line-height: 1.2;
}
.book-cover .art {
  height: 200px;
}
.book-band {
  position: absolute;
  bottom: 45px;
  right: 18px;
  background: #23685c;
  color: #fff;
  padding: 14px 22px;
  border-radius: 14px;
  transform: rotate(7deg);
  font-size: 14px;
}
.tick-list {
  list-style: none;
  padding: 0;
  margin: 22px 0;
}
.tick-list li {
  padding: 9px 0;
}
.tick-list li:before {
  content: "✓";
  color: #23685c;
  margin-inline-end: 10px;
}
.world-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.world-card {
  display: block;
  text-decoration: none;
  border: 1px solid #e8dfce;
  background: #fffdf7;
  border-radius: 24px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.world-card:hover {
  box-shadow: 0 6px 20px #24413e0d;
}
.world-card .world-number {
  width: 33px;
  height: 33px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--world);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}
.world-card h3 {
  margin: 13px 0 5px;
}
.world-card .letter-row {
  display: flex;
  gap: 7px;
  direction: ltr;
  margin-top: 20px;
}
.letter-chip {
  font: bold 18px Georgia;
  border-radius: 9px;
  background: #f6f1e6;
  padding: 5px 10px;
}
.age-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.age-tab {
  background: white;
  border: 1px solid #e0dfd1;
  border-radius: 16px;
  padding: 18px;
  flex: 1;
  min-width: 180px;
}
.age-tab strong {
  display: block;
  color: #23685c;
}
.age-tab small {
  color: #71817b;
}
.closing {
  background: #23685c;
  color: #fff;
  border-radius: 30px;
  padding: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}
.closing h2 {
  margin-bottom: 12px;
}
.closing p {
  margin: 0;
  opacity: 0.8;
}
.page-intro {
  padding: 50px 0 30px;
}
.page-intro h1 {
  font-size: clamp(34px, 4vw, 52px);
  margin-bottom: 15px;
}
.page-intro p {
  max-width: 700px;
  color: #71817b;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.plan-card {
  background: #fffdf7;
  border: 1px solid #dddccc;
  border-radius: 26px;
  padding: 30px;
  position: relative;
}
.plan-card.featured {
  border: 2px solid #23685c;
  box-shadow: 0 10px 30px #23685c10;
}
.plan-price {
  font-size: 42px;
  font-weight: bold;
  line-height: 1.2;
  margin: 25px 0 10px;
  direction: rtl;
}
.plan-price span {
  font-size: 13px;
  color: #71817b;
  font-weight: normal;
}
.plan-card h3 {
  font-family: Wonder, serif;
  direction: ltr;
  font-size: 25px;
}
.plan-card .btn {
  width: 100%;
}
.plan-card .tick-list {
  min-height: 215px;
  font-size: 14px;
}
.plan-tag {
  position: absolute;
  top: -13px;
  right: 24px;
  background: #23685c;
  color: #fff;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 11px;
}
.note-box {
  padding: 20px 24px;
  background: #f0eadb;
  border-radius: 17px;
  color: #617066;
  font-size: 14px;
  margin: 25px 0;
}
.faq {
  border-bottom: 1px solid #dddccc;
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: bold;
}
.faq p {
  padding-top: 15px;
  color: #71817b;
  font-size: 14px;
}
.library-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
}
.library-card {
  border: 1px solid #dddccc;
  background: #fffdf7;
  border-radius: 25px;
  padding: 28px;
}
.mini-book {
  display: flex;
  align-items: center;
  gap: 22px;
}
.mini-book .art {
  width: 160px;
  height: 175px;
}
.profile-bar {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  background: #f0f1e4;
  border-radius: 20px;
  padding: 18px 23px;
  margin-bottom: 30px;
}
.profile-bar select {
  border: 1px solid #d8dccc;
  border-radius: 10px;
  padding: 8px;
  background: white;
}
.progress-bar {
  height: 8px;
  background: #e6e8d9;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 16px;
}
.progress-bar span {
  display: block;
  height: 100%;
  background: #75a592;
  transition: width 0.3s;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.stat {
  background: #f4f0e5;
  border-radius: 14px;
  padding: 17px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: 26px;
  color: #23685c;
}
.stat span {
  font-size: 12px;
  color: #71817b;
}
.album {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  direction: ltr;
}
.sticker {
  border: 1px dashed #ddd7c8;
  border-radius: 18px;
  padding: 15px 8px;
  text-align: center;
  font-size: 11px;
}
.sticker .art {
  height: 75px;
  width: 75px;
}
.sticker.locked .art {
  filter: grayscale(1);
  opacity: 0.3;
}
.sticker:not(.locked) {
  background: #fff8df;
  border-style: solid;
}
.journey-page {
  direction: ltr;
}
.journey-page .page-intro {
  max-width: 800px;
}
.journey-page h1 {
  font-family: Wonder, serif;
}
.world-map {
  display: grid;
  gap: 22px;
}
.map-world {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  background: #fffdf7;
  border: 1px solid #e5dfd0;
  border-radius: 24px;
  padding: 24px;
}
.map-world-intro h3 {
  font: 20px Wonder;
  margin-bottom: 8px;
}
.map-world-intro p {
  font-size: 12px;
  color: #71817b;
}
.letter-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.letter-card {
  border: 1px solid #e5dfd0;
  border-radius: 17px;
  text-decoration: none;
  padding: 11px;
  position: relative;
  background: #fffaf0;
  text-align: center;
  display: block;
}
.letter-card:hover {
  border-color: #75a592;
  transform: translateY(-2px);
}
.letter-card .art {
  height: 77px;
}
.letter-card b {
  font: 26px Wonder;
  color: #23685c;
}
.letter-card .word {
  font-size: 12px;
  color: #71817b;
}
.letter-card .complete {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #75a592;
  color: white;
  border-radius: 50%;
  height: 22px;
  width: 22px;
  font-size: 12px;
}
.child-header {
  background: #fffcf4;
  position: sticky;
  top: 0;
  z-index: 4;
  border-bottom: 1px solid #ece6d9;
}
.child-header .site-header {
  padding: 14px 26px;
}
.child-header .nav {
  direction: ltr;
  gap: 12px;
}
.child-header .quiet {
  font-size: 12px;
}
.child-app {
  max-width: 1130px;
  margin: auto;
  padding: 30px;
  direction: ltr;
}
.lesson-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 25px;
}
.lesson-sidebar {
  padding-top: 26px;
}
.lesson-sidebar h3 {
  font: 20px Wonder;
}
.phase-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  font-size: 12px;
  color: #87918a;
}
.phase-item.active {
  color: #23685c;
  font-weight: bold;
}
.phase-item span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #eee8da;
  flex: none;
}
.phase-item.active span {
  background: #23685c;
  color: white;
}
.phase-item.done span {
  background: #dfebdf;
}
.lesson-card {
  border: 1px solid #e8dfce;
  border-radius: 26px;
  background: #fffdf7;
  padding: 30px 38px;
  text-align: center;
  min-height: 660px;
  position: relative;
  overflow: hidden;
}
.lesson-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}
.lesson-card h1 {
  font: clamp(28px, 3.6vw, 40px) Wonder;
  letter-spacing: -1px;
  margin-bottom: 11px;
}
.lesson-sub {
  color: #71817b;
  font-size: 15px;
}
.lesson-head .eyebrow {
  margin: 0;
  font-size: 9px;
}
.hear-btn {
  background: #f2ead9;
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  min-height: 44px;
  font-size: 12px;
}
.discovery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  max-width: 540px;
  margin: 24px auto;
  align-items: center;
}
.discovery-art {
  background: #f6f1e5;
  border-radius: 25px;
  padding: 15px;
  height: 220px;
  width: 100%;
  border: 0;
}
.letter-pair {
  font: 95px Wonder;
  color: #23685c;
  line-height: 1.05;
}
.letter-pair small {
  font-size: 55px;
  color: #d77658;
}
.word-label {
  font: 24px Wonder;
  margin-top: 13px;
}
.story-text {
  background: #f3f0e5;
  border-radius: 16px;
  padding: 18px;
  font-size: 15px;
  max-width: 580px;
  margin: 15px auto;
}
.picture-choices,
.pair-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  max-width: 640px;
  margin: 35px auto;
}
.picture-choice {
  background: #fff8ec;
  border: 2px solid #e8dfce;
  border-radius: 23px;
  padding: 17px;
  height: 190px;
}
.picture-choice .art {
  height: 145px;
}
.picture-choice.selected,
.pair-choice.selected {
  border-color: #75a592;
  background: #edf5e9;
}
.pair-choice {
  font: 65px Wonder;
  border: 2px solid #e8dfce;
  background: #fff8ec;
  border-radius: 23px;
  height: 130px;
  min-width: 80px;
}
.pair-prompt {
  font: 110px Wonder;
  color: #23685c;
  line-height: 1;
  margin: 26px 0;
}
.feedback {
  min-height: 30px;
  font-size: 16px;
  color: #23685c;
}
.lesson-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #ece6d9;
  margin-top: 26px;
  padding-top: 22px;
}
.letter-path-board {
  border: 1px solid #e9e2d1;
  background: repeating-linear-gradient(#fffaf0, #fffaf0 58px, #eee7d7 59px, #fffaf0 60px);
  border-radius: 25px;
  width: 100%;
  max-width: 440px;
  margin: 20px auto;
  touch-action: none;
  user-select: none;
}
.letter-path-board svg {
  width: 100%;
  display: block;
  touch-action: none;
}
.trace-target {
  fill: none;
  stroke: #ded7c6;
  stroke-width: 17;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2 23;
}
.trace-ink {
  fill: none;
  stroke: #75a592;
  stroke-width: 15;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trace-hint {
  fill: none;
  stroke: #d77658;
  stroke-width: 22;
  stroke-linecap: round;
  opacity: 0.28;
}
.trace-tools {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.trace-tools .quiet {
  font-size: 12px;
}
.maker {
  display: grid;
  grid-template-columns: 1fr 100px;
  align-items: center;
  gap: 24px;
  max-width: 550px;
  margin: 24px auto;
}
.poster {
  border: 6px solid #fff;
  background: #f6f0df;
  border-radius: 24px;
  box-shadow: 0 5px 18px #24413e10;
  padding: 18px;
  position: relative;
}
.poster-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.colour-tile {
  aspect-ratio: 1;
  border: 0;
  border-radius: 12px;
  padding: 0;
  position: relative;
}
.colour-tile:after {
  content: "✦";
  color: #fff6;
  font-size: 25px;
}
.poster .art {
  height: 110px;
  margin: 8px auto;
  display: block;
}
.poster-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 25px Wonder;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.swatch {
  width: 43px;
  height: 43px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #d8d5c8;
}
.swatch.active {
  box-shadow: 0 0 0 3px #24413e;
}
.maker-tools {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.finish-art {
  max-width: 350px;
  margin: 20px auto;
}
.finish-art .poster {
  transform: rotate(-3deg);
}
.offline-task {
  background: #edf2e4;
  border: 1px solid #dee6d1;
  border-radius: 18px;
  max-width: 600px;
  margin: 22px auto;
  padding: 22px;
}
.offline-task h3 {
  font: 20px Wonder;
}
.offline-task p {
  margin-bottom: 0;
  font-size: 14px;
  color: #6a7969;
}
.profile-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.profile-form label {
  font-size: 13px;
}
.profile-form input,
.profile-form select {
  display: block;
  width: 100%;
  border: 1px solid #d6dcca;
  background: white;
  border-radius: 12px;
  padding: 12px;
  margin-top: 8px;
}
.profile-form .full {
  grid-column: 1/-1;
}
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.achievement-item {
  background: #fff8ec;
  border-radius: 20px;
  padding: 15px;
  border: 1px solid #e8dfce;
  text-align: center;
}
.achievement-item .art {
  height: 75px;
}
.achievement-item b {
  font: 25px Wonder;
}
.school-example {
  border: 1px solid #d8decd;
  border-radius: 20px;
  padding: 30px;
  background: #fffdf7;
}
.phone-demo {
  background: #24413e;
  border: 8px solid #24413e;
  border-radius: 36px;
  max-width: 270px;
  margin: 0 auto;
  aspect-ratio: 9/17;
  box-shadow: 18px 20px 40px #24413e20;
  overflow: hidden;
  direction: ltr;
}
.phone-screen {
  height: 100%;
  background: #fbf6eb;
  padding: 24px 12px;
  text-align: center;
}
.phone-screen .art {
  height: 155px;
}
.phone-screen h3 {
  font: 23px Wonder;
  margin-top: 15px;
}
.phone-screen .letter-pair {
  font-size: 65px;
}
.platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  margin: 24px 0;
}
.platform {
  border: 1px solid #dcdccd;
  border-radius: 20px;
  padding: 22px;
  background: #fffdf7;
}
.platform h3 {
  font-size: 18px;
}
.steps {
  counter-reset: step;
}
.steps p {
  display: flex;
  gap: 15px;
  align-items: center;
}
.steps p:before {
  counter-increment: step;
  content: counter(step);
  background: #23685c;
  color: white;
  border-radius: 50%;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 12px;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.status-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.status-table th,
.status-table td {
  text-align: start;
  padding: 13px 10px;
  border-bottom: 1px solid #e6dfcf;
}
.status-good {
  color: #23685c;
}
.status-later {
  color: #a76639;
}
.voice-select {
  width: 100%;
  padding: 12px;
  border: 1px solid #d8decd;
  border-radius: 12px;
  background: white;
}
.script-box {
  direction: ltr;
  background: #f6f1e5;
  padding: 23px;
  border-radius: 16px;
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 2.3;
  margin: 18px 0;
}
.upload-label {
  display: inline-flex;
  padding: 13px 20px;
  border: 1px dashed #c5cec0;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  min-height: 48px;
  align-items: center;
  gap: 10px;
}
.upload-label input {
  max-width: 210px;
  font-size: 12px;
}
.voice-brief {
  font-size: 13px;
  color: #71817b;
}
.test-clip {
  width: 100%;
  margin-top: 16px;
}
.warmup-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.warmup-card {
  border: 1px solid #e2decb;
  border-radius: 22px;
  padding: 25px;
  background: #fffdf7;
  text-decoration: none;
  text-align: center;
}
.warmup-card svg {
  height: 100px;
  width: 100%;
}
.warmup-card h3 {
  font: 20px Wonder;
}
.site-footer {
  border-top: 1px solid #e5dfd0;
  margin-top: 55px;
  padding: 35px 0;
  font-size: 12px;
  color: #71817b;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  text-decoration: none;
}
dialog {
  border: 1px solid #e1dfd0;
  border-radius: 24px;
  max-width: 650px;
  width: calc(100% - 30px);
  padding: 30px;
  background: #fffdf7;
  color: #24413e;
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #20352f70;
  backdrop-filter: blur(5px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 20px;
}
.modal-head h2 {
  font-size: 23px;
  margin: 0;
}
.modal-head button {
  border: 0;
  border-radius: 50%;
  height: 38px;
  width: 38px;
  background: #efe9da;
  font-size: 22px;
}
.gate-form {
  display: flex;
  gap: 13px;
  align-items: center;
  direction: ltr;
  flex-wrap: wrap;
}
.gate-form input {
  max-width: 90px;
  padding: 10px;
  border: 1px solid #d8decd;
  border-radius: 10px;
}
.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.confetti i {
  position: absolute;
  width: 7px;
  height: 12px;
  background: #f2c969;
  top: -20px;
  animation: fall 2.5s ease-out forwards;
}
.confetti i:nth-child(3n) {
  background: #d77658;
}
.confetti i:nth-child(3n + 1) {
  background: #81b8cd;
}
@keyframes fall {
  to {
    transform: translateY(650px) rotate(400deg);
    opacity: 0;
  }
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #24413e;
  color: white;
  padding: 13px 22px;
  border-radius: 15px;
  max-width: 90%;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.print-area {
  display: none;
}
.print-letter {
  page-break-after: always;
}
.print-letter:last-child {
  page-break-after: auto;
}
.review-dots {
  display: flex;
  gap: 7px;
  direction: ltr;
}
.review-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9d5c5;
}
.review-dots span.on {
  background: #23685c;
}
.tour-panel {
  padding: 40px;
  border: 1px solid #e1dfd0;
  border-radius: 25px;
  background: #fffdf7;
  min-height: 420px;
}
.tour-panel h2 {
  font-size: 36px;
}
.tour-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
}
.school-label {
  font-size: 11px;
  color: #71817b;
  margin-bottom: 7px;
}
.speech-status {
  font-size: 11px;
  color: #71817b;
  text-align: center;
  margin: 5px 0;
}
.invisible-file {
  width: 100%;
}
.kbd-note {
  font-size: 11px;
  color: #71817b;
}
.progress-count {
  font-size: 12px;
  color: #71817b;
  margin: 9px 0;
}
.warmup-app .lesson-layout {
  grid-template-columns: 1fr;
}
.warmup-app .lesson-card {
  max-width: 700px;
  width: 100%;
  margin: auto;
}
.badge-label {
  font-size: 11px;
  color: #71817b;
}
.special-link {
  font-weight: bold;
  color: #23685c;
}
.photo-credit {
  font-size: 10px;
  color: #87918a;
}
@media (max-width: 1000px) {
  .nav {
    gap: 14px;
  }
  .site-header {
    padding: 20px;
  }
  .nav a {
    font-size: 12px;
  }
  .hero {
    margin: 12px 18px 0;
  }
  .hero-copy {
    padding: 40px 30px;
    width: 53%;
  }
  .hero {
    min-height: 510px;
  }
  .three-grid,
  .world-grid {
    gap: 15px;
  }
  .feature-card {
    padding: 23px;
  }
  .split {
    gap: 30px;
  }
  .book-cover {
    inset: 20px 35px;
  }
  .map-world {
    grid-template-columns: 160px 1fr;
  }
  .letter-cards {
    gap: 8px;
  }
  .letter-card .art {
    height: 65px;
  }
  .lesson-sidebar {
    display: none;
  }
  .lesson-layout {
    grid-template-columns: 1fr;
  }
  .album {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 700px) {
  body {
    font-size: 15px;
  }
  .wrap {
    padding: 0 19px;
  }
  .site-header {
    padding: 16px 19px;
    gap: 14px;
    flex-wrap: wrap;
  }
  .brand b {
    font-size: 21px;
  }
  .brand small {
    font-size: 8px;
  }
  .brand-icon {
    width: 43px;
    height: 43px;
    line-height: 40px;
  }
  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    overflow: auto;
    white-space: nowrap;
  }
  .nav .btn {
    min-height: 39px;
    padding: 8px 13px;
    border-radius: 11px;
    font-size: 11px;
  }
  .nav a {
    font-size: 12px;
  }
  .hero {
    margin: 12px 12px 0;
    min-height: 660px;
    align-items: flex-start;
    background-size: auto 490px;
    background-position: 69% bottom;
    background-repeat: no-repeat;
    background-color: #faf3e7;
  }
  .hero-copy {
    width: 100%;
    padding: 32px 27px;
  }
  .hero-copy h1 {
    font-size: 41px;
    max-width: 340px;
    letter-spacing: -1.4px;
  }
  .hero-copy p {
    font-size: 14px;
    max-width: 280px;
    margin-bottom: 16px;
  }
  .hero-copy .actions {
    justify-content: flex-end;
    margin: 18px 0;
  }
  .hero-stamp {
    top: auto;
    right: 17px;
    bottom: 24px;
    font-size: 9px;
    padding: 8px 12px;
  }
  .hero-stamp b {
    font-size: 18px;
  }
  .reasons {
    gap: 10px 20px;
    font-size: 11px;
    padding: 24px 16px;
  }
  .reasons b {
    font-size: 18px;
  }
  .section {
    padding: 35px 0;
  }
  .section-head {
    display: block;
    margin-bottom: 20px;
  }
  .section-head p {
    font-size: 14px;
  }
  .three-grid,
  .world-grid,
  .plans-grid,
  .library-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }
  .feature-card {
    min-height: 0;
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 7px 20px;
    align-items: center;
  }
  .feature-card .art {
    grid-row: 1/3;
    width: 90px;
    height: 100px;
    margin: 0;
  }
  .feature-card h3 {
    font-size: 20px;
    margin-bottom: 0;
  }
  .feature-card p {
    grid-column: 2;
    margin-bottom: 0;
    font-size: 13px;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .book-stack {
    height: 365px;
  }
  .book-cover {
    inset: 10px 60px 15px 40px;
  }
  .book-cover .en {
    font-size: 29px;
  }
  .book-cover .art {
    height: 180px;
  }
  .book-band {
    right: 25px;
    bottom: 30px;
  }
  .closing {
    padding: 30px;
    display: block;
  }
  .closing .btn {
    margin-top: 20px;
  }
  .world-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .world-card {
    padding: 18px;
    border-radius: 20px;
  }
  .world-card h3 {
    font-size: 18px;
  }
  .world-card .letter-row {
    gap: 4px;
    flex-wrap: wrap;
  }
  .letter-chip {
    font-size: 15px;
    padding: 3px 7px;
  }
  .world-card p {
    font-size: 12px;
  }
  .plan-card .tick-list {
    min-height: 0;
  }
  .plan-card {
    margin-bottom: 10px;
  }
  .page-intro {
    padding: 30px 0 20px;
  }
  .page-intro h1 {
    font-size: 34px;
  }
  .mini-book {
    gap: 12px;
  }
  .mini-book .art {
    width: 100px;
    height: 140px;
  }
  .mini-book h3 {
    font-size: 19px;
  }
  .map-world {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .map-world-intro {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
  }
  .map-world-intro p {
    max-width: 170px;
    margin: 0;
    font-size: 11px;
  }
  .map-world-intro h3 {
    max-width: 150px;
    font-size: 18px;
    margin: 0;
  }
  .letter-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
  }
  .letter-card .art {
    height: 80px;
  }
  .letter-card b {
    font-size: 27px;
  }
  .child-header .site-header {
    flex-wrap: nowrap;
    padding: 12px 16px;
  }
  .child-header .brand b {
    font-size: 18px;
  }
  .child-header .brand small {
    display: none;
  }
  .child-header .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 29px;
    line-height: 34px;
  }
  .child-header .nav {
    width: auto;
    gap: 8px;
    overflow: visible;
  }
  .child-header .quiet {
    padding: 10px;
    font-size: 11px;
  }
  .icon-btn {
    height: 43px;
    width: 43px;
    min-height: 43px;
  }
  .child-app {
    padding: 16px 12px;
  }
  .lesson-card {
    padding: 23px 17px;
    border-radius: 23px;
    min-height: 620px;
  }
  .lesson-card h1 {
    font-size: 30px;
  }
  .lesson-head .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .hear-btn {
    padding: 8px 11px;
    font-size: 11px;
  }
  .lesson-sub {
    font-size: 13px;
  }
  .discovery {
    gap: 10px;
    margin: 22px auto;
  }
  .discovery-art {
    height: 165px;
    padding: 6px;
  }
  .letter-pair {
    font-size: 75px;
  }
  .letter-pair small {
    font-size: 43px;
  }
  .word-label {
    font-size: 20px;
  }
  .story-text {
    padding: 15px;
    font-size: 13px;
  }
  .picture-choices {
    gap: 9px;
    margin: 26px auto;
  }
  .picture-choice {
    padding: 9px;
    height: 145px;
    border-radius: 18px;
  }
  .picture-choice .art {
    height: 116px;
  }
  .pair-choice {
    font-size: 53px;
    height: 110px;
    border-radius: 18px;
  }
  .pair-prompt {
    font-size: 90px;
  }
  .lesson-bottom {
    gap: 10px;
  }
  .lesson-bottom .btn {
    font-size: 13px;
    padding: 11px 15px;
  }
  .lesson-bottom .quiet {
    font-size: 12px;
    padding: 10px;
  }
  .maker {
    grid-template-columns: 1fr 58px;
    gap: 12px;
  }
  .swatches {
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: center;
  }
  .swatch {
    width: 38px;
    height: 38px;
  }
  .poster {
    padding: 12px;
    border-radius: 20px;
  }
  .poster .art {
    height: 95px;
  }
  .poster-top {
    font-size: 20px;
  }
  .colour-tile {
    border-radius: 9px;
  }
  .maker-tools {
    gap: 8px;
  }
  .maker-tools .quiet {
    font-size: 12px;
  }
  .profile-form {
    grid-template-columns: 1fr;
  }
  .achievement-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .achievement-item {
    padding: 11px;
  }
  .achievement-item .art {
    height: 65px;
  }
  .album {
    gap: 8px;
  }
  .sticker .art {
    width: 65px;
    height: 65px;
  }
  .sticker {
    font-size: 10px;
    padding: 12px 5px;
  }
  .platforms {
    grid-template-columns: 1fr;
  }
  .warmup-list {
    grid-template-columns: 1fr;
  }
  .warmup-card {
    display: flex;
    gap: 15px;
    align-items: center;
    text-align: start;
    padding: 18px;
  }
  .warmup-card svg {
    width: 120px;
    height: 60px;
  }
  .warmup-card h3 {
    margin: 0;
    font-size: 19px;
  }
  .tour-panel {
    padding: 26px;
    min-height: 450px;
  }
  .tour-panel h2 {
    font-size: 30px;
  }
  .review-grid .library-card {
    padding: 22px;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 12px 6px;
  }
  .stat b {
    font-size: 23px;
  }
  .stat span {
    font-size: 10px;
  }
  .status-table {
    font-size: 11px;
  }
  .status-table th,
  .status-table td {
    padding: 11px 6px;
  }
  .review-line {
    font-size: 10px;
  }
  .review-line a {
    display: inline-block;
  }
  .site-footer {
    padding: 25px 0;
  }
  .school-example {
    padding: 22px;
  }
  .profile-bar {
    padding: 16px;
  }
  .letter-path-board {
    max-width: 355px;
  }
  .offline-task {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .confetti {
    display: none;
  }
}
@media print {
  @page {
    size: A4;
    margin: 16mm;
  }
  body {
    background: white;
    font: 12pt Arial;
    color: #24413e;
  }
  #header,
  #main,
  #footer,
  #modal,
  #toast {
    display: none !important;
  }
  .print-area {
    display: block !important;
    direction: ltr;
  }
  .print-letter {
    padding: 0;
  }
  .print-letter h1 {
    font: 27pt Wonder;
    margin-bottom: 10mm;
  }
  .print-letter .art {
    height: 65mm;
    width: 65mm;
    display: block;
    margin: auto;
  }
  .print-letter .print-pair {
    font: 54pt Wonder;
    text-align: center;
    margin: 5mm;
  }
  .print-letter .print-row {
    display: flex;
    gap: 12mm;
    align-items: center;
  }
  .print-letter svg.trace-print {
    height: 62mm;
    width: 62mm;
  }
  .print-letter .trace-target {
    stroke: #999;
    stroke-width: 5;
    stroke-dasharray: 2 8;
  }
  .print-box {
    border: 1px solid #aaa;
    height: 50mm;
    border-radius: 8mm;
    margin: 7mm 0;
    padding: 5mm;
  }
  .print-letter .poster {
    max-width: 80mm;
    margin: 5mm auto;
    box-shadow: none;
    border: 1px solid #bbb;
  }
  .print-letter .poster .art {
    height: 32mm;
    width: 32mm;
  }
  .print-letter .colour-tile {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    aspect-ratio: 1;
  }
  .print-letter .poster-tiles {
    gap: 2mm;
  }
  .print-letter .poster-top {
    font-size: 17pt;
  }
  .print-line {
    height: 17mm;
    border-bottom: 1px dashed #aaa;
    word-spacing: 15mm;
    font: 30pt Georgia;
    color: #ccc;
  }
  .print-cover {
    text-align: center;
    padding-top: 30mm;
  }
  .print-cover h1 {
    font: 40pt Wonder;
  }
  .print-cover .art {
    height: 90mm;
    width: 90mm;
  }
  .print-cover p {
    font-size: 15pt;
  }
  .print-page-note {
    font-size: 9pt;
    color: #777;
    margin-top: 9mm;
  }
  .print-letter p {
    line-height: 1.5;
  }
  .print-letter .print-task {
    padding: 4mm;
    border-radius: 3mm;
    background: #eee;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

@media print {
  .print-letter {
    break-inside: avoid;
    padding: 0;
    min-height: 263mm;
    overflow: visible;
    break-after: page;
  }
  .print-letter h1 {
    font-size: 25pt;
    margin: 3mm 0;
  }
  .print-letter p {
    font-size: 10pt;
    margin: 2mm 0 4mm;
  }
  .print-letter .print-row {
    justify-content: space-around;
    height: 51mm;
  }
  .print-letter .print-row .art,
  .print-letter svg.trace-print {
    width: 49mm;
    height: 49mm;
    margin: 0;
  }
  .print-letter .print-line {
    height: 15mm;
    margin-bottom: 6mm;
    font-size: 29pt;
  }
  .print-split {
    display: grid;
    grid-template-columns: 82mm 1fr;
    gap: 8mm;
    align-items: start;
  }
  .print-split .poster {
    width: 82mm;
    max-width: none;
    margin: 0;
    padding: 4mm;
    border-radius: 5mm;
  }
  .print-split .poster .art {
    height: 24mm;
    width: 24mm;
    margin: 2mm auto;
  }
  .print-split .poster-tiles {
    gap: 1mm;
  }
  .print-split .poster .colour-tile {
    aspect-ratio: auto;
    height: 13mm;
    border-radius: 2mm;
  }
  .print-split .poster .small {
    font-size: 8pt;
  }
  .print-split .print-task {
    font-size: 9pt;
    padding: 3mm;
  }
  .print-split .print-box {
    height: 48mm;
    margin-top: 5mm;
    font-size: 9pt;
    padding: 3mm;
  }
  .print-letter .print-page-note {
    font-size: 8pt;
    margin-top: 7mm;
  }
  .print-cover .art {
    height: 80mm;
    width: 80mm;
    margin: 8mm auto;
  }
  .print-cover h1 {
    font-size: 36pt;
    margin-bottom: 10mm;
  }
  .print-cover p {
    font-size: 14pt;
    margin-bottom: 6mm;
  }
  .print-cover {
    padding-top: 20mm;
  }
}

@media (max-width: 700px) {
  .swatch {
    width: 48px;
    height: 48px;
  }
  .swatches {
    gap: 8px;
  }
  .child-header .quiet {
    min-height: 44px;
  }
}

@media print {
  .print-letter:last-child {
    break-after: auto;
  }
}

/* ---- Platform: account, plans, locks, checkout ---------------------------- */
.review-line.test-mode { background: #fff1c9; color: #6b4b00; }
.note-box.test-note { background: #fff6dc; border-color: #f2c969; }
.wrap.narrow { max-width: 620px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 18px; }
.tab { border: 1px solid #d9cdb8; background: #fffdf8; color: #24413e; border-radius: 999px; padding: 10px 18px; min-height: 44px; font: inherit; cursor: pointer; }
.tab.on { background: #23685c; color: #fff; border-color: #23685c; }
.account-form { background: #fffdf8; border: 1px solid #eadfcd; border-radius: 22px; padding: 22px; }
.account-form input[type="email"], .account-form input[type="password"] { min-height: 46px; font-size: 16px; }
.account-form label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.6; }
.account-form label.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.form-error { color: #a4442b; min-height: 1.4em; margin: 0; font-size: 14px; }
.account-email { font-weight: 600; color: #23685c; }
.account-stats { margin: 10px 0 20px; }
.pill.owned { background: #e3f1ea; color: #23685c; display: inline-block; padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.checkout-summary { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; background: #fffdf8; border: 1px solid #eadfcd; border-radius: 22px; padding: 20px 22px; margin: 8px 0 18px; }
.checkout-summary .small { grid-column: 1 / -1; margin: 0; }
.mysr-form { margin: 10px 0 14px; }
.letter-card.is-locked { opacity: 0.72; }
.letter-card .lock { position: absolute; top: 10px; inset-inline-end: 10px; font-size: 18px; }
.free-note { background: #fff6dc; display: inline-block; padding: 8px 14px; border-radius: 14px; font-size: 15px; }
.locked-card { text-align: center; }
.locked-art { position: relative; width: min(260px, 70vw); margin: 10px auto; }
.locked-art .art { width: 100%; height: auto; opacity: 0.8; }
.lock-badge { position: absolute; bottom: 6px; right: 6px; font-size: 34px; background: #fffdf8; border-radius: 50%; padding: 8px; box-shadow: 0 4px 14px #24413e22; }

/* Phones: the headline sits on a calm background above the illustration. */
@media (max-width: 700px) {
  .hero { min-height: 0; display: block; padding-bottom: 372px; background-size: auto 360px; background-position: 66% bottom; }
  .hero-copy { padding: 28px 22px 18px; background: linear-gradient(#faf3e7 82%, rgba(250, 243, 231, 0)); }
  .hero-copy h1 { font-size: 38px; }
  .hero-copy p { max-width: none; color: #3f5a52; }
  .hero-copy .small { display: block; color: #3f5a52; }
}
@media (max-width: 700px) {
  .nav { flex-wrap: wrap; row-gap: 10px; column-gap: 16px; justify-content: flex-start; }
  .nav .btn { order: 9; }
}
bdi { unicode-bidi: isolate; }

/* ---- Books shop: the flip-through book is the one bold element ------------- */
.shop { max-width: 1180px; margin: 0 auto; padding: 18px 22px 120px; }
.shop h2 { font-family: Wonder, Georgia, serif; font-size: clamp(26px, 3.2vw, 36px); color: #24413e; margin: 0 0 18px; }
.shop-hero { display: grid; grid-template-columns: 1fr minmax(300px, 460px); gap: 48px; align-items: center; padding: 26px 0 56px; }
.shop-copy h1 { font-family: Wonder, Georgia, serif; font-size: clamp(36px, 5vw, 60px); line-height: 1.15; color: #24413e; margin: 0 0 16px; }
.shop-lede { font-size: 19px; line-height: 1.8; color: #3f5a52; max-width: 34em; margin: 0 0 22px; }
.shop-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 24px; }
.shop-facts li { display: flex; flex-direction: column; align-items: center; min-width: 76px; padding: 10px 14px; border-radius: 18px; background: #fff; border: 1.5px solid #eadfcd; }
.shop-facts b { font-family: Wonder, Georgia, serif; font-size: 24px; color: #23685c; line-height: 1.1; }
.shop-facts span { font-size: 13px; color: #5b7268; }
.shop-price { display: flex; align-items: baseline; gap: 10px; margin: 0 0 16px; }
.shop-price .amount { font-family: Wonder, Georgia, serif; font-size: 58px; color: #d77658; line-height: 1; }
.shop-price .unit { font-size: 18px; color: #24413e; display: flex; flex-direction: column; }
.shop-price small { font-size: 13px; color: #5b7268; }
.shop-buy .btn { font-size: 17px; padding-inline: 26px; }

.shop-book { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.shop-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: min(100%, 400px); background: #f1e9da; padding: 5px; border-radius: 22px; }
.shop-tabs button { border: 0; background: transparent; font: inherit; font-size: 14px; color: #24413e; padding: 9px 12px; white-space: nowrap; border-radius: 999px; min-height: 40px; cursor: pointer; }
.shop-tabs button.on { background: #fff; box-shadow: 0 2px 8px #24413e1f; font-weight: 600; }
.shop-stage { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; perspective: 1800px; touch-action: pan-y; }

.flipbook { position: relative; width: min(100%, 400px); aspect-ratio: var(--ratio, 4 / 5); transform-style: preserve-3d; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.flipbook:not(.is-open) { transform: rotateY(-18deg) rotateX(4deg); }
.flipbook:not(.is-open):hover { transform: rotateY(-8deg) rotateX(2deg); }
.flipbook-page { position: absolute; inset: 0; padding: 0; border: 0; background: #fff; border-radius: 4px 10px 10px 4px; overflow: hidden; cursor: pointer; box-shadow: 0 24px 40px -18px #24413e66, 0 2px 0 #e8dcc6; }
.flipbook-page img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flipbook:not(.is-open) .flipbook-page::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 14px; background: linear-gradient(90deg, #0003, #fff0); }
.flipbook-edge { position: absolute; inset: 6px -9px 6px auto; width: 10px; border-radius: 0 6px 6px 0; background: repeating-linear-gradient(90deg, #f7f0e2 0 2px, #e3d7c1 2px 3px); transform: translateZ(-1px); }
.flipbook.is-open .flipbook-edge { inset: 6px -6px 6px auto; }
.flipbook-hint { position: absolute; inset: auto 12px 14px; padding: 9px 12px; background: #24413eeb; color: #fff; border-radius: 999px; font-size: 14px; }
.flipbook-leaf { position: absolute; inset: 0; transform-origin: left center; backface-visibility: hidden; border-radius: 4px 10px 10px 4px; overflow: hidden; box-shadow: 0 10px 30px #24413e40; pointer-events: none; }
.flipbook-leaf img { width: 100%; height: 100%; object-fit: cover; display: block; }
.turn-forward { animation: leaf-forward 0.7s cubic-bezier(.45,.05,.3,1) forwards; }
.turn-back { animation: leaf-back 0.7s cubic-bezier(.45,.05,.3,1) forwards; }
@keyframes leaf-forward { from { transform: rotateY(0); filter: brightness(1); } to { transform: rotateY(-178deg); filter: brightness(.75); } }
@keyframes leaf-back { from { transform: rotateY(-178deg); filter: brightness(.75); } to { transform: rotateY(0); filter: brightness(1); } }
/* Arabic book: spine on the right, pages turn right-to-left. */
.flipbook.rtl .flipbook-page, .flipbook.rtl .flipbook-leaf { border-radius: 10px 4px 4px 10px; }
.flipbook.rtl:not(.is-open) { transform: rotateY(18deg) rotateX(4deg); }
.flipbook.rtl:not(.is-open):hover { transform: rotateY(8deg) rotateX(2deg); }
.flipbook.rtl:not(.is-open) .flipbook-page::before { inset: 0 0 0 auto; background: linear-gradient(270deg, #0003, #fff0); }
.flipbook.rtl .flipbook-edge { inset: 6px auto 6px -9px; border-radius: 6px 0 0 6px; }
.flipbook.rtl.is-open .flipbook-edge { inset: 6px auto 6px -6px; }
.flipbook.rtl .flipbook-leaf { transform-origin: right center; }
.flipbook.rtl .turn-forward { animation-name: leaf-forward-rtl; }
.flipbook.rtl .turn-back { animation-name: leaf-back-rtl; }
@keyframes leaf-forward-rtl { from { transform: rotateY(0); filter: brightness(1); } to { transform: rotateY(178deg); filter: brightness(.75); } }
@keyframes leaf-back-rtl { from { transform: rotateY(178deg); filter: brightness(.75); } to { transform: rotateY(0); filter: brightness(1); } }
.flipbook-controls { display: flex; align-items: center; gap: 16px; }
.flipbook-controls[hidden] { display: none; }
.quiet.round { width: 46px; height: 46px; padding: 0; border-radius: 50%; font-size: 26px; line-height: 1; }
.flipbook-count { min-width: 64px; text-align: center; color: #5b7268; font-variant-numeric: tabular-nums; }

.shop-inside, .shop-steps, .shop-faq { padding: 44px 0; border-top: 1px solid #eadfcd; }
.inside-list { display: grid; gap: 28px; }
.inside-book { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: start; }
.inside-thumb { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 6px; overflow: hidden; box-shadow: 0 8px 18px -8px #24413e55; transition: transform .2s; }
.inside-thumb:hover { transform: translateY(-3px) rotate(-1.5deg); }
.inside-thumb img { width: 120px; height: auto; display: block; }
.inside-book h3 { margin: 0; font-size: 21px; color: #24413e; }
.inside-book .pages { font-size: 14px; font-weight: 400; color: #23685c; background: #e3f1ea; border-radius: 999px; padding: 2px 10px; margin-inline-start: 6px; }
.en-title { margin: 2px 0 8px; color: #5b7268; font-size: 14px; text-align: right; }
.shop-steps ol { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding: 0; margin: 0; }
.shop-steps li { counter-increment: step; display: flex; flex-direction: column; gap: 6px; }
.shop-steps li::before { content: counter(step, arabic-indic); font-family: Wonder, Georgia, serif; font-size: 34px; color: #f2c969; line-height: 1; }
.shop-steps b { font-size: 19px; color: #24413e; }
.shop-steps span { color: #3f5a52; line-height: 1.7; }
.shop-try, .shop-upsell { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 30px 32px; border-radius: 26px; margin: 10px 0 18px; }
.shop-try { background: #fff4d6; }
.shop-upsell { background: #e8f2ee; }
.shop-try h2, .shop-upsell h2 { font-size: 26px; margin-bottom: 6px; }
.shop-try p, .shop-upsell p { margin: 0; max-width: 40em; color: #3f5a52; line-height: 1.7; }
.shop-sticky { position: fixed; inset: auto 0 0 0; z-index: 30; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: #fffdf8f2; backdrop-filter: blur(8px); border-top: 1px solid #eadfcd; transform: translateY(100%); transition: transform .3s; }
.shop-sticky.show { transform: none; }
.shop-sticky span { display: flex; flex-direction: column; font-size: 15px; color: #24413e; }
.shop-sticky b { font-size: 22px; font-family: Wonder, Georgia, serif; color: #d77658; }
.shop-sticky small { font-size: 12px; color: #5b7268; }

@media (max-width: 860px) {
  .shop-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 8px; }
  .shop-book { order: -1; }
  .flipbook { width: min(78vw, 360px); }
  .shop-steps ol { grid-template-columns: 1fr; }
  .shop-sticky { display: flex; }
}
@media (max-width: 520px) {
  .inside-book { grid-template-columns: 84px 1fr; gap: 14px; }
  .inside-thumb img { width: 84px; }
  .shop-price .amount { font-size: 48px; }
  .shop-try, .shop-upsell { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .flipbook, .flipbook:not(.is-open), .flipbook:not(.is-open):hover, .flipbook.rtl:not(.is-open), .flipbook.rtl:not(.is-open):hover { transform: none; transition: none; }
  .shop-sticky, .inside-thumb { transition: none; }
}

/* ---- Header: language switch and phone menu --------------------------------- */
.site-header .nav { order: 2; }
.header-tools { order: 3; display: flex; align-items: center; gap: 8px; }
.lang-switch { border: 1px solid #d9cdb8; background: #fffdf8; color: #24413e; border-radius: 999px; padding: 7px 14px; min-height: 40px; font-size: 14px; cursor: pointer; }
.lang-switch:hover { border-color: #23685c; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid #d9cdb8; background: #fffdf8; border-radius: 13px; position: relative; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { position: absolute; left: 12px; width: 18px; height: 2px; background: #24413e; border-radius: 2px; content: ""; transition: transform .2s; }
.menu-btn span { top: 21px; }
.menu-btn span::before { left: 0; top: -6px; }
.menu-btn span::after { left: 0; top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
.child-header .home-link { font-size: 14px; }
.back-link { display: inline-flex; margin-top: 18px; font-size: 14px; }
.lang-en .nav { direction: ltr; }
.lang-en .hero-copy .actions { direction: ltr; justify-content: flex-start; }
.lang-en .plan-price { direction: ltr; }
.lang-en .en-title { text-align: left; }
@media (max-width: 700px) {
  #header:not(.child-header) .site-header { flex-wrap: wrap; }
  #header:not(.child-header) .menu-btn { display: block; }
  #header:not(.child-header) .nav { display: none; order: 4; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; background: #fffdf7; border: 1px solid #eadfcd; border-radius: 18px; padding: 8px; white-space: normal; box-shadow: 0 12px 30px #24413e1a; }
  #header.menu-open .nav { display: flex; }
  #header:not(.child-header) .nav a { font-size: 16px; padding: 12px 14px; border-radius: 12px; border-bottom: 0; }
  #header:not(.child-header) .nav a.active { background: #e3f1ea; }
  #header:not(.child-header) .nav .btn { margin-top: 6px; font-size: 15px; min-height: 48px; justify-content: center; }
  .lang-switch { padding: 6px 12px; font-size: 13px; }
}
@media (min-width: 701px) {
  .hero-copy { background: #fbf6ebe8; border-radius: 28px; margin: 24px; padding: 42px 40px; width: min(540px, 50%); box-shadow: 0 10px 40px #24413e14; }
}

/* ---- Home: books, offers, steps ------------------------------------------------ */
.actions.center { justify-content: center; }
.cover-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 26px 0 10px; }
.cover-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.cover-card img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px 12px 12px 6px; box-shadow: 0 16px 30px -14px #24413e66, 0 2px 0 #e8dcc6; transition: transform .25s; background: #fff; }
.cover-card:hover img { transform: translateY(-4px) rotate(-1deg); }
.cover-card b { margin-top: 10px; font-size: 16px; }
.cover-card span { color: #71817b; font-size: 13px; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; margin-top: 24px; }
.offer { position: relative; background: #fffdf7; border: 1px solid #e3d9c6; border-radius: 26px; padding: 30px 26px 26px; display: flex; flex-direction: column; }
.offer.featured { border: 2px solid #d77658; box-shadow: 0 14px 34px #d776581f; }
.offer-tag { align-self: flex-start; background: #e3f1ea; color: #23685c; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.offer.featured .offer-tag { background: #fbe4da; color: #a4442b; }
.offer h3 { margin: 14px 0 4px; font-size: 21px; }
.offer-price { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 4px; flex-wrap: wrap; }
.offer-price b { font-size: 40px; line-height: 1.1; color: #24413e; }
.offer-price span { color: #71817b; font-size: 13px; }
.offer .tick-list { flex: 1; font-size: 14px; }
.offer .btn { justify-content: center; }
.step-no { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #23685c; color: #fff; font-size: 15px; margin-inline-end: 10px; vertical-align: middle; }
.world-card .letter-row { flex-wrap: wrap; }

/* ---- Plans page ------------------------------------------------------------------- */
.free-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: #e9f3ec; border-radius: 20px; padding: 16px 22px; margin: 8px 0 30px; }
.free-strip b { display: block; color: #23685c; }
.free-strip span { font-size: 14px; color: #4d635b; }
.plan-group { margin: 34px 0; }
.plan-group-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.plan-group-head h2 { margin: 0 0 4px; }
.plan-group-head p { margin: 0; max-width: 620px; }
.plans-grid.two { grid-template-columns: repeat(2, 1fr); }
.plans-grid.one { grid-template-columns: minmax(0, 460px); }
.plans-grid.two .plan-card .tick-list, .plans-grid.one .plan-card .tick-list { min-height: 0; }
.plan-card .per { margin: -4px 0 8px; font-size: 13px; color: #71817b; }
.plan-card h3 { direction: inherit; }
.plan-card.featured { border-color: #d77658; box-shadow: 0 14px 34px #d776581a; }
.plan-card.featured .plan-tag { background: #d77658; }
.billing-toggle { display: inline-flex; background: #f1e9da; border-radius: 999px; padding: 4px; gap: 4px; }
.billing-toggle button { border: 0; background: transparent; border-radius: 999px; padding: 9px 16px; min-height: 42px; font: inherit; font-size: 14px; color: #24413e; cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: #fff; box-shadow: 0 2px 8px #24413e1f; font-weight: 600; }
.billing-toggle .save { background: #fbe4da; color: #a4442b; font-size: 11px; border-radius: 999px; padding: 2px 8px; margin-inline-start: 4px; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; padding: 18px; margin: 10px 0; border-block: 1px solid #eadfcd; font-size: 14px; color: #4d635b; }
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14px; background: #fffdf7; border-radius: 18px; overflow: hidden; }
.compare th, .compare td { padding: 12px 10px; border-bottom: 1px solid #eee5d4; text-align: center; }
.compare th[scope="row"] { text-align: start; font-weight: 500; }
.compare thead th { background: #f4eddf; font-size: 13px; }
.compare .yes { color: #23685c; font-weight: 700; font-size: 18px; }
.compare .no { color: #b8b0a0; }

/* ---- Books page: format picker -------------------------------------------------- */
.format-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 6px; }
.format-pick button { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: start; border: 2px solid #e3d9c6; background: #fffdf7; border-radius: 18px; padding: 16px; font: inherit; color: #24413e; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.format-pick button:hover { transform: translateY(-2px); }
.format-pick button[aria-checked="true"] { border-color: #23685c; box-shadow: 0 8px 22px #23685c1f; background: #f5fbf7; }
.format-pick button[aria-checked="true"]::after { content: "✓"; position: absolute; top: 12px; inset-inline-end: 14px; width: 24px; height: 24px; border-radius: 50%; background: #23685c; color: #fff; display: grid; place-items: center; font-size: 13px; }
.format-pick b { font-size: 15px; }
.format-pick small { color: #71817b; font-size: 12px; line-height: 1.4; }
.fp-price { font-size: 30px; font-weight: 700; line-height: 1.2; color: #d77658; }
.fp-price small { font-size: 13px; color: #71817b; font-weight: 400; }
.format-tag { position: absolute; top: -11px; inset-inline-start: 14px; background: #d77658; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.mini-cover { width: 145px; height: auto; border-radius: 8px; box-shadow: 0 5px 16px #24413e22; }
@media (max-width: 700px) {
  .cover-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .plans-grid.two { grid-template-columns: 1fr; }
  .plan-group-head { align-items: flex-start; }
  .format-pick { gap: 8px; }
  .format-pick button { padding: 14px 12px; }
  .fp-price { font-size: 25px; }
  .mini-cover { width: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .cover-card img, .format-pick button, .menu-btn span::before, .menu-btn span::after { transition: none; }
}
@media (max-width: 700px) {
  .shop-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .shop-facts li { min-width: 0; padding: 8px 4px; }
  .shop-facts b { font-size: 20px; }
  .shop-facts span { font-size: 12px; }
}
.ls-short { display: none; }
.format-pick b { padding-inline-end: 28px; }
@media (max-width: 460px) {
  #header:not(.child-header) .site-header { flex-wrap: wrap; row-gap: 10px; }
  #header:not(.child-header) .brand small { display: none; }
  .ls-full { display: none; }
  .ls-short { display: inline; font-weight: 700; }
  .lang-switch { min-width: 44px; min-height: 44px; padding: 0 12px; }
}
/* Three packages: yearly is the highlighted choice, the printed box is the gift. */
.plans-grid.three { grid-template-columns: repeat(3, 1fr); margin-top: 26px; }
.plans-grid.three .plan-card .tick-list { min-height: 0; }
.plan-card.gift, .offer.gift { border: 2px solid #23685c; box-shadow: 0 14px 34px #23685c14; }
.plan-card.gift .plan-tag { background: #23685c; }
.offer.gift .offer-tag { background: #e3f1ea; color: #23685c; }
.offer-tag.quiet-tag { background: #f1e9da; color: #5b7268; }
.plan-card { display: flex; flex-direction: column; }
.plan-card .tick-list { flex: 1; }
@media (max-width: 900px) { .plans-grid.three { grid-template-columns: 1fr; } }
/* "Want the books printed?" sign-up */
.interest { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: 26px 0; padding: 20px 22px; border: 1.5px dashed #d77658; border-radius: 22px; background: #fffaf3; }
.interest > div { flex: 1 1 260px; }
.interest b { display: block; font-size: 17px; color: #a4442b; }
.interest span { font-size: 14px; color: #5b7268; }
.interest-form { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 300px; align-items: center; }
.interest-form input { flex: 1 1 180px; min-height: 46px; border: 1px solid #d9cdb8; border-radius: 14px; padding: 0 14px; font-size: 16px; background: #fff; }
.interest-form .interest-note { flex-basis: 100%; margin: 0; color: #23685c; min-height: 1.2em; }
.interest-form.done input, .interest-form.done button { display: none; }
.interest.compact { margin: 18px 0 6px; padding: 16px 18px; }

/* Let's think together (letter lessons): the pick, next to what we're looking for. */
.think {
  border: 2px dashed #e0b45c;
  background: #fff8e8;
  border-radius: 22px;
  padding: 14px 16px;
  margin: 16px 0 6px;
  text-align: start;
}
.think-title {
  font-weight: 800;
  color: #8a5a12;
  margin-bottom: 10px;
}
.think-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.think-card {
  background: #fff;
  border: 2px solid #e5e7dc;
  border-radius: 16px;
  padding: 10px;
  text-align: center;
}
.think-card.mine {
  border-color: #e7b9a6;
}
.think-card.goal {
  border-color: #9cc7b0;
}
.think-card p {
  margin: 6px 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
}
.think-art .art,
.think-art svg {
  max-height: 90px;
  width: auto;
  margin: 0 auto;
  display: block;
}
.think-letter {
  font-size: 2rem;
  font-weight: 800;
  color: #23685c;
}
.think-letter.big {
  font-size: 3rem;
}
.think-letter small {
  font-size: 0.7em;
}
.think-q {
  font-size: 2.6rem;
  font-weight: 800;
  color: #23685c;
  line-height: 90px;
}
.think-note {
  margin: 10px 0 0;
  font-weight: 700;
}
.picture-choice.tried,
.pair-choice.tried {
  opacity: 0.4;
  border-style: dashed;
}

/* Play corner: one card per book, with "continue" and its own activities. */
.play-books {
  display: grid;
  gap: 18px;
  margin: 18px 0 40px;
}
.play-book {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: start;
  background: #fff;
  border: 1px solid #e5e7dc;
  border-radius: 24px;
  padding: 18px;
}
.play-book img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.play-book h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}
.play-progress {
  height: 10px;
  border-radius: 99px;
  background: #eef0e8;
  overflow: hidden;
  margin: 10px 0 4px;
}
.play-progress span {
  display: block;
  height: 100%;
  background: #529b74;
}
.play-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.play-chip {
  padding: 8px 14px;
  border-radius: 99px;
  border: 1px solid #d9ddd0;
  background: #fbf6eb;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}
.play-chip small {
  opacity: 0.7;
}
@media (max-width: 560px) {
  .play-book {
    grid-template-columns: 84px 1fr;
    gap: 12px;
    padding: 14px;
  }
}

/* Parents' progress report */
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.week-dots {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 12px 0;
}
.week-dots span {
  display: grid;
  justify-items: center;
  gap: 4px;
}
.week-dots i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px dashed #d9ddd0;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 800;
  color: #fff;
}
.week-dots .on i {
  background: #529b74;
  border: 2px solid #529b74;
}
.week-dots small {
  font-size: 0.72rem;
  color: #6b7f78;
}
.skill-row {
  display: grid;
  grid-template-columns: 9.5em 1fr 3.4em;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #eef0e8;
}
.skill-bar {
  height: 12px;
  border-radius: 99px;
  background: #eef0e8;
  overflow: hidden;
}
.skill-bar span {
  display: block;
  height: 100%;
  background: #529b74;
  border-radius: 99px;
}
.skill-row b {
  text-align: end;
  font-variant-numeric: tabular-nums;
}
.help-list {
  display: grid;
  gap: 12px;
}
.help-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.help-item p {
  margin: 4px 0 0;
}
.suggest-box .btn {
  margin-inline-start: 10px;
}
@media (max-width: 560px) {
  .help-item {
    flex-direction: column;
    align-items: stretch;
  }
  .skill-row {
    grid-template-columns: 7.5em 1fr 3em;
  }
}

/* Home: why Little Wonder */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.why-card {
  background: #fff;
  border: 1px solid #e5e7dc;
  border-radius: 24px;
  padding: 24px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.why-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(35, 104, 92, 0.12);
}
.why-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #fbf0dc;
  font-size: 1.9rem;
  margin-bottom: 14px;
}
.why-card:nth-child(2) .why-icon {
  background: #e4f1ea;
}
.why-card:nth-child(3) .why-icon {
  background: #e7eef8;
}
.why-card:nth-child(4) .why-icon {
  background: #fde9e1;
}
.why-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}
.why-card p {
  margin: 0;
  color: #4b6159;
  line-height: 1.7;
}
@media (prefers-reduced-motion: reduce) {
  .why-card {
    transition: none;
  }
  .why-card:hover {
    transform: none;
  }
}

/* Letter lessons: meet the letter before any question */
button.meet-letter {
  background: #fff;
  border: 3px solid #23685c;
  border-radius: 24px;
  padding: 4px 20px 10px;
  cursor: pointer;
  animation: meet-pulse 1.8s ease-in-out infinite;
}
button.meet-letter:focus-visible,
button.meet-letter:hover {
  animation: none;
  background: #e4f1ea;
}
.meet-mark {
  color: #d77658;
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
}
.meet-line {
  margin: 8px 0 0;
  font-weight: 600;
  color: #3b5a52;
}
@keyframes meet-pulse {
  50% {
    transform: scale(1.04);
  }
}
@media (prefers-reduced-motion: reduce) {
  button.meet-letter {
    animation: none;
  }
}

/* Focus mode for children: no side panels, the menu waits behind one quiet button. */
.kid-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.kid-bar .brand {
  pointer-events: none;
}
.kid-menu-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid #d9ddd0;
  background: #fff;
  color: #4b6159;
  font-size: 20px;
  opacity: 0.7;
  cursor: pointer;
}
.kid-menu-btn[aria-expanded="true"] {
  opacity: 1;
}
.kid-menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 200px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e5e7dc;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(31, 61, 54, 0.16);
}
.kid-menu[hidden] {
  display: none !important;
}
.kid-menu > * {
  text-align: center;
  justify-content: center;
}
.child-app .lesson-layout {
  grid-template-columns: 1fr;
}
.child-app .lesson-card {
  max-width: 880px;
  width: 100%;
  margin-inline: auto;
}
.moment-dots {
  display: inline-flex;
  gap: 6px;
  margin-inline: auto 12px;
}
.moment-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e5e7dc;
}
.moment-dots i.done {
  background: #9cc7b0;
}
.moment-dots i.now {
  background: #23685c;
  width: 22px;
  border-radius: 99px;
}

/* ── Book-centric pages: each book, its journey right underneath ── */
.book-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin: 8px 0 40px; }
.book-tile { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.book-tile:hover, .book-tile:focus-visible { transform: translateY(-3px); box-shadow: 0 18px 50px #28492e1f; }
.book-tile img { width: 100%; aspect-ratio: 200 / 260; object-fit: cover; border-radius: 14px; background: var(--cream); }
.book-tile h2, .book-tile h3 { margin: 4px 0 0; font-size: 1.15rem; }
.book-tile-journey { margin: 0; color: var(--muted); font-size: .95rem; }
.book-tile > div { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.book-tile > div p { margin: 0; }
.book-tile small { display: block; }
.book-tile .btn { align-self: flex-start; margin-top: auto; }
.back-link { display: inline-flex; gap: 6px; margin: 18px 0 6px; color: var(--teal); font-weight: 700; text-decoration: none; }
.book-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 12px 0 28px; }
.book-info h1 { margin: 6px 0 12px; }
.book-journey { background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: 24px; box-shadow: var(--shadow); margin-bottom: 40px; }
.journey-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.journey-head h2 { margin: 0; }
.journey-head .play-progress { flex: 1 1 220px; }
.big-continue { font-size: 1.15rem; padding: 14px 26px; }
.j-group { margin: 18px 0 8px; font-size: 1rem; color: var(--muted); }
.j-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.j-grid.letters { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.j-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; padding: 10px 8px; border: 2px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; text-align: center; }
.j-grid.letters .j-tile { font-size: 1.6rem; aspect-ratio: 1; }
.j-tile small { font-size: .78rem; font-weight: 600; color: var(--muted); }
.j-tile.done { background: #e6f2ee; border-color: #9fcbc1; }
.j-tile.started { border-color: var(--gold); }
.j-tile.next { border-color: var(--coral); box-shadow: 0 0 0 4px #cf604422; }
.j-tile.locked { opacity: .55; }
.j-tile:hover, .j-tile:focus-visible { transform: translateY(-2px); }
.j-swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #0002; }
@media (max-width: 760px) {
  .book-top { grid-template-columns: 1fr; gap: 18px; }
  .book-journey { padding: 16px; border-radius: 20px; }
  .big-continue { width: 100%; justify-content: center; }
}
