:root {
      --blue: #3b82f6;
      --blue-dark: #1d4ed8;
      --blue-soft: #dbeafe;
      --blue-bg: #f0f7ff;
      --green: #22c55e;
      --green-dark: #16a34a;
      --green-soft: #dcfce7;
      --yellow: #eab308;
      --yellow-soft: #fef9c3;
      --coral: #f97316;
      --coral-soft: #ffedd5;
      --text: #1e293b;
      --text-muted: #475569;   /* was #64748b: failed AA contrast on small text */
      --cta: #15803d;          /* white text = 5:1 (green #22c55e was ~2.3:1) */
      --cta-dark: #166534;
      --white: #ffffff;
      --border: #e2e8f0;
      --shadow: 0 8px 30px rgba(59, 130, 246, 0.08);
      --shadow-lg: 0 16px 50px rgba(59, 130, 246, 0.12);
      --radius: 16px;
      --radius-lg: 24px;
      --max: 1140px;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; scroll-padding-top: 84px; }
    body {
      font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
      background: var(--blue-bg);
      color: var(--text);
      line-height: 1.55;
      -webkit-font-smoothing: antialiased;
    }
    img { max-width: 100%; display: block; }
    a { text-decoration: none; color: inherit; }
    .container { width: min(100% - 32px, var(--max)); margin: 0 auto; }

    /* ========== HEADER ========== */
    .site-header {
      position: sticky; top: 0; z-index: 100;
      background: rgba(255,255,255,0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      height: 72px;
    }
    .header-inner {
      display: flex; align-items: center; justify-content: space-between;
      height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px;
    }
    .logo {
      display: flex; align-items: center; gap: 8px;
      font-size: 1.3rem; font-weight: 800; color: var(--blue-dark);
      line-height: 0;
    }
    .logo-img {
      height: 44px;
      width: auto;
      max-width: 168px;
      object-fit: contain;
      display: block;
    }
    .logo-img-footer {
      height: 48px;
      max-width: 180px;
      /* footer is dark — slight brightness so logo stays lively */
      filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
    }
    @media (max-width: 480px) {
      .logo-img { height: 36px; max-width: 132px; }
    }
    .logo-icon {
      width: 34px; height: 34px; border-radius: 10px;
      background: linear-gradient(135deg, var(--blue), #60a5fa);
      display: grid; place-items: center; color: white; font-size: 1rem;
    }
    .nav-desktop { display: none; }
    .nav-desktop a {
      margin-left: 22px; font-weight: 600; font-size: 0.95rem; color: var(--text);
      transition: color 0.2s;
    }
    .nav-desktop a:hover { color: var(--blue); }
    .header-cta {
      display: none; background: var(--cta); color: white !important;
      padding: 9px 20px; border-radius: 999px; font-weight: 700; font-size: 0.9rem;
      margin-left: 22px; transition: 0.2s;
    }
    .header-cta:hover { background: var(--cta-dark); transform: translateY(-1px); }
    .menu-toggle {
      background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text);
      min-width: 44px; min-height: 44px;
    }
    .nav-mobile {
      display: none; position: absolute; top: 68px; left: 0; right: 0;
      background: white; border-bottom: 1px solid var(--border);
      padding: 12px 16px 20px; flex-direction: column; gap: 4px;
      box-shadow: var(--shadow);
    }
    .nav-mobile.open { display: flex; }
    .nav-mobile a {
      font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text);
    }
    .nav-mobile .mobile-cta {
      background: var(--cta); color: white !important; text-align: center;
      padding: 13px; border-radius: 999px; margin-top: 10px;
    }

    /* ========== HERO ========== */
    .hero {
      background: linear-gradient(180deg, #e8f4fc 0%, #f0f7ff 100%);
      padding: 40px 0 20px;
      overflow: hidden;
      position: relative;
    }
    .hero-inner {
      max-width: var(--max);
      margin: 0 auto;
      padding: 0 16px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
      align-items: center;
    }
    .hero-content { max-width: 520px; }
    .hero-label {
      display: inline-block;
      font-size: 0.8rem; font-weight: 700;
      padding: 6px 14px; border-radius: 999px;
      background: white;
      color: var(--blue-dark);
      box-shadow: 0 4px 14px rgba(59,130,246,0.1);
      margin-bottom: 16px;
    }
    .hero h1 {
      font-size: clamp(1.8rem, 3.8vw, 2.7rem);
      line-height: 1.15; font-weight: 800;
      color: var(--text); margin-bottom: 14px;
    }
    .hero h1 span { color: var(--blue); }
    .hero p {
      font-size: 1.02rem; color: var(--text-muted);
      margin-bottom: 24px; max-width: 440px; line-height: 1.55;
    }
    .hero-btns {
      display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px;
    }
    .btn {
      display: inline-flex; align-items: center; justify-content: center;
      padding: 13px 24px; border-radius: 999px;
      font-weight: 700; font-size: 0.95rem;
      border: none; cursor: pointer; transition: all 0.25s ease;
    }
    .btn-primary {
      background: var(--cta); color: white;
      box-shadow: 0 4px 16px rgba(21,128,61,0.3);
    }
    .btn-primary:hover {
      background: var(--cta-dark);
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(34,197,94,0.35);
    }
    .btn-secondary {
      background: white; color: var(--blue-dark);
      border: 2px solid var(--blue);
    }
    .btn-secondary:hover {
      background: var(--blue-soft);
      transform: translateY(-2px);
    }
    .hero-note { font-size: 0.82rem; color: var(--text-muted); }

    .hero-visual {
      position: relative;
      display: flex; justify-content: center; align-items: center;
    }
    .hero-img-wrap {
      position: relative;
      width: 100%;
      max-width: 480px;
      border-radius: 28px;
      overflow: hidden;
      box-shadow: var(--shadow-lg);
      transition: transform 0.4s ease;
    }
    .hero-img-wrap:hover { transform: scale(1.02); }
    .hero-img-wrap img {
      width: 100%;
      height: auto;
      display: block;
    }
    .float-badge {
      position: absolute;
      background: white;
      border-radius: 14px;
      padding: 10px 14px;
      font-size: 0.82rem;
      font-weight: 700;
      box-shadow: 0 8px 24px rgba(0,0,0,0.1);
      display: flex; align-items: center; gap: 6px;
      animation: float 4s ease-in-out infinite;
    }
    .badge-1 { top: 20px; right: -10px; animation-delay: 0s; }
    .badge-2 { bottom: 40px; left: -15px; animation-delay: 1.2s; }
    .badge-3 { bottom: 10px; right: 10px; animation-delay: 2s; }

    @keyframes float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-8px); }
    }

    /* ========== BENEFITS ========== */
    .benefits { padding: 20px 0 40px; }
    .benefit-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 0;
      background: white;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow);
      overflow: hidden;
    }
    .benefit {
      padding: 16px 14px;
      display: flex;
      align-items: center;
      gap: 12px;
      border-right: 1px solid var(--border);
      transition: all 0.25s ease;
      cursor: default;
    }
    .benefit:last-child { border-right: none; }
    .benefit:hover {
      background: var(--blue-bg);
    }
    .benefit .icon {
      width: 42px; height: 42px; border-radius: 12px;
      display: grid; place-items: center; font-size: 1.25rem;
      flex-shrink: 0;
      transition: transform 0.3s;
    }
    .benefit:hover .icon { transform: scale(1.12); }
    .benefit:nth-child(1) .icon { background: var(--blue-soft); }
    .benefit:nth-child(2) .icon { background: var(--green-soft); }
    .benefit:nth-child(3) .icon { background: var(--yellow-soft); }
    .benefit:nth-child(4) .icon { background: var(--coral-soft); }
    .benefit h3 { font-size: 0.88rem; margin-bottom: 2px; }
    .benefit p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.3; }

    /* ========== SECTIONS ========== */
    .section { padding: 40px 0; }
    .section-white { background: white; }
    .section-title {
      font-size: 1.55rem; font-weight: 800; text-align: center; margin-bottom: 6px;
    }
    .section-sub {
      text-align: center; color: var(--text-muted); margin-bottom: 24px;
      max-width: 520px; margin-left: auto; margin-right: auto; font-size: 0.95rem;
    }

    /* Steps */
    .steps {
      display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    }
    .step {
      background: white;
      border-radius: var(--radius-lg);
      padding: 18px 16px;
      text-align: center;
      box-shadow: var(--shadow);
      border: 1px solid var(--border);
      transition: all 0.3s ease;
      position: relative;
    }
    .step:hover {
      transform: translateY(-6px);
      box-shadow: var(--shadow-lg);
      border-color: var(--blue-soft);
    }
    .step-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }
    .step-num {
      width: 32px; height: 32px; border-radius: 50%;
      background: linear-gradient(135deg, var(--blue), #60a5fa);
      color: white; display: grid; place-items: center;
      font-weight: 800; font-size: 0.9rem;
      flex-shrink: 0;
    }
    .step-icon {
      width: 72px; height: 72px;
      display: grid; place-items: center;
    }
    .step-icon svg { width: 68px; height: 72px; }
    .step h3 { font-size: 0.98rem; margin-bottom: 5px; text-align: left; }
    .step p { font-size: 0.82rem; color: var(--text-muted); text-align: left; }

    /* Activity cards */
    .activity-grid {
      display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    }
    .activity-card {
      background: white;
      border-radius: 18px;
      padding: 10px;
      box-shadow: var(--shadow);
      border: 1px solid #e0f2fe;
      text-align: center;
      transition: all 0.3s ease;
      cursor: pointer;
    }
    .activity-card:hover {
      transform: translateY(-6px);
      box-shadow: var(--shadow-lg);
    }
    .activity-visual {
      height: 180px; border-radius: 14px; margin-bottom: 10px;
      display: grid; place-items: center;
      background: linear-gradient(160deg, #e0f2fe, #f0f9ff);
      border: 2px solid #bfdbfe;
      position: relative;
      overflow: hidden;
      transition: transform 0.3s;
    }
    .activity-card:hover .activity-visual { transform: scale(1.03); }
    .activity-visual svg { width: 130px; height: 120px; }
    .activity-card h3 { font-size: 0.95rem; margin-bottom: 3px; color: #1e40af; }
    .activity-card p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.35; padding: 0 4px 6px; }

    /* Ages */
    
    .age-img {
      width: 90px;
      height: 90px;
      object-fit: contain;
      margin: 0 auto 12px;
      display: block;
      border-radius: 50%;
      background: #f0f7ff;
      padding: 4px;
      transition: transform 0.3s;
    }
    .age-card:hover .age-img {
      transform: scale(1.08);
    }

    .age-grid {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: 10px;
    }
    .age-grid .age-img {
      width: 72px;
      height: 72px;
      object-fit: cover;
      border-radius: 50%;
      margin: 0 auto 8px;
      display: block;
    }
    .age-grid .age-card {
      padding: 14px 6px;
    }
    .age-grid .age-card h3 { font-size: 0.82rem; line-height: 1.25; }
    .age-grid .age-card p { font-size: 0.72rem; line-height: 1.3; }
    @media (max-width: 1100px) {
      .age-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
      .age-grid .age-img { width: 80px; height: 80px; }
    }
    @media (max-width: 700px) {
      .age-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 420px) {
      .age-grid { grid-template-columns: 1fr; }
    }
    .age-card {
      background: white;
      border-radius: var(--radius);
      padding: 20px 14px;
      text-align: center;
      box-shadow: var(--shadow);
      border: 2px solid transparent;
      transition: all 0.25s ease;
      cursor: pointer;
    }
    .age-card:hover {
      border-color: var(--blue);
      transform: translateY(-4px);
      box-shadow: var(--shadow-lg);
    }
    .age-icon { font-size: 2.4rem; margin-bottom: 10px; line-height: 1; }
    .age-card {
      padding: 24px 14px;
    }
    .age-card h3 { font-size: 0.95rem; }
    .age-card p { font-size: 0.8rem; color: var(--text-muted); margin-top: 3px; }

    /* Celebration */
    .celeb-grid {
      display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
    }
    .celeb-item {
      background: white;
      border-radius: var(--radius);
      padding: 22px 14px;
      text-align: center;
      box-shadow: var(--shadow);
      transition: all 0.25s ease;
    }
    .celeb-item:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-lg);
    }
    .celeb-item .icon {
      width: 48px; height: 48px; border-radius: 14px;
      display: grid; place-items: center; font-size: 1.4rem;
      margin: 0 auto 10px;
      transition: transform 0.3s;
    }
    .celeb-item:hover .icon { transform: scale(1.15) rotate(5deg); }
    .celeb-item:nth-child(1) .icon { background: var(--blue-soft); }
    .celeb-item:nth-child(2) .icon { background: var(--coral-soft); }
    .celeb-item:nth-child(3) .icon { background: var(--yellow-soft); }
    .celeb-item:nth-child(4) .icon { background: var(--green-soft); }
    .celeb-item h3 { font-size: 0.95rem; }
    .celeb-item p { font-size: 0.8rem; color: var(--text-muted); }

    /* Schools */
    .schools-block {
      background: linear-gradient(135deg, #dbeafe, #e0f2fe);
      border-radius: var(--radius-lg);
      padding: 40px 28px;
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 30px;
      align-items: center;
    }
    .schools-block h2 { font-size: 1.5rem; margin-bottom: 10px; }
    .schools-block p { color: var(--text-muted); margin-bottom: 18px; font-size: 0.98rem; }
    .schools-visual {
      display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    }
    .school-mini {
      background: white;
      border-radius: 14px;
      padding: 18px 12px;
      text-align: center;
      font-size: 0.85rem;
      font-weight: 600;
      box-shadow: var(--shadow);
      transition: transform 0.25s;
    }
    .school-mini:hover { transform: translateY(-3px); }
    .school-mini div { font-size: 1.6rem; margin-bottom: 6px; }

    /* Final CTA */
    .final-cta {
      padding: 0 0 40px;
      background: var(--blue-bg);
    }
    .final-banner {
      max-width: var(--max);
      margin: 0 auto;
      background: linear-gradient(90deg, #dbeafe, #e0f2fe, #dbeafe);
      border-radius: 24px;
      padding: 36px 40px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      position: relative;
      overflow: hidden;
      box-shadow: var(--shadow);
    }
    
    .cta-avatar {
      width: 130px;
      height: 130px;
      border-radius: 50%;
      overflow: hidden;
      background: linear-gradient(135deg, #dbeafe, #e0f2fe);
      display: grid;
      place-items: center;
      box-shadow: 0 8px 24px rgba(59,130,246,0.15);
      border: 4px solid white;
    }
    .cta-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .final-banner-left {
      font-size: 3.5rem;
      flex-shrink: 0;
    }
    .final-banner-center {
      text-align: center;
      flex: 1;
    }
    .final-banner-center h2 {
      font-size: 1.45rem;
      font-weight: 800;
      color: #1e40af;
      margin-bottom: 6px;
    }
    .final-banner-center p {
      color: var(--text-muted);
      font-size: 0.92rem;
      margin-bottom: 16px;
    }
    .final-banner-right {
      font-size: 3.5rem;
      flex-shrink: 0;
    }
    .final-banner .note {
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-top: 10px;
    }
    @media (max-width: 700px) {
      .final-banner {
        flex-direction: column;
        text-align: center;
        padding: 28px 20px;
      }
      .final-banner-left, .final-banner-right { font-size: 2.5rem; }
    }

    /* Footer */
    .site-footer {
      background: #0f172a; color: #94a3b8; padding: 48px 0 24px;
    }
    .footer-grid {
      display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 30px; max-width: var(--max); margin: 0 auto; padding: 0 16px;
    }
    .footer-brand .logo { color: white; margin-bottom: 10px; }
    .footer-brand p { font-size: 0.9rem; max-width: 280px; }
    .footer-links .footer-heading { color: white; font-size: 0.95rem; margin-bottom: 12px; }
    .footer-links a {
      display: block; color: #94a3b8; font-size: 0.9rem; margin-bottom: 8px;
      transition: color 0.2s;
    }
    .footer-links a:hover { color: white; }
    .footer-bottom {
      max-width: var(--max); margin: 32px auto 0; padding: 16px 16px 0;
      border-top: 1px solid #1e293b; font-size: 0.85rem; text-align: center; color: #94a3b8;
    }

    /* Animations on scroll */
    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* Responsive */
    @media (max-width: 900px) {
      .nav-desktop, .header-cta { display: none; }
      .menu-toggle { display: block; }
      .hero-inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
      .hero-content { max-width: 100%; }
      .hero p { margin-left: auto; margin-right: auto; }
      .hero-btns { justify-content: center; }
      .hero-visual { order: -1; }
      .benefit-grid { grid-template-columns: 1fr 1fr; }
      .benefit { border-right: none; border-bottom: 1px solid var(--border); }
      .steps, .activity-grid, .celeb-grid { grid-template-columns: 1fr 1fr; }
      .schools-block { grid-template-columns: 1fr; text-align: center; }
      .footer-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (min-width: 768px) {
      .nav-desktop { display: flex; align-items: center; }
      .header-cta { display: inline-flex; }
      .menu-toggle { display: none; }
      .nav-mobile { display: none !important; }
    }
    @media (max-width: 600px) {
      .benefit-grid, .steps, .activity-grid, .celeb-grid { grid-template-columns: 1fr; }
      .footer-grid { grid-template-columns: 1fr; }
    }

/* ========== SHARED PAGE STYLES ========== */

.page-hero {
  background: linear-gradient(180deg, #e8f4fc, #f0f7ff);
  padding: 48px 0 36px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.page-hero h1 span { color: var(--blue); }
.page-hero p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 20px;
}

/* Auth / Login */
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  min-height: calc(100vh - 68px);
}
.auth-card {
  background: white;
  border-radius: 24px;
  padding: 36px 32px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}
.auth-card h1 {
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
}
.auth-card .sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: var(--blue-bg);
  padding: 4px;
  border-radius: 12px;
}
.tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
}
.tab.active {
  background: white;
  color: var(--blue-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.btn-block {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  background: var(--cta);
  color: white;
  transition: 0.2s;
}
.btn-block:hover { background: var(--cta-dark); }
.panel { display: none; }
.panel.active { display: block; }
.auth-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
}
.auth-back {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--blue);
  font-weight: 600;
}

/* Schools page extras */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-card .icon { font-size: 2rem; margin-bottom: 10px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); }
.packages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}
.package {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
}
.package.featured { border-color: var(--blue); }
.package h3 { font-size: 1.2rem; margin-bottom: 6px; }
.package .price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 10px 0 16px;
}
.package ul { list-style: none; margin-bottom: 20px; }
.package li {
  font-size: 0.9rem;
  padding: 6px 0;
  color: var(--text-muted);
}
.package li::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 700;
}
.cta-box {
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  margin-top: 20px;
}
.cta-box h2 { margin-bottom: 10px; }
.cta-box p { color: var(--text-muted); margin-bottom: 18px; }

