:root {
  --bg: #0f1714;
  --band: #141e1a;
  --line: #1f2b26;
  --surface: #17221e;
  --border: #2e3a35;
  --text: #f2ede3;
  --soft: #c4ccc7;
  --muted: #9aa59f;
  --secondary: #b7c0bb;
  --gold: #d4b26a;
  --gold-light: #e8cc8c;
  --ink: #0f1714;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.55 Figtree, system-ui, -apple-system, sans-serif;
}
h1, h2, h3 { margin: 0; font-weight: 800; }
p { margin: 0; }
a { color: var(--gold); }
a:hover { color: var(--gold-light); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.ar { font-family: Amiri, serif; font-weight: 400; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 24px; }
.narrow { max-width: 820px; }
.section { padding-block: 88px; display: flex; flex-direction: column; gap: 18px; }
.section h2, .cta h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.8px; max-width: 680px; }
.eyebrow { font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); font-weight: 800; }

/* Header */
.header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 19px; font-weight: 800; }
.brand:hover { color: var(--text); }
.nav { display: flex; align-items: center; gap: 22px; }
.lang-long, .nav-cta, .burger, .burger .i-close { display: none; }
.burger { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); color: var(--text); align-items: center; justify-content: center; cursor: pointer; }
.burger:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 720px) {
  .burger { display: inline-flex; }
  .menu-open .burger .i-open { display: none; }
  .menu-open .burger .i-close { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 16px; right: 16px; z-index: 20; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
  .menu-open .nav { display: flex; }
  .menu-open .header .nav a { padding: 14px 16px; border-radius: 12px; font-size: 17px; font-weight: 700; color: var(--text); }
  .menu-open .header .nav a:hover { background: var(--bg); color: var(--text); }
  .menu-open .header .nav .pill { height: auto; border: 0; background: none; font-size: 15px !important; color: var(--soft) !important; border-top: 1px solid var(--border); border-radius: 0; margin: 6px 8px 0; padding: 16px 8px; }
  .lang-short { display: none; }
  .lang-long { display: inline; }
  .menu-open .header .nav .nav-cta { display: flex; justify-content: center; margin: 6px 8px 8px; height: 48px; align-items: center; border-radius: 14px; background: var(--gold); color: var(--ink); font-weight: 800; }
}
.header .nav a { color: var(--soft); text-decoration: none; font-weight: 600; font-size: 15px; }
.header .nav a:hover { color: var(--text); }
.flag { display: block; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15); }
.pill { height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); display: inline-flex; align-items: center; gap: 6px; color: var(--text) !important; font-size: 13px !important; font-weight: 700 !important; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 48px; padding-bottom: 88px; }
.hero-text { flex: 999 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; min-height: 32px; padding: 4px 14px; border-radius: 16px; background: rgba(212, 178, 106, 0.14); border: 1px solid var(--gold); color: var(--gold-light); font-size: 14px; font-weight: 700; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.04; letter-spacing: -1.5px; }
.lead { font-size: 19px; color: var(--secondary); max-width: 540px; }
.note { font-size: 14px; color: var(--muted); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { min-height: 56px; padding: 8px 22px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; }
.store > span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 12px; font-weight: 600; color: var(--muted); }
.store.primary { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.store.primary small { color: #3b3220; }
a.store { text-decoration: none; color: var(--text); }
.store.soon { cursor: default; }
a.store:hover { border-color: var(--gold); color: var(--text); }
a.store.primary, a.store.primary:hover { color: var(--ink); }
.stores.on-gold { justify-content: center; margin-top: 8px; }
.stores.on-gold .store, .stores.on-gold .store.primary { background: var(--ink); border-color: var(--ink); color: var(--text); }
.stores.on-gold .store small { color: var(--soft); }

/* Phone mockup */
.phone-wrap { flex: 1 1 300px; display: flex; justify-content: center; }
.phone { margin: 0; width: min(320px, 100%); aspect-ratio: 1 / 2; border-radius: 48px; padding: 12px; background: #070b09; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border); }
.screen { height: 100%; border-radius: 38px; background: var(--bg); overflow: hidden; position: relative; display: flex; flex-direction: column; }
.screen-head { padding: 30px 20px 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.screen-head small { font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.screen-head strong { font-size: 14px; }
.ayahs { flex: 1; padding: 26px 22px 0; display: flex; flex-direction: column; gap: 22px; }
.ayah { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; line-height: 1.35; }
.ayah .ar { font-size: 20px; text-align: right; line-height: 1.6; }
.ayah.past { opacity: 0.28; }
.ayah.next { opacity: 0.5; }
.ayah.now { gap: 10px; font-size: 18px; font-weight: 800; }
.ayah.now .ar { font-size: 27px; color: var(--gold); }
.listening { position: absolute; left: 18px; right: 18px; bottom: 22px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.screen::after { content: ''; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(180deg, rgba(15, 23, 20, 0), var(--bg) 60%); pointer-events: none; }
.listening { z-index: 1; }
.dot { width: 10px; height: 10px; border-radius: 5px; background: var(--gold); position: relative; }
.dot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--gold); animation: ring 1.8s ease-out infinite; }
.stop { margin-left: auto; width: 40px; height: 40px; border-radius: 20px; background: var(--text); position: relative; }
.stop::after { content: ''; position: absolute; inset: 13px; border-radius: 3px; background: var(--ink); }
@keyframes ring { from { transform: scale(1); opacity: 0.55; } to { transform: scale(2.6); opacity: 0; } }

/* How it works */
.band { background: var(--band); border-block: 1px solid var(--line); }
.steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.steps li { padding: 28px; border-radius: 22px; background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.num { width: 40px; height: 40px; border-radius: 20px; background: var(--gold); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; }
.steps h3 { font-size: 21px; }
.steps p, .features p, .where p, .faq p { color: var(--secondary); }

/* Features */
.features { margin-top: 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.features article { padding: 26px; border-radius: 20px; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.features h3 { font-size: 19px; }
.features p { font-size: 15px; }

/* Where */
.where { padding: 44px; border-radius: 28px; background: var(--surface); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.where > div { flex: 1 1 340px; display: flex; flex-direction: column; gap: 12px; }
.where h2 { font-size: 30px; line-height: 1.15; }
.where .big { font-size: 34px; color: var(--gold) !important; }

/* FAQ */
.faq { margin-top: 10px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-size: 18px; font-weight: 800; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 24px; color: var(--gold); font-weight: 600; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding-bottom: 20px; }

/* Legal pages */
.legal { padding-block: 40px 88px; display: flex; flex-direction: column; gap: 22px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.8px; }
.legal h2 { font-size: 20px; margin-bottom: 6px; }
.legal p { color: var(--secondary); }

/* CTA + footer */
.cta { margin: 0 0 96px; padding: 56px 32px; border-radius: 32px; background: var(--gold); color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.cta h2 { max-width: none; }
.cta p { font-size: 17px; max-width: 520px; }
.footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer .wrap { padding-block: 32px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }

@media (max-width: 640px) {
  .hero { padding-top: 24px; gap: 40px; }
  .section { padding-block: 64px; }
  .where { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot::after { animation: none; }
}
