/* ==========================================================================
   Kids Mode — website
   Sky, hills and a friendly shield, matching the app's own look.
   ========================================================================== */

:root {
  --sky-top: #4ea8f5;
  --sky-bottom: #bfe3ff;
  --blue: #3b8ff0;
  --blue-dark: #1f5fb8;
  --navy: #14254a;
  --ink: #1d2a44;
  --muted: #5b6b86;
  --paper: #ffffff;
  --soft: #f3f8ff;
  --line: #dbe7f7;
  --yellow: #ffc83d;
  --green: #5cc94e;
  --green-dark: #3fae3a;
  --orange: #ff9f43;
  --pink: #ff6fa3;
  --purple: #8b6cf6;
  --teal: #20c3b0;

  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ar: 'Tajawal', 'Nunito', system-ui, sans-serif;
  --radius: 22px;
  --shadow: 0 18px 50px -20px rgba(20, 37, 74, 0.35);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font: 400 17px/1.65 var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[dir="rtl"] body { font-family: var(--font-ar); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; font-size: 1rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -10px rgba(20, 37, 74, 0.7); }
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(20, 37, 74, 0.8); }
.btn-ghost { background: rgba(255, 255, 255, 0.85); color: var(--navy); border-color: rgba(255, 255, 255, 0.9); }
.round {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--line);
  background: #fff; color: var(--navy); display: grid; place-items: center;
  transition: background 0.2s, border-color 0.2s;
}
.round:hover { border-color: var(--blue); background: var(--soft); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled { background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); box-shadow: 0 4px 24px -12px rgba(20, 37, 74, 0.3); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.2rem; color: var(--navy); margin-inline-end: auto; }
.brand img { border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-weight: 700; color: var(--navy); transition: background 0.2s; }
.nav-links a:hover { background: rgba(255, 255, 255, 0.6); }
.navbar.scrolled .nav-links a:hover { background: var(--soft); }
.nav-links .nav-cta { background: var(--navy); color: #fff; }
.nav-links .nav-cta:hover { background: var(--blue-dark); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; border: 2px solid rgba(20, 37, 74, 0.15);
  background: rgba(255, 255, 255, 0.8); font-weight: 800; color: var(--navy);
}
.lang-toggle #langLabel { font-family: var(--font-ar); }
[dir="rtl"] .lang-toggle #langLabel { font-family: var(--font); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 2px solid rgba(20, 37, 74, 0.15); background: rgba(255, 255, 255, 0.8); color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 130px 0 170px;
  background: linear-gradient(180deg, var(--sky-top) 0%, #7cc0fb 45%, var(--sky-bottom) 100%);
}
.sky { position: absolute; inset: 0; pointer-events: none; }
.cloud { position: absolute; background: #fff; border-radius: 999px; opacity: 0.95; animation: drift 40s linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud.c1 { width: 150px; height: 46px; top: 18%; left: -10%; }
.cloud.c1::before { width: 70px; height: 70px; top: -36px; left: 26px; }
.cloud.c1::after { width: 54px; height: 54px; top: -24px; left: 80px; }
.cloud.c2 { width: 110px; height: 36px; top: 34%; left: 40%; animation-duration: 55s; animation-delay: -20s; opacity: 0.8; }
.cloud.c2::before { width: 52px; height: 52px; top: -26px; left: 18px; }
.cloud.c2::after { width: 40px; height: 40px; top: -18px; left: 58px; }
.cloud.c3 { width: 180px; height: 52px; top: 10%; left: 70%; animation-duration: 65s; animation-delay: -35s; }
.cloud.c3::before { width: 84px; height: 84px; top: -44px; left: 30px; }
.cloud.c3::after { width: 64px; height: 64px; top: -30px; left: 96px; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(130vw); } }
.balloon { position: absolute; width: 34px; height: 42px; border-radius: 50% 50% 48% 48%; animation: float 7s ease-in-out infinite; }
.balloon::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 46px; background: rgba(20, 37, 74, 0.35); }
.balloon.b1 { background: #ff5b6e; left: 6%; bottom: 30%; }
.balloon.b2 { background: #ffa53b; left: 10%; bottom: 24%; width: 28px; height: 36px; animation-delay: -2s; }
.balloon.b3 { background: #b681f5; right: 5%; bottom: 36%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-16px); } }

.hills { position: absolute; left: 0; right: 0; bottom: -2px; height: 150px; pointer-events: none; }
.hills span { position: absolute; bottom: 0; border-radius: 50% 50% 0 0; }
.hills .h1 { left: -10%; width: 75%; height: 130px; background: var(--green); }
.hills .h2 { right: -12%; width: 80%; height: 110px; background: var(--green-dark); }

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.85); color: var(--blue-dark); font-weight: 800; font-size: 0.9rem;
}
.hero h1 { margin: 20px 0 16px; font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.08; font-weight: 900; color: var(--navy); letter-spacing: -0.02em; }
[dir="rtl"] .hero h1 { letter-spacing: 0; line-height: 1.25; }
.hero h1 span { display: block; }
.hero h1 .accent { color: #fff; text-shadow: 0 4px 0 var(--blue-dark); }
.lead { font-size: 1.15rem; max-width: 34em; color: #20345a; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 28px 0 0; }
.badges li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(20, 37, 74, 0.1); font-weight: 700; font-size: 0.9rem; color: var(--navy); }

.hero-phone { position: relative; justify-self: center; }
.phone {
  width: min(300px, 70vw); aspect-ratio: 9 / 16;
  border-radius: 38px; padding: 10px; background: var(--navy);
  box-shadow: 0 40px 80px -30px rgba(20, 37, 74, 0.7), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  transform: rotate(-3deg);
}
[dir="rtl"] .phone { transform: rotate(3deg); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow);
  font-weight: 800; font-size: 0.9rem; color: var(--navy); white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.float-card i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #fff; }
.fc1 { top: 18%; inset-inline-start: -30%; }
.fc1 i { background: var(--orange); }
.fc2 { bottom: 16%; inset-inline-end: -26%; animation-delay: -3s; }
.fc2 i { background: var(--purple); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.kicker { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--soft); color: var(--blue-dark); font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
[dir="rtl"] .kicker { letter-spacing: 0; }
.section h2 { margin: 14px 0 0; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.2; font-weight: 900; color: var(--navy); }

/* Blocked */
.blocked { background: var(--green-dark); padding-top: 40px; color: #fff; }
.blocked .kicker { background: rgba(255, 255, 255, 0.18); color: #fff; }
.blocked h2 { color: #fff; }
.blocked-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.blocked-item { background: rgba(255, 255, 255, 0.14); border: 2px solid rgba(255, 255, 255, 0.22); border-radius: var(--radius); padding: 22px 18px; text-align: center; }
.blocked-item i { font-size: 1.6rem; width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; background: #fff; color: #e5484d; position: relative; }
.blocked-item i::after { content: ""; position: absolute; width: 60px; height: 4px; background: #e5484d; border-radius: 4px; transform: rotate(-45deg); opacity: 0.9; }
.blocked-item p { margin: 0; font-weight: 700; font-size: 0.98rem; line-height: 1.45; }

/* Features */
.features { background: var(--soft); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: 0 10px 30px -22px rgba(20, 37, 74, 0.45); border: 2px solid transparent; transition: transform 0.25s var(--ease), border-color 0.25s; }
.feature:hover { transform: translateY(-4px); border-color: var(--line); }
.feature h3 { margin: 16px 0 8px; font-size: 1.2rem; font-weight: 900; color: var(--navy); }
.feature p { margin: 0; color: var(--muted); }
.ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.35rem; color: #fff; }
.ico.blue { background: var(--blue); }
.ico.purple { background: var(--purple); }
.ico.orange { background: var(--orange); }
.ico.green { background: var(--green-dark); }
.ico.pink { background: var(--pink); }
.ico.yellow { background: var(--yellow); color: var(--navy); }
.ico.teal { background: var(--teal); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.step .num { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--navy); font-weight: 900; font-size: 1.4rem; box-shadow: 0 6px 0 #e6a800; }
.step h3 { margin: 18px 0 8px; font-size: 1.25rem; font-weight: 900; color: var(--navy); }
.step p { margin: 0; color: var(--muted); }

/* Screenshots */
.shots { background: linear-gradient(180deg, #fff, var(--soft)); }
.shot-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: 22px;
  --edge: max(20px, calc((100vw - 1160px) / 2 + 20px));
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 10px var(--edge) 24px;
  scrollbar-width: none;
}
.shot-track::-webkit-scrollbar { display: none; }
.shot { margin: 0; scroll-snap-align: start; }
.shot button { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 26px; overflow: hidden; box-shadow: 0 20px 40px -24px rgba(20, 37, 74, 0.6); transition: transform 0.25s var(--ease); }
.shot button:hover { transform: translateY(-6px); }
.shot img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.shot figcaption { margin-top: 12px; text-align: center; font-weight: 800; color: var(--navy); font-size: 0.95rem; }
.shot-nav { display: flex; justify-content: center; gap: 12px; margin-top: 8px; }
[dir="rtl"] .shot-nav i { transform: scaleX(-1); }

/* Privacy */
.privacy { background: var(--navy); color: #e8eefb; }
.privacy .kicker { background: rgba(255, 255, 255, 0.1); color: var(--yellow); }
.privacy h2 { color: #fff; margin-bottom: 14px; }
.privacy-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.privacy-copy p { color: #c3cfe8; font-size: 1.08rem; margin: 0 0 26px; }
.privacy .btn-primary { background: var(--yellow); color: var(--navy); }
.perms { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius); padding: 26px; }
.perms h3 { margin: 0 0 14px; color: #fff; font-size: 1.15rem; font-weight: 900; }
.perms details { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 14px 0; }
.perms summary { cursor: pointer; font-weight: 800; color: #fff; list-style: none; display: flex; align-items: center; gap: 12px; }
.perms summary::-webkit-details-marker { display: none; }
.perms summary::after { content: "\f078"; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-inline-start: auto; font-size: 0.8rem; transition: transform 0.2s; }
.perms details[open] summary::after { transform: rotate(180deg); }
.perms summary i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, 0.1); color: var(--yellow); }
.perms details p { margin: 10px 0 0; color: #c3cfe8; font-size: 0.97rem; padding-inline-start: 46px; }

/* Download */
.download { background: linear-gradient(180deg, var(--sky-bottom), #e6f4ff); }
.download-card { max-width: 820px; margin: 0 auto; text-align: center; background: #fff; border-radius: 32px; padding: 44px 30px; box-shadow: var(--shadow); }
.dl-icon { margin: 0 auto 16px; border-radius: 24px; box-shadow: 0 12px 28px -12px rgba(20, 37, 74, 0.5); }
.download-card h2 { margin-top: 0; }
.download-card > p { color: var(--muted); max-width: 32em; margin: 12px auto 24px; }
.store-row { display: flex; justify-content: center; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 14px; background: var(--navy); color: #fff; text-align: start; }
.store i { font-size: 1.8rem; }
.store small { display: block; font-size: 0.75rem; opacity: 0.8; font-weight: 700; }
.store b { font-size: 1.2rem; font-weight: 900; }
.store:hover { background: var(--blue-dark); }
.reqs { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.reqs li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--soft); font-weight: 700; font-size: 0.92rem; color: var(--navy); }
.reqs i { color: var(--green-dark); }

/* Closed test */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-beta { background: var(--navy); color: #fff; transition: background 0.2s, transform 0.2s var(--ease); }
.pill-beta:hover { background: var(--blue-dark); transform: translateY(-1px); }
.pill-beta .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgba(255, 200, 61, 0.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(255, 200, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 200, 61, 0); } }
[dir="rtl"] .pill-beta i, [dir="rtl"] .hero-actions .fa-arrow-down { transform: scaleX(-1); }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact p { color: var(--muted); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list a { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 16px; border: 2px solid var(--line); font-weight: 800; color: var(--navy); transition: border-color 0.2s, background 0.2s; overflow-wrap: anywhere; }
.contact-list a:hover { border-color: var(--blue); background: var(--soft); }
.contact-list i { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--soft); color: var(--blue-dark); }

/* Footer */
.footer { background: var(--navy); color: #fff; padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-weight: 700; font-size: 0.95rem; }
.footer .muted { color: #9fb0d3; font-weight: 400; max-width: 46em; }

/* Back to top */
.to-top { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.3s, transform 0.3s, visibility 0.3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(420px, 92vw); max-height: 92svh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 18, 36, 0.85); }
.lightbox img { max-height: 88svh; width: auto; border-radius: 28px; }
.lb-close { position: absolute; top: -14px; inset-inline-end: -14px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); box-shadow: var(--shadow); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .blocked-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .fc1 { inset-inline-start: -18%; }
  .fc2 { inset-inline-end: -14%; }
}
@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: fixed; top: 76px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px; border-radius: 20px; background: #fff; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 12px 16px; }
  .nav-links a:hover { background: var(--soft); }
  .hero { padding: 110px 0 150px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .hero-actions, .badges, .pills { justify-content: center; }
  .hero-phone { margin-top: 20px; }
  .steps, .privacy-inner, .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 70px 0; }
  .blocked-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .brand span { font-size: 1.05rem; }
  .lang-toggle { padding: 8px 12px; }
  .shot-track { grid-auto-columns: 70%; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
