:root {
  --q-violet: #9b7bf4;
  --q-violet-dark: #7457db;
  --q-lavender: #f6f2ff;
  --q-yellow: #ffc93c;
  --q-green: #22a867;
  --q-orange: #ff9f43;
  --q-blue: #3ba7f0;
  --q-pink: #f25c9a;
  --q-teal: #18b5a4;
  --q-ink: #2d2a4a;
  --q-muted: #5f5a7d;
  --q-card: #ffffff;
  --q-line: #e9e2fb;
  --radius: 28px;
  --shadow: 0 1px 0 rgba(45, 42, 74, 0.04), 0 18px 40px -24px rgba(91, 64, 190, 0.45);
  --bs-body-font-family: 'Baloo Bhaijaan 2', system-ui, sans-serif;
  --bs-body-color: var(--q-ink);
  --bs-body-bg: var(--q-lavender);
  --bs-link-color-rgb: 116, 87, 219;
  --bs-link-hover-color-rgb: 91, 64, 190;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  font-size: 1.08rem;
  line-height: 1.75;
  overflow-x: clip;
  background:
    radial-gradient(900px 520px at 100% -8%, rgba(155, 123, 244, 0.22), transparent 62%),
    radial-gradient(700px 420px at -8% 20%, rgba(255, 201, 60, 0.16), transparent 60%),
    var(--q-lavender);
}
h1, h2, h3 {
  font-weight: 800;
  line-height: 1.3;
  color: var(--q-ink);
}
img {
  max-width: 100%;
  height: auto;
}
.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: 8px;
  z-index: 2000;
  background: var(--q-ink);
  color: #fff;
  padding: 6px 14px;
  border-radius: 12px;
}

