/* ===========================
   MUSLIM KIDZ – STYLE.CSS
   Soft Green / Beige Palette
   Mobile-first responsive
=========================== */

/* ── VARIABLES ── */
:root {
  --green-deep:    #2d6a4f;
  --green-mid:     #52a878;
  --green-light:   #95d5b2;
  --green-pale:    #d8f3dc;
  --green-ultra:   #f0faf2;
  --beige:         #f5f0e8;
  --beige-mid:     #ede5d4;
  --beige-dark:    #c9b99a;
  --gold:          #f6c90e;
  --gold-dark:     #d4a700;
  --text-dark:     #1e3a2f;
  --text-mid:      #3d5a4a;
  --text-light:    #6b8c7a;
  --white:         #ffffff;
  --shadow-sm:     0 2px 12px rgba(45,106,79,.08);
  --shadow-md:     0 6px 28px rgba(45,106,79,.12);
  --shadow-lg:     0 16px 48px rgba(45,106,79,.16);
  --radius-sm:     10px;
  --radius-md:     18px;
  --radius-lg:     28px;
  --radius-xl:     40px;
  --font-body:     'Nunito', sans-serif;
  --font-display:  'Amiri', serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--beige);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input { font-family: inherit; }

/* ── BG ORBS ── */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}
.bg-orb-1 { width: 480px; height: 480px; background: var(--green-light); top: -120px; left: -120px; }
.bg-orb-2 { width: 360px; height: 360px; background: var(--gold); top: 40%; right: -100px; opacity: 0.18; }
.bg-orb-3 { width: 320px; height: 320px; background: var(--green-mid); bottom: -80px; left: 40%; opacity: 0.25; }

/* ── TOP BANNER ── */
.top-banner {
  position: relative;
  z-index: 10;
  background: linear-gradient(90deg, var(--green-deep), #1b4332, var(--green-deep));
  color: var(--white);
  text-align: center;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.banner-star { color: var(--gold); font-size: 0.7rem; }

/* ── PAGE WRAPPER ── */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 44px 0 36px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 20px;
  border-radius: 100px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(45,106,79,.25);
}
.badge-moon { color: var(--gold); font-size: 1rem; }

.hero-illustration {
  margin: 0 auto 28px;
  max-width: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  animation: floatUp 0.8s cubic-bezier(.22,1,.36,1) both;
}
.scene-svg { width: 100%; height: auto; display: block; }

@keyframes floatUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 6vw, 3rem);
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.22;
  margin-bottom: 14px;
  animation: fadeSlideUp 0.7s 0.15s cubic-bezier(.22,1,.36,1) both;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2.8vw, 1.15rem);
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 24px;
  animation: fadeSlideUp 0.7s 0.25s cubic-bezier(.22,1,.36,1) both;
}
.hide-mobile { display: none; }
@media (min-width: 520px) { .hide-mobile { display: inline; } }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Counter Pill */
.counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 2px solid var(--green-light);
  border-radius: 100px;
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--green-deep);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  animation: fadeSlideUp 0.7s 0.35s cubic-bezier(.22,1,.36,1) both;
}
.counter-icon { font-size: 1.1rem; }

/* Trust Row */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-mid);
  animation: fadeSlideUp 0.7s 0.45s cubic-bezier(.22,1,.36,1) both;
}
.trust-sep { color: var(--beige-dark); }

/* ── INSIDE SECTION ── */
.inside-section {
  padding: 44px 0 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  font-weight: 700;
  color: var(--green-deep);
  text-align: center;
  margin-bottom: 28px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (min-width: 600px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--green-pale);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}
.feature-card h3 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--green-deep);
  margin-bottom: 6px;
}
.feature-card p {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ── FORM SECTION ── */
.form-section {
  padding: 44px 0;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--green-pale);
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--green-deep), var(--green-mid), var(--gold));
}

