/* ==========================================================
   KUSZA CREATIONS - MAIN STYLESHEET
   Pure CSS3 - Modern, Responsive & Playful Design System
   ========================================================== */

:root {
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-kids: 'Fredoka', cursive, sans-serif;
  
  --bg-main: #fdfbf7;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --color-orange: #f97316;
  --color-orange-dark: #c2410c;
  --color-amber: #f59e0b;
  --color-amber-dark: #b45309;
  --color-amber-bg: #fffbeb;
  --color-sky: #0284c7;
  --color-sky-dark: #0369a1;
  --color-emerald: #059669;
  --color-emerald-dark: #047857;
  --color-purple: #7c3aed;
  
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 20px;
  --border-radius-xl: 28px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1);
  --shadow-playful: 0 4px 0 #b45309;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Announcement Banner */
.top-banner {
  background: linear-gradient(90deg, #ea580c, #f59e0b, #0284c7);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

.banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid #fed7aa;
  padding: 12px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  cursor: pointer;
}

.brand-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #ffffff;
  border: 2px solid #fed7aa;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.2);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-kids);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ea580c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  text-decoration: none;
  font-family: var(--font-kids);
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: #ea580c;
  background-color: #fff7ed;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spelling-nav-downloads {
  display: flex;
  gap: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-kids);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  box-shadow: 0 3px 0 #c2410c;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #c2410c;
}
.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #c2410c;
}

.btn-windows {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 3px 0 #0369a1;
}
.btn-windows:hover {
  background: #0369a1;
  transform: translateY(-1px);
}
.btn-windows:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #0369a1;
}

.btn-android {
  background: #059669;
  color: #ffffff;
  box-shadow: 0 3px 0 #047857;
}
.btn-android:hover {
  background: #047857;
  transform: translateY(-1px);
}
.btn-android:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #047857;
}

.btn-amber {
  background: #f59e0b;
  color: #451a03;
  box-shadow: 0 3px 0 #b45309;
}
.btn-amber:hover {
  background: #d97706;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-bmac {
  background: #FFDD00;
  color: #000000;
  box-shadow: 0 3px 0 #c2a100;
  border: 1px solid #eab308;
  font-family: var(--font-kids);
  font-weight: 700;
}
.btn-bmac:hover {
  background: #ffea38;
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #c2a100;
}
.btn-bmac:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #c2a100;
}

.btn-bmac-nav {
  background: #FFDD00;
  color: #1a1a1a;
  box-shadow: 0 2px 0 #c2a100;
  font-weight: 700;
  border: 1px solid #facc15;
  text-decoration: none;
}
.btn-bmac-nav:hover {
  background: #ffea38;
  color: #000000;
  transform: translateY(-1px);
}

