:root {
  --coral: #FF6B5B;
  --sunshine: #FFC93C;
  --teal: #1FA2A6;
  --leaf: #7BC67E;
  --navy: #1F2A44;
  --cream: #FFFBF5;
  --white: #FFFFFF;
  --coral-tint: #FFF0EC;
  --sunshine-tint: #FFF6D8;
  --teal-tint: #EAF7F6;
  --leaf-tint: #EEF8EF;
  /* Darker accent variants keep small text and white button labels readable. */
  --coral-ink: #B93D30;
  --teal-ink: #147276;
  --border: #E8E5DE;
  --font-heading: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 24px;
  --shadow: 0 8px 24px rgb(31 42 68 / 5%);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--navy); font-family: var(--font-body); font-size: 1rem; line-height: 1.7; }
button, input { font: inherit; }
a { color: inherit; text-underline-offset: .25em; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: 5px; }
main:focus { outline: none; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--font-heading); line-height: 1.2; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 10px 20px; border-radius: 12px; background: var(--white); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 5; background: var(--cream); border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease; }
.site-header.is-scrolled { border-color: var(--border); box-shadow: 0 2px 10px rgb(31 42 68 / 3%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: 18px; gap: 12px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; flex-shrink: 0; }
.wordmark { position: relative; color: var(--teal); font-family: var(--font-heading); font-size: 2.25rem; font-weight: 700; line-height: 1.25; letter-spacing: -1.2px; padding-right: 15px; }
.wordmark svg { position: absolute; right: 0; top: 1px; width: 17px; height: 17px; color: var(--sunshine); transform: rotate(12deg); }
.brand-tagline { font-size: .75rem; font-weight: 500; color: var(--coral-ink); margin-top: 4px; }
.primary-nav { display: flex; width: 100%; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.primary-nav > a { position: relative; font-size: .875rem; font-weight: 500; text-decoration: none; padding: 9px 0; }
.primary-nav > a:not(.button):hover { color: var(--teal-ink); }
.primary-nav > a[aria-current='page']:not(.button) { color: var(--teal-ink); }
.primary-nav > a[aria-current='page']:not(.button)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 3px; background: var(--sunshine); border-radius: 10px; }
.button { display: inline-flex; gap: 16px; align-items: center; justify-content: center; min-height: 46px; padding: 11px 24px; border-radius: 999px; border: 2px solid transparent; font-weight: 600; font-size: .875rem; text-decoration: none; line-height: 1.5; transition: transform .2s ease, box-shadow .2s ease; }
.button--primary { color: var(--white); background: var(--coral-ink); }
.button--secondary { color: var(--teal-ink); border-color: var(--teal-ink); background: transparent; }
.primary-nav > .button { padding: 10px 23px; }
.button[aria-current='page'] { outline: 2px solid var(--navy); outline-offset: 3px; }
.button:disabled { cursor: not-allowed; opacity: .65; }
.menu-toggle { display: none; align-items: center; gap: 9px; min-height: 44px; background: transparent; border: 1px solid var(--border); border-radius: 12px; padding: 10px; color: var(--navy); }
.menu-label { font-size: .8rem; font-weight: 500; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ''; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.site-header.menu-enhanced .menu-toggle { display: flex; }
.site-header.menu-enhanced .primary-nav { display: none; flex-direction: column; align-items: stretch; gap: 5px; padding-block: 10px; }
.site-header.menu-enhanced .primary-nav.is-open { display: flex; }
.page-main { padding-block: 44px 64px; }
.page-title { display: flex; align-items: center; gap: 13px; margin-bottom: 26px; }
.title-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 700; letter-spacing: -.7px; }
.placeholder-section { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; padding: 56px 28px; border-radius: var(--radius); border: 1px solid #F0E8D9; background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.placeholder-section p { font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; text-align: center; }
.doodle { position: absolute; width: 45px; height: 45px; }
.doodle-star { left: 20px; top: 24px; fill: var(--sunshine-tint); stroke: var(--sunshine); stroke-width: 2; transform: rotate(-12deg); }
.doodle-dots { right: 20px; bottom: 25px; fill: var(--leaf); opacity: .6; }
.doodle-squiggle { width: 85px; margin-top: 14px; fill: none; stroke: var(--coral); stroke-width: 3; stroke-linecap: round; }
.site-footer { border-top: 1px solid var(--border); background: var(--teal-tint); padding-top: 40px; padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.footer-brand p { max-width: 270px; font-size: .8125rem; line-height: 1.9; margin-top: 18px; }
.footer-heading { font-family: var(--font-body); font-size: .875rem; font-weight: 600; line-height: 1.7; margin-bottom: 14px; }
.footer-links, address { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: .8125rem; font-style: normal; }
.footer-links a, address a { text-decoration: none; }
.footer-links a:hover, address a:hover { text-decoration: underline; }
.contact-caption { font-size: .75rem; }
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-links a { display: grid; place-items: center; border: 1px solid #D0E4E2; border-radius: 50%; width: 44px; height: 44px; background: var(--white); transition: transform .2s ease; }
.social-links svg { width: 18px; height: 18px; }
.newsletter-form { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.newsletter-form label { font-size: .75rem; }
.newsletter-form input { width: 100%; min-width: 0; min-height: 46px; padding: 11px 16px; border: 1px solid #6D898A; border-radius: 12px; color: var(--navy); background: var(--white); font-size: .8125rem; }
.newsletter-form input::placeholder { color: #606878; }
.newsletter-form input[aria-invalid='true'] { border-color: var(--coral-ink); }
.newsletter-form .button { align-self: flex-start; }
.form-message { font-size: .75rem; line-height: 1.7; }
.form-message:empty { display: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #D0E4E2; margin-top: 32px; padding-top: 22px; font-size: .6875rem; }
.footer-flower { color: var(--teal-ink); font-size: 25px; line-height: 1; }
.whatsapp-float { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 6; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #25D366; color: var(--white); box-shadow: 0 5px 18px rgb(31 42 68 / 18%); transition: transform .2s ease; }
.whatsapp-float > svg { width: 32px; height: 32px; }
.whatsapp-tooltip { display: none; position: absolute; right: 68px; padding: 7px 13px; border-radius: 9px; white-space: nowrap; color: var(--white); background: var(--navy); font-size: .75rem; pointer-events: none; }
@media (hover: hover) {
  .button:not(:disabled):hover, .social-links a:hover, .whatsapp-float:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

}
@media (min-width: 600px) {
  .container { width: min(1160px, calc(100% - 64px)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .placeholder-section { min-height: 340px; }
  .doodle-star { left: 44px; top: 38px; }
  .doodle-dots { right: 44px; bottom: 38px; }
}
@media (min-width: 900px) {
  .header-inner { flex-wrap: nowrap; padding-block: 20px; }
  .primary-nav, .site-header.menu-enhanced .primary-nav { display: flex; flex-direction: row; width: auto; align-items: center; gap: 28px; padding: 0; }
  .site-header.menu-enhanced .menu-toggle { display: none; }
  .page-main { padding-block: 60px 80px; }
  .placeholder-section { min-height: 350px; }
  .site-footer { padding-top: 48px; }
  .footer-grid { grid-template-columns: 1.35fr .65fr 1fr 1.3fr; gap: 32px; }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal.is-revealing { animation: fade-up .55s ease both; }
  @keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.button-icon { width: 16px; height: 16px; flex-shrink: 0; }

.home-link { margin-top: 24px; }
@media (min-width: 900px) {
  .whatsapp-float:hover .whatsapp-tooltip, .whatsapp-float:focus-visible .whatsapp-tooltip { display: block; }
}

/* Home page --------------------------------------------------------------- */
.home-main { padding-bottom: 72px; }
.home-main h2 { font-size: clamp(2rem, 3.5vw, 2.65rem); font-weight: 700; letter-spacing: -.5px; }
.home-main h3 { margin: 0; font-family: var(--font-heading); font-size: 1.35rem; font-weight: 600; line-height: 1.25; }
.home-section { padding-block: 56px; }
.home-hero { padding-top: 40px; }
.home-hero-grid { display: grid; gap: 28px; align-items: center; }
.home-hero h1 { max-width: 600px; font-size: clamp(2.65rem, 5.2vw, 4.4rem); line-height: 1.06; letter-spacing: -1.2px; }
.home-hero h1 span { color: var(--teal-ink); }
.home-subheading { margin-top: 18px; color: var(--coral-ink); font-weight: 600; font-size: 1.125rem; }
.home-lead { margin-top: 18px; max-width: 530px; font-size: .95rem; line-height: 1.9; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.home-cover-scene { position: relative; width: 100%; max-width: 550px; aspect-ratio: 1.1; margin-inline: auto; isolation: isolate; }
.home-cover-scene::before { content: ''; position: absolute; inset: 10% 3% 8%; border-radius: 46% 54% 56% 44%; background: var(--sunshine-tint); z-index: -1; }
.home-hero-book { position: absolute; height: auto; border-radius: 9px; box-shadow: 0 12px 25px rgb(31 42 68 / 15%); }
.home-hero-book--preschool { width: 38%; left: 6%; top: 14%; transform: rotate(-12deg); }
.home-hero-book--ramadan { width: 42%; right: 5%; top: 16%; transform: rotate(11deg); }
.home-hero-book--allah { width: 51%; left: 24%; top: 29%; transform: rotate(-3deg); }
.home-scene-star { position: absolute; width: 25px; color: var(--sunshine); }
.home-scene-star--one { left: 13%; top: 1%; transform: rotate(-15deg); }
.home-scene-star--two { right: 2%; bottom: 15%; width: 20px; color: var(--coral); }
.home-scene-dots { position: absolute; width: 44px; right: 7%; top: 0; fill: var(--leaf); }
.home-amina { position: absolute; left: 0; bottom: 0; display: flex; align-items: flex-end; z-index: 2; }
.home-amina-wave { width: clamp(72px, 17vw, 108px); transform-origin: 50% 90%; }
.home-amina img { display: block; width: 100%; height: auto; border-radius: 50%; border: 5px solid var(--white); box-shadow: var(--shadow); }
.home-speech { position: relative; margin: 0 0 7px 7px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 14px 14px 14px 2px; background: var(--white); font-size: .7rem; font-weight: 500; box-shadow: var(--shadow); }
.home-highlights { padding-block: 22px; background: var(--leaf-tint); border-block: 1px solid #DFECDF; }
.home-highlight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; list-style: none; padding-left: 0; margin-block: 0; }
.home-highlight-grid li { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; font-size: .78rem; font-weight: 500; }
.home-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0; }
.home-icon svg { width: 26px; height: 26px; }
.home-icon--0 { color: var(--coral-ink); background: var(--coral-tint); }
.home-icon--1 { color: var(--navy); background: var(--sunshine-tint); }
.home-icon--2 { color: var(--teal-ink); background: var(--teal-tint); }
.home-icon--3 { color: var(--navy); background: var(--leaf-tint); }
.home-section-heading { margin-bottom: 28px; }
.home-section-heading p { margin-top: 12px; max-width: 650px; font-size: .95rem; }
.home-book-grid, .home-coming-grid, .home-why-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.home-book-card { min-width: 0; background: var(--white); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.home-book-card > a { display: block; height: 100%; text-decoration: none; transition: transform .2s ease; }
.home-book-card:has(> a) { transition: transform .2s ease; }
.home-book-card > a:focus-visible { outline-offset: -5px; border-radius: 20px; }
.home-book-image { position: relative; display: grid; place-items: center; padding: 24px; background: var(--sunshine-tint); aspect-ratio: 1; }
.home-book-card:nth-child(2) .home-book-image { background: var(--teal-tint); }
.home-book-card:nth-child(3) .home-book-image { background: var(--coral-tint); }
.home-book-card:nth-child(4) .home-book-image { background: var(--leaf-tint); }
.home-book-image img { display: block; position: absolute; top: 24px; left: 24px; width: calc(100% - 48px); height: calc(100% - 48px); object-fit: contain; filter: drop-shadow(0 5px 6px rgb(31 42 68 / 12%)); }
.home-book-copy { padding: 20px; }
.home-age { display: inline-block; margin-bottom: 12px; padding: 3px 10px; border-radius: 999px; background: var(--leaf-tint); font-size: .7rem; font-weight: 500; }
.home-book-copy p { margin-top: 12px; font-size: .75rem; }
.home-section-action { margin-top: 30px; text-align: center; }
.home-why { background: var(--coral-tint); }
.home-reason { padding: 26px; background: var(--white); border-radius: 20px; }
.home-reason h3 { margin-top: 20px; }
.home-reason p { margin-top: 12px; font-size: .85rem; line-height: 1.9; }
.home-friends { display: flex; gap: 24px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-width: none; padding: 8px 5px 18px; margin: 0; list-style: none; }
.home-friends::-webkit-scrollbar { display: none; }
.home-friend { flex: 0 0 140px; text-align: center; scroll-snap-align: start; }
.home-friend img { display: block; width: 132px; height: 132px; margin-inline: auto; border-radius: 50%; object-fit: cover; border: 5px solid var(--coral-tint); padding: 4px; background: var(--white); }
.home-friend--1 img { border-color: var(--sunshine-tint); }
.home-friend--2 img { border-color: var(--teal-tint); }
.home-friend--3 img { border-color: var(--leaf-tint); }
.home-friend h3 { margin-top: 14px; font-size: 1.15rem; }
.home-banner-section { padding-block: 20px; }
.home-rounded-banner { border-radius: 24px; padding: 32px 24px; }
.home-pricing { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; background: var(--sunshine-tint); }
.home-pricing h2 { max-width: 740px; font-size: clamp(1.8rem, 3vw, 2.25rem); }
.home-pricing p { max-width: 700px; margin-top: 15px; font-size: .9rem; }
.home-pricing .button { flex-shrink: 0; }
.home-soon-badge { position: absolute; top: 15px; left: 15px; padding: 5px 12px; border-radius: 999px; color: var(--navy); background: var(--sunshine); font-size: .75rem; font-weight: 600; }
.home-more-books { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 24px; min-height: 260px; padding: 35px; text-align: center; background: var(--teal-tint); border-radius: 20px; }
.home-more-books > span { width: 52px; color: var(--sunshine); transform: rotate(-12deg); }
.home-more-books h3 { max-width: 210px; font-size: 1.8rem; }
.home-final { text-align: center; background: var(--teal-tint); }
.home-final > p { max-width: 670px; margin: 16px auto 0; font-size: .95rem; }
.home-final .home-actions { justify-content: center; }
@media (min-width: 600px) {
  .home-section { padding-block: 72px; }
  .home-book-grid, .home-why-grid, .home-coming-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-highlight-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-friend { flex-basis: 160px; }
  .home-friend img { width: 152px; height: 152px; }
  .home-rounded-banner { padding: 44px; }
  .home-banner-section { padding-block: 20px; }
}
@media (min-width: 900px) {
  .home-hero-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .home-hero { padding-block: 64px 72px; }
  .home-hero-copy { padding-bottom: 12px; }
  .home-highlight-grid li { flex-direction: row; justify-content: center; font-size: .85rem; text-align: left; }
  .home-friends { justify-content: space-between; gap: 20px; }
  .home-friend { flex: 0 1 180px; }
  .home-coming-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .home-book-grid, .home-why-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-pricing { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; }
  .home-pricing > div { max-width: 680px; }
}
@media (hover: hover) {
  .home-book-card:has(> a):hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: no-preference) {
  .home-amina-wave { animation: home-amina-wave 1s ease-in-out 1; }
  @keyframes home-amina-wave { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-6deg); } 65% { transform: rotate(5deg); } }
}

/* Reusable section headings: ABC letter blocks ----------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.block-heading { color: var(--navy); font-family: var(--font-heading); font-size: clamp(1.65rem, 3.5vw, 2.65rem); font-weight: 700; line-height: 1.45; letter-spacing: normal; }
.block-heading__visual { display: inline; }
/* Each plain phrase and each complete block word wraps as a single unit. */
.block-heading__visual > span:not(.blocks) { display: inline-block; vertical-align: middle; }
.blocks { --block-size: clamp(34px, 4vw, 48px); display: inline-flex; flex-wrap: nowrap; gap: clamp(3px, .5vw, 6px); vertical-align: middle; padding: 5px 3px; white-space: nowrap; }
.block { --block-tilt: -6deg; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 var(--block-size); width: var(--block-size); height: var(--block-size); border-radius: 10px; border-bottom: 4px solid #8C2D24; background: var(--coral-ink); color: var(--white); font-family: var(--font-heading); font-size: calc(var(--block-size) * .75); font-weight: 700; line-height: 1; letter-spacing: 0; transform: rotate(var(--block-tilt)); }
.block:nth-child(4n + 2) { color: var(--white); background: var(--teal-ink); border-bottom-color: #0D5154; }
.block:nth-child(4n + 3) { color: var(--navy); background: var(--sunshine); border-bottom-color: #C29520; }
.block:nth-child(4n + 4) { color: var(--navy); background: var(--leaf); border-bottom-color: #528E55; }
.block:nth-child(5n + 2) { --block-tilt: 4deg; }
.block:nth-child(5n + 3) { --block-tilt: -3deg; }
.block:nth-child(5n + 4) { --block-tilt: 5deg; }
.block:nth-child(5n + 5) { --block-tilt: -4deg; }
.blocks--mini { --block-size: 28px; gap: 4px; margin-bottom: 15px; }
.blocks--mini .block { border-radius: 7px; border-bottom-width: 3px; }
/* Preserve the Home heading size while allowing phrases and blocks to wrap. */
.home-main h2.block-heading { font-size: clamp(1.65rem, 3.5vw, 2.65rem); line-height: 1.45; letter-spacing: normal; }
@media (prefers-reduced-motion: no-preference) {
  .block-heading.is-revealing .block { animation: block-settle 400ms ease-out calc(var(--block-index, 0) * 60ms) 1 both; }
  @keyframes block-settle {
    from { transform: translateY(-8px) rotate(var(--block-tilt)); }
    to { transform: translateY(0) rotate(var(--block-tilt)); }
  }
}

/* Books page -------------------------------------------------------------- */
.books-main { padding-block: 44px 80px; }
.books-intro { max-width: 800px; margin-bottom: 30px; }
.books-intro h1 { margin-bottom: 20px; }
.books-intro > p { font-size: .95rem; line-height: 1.9; }
.books-intro .books-pricing-note { display: inline-block; margin-top: 20px; padding: 8px 15px; border-radius: 999px; background: var(--sunshine-tint); font-size: .75rem; line-height: 1.7; }
.book-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.book-filters[hidden], .book-card[hidden] { display: none; }
.book-filter { min-height: 44px; border: 1px solid var(--teal-ink); border-radius: 999px; padding: 9px 17px; color: var(--teal-ink); background: var(--white); font-size: .8125rem; font-weight: 500; }
.book-filter[aria-pressed='true'] { color: var(--white); background: var(--teal-ink); }
.book-filter:hover { text-decoration: underline; text-underline-offset: 4px; }
.books-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.book-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 22px; background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.book-cover { position: relative; aspect-ratio: 1; background: var(--sunshine-tint); }
.book-card:nth-child(4n + 2) .book-cover { background: var(--teal-tint); }
.book-card:nth-child(4n + 3) .book-cover { background: var(--coral-tint); }
.book-card:nth-child(4n + 4) .book-cover { background: var(--leaf-tint); }
.book-cover > img { position: absolute; top: 24px; left: 24px; width: calc(100% - 48px); height: calc(100% - 48px); object-fit: contain; filter: drop-shadow(0 5px 6px rgb(31 42 68 / 12%)); }
.book-card-content { display: flex; flex-direction: column; align-items: flex-start; flex: 1; gap: 12px; padding: 24px; }
.book-title { margin: 0; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; line-height: 1.25; }
.book-subtitle { font-size: .8rem; line-height: 1.7; }
.book-age { display: inline-block; padding: 3px 11px; background: var(--leaf-tint); border-radius: 999px; font-size: .72rem; font-weight: 500; }
.book-description { font-size: .85rem; line-height: 1.85; }
.book-price { font-size: .75rem; font-weight: 500; }
.book-urdu { align-self: stretch; font-family: 'Noto Nastaliq Urdu', serif; font-weight: 400; font-size: 1.15rem; line-height: 2.2; padding-block: 5px; text-align: right; }
.book-urdu-title { font-size: 1.4rem; font-weight: 600; }
.book-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; margin-top: auto; padding-top: 8px; }
.book-actions .button { font-size: .8rem; padding-inline: 16px; }
.book-whatsapp { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--teal-ink); border-radius: 50%; color: var(--teal-ink); background: var(--teal-tint); }
.book-whatsapp svg { width: 25px; height: 25px; }
.book-soon-badge { position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 999px; background: var(--sunshine); color: var(--navy); font-size: .75rem; font-weight: 600; }
.books-special { display: flex; flex-direction: column; align-items: flex-start; gap: 25px; margin-block: 64px; padding: 32px 24px; border-radius: 24px; background: var(--sunshine-tint); }
.books-special h2 { max-width: 740px; font-size: clamp(1.8rem, 3vw, 2.25rem); font-weight: 700; }
.books-special p { max-width: 700px; margin-top: 15px; font-size: .9rem; }
.books-special > .button { flex-shrink: 0; }
.books-coming-intro { max-width: 650px; margin-block: 16px 30px; font-size: .95rem; }
.book-cover.book-cover--placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 56px 24px 24px; text-align: center; font-size: .85rem; }
.book-cover.book-cover--tint-0 { background: var(--teal-tint); }
.book-cover.book-cover--tint-1 { background: var(--coral-tint); }
.book-cover.book-cover--tint-2 { background: var(--leaf-tint); }
.book-cover--placeholder > svg { width: 90px; height: 90px; color: var(--teal-ink); }
.book-dialog { width: min(800px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 20px; border: 1px solid var(--border); border-radius: 24px; background: var(--cream); color: var(--navy); box-shadow: 0 12px 40px rgb(31 42 68 / 15%); }
.book-dialog::backdrop { background: rgb(31 42 68 / 65%); }
.book-dialog-header { display: flex; align-items: flex-start; gap: 15px; justify-content: space-between; margin-bottom: 18px; }
.book-dialog-header h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 700; }
.book-dialog-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--teal-ink); border-radius: 50%; background: var(--white); color: var(--navy); }
.book-dialog-close svg { width: 24px; height: 24px; }
.book-dialog > img { display: block; width: 100%; height: auto; max-height: 65dvh; object-fit: contain; border-radius: 12px; }
.book-dialog-actions { margin-top: 20px; text-align: center; }
body.book-dialog-open { overflow: hidden; }
@media (min-width: 600px) {
  .books-main { padding-top: 60px; }
  .books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .books-special { padding: 44px; }
  .book-dialog { padding: 28px; }
}
@media (min-width: 1000px) {
  .books-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .books-special { flex-direction: row; align-items: center; gap: 48px; }
}
@media (prefers-reduced-motion: no-preference) {
  .book-dialog[open] { animation: book-dialog-enter 180ms ease-out; }
  @keyframes book-dialog-enter { from { opacity: 0; } to { opacity: 1; } }
}

/* Characters page --------------------------------------------------------- */
.characters-main { padding-bottom: 72px; }
.characters-intro { padding-block: 44px; }
.characters-intro p { max-width: 720px; margin-top: 20px; font-size: .95rem; line-height: 1.9; }
.character-group { padding-block: 48px; }
.character-group--siblings { background: var(--coral-tint); }
.character-group--ramadan { background: var(--sunshine-tint); }
.character-group--preschool { background: var(--leaf-tint); }
.character-group-heading { position: relative; padding-bottom: 26px; }
.character-group-heading p { max-width: 680px; margin-top: 16px; font-size: .9rem; }
.character-group-heading .block-heading { position: relative; z-index: 1; }
.character-doodle { position: absolute; pointer-events: none; }
.character-doodle--star { top: 8px; right: 3px; width: 22px; color: var(--sunshine); transform: rotate(12deg); }
.character-doodle--dots { bottom: 5px; right: 4px; width: 32px; fill: var(--leaf); }
.character-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.character-card { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 28px 22px; border-radius: 24px; background: var(--white); box-shadow: var(--shadow); }
.character-portrait-scene { position: relative; width: min(100%, 360px); margin-inline: auto; padding-block: 45px 20px; }
.character-portrait { display: block; width: 150px; height: 150px; margin-inline: auto; border: 7px solid var(--coral); border-radius: 50%; object-fit: cover; padding: 4px; background: var(--white); transition: transform .2s ease; }
.character-card--teal .character-portrait { border-color: var(--teal); }
.character-card--sunshine .character-portrait { border-color: var(--sunshine); }
.character-card--leaf .character-portrait { border-color: var(--leaf); }
.character-speech { position: absolute; top: 0; right: 0; z-index: 1; max-width: 190px; padding: 10px 15px; border: 1px solid var(--border); border-radius: 18px; background: var(--white); color: var(--navy); font-family: var(--font-heading); font-weight: 600; font-size: 1rem; line-height: 1.3; box-shadow: 0 3px 10px rgb(31 42 68 / 4%); }
.character-speech::after { content: ''; position: absolute; bottom: -7px; left: 22px; width: 12px; height: 12px; background: var(--white); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); transform: rotate(45deg); }
.character-name { margin: 0; font-family: var(--font-heading); font-size: 2rem; font-weight: 700; line-height: 1.2; }
.character-tagline { margin-top: 7px; font-size: .9rem; color: var(--teal-ink); font-weight: 600; }
.character-bio { margin-top: 18px; font-size: .9rem; line-height: 1.9; }
.character-facts { margin-top: 22px; }
.character-small-heading { font-size: .8rem; font-weight: 600; }
.character-facts ul { display: grid; gap: 9px; margin: 12px 0 0; padding: 0; list-style: none; }
.character-facts li { display: flex; align-items: flex-start; gap: 10px; font-size: .8rem; }
.character-facts li svg { flex-shrink: 0; width: 15px; height: 15px; margin-top: 5px; color: var(--coral-ink); }
.character-books { width: 100%; margin-top: auto; padding-top: 24px; }
.character-book-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; padding-bottom: 4px; }
.character-book { position: relative; display: block; flex: 0 0 70px; width: 70px; border-radius: 9px; }
.character-book img { display: block; width: 70px; height: 91px; object-fit: contain; border-radius: 9px; background: var(--cream); }
.character-soon { position: absolute; top: -5px; right: -4px; padding: 1px 6px; border-radius: 999px; color: var(--navy); background: var(--sunshine); font-size: .6rem; font-weight: 600; }
.character-book-chip { display: inline-block; max-width: 100%; margin-top: 12px; padding: 8px 12px; border-radius: 14px; color: var(--navy); background: var(--sunshine-tint); font-size: .75rem; text-underline-offset: 3px; }
.character-cta { margin-top: 48px; padding: 32px 24px; border-radius: 24px; background: var(--teal-tint); text-align: center; }
.character-cta p { margin-top: 18px; font-size: .95rem; }
.character-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 25px; }
@media (min-width: 768px) {
  .characters-intro { padding-block: 60px; }
  .character-group { padding-block: 64px; }
  .character-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .character-grid--single { grid-template-columns: minmax(0, 760px); justify-content: center; }
  .character-card { padding: 32px; }
  .character-portrait { width: 200px; height: 200px; }
  .character-doodle--star { right: 25px; width: 30px; }
  .character-doodle--dots { right: 90px; width: 40px; }
  .character-cta { padding: 44px; margin-top: 64px; }
}
@media (hover: hover) {
  .character-portrait:hover { transform: scale(1.04); }
}
@media (prefers-reduced-motion: no-preference) {
  .character-card.is-revealing .character-speech { animation: character-greeting 400ms ease-out 1 both; }
  @keyframes character-greeting { from { opacity: 0; } to { opacity: 1; } }
}

/* About page -------------------------------------------------------------- */
.about-main { padding-bottom: 72px; }
.about-section { padding-block: 48px; }
.about-intro-grid { display: grid; gap: 24px; align-items: center; }
.about-lead { max-width: 650px; margin-top: 22px; font-size: 1.075rem; line-height: 1.9; }
.about-cover-fan { position: relative; width: min(100%, 520px); aspect-ratio: 1.25; margin-inline: auto; isolation: isolate; }
.about-cover-fan::before { content: ''; position: absolute; z-index: -1; inset: 8% 3% 0; border-radius: 48% 52% 40% 60%; background: var(--sunshine-tint); }
.about-cover { position: absolute; height: auto; border-radius: 9px; box-shadow: 0 8px 18px rgb(31 42 68 / 12%); }
.about-cover--preschool { width: 36%; top: 13%; left: 8%; transform: rotate(-12deg); }
.about-cover--english { width: 36%; top: 13%; right: 8%; transform: rotate(12deg); }
.about-cover--allah { width: 48%; top: 27%; left: 26%; transform: rotate(-2deg); }
.about-fan-star { position: absolute; width: 25px; color: var(--sunshine); }
.about-fan-star--one { top: 0; left: 18%; transform: rotate(-10deg); }
.about-fan-star--two { right: 1%; bottom: 10%; width: 18px; color: var(--coral); transform: rotate(12deg); }
.about-beliefs { background: var(--coral-tint); }
.about-belief-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 30px; }
.about-belief { min-width: 0; padding: 26px; border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.about-belief h3 { margin: 20px 0 0; font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; line-height: 1.25; }
.about-belief p { margin-top: 12px; font-size: .875rem; line-height: 1.9; }
.about-icon { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 15px; }
.about-icon svg { width: 26px; height: 26px; }
.about-accent--0 { background: var(--coral-tint); color: var(--coral-ink); }
.about-accent--1 { background: var(--teal-tint); color: var(--teal-ink); }
.about-accent--2 { background: var(--sunshine-tint); color: var(--navy); }
.about-accent--3 { background: var(--leaf-tint); color: var(--navy); }
.about-badge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 12px; margin: 30px 0 0; padding: 0; list-style: none; }
.about-badge-grid li { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; font-size: .75rem; font-weight: 500; }
.about-badge-grid .about-icon { width: 58px; height: 58px; border-radius: 50%; }
.about-founder { background: var(--sunshine-tint); }
.about-letter { position: relative; width: min(100%, 680px); margin: 36px auto 0; padding: 40px 24px 28px; border: 3px solid #F9E9B7; border-radius: 22px; background: var(--white); box-shadow: var(--shadow); }
.about-letter::before { content: ''; position: absolute; top: -13px; left: calc(50% - 48px); width: 96px; height: 26px; background: rgb(255 201 60 / 45%); transform: rotate(-4deg); }
.about-letter p { position: relative; font-size: 1rem; line-height: 1.95; }
.about-letter p + p { margin-top: 24px; }
.about-letter-star { position: absolute; top: 16px; right: 16px; width: 20px; color: var(--sunshine); transform: rotate(12deg); }
.about-letter .about-signoff { text-align: right; color: var(--teal-ink); font-family: var(--font-heading); font-size: 1.6rem; font-weight: 600; }
.about-source { width: min(100%, 680px); margin: 16px auto 0; color: #515A6B; font-size: .75rem; line-height: 1.8; }
.about-audience-tags { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 28px 0 22px; }
.about-audience-tags li { display: flex; align-items: center; gap: 10px; max-width: 100%; padding: 10px 17px; border: 1px solid #D5E8D6; border-radius: 999px; background: var(--leaf-tint); font-size: .8rem; font-weight: 500; }
.about-audience-tags svg { width: 21px; height: 21px; flex-shrink: 0; color: var(--teal-ink); }
.about-audience > .container > p { max-width: 720px; font-size: .9rem; }
.about-cta { padding: 32px 24px; border-radius: 24px; background: var(--teal-tint); text-align: center; }
.about-cta p { margin-top: 18px; font-size: .95rem; }
.about-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 25px; }
@media (min-width: 600px) {
  .about-section { padding-block: 64px; }
  .about-belief-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-letter { padding: 44px 42px 32px; }
  .about-letter p { font-size: 1.075rem; }
  .about-badge-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .about-badge-grid li { font-size: .8rem; }
  .about-cta { padding: 44px; }
}
@media (min-width: 1000px) {
  .about-intro-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 42px; }
  .about-belief-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