.form-header { text-align: center; margin-bottom: 28px; }
.form-badge {
  display: inline-block;
  background: var(--green-ultra);
  color: var(--green-deep);
  border: 1.5px solid var(--green-light);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.form-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  color: var(--green-deep);
  margin-bottom: 8px;
}
.form-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* Form fields */
.field-group {
  margin-bottom: 18px;
}
.field-group label {
  display: block;
  font-size: 0.87rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 7px;
}
.required { color: #e05252; }
.optional { font-weight: 600; color: var(--text-light); font-size: 0.8rem; }

.field-group input {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--beige-mid);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--beige);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.field-group input:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(82,168,120,.15);
  background: var(--white);
}
.field-group input::placeholder { color: var(--beige-dark); }
.field-group input.invalid { border-color: #e05252; }

.phone-input-wrapper {
  display: flex;
  align-items: center;
  border: 2px solid var(--beige-mid);
  border-radius: var(--radius-sm);
  background: var(--beige);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.phone-input-wrapper:focus-within {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(82,168,120,.15);
  background: var(--white);
}
.phone-prefix {
  padding: 13px 12px 13px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-mid);
  background: var(--beige-mid);
  border-right: 2px solid var(--beige-mid);
  user-select: none;
}
.phone-input-wrapper input {
  border: none;
  background: transparent;
  box-shadow: none;
  flex: 1;
  padding: 13px 16px;
  font-size: 0.95rem;
  outline: none;
}
.phone-input-wrapper.invalid { border-color: #e05252; }

.field-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 5px;
}
.field-error {
  display: block;
  font-size: 0.78rem;
  color: #e05252;
  font-weight: 700;
  margin-top: 5px;
  min-height: 16px;
}

/* Submit button */
.submit-btn {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s;
  box-shadow: 0 6px 20px rgba(45,106,79,.3);
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(45,106,79,.38);
}
.submit-btn:active:not(:disabled) { transform: translateY(0); }
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* Spinner */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.privacy-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 12px;
}

/* ── SUCCESS STATE ── */
.success-state { text-align: center; padding: 8px 0; }
.success-animation { margin-bottom: 20px; }

.checkmark-circle {
  width: 72px;
  height: 72px;
  margin: 0 auto;
}
.checkmark-svg {
  width: 100%;
  height: 100%;
}
.checkmark-circle-path {
  stroke: var(--green-mid);
  stroke-width: 2.5;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: stroke 0.5s cubic-bezier(.65,0,.45,1) forwards;
}
.checkmark-tick {
  stroke: var(--green-deep);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.4s 0.45s cubic-bezier(.65,0,.45,1) forwards;
}
@keyframes stroke {
  to { stroke-dashoffset: 0; }
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--green-deep);
  margin-bottom: 8px;
}
.success-msg {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* Download button — base (used standalone, no pair) */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #f6c90e, #d4a700);
  color: var(--text-dark);
  font-weight: 900;
  font-size: 1rem;
  padding: 15px 32px;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 20px rgba(212,167,0,.35);
  transition: transform 0.18s, box-shadow 0.18s;
  text-decoration: none;
  /* NO margin-bottom here — let parent control spacing */
}
.download-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(212,167,0,.45); }

/* Share nudge */
.share-nudge { padding-top: 16px; border-top: 1.5px dashed var(--green-pale); }
.share-nudge p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 12px;
}
.wa-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: white;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 11px 22px;
  border-radius: 100px;
  box-shadow: 0 4px 14px rgba(37,211,102,.3);
  transition: transform 0.18s, box-shadow 0.18s;
}
.wa-share-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,211,102,.4); }

/* ── TESTIMONIALS ── */
.testimonials-section { padding: 44px 0; }
.testimonials-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 580px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--green-pale);
}
.stars { color: var(--gold); font-size: 1rem; margin-bottom: 10px; }
.testimonial-card p {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.85rem; color: var(--text-dark); }
.testimonial-author span  { font-size: 0.75rem; color: var(--text-light); }

