/* Makhraj — mushaf green and gold. Light and dark follow the system. */
:root {
  --bg: #f6f4ee;
  --surface: #ffffff;
  --surface-2: #efece3;
  --ink: #0f1f19;
  --muted: #5d6b64;
  --line: rgba(15, 31, 25, .09);
  --green: #0b6b4f;
  --green-soft: rgba(11, 107, 79, .1);
  --gold: #d4a94f;
  --deep-1: #052219;
  --deep-2: #0a3a2b;
  --on-deep: #ffffff;
  --on-deep-muted: rgba(226, 240, 233, .78);
  --shadow: 0 1px 2px rgba(15, 31, 25, .05), 0 10px 30px -12px rgba(15, 31, 25, .18);
  --r: 22px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07120e;
    --surface: #0e1c17;
    --surface-2: #0b1813;
    --ink: #eaf0ed;
    --muted: #94a59c;
    --line: rgba(255, 255, 255, .08);
    --green: #52c99b;
    --green-soft: rgba(82, 201, 155, .12);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -12px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3, p { margin: 0; }
h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; }
h3 { font-size: 17px; line-height: 1.3; letter-spacing: -.01em; font-weight: 700; }
svg { flex: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
section { padding: 72px 0; }
.head { margin-bottom: 28px; }
.head p { color: var(--muted); font-size: 17px; margin-top: 10px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -.02em; margin-right: auto; }
.brand img { border-radius: 8px; }
.brand.small { font-size: 15px; margin: 0; }
.brand.small img { border-radius: 6px; }
.menu { display: flex; gap: 4px; }
.menu a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 10px; }
.menu a:hover { color: var(--ink); background: var(--surface-2); }

.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 17px; height: 17px; color: var(--muted); }
.lang summary svg:last-child { width: 15px; height: 15px; transition: transform .2s; }
.lang[open] summary svg:last-child { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  display: grid; gap: 2px;
}
.lang-menu a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; }
.lang-menu a b { width: 32px; font-size: 12px; font-weight: 700; color: var(--muted); }
.lang-menu a:hover { background: var(--surface-2); }
.lang-menu a[aria-current] { background: var(--green-soft); color: var(--green); }
.lang-menu a[aria-current] b { color: var(--green); }

.top-cta {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 12px;
  background: var(--ink); color: var(--bg); text-decoration: none; font-size: 14px; font-weight: 600;
}
.top-cta svg { width: 15px; height: 15px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 72px 0 0; text-align: center; color: var(--on-deep);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23d4a94f' stroke-opacity='.10' stroke-width='1'%3E%3Cpolygon points='72.0,36.0 61.5,46.5 61.5,61.5 46.5,61.5 36.0,72.0 25.5,61.5 10.5,61.5 10.5,46.5 0.0,36.0 10.5,25.5 10.5,10.5 25.5,10.5 36.0,0.0 46.5,10.5 61.5,10.5 61.5,25.5'/%3E%3Cpolygon points='50.0,41.8 44.2,44.2 41.8,50.0 36.0,47.6 30.2,50.0 27.8,44.2 22.0,41.8 24.4,36.0 22.0,30.2 27.8,27.8 30.2,22.0 36.0,24.4 41.8,22.0 44.2,27.8 50.0,30.2 47.6,36.0'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--deep-2), var(--deep-1));
}
.glow { position: absolute; width: 900px; height: 600px; left: 50%; top: -260px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(212, 169, 79, .28), transparent); pointer-events: none; }
.hero-in { position: relative; max-width: 860px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: var(--gold);
  font-size: 14px; font-weight: 600;
}
.kicker .ar { font-family: "Geeza Pro", "Noto Naskh Arabic", "Amiri", serif; font-size: 19px; line-height: 1; }
.kicker .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.hero h1 { margin-top: 22px; font-size: clamp(34px, 6.2vw, 68px); line-height: 1.05; letter-spacing: -.04em; font-weight: 800; text-wrap: balance; }
.gold { background: linear-gradient(92deg, #f7dc9a, #d4a94f 60%, #c18f35); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 20px auto 0; max-width: 640px; color: var(--on-deep-muted); font-size: clamp(17px, 1.8vw, 19px); text-wrap: pretty; }

.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px; border-radius: 16px;
  background: #fff; color: #0b0f0d; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.store svg { width: 26px; height: 26px; }
.store span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; text-align: left; }
.store small { font-size: 11.5px; font-weight: 500; opacity: .7; white-space: nowrap; }
.store b { font-size: 19px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
a.store:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5); }
.store.soon { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .75); border: 1px solid rgba(255, 255, 255, .16); cursor: default; }
.store.soon svg { opacity: .7; }

