/* ============================================================
   QLINGO — landing page
   Direction: warm "manuscript" premium — paper + emerald + gold,
   with a real pointed mihrab arch and khatam-star geometry.
============================================================ */

:root {
  --paper: #f6f4ec;        /* warm off-white page base */
  --paper-2: #efece1;      /* slightly deeper paper for bands */
  --surface: #e7efe9;      /* soft mint surface */
  --emerald: #0f8a5f;
  --emerald-600: #0b6e4c;
  --emerald-700: #095b3f;
  --pine: #062a1c;         /* dark premium bg */
  --pine-2: #042015;
  --gold: #c9a24b;
  --gold-soft: #e7cd8e;
  --ink: #11201a;
  --muted: #586a60;
  --line: rgba(11, 110, 76, 0.14);
  --glass: rgba(255, 255, 255, 0.62);
  --shadow-soft: 0 14px 40px rgba(6, 42, 28, 0.09);
  --shadow-lift: 0 24px 60px rgba(6, 42, 28, 0.16);
  --shadow-device: 0 30px 60px rgba(6, 42, 28, 0.28);
  --content: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(76px, 10vw, 148px);
  --r-card: 22px;
  --r-device: 30px;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Satoshi", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 1000;
  transform: translateY(-160%);
  border-radius: 999px; background: var(--pine); color: #fff; padding: 10px 16px;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(100% - (var(--gutter) * 2), var(--content)); margin-inline: auto; }
.section-pad { padding-block: var(--section); position: relative; }

/* ---------- Typography ---------- */
h1, h2, h3, p { margin-top: 0; }

h1, h2 {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
}
h2 { font-size: clamp(2.05rem, 4vw, 3.3rem); }
h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  color: var(--ink);
  font-size: clamp(1.22rem, 2vw, 1.5rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.lead { color: var(--muted); max-width: 64ch; font-size: 1.075rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--emerald-600);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  margin-bottom: 16px; text-transform: uppercase;
}
.eyebrow .eyebrow-mark { color: var(--gold); font-size: 1.05em; }
.eyebrow.gold { color: var(--gold-soft); }

.section-heading { max-width: 760px; margin-bottom: clamp(38px, 6vw, 68px); }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading.center .eyebrow { justify-content: center; }
.section-heading.center .lead { margin-inline: auto; }

/* ============================================================
   Geometry: mihrab arch + khatam-star field
============================================================ */
.rib { fill: none; stroke: var(--emerald); }
.rib-1 { stroke: rgba(11, 110, 76, 0.45); stroke-width: 1.4; }
.rib-2 { stroke: rgba(201, 162, 75, 0.55); stroke-width: 1.4; }
.rib-3 { stroke: rgba(11, 110, 76, 0.18); stroke-width: 1.4; }
.rib-cta { stroke: rgba(255, 255, 255, 0.5); stroke-width: 1.4; }

/* khatam (8-point star) tiled background, drawn as inline SVG data-URI */
.girih-field {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cg fill='none' stroke='%230f8a5f' stroke-width='1.4'%3E%3Cpath d='M45 8 L52 30 L74 23 L60 42 L82 49 L59 53 L66 76 L46 62 L34 84 L29 60 L7 65 L24 47 L4 38 L27 33 L20 11 L40 26 Z'/%3E%3Crect x='28' y='28' width='34' height='34' transform='rotate(45 45 45)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 180px 180px;
}
.girih-field-dark {
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cg fill='none' stroke='%23c9a24b' stroke-width='1.4'%3E%3Cpath d='M45 8 L52 30 L74 23 L60 42 L82 49 L59 53 L66 76 L46 62 L34 84 L29 60 L7 65 L24 47 L4 38 L27 33 L20 11 L40 26 Z'/%3E%3Crect x='28' y='28' width='34' height='34' transform='rotate(45 45 45)'/%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================================
   Navigation
============================================================ */
.site-header {
  position: fixed; left: 0; right: 0; top: 0; z-index: 50;
  padding: 14px var(--gutter);
  transition: padding 220ms ease;
}
.nav-shell {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--content); margin-inline: auto;
  padding: 9px 9px 9px 16px;
  border: 1px solid transparent; border-radius: 999px;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.site-header.is-scrolled .nav-shell {
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  background: rgba(246, 244, 236, 0.78);
  border-color: rgba(11, 110, 76, 0.12);
  box-shadow: var(--shadow-soft);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: 0.01em; }
.brand img { border-radius: 11px; }
.brand span { color: var(--emerald-600); font-size: 1.08rem; }

.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 30px); font-size: 0.95rem; font-weight: 700; }
.nav-links > a:not(.nav-cta) { position: relative; color: var(--ink); }
.nav-links > a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 200ms ease;
}
.nav-links > a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--emerald); color: #fff; border-radius: 999px; padding: 11px 20px;
  transition: background 180ms ease, transform 180ms ease;
}
.nav-cta:hover { background: var(--emerald-600); transform: translateY(-1px); }

