/* ═══════════════════════════════════════════════════════════
   PICKATALE — Design System v2
   Based on approved Concept 3 brand direction
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;0,800;0,900;1,700&family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── TOKENS ─── */
:root {
  /* Brand greens */
  --pt-green-900: #004f3f;
  --pt-green-800: #00664f;
  --pt-green-700: #00775c;
  --pt-green-600: #008766;
  --pt-green-100: #e9f8f3;
  --pt-green-50:  #f2fcf8;

  /* Yellow */
  --pt-yellow-500: #ffc928;
  --pt-yellow-300: #ffe78a;
  --pt-yellow-50:  #fffbee;

  /* Coral / CTA */
  --pt-coral-600: #f04f6f;
  --pt-coral-500: #ff5f7f;
  --pt-coral-100: #ffe8ee;
  --pt-blush-100: #fff1f4;

  /* Navy / ink */
  --pt-navy-900: #06284a;
  --pt-navy-800: #0a365f;
  --pt-ink:      #0b2240;
  --pt-muted:    #53627a;

  /* Supporting */
  --pt-blue-600: #1f78d1;
  --pt-blue-100: #eaf6ff;
  --pt-teal-100: #e9f8f3;
  --pt-mint-100: #edf9e8;
  --pt-lavender-100: #f4edff;
  --pt-lavender-200: #ece0ff;

  /* Cream / page base */
  --pt-cream-50:  #fffaf0;
  --pt-cream-100: #fff5df;
  --pt-cream-200: #f8ebcf;
  --pt-white: #ffffff;

  /* Typography */
  --font-display: 'Nunito', 'Avenir Next', system-ui, sans-serif;
  --font-body:    'Inter', 'Avenir Next', system-ui, sans-serif;

  /* Layout */
  --container-max: 1180px;
  --section-y: 96px;
  --section-y-mob: 60px;

  /* Radius */
  --r-pill: 999px;
  --r-sm:   14px;
  --r-md:   22px;
  --r-lg:   32px;
  --r-xl:   44px;

  /* Shadows */
  --sh-card:   0 18px 48px rgba(6,40,74,0.10);
  --sh-soft:   0 10px 30px rgba(6,40,74,0.08);
  --sh-button: 0 10px 22px rgba(240,79,111,0.28);
  --sh-float:  0 6px 28px rgba(6,40,74,0.13);

  /* Borders */
  --border-cream: 1px solid rgba(145,111,55,0.15);
  --border-soft:  1px solid rgba(6,40,74,0.09);
}

