/* NoorScroll — Heritage House. Tokens match brand v3 (see brand/explorations). */
@font-face { font-family: Grosa; src: url(/fonts/Grosa-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Grosa; src: url(/fonts/Grosa-RegularItalic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: Grosa; src: url(/fonts/Grosa-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: KFGQPC; src: url(/fonts/kfgqpc-hafs.otf) format('opentype'); font-display: swap; }

:root {
  --green: #163F35; --ink: #0F231D; --cream: #F1E7D3; --paper: #F6EFE2; --sand: #BFA77E;
  --rust: #B4441C; --maroon: #4B0F0B; --saffron: #D9B88A; --blush: #F3E3D3;
  --sans: Grosa, 'Hanken Grotesk', system-ui, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --quran: KFGQPC, 'Amiri Quran', serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; overflow-x: hidden; background: var(--cream); color: var(--green);
  font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }

/* paper grain over everything */
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 100; background: url(/img/grain-dark.png); opacity: .09; transform: translateZ(0); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.serif { font-family: var(--serif); }
.q { font-family: var(--quran); direction: rtl; font-weight: 400; }
.meta { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.dias { display: flex; gap: 10px; }
.dia { width: 9px; height: 9px; background: currentColor; transform: rotate(45deg); flex: none; }

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
h1 i, h2 i, h3 i { font-weight: 500; }
p { margin: 0; }

/* ---------- header ---------- */
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-block: 26px; }
.top .meta { opacity: .7; }
.top .cta { justify-self: end; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo .word { font-weight: 500; font-size: 24px; letter-spacing: -0.035em; line-height: 1; }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; padding: 14px 24px; font-weight: 500; font-size: 15px;
  background: var(--green); color: var(--cream); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.pill:hover { background: var(--ink); }
.pill:active { transform: scale(.98); }
.pill.line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.pill.line:hover { background: #163F3510; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(48px, 8vw, 110px) clamp(56px, 8vw, 120px); }
.eyebrow { display: flex; align-items: center; gap: 16px; color: var(--rust); margin-bottom: 28px; }
.hero h1 { font-size: clamp(50px, 6vw, 86px); line-height: .92; }
.hero h1 i { color: var(--rust); }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 520px; margin: 30px 0 38px; opacity: .88; }

/* ---------- waitlist form ---------- */
.join { max-width: 540px; }
.join form { display: grid; gap: 14px; }
.field { display: flex; background: var(--paper); border-radius: 999px; padding: 6px; box-shadow: inset 0 0 0 1.5px #163F3533; }
.field:focus-within { box-shadow: inset 0 0 0 1.5px var(--green); }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 20px; font-size: 16px; outline: none; }
.field input::placeholder { color: #163F3599; }
.platform { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.platform span { opacity: .7; margin-right: 4px; }
.platform label { position: relative; }
.platform input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.platform b { display: block; font-weight: 500; padding: 8px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px #163F3533; }
.platform input:checked + b { background: var(--green); color: var(--cream); box-shadow: none; }
.platform input:focus-visible + b { outline: 2px solid var(--rust); outline-offset: 2px; }
.fine { font-size: 13px; opacity: .65; }
.err { color: var(--rust); font-size: 14px; min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.done { display: none; background: var(--paper); border-radius: 28px; padding: 30px; box-shadow: inset 0 0 0 1.5px #163F3522; }
.join.is-done form { display: none; }
.join.is-done .done { display: grid; gap: 18px; }
.done .rank { display: flex; align-items: baseline; gap: 14px; }
.done .rank b { font-weight: 500; font-size: 64px; letter-spacing: -0.05em; line-height: .9; }
.done .rank span { font-family: var(--serif); font-size: 26px; font-style: italic; }
.share-link { display: flex; gap: 8px; align-items: center; background: var(--cream); border-radius: 999px; padding: 6px 6px 6px 18px; font-size: 14px; }
.share-link code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--sans); }
.share-link .pill { padding: 10px 16px; font-size: 14px; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.wa { background: #1F5C3F; }

/* on dark */
.dark .field { background: #F1E7D314; box-shadow: inset 0 0 0 1.5px #F1E7D355; }
.dark .field input::placeholder { color: #F1E7D399; }
.dark .pill { background: var(--cream); color: var(--green); }
.dark .pill:hover { background: #fff; }
.dark .platform b { box-shadow: inset 0 0 0 1.5px #F1E7D355; }
.dark .platform input:checked + b { background: var(--cream); color: var(--green); }
.dark .err { color: var(--saffron); }
.dark .done { background: #F1E7D312; box-shadow: inset 0 0 0 1.5px #F1E7D333; }
.dark .share-link { background: #F1E7D31A; }

/* ---------- phone ---------- */
.stage { position: relative; display: grid; place-items: center; min-height: 640px; }
.stage .arch { position: absolute; inset: 0; margin: auto; width: 88%; max-width: 470px; height: 100%; color: var(--sand); opacity: .55; }
.phone { position: relative; width: 300px; height: 620px; border-radius: 48px; background: var(--ink); padding: 11px; box-shadow: 0 40px 80px -30px #0F231D88, 0 0 0 1.5px #0F231D; }
.screen { height: 100%; border-radius: 38px; background: radial-gradient(120% 70% at 50% 0%, #1E4D41 0%, var(--green) 55%, var(--ink) 100%); color: var(--cream); display: grid; grid-template-rows: auto 1fr auto; padding: 22px 22px 26px; overflow: hidden; position: relative; }
.screen .bar { display: flex; justify-content: space-between; font-size: 12px; font-weight: 500; opacity: .85; }
.screen .island { position: absolute; top: 12px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: var(--ink); }
.ayah { display: grid; align-content: center; gap: 18px; text-align: center; }
.ayah .ref { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; opacity: .6; }
.ayah .q { font-size: 33px; line-height: 2; white-space: nowrap; }
.ayah .tr { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.25; }
.ayah .src { font-size: 10px; opacity: .5; letter-spacing: .08em; }
.screen .rail { position: absolute; right: 18px; bottom: 84px; display: grid; gap: 18px; opacity: .8; }
.screen .foot { display: grid; gap: 10px; font-size: 11px; opacity: .8; }
.progress { height: 3px; background: #F1E7D333; border-radius: 3px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 62%; background: var(--saffron); }

.chip { position: absolute; background: var(--paper); color: var(--green); border-radius: 22px; padding: 14px 18px; display: flex; gap: 12px; align-items: center; box-shadow: 0 20px 40px -20px #0F231D66; font-size: 13px; line-height: 1.3; }
.chip b { display: block; font-weight: 500; font-size: 22px; letter-spacing: -0.03em; line-height: 1; }
.chip.streak { left: 0; top: 18%; }
.chip.khatm { right: 0; bottom: 14%; background: var(--maroon); color: var(--blush); }
.mini-grid { display: grid; grid-template-columns: repeat(10, 8px); gap: 3px; margin-top: 6px; }
.mini-grid i { height: 8px; box-shadow: inset 0 0 0 1px var(--saffron); }
.mini-grid i.on { background: var(--saffron); }

/* ---------- band ---------- */
.band { display: grid; grid-template-columns: repeat(8, 1fr); height: 96px; }
.band > div { display: grid; place-items: center; }
.band svg { width: 26px; height: auto; }

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: clamp(72px, 10vw, 140px) 0; }
.sec-head { display: grid; grid-template-columns: 1.35fr .65fr; gap: 40px; align-items: end; margin-bottom: clamp(44px, 6vw, 80px); }
.sec-head h2 { font-size: clamp(44px, 5.2vw, 76px); line-height: .95; }
.sec-head p { font-size: 18px; max-width: 460px; opacity: .85; justify-self: end; }
.sec-meta { display: flex; justify-content: space-between; padding-bottom: 18px; margin-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid currentColor; opacity: .75; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.step { padding: 0 clamp(20px, 3vw, 44px); border-left: 1px solid #163F3533; }
.step:first-child { padding-left: 0; border-left: 0; }
.step .n { font-weight: 500; font-size: clamp(72px, 8vw, 116px); letter-spacing: -0.05em; line-height: .8; color: var(--rust); }
.step h3 { font-size: clamp(30px, 2.8vw, 40px); line-height: 1; margin: 28px 0 16px; }
.step p { opacity: .85; }

/* khatm */
.khatm { background: var(--maroon); color: var(--blush); }
.khatm .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.khatm h2 { font-size: clamp(44px, 5vw, 72px); line-height: .95; }
.khatm h2 i { color: var(--saffron); }
.khatm .copy p { font-size: 18px; margin-top: 26px; max-width: 480px; opacity: .9; }
.ticks { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: baseline; }
.ticks .dia { color: var(--saffron); transform: rotate(45deg) translateY(-2px); }
.card { background: var(--blush); color: var(--maroon); padding: clamp(28px, 4vw, 48px); position: relative; }
.card .meta { display: flex; justify-content: space-between; opacity: .75; font-size: 11px; }
.card h3 { font-size: clamp(30px, 3vw, 42px); font-weight: 500; margin: 30px 0 18px; }
.card .count { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.card .count b { font-weight: 500; font-size: clamp(80px, 9vw, 128px); letter-spacing: -0.05em; line-height: .82; }
.card .count span { font-size: 24px; opacity: .6; }
.juz { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.juz i { aspect-ratio: 1; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 500; box-shadow: inset 0 0 0 1.5px var(--maroon); }
.juz i.on { background: var(--maroon); color: var(--blush); }
.card .note { margin-top: 22px; font-size: 15px; line-height: 1.5; }
.card .example { position: absolute; top: -12px; right: 24px; background: var(--saffron); color: var(--maroon); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }

/* promise */
.promise { background: var(--paper); }
.promise .grid2 { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.folio { background: var(--ink); padding: clamp(36px, 6vw, 72px); display: grid; place-items: center; }
.leaf { position: relative; width: 100%; max-width: 380px; aspect-ratio: 64/92; background: var(--paper); box-shadow: 0 30px 60px -20px #00000066; transform: rotate(-1.2deg); display: grid; grid-template-rows: auto 1fr auto; justify-items: center; padding: 14% 9% 9%; text-align: center; }
.leaf .frame { position: absolute; left: 50%; top: 8%; transform: translateX(-50%); width: 76%; color: var(--green); }
.leaf .lock { position: relative; display: grid; justify-items: center; gap: 8px; padding-top: 6%; }
.leaf .lock .word { font-weight: 500; font-size: 20px; letter-spacing: -0.035em; }
.leaf .body { align-self: center; display: grid; gap: 16px; min-width: 0; max-width: 100%; }
.leaf .q { font-size: clamp(17px, 1.75vw, 23px); line-height: 2; white-space: nowrap; }
.leaf .tr { font-family: var(--serif); font-style: italic; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.25; }
.leaf .meta { font-size: 9px; opacity: .7; }
.promise h2 { font-size: clamp(44px, 5.4vw, 78px); line-height: .95; }
.promise h2 i { color: var(--rust); }
.vows { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 0; }
.vows li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 20px 0; border-top: 1px solid #163F3526; }
.vows li:last-child { border-bottom: 1px solid #163F3526; }
.vows .k { font-weight: 500; font-size: 13px; opacity: .55; padding-top: 3px; }
.vows b { display: block; font-weight: 500; font-size: 19px; }
.vows span { opacity: .75; font-size: 15px; }

/* final */
.final { background: var(--green); color: var(--cream); text-align: center; overflow: hidden; }
.final .emboss { position: absolute; left: 50%; top: 50%; width: min(620px, 90vw); transform: translate(-50%, -50%); color: #19453A; pointer-events: none; }
.final .inner { position: relative; display: grid; justify-items: center; gap: 28px; }
.final .dias { color: var(--saffron); }
.final h2 { font-size: clamp(50px, 7vw, 104px); line-height: .92; max-width: 900px; }
.final h2 i { color: var(--saffron); }
.final p.lede { margin: 0 auto; }
.final .join { width: 100%; text-align: left; }

footer { background: var(--ink); color: var(--cream); padding: 36px 0; }
footer .row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; font-size: 13px; }
footer .row > :last-child { justify-self: end; display: flex; gap: 24px; }
footer a { text-decoration: none; opacity: .75; }
footer a:hover { opacity: 1; }
footer .logo .word { font-size: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero, .khatm .grid2, .promise .grid2 { grid-template-columns: 1fr; }
  .stage { min-height: 600px; }
  .sec-head { grid-template-columns: 1fr; }
  .sec-head p { justify-self: start; }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .step, .step:first-child { padding: 0; border-left: 0; }
  .promise .folio { order: 2; }
  .band { grid-template-columns: repeat(4, 1fr); height: 72px; }
  .band > div:nth-child(n+5) { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top { grid-template-columns: 1fr auto; }
  .top .meta { display: none; }
  .top .cta { padding: 10px 16px; font-size: 14px; }
  .logo .word { font-size: 21px; }
  .field { flex-direction: column; background: transparent; box-shadow: none; padding: 0; gap: 10px; }
  .field input { background: var(--paper); border-radius: 999px; padding: 16px 20px; box-shadow: inset 0 0 0 1.5px #163F3533; }
  .dark .field { background: transparent; box-shadow: none; }
  .dark .field input { background: #F1E7D314; box-shadow: inset 0 0 0 1.5px #F1E7D355; }
  .field .pill { padding: 16px; }
  .stage { min-height: 560px; }
  .phone { transform: scale(.88); }
  .chip.streak { left: -2%; top: 8%; }
  .chip.khatm { right: -2%; bottom: 6%; }
  .sec-meta > :nth-child(2) { display: none; }
  .done .rank b { font-size: 52px; }
  footer .row { grid-template-columns: 1fr; justify-items: start; }
  footer .row > :last-child { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
