/* ============================================================
   SiraatLock — site styles
   Brand: navy #0A1630 · electric blue #1E34C2 · crescent + lock
   ============================================================ */

:root {
  --navy:       #0A1630;
  --navy-2:     #0F1F40;
  --accent:     #1E34C2;
  --accent-700: #16289B;
  --accent-tint:#ECEEFB;
  --bg:         #F7F8FC;
  --surface:    #FFFFFF;
  --ink:        #0A1630;
  --muted:      rgba(10, 22, 48, 0.56);
  --muted-2:    rgba(10, 22, 48, 0.40);
  --line:       rgba(10, 22, 48, 0.08);
  --line-2:     rgba(10, 22, 48, 0.06);
  --green:      #2EB873;
  --orange:     #FF7812;

  --maxw: 1120px;
  --radius: 22px;
  --shadow-sm: 0 1px 2px rgba(10,22,48,.04), 0 8px 24px rgba(10,22,48,.05);
  --shadow-md: 0 2px 6px rgba(10,22,48,.06), 0 24px 60px rgba(10,22,48,.10);
  --shadow-phone: 0 8px 24px rgba(10,22,48,.12), 0 40px 90px rgba(10,22,48,.22);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- Reusable bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow .ar { font-family: var(--serif); font-style: normal; letter-spacing: 0; font-size: 15px; opacity: .9; }
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: var(--accent); opacity: .5;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.05; font-weight: 700; }
h1 { font-size: clamp(38px, 6.2vw, 68px); letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.03em; }
p  { margin: 0; }

.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); line-height: 1.6; }

/* path divider: line — dot — line (mirrors the app's ayah divider) */
.path-divider {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 auto; padding: 8px 0;
}
.path-divider span { height: 1.5px; width: 48px; background: var(--accent); opacity: .28; }
.path-divider b { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 600; font-size: 15px;
  padding: 14px 22px; border-radius: 14px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(30,52,194,.28); }
.btn-primary:hover { background: var(--accent-700); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(30,52,194,.34); }
.btn-ghost { background: rgba(10,22,48,.05); color: var(--ink); }
.btn-ghost:hover { background: rgba(10,22,48,.09); }