.nav-new {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  background: var(--gold); color: #06251a;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px;
}

.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px;
  background: var(--emerald); align-items: center; justify-content: center; position: relative;
}
.menu-toggle span { position: absolute; width: 18px; height: 2px; border-radius: 999px; background: #fff; transition: transform 200ms ease; }
.menu-toggle span:first-child { transform: translateY(-4px); }
.menu-toggle span:last-child { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

/* ============================================================
   Hero
============================================================ */
.hero {
  min-height: 100svh; overflow: hidden;
  padding-top: clamp(124px, 16vw, 188px);
  background:
    radial-gradient(120% 80% at 78% 8%, rgba(201, 162, 75, 0.12), transparent 42%),
    radial-gradient(90% 70% at 10% 0%, rgba(15, 138, 95, 0.08), transparent 46%),
    var(--paper);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; align-items: center;
  gap: clamp(40px, 6vw, 86px);
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
}
.hero-title { font-size: clamp(2.7rem, 6vw, 5rem); font-weight: 500; max-width: 14ch; }
.title-accent { font-style: italic; color: var(--emerald); }
.hero-subhead { color: var(--muted); font-size: clamp(1.08rem, 1.8vw, 1.26rem); max-width: 56ch; margin-top: 22px; }

.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-block: 30px 16px; }
.store-badge { display: inline-block; border-radius: 14px; transition: transform 180ms ease; }
.store-badge:hover { transform: translateY(-2px) scale(1.02); }
.trust-line { color: var(--muted); font-size: 0.95rem; font-weight: 700; }

/* Hero announcement pill → Salah Recorder */
.hero-announce {
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 18px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 138, 95, 0.18); box-shadow: var(--shadow-soft);
  font-size: 0.88rem; font-weight: 600; color: var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.hero-announce:hover { transform: translateY(-1px); border-color: rgba(201, 162, 75, 0.5); box-shadow: var(--shadow-lift); }
.hero-announce-tag { background: var(--gold); color: #06251a; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.hero-announce svg { width: 16px; height: 16px; color: var(--emerald); transition: transform 180ms ease; }
.hero-announce:hover svg { transform: translateX(3px); }

/* Hero refer & earn highlight */
.hero-refer {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(201, 162, 75, 0.14); border: 1px solid rgba(201, 162, 75, 0.45);
  color: var(--ink); font-size: 0.92rem; font-weight: 600;
  transition: transform 180ms ease, background 180ms ease;
}
.hero-refer:hover { background: rgba(201, 162, 75, 0.22); transform: translateY(-1px); }
.hero-refer strong { color: var(--emerald-700); font-weight: 800; }
.hero-refer svg { width: 17px; height: 17px; }
.hero-refer [data-lucide="gift"] { color: var(--gold); }
.hero-refer [data-lucide="arrow-right"] { color: var(--emerald); transition: transform 180ms ease; }
.hero-refer:hover [data-lucide="arrow-right"] { transform: translateX(3px); }

/* ---------- Reusable CTA button + repeated section CTAs ---------- */
.btn-cta {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--emerald); color: #fff; font-weight: 700; font-size: 1.02rem;
  padding: 15px 30px; border-radius: 999px;
  box-shadow: 0 12px 28px rgba(15, 138, 95, 0.3);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.btn-cta:hover { background: var(--emerald-600); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(15, 138, 95, 0.36); }
.btn-cta svg { width: 20px; height: 20px; }
.btn-cta.gold { background: var(--gold); color: #06251a; box-shadow: 0 12px 28px rgba(201, 162, 75, 0.34); }
.btn-cta.gold:hover { background: #b8923f; }

.section-cta { margin-top: clamp(36px, 5vw, 60px); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.section-cta-note { color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.dark-section .section-cta-note { color: rgba(255, 255, 255, 0.72); }
.promise .section-cta { margin-top: 28px; }

/* --- mihrab scene --- */
.hero-visual { display: grid; justify-items: center; }
.mihrab-scene {
  position: relative; width: min(100%, 440px); aspect-ratio: 320 / 470;
  isolation: isolate;
}
.mihrab-art, .arch-frame-art {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none;
}
.niche-fill {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(80% 60% at 50% 14%, rgba(201, 162, 75, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(231, 239, 233, 0.4));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 470'%3E%3Cpath d='M30 470 L30 178 C30 92 92 12 160 12 C228 12 290 92 290 178 L290 470 Z' fill='%23000'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 470'%3E%3Cpath d='M30 470 L30 178 C30 92 92 12 160 12 C228 12 290 92 290 178 L290 470 Z' fill='%23000'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
/* brand artwork inside the niche */
.mihrab-scene .mihrab-art { z-index: 2; }
.niche-art {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 50% 58%, #15665d 0%, #0c3a37 52%, #07292a 100%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 470'%3E%3Cpath d='M30 470 L30 178 C30 92 92 12 160 12 C228 12 290 92 290 178 L290 470 Z' fill='%23000'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 470'%3E%3Cpath d='M30 470 L30 178 C30 92 92 12 160 12 C228 12 290 92 290 178 L290 470 Z' fill='%23000'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
}
.niche-art img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.niche-glow {
  position: absolute; inset: -12% -8% 4%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 30%, rgba(201, 162, 75, 0.4), transparent 55%);
  filter: blur(20px);
}

.lamp {
  position: absolute; top: 3.5%; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 14px; height: 26px; pointer-events: none;
}
.lamp::before { /* chain */
  content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 12px; background: rgba(201, 162, 75, 0.6);
}
.lamp span {
  display: block; width: 14px; height: 18px; margin-top: 4px;
  background: radial-gradient(circle at 50% 35%, #fff6df, var(--gold));
  border-radius: 50% 50% 46% 46%;
  box-shadow: 0 0 18px 4px rgba(201, 162, 75, 0.55);
}
.beam {
  position: absolute; top: 6%; left: 50%; transform: translateX(-50%); z-index: 1;
  width: 60%; height: 78%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 240, 200, 0.55), rgba(201, 162, 75, 0.12) 45%, transparent 80%);
  clip-path: polygon(44% 0, 56% 0, 84% 100%, 16% 100%);
  filter: blur(7px); opacity: 0.85;
}
.scripture {
  position: absolute; top: 16%; left: 50%; transform: translateX(-50%); z-index: 1;
  font-family: "Amiri", serif; font-size: clamp(3.4rem, 9vw, 6rem); line-height: 1;
  color: rgba(201, 162, 75, 0.3); pointer-events: none;
}

/* --- floating chips --- */
.chip {
  position: absolute; z-index: 5; display: flex; align-items: center; gap: 11px;
  padding: 11px 15px 11px 11px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.82); border: 1px solid rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 16px 38px rgba(6, 42, 28, 0.16);
}
.chip-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px; background: var(--emerald); color: #fff;
}
.chip-ico.chip-ico-gold { background: var(--gold); }
.chip-ico svg { width: 18px; height: 18px; }
.chip p { margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.chip strong { font-size: 0.95rem; color: var(--ink); }
.chip-azaan { left: -6%; top: 22%; }
.chip-streak { right: -6%; bottom: 16%; }

/* ============================================================
   Device frame + screen mocks
============================================================ */
/* iPhone-style device frame */
.device {
  position: relative; z-index: 2;
  width: min(214px, 54vw); aspect-ratio: 1080 / 2340;
  padding: 6px; border-radius: 42px;
  background: linear-gradient(140deg, #50555b 0%, #15191c 26%, #0a0c0e 68%, #23282d 100%);
  box-shadow: var(--shadow-device), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
}
/* Dynamic Island */
.device::before {
  content: ""; position: absolute; z-index: 4;
  top: 2.4%; left: 50%; transform: translateX(-50%);
  width: 31%; height: 1.7%; min-height: 7px;
  background: #050505; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
/* side power button */
.device::after {
  content: ""; position: absolute; z-index: 1; right: -1.5px; top: 23%;
  width: 2px; height: 9%;
  background: linear-gradient(90deg, #3a3f45, #0a0c0e);
  border-radius: 0 2px 2px 0;
}
.device-hero { width: min(252px, 60vw); margin-inline: auto; }
.device-sm { width: 150px; }
.device-game { width: min(210px, 62vw); margin: 18px auto -36px; }
.mihrab-scene .device { position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%); }

/* real screenshot inside any device frame */
.device > img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; display: block; }

.device-screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: 23px; background: var(--paper);
  display: flex; flex-direction: column;
  font-size: 11px; line-height: 1.3;
}
.scr-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 14px 3px; font-size: 9px; font-weight: 700; color: var(--ink);
}
.scr-status-ico { letter-spacing: -1px; font-size: 7px; }
.scr-appbar {
  display: flex; align-items: center; gap: 8px; padding: 8px 13px 10px;
  color: #fff; background: linear-gradient(120deg, var(--emerald), var(--emerald-700));
}
.scr-appbar strong { font-size: 12px; flex: 1; font-weight: 700; }
.scr-appbar svg { width: 15px; height: 15px; opacity: 0.92; }
.scr-appbar.dark { background: linear-gradient(120deg, #0c3a28, #062a1c); }
.scr-week { font-size: 9px; opacity: 0.8; font-weight: 600; }
.scr-body { padding: 13px; flex: 1; }
.scr-eyebrow { color: var(--emerald-600); font-weight: 700; font-size: 8.5px; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 8px; }
.scr-eyebrow.light { color: rgba(255,255,255,0.8); }

/* Salah meanings */
.scr-arabic { font-family: "Amiri", serif; font-size: 21px; line-height: 1.7; text-align: center; color: var(--ink); margin: 4px 0 14px; direction: rtl; }
.scr-arabic.sm { font-size: 17px; margin: 8px 0 10px; }
.scr-words { display: flex; flex-wrap: wrap; gap: 5px; direction: rtl; }
.scr-words span {
  display: inline-flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 4px 7px; border-radius: 9px; background: var(--surface);
  font-size: 8px; color: var(--muted);
}
.scr-words span b { font-family: "Amiri", serif; font-size: 13px; color: var(--ink); font-weight: 700; }
.scr-words span.on { background: rgba(15, 138, 95, 0.14); outline: 1.5px solid var(--emerald); }
.scr-words span.on b { color: var(--emerald-600); }
.scr-note { display: flex; align-items: center; gap: 5px; margin-top: 13px; color: var(--gold); font-weight: 700; font-size: 9px; }
.scr-note svg { width: 12px; height: 12px; }
.scr-progress { height: 6px; border-radius: 999px; background: var(--surface); margin-top: 14px; overflow: hidden; }
.scr-progress.dark { background: rgba(255,255,255,0.14); }
.scr-progress i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--emerald), var(--gold)); }
.scr-progress-label { margin: 6px 0 0; font-size: 8.5px; color: var(--muted); font-weight: 600; }

/* Azaan */
.scr-azaan { background: linear-gradient(180deg, #0c3a28, #062a1c); color: #fff; }
.scr-azaan-head { padding: 18px 16px 4px; text-align: center; }
.scr-azaan-head strong { display: block; font-size: 15px; margin-top: 3px; }
.scr-azaan-head span { font-size: 9px; opacity: 0.7; }
.scr-azaan-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 40px; margin: 8px 0; }
.scr-azaan-wave i { width: 3px; border-radius: 999px; background: var(--gold-soft); animation: wave 1.1s ease-in-out infinite; }
.scr-azaan-wave i:nth-child(odd) { animation-delay: 0.18s; }
.scr-azaan-wave i:nth-child(3n) { animation-delay: 0.36s; }
@keyframes wave { 0%,100% { height: 10px; } 50% { height: 32px; } }
.scr-azaan-play {
  display: block; width: 42px; height: 42px; margin: 0 auto 14px; border: 0; border-radius: 999px;
  background: var(--gold); color: #062a1c;
}
.scr-azaan-play svg { width: 18px; height: 18px; margin: 0 auto; }
.scr-times { padding: 0 12px 12px; }
.scr-times li { display: flex; justify-content: space-between; padding: 7px 11px; border-radius: 10px; font-size: 10px; }
.scr-times li b { font-weight: 700; }
.scr-times li.on { background: rgba(201, 162, 75, 0.22); }
.scr-times li.on b { color: var(--gold-soft); }

/* Language */
.scr-lang-list { padding: 8px 11px; flex: 1; }
.scr-lang-list li { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; margin-bottom: 6px; border-radius: 11px; background: var(--surface); font-size: 12px; font-weight: 600; }
.scr-lang-list li.on { background: rgba(15, 138, 95, 0.12); outline: 1.5px solid var(--emerald); color: var(--emerald-700); }
.scr-lang-list li i { width: 14px; height: 14px; color: var(--emerald); }

/* Gamification */
.scr-game { background: linear-gradient(180deg, #0c3a28, #062a1c); color: #fff; }
.scr-game-top { display: flex; gap: 10px; padding: 14px 13px 8px; }
.scr-ring {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  aspect-ratio: 1; border-radius: 50%; border: 4px solid var(--gold);
  background: rgba(201,162,75,0.08);
}
.scr-ring b { font-size: 15px; }
.scr-ring span { font-size: 8px; opacity: 0.7; }
.scr-streak { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 14px; background: rgba(255,255,255,0.06); }
.scr-streak svg { width: 20px; height: 20px; color: var(--gold); }
.scr-streak b { font-size: 17px; }
.scr-streak span { font-size: 8px; opacity: 0.7; }
.scr-badges { display: flex; gap: 7px; padding: 4px 13px 10px; }
.scr-badges i { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,0.08); color: var(--gold-soft); }
.scr-badges i svg { width: 15px; height: 15px; }
.scr-badges i[data-lucide="lock"] { color: rgba(255,255,255,0.3); }
.scr-bars { display: flex; align-items: flex-end; gap: 5px; height: 56px; padding: 0 13px 14px; }
.scr-bars i { flex: 1; border-radius: 4px 4px 0 0; background: rgba(255,255,255,0.18); }
.scr-bars i.hot { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); }

/* Quiz duel */
.scr-vs { background: linear-gradient(180deg, #0c3a28, #062a1c); color: #fff; }
.scr-vs-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 14px 10px; }
.scr-vs-p { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; }
.scr-vs-p .ava { width: 36px; height: 36px; }
.scr-vs-p b { font-size: 10px; }
.scr-vs-p em { font-style: normal; font-family: "Fraunces", serif; font-size: 22px; color: var(--gold-soft); }
.scr-vs-mark { font-family: "Fraunces", serif; font-size: 14px; color: var(--gold); }
.scr-vs-q { text-align: center; font-size: 10px; opacity: 0.8; margin: 4px 0 10px; }
.scr-cta { display: block; width: calc(100% - 26px); margin: 14px 13px; padding: 9px; border: 0; border-radius: 11px; background: var(--gold); color: #062a1c; font-weight: 700; font-size: 10px; }

/* Leaderboard */
.scr-board { background: linear-gradient(180deg, #0c3a28, #062a1c); color: #fff; }
.scr-rank { padding: 10px 11px; }
.scr-rank li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; margin-bottom: 5px; border-radius: 11px; background: rgba(255,255,255,0.05); font-size: 10px; }
.scr-rank li .rk { width: 16px; text-align: center; font-weight: 700; color: rgba(255,255,255,0.6); }
.scr-rank li .rk svg { width: 14px; height: 14px; color: var(--gold); margin: 0 auto; }
.scr-rank li b { flex: 1; font-weight: 600; }
.scr-rank li em { font-style: normal; font-weight: 700; color: var(--gold-soft); }
.scr-rank li.top { background: rgba(201,162,75,0.2); outline: 1px solid rgba(201,162,75,0.4); }
.scr-rank li.me { background: rgba(15,138,95,0.28); outline: 1px solid var(--emerald); }

/* avatar initials */
.ava { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 999px; color: #fff; font-size: 9px; font-weight: 800; }
.ava.a { background: #0f8a5f; } .ava.b { background: #c9a24b; } .ava.c { background: #2f7d8a; }
.ava.d { background: #095b3f; font-size: 7px; } .ava.e { background: #8a5a2f; }

/* ============================================================
   Marquee
============================================================ */
.marquee-strip {
  display: flex; gap: 28px; overflow: hidden; padding-block: 15px;
  background: var(--pine); color: #fff;
  border-block: 1px solid rgba(201, 162, 75, 0.18);
}
.marquee-track { display: flex; align-items: center; gap: 28px; white-space: nowrap; animation: marquee 34s linear infinite; flex-shrink: 0; min-width: max-content; }
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: "Fraunces", serif; font-size: 1.15rem; color: rgba(255, 255, 255, 0.9); }
.marquee-track i { color: var(--gold); font-style: normal; }
@keyframes marquee { to { transform: translateX(calc(-100% - 28px)); } }

/* ============================================================
   Salah Recorder — spotlight
============================================================ */
.spotlight-section { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--surface), var(--paper)); }
.spotlight-section .container { position: relative; z-index: 1; }
.spotlight-glow {
  position: absolute; z-index: 0; top: 8%; left: 50%; transform: translateX(-50%);
  width: min(760px, 90%); height: 60%; pointer-events: none;
  background: radial-gradient(circle at 50% 30%, rgba(15, 138, 95, 0.16), transparent 60%);
  filter: blur(30px);
}

/* journey: 4 phones + numbered captions, dashed arch connector behind */
.sr-journey {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 3vw, 30px); margin: 0; padding: 0; list-style: none;
}
.sr-journey::before { /* arched connector behind the devices */
  content: ""; position: absolute; top: 150px; left: 12%; right: 12%; height: 70px;
  border-top: 2px dashed rgba(201, 162, 75, 0.5); border-radius: 50%; z-index: 0;
}
.sr-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.sr-step .device { width: min(178px, 92%); margin-bottom: 18px; }
.sr-step-num { font-family: "Fraunces", Georgia, serif; font-size: 1.1rem; font-weight: 600; color: var(--gold); letter-spacing: 0.08em; margin-bottom: 12px; }
.sr-step h3 { font-size: clamp(1.1rem, 1.7vw, 1.32rem); margin-bottom: 6px; }
.sr-step p { color: var(--muted); margin: 0; max-width: 24ch; font-size: 0.95rem; }

/* highlights row */
.sr-highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: clamp(40px, 5vw, 60px) 0 0; padding: 0; list-style: none; }
.sr-highlights li { display: flex; gap: 13px; align-items: flex-start; padding: 18px; border-radius: var(--r-card); background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow-soft); }
.sr-highlights .icon-bubble { width: 40px; height: 40px; margin: 0; flex: 0 0 auto; }
.sr-highlights .icon-bubble svg { width: 19px; height: 19px; }
.sr-highlights strong { display: block; color: var(--ink); font-size: 0.98rem; margin-bottom: 3px; }
.sr-highlights span { color: var(--muted); font-size: 0.88rem; }

/* ============================================================
   LEARN — bento
============================================================ */
.bento { display: grid; gap: 18px; grid-template-columns: 1.25fr 1fr 1fr; grid-auto-rows: 1fr; }

.card {
  position: relative; overflow: hidden; padding: 26px;
  background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--r-card); box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: rgba(201, 162, 75, 0.4); }
.card p { color: var(--muted); margin: 0; }

/* tiny corner arch flourish */
.card::after {
  content: ""; position: absolute; top: -38px; right: -30px; width: 96px; height: 110px;
  border: 1px solid var(--line); border-bottom: 0;
  border-radius: 50% 50% 14px 14px / 60% 60% 14px 14px;
  background: linear-gradient(180deg, rgba(15, 138, 95, 0.07), transparent 70%);
  pointer-events: none;
}

.icon-bubble {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: 18px; border-radius: 13px;
  background: linear-gradient(150deg, var(--emerald), var(--emerald-700)); color: #fff;
  box-shadow: 0 8px 18px rgba(15, 138, 95, 0.28);
}
.icon-bubble.gold { background: linear-gradient(150deg, var(--gold), #ab863a); box-shadow: 0 8px 18px rgba(201, 162, 75, 0.32); }
.icon-bubble svg { width: 22px; height: 22px; }

.card-feature { grid-row: span 2; display: flex; flex-direction: column; }
.card-feature-text { position: relative; z-index: 1; }
.card-feature-device { margin-top: auto; padding-top: 20px; display: flex; justify-content: center; }
.card-feature .device-sm { width: min(180px, 60%); }

/* horizontal feature card: copy + screenshot peek */
.card-h { display: grid; grid-template-columns: 1fr 90px; gap: 18px; align-items: center; }
.card-h > div { position: relative; z-index: 1; }
.card-h .icon-bubble { width: 42px; height: 42px; margin-bottom: 13px; }
.card-h h3 { font-size: clamp(1.1rem, 1.7vw, 1.3rem); }
.thumb-phone {
  position: relative; z-index: 1; width: 92px; aspect-ratio: 1080 / 2340;
  padding: 3px; border-radius: 20px;
  background: linear-gradient(140deg, #50555b, #0a0c0e 62%);
  box-shadow: 0 12px 26px rgba(6, 42, 28, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.thumb-phone::before { /* Dynamic Island */
  content: ""; position: absolute; z-index: 2; top: 3.4%; left: 50%; transform: translateX(-50%);
  width: 34%; height: 4.5px; background: #050505; border-radius: 999px;
}
.thumb-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 17px; display: block; }

.card-row { grid-column: span 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: center; }
.card-row-mock { background: var(--surface); border-radius: 14px; padding: 16px; }
.mock-q { margin: 0 0 10px; font-weight: 600; color: var(--ink); }
.mock-q b { color: var(--emerald-600); border-bottom: 2px dashed var(--emerald); padding: 0 14px; }
.mock-opts { display: flex; flex-wrap: wrap; gap: 7px; }
.mock-opts span { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 0.85rem; font-weight: 600; }
.mock-opts span.ok { background: rgba(15, 138, 95, 0.12); border-color: var(--emerald); color: var(--emerald-700); }

/* ============================================================
   CONNECT
============================================================ */
.connect-section { background: linear-gradient(180deg, var(--paper), var(--paper-2)); }
.connect-pair { display: grid; gap: clamp(40px, 7vw, 96px); }
.connect-row { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.connect-row-reverse { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); }
.connect-row-reverse .arch-frame { order: 2; }

.arch-frame { position: relative; display: grid; justify-items: center; aspect-ratio: 320 / 470; width: min(100%, 360px); margin-inline: auto; }
.arch-frame .device { position: absolute; bottom: 3%; left: 50%; transform: translateX(-50%); width: min(200px, 56vw); }
.connect-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.connect-copy p { color: var(--muted); }
.connect-copy .btn-cta { margin-top: 26px; }
.connect-copy strong { color: var(--emerald-600); }

/* Refer & earn */
.refer-section { background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.refer-section .icon-bubble { margin-top: 4px; }

.feature-list { display: grid; gap: 13px; margin-top: 22px; }
.feature-list li { display: flex; align-items: flex-start; gap: 11px; color: var(--ink); font-weight: 500; }
.feature-list svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--emerald); margin-top: 1px; }

/* Promise / transformation band */
.promise-section { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--surface), var(--paper)); }
.promise { position: relative; z-index: 1; max-width: 760px; margin-inline: auto; text-align: center; }
.promise .lead { margin-inline: auto; }
.promise-community { margin: 22px auto 0; max-width: 56ch; color: var(--muted); }
.promise-community strong { color: var(--emerald-600); }

/* Daily companion / Masjid module */
.companion-section { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--paper), var(--paper-2)); }
.companion-section .container { position: relative; z-index: 1; }
.companion-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .companion-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .companion-grid { grid-template-columns: 1fr; } }

/* ============================================================
   GAMIFY (dark)
============================================================ */
.dark-section { background: linear-gradient(180deg, var(--pine), var(--pine-2)); color: #fff; overflow: hidden; }
.dark-section h2, .dark-section h3 { color: #fff; }
.dark-section .lead { color: rgba(255, 255, 255, 0.72); }
.dark-section .container { position: relative; z-index: 2; }
.dark-glow { position: absolute; z-index: 1; border-radius: 999px; filter: blur(60px); opacity: 0.4; }
.dark-glow-one { width: 280px; height: 280px; background: var(--emerald); top: 120px; left: -90px; }
.dark-glow-two { width: 200px; height: 200px; background: var(--gold); bottom: 80px; right: 6vw; opacity: 0.32; }

.game-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); align-items: end; }
.game-card {
  position: relative; overflow: hidden; padding: 26px 24px 0;
  border-radius: var(--r-card); background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform 200ms ease, border-color 200ms ease;
}
.game-card:hover { transform: translateY(-5px); border-color: rgba(201, 162, 75, 0.4); }
.game-card .lead, .game-card p { color: rgba(255, 255, 255, 0.72); }
.game-copy h3 { margin-bottom: 6px; }
.game-card-peak { background: rgba(201, 162, 75, 0.08); border-color: rgba(201, 162, 75, 0.28); }
.leaderboard-device { box-shadow: 0 0 60px rgba(201, 162, 75, 0.35), var(--shadow-device), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14); }