/* ---------- أزرار مجسّمة ناعمة (clay) ---------- */
.btn-clay {
  --b: var(--q-violet);
  --t: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 20px;
  padding: 0.7rem 1.4rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--t);
  background: linear-gradient(180deg, color-mix(in srgb, var(--b) 82%, #fff), var(--b));
  box-shadow:
    inset 0 -5px 0 rgba(0, 0, 0, 0.16),
    inset 0 3px 0 rgba(255, 255, 255, 0.45),
    0 12px 22px -12px color-mix(in srgb, var(--b) 80%, #000);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.2s;
}
.btn-clay:hover {
  color: var(--t);
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.btn-clay:active {
  transform: translateY(3px);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.16), inset 0 3px 0 rgba(255, 255, 255, 0.45), 0 4px 10px -8px rgba(0, 0, 0, 0.5);
}
.btn-clay:focus-visible {
  outline: 3px solid var(--q-ink);
  outline-offset: 3px;
}
.btn-clay-yellow { --b: var(--q-yellow); --t: var(--q-ink); }
.btn-clay-green { --b: var(--q-green); }
.btn-clay-red { --b: #e53935; }
.btn-store {
  --b: #ffffff;
  --t: var(--q-ink);
  min-width: 190px;
  cursor: default;
  border: 1px solid var(--q-line);
  text-align: start;
}
.btn-store:hover { transform: none; filter: none; }
.btn-store i { font-size: 1.9rem; }
.btn-store span { display: flex; flex-direction: column; line-height: 1.2; font-size: 1.15rem; direction: ltr; text-align: right; }
.btn-store small { font-size: 0.78rem; font-weight: 600; color: var(--q-violet-dark); direction: rtl; }

/* ---------- القائمة ---------- */
.q-nav {
  background: rgba(246, 242, 255, 0.78);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(155, 123, 244, 0.14);
}
.q-nav .navbar-brand img { width: 130px; height: auto; }
.q-nav .nav-link {
  font-weight: 700;
  color: var(--q-ink);
  border-radius: 14px;
  padding-inline: 0.9rem !important;
}
.q-nav .nav-link:hover { background: rgba(155, 123, 244, 0.12); color: var(--q-violet-dark); }
@media (max-width: 991.98px) {
  .q-nav .navbar-collapse { padding: 0.75rem 0 1rem; }
  .q-nav .btn-clay { width: 100%; margin-top: 0.5rem; }
}

/* ---------- الواجهة ---------- */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 3rem;
  overflow: clip;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  pointer-events: none;
}
.blob-1 { width: 420px; height: 420px; background: #d9ccff; inset-inline-end: -120px; top: -80px; }
.blob-2 { width: 300px; height: 300px; background: #ffe7a6; inset-inline-start: -120px; bottom: 0; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid var(--q-line);
  color: var(--q-violet-dark);
  font-weight: 800;
  border-radius: 999px;
  padding: 0.3rem 1rem;
  box-shadow: var(--shadow);
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin: 1rem 0 0.75rem;
}
.hero-title .hl {
  color: var(--q-violet-dark);
  background: linear-gradient(transparent 62%, rgba(255, 201, 60, 0.6) 62%);
  border-radius: 8px;
  padding: 0 0.2rem;
}
.hero-lead { color: var(--q-muted); font-size: clamp(1.08rem, 2.2vw, 1.3rem); max-width: 34rem; margin-inline: auto; }
@media (min-width: 992px) { .hero-lead { margin-inline: 0; } }

.hero-art {
  position: relative;
  max-width: 560px;
  margin-inline: auto;
}
.hero-sky {
  position: absolute;
  inset: 8% 4% 0;
  border-radius: 48% 48% 36px 36px;
  background: linear-gradient(160deg, #c9b8ff, var(--q-violet) 55%, var(--q-violet-dark));
  box-shadow: inset 0 -14px 0 rgba(0, 0, 0, 0.08), inset 0 10px 0 rgba(255, 255, 255, 0.25), var(--shadow);
}
.hero-sky .moon {
  position: absolute;
  top: 6%;
  inset-inline-start: 8%;
  width: clamp(70px, 16vw, 120px);
  animation: float 6s ease-in-out infinite;
}
.star { position: absolute; color: #fff; font-size: 1.2rem; animation: twinkle 3s ease-in-out infinite; }
.star.s1 { top: 14%; inset-inline-end: 18%; }
.star.s2 { top: 30%; inset-inline-end: 8%; font-size: 0.9rem; animation-delay: 1s; }
.star.s3 { top: 8%; inset-inline-end: 42%; font-size: 0.8rem; animation-delay: 2s; }
.hero-kids {
  position: relative;
  display: block;
  width: 100%;
  animation: bob 5s ease-in-out infinite;
  filter: drop-shadow(0 18px 18px rgba(60, 30, 140, 0.25));
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2.5rem 0 0;
}
.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--q-line);
  border-radius: 18px;
  padding: 0.5rem 1.1rem;
  font-weight: 800;
  box-shadow: var(--shadow);
}
.trust-strip i { color: var(--q-green); font-size: 1.25rem; }
.trust-strip i.off { color: #e5484d; position: relative; }
.trust-strip i.off::after {
  content: '';
  position: absolute;
  inset: 45% -2px auto;
  height: 2.5px;
  background: currentColor;
  transform: rotate(-35deg);
  border-radius: 2px;
}

/* ---------- الأقسام ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; }
.section-tint { background: linear-gradient(180deg, rgba(155, 123, 244, 0.08), rgba(155, 123, 244, 0.02)); }
.section-sky { background: linear-gradient(180deg, #efe8ff, #fff7e0); }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.section-head p { color: var(--q-muted); font-size: 1.15rem; margin: 0; }

.feature {
  height: 100%;
  background: var(--q-card);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--q-line);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.feature:hover { transform: translateY(-4px); }
.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c));
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.14), inset 0 3px 0 rgba(255, 255, 255, 0.45), 0 12px 20px -12px var(--c);
}
.feature h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.feature p { color: var(--q-muted); margin: 0; }

/* ---------- معرض الشاشات ---------- */
.gallery {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1.5rem;
  scrollbar-width: thin;
  align-items: flex-end;
  max-width: 100%;
}
.device {
  flex: 0 0 auto;
  scroll-snap-align: center;
  margin: 0;
  text-align: center;
}
.device img {
  display: block;
  background: #fff;
  border: 10px solid #1f1b3a;
  box-shadow: 0 26px 50px -26px rgba(45, 30, 110, 0.6);
}
.device.tablet img { width: min(78vw, 360px); border-radius: 30px; }
.device.phone img { width: min(46vw, 210px); border-radius: 34px; border-width: 8px; }
.device figcaption { font-weight: 800; margin-top: 0.75rem; color: var(--q-muted); }
@media (min-width: 1200px) {
  .gallery { justify-content: safe center; }
  .device.tablet img { width: 280px; }
  .device.phone img { width: 160px; }
}

/* ---------- الثقة ---------- */
.trust-card {
  display: flex;
  gap: 1rem;
  height: 100%;
  background: #fff;
  border-radius: 24px;
  padding: 1.4rem;
  border: 1px solid var(--q-line);
  box-shadow: var(--shadow);
}
.trust-card i {
  flex: 0 0 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 72%, #fff), var(--c));
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.14), inset 0 2px 0 rgba(255, 255, 255, 0.4);
}
.trust-card h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.trust-card p { margin: 0; color: var(--q-muted); }

/* ---------- خالد وحفصة ---------- */
.friend {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.25rem 1rem 1rem;
  border: 1px solid var(--q-line);
  box-shadow: var(--shadow);
  border-bottom: 6px solid var(--c);
}
.friend img { width: 42%; max-width: 190px; animation: bob 5s ease-in-out infinite; }
.friend:nth-child(2) img, .col-lg-5:nth-child(2) .friend img { animation-delay: 1.2s; }
.friend h3 { font-size: 1.7rem; margin: 0; }
.friend h3 small { font-size: 1rem; color: var(--q-muted); font-weight: 600; }
.friend p { color: var(--q-muted); margin: 0.25rem 0 0.75rem; }
.friend blockquote {
  margin: 0;
  display: inline-block;
  background: color-mix(in srgb, var(--c) 14%, #fff);
  color: color-mix(in srgb, var(--c) 70%, #000);
  border-radius: 16px;
  padding: 0.3rem 0.9rem;
  font-weight: 800;
}

/* ---------- الأسبوع ---------- */
.week {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 0;
}
.week li {
  background: #fff;
  border-radius: 24px;
  padding: 1.1rem 1rem;
  text-align: center;
  border: 1px solid var(--q-line);
  border-top: 6px solid var(--c);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.week .day { font-weight: 800; color: var(--c); }
.week .emoji { font-size: 2rem; line-height: 1.3; }
.week b { font-size: 1.02rem; line-height: 1.4; }

/* ---------- الأسئلة ---------- */
.q-accordion .accordion-item {
  border: 1px solid var(--q-line);
  border-radius: 20px !important;
  overflow: hidden;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
}
.q-accordion .accordion-button {
  font-weight: 800;
  font-size: 1.12rem;
  padding: 1.1rem 1.25rem;
  font-family: inherit;
}
.q-accordion .accordion-button:not(.collapsed) {
  background: rgba(155, 123, 244, 0.12);
  color: var(--q-violet-dark);
  box-shadow: none;
}
.q-accordion .accordion-button:focus { box-shadow: 0 0 0 3px rgba(155, 123, 244, 0.35); }
.q-accordion .accordion-body { color: var(--q-muted); }

/* ---------- الاشتراك ---------- */
.signup {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  background: linear-gradient(135deg, var(--q-violet) 0%, var(--q-violet-dark) 100%);
  border-radius: 36px;
  padding: clamp(1.75rem, 4vw, 3rem);
  color: #fff;
  overflow: hidden;
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.1), inset 0 6px 0 rgba(255, 255, 255, 0.18), 0 30px 60px -30px rgba(80, 50, 180, 0.8);
}
.signup::before {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  inset-inline-end: -120px;
  top: -140px;
}
.signup h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.signup p { color: rgba(255, 255, 255, 0.92); }
.signup-kid { width: 170px; margin-bottom: calc(-1 * clamp(1.75rem, 4vw, 3rem)); flex: 0 0 auto; }
.signup-body { position: relative; flex: 1; }
.signup-form { display: flex; gap: 0.75rem; flex-wrap: wrap; max-width: 520px; }
.signup-form .form-control {
  flex: 1 1 220px;
  border-radius: 18px;
  border: 0;
  padding: 0.85rem 1.1rem;
  font-size: 1.05rem;
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.06);
  text-align: left;
}
.signup-form .form-control:focus { box-shadow: 0 0 0 4px rgba(255, 201, 60, 0.6); }
.form-msg { min-height: 1.6em; margin: 0.75rem 0 0; font-weight: 800; }
.form-msg.ok { color: #d6ffe6 !important; }
.form-msg.err { color: #ffe0e3 !important; }
@media (max-width: 767.98px) {
  .signup { flex-direction: column; align-items: center; text-align: center; }
  .signup-kid { order: 2; width: 140px; }
  .signup-form { justify-content: center; margin-inline: auto; }
}

/* ---------- التذييل ---------- */
.q-footer { padding: 2.5rem 0; border-top: 1px solid var(--q-line); background: #fff; }
.q-footer a { color: var(--q-ink); font-weight: 700; text-decoration: none; }
.q-footer a:hover { color: var(--q-violet-dark); }
.q-footer small { color: var(--q-muted); }

/* ---------- حركة ---------- */
@keyframes float { 50% { transform: translateY(-10px) rotate(-4deg); } }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes twinkle { 50% { opacity: 0.35; transform: scale(0.8); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

@supports (animation-timeline: view()) {
  .reveal {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