.badges { list-style: none; padding: 0; margin: 22px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; color: var(--on-deep-muted); font-size: 14px; font-weight: 500; }
.badges li { display: inline-flex; align-items: center; gap: 6px; }
.badges svg { width: 16px; height: 16px; color: var(--gold); stroke-width: 2.6; }

.fan { position: relative; height: 470px; margin-top: 56px; }
.fan img { position: absolute; left: 50%; bottom: -150px; width: 270px; border-radius: 30px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.fan .c { width: 300px; transform: translateX(-50%); z-index: 2; bottom: -120px; }
.fan .l { transform: translateX(calc(-50% - 230px)) rotate(-7deg); opacity: .92; }
.fan .r { transform: translateX(calc(-50% + 230px)) rotate(7deg); opacity: .92; }
.fan::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; z-index: 3; background: linear-gradient(transparent, var(--deep-1)); }

/* ---------- Features (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.tile h3 { margin-top: 14px; }
.tile p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); }
.ic svg { width: 22px; height: 22px; }
.tile.big {
  grid-column: span 2; grid-row: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0; overflow: hidden;
  background: linear-gradient(160deg, var(--deep-2), var(--deep-1)); border-color: transparent; color: var(--on-deep);
}
.tile.big .txt { padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; }
.tile.big h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.03em; line-height: 1.15; margin-top: 18px; }
.tile.big p { color: var(--on-deep-muted); font-size: 16px; margin-top: 10px; }
.gold-ic { color: var(--gold); background: rgba(212, 169, 79, .16); }
.crop { position: relative; overflow: hidden; min-height: 300px; }
.crop img { position: absolute; left: 50%; bottom: 26px; width: min(300px, 84%); transform: translateX(-50%) rotate(3deg); border-radius: 24px; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .7); }

.steps {
  margin-top: 14px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px;
}
.steps h3 { font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.steps ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; flex: 1; }
.steps li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.steps li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #1d1503; font-size: 14px; font-weight: 800; flex: none; }

/* ---------- Screenshots ---------- */
.shots { padding-top: 8px; }
.strip {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px max(20px, calc((100vw - 1120px) / 2 + 20px)) 16px;
}
.strip::-webkit-scrollbar { display: none; }
.strip img { flex: 0 0 auto; width: 230px; border-radius: 26px; scroll-snap-align: center; box-shadow: var(--shadow); background: var(--deep-2); }

/* ---------- Privacy ---------- */
.privacy { padding-top: 40px; }
.privacy-card {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px 40px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 36px; box-shadow: var(--shadow);
}
.privacy-head { display: flex; flex-direction: column; gap: 16px; }
.privacy-card ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.privacy-card li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 15px; background: var(--surface-2); border-radius: 14px; padding: 14px; }
.privacy-card li svg { width: 18px; height: 18px; color: var(--green); stroke-width: 2.6; margin-top: 2px; }
.privacy-card .more { grid-column: 1; font-weight: 600; text-decoration: none; font-size: 15px; }
.privacy-card .more:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 50px 18px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352a07f' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { padding-top: 16px; }
.cta-card {
  position: relative; overflow: hidden; text-align: center; color: var(--on-deep); border-radius: 32px; padding: 56px 20px;
  background: linear-gradient(180deg, var(--deep-2), var(--deep-1));
  display: flex; flex-direction: column; align-items: center;
}
.cta-card .glow { top: -380px; }
.cta-card img { position: relative; border-radius: 20px; box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .6); }
.cta-card h2 { position: relative; margin-top: 22px; }
.cta-card p { position: relative; color: var(--on-deep-muted); margin-top: 8px; }
.cta-card .stores { position: relative; margin-top: 26px; }