/* ============================================================
   How it works
============================================================ */
.steps { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); position: relative; }
.steps::before {
  content: ""; position: absolute; top: 38px; left: 16%; right: 16%; height: 60px;
  border-top: 2px dashed rgba(201, 162, 75, 0.5); border-radius: 50%;
}
.steps li {
  position: relative; z-index: 1; padding: 32px 26px 28px; text-align: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.steps .step-link { display: block; color: inherit; }
.steps li:first-child { cursor: pointer; }
.steps li:first-child:hover { border-color: rgba(201, 162, 75, 0.55); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.step-num { font-family: "Fraunces", serif; font-size: 0.9rem; font-weight: 600; color: var(--gold); letter-spacing: 0.1em; }
.step-ico { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin: 12px auto 16px; border-radius: 50%; background: var(--surface); color: var(--emerald-600); }
.step-ico svg { width: 24px; height: 24px; }
.steps p { color: var(--muted); margin: 0; }

/* ============================================================
   Reviews
============================================================ */
.reviews-section { background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.reviews-swiper { padding: 8px 4px 70px; }
.review-card {
  position: relative; height: auto; padding: 30px 28px;
  background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--r-card); box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.quote-mark { position: absolute; top: 8px; right: 22px; font-family: "Fraunces", serif; font-size: 4rem; line-height: 1; color: rgba(201, 162, 75, 0.32); }
.stars { color: var(--gold); letter-spacing: 0.06em; margin-bottom: 14px; }
.review-card > p { color: var(--ink); font-size: 1.05rem; }
.review-by { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.review-by .ava { width: 40px; height: 40px; font-size: 14px; }
.review-by strong { display: block; }
.review-by span { color: var(--muted); font-size: 0.9rem; }

.swiper-controls { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 18px; z-index: 2; }
.swiper-nav { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--emerald); color: #fff; transition: background 180ms ease; }
.swiper-nav:hover { background: var(--emerald-600); }
.swiper-nav svg { width: 18px; height: 18px; }
.swiper-pagination { position: static; width: auto; }
.swiper-pagination-bullet { background: var(--muted); }
.swiper-pagination-bullet-active { background: var(--emerald); }

/* ============================================================
   Final CTA
============================================================ */
.cta-panel {
  position: relative; overflow: hidden; border-radius: 32px;
  background: linear-gradient(145deg, var(--emerald) 0%, var(--emerald-700) 68%, #084a37 100%);
  color: #fff; padding: clamp(40px, 6vw, 80px);
}
.cta-panel .girih-field-dark { z-index: 0; opacity: 0.07; }
.cta-glow {
  position: absolute; z-index: 0; top: -40%; right: -8%; width: 62%; height: 170%;
  background: radial-gradient(circle at 60% 30%, rgba(201, 162, 75, 0.45), transparent 56%);
  filter: blur(16px); pointer-events: none;
}
.cta-inner {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: minmax(0, 1fr) auto; gap: clamp(34px, 5vw, 72px); align-items: center;
}
.cta-copy { max-width: 33rem; }
.cta-copy h2 { color: #fff; margin-bottom: 16px; }
.cta-copy > p { color: rgba(255, 255, 255, 0.85); max-width: 44ch; margin-bottom: 28px; }
.cta-copy .store-row { margin: 0; }

/* QR in a branded, mihrab-domed card */
.cta-qr { position: relative; display: grid; justify-items: center; gap: 16px; }
.cta-qr::before {
  content: ""; position: absolute; z-index: 0; top: -10%; left: 50%; transform: translateX(-50%);
  width: 130%; height: 125%;
  background: radial-gradient(circle at 50% 36%, rgba(255, 240, 200, 0.32), transparent 60%);
  filter: blur(16px); pointer-events: none;
}
.qr-card {
  position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px;
  background: #fff; border-radius: 120px 120px 22px 22px; padding: 26px 26px 24px;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.32);
}
.qr-card::before {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  border: 1px solid rgba(201, 162, 75, 0.45); border-radius: 116px 116px 16px 16px;
}
.qr-logo { width: 46px; height: 46px; border-radius: 12px; }
.qr-img { width: 150px; height: 150px; border-radius: 10px; }
.qr-label { display: inline-flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, 0.92); font-weight: 700; font-size: 0.9rem; }
.qr-label svg { width: 16px; height: 16px; color: var(--gold-soft); }

/* ============================================================
   Footer
============================================================ */
.site-footer {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--pine), #03150d);
  color: rgba(255, 255, 255, 0.74); padding-block: 64px 26px;
}
.site-footer::before { /* gold hairline accent on top edge */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 75, 0.55), transparent);
}
.site-footer .girih-field-dark { opacity: 0.05; }
.site-footer .container { position: relative; z-index: 1; }

.footer-top { display: grid; gap: clamp(34px, 5vw, 64px); grid-template-columns: 1.5fr 2fr; align-items: start; }
.footer-links { display: grid; gap: 36px; grid-template-columns: repeat(3, 1fr); }
.footer-brand .brand img, .footer-brand img { border-radius: 12px; }
.footer-brand span { color: #fff; font-size: 1.15rem; }
.footer-brand-col p { margin: 16px 0 22px; max-width: 38ch; line-height: 1.6; }

.footer-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 0; }
.footer-badges .store-badge img { height: 46px; width: auto; }

.site-footer h2 { font-family: "Satoshi", sans-serif; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 16px; }
.site-footer a:not(.footer-brand):not(.store-badge), .site-footer label { display: block; margin-bottom: 11px; transition: color 160ms ease, padding 160ms ease; }
.site-footer a:not(.footer-brand):not(.store-badge):hover { color: #fff; padding-left: 4px; }
.social-row { display: flex; gap: 10px; margin-bottom: 20px; }
.social-row a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0; border-radius: 11px; background: rgba(255, 255, 255, 0.08); transition: background 160ms ease, transform 160ms ease; }
.social-row a:hover { background: rgba(201, 162, 75, 0.28); transform: translateY(-2px); }
.social-row svg { width: 18px; height: 18px; }
.site-footer select { width: 100%; max-width: 220px; padding: 10px 14px; border-radius: 11px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; }
.site-footer option { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.86rem; }
.footer-bismillah { font-family: "Amiri", serif; font-size: 1.2rem; color: var(--gold-soft); }

/* ============================================================
   Motion
============================================================ */
[data-parallax] { --parallax-y: 0px; transform: translate3d(0, var(--parallax-y), 0); will-change: transform; }
.reveal, .reveal-hero { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  [data-parallax] { transform: none !important; }
  .marquee-track { animation: none !important; }
}

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 1000px) {
  .hero-grid, .connect-row, .connect-row-reverse, .cta-inner { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .store-row { justify-content: center; }
  .hero-title { margin-inline: auto; }
  .connect-row-reverse .arch-frame { order: 0; }
  .connect-copy { text-align: center; }
  .connect-copy .icon-bubble { margin-inline: auto; }

  .bento { grid-template-columns: 1fr 1fr; }
  .card-feature { grid-row: span 2; }
  .card-row { grid-column: span 2; }

  .game-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }

  .sr-journey { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .sr-journey::before { display: none; }
  .sr-highlights { grid-template-columns: 1fr 1fr; }

  .cta-inner { justify-items: center; text-align: center; }
  .cta-copy .store-row { justify-content: center; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .nav-shell {
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    background: rgba(246, 244, 236, 0.82); border-color: rgba(11, 110, 76, 0.12);
  }
  .nav-links {
    position: absolute; left: var(--gutter); right: var(--gutter); top: 74px;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 14px;
    background: rgba(246, 244, 236, 0.97); border: 1px solid rgba(11, 110, 76, 0.12);
    border-radius: 22px; box-shadow: var(--shadow-soft);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }
  .nav-links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links > a:not(.nav-cta) { padding: 11px 12px; }
  .nav-links > a:not(.nav-cta)::after { display: none; }
  .nav-cta { text-align: center; }

  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .card-feature, .card-row { grid-column: auto; grid-row: auto; }
  .card-row { grid-template-columns: 1fr; }
  .card-h { align-items: center; grid-template-columns: 1fr 104px; }
  .thumb-phone { width: 104px; }
  .card-feature .device-sm { width: min(190px, 56%); }

  .chip-azaan { left: -2%; top: 18%; }
  .chip-streak { right: -2%; bottom: 12%; }
  .chip p { display: none; }

  .footer-links { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .sr-journey { grid-template-columns: 1fr; gap: 28px; }
  .sr-highlights { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .hero-title { font-size: clamp(2.3rem, 12vw, 3rem); }
  .chip { padding: 8px 12px 8px 8px; }
  .chip strong { font-size: 0.8rem; }
}
