/* Arabic Kids (আরবি শিখি): the app's fairy sky, candy colours, arches, and plum text */
:root {
  --ink: #3B2A6B; --sub: #6E5E9E; --pink: #FF6FB5; --purple: #8B6CFF; --blue: #4FB2FF; --mint: #3FD69B; --sun: #FFC233; --peach: #FF9466;
  --card: rgba(255, 255, 255, .94); --line: #EDE4FF;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Baloo Da 2", system-ui, sans-serif; color: var(--ink); line-height: 1.6; overflow-x: hidden;
  background: linear-gradient(180deg, #B9A6FF 0%, #D9C7FF 22%, #FFD6EC 55%, #FFF1DA 80%, #FFF8EC 100%);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.round { font-family: Fredoka, "Baloo Da 2", sans-serif; }
.ar { font-family: Amiri, serif; direction: rtl; }

/* the sky: sparkles, drifting clouds, a rainbow */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.sky i { position: absolute; color: #fff; font-style: normal; text-shadow: 0 0 10px rgba(255, 243, 168, .9); animation: tw 3.2s ease-in-out infinite; }
@keyframes tw { 50% { opacity: .15; transform: scale(.5) rotate(45deg); } }
.cloud { position: absolute; height: 54px; background: #fff; border-radius: 99px; opacity: .85; animation: drift linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 56%; height: 150%; left: 14%; bottom: 25%; }
.cloud::after { width: 40%; height: 115%; right: 14%; bottom: 30%; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(130vw); } }
.page { position: relative; z-index: 1; }

/* top bar */
.nav { position: sticky; top: 0; z-index: 30; transition: background .3s, box-shadow .3s; }
.nav.solid { background: rgba(255, 255, 255, .75); backdrop-filter: blur(12px); box-shadow: 0 10px 30px -20px rgba(59, 42, 107, .6); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: Fredoka; font-weight: 700; font-size: 1.3rem; line-height: 1.05; }
.brand img { width: 46px; height: 46px; border-radius: 14px; box-shadow: 0 8px 18px -8px rgba(59, 42, 107, .6); }
.brand small { display: block; font-family: "Baloo Da 2"; font-size: .85rem; color: var(--pink); font-weight: 800; }
.links { display: flex; gap: 22px; align-items: center; font-weight: 700; }
.links a { text-decoration: none; opacity: .8; transition: opacity .2s; }
.links a:hover { opacity: 1; }

/* candy buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px 16px; border-radius: 26px; text-decoration: none; color: #fff !important; opacity: 1 !important;
  font-weight: 800; font-size: 1.05rem; background: linear-gradient(180deg, #FF9ACB, var(--pink)); border: 2px solid rgba(255, 255, 255, .5);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .14), 0 14px 24px -12px rgba(217, 72, 143, .8); transition: transform .2s;
}
.btn:hover { transform: translateY(-3px) scale(1.04); }
.btn.purple { background: linear-gradient(180deg, #B79BFF, var(--purple)); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .14), 0 14px 24px -12px rgba(101, 69, 214, .8); }
.play { display: inline-flex; align-items: center; gap: 12px; background: #111; color: #fff; text-decoration: none; border-radius: 16px; padding: 10px 22px 10px 16px; box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .8); transition: transform .2s; }
.play:hover { transform: translateY(-3px); }
.play svg { width: 30px; height: 30px; }
.play small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .6px; opacity: .85; line-height: 1; }
.play b { font-size: 1.35rem; line-height: 1.15; font-family: Fredoka; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; padding: 40px 0 70px; min-height: calc(100vh - 72px); }
.hero .hi { display: inline-flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, .7); border-radius: 99px; padding: 6px 16px; font-weight: 800; color: var(--purple); }
.hero h1 { font-family: Fredoka; font-size: clamp(2.8rem, 6.5vw, 5rem); line-height: 1; margin-top: 16px; }
.hero h1 span { display: block; font-family: "Baloo Da 2"; font-weight: 800; line-height: 1.35; padding-top: .12em; background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue), var(--mint), var(--pink)); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: -250% 0; } }
.hero p { font-size: 1.22rem; color: var(--sub); margin: 18px 0 26px; max-width: 32em; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.abc { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; direction: rtl; justify-content: flex-end; }
.abc b { font-family: Amiri; width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; color: #fff; font-size: 2rem; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .6); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .13), 0 12px 20px -12px rgba(59, 42, 107, .6); animation: bob 4s ease-in-out infinite; transition: transform .2s; }
.abc b:hover { transform: scale(1.15) rotate(-6deg); }
@keyframes bob { 50% { translate: 0 -10px; } }

/* phones */
.stage { position: relative; height: 600px; }
.phone { position: absolute; width: 265px; aspect-ratio: 9 / 19.5; border-radius: 40px; padding: 9px; background: linear-gradient(145deg, #5a47a8, #2a1f5c);
  box-shadow: 0 34px 60px -26px rgba(59, 42, 107, .7), 0 0 0 3px rgba(255, 255, 255, .55); }
.phone .s { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; position: relative; background: #e9dcff; }
.phone .s img { position: absolute; left: 0; top: -4.6%; width: 100%; height: 112.5%; max-width: none; object-fit: cover; object-position: center top; }
.stage .phone:nth-child(2) { left: 4%; top: 20px; transform: rotate(-7deg); animation: f1 7s ease-in-out infinite; }
.stage .phone:nth-child(3) { right: 2%; top: 80px; transform: rotate(6deg); animation: f2 8s ease-in-out infinite; }
@keyframes f1 { 50% { transform: rotate(-7deg) translateY(-16px); } }
@keyframes f2 { 50% { transform: rotate(6deg) translateY(14px); } }
.glow { position: absolute; inset: 15% 10%; background: radial-gradient(circle, rgba(255, 255, 255, .8), transparent 65%); filter: blur(20px); }
.owl { position: absolute; width: 130px; left: 36%; bottom: -10px; animation: bob 3s ease-in-out infinite; filter: drop-shadow(0 14px 16px rgba(59, 42, 107, .35)); z-index: 3; }

/* ribbon */
.ribbon { background: linear-gradient(90deg, var(--purple), var(--pink)); color: #fff; padding: 14px 0; overflow: hidden; transform: rotate(-1.5deg); margin: 10px -20px; box-shadow: 0 10px 30px -14px rgba(101, 69, 214, .7); }
.ribbon .track { display: flex; gap: 40px; width: max-content; animation: marquee 34s linear infinite; font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.ribbon span::before { content: "✦"; margin-right: 40px; color: #FFF3A8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* sections */
section { padding: 90px 0; }
.head { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.head .tag { display: inline-block; background: rgba(255, 255, 255, .75); color: var(--pink); font-weight: 800; border-radius: 99px; padding: 4px 16px; }
.head h2 { font-family: Fredoka; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.1; margin: 12px 0 10px; }
.head p { color: var(--sub); font-size: 1.1rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--card); border-radius: 150px 150px 28px 28px; padding: 74px 24px 28px; text-align: center; position: relative; border: 2px solid var(--line);
  box-shadow: 0 20px 36px -26px rgba(59, 42, 107, .6); transition: transform .35s, box-shadow .35s; }
.card:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 30px 50px -26px rgba(59, 42, 107, .7); }
.card .ic { position: absolute; top: -34px; left: 50%; translate: -50% 0; width: 78px; height: 78px; border-radius: 26px; display: grid; place-items: center; font-size: 2.3rem;
  border: 3px solid #fff; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .12), 0 12px 20px -10px rgba(59, 42, 107, .6); transition: transform .4s; }
.card:hover .ic { transform: rotate(-10deg) scale(1.08); }
.card h3 { font-family: Fredoka; font-size: 1.35rem; margin-bottom: 6px; }
.card p { color: var(--sub); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 110px; }
.row:last-child { margin-bottom: 0; }
.row.flip .txt { order: 2; }
.row .tag { color: var(--pink); font-weight: 800; }
.row h3 { font-family: Fredoka; font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.12; margin: 6px 0 14px; }
.row p { color: var(--sub); font-size: 1.08rem; margin-bottom: 14px; }
.ticks { list-style: none; display: grid; gap: 8px; font-weight: 600; }
.ticks li::before { content: "⭐"; margin-right: 10px; }
.shots { position: relative; display: flex; justify-content: center; gap: 24px; }
.shots .phone { position: relative; width: 240px; }
.shots .phone + .phone { margin-top: 70px; }
.blob { position: absolute; inset: -20px 4% -10px; border-radius: 300px 300px 40px 40px; background: rgba(255, 255, 255, .55); border: 2px dashed rgba(139, 108, 255, .35); z-index: -1; }
.verse { text-align: center; }
.verse .box { background: linear-gradient(135deg, var(--purple), var(--pink)); color: #fff; border-radius: 40px; padding: 60px 24px; box-shadow: 0 30px 60px -30px rgba(101, 69, 214, .8); position: relative; overflow: hidden; }
.verse .ar { font-size: clamp(2.2rem, 6vw, 3.8rem); text-shadow: 0 4px 20px rgba(0, 0, 0, .15); }
.verse p { font-size: 1.2rem; opacity: .95; margin-top: 8px; }
.verse small { display: block; margin-top: 8px; font-weight: 800; opacity: .85; }
.parents { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.parents div { background: var(--card); border: 2px solid var(--line); border-radius: 24px; padding: 22px 16px; text-align: center; font-weight: 700; }
.parents b { display: block; font-size: 2rem; }
.download { text-align: center; }
.download h2 { font-family: Fredoka; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; margin: 10px 0; }
.download p { color: var(--sub); font-size: 1.15rem; margin-bottom: 26px; }
.download .icon { width: 120px; margin: 0 auto 14px; border-radius: 34px; box-shadow: 0 20px 40px -18px rgba(59, 42, 107, .7); animation: bob 3s ease-in-out infinite; }

/* the other pages */
.doc { background: var(--card); border-radius: 34px; padding: clamp(24px, 5vw, 54px); margin: 20px auto 80px; max-width: 840px; border: 2px solid var(--line); box-shadow: 0 30px 60px -40px rgba(59, 42, 107, .7); }
.doc h1 { font-family: Fredoka; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; }
.doc h2 { font-family: Fredoka; font-size: 1.35rem; margin: 28px 0 8px; color: var(--purple); }
.doc h2::before { content: "✦ "; color: var(--pink); }
.doc p, .doc li { margin-bottom: 8px; color: #4a3a7a; font-size: 1.05rem; }
.doc ul { padding-left: 24px; }
.doc a { color: var(--purple); font-weight: 700; }
.doc .date { display: inline-block; background: #F3EEFF; border-radius: 99px; padding: 3px 14px; color: var(--sub); font-size: .9rem; margin: 10px 0 18px; font-weight: 700; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; }
.doc td, .doc th { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--purple); width: 32%; }
details { background: #FAF7FF; border: 2px solid var(--line); border-radius: 18px; padding: 14px 18px; margin-bottom: 10px; }
details[open] { border-color: #FFB3D9; background: #fff; }
summary { cursor: pointer; font-weight: 800; }
details p { margin-top: 8px; }
footer { padding: 30px 0 46px; text-align: center; color: var(--sub); font-weight: 700; }
footer nav { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--pink); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px) scale(.97); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; min-height: 0; }
  .hero p { margin-inline: auto; }
  .cta, .abc { justify-content: center; }
  .stage { height: 470px; max-width: 460px; width: 100%; margin: 0 auto; }
  .phone { width: 200px; border-radius: 32px; padding: 7px; } .phone .s { border-radius: 26px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .row, .row.flip { grid-template-columns: 1fr; gap: 40px; } .row.flip .txt { order: 0; }
  .parents { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .links a.opt { display: none; }
  .grid { grid-template-columns: 1fr; gap: 50px; }
  .stage { height: 400px; } .phone { width: 165px; }
  .shots .phone { width: 46%; } .shots .phone + .phone { margin-top: 40px; }
  .owl { width: 100px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* the home of every kids app */
.hero.home .stage { display: grid; place-items: center; }
.owl.big { position: relative; left: auto; bottom: auto; width: min(380px, 80%); }
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.appcard { display: flex; gap: 18px; align-items: center; text-decoration: none; background: var(--card); border: 2px solid var(--line); border-radius: 30px; padding: 22px;
  box-shadow: 0 20px 36px -26px rgba(59, 42, 107, .6); transition: transform .3s, box-shadow .3s, border-color .3s; position: relative; }
.appcard:hover { transform: translateY(-6px); border-color: var(--c, var(--pink)); box-shadow: 0 30px 50px -26px rgba(59, 42, 107, .7); }
.appcard img { width: 96px; height: 96px; border-radius: 26px; flex: none; box-shadow: 0 12px 24px -12px rgba(59, 42, 107, .7); }
.appcard h3 { font-family: Fredoka; font-size: 1.45rem; line-height: 1.15; }
.appcard h3 span { font-family: "Baloo Da 2"; color: var(--c, var(--pink)); font-size: 1.1rem; }
.appcard p { color: var(--sub); margin: 4px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { background: #F3EEFF; color: var(--purple); border-radius: 99px; padding: 2px 10px; font-size: .85rem; font-weight: 700; }
.appcard .go { position: absolute; top: 16px; right: 18px; color: var(--c, var(--pink)); font-weight: 800; font-size: .95rem; }
.appcard.soon { opacity: .75; border-style: dashed; }
.appcard.soon img { box-shadow: none; }
@media (max-width: 760px) {
  .apps { grid-template-columns: 1fr; }
  .appcard { flex-direction: column; text-align: center; padding-top: 30px; }
  .appcard .chips { justify-content: center; }
  .appcard .go { position: static; margin-top: 4px; }
}
/* phones: nothing wider than the screen */
@media (max-width: 560px) {
  body { font-size: 15px; }
  .hero h1 { font-size: 2.6rem; }
  .hero p { font-size: 1.05rem; }
  .abc b { width: 46px; height: 46px; font-size: 1.5rem; border-radius: 15px; }
  .play b { font-size: 1.15rem; }
  .nav .wrap { height: 64px; }
  .brand { font-size: 1.1rem; } .brand img { width: 40px; height: 40px; }
  .links { gap: 10px; } .links .btn { padding: 8px 14px 11px; font-size: .9rem; }
  .card { padding-top: 64px; }
  .parents { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ribbon { margin: 10px 0; }
  .doc { border-radius: 24px; }
  .doc table, .doc td, .doc th { font-size: .95rem; }
}

/* two languages: Bangla first; the বাং / EN button switches */
html:not([lang="en"]) .en, html[lang="en"] .bn { display: none !important; }
.lang { border: 2px solid rgba(139, 108, 255, .35); background: rgba(255, 255, 255, .8); color: var(--purple); border-radius: 14px; min-width: 52px; height: 40px;
  font: 800 .95rem "Baloo Da 2", sans-serif; cursor: pointer; transition: transform .2s, background .2s; }
.lang:hover { transform: scale(1.06); background: #fff; }

/* the side drawer (phones and small tablets) */
.mobile { display: none; align-items: center; gap: 10px; }
.burger { width: 46px; height: 42px; border: 0; border-radius: 14px; background: linear-gradient(180deg, #B79BFF, var(--purple)); cursor: pointer; display: grid; place-content: center; gap: 5px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .14); }
.burger i { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: #fff; }
.shade { position: fixed; inset: 0; background: rgba(59, 42, 107, .35); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 60; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); z-index: 70; background: linear-gradient(180deg, #F6F0FF, #FFE9F4);
  box-shadow: -20px 0 50px -20px rgba(59, 42, 107, .6); transform: translateX(105%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column; padding: 16px 18px 24px; overflow-y: auto; border-radius: 28px 0 0 28px; }
body.menu .drawer { transform: none; }
body.menu .shade { opacity: 1; pointer-events: auto; }
body.menu { overflow: hidden; }
.dhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dhead .brand { font-size: 1.1rem; } .dhead .brand img { width: 40px; height: 40px; }
.close { width: 40px; height: 40px; border-radius: 12px; border: 0; background: #fff; color: var(--ink); font-size: 1.1rem; cursor: pointer; box-shadow: 0 6px 14px -8px rgba(59, 42, 107, .6); }
.drawer nav { display: grid; gap: 8px; }
.drawer nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 700; font-size: 1.05rem;
  border: 2px solid transparent; transition: border-color .2s, transform .2s; }
.drawer nav a:hover { border-color: #FFB3D9; transform: translateX(-3px); }
.drawer nav a em { font-style: normal; font-size: 1.25rem; }
.dfoot { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.dfoot .btn { flex: 1; justify-content: center; }
.downl { width: 110px; margin: auto auto 0; padding-top: 20px; animation: bob 3s ease-in-out infinite; }
@media (max-width: 900px) {
  .links { display: none; }
  .mobile { display: flex; }
}
@media (min-width: 901px) { .drawer, .shade { display: none; } }