/* Simple content pages */
.content-card {
  background: white;
  border-radius: 24px;
  padding: 36px 28px;
  margin: 24px auto 48px;
  max-width: 720px;
  box-shadow: var(--shadow);
}
.content-card h2 { font-size: 1.25rem; margin: 24px 0 10px; }
.content-card p { color: var(--text-muted); margin-bottom: 12px; }
.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.legal-wrap h1 { font-size: 1.8rem; margin-bottom: 8px; }
.legal-wrap .meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px; }
.legal-wrap h2 { font-size: 1.15rem; margin: 24px 0 8px; }
.legal-wrap p, .legal-wrap li { color: var(--text-muted); margin-bottom: 10px; }
.legal-wrap ul { margin-left: 20px; margin-bottom: 12px; }
.legal-wrap .back { display: inline-block; margin-bottom: 20px; font-weight: 600; color: var(--blue); }

@media (max-width: 700px) {
  .features, .packages { grid-template-columns: 1fr; }
}

/* Auth extras */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: white;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  transition: 0.2s;
  margin-bottom: 4px;
}
.btn-google:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.alert {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-bottom: 14px;
  text-align: left;
}
.alert-success {
  background: #dcfce7;
  color: #166534;
}
.alert-error {
  background: #fee2e2;
  color: #991b1b;
}
.btn-block:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* ========== Info / SEO pages ========== */
.page-hero.tall {
  padding: 72px 0 56px;
  background: linear-gradient(165deg, #eff6ff 0%, #f8fafc 55%, #fef9c3 100%);
}
.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 14px;
}
.page-hero .breadcrumb a { color: #2563eb; font-weight: 600; }
.seo-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto 64px;
  padding: 0 20px;
}
@media (max-width: 900px) {
  .seo-layout { grid-template-columns: 1fr; }
}
.seo-article {
  background: #fff;
  border-radius: 24px;
  padding: 36px 36px 48px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.08);
  font-size: 1.05rem;
  line-height: 1.75;
  color: #334155;
}
.seo-article h2 {
  font-size: 1.4rem;
  color: #0f172a;
  margin: 1.8em 0 0.55em;
  line-height: 1.3;
}
.seo-article h2:first-child { margin-top: 0; }
.seo-article h3 {
  font-size: 1.15rem;
  color: #1e293b;
  margin: 1.4em 0 0.45em;
}
.seo-article p { margin: 0 0 1em; }
.seo-article ul, .seo-article ol {
  margin: 0 0 1.15em;
  padding-left: 1.35em;
}
.seo-article li { margin-bottom: 0.4em; }
.seo-article li::marker { color: #3b82f6; }
.seo-article a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.seo-article strong { color: #0f172a; }
.seo-article blockquote {
  margin: 1.4em 0;
  padding: 14px 18px;
  border-left: 4px solid #3b82f6;
  background: #f0f7ff;
  border-radius: 0 14px 14px 0;
  color: #475569;
  font-style: italic;
}
.seo-callout {
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 18px 20px;
  margin: 1.5em 0;
}
.seo-callout strong { display: block; margin-bottom: 6px; color: #1e40af; }
.seo-sidebar {
  position: sticky;
  top: 88px;
}
.seo-side-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
}
.seo-side-card h3 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: #0f172a;
}
.seo-side-card a {
  display: block;
  padding: 8px 0;
  color: #2563eb;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
}
.seo-side-card a:last-child { border-bottom: none; }
.seo-side-card a:hover { color: #1d4ed8; }
.seo-cta-box {
  background: #1e40af;
  color: #fff;
  border-radius: 18px;
  padding: 22px;
  text-align: center;
}
.seo-cta-box p { font-size: 0.9rem; opacity: 0.9; margin-bottom: 12px; }
.seo-cta-box .btn {
  background: #fff;
  color: #1e40af;
  font-weight: 800;
}
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list a { border: none !important; padding: 6px 0 !important; }
.keyword-chip {
  display: inline-block;
  background: #eff6ff;
  color: #1e40af;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin: 0 6px 8px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto 56px;
  padding: 0 20px;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-form-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.08);
}
.contact-form-card label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 4px;
}
.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  font-family: inherit;
}
.contact-form-card textarea { min-height: 140px; resize: vertical; }