.btn-outline {
  background: #ffffff;
  color: #334155;
  border: 2px solid #e2e8f0;
}
.btn-outline:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.btn-outline-sky {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}
.btn-outline-emerald {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

/* Badges & Tags */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.badge-primary { background: #ffedd5; color: #c2410c; border: 1px solid #fed7aa; }
.badge-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-info { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.badge-purple { background: #f3e8ff; color: #6b21a8; border: 1px solid #e9d5ff; }

.pill-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: var(--font-kids);
  font-size: 0.85rem;
  font-weight: 700;
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

/* View Pages */
.view-page {
  display: none;
}
.view-page.active {
  display: block;
}

/* Hero Section */
.hero-section {
  padding: 60px 0 40px;
  text-align: center;
  background: radial-gradient(circle at 50% 10%, #fff7ed 0%, transparent 60%);
}

.hero-badge {
  margin-bottom: 20px;
}
.hero-badge span {
  display: inline-block;
  padding: 6px 16px;
  background: #ffffff;
  border: 2px solid #fed7aa;
  border-radius: 9999px;
  font-family: var(--font-kids);
  font-size: 0.9rem;
  font-weight: 700;
  color: #ea580c;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.1);
}

.hero-title {
  font-family: var(--font-kids);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.15;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(135deg, #ea580c, #d97706, #0284c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  max-width: 720px;
  margin: 0 auto 36px;
  font-size: 1.15rem;
  color: #475569;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 2px solid #fed7aa;
  padding: 10px 18px;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  text-align: left;
}

.stat-icon {
  font-size: 1.6rem;
}

.stat-pill strong {
  display: block;
  font-family: var(--font-kids);
  font-size: 0.95rem;
  color: #0f172a;
}
.stat-pill span {
  font-size: 0.78rem;
  color: #64748b;
}

/* Spotlight Section */
.spotlight-section {
  padding: 40px 0 60px;
}

.spotlight-header {
  text-align: center;
  margin-bottom: 30px;
}
.spotlight-header h2 {
  font-family: var(--font-kids);
  font-size: 2.2rem;
  color: #0f172a;
  margin: 10px 0 6px;
}
.spotlight-header p {
  color: #64748b;
  font-size: 1.05rem;
}

.spotlight-card {
  background: #ffffff;
  border: 3px solid #fed7aa;
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 12px 30px -8px rgba(234, 88, 12, 0.12);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
}

.spotlight-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.spotlight-logo-box {
  width: 180px;
  height: 180px;
  border-radius: 24px;
  background: #ffffff;
  border: 3px solid #fed7aa;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotlight-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rating-badge {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 800;
}

.version-tag {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}

.spotlight-details h3 {
  font-family: var(--font-kids);
  font-size: 1.8rem;
  color: #0f172a;
  margin-bottom: 14px;
  line-height: 1.3;
}
.spotlight-details p {
  color: #475569;
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.highlights-list {
  list-style: none;
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.highlights-list li {
  position: relative;
  padding-left: 24px;
  color: #334155;
  font-weight: 600;
  font-size: 0.95rem;
}
.highlights-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #ea580c;
  font-weight: 900;
}

.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Catalogue Section */
.catalogue-section {
  padding: 60px 0;
  border-top: 2px dashed #fed7aa;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 40px;
}
.section-title-wrap h2 {
  font-family: var(--font-kids);
  font-size: 2.2rem;
  color: #0f172a;
  margin: 10px 0 8px;
}
.section-title-wrap p {
  color: #64748b;
  max-width: 650px;
  margin: 0 auto;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.app-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
}
.app-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.featured-app-card {
  border-color: #fed7aa;
  background: #fffdfa;
}
.featured-app-card:hover {
  border-color: #f97316;
}

.card-status {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.app-card-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #ffffff;
  border: 2px solid #fed7aa;
  padding: 4px;
  flex-shrink: 0;
}
.app-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--font-kids);
  font-size: 1.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar-cyan { background: linear-gradient(135deg, #06b6d4, #0284c7); }
.avatar-purple { background: linear-gradient(135deg, #a855f7, #6366f1); }

.card-header h3 {
  font-family: var(--font-kids);
  font-size: 1.35rem;
  color: #0f172a;
  line-height: 1.2;
}

.card-tagline {
  font-size: 0.8rem;
  color: #ea580c;
  font-weight: 700;
}

.card-desc {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.card-platforms {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.platform-pill {
  font-size: 0.75rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 4px 10px;
  border-radius: 8px;
}

.card-footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.coming-soon-label {
  font-family: var(--font-kids);
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
}

/* Values Section */
.values-section {
  padding: 60px 0;
  background: #ffffff;
  border-top: 2px solid #fed7aa;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.value-box {
  background: #fdfbf7;
  border: 2px solid #fed7aa;
  border-radius: 20px;
  padding: 26px;
  text-align: center;
}

.value-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.value-box h3 {
  font-family: var(--font-kids);
  font-size: 1.25rem;
  color: #0f172a;
  margin-bottom: 8px;
}

.value-box p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ==================================================== */
/* DONATION & SUPPORT SECTION (BUY ME A COFFEE)         */
/* ==================================================== */

.donate-section {
  padding: 70px 0 80px;
  background: radial-gradient(circle at 50% 0%, #fffbeb 0%, #fdfbf7 70%);
  border-top: 2px solid #fed7aa;
  position: relative;
}

.donate-card {
  background: #ffffff;
  border: 3px solid #f59e0b;
  border-radius: 28px;
  padding: 44px 36px;
  box-shadow: 0 16px 40px -10px rgba(245, 158, 11, 0.18), 0 0 0 6px rgba(254, 243, 199, 0.5);
  position: relative;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.donate-badge-wrap {
  margin-bottom: 14px;
}

.donate-pill {
  background: #fef3c7;
  color: #92400e;
  border: 1.5px solid #fcd34d;
  font-size: 0.88rem;
  padding: 6px 18px;
}

.donate-title {
  font-family: var(--font-kids);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #451a03;
  line-height: 1.2;
  margin-bottom: 12px;
}

.donate-subtitle {
  max-width: 720px;
  margin: 0 auto 34px;
  color: #78350f;
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Perk Cards Grid */
.donate-perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 34px;
  text-align: left;
}

.donate-perk-item {
  background: #fffdf7;
  border: 2px solid #fed7aa;
  border-radius: 20px;
  padding: 22px 20px;
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.donate-perk-item:hover {
  transform: translateY(-3px);
  border-color: #f59e0b;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.12);
}

.donate-perk-item.featured-perk {
  background: #ffffff;
  border: 2.5px solid #f59e0b;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.14);
}

.perk-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  background: #f59e0b;
  color: #ffffff;
  font-family: var(--font-kids);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.perk-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.perk-cost {
  font-family: var(--font-kids);
  font-size: 1.05rem;
  font-weight: 700;
  color: #b45309;
  margin-bottom: 4px;
}

.donate-perk-item h4 {
  font-family: var(--font-kids);
  font-size: 1.15rem;
  color: #0f172a;
  margin-bottom: 8px;
}

.donate-perk-item p {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.5;
  flex-grow: 1;
}

/* Action Box */
.donate-action-box {
  background: #fffbeb;
  border: 2px dashed #fcd34d;
  border-radius: 22px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.donate-action-content {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  max-width: 620px;
}

.bmac-avatar-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #FFDD00;
  border: 2px solid #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.25);
  flex-shrink: 0;
}

.bmac-cup-emoji {
  font-size: 1.8rem;
}

.donate-action-text h3 {
  font-family: var(--font-kids);
  font-size: 1.3rem;
  color: #451a03;
  margin-bottom: 4px;
}

.donate-action-text p {
  color: #78350f;
  font-size: 0.92rem;
  line-height: 1.5;
}

.donate-buttons-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 1.1rem;
  border-radius: 16px;
}

.preset-amounts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.preset-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #92400e;
}

.amount-badge {
  text-decoration: none;
  font-family: var(--font-kids);
  font-size: 0.82rem;
  font-weight: 700;
  color: #78350f;
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  padding: 5px 12px;
  border-radius: 10px;
  transition: all 0.15s ease;
}

.amount-badge:hover {
  background: #FFDD00;
  color: #000000;
  border-color: #d97706;
  transform: translateY(-1px);
}

.donate-trust-strip {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #92400e;
  padding-top: 8px;
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  width: 100%;
}

/* Kids Spelling mini support banner */
.spelling-support-strip {
  padding: 30px 0 40px;
}

.support-mini-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
  border: 2.5px solid #fed7aa;
  border-radius: 22px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.08);
}

.support-mini-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.support-mini-emoji {
  font-size: 2.4rem;
}

.support-mini-left h3 {
  font-family: var(--font-kids);
  font-size: 1.25rem;
  color: #451a03;
  margin-bottom: 4px;
}

.support-mini-left p {
  color: #78350f;
  font-size: 0.92rem;
  max-width: 580px;
}

.footer-bmac-card {
  background: rgba(255, 221, 0, 0.1);
  border: 1.5px solid rgba(255, 221, 0, 0.3);
  padding: 12px 14px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.footer-bmac-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFDD00;
  color: #000000 !important;
  font-family: var(--font-kids);
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.82rem;
  box-shadow: 0 2px 0 #bfa000;
  width: fit-content;
  transition: all 0.15s ease;
}

.footer-bmac-btn:hover {
  background: #ffe833;
  transform: translateY(-1px);
}

/* ==================================================== */
/* KIDS SPELLING VIEW STYLES                            */
/* ==================================================== */

.app-hero-section {
  padding: 40px 0 60px;
  background: linear-gradient(180deg, #fff7ed 0%, #fdfbf7 100%);
  border-bottom: 2px solid #fed7aa;
}

.back-link {
  background: none;
  border: none;
  color: #ea580c;
  font-family: var(--font-kids);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.back-link:hover {
  text-decoration: underline;
}

.app-header-badge {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.app-title-group {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.app-logo-frame {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: #ffffff;
  border: 3px solid #fed7aa;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.15);
  flex-shrink: 0;
}
.app-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-title-group h1 {
  font-family: var(--font-kids);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #0f172a;
  line-height: 1.2;
}

.app-age-tag {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ea580c;
}

.app-hero-desc {
  max-width: 800px;
  font-size: 1.1rem;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 26px;
}

.app-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.app-badges-strip {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
}

/* Features Grid */
.features-section {
  padding: 60px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  position: relative;
  transition: all 0.2s ease;
}
.feature-card:hover {
  border-color: #fed7aa;
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #f1f5f9;
  color: #475569;
  padding: 3px 8px;
  border-radius: 6px;
}

.feature-card h3 {
  font-family: var(--font-kids);
  font-size: 1.25rem;
  color: #0f172a;
  margin-bottom: 8px;
}

.feature-card p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Interactive Phonics & Spelling Demo Section */
.demo-section {
  padding: 60px 0;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border-top: 2px solid #fde68a;
  border-bottom: 2px solid #fde68a;
}

.demo-box {
  max-width: 780px;
  margin: 0 auto;
}

.demo-header {
  text-align: center;
  margin-bottom: 30px;
}
.demo-header h2 {
  font-family: var(--font-kids);
  font-size: 2.2rem;
  color: #451a03;
  margin: 8px 0;
}
.demo-header p {
  color: #78350f;
  font-size: 1rem;
}

.demo-interactive-card {
  background: #ffffff;
  border: 3px solid #f59e0b;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 12px 30px rgba(180, 83, 9, 0.15);
  text-align: center;
}

.puzzle-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px dashed #fef3c7;
}

.puzzle-category span {
  font-family: var(--font-kids);
  font-weight: 700;
  font-size: 0.9rem;
  color: #ea580c;
  background: #ffedd5;
  padding: 4px 12px;
  border-radius: 9999px;
}

.puzzle-score span {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 600;
}
.puzzle-score strong {
  color: #ea580c;
}

.puzzle-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.puzzle-emoji {
  font-size: 4rem;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.puzzle-info {
  text-align: left;
}

.puzzle-info h3 {
  font-family: var(--font-kids);
  font-size: 1.3rem;
  color: #0f172a;
  margin-bottom: 6px;
}

.phonics-guide {
  font-size: 0.95rem;
  color: #475569;
}
.phonics-guide strong {
  color: #0284c7;
  font-family: monospace;
  font-size: 1.05rem;
}

.audio-control-wrap {
  margin-bottom: 24px;
}

.btn-audio {
  background: #f0fdf4;
  color: #15803d;
  border: 2px solid #86efac;
  box-shadow: 0 3px 0 #22c55e;
}
.btn-audio:hover {
  background: #dcfce7;
  transform: translateY(-1px);
}

.word-slots-container {
  margin-bottom: 24px;
}

.word-slots {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.slot {
  width: 52px;
  height: 58px;
  border-radius: 14px;
  border: 3px dashed #cbd5e1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-kids);
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f172a;
  transition: all 0.2s ease;
}

.slot.filled {
  border-style: solid;
  border-color: #f97316;
  background: #fff7ed;
  color: #ea580c;
  box-shadow: 0 3px 0 #ea580c;
  cursor: pointer;
}

.slot.correct {
  border-color: #22c55e;
  background: #f0fdf4;
  color: #15803d;
  box-shadow: 0 3px 0 #16a34a;
}

.letter-bank-wrap {
  margin-bottom: 24px;
}

.letter-bank-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 12px;
}

.letter-bank {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.letter-tile {
  width: 48px;
  height: 52px;
  border-radius: 12px;
  background: #ffffff;
  border: 2px solid #fed7aa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-kids);
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  box-shadow: 0 3px 0 #f97316;
  transition: all 0.15s ease;
}
.letter-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #ea580c;
  background: #fff7ed;
}
.letter-tile:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #ea580c;
}
.letter-tile.used {
  opacity: 0.3;
  pointer-events: none;
  box-shadow: none;
  border-color: #cbd5e1;
}

.demo-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.success-banner {
  margin-top: 20px;
  padding: 12px;
  background: #dcfce7;
  color: #15803d;
  border: 2px solid #86efac;
  border-radius: 14px;
  font-family: var(--font-kids);
  font-size: 1.15rem;
  font-weight: 700;
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Curriculum Section */
.curriculum-section {
  padding: 60px 0;
}

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.curriculum-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.level-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.pill-amber { background: #fef3c7; color: #92400e; }
.pill-emerald { background: #dcfce7; color: #166534; }
.pill-purple { background: #f3e8ff; color: #6b21a8; }

.curriculum-card h3 {
  font-family: var(--font-kids);
  font-size: 1.35rem;
  color: #0f172a;
  margin-bottom: 8px;
}

.curriculum-card p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.curriculum-meta {
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}
.curriculum-meta strong {
  display: block;
  font-size: 0.85rem;
  color: #0f172a;
  margin-bottom: 8px;
}

.sample-words {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.sample-words span {
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 3px 8px;
  border-radius: 6px;
  color: #334155;
}

/* FAQ Section */
.faq-section {
  padding: 60px 0;
  background: #ffffff;
  border-top: 2px solid #fed7aa;
}

.faq-container {
  max-width: 800px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 22px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.faq-item:hover {
  border-color: #fed7aa;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question h4 {
  font-family: var(--font-kids);
  font-size: 1.1rem;
  color: #0f172a;
}

.faq-toggle {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ea580c;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding-top: 12px;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Download Cards Grid */
.downloads-section {
  padding: 60px 0;
  border-top: 2px solid #fed7aa;
}

.download-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: 850px;
  margin: 0 auto;
}

.download-card {
  background: #ffffff;
  border: 3px solid #fed7aa;
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.dl-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.download-card h3 {
  font-family: var(--font-kids);
  font-size: 1.5rem;
  color: #0f172a;
  margin-bottom: 6px;
}

.download-card p {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.dl-meta {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: #475569;
}

/* Modal Overlay & Box */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background: #ffffff;
  border-radius: 24px;
  max-width: 580px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  overflow: hidden;
  animation: modalPop 0.25s ease;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 20px 24px;
  background: #fff7ed;
  border-bottom: 2px solid #fed7aa;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-app-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  border: 2px solid #fed7aa;
  padding: 3px;
}
.modal-app-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-header h3 {
  font-family: var(--font-kids);
  font-size: 1.25rem;
  color: #0f172a;
}
.modal-sub {
  font-size: 0.8rem;
  color: #64748b;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
}
.modal-close:hover {
  color: #0f172a;
}

.modal-body {
  padding: 24px;
}

.file-summary-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.summary-row span {
  color: #64748b;
}
.summary-row strong {
  color: #0f172a;
}
.summary-row code {
  font-family: monospace;
  font-size: 0.72rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 2px 6px;
  border-radius: 6px;
  word-break: break-all;
  max-width: 320px;
  text-align: right;
}

.instructions-wrap h4 {
  font-family: var(--font-kids);
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 10px;
}

.steps-list {
  padding-left: 20px;
  font-size: 0.9rem;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-footer {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Site Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 0;
  border-top: 4px solid #f97316;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 40px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffffff;
  padding: 2px;
}
.footer-logo span {
  font-family: var(--font-kids);
  font-size: 1.4rem;
  color: #ffffff;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: none;
}

.footer-safety-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 12px;
  border-radius: 9999px;
  width: fit-content;
}

.footer-links-col h4 {
  font-family: var(--font-kids);
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer-links-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 20px 0;
  font-size: 0.8rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Responsive Styles */
@media (max-width: 860px) {
  .spotlight-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .spotlight-media {
    margin-bottom: 10px;
  }
  .highlights-list {
    text-align: left;
    max-width: 450px;
    margin: 0 auto 24px;
  }
  .spotlight-actions {
    justify-content: center;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
  .donate-card {
    padding: 30px 20px;
  }
  .donate-perks-grid {
    grid-template-columns: 1fr;
  }
  .donate-action-content {
    flex-direction: column;
    text-align: center;
  }
  .support-mini-card {
    flex-direction: column;
    text-align: center;
  }
  .support-mini-left {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 680px) {
  .nav-container {
    flex-wrap: wrap;
    gap: 10px;
  }
  .nav-menu {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 8px;
    border-top: 1px solid #fed7aa;
  }
  .app-title-group {
    flex-direction: column;
    text-align: center;
  }
  .app-hero-desc {
    text-align: center;
  }
  .app-hero-ctas {
    justify-content: center;
  }
  .app-badges-strip {
    justify-content: center;
  }
}
