@font-face { font-family: 'Amiri'; src: url('amiri-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Amiri'; src: url('amiri-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Amiri'; src: url('amiri-latin-400.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2010-2027; }
@font-face { font-family: 'Amiri'; src: url('amiri-latin-700.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+2010-2027; }

:root {
  --bg: #f7f2e6;
  --bg-2: #efe7d4;
  --card: #fffcf4;
  --text: #1d2a24;
  --muted: #615e51;
  --accent: #0e6b4f;
  --accent-strong: #0a5540;
  --on-accent: #fffaf0;
  --gold: #a07f32;
  --gold-soft: rgba(176, 141, 60, 0.14);
  --border: #e4d7b6;
  --shadow: 0 1px 2px rgba(60, 45, 10, .06), 0 12px 36px rgba(60, 45, 10, .10);
  --emerald: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(226,196,122,.20), transparent 70%), var(--pattern-gold) center / 96px, linear-gradient(160deg, #127a5b, #0a4030);
  --pattern-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cdefs%3E%3Cg id='s' fill='none' stroke='%23e2c47a' stroke-width='1'%3E%3Crect x='-17' y='-17' width='34' height='34'/%3E%3Crect x='-17' y='-17' width='34' height='34' transform='rotate(45)'/%3E%3Crect x='-9' y='-9' width='18' height='18' transform='rotate(22.5)'/%3E%3C/g%3E%3C/defs%3E%3Cg stroke-opacity='.16'%3E%3Cuse href='%23s' x='48' y='48'/%3E%3Cuse href='%23s' x='0' y='0'/%3E%3Cuse href='%23s' x='96' y='0'/%3E%3Cuse href='%23s' x='0' y='96'/%3E%3Cuse href='%23s' x='96' y='96'/%3E%3Cpath d='M24 48H0M96 48H72M48 24V0M48 96V72' stroke='%23e2c47a'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cdefs%3E%3Cg id='s' fill='none' stroke='%23a8873a' stroke-width='1'%3E%3Crect x='-17' y='-17' width='34' height='34'/%3E%3Crect x='-17' y='-17' width='34' height='34' transform='rotate(45)'/%3E%3Crect x='-9' y='-9' width='18' height='18' transform='rotate(22.5)'/%3E%3C/g%3E%3C/defs%3E%3Cg stroke-opacity='.16'%3E%3Cuse href='%23s' x='48' y='48'/%3E%3Cuse href='%23s' x='0' y='0'/%3E%3Cuse href='%23s' x='96' y='0'/%3E%3Cuse href='%23s' x='0' y='96'/%3E%3Cuse href='%23s' x='96' y='96'/%3E%3Cpath d='M24 48H0M96 48H72M48 24V0M48 96V72' stroke='%23a8873a'/%3E%3C/g%3E%3C/svg%3E");
  --font-ui: 'Segoe UI', 'Noto Sans Arabic', 'SF Arabic', system-ui, -apple-system, Tahoma, sans-serif;
  --font-display: 'Amiri', 'Noto Naskh Arabic', Georgia, serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1613;
    --bg-2: #101d19;
    --card: #13211c;
    --text: #ece6d4;
    --muted: #a6a290;
    --accent: #52c49b;
    --accent-strong: #6dd3ae;
    --on-accent: #08130f;
    --gold: #d6b66a;
    --gold-soft: rgba(214, 182, 106, 0.12);
    --border: #2b4038;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 36px rgba(0,0,0,.35);
    --pattern-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cdefs%3E%3Cg id='s' fill='none' stroke='%23d6b66a' stroke-width='1'%3E%3Crect x='-17' y='-17' width='34' height='34'/%3E%3Crect x='-17' y='-17' width='34' height='34' transform='rotate(45)'/%3E%3Crect x='-9' y='-9' width='18' height='18' transform='rotate(22.5)'/%3E%3C/g%3E%3C/defs%3E%3Cg stroke-opacity='.08'%3E%3Cuse href='%23s' x='48' y='48'/%3E%3Cuse href='%23s' x='0' y='0'/%3E%3Cuse href='%23s' x='96' y='0'/%3E%3Cuse href='%23s' x='0' y='96'/%3E%3Cuse href='%23s' x='96' y='96'/%3E%3Cpath d='M24 48H0M96 48H72M48 24V0M48 96V72' stroke='%23d6b66a'/%3E%3C/g%3E%3C/svg%3E");
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.7 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; margin: 0; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  transition: transform .15s, background .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-gold { background: #e2c47a; color: #0a2f24; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.btn-gold:hover { background: #ecd394; }
.btn-ghost { border-color: rgba(251,243,223,.45); color: #fbf3df; }
.btn-ghost:hover { background: rgba(251,243,223,.1); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn.is-soon { opacity: .85; cursor: default; }
.btn.is-soon:hover { transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--accent); }
.lang { font-size: 15px; font-weight: 600; text-decoration: none; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; }
.site-header .btn { padding: 9px 18px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--emerald);
  color: #fbf3df;
  padding: 72px 0 0;
  overflow: hidden;
  position: relative;
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.hero-text { padding-bottom: 72px; }
.eyebrow { display: inline-block; color: #e2c47a; font-weight: 600; font-size: 15px; letter-spacing: .3px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 5vw, 64px); }
.hero .lead { margin-top: 16px; font-size: 19px; color: rgba(251,243,223,.88); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 16px; font-size: 14px; color: rgba(251,243,223,.7); }
.hero-media { align-self: end; }

.browser {
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background: #fffcf4;
  box-shadow: 0 0 0 1px rgba(226,196,122,.5), 0 30px 80px rgba(0,0,0,.45);
}
.browser-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding-inline: 14px; background: #e9e2d0; direction: ltr; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #cfc5ac; }
.browser-bar b { flex: 1; height: 20px; margin-inline-start: 14px; border-radius: 10px; background: #f7f2e6; }
.browser video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0a4030; }

/* ---------- Ayah band ---------- */
.ayah-band { background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 30px 0; text-align: center; }
.ayah-band p { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 36px); color: var(--accent); }
.ayah-band small { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }

/* ---------- Sections ---------- */
section.block { padding: 88px 0; }
section.block.alt { background: var(--bg-2); background-image: var(--pattern-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow { color: var(--gold); }
.section-head h2 { font-size: clamp(32px, 4vw, 44px); color: var(--text); }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 18px; }

/* Timeline of the day */
.day {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  counter-reset: day;
}
.day li {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 18px 20px;
  box-shadow: var(--shadow);
}
.day li::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: translateX(-50%) rotate(45deg);
}
.day .when { font-size: 13px; color: var(--gold); font-weight: 700; letter-spacing: .2px; }
.day h3 { font-size: 23px; color: var(--accent); margin-top: 6px; }
.day p { margin-top: 6px; font-size: 15px; color: var(--muted); line-height: 1.6; }
.day-note { text-align: center; margin-top: 28px; color: var(--muted); }
.day-note strong { color: var(--text); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: var(--shadow);
}
.feature .icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--gold-soft);
  color: var(--gold);
  margin-bottom: 16px;
}
.feature .icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 24px; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.gallery figcaption { margin-top: 12px; text-align: center; color: var(--muted); font-size: 15px; }

/* Prayer times */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: clamp(30px, 3.6vw, 42px); }
.split .lead { margin-top: 14px; color: var(--muted); font-size: 18px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 9px;
  background: var(--gold);
  transform: rotate(45deg);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span { padding: 5px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.split img { border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow); }

/* Privacy */
.privacy {
  background: var(--emerald);
  color: #fbf3df;
  border-radius: 28px;
  padding: 56px clamp(24px, 5vw, 64px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
}
.privacy .shield { width: 96px; height: 96px; color: #e2c47a; }
.privacy h2 { font-size: clamp(30px, 3.6vw, 42px); }
.privacy p { margin-top: 10px; color: rgba(251,243,223,.88); font-size: 18px; }
.privacy .pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.privacy .pills span { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(226,196,122,.55); color: #e2c47a; font-size: 15px; }
.privacy a { color: #e2c47a; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px 22px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-weight: 600;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 18px; color: var(--muted); }

/* Final CTA */
.final { text-align: center; }
.final img { width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 20px; box-shadow: var(--shadow); }
.final h2 { font-size: clamp(32px, 4vw, 46px); }
.final p { margin: 12px auto 28px; color: var(--muted); font-size: 18px; max-width: 36em; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 36px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-text { padding-bottom: 8px; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .day { grid-template-columns: repeat(2, 1fr); }
  .day li:last-child { grid-column: 1 / -1; }
  .features, .gallery { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .nav { display: none; }
  .site-header .wrap { justify-content: space-between; }
  .lang { margin-inline-start: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section.block { padding: 64px 0; }
  .hero { padding-top: 48px; }
  .day, .features, .gallery { grid-template-columns: 1fr; }
  .privacy { grid-template-columns: 1fr; text-align: center; }
  .privacy .shield { margin: 0 auto; }
  .privacy .pills { justify-content: center; }
  .site-header .btn { display: none; }
  .btn { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
