:root {
  --ink: #26215C;
  --sky1: #6EC1F5;
  --sky2: #BDE6FB;
  --grass: #5DB33B;
  --orange: #EF9F27;
  --deep: #D85A30;
  --green: #7BD34F;
  --paper: #FFFBF2;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Baloo Bhaijaan 2', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; }

.hero {
  position: relative;
  background: linear-gradient(var(--sky1), var(--sky2));
  padding: 16px 16px 110px;
  overflow: hidden;
}
.nav {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 26px; direction: ltr; }
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.links { display: flex; gap: 18px; flex-wrap: wrap; }
.links a { text-decoration: none; font-weight: 700; background: rgba(255,255,255,.7); padding: 4px 14px; border-radius: 20px; }

.hero-in {
  max-width: 1100px; margin: 30px auto 0;
  display: flex; align-items: center; gap: 30px; flex-wrap: wrap; justify-content: center;
}
.hero-text { flex: 1 1 420px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.2; margin: 0 0 12px; }
.hero p { font-size: 20px; margin: 0 0 22px; max-width: 560px; }
.hero-logo { width: min(320px, 70vw); filter: drop-shadow(0 12px 20px rgba(0,0,0,.2)); border-radius: 50%; }
.hills { position: absolute; bottom: 0; left: 0; width: 100%; height: 110px; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 800; font-size: 22px;
  background: var(--green); color: #fff; padding: 12px 30px; border-radius: 40px;
  border: 4px solid #fff; box-shadow: 0 6px 0 #3B6D11; transition: transform .1s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #3B6D11; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.badges span { background: #fff; border-radius: 20px; padding: 2px 14px; font-weight: 700; font-size: 16px; }

section { padding: 50px 16px; }
h2 { text-align: center; font-size: clamp(28px, 4vw, 40px); margin: 0 0 28px; }
.features { background: var(--grass); color: #fff; padding-top: 10px; }
.features h2 { color: #fff; }
.grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card { background: #fff; color: var(--ink); border-radius: 26px; padding: 20px; box-shadow: 0 8px 0 rgba(0,0,0,.12); }
.card b { font-size: 44px; }
.card h3 { margin: 4px 0; font-size: 26px; }
.card p { margin: 0; font-size: 17px; }
.c1 { border-top: 8px solid #F0997B; } .c2 { border-top: 8px solid #AFA9EC; }
.c3 { border-top: 8px solid #5DCAA5; } .c4 { border-top: 8px solid #97C459; }
.c5 { border-top: 8px solid #FAC775; } .c6 { border-top: 8px solid #ED93B1; }

.strip {
  max-width: 1200px; margin: 0 auto; display: flex; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 12px;
}
.strip img {
  width: min(560px, 85vw); flex: none; border-radius: 22px; scroll-snap-align: center;
  border: 6px solid #fff; box-shadow: 0 10px 24px rgba(0,0,0,.15);
}

.parents { max-width: 820px; margin: 0 auto; text-align: center; }
.parents ul { list-style: none; padding: 0; text-align: right; font-size: 19px; }
.parents li { background: #fff; border-radius: 18px; padding: 12px 18px; margin-bottom: 10px; box-shadow: 0 4px 0 rgba(0,0,0,.06); }
.how { color: #5F5E5A; font-size: 16px; }

footer { background: var(--ink); color: #fff; text-align: center; padding: 26px 16px; }
footer a { color: #FAC775; font-weight: 700; }

/* Report form */
.form-wrap { max-width: 640px; margin: 0 auto; background: #fff; border-radius: 28px; padding: 26px; box-shadow: 0 10px 30px rgba(0,0,0,.1); }
.form-wrap label { display: block; font-weight: 700; margin: 14px 0 6px; }
.form-wrap input, .form-wrap textarea, .form-wrap select {
  width: 100%; font: inherit; font-size: 18px; padding: 10px 14px; border-radius: 14px;
  border: 2px solid #D3D1C7; background: var(--paper);
}
.form-wrap textarea { min-height: 140px; resize: vertical; }
.kinds { display: flex; gap: 10px; flex-wrap: wrap; }
.kinds label { flex: 1 1 180px; margin: 0; border: 3px solid #D3D1C7; border-radius: 18px; padding: 12px; cursor: pointer; text-align: center; font-size: 19px; }
.kinds input { display: none; }
.kinds label:has(input:checked) { border-color: var(--orange); background: #FFF1C9; }
.msg { margin-top: 16px; padding: 12px; border-radius: 14px; display: none; font-weight: 700; }
.msg.ok { background: #EAF3DE; color: #3B6D11; }
.msg.err { background: #FCEBEB; color: #A32D2D; }
.form-wrap button.btn { border: 4px solid #fff; cursor: pointer; margin-top: 18px; width: 100%; }

/* Admin */
.admin { max-width: 900px; margin: 0 auto; }
.item { background: #fff; border-radius: 18px; padding: 14px 18px; margin-bottom: 12px; box-shadow: 0 4px 0 rgba(0,0,0,.06); }
.item .meta { color: #888780; font-size: 14px; }
.item .tag { display: inline-block; border-radius: 12px; padding: 0 10px; font-size: 14px; font-weight: 800; }
.tag.bug { background: #FCEBEB; color: #A32D2D; } .tag.idea { background: #E6F1FB; color: #185FA5; }

/* Languages: show the span for the page's language only. */
html[lang="ar"] .en, html[lang="en"] .ar { display: none !important; }
.badges i { font-style: normal; }
.hero h1 em { font-style: normal; color: var(--deep); }
html[lang="en"] .hero h1, html[lang="en"] .hero p { font-family: 'Baloo Bhaijaan 2', system-ui, sans-serif; }
html[lang="en"] .parents ul { text-align: left; }
.lang {
  font: inherit; font-weight: 800; cursor: pointer;
  background: var(--ink); color: #fff; border: 0; border-radius: 20px; padding: 4px 16px;
}

/* Releases */
.releases { max-width: 820px; margin: 0 auto; }
.rel { background: #fff; border-radius: 24px; padding: 20px 24px; margin-bottom: 18px; box-shadow: 0 6px 0 rgba(0,0,0,.08); border-inline-start: 8px solid #D3D1C7; }
.rel.latest { border-inline-start-color: var(--green); }
.rel-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ver { font-size: 26px; font-weight: 800; direction: ltr; }
.pill { background: var(--green); color: #fff; border-radius: 14px; padding: 0 12px; font-weight: 800; }
.rel time { color: #888780; margin-inline-start: auto; }
.rel h3 { margin: 6px 0; font-size: 22px; }
.rel ul { margin: 6px 0 12px; padding-inline-start: 22px; font-size: 18px; }
.btn.small { font-size: 18px; padding: 6px 22px; }

/* A tablet frame showing the app in the hero. */
.device {
  position: relative; flex: 1 1 380px; max-width: 540px;
  background: #1F1E2E; padding: 14px; border-radius: 34px;
  box-shadow: 0 24px 50px rgba(0,0,0,.28); transform: rotate(-2deg);
}
.device > img:first-child { display: block; width: 100%; border-radius: 22px; }
.device-logo {
  position: absolute; width: 110px; bottom: -34px; inset-inline-start: -26px;
  border-radius: 50%; border: 6px solid #fff; box-shadow: 0 8px 18px rgba(0,0,0,.2);
}

/* Phones: one tidy row of links that scrolls sideways. */
@media (max-width: 700px) {
  .nav { flex-wrap: nowrap; }
  .brand span { display: none; }
  .links { flex-wrap: nowrap; overflow-x: auto; gap: 8px; scrollbar-width: none; }
  .links a, .lang { white-space: nowrap; font-size: 15px; padding: 3px 12px; }
  .hero p { font-size: 18px; }
  .btn { font-size: 19px; padding: 10px 22px; }
  .device-logo { width: 76px; bottom: -22px; }
}

/* Phones: keep everything inside the screen, a bit larger and easier to tap. */
@media (max-width: 700px) {
  .hero { padding: 12px 14px 80px; }
  .hero-in { margin-top: 18px; gap: 22px; }
  .hero h1 { font-size: 38px; }
  .device { transform: none; padding: 10px; border-radius: 26px; }
  .device-logo { inset-inline-start: 10px; bottom: -26px; }
  .btn { display: block; text-align: center; }
  .badges { justify-content: center; }
  .badges span { font-size: 15px; }
  section { padding: 36px 14px; }
  .card { padding: 16px; }
  .card b { font-size: 36px; }
  .strip img { width: 86vw; }
  .parents ul { font-size: 17px; }
  .form-wrap { padding: 18px; border-radius: 22px; }
  .kinds label { flex: 1 1 100%; }
  .rel { padding: 16px; }
  .rel time { margin-inline-start: 0; width: 100%; }
}

/* Bot trap: invisible and takes no room. */
.form-wrap .hp, .hp { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
html, body { overflow-x: hidden; }

/* The download button, styled like the official store badges. */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; direction: ltr;
  background: #000; color: #fff; text-decoration: none;
  border: 2px solid #A6A6A6; border-radius: 14px; padding: 8px 22px 8px 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,.25); transition: transform .1s;
}
.store-badge:active { transform: scale(.97); }
.store-badge svg { width: 42px; height: 42px; flex: none; }
.store-badge .sb-text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.store-badge small { font-size: 13px; letter-spacing: .5px; font-weight: 700; }
.store-badge b { font-family: system-ui, 'Segoe UI', Roboto, sans-serif; font-size: 28px; font-weight: 600; }
.store-badge.small svg { width: 30px; height: 30px; }
.store-badge.small b { font-size: 21px; }
.parents .store-badge { margin-top: 8px; }
@media (max-width: 700px) { .store-badge { display: flex; justify-content: center; } }