/* ─── BASE ─── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--pt-cream-50);
  color: var(--pt-ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--pt-navy-900);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1 { font-size: clamp(2.8rem, 5.5vw, 5rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 3.8vw, 3.6rem); font-weight: 900; }
h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 800; }
h4 { font-size: 1.15rem; font-weight: 800; }

p { color: var(--pt-muted); }

img { max-width: 100%; display: block; }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
              transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── LAYOUT ─── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-y) 0; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border-radius: var(--r-pill);
  padding: 14px 26px; font-family: var(--font-display);
  font-weight: 800; font-size: 15px; text-decoration: none;
  border: none; cursor: pointer; white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--pt-coral-600);
  color: var(--pt-white);
  box-shadow: var(--sh-button);
}
.btn-primary:hover {
  background: var(--pt-coral-500);
  box-shadow: 0 14px 28px rgba(240,79,111,0.38);
}

.btn-secondary {
  background: var(--pt-white);
  color: var(--pt-navy-900);
  border: 1.5px solid rgba(0,119,92,0.22);
  box-shadow: var(--sh-soft);
}
.btn-secondary:hover {
  border-color: var(--pt-green-700);
  color: var(--pt-green-700);
}

.btn-green {
  background: var(--pt-green-700);
  color: var(--pt-white);
  box-shadow: 0 10px 22px rgba(0,119,92,0.28);
}
.btn-green:hover { background: var(--pt-green-600); }

.btn-blue {
  background: var(--pt-blue-600);
  color: var(--pt-white);
  box-shadow: 0 10px 22px rgba(31,120,209,0.28);
}
.btn-blue:hover { background: #1868b8; }

.btn-lg { padding: 17px 32px; font-size: 17px; }
.btn-sm { padding: 10px 20px; font-size: 13px; }

/* ─── PANELS ─── */
.panel {
  border-radius: var(--r-xl);
  padding: 56px;
  border: var(--border-cream);
  box-shadow: var(--sh-card);
}
.panel-cream   { background: linear-gradient(180deg,#fff9ec 0%,#fff2d8 100%); }
.panel-green   { background: linear-gradient(135deg,#e9f8f3 0%,#fffaf0 100%); }
.panel-blue    { background: linear-gradient(135deg,#eaf6ff 0%,#fffaf0 100%); }
.panel-blush   { background: linear-gradient(135deg,#fff1f4 0%,#f4edff 100%); }
.panel-lavender{ background: linear-gradient(135deg,#f4edff 0%,#fff1f4 100%); }
.panel-dark    { background: linear-gradient(135deg,#004f3f 0%,#06284a 100%); color: #fff; border-color: transparent; }
.panel-dark h2,.panel-dark h3 { color: #fff; }
.panel-dark p  { color: rgba(255,255,255,0.75); }

/* ─── CARDS ─── */
.card {
  background: var(--pt-white);
  border: var(--border-cream);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-soft);
  padding: 32px;
}

.card-sm { padding: 20px 24px; border-radius: var(--r-md); }

/* ─── BADGE / CHIP ─── */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: var(--r-pill); padding: 7px 14px;
  background: var(--pt-white); border: var(--border-soft);
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  color: var(--pt-navy-900);
}
.badge-green { background: var(--pt-green-100); color: var(--pt-green-700); border-color: rgba(0,119,92,0.2); }
.badge-coral { background: var(--pt-coral-100); color: var(--pt-coral-600); border-color: rgba(240,79,111,0.2); }
.badge-yellow{ background: var(--pt-yellow-50);  color: #856400; border-color: rgba(255,201,40,0.3); }
.badge-blue  { background: var(--pt-blue-100);  color: var(--pt-blue-600); border-color: rgba(31,120,209,0.2); }

/* ═══ NAVIGATION ═══ */
#nav {
  position: sticky; top: 0; z-index: 200;
  padding: 14px 24px;
  background: rgba(255,250,240,0.92);
  backdrop-filter: blur(18px);
  border-bottom: var(--border-cream);
  transition: box-shadow 0.3s;
}
#nav.scrolled { box-shadow: 0 2px 24px rgba(6,40,74,0.08); }

.nav-inner {
  max-width: var(--container-max); margin: 0 auto;
  display: flex; align-items: center;
  gap: 0;
}

/* Pill shell — floats on cream */
.nav-shell {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  background: rgba(255,255,255,0.82);
  border-radius: var(--r-pill);
  border: var(--border-cream);
  box-shadow: var(--sh-soft);
  padding: 8px 8px 8px 20px;
  gap: 0;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo img { height: 34px; width: auto; }
.nav-logo-text {
  font-family: var(--font-display); font-weight: 900; font-size: 19px;
  color: var(--pt-green-800); letter-spacing: -0.03em;
}

.nav-links {
  display: flex; gap: 4px; list-style: none;
  flex: 1; justify-content: center;
}
.nav-links a {
  text-decoration: none; color: var(--pt-muted);
  font-size: 14px; font-weight: 600;
  padding: 7px 14px; border-radius: var(--r-pill);
  transition: background 0.18s, color 0.18s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--pt-green-100); color: var(--pt-green-700);
}

/* ── Dropdown ── */
.nav-links li { position: relative; list-style: none; }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1.5px solid #e4ede9;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(6,40,74,0.12);
  min-width: 160px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 300;
}
.nav-links li:hover .nav-dropdown,
.nav-links li:focus-within .nav-dropdown { display: flex; }
.nav-dropdown a {
  display: block;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pt-muted);
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown a:hover { background: var(--pt-green-100); color: var(--pt-green-700); }
.nav-has-dropdown > a::after {
  content: ' ▾';
  font-size: 10px;
  opacity: 0.5;
}

.btn-nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--pt-coral-600); color: var(--pt-white);
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
  padding: 10px 22px; border-radius: var(--r-pill); text-decoration: none;
  transition: all 0.18s; box-shadow: var(--sh-button);
  flex-shrink: 0;
}
.btn-nav-cta:hover { background: var(--pt-coral-500); transform: translateY(-1px); }

.nav-hamburger {
  display: none; background: none; border: none;
  font-size: 22px; cursor: pointer; color: var(--pt-navy-900);
  padding: 6px 10px;
}

.mobile-menu {
  display: none; flex-direction: column;
  position: fixed; top: 66px; left: 12px; right: 12px; z-index: 199;
  background: var(--pt-white); border-radius: var(--r-lg);
  box-shadow: var(--sh-card); border: var(--border-cream);
  padding: 16px; gap: 4px;
}
.mobile-menu a {
  display: block; padding: 13px 16px;
  text-decoration: none; color: var(--pt-ink);
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  border-radius: var(--r-sm); transition: background 0.15s;
}
.mobile-menu a:hover { background: var(--pt-green-100); color: var(--pt-green-700); }
.mobile-menu.open { display: flex; }

/* ═══ HERO ═══ */
.hero-section {
  background: var(--pt-cream-50);
  padding: 0 24px 80px;
  overflow: hidden;
}

.hero-container {
  max-width: var(--container-max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  padding-top: 72px; min-height: 88vh;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pt-green-100); color: var(--pt-green-700);
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  padding: 7px 16px; border-radius: var(--r-pill); margin-bottom: 24px;
}

.hero-h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1.04; margin-bottom: 24px;
  color: var(--pt-navy-900);
}
.hero-h1 .accent { color: var(--pt-coral-600); }

.hero-body {
  font-size: 17px; line-height: 1.72; color: var(--pt-muted);
  max-width: 460px; margin-bottom: 40px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ─── Hero Visual ─── */
.hero-visual {
  position: relative; height: 580px;
}

.hero-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(255,201,40,0.15) 0%, transparent 68%);
  border-radius: 50%; pointer-events: none; z-index: 0;
}

/* Main scene — children on beanbag */
.hero-scene {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-52%);
  width: 310px; z-index: 2;
}
.hero-scene-bg {
  width: 260px; height: 180px; margin: 0 auto;
  background: linear-gradient(135deg, var(--pt-coral-100) 0%, var(--pt-lavender-100) 100%);
  border-radius: 50% 50% 44% 44% / 60% 60% 40% 40%;
  display: flex; align-items: center; justify-content: center;
  font-size: 110px; position: relative; z-index: 2;
}
.hero-dino {
  position: absolute; bottom: -14px; right: -14px;
  font-size: 52px; z-index: 3; filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.1));
}

/* Floating cards */
.hfc {
  position: absolute; z-index: 4;
  background: var(--pt-white); border-radius: var(--r-md);
  box-shadow: var(--sh-float); border: var(--border-cream);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  animation: hfc-float 4s ease-in-out var(--d,0s) infinite;
  will-change: transform;
}
@keyframes hfc-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

.hfc-profile { top: 28px; right: 0; --d: 0s; }
.hfc-library  { top: 136px; right: -18px; --d: 0.9s; }
.hfc-progress { bottom: 160px; right: -10px; --d: 1.8s; }
.hfc-create   { bottom: 64px; left: -8px; --d: 2.7s; }

.hfc-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.av-warm   { background: linear-gradient(135deg,#FFB347,#FFCC02); }
.av-blue   { background: linear-gradient(135deg,#5E9FD1,#3B72B8); }
.av-green  { background: linear-gradient(135deg,#3AAD72,#2A7A52); }

.hfc-name { font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--pt-navy-900); }
.hfc-sub  { font-size: 11px; color: var(--pt-muted); margin-top: 2px; }

.hfc-books { display: flex; gap: 6px; margin-top: 8px; }
.hfc-book  { width: 36px; height: 48px; border-radius: 4px; box-shadow: 1px 2px 6px rgba(0,0,0,0.15); }

.hfc-prog-bar { height: 5px; background: #eee; border-radius: 3px; width: 120px; margin: 5px 0; overflow: hidden; }
.hfc-prog-fill{ height: 100%; background: var(--pt-green-600); border-radius: 3px; }

.hfc-icon-box {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.ic-coral  { background: var(--pt-coral-100); }
.ic-green  { background: var(--pt-green-100); }
.ic-yellow { background: var(--pt-yellow-50); }

/* Open book bottom-right */
.hero-book {
  position: absolute; bottom: 10px; right: 60px; z-index: 1;
  font-size: 88px; opacity: 0.75; filter: drop-shadow(0 6px 20px rgba(0,0,0,0.1));
  animation: hfc-float 5s ease-in-out 1.4s infinite;
}

/* Sparkles */
.sp { position: absolute; z-index: 5; user-select: none; pointer-events: none; animation: sp-pulse 3s ease-in-out var(--sd,0s) infinite; }
@keyframes sp-pulse {
  0%,100% { transform: scale(1) rotate(0deg); opacity: 0.9; }
  50%      { transform: scale(1.3) rotate(25deg); opacity: 0.5; }
}
.sp1 { top: 18px; left: 50px; font-size: 20px; color: var(--pt-yellow-500); --sd: 0s; }
.sp2 { top: 72px; left: 10px; font-size: 12px; color: var(--pt-coral-600); --sd: 0.7s; }
.sp3 { bottom: 190px; left: 70px; font-size: 16px; color: var(--pt-blue-600); --sd: 1.4s; }
.sp4 { top: 52px; right: 200px; font-size: 11px; color: var(--pt-green-600); --sd: 2.1s; }
.sp5 { bottom: 90px; right: 140px; font-size: 18px; color: var(--pt-yellow-500); --sd: 2.8s; }
.sp6 { bottom: 210px; right: 8px; font-size: 13px; color: var(--pt-coral-500); --sd: 0.4s; }

/* ═══ CREDIBILITY STRIP ═══ */
.cred-section { padding: 0 24px 72px; }
.cred-inner {
  max-width: var(--container-max); margin: 0 auto;
  background: var(--pt-white); border-radius: var(--r-xl);
  border: var(--border-cream); box-shadow: var(--sh-soft);
  padding: 28px 44px;
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap; justify-content: space-between;
}

.cred-item { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; flex-shrink: 0; }
.cred-logo-time {
  font-family: 'Georgia', serif; font-size: 28px; font-weight: 900;
  color: #CC0000; letter-spacing: -1px; line-height: 1;
}
.cred-logo-unicef { font-size: 13px; font-weight: 900; color: #009FDA; font-family: var(--font-display); letter-spacing: 0.05em; }
.cred-logo-icon { font-size: 26px; }
.cred-stat { font-family: var(--font-display); font-size: 18px; font-weight: 900; color: var(--pt-navy-900); }
.cred-label { font-size: 11px; color: var(--pt-muted); font-weight: 500; line-height: 1.4; }
.cred-sep { width: 1px; height: 38px; background: rgba(6,40,74,0.08); flex-shrink: 0; }

.cred-publishers { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pub { font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.3; }
.pub-oxford { font-size: 9px; color: #003478; }
.pub-cherry { font-size: 10px; color: var(--pt-coral-600); }
.pub-story  { font-size: 12px; color: var(--pt-green-700); text-transform: none; font-weight: 700; }
.pub-cricket{ font-size: 12px; color: var(--pt-blue-600); text-transform: none; font-weight: 700; }
.pub-more   { font-size: 12px; color: #aaa; font-weight: 500; text-transform: none; }

/* ═══ PERSONALISATION ═══ */
.person-section { padding: var(--section-y) 24px; background: var(--pt-cream-50); }
.person-wrap {
  max-width: var(--container-max); margin: 0 auto;
}
.person-panel {
  background: linear-gradient(160deg, #f2fcf8 0%, #e9f8f3 60%, #fffaf0 100%);
  border-radius: var(--r-xl); border: var(--border-cream);
  box-shadow: var(--sh-card); padding: 64px;
  position: relative; overflow: hidden;
}
.person-deco-l { position: absolute; left: -10px; top: 50%; transform: translateY(-50%); font-size: 140px; opacity: 0.055; pointer-events: none; user-select: none; }
.person-deco-r { position: absolute; right: -10px; top: 50%; transform: translateY(-50%); font-size: 140px; opacity: 0.055; pointer-events: none; user-select: none; }

.section-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 12px; font-weight: 800;
  color: var(--pt-green-700); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.section-h2 { margin-bottom: 10px; }
.section-h2 .accent { color: var(--pt-coral-600); }
.section-sub { font-size: 17px; color: var(--pt-muted); margin-bottom: 48px; }

/* Reader tabs */
.reader-tabs { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }

.reader-tab {
  background: var(--pt-white); border-radius: var(--r-lg);
  border: 2px solid transparent; box-shadow: var(--sh-soft);
  padding: 18px 22px; display: flex; align-items: center; gap: 14px;
  cursor: pointer; width: 228px; position: relative; user-select: none;
  transition: all 0.28s cubic-bezier(0.34,1.56,0.64,1);
}
.reader-tab:hover { transform: translateY(-3px); box-shadow: var(--sh-card); }
.reader-tab.active {
  border-color: var(--pt-green-600);
  background: var(--pt-green-50);
  box-shadow: 0 8px 30px rgba(0,119,92,0.18);
}
.reader-tab.active .rt-check { display: flex; }

.rt-check {
  display: none; position: absolute; top: -10px; right: -10px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--pt-green-700); color: #fff; font-size: 13px; font-weight: 900;
  align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,119,92,0.4);
}

.rt-avatar {
  width: 52px; height: 52px; border-radius: 50%; font-size: 26px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.av-maya  { background: linear-gradient(135deg,#FFB347,#FFCC02); }
.av-theo  { background: linear-gradient(135deg,#5E9FD1,#3B72B8); }
.av-amara { background: linear-gradient(135deg,#3AAD72,#2A7A52); }

.rt-name  { font-family: var(--font-display); font-weight: 900; font-size: 15px; color: var(--pt-navy-900); }
.rt-age   { font-size: 12px; color: var(--pt-muted); margin-top: 2px; }
.rt-books { font-size: 11px; color: #b0b8c4; margin-top: 5px; }

/* Shelf */
.shelf-label {
  text-align: center; font-family: var(--font-display); font-size: 15px; font-weight: 700;
  color: var(--pt-green-700); margin-bottom: 20px; min-height: 22px;
  transition: opacity 0.22s;
}

.shelf-wrap { position: relative; max-width: 880px; margin: 0 auto 8px; padding-bottom: 26px; }

.shelf-books {
  display: flex; gap: 20px; justify-content: center; padding-bottom: 8px;
  transition: opacity 0.25s, transform 0.28s;
}
.shelf-books.fading { opacity: 0; transform: translateY(10px); }

.book-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
.book-item:hover { transform: translateY(-10px); }
.book-cover {
  width: 120px; height: 162px; border-radius: 8px;
  box-shadow: 5px 8px 22px rgba(0,0,0,0.22);
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding: 12px; text-align: center; position: relative; overflow: hidden;
}
.bc-emoji { position: absolute; top: 16px; font-size: 46px; pointer-events: none; }
.bc-title {
  font-family: var(--font-display); font-weight: 900; font-size: 11px;
  color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.65); line-height: 1.3; position: relative; z-index: 2;
}
.book-stage { font-size: 11px; font-weight: 700; color: var(--pt-muted); }
.book-icons { font-size: 13px; display: flex; gap: 6px; }

.shelf-plank {
  height: 18px;
  background: linear-gradient(180deg,#D4B896 0%,#B8926A 100%);
  border-radius: 0 0 9px 9px;
  position: absolute; bottom: 26px; left: 0; right: 0;
  box-shadow: 0 6px 18px rgba(120,80,30,0.2);
}

.shelf-trust {
  text-align: center; font-size: 13px; color: var(--pt-muted); line-height: 1.7; margin-top: 36px;
}
.shelf-trust strong { color: var(--pt-navy-900); }

/* ═══ CREATE ═══ */
.create-section { padding: var(--section-y) 24px; }
.create-wrap { max-width: var(--container-max); margin: 0 auto; }

.create-panel {
  background: linear-gradient(140deg, #f8f2ff 0%, #fff0f6 50%, #fff8f0 100%);
  border-radius: var(--r-xl); border: var(--border-cream);
  box-shadow: var(--sh-card); padding: 64px;
}
.create-grid {
  display: grid; grid-template-columns: 1fr 320px 1fr;
  gap: 48px; align-items: center;
}

.create-copy p { font-size: 16px; line-height: 1.72; margin-bottom: 18px; }
.create-teacher-note {
  background: rgba(0,119,92,0.07); border-radius: var(--r-sm);
  padding: 14px 18px; font-size: 13px; font-weight: 600;
  color: var(--pt-green-700); line-height: 1.55; margin-bottom: 16px;
}
.create-perks { display: flex; flex-direction: column; gap: 7px; }
.perk { font-size: 13px; color: var(--pt-muted); font-weight: 600; }
.perk::before { content: '✓ '; color: var(--pt-green-600); }

/* Widget */
.cw-card {
  background: var(--pt-white); border-radius: var(--r-xl);
  border: var(--border-cream); box-shadow: var(--sh-card); padding: 28px;
}
.cw-label { font-family: var(--font-display); font-size: 13px; font-weight: 800; color: var(--pt-muted); margin-bottom: 10px; }
.cw-input {
  width: 100%; border: 1.5px solid rgba(6,40,74,0.12);
  border-radius: var(--r-md); padding: 14px 16px;
  font-family: var(--font-body); font-size: 15px; color: var(--pt-ink); line-height: 1.6;
  resize: none; outline: none; background: var(--pt-cream-50);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cw-input:focus { border-color: var(--pt-green-600); box-shadow: 0 0 0 3px rgba(0,119,92,0.1); background: #fff; }
.cw-btn { width: 100%; justify-content: center; margin-top: 14px; }

.cw-progress { height: 3px; background: #eee; border-radius: 2px; margin-top: 12px; overflow: hidden; opacity: 0; transition: opacity 0.3s; }
.cw-progress.visible { opacity: 1; }
.cw-progress-bar { height: 100%; width: 0; background: var(--pt-green-600); border-radius: 2px; transition: width 0.12s linear; }
.cw-status { font-size: 12px; font-weight: 600; color: var(--pt-green-700); text-align: center; margin-top: 6px; min-height: 18px; }

.create-arrow { text-align: center; font-size: 32px; color: var(--pt-coral-600); opacity: 0.5; padding: 0 8px; }

/* Generated book */
.gen-book-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.gen-book {
  width: 172px; height: 234px;
  background: linear-gradient(160deg, #1A2F50, #0D1F35);
  border-radius: 10px;
  box-shadow: 10px 12px 40px rgba(0,0,0,0.28), -4px -4px 16px rgba(255,255,255,0.04);
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding: 18px; text-align: center;
  position: relative; overflow: hidden;
  transform: rotate(3deg);
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1), background 0.5s;
  cursor: pointer;
}
.gen-book:hover { transform: rotate(0deg) scale(1.05); }
.gen-book-shine { position: absolute; inset: 0; background: linear-gradient(140deg,rgba(255,255,255,0.14) 0%,transparent 52%); pointer-events: none; }
.gen-book-emoji { position: absolute; top: 20px; font-size: 68px; transition: transform 0.35s, opacity 0.35s; }
.gen-book.changing .gen-book-emoji { transform: scale(0.4); opacity: 0; }
.gen-book-title { font-family: var(--font-display); font-weight: 900; font-size: 15px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,0.7); line-height: 1.3; position: relative; z-index: 2; }
.gen-book-link { font-size: 14px; font-weight: 700; color: var(--pt-navy-900); text-decoration: none; border-bottom: 2px solid transparent; transition: all 0.2s; }
.gen-book-link:hover { color: var(--pt-green-700); border-bottom-color: var(--pt-green-700); }

/* ═══ TESTIMONIAL ═══ */
.testi-section { padding: var(--section-y) 24px; }
.testi-panel {
  max-width: var(--container-max); margin: 0 auto;
  background: linear-gradient(135deg,#fff9ec,#fff2d8);
  border-radius: var(--r-xl); border: var(--border-cream); box-shadow: var(--sh-card);
  padding: 64px;
  display: grid; grid-template-columns: 1fr 2.4fr 1fr;
  gap: 48px; align-items: center;
}
.testi-illus { text-align: center; font-size: 88px; }
.testi-content { text-align: center; }
.quote-mark { font-size: 60px; color: var(--pt-coral-600); font-family: Georgia,serif; line-height: 0.6; display: block; margin-bottom: 16px; }
.quote-text { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--pt-navy-900); line-height: 1.46; margin-bottom: 18px; min-height: 80px; transition: opacity 0.25s; }
.quote-attr { font-size: 14px; color: var(--pt-muted); font-style: italic; }
.quote-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.qdot { width: 8px; height: 8px; border-radius: 50%; background: #d8cfc4; border: none; cursor: pointer; padding: 0; transition: all 0.25s; }
.qdot.active { width: 24px; border-radius: 4px; background: var(--pt-coral-600); }
.testi-book { display: flex; justify-content: center; }
.testi-book-cover {
  width: 110px; height: 150px;
  background: linear-gradient(160deg,#2A5580,#1A3A60); border-radius: 7px;
  box-shadow: 6px 8px 28px rgba(0,0,0,0.22);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 12px; text-align: center; position: relative; overflow: hidden;
  transform: rotate(-4deg); transition: transform 0.3s;
}
.testi-book-cover:hover { transform: rotate(0deg) scale(1.05); }
.testi-book-emoji { position: absolute; top: 14px; font-size: 40px; }
.testi-book-title { font-family: var(--font-display); font-weight: 900; font-size: 11px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.5); line-height: 1.3; position: relative; z-index: 2; }

/* ═══ ROUTE CARDS ═══ */
.route-section { padding: 0 24px var(--section-y); }
.route-grid { max-width: var(--container-max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.route-card {
  border-radius: var(--r-xl); padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; box-shadow: var(--sh-card); border: var(--border-cream);
  text-decoration: none; cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden;
}
.route-card:hover { transform: translateY(-5px); box-shadow: 0 24px 60px rgba(6,40,74,0.16); }
.route-families { background: linear-gradient(135deg,#fff5df 0%,#ffe8d8 100%); }
.route-schools  { background: linear-gradient(135deg,#eaf6ff 0%,#e9f8f3 100%); }

.route-content h3 { font-size: 1.9rem; margin-bottom: 14px; line-height: 1.2; }
.route-content p  { font-size: 15px; margin-bottom: 26px; max-width: 240px; }
.route-emoji { font-size: 80px; flex-shrink: 0; opacity: 0.9; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12)); }

/* ═══ CLOSING ═══ */
.closing-section { padding: 0 24px var(--section-y); }
.closing-panel {
  max-width: var(--container-max); margin: 0 auto;
  background: linear-gradient(135deg, var(--pt-green-900) 0%, var(--pt-navy-900) 100%);
  border-radius: var(--r-xl); padding: 80px 64px;
  text-align: center; box-shadow: var(--sh-card);
}
.closing-panel h2 { color: #fff; font-size: clamp(2rem,3.5vw,3rem); margin-bottom: 32px; }
.closing-panel h2 em { color: var(--pt-yellow-500); font-style: normal; }
.closing-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ═══ FOOTER ═══ */
footer {
  background: var(--pt-navy-900);
  color: rgba(255,255,255,0.65);
  padding: 64px 24px 36px;
}
.footer-inner {
  max-width: var(--container-max); margin: 0 auto;
  display: grid; grid-template-columns: 260px 1fr auto;
  gap: 64px; align-items: start;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo img { height: 32px; width: auto; filter: brightness(0) invert(1); }
.footer-logo-text { font-family: var(--font-display); font-weight: 900; font-size: 19px; color: #fff; }
.footer-tagline { font-size: 13px; line-height: 1.65; margin-bottom: 24px; opacity: 0.65; }
.footer-socials { font-size: 22px; margin-bottom: 24px; display: flex; gap: 14px; opacity: 0.55; cursor: default; }
.footer-copy { font-size: 12px; opacity: 0.38; }

.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-family: var(--font-display); font-weight: 900; font-size: 13px; color: #fff; margin-bottom: 4px; letter-spacing: -0.01em; }
.footer-col a { text-decoration: none; font-size: 13px; color: rgba(255,255,255,0.52); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }

.footer-badges { display: flex; flex-direction: column; gap: 10px; }
.fbadge {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.07); border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.1); padding: 10px 14px; min-width: 148px;
}
.fbadge-icon { font-size: 20px; }
.fbadge-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.78); line-height: 1.4; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1060px) {
  .hero-container { grid-template-columns: 1fr; min-height: auto; padding-top: 48px; gap: 40px; }
  .hero-visual { height: 400px; }
  .hero-h1 { font-size: clamp(2.4rem,5vw,3.6rem); }
  .hero-body { max-width: 100%; }
  .hfc-library { display: none; }

  .create-grid { grid-template-columns: 1fr; text-align: center; }
  .create-copy .section-h2 { text-align: center; }
  .create-arrow { display: none; }
  .gen-book-wrap { margin-top: 0; }

  .testi-panel { grid-template-columns: 1fr; }
  .testi-illus, .testi-book { display: none; }

  .route-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 44px; }
  .footer-links { gap: 32px; }
  .footer-badges { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 768px) {
  :root { --section-y: 56px; }
  #nav { padding: 10px 16px; }
  .nav-links, .btn-nav-cta { display: none; }
  .nav-hamburger { display: block; }
  .nav-shell { padding: 8px 8px 8px 14px; }

  .hero-container { padding: 32px 0; }
  .hero-h1 { font-size: 2.4rem; }
  .hero-visual { height: 320px; }
  .hfc-profile, .hfc-progress { display: none; }

  .cred-inner { flex-direction: column; padding: 28px 24px; gap: 20px; }
  .cred-sep { width: 60%; height: 1px; }

  .person-panel { padding: 40px 24px; }
  .reader-tabs { flex-direction: column; align-items: center; }
  .reader-tab { width: 100%; max-width: 320px; }
  .shelf-books { flex-wrap: wrap; gap: 12px; }
  .book-cover { width: 88px; height: 118px; }
  .bc-emoji { font-size: 36px; }

  .create-panel { padding: 40px 24px; }
  .testi-panel, .closing-panel { padding: 40px 28px; }
  .route-card { flex-direction: column; padding: 36px 28px; }
  .route-emoji { font-size: 60px; }

  .footer-links { gap: 28px; }
  .footer-col h4, .footer-col a { font-size: 12px; }
}
