/* Daily Muslim website. Colours mirror the app (theme/colors.ts). */
:root {
  --cream: #fffaf0;
  --sand: #f6ebd3;
  --paper: #fffdf8;
  --ink: #14392e;
  --green: #0e6b4b;
  --green-dark: #084b39;
  --night: #082a20;
  --gold: #d2a04a;
  --gold-deep: #8b6a27;
  --muted: #55625c;
  --line: #e6dece;
  --mint: #e7f1eb;
  --display: 'Lora', Georgia, serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --arabic: 'Noto Naskh Arabic', 'Geeza Pro', serif;
  --quran: 'Amiri Quran', 'Noto Naskh Arabic', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
[lang='ar'] { font-family: var(--arabic); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 10px 14px; border-radius: 10px; z-index: 10; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255, 250, 240, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 20px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover, .nav a[aria-current='page'] { background: var(--mint); color: var(--green-dark); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 16px; border: 0; background: var(--green); color: #fff; font-family: var(--body); font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--green-dark); color: #fff; }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.gold:hover { background: #c4923c; color: var(--ink); }
.btn.quiet { background: transparent; color: var(--cream); border: 1.5px solid rgba(255, 250, 240, 0.5); }
.btn.quiet:hover { background: rgba(255, 250, 240, 0.12); color: var(--cream); }
.note { font-size: 14px; color: var(--muted); }

/* Hero */
.hero { background: var(--green); color: var(--cream); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; padding-top: 72px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); }
.hero h1 em { font-style: normal; color: #f0cf8e; }
.hero .lead { margin-top: 20px; font-size: 20px; line-height: 1.55; color: #dcece4; max-width: 34em; }
.hero .cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .facts { margin: 28px 0 72px; padding: 0; list-style: none; display: flex; gap: 10px 22px; flex-wrap: wrap; font-size: 15px; color: #dcece4; }
.hero .facts li::before { content: '✓'; margin-right: 8px; color: #f0cf8e; font-weight: 700; }
.hero .stage { display: flex; justify-content: center; align-self: end; }

/* Phone: the app's screens are drawn here, not pasted as pictures, so they stay sharp at any size. */
.phone { position: relative; width: 300px; height: 620px; flex: none; border: 8px solid var(--night); border-radius: 46px; background: #fff; overflow: hidden; box-shadow: 0 30px 60px rgba(8, 42, 32, 0.28); }
.phone.cut { height: 540px; border-bottom: 0; border-radius: 46px 46px 0 0; box-shadow: none; }
.phone.dark { border-color: #03140f; }
.screen { position: absolute; inset: 0; }
.bar { height: 9px; border-radius: 5px; background: #d9d9d9; }
.bar.soft { background: #ececec; }

.feed { padding: 62px 14px 0; }
.feed .stories { display: flex; gap: 10px; }
.feed .stories i { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--gold); padding: 3px; background-clip: content-box; }
.feed .who { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.feed .who i { width: 32px; height: 32px; border-radius: 50%; background: #9db8ac; }
.feed .photo { margin: 12px -14px 0; height: 270px; background: #d8c3a5; position: relative; overflow: hidden; }
.feed .photo i { position: absolute; border-radius: 50%; }
.banner { position: absolute; left: 8px; right: 8px; top: 12px; padding: 12px 13px; border-radius: 24px; background: #fdfbf6; color: var(--ink); display: flex; gap: 11px; box-shadow: 0 14px 36px rgba(8, 42, 32, 0.28); }
.banner img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.banner .name { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; }
.banner .name span { font-weight: 400; color: var(--muted); font-size: 13px; }
.banner .ar { font-weight: 700; font-size: 19px; line-height: 34px; direction: rtl; text-align: left; }
.banner .en { font-size: 13px; line-height: 18px; color: #46564f; }

.shield { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 150px 22px 0; color: var(--cream); }
.shield.lock { background: #0a4636; }
.shield.pause { background: #1b2420; }
.shield > img { width: 62px; height: 62px; border-radius: 15px; }
.shield .ar { margin-top: 40px; font-weight: 700; font-size: 23px; line-height: 44px; }
.shield .rule { margin-top: 4px; font-size: 13px; letter-spacing: 1px; color: #d7e4dd; }
.shield .en { margin-top: 6px; font-size: 14px; line-height: 20px; color: #d7e4dd; }
.shield .dots { margin-top: 18px; display: flex; gap: 16px; }
.shield .dots i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #d7e4dd; }
.shield .dots i.on { background: #d7e4dd; }
.shield .extra { margin-top: 16px; font-size: 13px; color: #d7e4dd; }
.shield .keys { position: absolute; left: 20px; right: 20px; bottom: 30px; display: flex; flex-direction: column; gap: 4px; }
.shield .key { height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.shield.lock .key { background: var(--gold); color: var(--ink); }
.shield.pause .key { background: #0a6cd6; color: #fff; }
.shield .close { height: 40px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #c4d4cc; }
.ring { position: relative; width: 110px; height: 110px; margin-top: -24px; }
.ring b { position: absolute; left: 0; right: 0; top: 24px; font-size: 36px; line-height: 40px; }
.ring span { position: absolute; left: 0; right: 0; top: 64px; font-size: 13px; color: #e0e5e2; }

.reader { position: absolute; inset: 0; background: #fbf4e4; padding: 54px 16px 0; color: var(--ink); }
.reader .where { text-align: center; font-family: var(--display); font-weight: 700; font-size: 18px; }
.reader .where small { display: block; font-family: var(--body); font-weight: 400; font-size: 12px; color: var(--muted); }
.reader .clock { margin-top: 14px; display: flex; align-items: center; gap: 10px; }
.reader .clock b { display: block; font-size: 23px; line-height: 26px; }
.reader .clock small { font-size: 12px; color: var(--muted); }
.reader .clock .read { margin-left: auto; text-align: right; }
.reader .track { margin-top: 10px; height: 8px; border-radius: 4px; background: #e8dcc0; overflow: hidden; }
.reader .track i { display: block; width: 26%; height: 100%; background: var(--green); border-radius: 4px; }
.reader .page { margin-top: 14px; height: 300px; padding: 14px; border-radius: 26px; border: 1px solid #e8dcc0; background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.reader .page p { font-family: var(--quran); font-size: 22px; line-height: 52px; text-align: center; direction: rtl; }
.reader .mark { width: 38px; height: 38px; border: 1.5px solid var(--gold); border-radius: 11px; transform: rotate(45deg); display: flex; align-items: center; justify-content: center; }
.reader .mark b { transform: rotate(-45deg); font-size: 13px; color: var(--gold-deep); }

/* Sections */
section { padding: 88px 0; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); }
.head { max-width: 40em; }
.head h2 { margin-top: 10px; font-size: clamp(30px, 4vw, 44px); }
.head p { margin-top: 14px; color: var(--muted); font-size: 19px; }

.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { padding: 28px 24px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); counter-increment: step; }
.step::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; }
.step h3 { margin-top: 18px; font-size: 22px; }
.step p { margin-top: 8px; color: var(--muted); }

.two { background: var(--sand); }
.pair { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.case { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 32px 24px 0; border-radius: 28px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; text-align: center; }
.case h3 { font-size: 24px; }
.case p { margin-top: 8px; color: var(--muted); max-width: 26em; }

.split .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split .stage { display: flex; justify-content: center; }
.list { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.list li { display: flex; gap: 14px; align-items: flex-start; }
.list svg { flex: none; margin-top: 3px; color: var(--green); }

.grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { padding: 26px 24px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); }
.card .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--mint); color: var(--green); display: flex; align-items: center; justify-content: center; }
.card h3 { margin-top: 16px; font-size: 21px; }
.card p { margin-top: 8px; color: var(--muted); font-size: 16px; }

.private { background: var(--ink); color: var(--cream); }
.private .eyebrow { color: #f0cf8e; }
.private .head p { color: #c9dcd3; }
.private .grid .card { background: rgba(255, 250, 240, 0.06); border-color: rgba(255, 250, 240, 0.16); }
.private .grid .card p { color: #c9dcd3; }
.private a { color: #f0cf8e; }

.free { text-align: center; }
.free .wrap { max-width: 760px; }
.free .ar { margin-top: 22px; font-weight: 700; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.9; color: var(--green-dark); }
.free p.en { margin-top: 12px; color: var(--muted); font-size: 19px; }
.free .btn { margin-top: 30px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 6px; flex-wrap: wrap; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; font-weight: 500; }
footer nav a:hover { text-decoration: underline; }

/* Text pages */
.doc { padding: 64px 0 88px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc .date { margin-top: 10px; color: var(--muted); font-size: 15px; }
.doc h2 { margin-top: 40px; font-size: 25px; }
.doc p, .doc ul { margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc li { margin-top: 6px; }
.summary { margin-top: 28px; padding: 22px 24px; border-radius: 20px; background: var(--mint); border: 1px solid #9bc4b1; }
.summary p:first-child { margin-top: 0; font-weight: 700; }

/* Contact */
.contact { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 24px; align-items: start; }
form { display: grid; gap: 16px; padding: 26px 24px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); }
label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
input, select, textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid #c9c4b7; background: #fff; color: var(--ink); font: inherit; font-weight: 400; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.aside { display: grid; gap: 16px; }
.aside .card h2 { margin-top: 0; font-size: 20px; }

@media (max-width: 900px) {
  .hero .wrap, .split .wrap, .contact { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { padding-top: 48px; gap: 8px; }
  .hero .facts { margin-bottom: 40px; }
  .steps, .grid, .pair { grid-template-columns: minmax(0, 1fr); }
  section { padding: 64px 0; }
  .split .stage { order: 2; }
}
@media (max-width: 380px) {
  .wrap { padding: 0 16px; }
  .phone { width: 270px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