/* ── WHATSAPP SECTION ── */
.whatsapp-section { padding: 8px 0 44px; }
.wa-card {
  background: linear-gradient(135deg, #e8f9ef, #d5f5e3);
  border: 2px solid #a8dfc0;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
@media (min-width: 540px) {
  .wa-card {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }
}
.wa-content { display: flex; align-items: center; gap: 16px; flex: 1; }
.wa-icon-wrap { flex-shrink: 0; }
.wa-text h3 { font-size: 1rem; font-weight: 800; color: var(--green-deep); margin-bottom: 4px; }
.wa-text p  { font-size: 0.83rem; color: var(--text-mid); line-height: 1.5; }

.wa-join-btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  background: #25d366;
  color: white;
  font-weight: 900;
  font-size: 0.9rem;
  padding: 13px 26px;
  border-radius: 100px;
  box-shadow: 0 4px 14px rgba(37,211,102,.3);
  transition: transform 0.18s, box-shadow 0.18s;
  flex-shrink: 0;
}
.wa-join-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,211,102,.4); }

/* ── SECTION SUBTITLE ── */
.section-sub {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: -18px;
  margin-bottom: 24px;
}
.section-sub strong { color: var(--green-deep); }

/* ── LEVEL TABS ── */
.level-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}
.level-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 100px;
  border: 2px solid var(--beige-mid);
  background: var(--white);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}
.level-tab.active {
  border-color: var(--green-mid);
  background: var(--green-ultra);
  color: var(--green-deep);
  box-shadow: var(--shadow-sm);
}
.level-tab:hover:not(.active) {
  border-color: var(--green-light);
  color: var(--green-deep);
}
.tab-badge {
  background: var(--green-pale);
  color: var(--green-deep);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.new-badge {
  background: linear-gradient(135deg, #f6c90e, #d4a700) !important;
  color: #1e3a2f !important;
  animation: pulseBadge 2s ease-in-out infinite;
}
@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(246,201,14,.5); }
  50%       { box-shadow: 0 0 0 5px rgba(246,201,14,0); }
}

/* NEW feature card variant */
.feature-card--new {
  border-color: rgba(246,201,14,.35);
  background: linear-gradient(160deg, #fffdf0, var(--white));
}
.feature-card--new::after {
  content: 'NEW';
  position: absolute;
  top: 10px; right: 10px;
  background: var(--gold);
  color: var(--text-dark);
  font-size: 0.6rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 100px;
  letter-spacing: 0.06em;
}
.feature-card { position: relative; }

/* ── DUAL DOWNLOAD BUTTONS ── */
.download-pair {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 20px;
  width: 100%;
}
@media (min-width: 500px) {
  .download-pair {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
  }
  .download-divider { padding-top: 32px; }
}
.download-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}
@media (min-width: 500px) {
  .download-item {
    flex: 1;
    max-width: 200px;
  }
}
.download-vol-badge {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--green-deep);
  background: var(--green-ultra);
  border: 1.5px solid var(--green-light);
  padding: 5px 14px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.download-vol-badge--new {
  background: #fffde7;
  border-color: rgba(246,201,14,.5);
  color: #7a5500;
}
.new-tag {
  background: var(--gold);
  color: var(--text-dark);
  font-size: 0.62rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}
.download-btn--vol1 {
  background: linear-gradient(135deg, #f6c90e, #d4a700) !important;
  color: var(--text-dark) !important;
  box-shadow: 0 6px 20px rgba(212,167,0,.35) !important;
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 0.95rem;
}
.download-btn--vol2 {
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid)) !important;
  color: white !important;
  box-shadow: 0 6px 20px rgba(45,106,79,.3) !important;
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 0.95rem;
}
.download-divider {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--beige-dark);
  padding: 4px;
  align-self: center;
  line-height: 1;
}
/* download-pair share nudge spacing */
.download-pair + .share-nudge,
.download-pair ~ .share-nudge {
  margin-top: 8px;
}


.footer {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--green-deep) 0%, #1b4332 100%);
  color: rgba(255,255,255,.75);
  text-align: center;
  padding: 44px 20px 36px;
}
.footer-crescent {
  font-size: 2.4rem;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
  animation: slowPulse 3s ease-in-out infinite;
}
@keyframes slowPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.65; }
}
.footer-tagline { font-family: var(--font-display); font-size: 1rem; color: var(--green-light); margin-bottom: 6px; }
.footer-brand   { font-size: 0.85rem; margin-bottom: 6px; color: rgba(255,255,255,.6); }
.footer-brand strong { color: var(--gold); }
.footer-copy    { font-size: 0.75rem; color: rgba(255,255,255,.4); }