/* App Store badge */
.appstore {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--navy); color: #fff; padding: 11px 20px 11px 18px; border-radius: 14px;
  transition: transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 10px 26px rgba(10,22,48,.22);
}
.appstore:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(10,22,48,.28); }
.appstore svg { width: 26px; height: 26px; flex: none; }
.appstore .t { display: flex; flex-direction: column; line-height: 1.1; }
.appstore .t small { font-size: 10.5px; opacity: .82; letter-spacing: .02em; }
.appstore .t strong { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,248,252,.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .mark { width: 32px; height: 32px; border-radius: 9px; flex: none; box-shadow: 0 4px 10px rgba(30,52,194,.28); }
.brand .name { font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a.link { font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color .15s ease; }
.nav-links a.link:hover, .nav-links a.link[aria-current="page"] { color: var(--ink); }
.nav .btn { padding: 10px 18px; font-size: 14px; }
.nav-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding-top: 64px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 620px; z-index: 0;
  background:
    radial-gradient(60% 60% at 78% 12%, rgba(30,52,194,.14), transparent 70%),
    radial-gradient(50% 50% at 12% 0%, rgba(30,52,194,.08), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 0.92fr; gap: 56px; align-items: center; }
.hero-copy { max-width: 560px; }
.hero h1 { margin-top: 18px; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { margin-top: 20px; max-width: 480px; }
.hero-cta { display: flex; align-items: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.hero-cta .note { font-size: 13.5px; color: var(--muted); }
.hero-cta .note b { color: var(--ink); font-weight: 600; }

.trustbar { display: flex; gap: 26px; margin-top: 38px; flex-wrap: wrap; }
.trustbar .ti { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.trustbar .ti svg { width: 17px; height: 17px; color: var(--accent); flex: none; }

.hero-art { position: relative; display: flex; justify-content: flex-end; }
.hero-art .glow {
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30,52,194,.22), transparent 65%);
  top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 0; filter: blur(8px);
}

/* ============================================================
   PHONE MOCKUP
   ============================================================ */
.phone {
  position: relative; z-index: 1;
  width: 286px; aspect-ratio: 286 / 600;
  background: #0b1020; border-radius: 46px; padding: 11px;
  box-shadow: var(--shadow-phone);
}
.phone.tilt { transform: rotate(-2.2deg); }
.phone .screen {
  position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
  background: var(--bg); display: flex; flex-direction: column;
}
.phone .notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; background: #0b1020; border-radius: 14px; z-index: 6;
}
.statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 22px 4px; font-size: 12px; font-weight: 600; color: var(--ink); z-index: 5;
}
.statusbar .icons { display: flex; gap: 5px; align-items: center; }
.statusbar .icons svg { width: 15px; height: 11px; }

/* generic app screen scaffolding */
.app { flex: 1; overflow: hidden; display: flex; flex-direction: column; padding: 4px 16px 0; }
.app .hi { font-size: 12px; color: var(--muted); font-weight: 500; }
.app .date { font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin-top: 1px; }

/* top stat pills (streak + xp) */
.pillrow { display: flex; gap: 8px; margin-top: 13px; }
.pill { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 9px 11px; }
.pill .k { font-size: 9.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.pill .v { font-size: 17px; font-weight: 700; margin-top: 2px; display: flex; align-items: center; gap: 5px; letter-spacing: -.01em; }
.pill .v.fire { color: var(--orange); }
.pill .v.xp { color: var(--accent); }

.app .sect-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin: 16px 2px 9px; }

/* prayer rows */
.prayers { display: flex; flex-direction: column; gap: 7px; }
.prow {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 11px 12px;
}
.prow .dot { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.prow .dot svg { width: 15px; height: 15px; }
.prow .nm { font-size: 13.5px; font-weight: 600; }
.prow .tm { font-size: 11px; color: var(--muted); margin-top: 1px; }
.prow .xp { margin-left: auto; font-size: 11.5px; font-weight: 700; }
.prow .mid { display: flex; flex-direction: column; }
.prow.done { background: rgba(46,184,115,.08); border-color: rgba(46,184,115,.22); }
.prow.done .dot { background: var(--green); color: #fff; }
.prow.done .xp { color: var(--green); }
.prow.now { background: var(--accent); border-color: var(--accent); box-shadow: 0 10px 24px rgba(30,52,194,.30); }
.prow.now .nm, .prow.now .tm, .prow.now .xp { color: #fff; }
.prow.now .tm { opacity: .85; }
.prow.now .dot { background: rgba(255,255,255,.2); color: #fff; }
.prow.now .badge-now { margin-left: auto; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; background:#fff; color: var(--accent); padding: 3px 7px; border-radius: 7px; }
.prow.todo .dot { background: var(--accent-tint); color: var(--accent); }
.prow.todo .xp { color: var(--muted-2); }

/* locked screen */
.lock-screen { background: var(--navy); color: #fff; align-items: center; justify-content: center; text-align: center; padding: 0 26px; }
.lock-screen .shield { width: 78px; height: 78px; border-radius: 24px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; margin-bottom: 22px; }
.lock-screen .shield svg { width: 38px; height: 38px; color: #fff; }
.lock-screen h4 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 9px; }
.lock-screen p { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.5; max-width: 200px; }
.lock-screen .next { margin-top: 26px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 13px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; width: 100%; }
.lock-screen .next .tnm { font-size: 12.5px; font-weight: 600; }
.lock-screen .next .tt { font-size: 11px; color: rgba(255,255,255,.55); margin-left: auto; }
.lock-screen .lockbtn { margin-top: 14px; width: 100%; background: var(--accent); color: #fff; border-radius: 13px; padding: 13px; font-size: 13.5px; font-weight: 600; }

/* progress / rank screen */
.rank-card { background: linear-gradient(150deg, var(--accent), var(--accent-700)); border-radius: 18px; padding: 16px; color: #fff; margin-top: 14px; }
.rank-card .rk { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.rank-card .rname { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-top: 3px; }
.rank-card .bar { height: 7px; border-radius: 6px; background: rgba(255,255,255,.22); margin-top: 14px; overflow: hidden; }
.rank-card .bar i { display: block; height: 100%; width: 68%; background: #fff; border-radius: 6px; }
.rank-card .barlbl { display: flex; justify-content: space-between; font-size: 10.5px; opacity: .85; margin-top: 7px; }

.mult-row { display: flex; gap: 7px; margin-top: 12px; }
.mchip { flex: 1; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 4px; }
.mchip .mx { font-size: 14px; font-weight: 800; color: var(--accent); }
.mchip .md { font-size: 9px; color: var(--muted-2); font-weight: 600; margin-top: 1px; }
.mchip.on { background: var(--accent); border-color: var(--accent); }
.mchip.on .mx { color: #fff; }
.mchip.on .md { color: rgba(255,255,255,.8); }

/* streak calendar */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; }
.cal .d { aspect-ratio: 1; border-radius: 9px; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: var(--surface); border: 1px solid var(--line); color: var(--muted-2); }
.cal .d.on { background: var(--orange); color: #fff; border-color: var(--orange); }
.cal .d.today { box-shadow: 0 0 0 2px rgba(30,52,194,.5); }

/* phone variant that holds a real screenshot */
.phone.shot { width: 286px; aspect-ratio: 1206 / 2622; padding: 10px; }
.phone.shot .screen { background: #000; border-radius: 38px; }
.phone.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* two phones side by side, both fully visible, portrait */
.phone-pair {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  justify-content: center;
}
.phone-pair .phone { width: 232px; flex: none; }
/* override: enforce strict tall portrait shape for pair phones */
.phone-pair .phone.shot { aspect-ratio: 1206 / 2622; }

/* Hard Mode: two columns like the other feature sections (phones left, text right) */
.feature.pair-wide { grid-template-columns: 1fr 1fr; gap: 64px; }
.gallery { display: flex; gap: 22px; justify-content: center; margin-top: 52px; flex-wrap: wrap; }
.gallery .phone.shot { width: 218px; }

/* ============================================================
   SECTIONS
   ============================================================ */
section { position: relative; }
.section { padding: 92px 0; }
.section-head { max-width: 620px; margin: 0 auto; text-align: center; }
.section-head h2 { margin-top: 16px; }
.section-head .lead { margin-top: 16px; }

/* how it works — 3 steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative; }
.step .n { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--accent); display: inline-flex; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-tint); align-items: center; justify-content: center; }
.step h3 { font-size: 19px; margin-top: 18px; }
.step p { font-size: 14.5px; color: var(--muted); margin-top: 9px; }

/* feature: split text + phone */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 40px; }
.feature.flip .f-art { order: -1; }
.feature h2 { margin-top: 16px; }
.feature .lead { margin-top: 16px; }
.f-list { margin-top: 26px; display: flex; flex-direction: column; gap: 15px; }
.f-list .fi { display: flex; gap: 13px; align-items: flex-start; }
.f-list .fi .ic { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; flex: none; }
.f-list .fi .ic svg { width: 16px; height: 16px; }
.f-list .fi .ft strong { display: block; font-size: 15px; font-weight: 600; }
.f-list .fi .ft span { font-size: 13.5px; color: var(--muted); }
.f-art { display: flex; justify-content: center; }
/* align phones to the outer page margin so left and right edges match across sections */
.feature:not(.flip) .f-art { justify-content: flex-end; }
.feature.flip .f-art { justify-content: flex-start; }

/* accountability cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.card .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; }
.card .ic svg { width: 21px; height: 21px; }
.card h3 { font-size: 18px; margin-top: 18px; }
.card p { font-size: 14px; color: var(--muted); margin-top: 9px; }

/* philosophy band */
.philosophy { background: var(--navy); color: #fff; padding: 96px 0; overflow: hidden; position: relative; }
.philosophy::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 60% at 50% 0%, rgba(30,52,194,.35), transparent 70%);
}
.philosophy .wrap { position: relative; text-align: center; max-width: 760px; }
.philosophy .eyebrow { color: #8ea0ff; }
.philosophy .eyebrow::before { background: #8ea0ff; }
.philosophy h2 { color: #fff; margin-top: 18px; }
.philosophy p.body { color: rgba(255,255,255,.66); font-size: 17px; line-height: 1.65; margin-top: 20px; }
.ayah { margin-top: 44px; }
.ayah .q { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3vw, 30px); color: #fff; line-height: 1.4; }
.ayah .src { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: #8ea0ff; margin-top: 16px; }
.philosophy .path-divider span { background: #8ea0ff; opacity: .4; }
.philosophy .path-divider b { background: #8ea0ff; }

/* final CTA */
.cta { padding: 100px 0; text-align: center; }
.cta .wrap { max-width: 680px; }
.cta h2 { margin-top: 18px; }
.cta .lead { margin-top: 16px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; align-items: center; margin-top: 32px; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer .brand .name { font-size: 16px; }
.footer .tag { font-size: 13px; color: var(--muted); margin-top: 12px; max-width: 260px; }
.footer-links { display: flex; gap: 40px; }
.footer-col h5 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 14px; font-weight: 700; }
.footer-col a { display: block; font-size: 14px; color: var(--muted); margin-bottom: 10px; transition: color .15s ease; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 24px; font-size: 13px; color: var(--muted-2); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal { padding: 64px 0 90px; }
.legal .wrap { max-width: 760px; }
.legal .eyebrow { justify-content: flex-start; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin-top: 16px; }
.legal .updated { font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.legal-body { margin-top: 40px; }
.legal-body section { margin-bottom: 34px; }
.legal-body h2 { font-size: 21px; letter-spacing: -.02em; }
.legal-body p { font-size: 15.5px; color: rgba(10,22,48,.68); line-height: 1.7; margin-top: 10px; }
.legal-body a { color: var(--accent); font-weight: 500; }
.legal-toc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; margin-top: 36px; box-shadow: var(--shadow-sm); }
.legal-toc h5 { margin: 0 0 12px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 30px; }
.legal-toc li { font-size: 14px; margin-bottom: 8px; }
.legal-toc a { color: var(--muted); }
.legal-toc a:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy { max-width: 100%; margin: 0 auto; }
  .hero .lead { margin-inline: auto; }
  .hero-cta, .trustbar { justify-content: center; }
  .feature { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .feature.pair-wide { grid-template-columns: 1fr; gap: 36px; }
  .feature .f-art, .feature:not(.flip) .f-art, .feature.flip .f-art, .hero-art { justify-content: center; }
  .feature .f-list { text-align: left; max-width: 420px; margin-inline: auto; }
  .feature.flip .f-art { order: 0; }
  .steps, .cards { grid-template-columns: 1fr; }
  .legal-toc ol { columns: 1; }
  .phone-pair { gap: 28px; }
  .phone-pair .phone { width: 220px; }
  .phone-pair .phone.shot { aspect-ratio: 1206 / 2622; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; top: 66px; left: 0; right: 0;
    background: rgba(247,248,252,.97); backdrop-filter: blur(14px);
    padding: 22px 24px 26px; border-bottom: 1px solid var(--line);
  }
  .nav-links.open .btn { width: 100%; }
  .nav-toggle { display: inline-flex; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
  .nav-toggle svg { width: 24px; height: 24px; }
  .section { padding: 68px 0; }
  .philosophy, .cta { padding: 72px 0; }
  .footer .wrap { flex-direction: column; }
  .phone-pair { gap: 14px; }
  .phone-pair .phone { width: 150px; }
  .gallery { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 4px 4px 16px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .gallery .phone.shot { flex: none; width: 200px; scroll-snap-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .phone.tilt { transform: none; }
}

/* subtle entrance */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.reveal { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.reveal.d1 { animation-delay: .08s; }
.reveal.d2 { animation-delay: .16s; }
.reveal.d3 { animation-delay: .24s; }