/* ---------- Footer ---------- */
.foot { padding: 8px 0 calc(32px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.copy { margin-left: auto; }

/* ---------- Tablet ---------- */
@media (max-width: 920px) {
  .menu { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.big { grid-row: auto; }
  .privacy-card { grid-template-columns: 1fr; }
  .fan .l { transform: translateX(calc(-50% - 170px)) rotate(-7deg); }
  .fan .r { transform: translateX(calc(-50% + 170px)) rotate(7deg); }
}
/* ---------- Phone ---------- */
@media (max-width: 600px) {
  section { padding: 52px 0; }
  .wrap { padding: 0 16px; }
  .top-in { gap: 8px; }
  .top-cta span { display: none; }
  .top-cta { width: 38px; padding: 0; justify-content: center; }
  .hero { padding-top: 40px; }
  .hero h1 { margin-top: 18px; }
  .lead { font-size: 16px; }
  .stores { gap: 10px; margin-top: 26px; }
  .store { flex: 1 1 0; min-width: 0; height: 52px; padding: 0 10px; justify-content: center; gap: 8px; border-radius: 14px; }
  .store svg { width: 22px; height: 22px; }
  .store small { font-size: 10.5px; }
  .store b { font-size: 16.5px; }
  .badges { gap: 6px 14px; font-size: 13px; }
  .fan { height: 330px; margin-top: 40px; }
  .fan img { width: 160px; border-radius: 20px; bottom: -110px; }
  .fan .c { width: 190px; bottom: -80px; }
  .fan .l { transform: translateX(calc(-50% - 112px)) rotate(-7deg); }
  .fan .r { transform: translateX(calc(-50% + 112px)) rotate(7deg); }
  .head { margin-bottom: 20px; }
  .bento { grid-template-columns: 1fr; gap: 10px; }
  .tile.big { grid-column: auto; grid-template-columns: 1fr; }
  .tile.big .txt { padding: 24px 22px 0; }
  .crop { min-height: 300px; }
  .crop img { width: 230px; bottom: 20px; }
  .tile:not(.big) { padding: 18px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; }
  .tile:not(.big) .ic { grid-row: span 2; }
  .tile:not(.big) h3 { margin-top: 1px; }
  .tile:not(.big) p { margin-top: 3px; }
  .steps { flex-direction: column; align-items: flex-start; gap: 12px; }
  .steps ol { flex-direction: column; gap: 10px; }
  .strip img { width: 62vw; max-width: 240px; border-radius: 22px; }
  .privacy-card { padding: 24px 18px; border-radius: 24px; }
  .privacy-card ul { grid-template-columns: 1fr; gap: 8px; }
  .faq-grid { grid-template-columns: 1fr; gap: 8px; }
  .cta-card { padding: 44px 16px; border-radius: 26px; }
  .copy { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.faq { padding-top: 24px; }
@media (max-width: 600px) {
  .bento { gap: 8px; }
  .tile:not(.big) { padding: 14px 16px; border-radius: 18px; box-shadow: none; }
  .tile:not(.big) .ic { width: 38px; height: 38px; border-radius: 11px; }
  .tile:not(.big) h3 { font-size: 16px; }
  .tile:not(.big) p { font-size: 14px; line-height: 1.45; }
}

/* Language menu: Uzbek opens into Latin and Cyrillic */
.lang-menu .sub summary {
  list-style: none; cursor: pointer; display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px;
  color: var(--ink); font-size: 15px;
}
.lang-menu .sub summary::-webkit-details-marker { display: none; }
.lang-menu .sub summary b { width: 32px; font-size: 12px; font-weight: 700; color: var(--muted); }
.lang-menu .sub summary svg { width: 15px; height: 15px; margin-left: auto; color: var(--muted); transition: transform .2s; }
.lang-menu .sub[open] summary svg { transform: rotate(180deg); }
.lang-menu .sub summary:hover { background: var(--surface-2); }
.lang-menu .sub summary.cur { color: var(--green); }
.lang-menu .sub summary.cur b { color: var(--green); }
.lang-menu .sub-items { display: grid; gap: 2px; margin: 2px 0 4px 42px; padding-left: 10px; border-left: 2px solid var(--line); }
.lang-menu .sub-items a { padding: 7px 10px; font-size: 14.5px; }

/* Videos */
.videos { padding-top: 24px; padding-bottom: 24px; }
.vids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vid { margin: 0; }
.vid video { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 24px; background: var(--deep-1); box-shadow: var(--shadow); display: block; }
.vid figcaption { margin-top: 10px; font-weight: 600; text-align: center; }
@media (max-width: 600px) {
  .vids { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none; }
  .vids::-webkit-scrollbar { display: none; }
  .vid { flex: 0 0 72vw; max-width: 280px; scroll-snap-align: center; }
}

@media (min-width: 601px) { .vids { max-width: 860px; } }