/* Auth pages logo */
.auth-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.auth-logo {
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}


/* ========== SEO / UX / ACCESSIBILITY ADDITIONS ========== */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--blue-dark); color: #fff; padding: 10px 16px;
  border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 8px; }

a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue-dark); outline-offset: 3px; border-radius: 6px;
}

/* Inline text links inside content/footers need a non-colour cue */
.age-card h3 a { text-decoration: underline; text-underline-offset: 3px; }

/* FAQ */
.faq-item {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 18px; margin-bottom: 12px; background: #fff;
}
.faq-item summary { cursor: pointer; font-weight: 700; }
.faq-item p { margin: 10px 0 0; color: var(--text-muted); }

/* Lists used for layout */
.benefit-grid, .schools-visual { list-style: none; margin: 0; padding: 0; }

/* Respect reduced-motion preferences (also helps INP on low-end devices) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-badge { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
.footer-links .footer-heading { color: white; font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; }

/* ========== INNER PAGES (ages hub + age pages) ========== */
.crumbs { padding: 14px 0 0; font-size: 0.85rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--text-muted); }
.crumbs a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.page-hero { padding: 28px 0 40px; }
.page-hero-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.15; margin: 10px 0 14px; }
.page-hero .lead { font-size: 1.08rem; color: var(--text-muted); margin-bottom: 22px; max-width: 60ch; }
.page-hero .fine { font-size: 0.82rem; color: var(--text-muted); margin-top: 12px; }
.page-hero-img img { width: 100%; max-width: 380px; height: auto; margin: 0 auto; border-radius: var(--radius-lg); }
.prose { max-width: 820px; }
.prose p { margin-bottom: 14px; color: var(--text-muted); }
.prose .section-title, .prose .section-sub { text-align: left; }
.card-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 24px; }
.info-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.section-white .info-card { background: var(--blue-bg); }
.info-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.info-card p { font-size: 0.95rem; color: var(--text-muted); }
.tip-list { margin: 18px 0 0 20px; display: grid; gap: 10px; color: var(--text-muted); }
.tip-list li { padding-left: 4px; }
.note-small { font-size: 0.85rem; color: var(--text-muted); margin-top: 18px; }
.center-cta { text-align: center; margin-top: 26px; }
.text-link { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.age-switch { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }
.page-hero .age-card, a.age-card { display: block; }
@media (max-width: 800px) {
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-img { order: -1; }
  .page-hero-img img { max-width: 260px; }
}
