/* Layout: "light through the lattice". Night-teal ground from the logo; a light (noor) that moves over an
   8-fold star lattice; paper bands for reading; arch windows and octagram frames from mosque architecture. */
:root {
  --ink: #03201e;
  --ink-2: #072c28;
  --ink-3: #0d3a35;
  --green: #1f8a4c;
  --green-hi: #3cc174;
  --noor: #f2d88f;
  --gold: #b8913f;
  --paper: #eef3ee;
  --paper-2: #e3ece5;
  --text: #0a2421;
  --text-2: #46625c;
  --on-ink: #e8f1ec;
  --on-ink-2: #9db8b0;
  --hair-ink: rgba(232, 214, 160, .16);
  --hair-paper: rgba(10, 36, 33, .12);
  --qalqalah: #2563b0;
  --f-display: "Gloock", "Iowan Old Style", "Times New Roman", serif;
  --f-kufi: "Reem Kufi", "Noto Kufi Arabic", "Segoe UI", sans-serif;
  --f-quran: "Amiri Quran", "Amiri", "Traditional Arabic", serif;
  --f-ruqaa: "Aref Ruqaa", "Amiri", serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --r-s: 10px; --r-m: 18px; --r-l: 28px;
  --step--1: clamp(.82rem, .79rem + .15vw, .9rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.09rem);
  --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.1vw, 2.1rem);
  --step-3: clamp(2rem, 1.5rem + 2.4vw, 3.3rem);
  --step-4: clamp(2.6rem, 1.7rem + 4.4vw, 5.4rem);
  --octagram: polygon(100% 50%, 85.36% 64.64%, 85.36% 85.36%, 64.64% 85.36%, 50% 100%, 35.36% 85.36%, 14.64% 85.36%, 14.64% 64.64%, 0% 50%, 14.64% 35.36%, 14.64% 14.64%, 35.36% 14.64%, 50% 0%, 64.64% 14.64%, 85.36% 14.64%, 85.36% 35.36%);
  --lattice-dim: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' fill='none' stroke='%23e8f1ec' stroke-opacity='.075' stroke-width='1'%3E%3Cpath d='M102 60 89.68 72.3 89.7 89.7 72.3 89.68 60 102 47.7 89.68 30.3 89.7 30.32 72.3 18 60 30.32 47.7 30.3 30.3 47.7 30.32 60 18 72.3 30.32 89.7 30.3 89.68 47.7Z'/%3E%3Cpath d='M102 60h18M18 60H0M60 18V0M60 102v18M89.7 89.7 120 120M30.3 89.7 0 120M30.3 30.3 0 0M89.7 30.3 120 0'/%3E%3Cpath d='M12 0 0 12-12 0 0-12ZM132 0 120 12 108 0 120-12ZM12 120 0 132-12 120 0 108ZM132 120 120 132 108 120 120 108Z'/%3E%3Cpath d='m60 46 14 14-14 14-14-14Z'/%3E%3C/svg%3E");
  --lattice-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' fill='none' stroke='%23f2d88f' stroke-opacity='.9' stroke-width='1.2'%3E%3Cpath d='M102 60 89.68 72.3 89.7 89.7 72.3 89.68 60 102 47.7 89.68 30.3 89.7 30.32 72.3 18 60 30.32 47.7 30.3 30.3 47.7 30.32 60 18 72.3 30.32 89.7 30.3 89.68 47.7Z'/%3E%3Cpath d='M102 60h18M18 60H0M60 18V0M60 102v18M89.7 89.7 120 120M30.3 89.7 0 120M30.3 30.3 0 0M89.7 30.3 120 0'/%3E%3Cpath d='M12 0 0 12-12 0 0-12ZM132 0 120 12 108 0 120-12ZM12 120 0 132-12 120 0 108ZM132 120 120 132 108 120 120 108Z'/%3E%3Cpath d='m60 46 14 14-14 14-14-14Z'/%3E%3C/svg%3E");
  --lattice-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' fill='none' stroke='%230a2421' stroke-opacity='.06' stroke-width='1'%3E%3Cpath d='M102 60 89.68 72.3 89.7 89.7 72.3 89.68 60 102 47.7 89.68 30.3 89.7 30.32 72.3 18 60 30.32 47.7 30.3 30.3 47.7 30.32 60 18 72.3 30.32 89.7 30.3 89.68 47.7Z'/%3E%3Cpath d='M102 60h18M18 60H0M60 18V0M60 102v18M89.7 89.7 120 120M30.3 89.7 0 120M30.3 30.3 0 0M89.7 30.3 120 0'/%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { background: var(--ink); color: var(--on-ink); font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--noor); outline-offset: 3px; border-radius: 6px; }
.ar { font-family: var(--f-kufi); direction: rtl; unicode-bidi: isolate; letter-spacing: 0; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { display: inline-flex; align-items: center; gap: .6em; font-size: var(--step--1); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--noor); }
.eyebrow::before { content: ""; width: 9px; height: 9px; background: currentColor; clip-path: var(--octagram); }
.paper .eyebrow { color: var(--green); }
.section { padding-block: clamp(72px, 9vw, 132px); position: relative; }
.paper { background: var(--paper); color: var(--text); }
.paper-2 { background: var(--paper-2); color: var(--text); }
.head { display: grid; gap: 16px; max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.head h2 { font-size: var(--step-3); }
.head p { color: var(--on-ink-2); font-size: var(--step-1); line-height: 1.5; }
.paper .head p, .paper-2 .head p { color: var(--text-2); }

/* Buttons */
.btn { --b: var(--green); display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--b); color: #fff; font: 600 var(--step-0)/1 var(--f-body); text-decoration: none; cursor: pointer; position: relative; isolation: isolate; overflow: hidden; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; box-shadow: 0 10px 30px -12px rgba(31,138,76,.8), inset 0 1px 0 rgba(255,255,255,.25); }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120px 80px at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), transparent 70%); opacity: 0; transition: opacity .3s; }
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { opacity: 1; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-ghost { background: rgba(232,241,236,.07); color: var(--on-ink); box-shadow: inset 0 0 0 1px var(--hair-ink); }
.paper .btn-ghost, .paper-2 .btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--hair-paper); }
.link { color: inherit; font-weight: 600; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.link::after { content: "→"; transition: transform .25s; }
.link:hover::after { transform: translateX(4px); }

/* Header: floating liquid-glass bar */
.top { position: fixed; z-index: 50; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 12px); padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); pointer-events: none; }
.bar { pointer-events: auto; max-width: 1180px; margin-inline: auto; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; border-radius: 999px; background: linear-gradient(180deg, rgba(232,241,236,.12), rgba(232,241,236,.04)); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 0 0 1px rgba(232,241,236,.12), 0 20px 50px -24px rgba(0,0,0,.6); transition: background .3s, padding .3s; }
.top.is-solid .bar { background: linear-gradient(180deg, rgba(7,44,40,.86), rgba(3,32,30,.78)); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand img { width: 40px; height: 40px; border-radius: 12px; background: #fff; padding: 3px; }
.brand b { font-family: var(--f-display); font-weight: 400; font-size: 1.15rem; line-height: 1; white-space: nowrap; }
.brand small { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-2); margin-top: 3px; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--on-ink); transition: background .2s; }
.nav a:hover { background: rgba(232,241,236,.1); }
.bar .btn { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 999px; border: 0; background: rgba(232,241,236,.1); color: var(--on-ink); cursor: pointer; }
.sheet { pointer-events: auto; max-width: 1180px; margin: 10px auto 0; padding: 14px; border-radius: 24px; background: rgba(7,44,40,.96); backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px var(--hair-ink), 0 30px 60px -30px #000; display: grid; gap: 4px; }
.sheet a { padding: 14px 16px; border-radius: 14px; text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.sheet a:hover { background: rgba(232,241,236,.08); }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-top: calc(env(safe-area-inset-top, 0px) + 128px); padding-bottom: 40px; background: radial-gradient(900px 600px at 78% 10%, rgba(31,138,76,.28), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(184,145,63,.14), transparent 60%), var(--ink); }
.lattice, .lattice-lit { position: absolute; inset: 0; z-index: -2; background-image: var(--lattice-dim); background-size: 120px 120px; background-position: center top; }
.lattice-lit { z-index: -1; background-image: var(--lattice-gold); -webkit-mask-image: radial-gradient(260px 260px at var(--lx, 72%) var(--ly, 30%), #000 0%, rgba(0,0,0,.35) 45%, transparent 75%); mask-image: radial-gradient(260px 260px at var(--lx, 72%) var(--ly, 30%), #000 0%, rgba(0,0,0,.35) 45%, transparent 75%); }
.glow { position: absolute; z-index: -1; width: 520px; height: 520px; left: calc(var(--lx, 72%) - 260px); top: calc(var(--ly, 30%) - 260px); border-radius: 50%; background: radial-gradient(closest-side, rgba(242,216,143,.22), transparent); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 26px; min-width: 0; }
.hero h1 { font-size: var(--step-4); line-height: .98; }
.hero h1 .w { display: inline-block; animation: rise .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 70ms); }
.hero h1 em { font-style: normal; color: var(--noor); position: relative; white-space: nowrap; }
.hero h1 em svg { position: absolute; left: -2%; width: 104%; bottom: -.12em; height: .3em; overflow: visible; }
.hero h1 em path { stroke: var(--noor); stroke-width: 3; fill: none; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.4s .9s cubic-bezier(.6,0,.2,1) forwards; }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--on-ink-2); max-width: 36em; }
.lede strong { color: var(--on-ink); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.name-ar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--noor); }
.name-ar .ar { font-size: 1.6rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.name-ar i { height: 1px; width: 56px; background: linear-gradient(90deg, var(--noor), transparent); }
.name-ar span:last-child { font-size: var(--step--1); color: var(--on-ink-2); letter-spacing: .08em; text-transform: uppercase; }

.hero-art { position: relative; min-width: 0; justify-self: center; width: min(100%, 460px); }
.arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 28px 28px; overflow: hidden; box-shadow: 0 0 0 1px rgba(242,216,143,.35), 0 0 0 10px rgba(242,216,143,.06), 0 40px 80px -30px rgba(0,0,0,.7); background: var(--ink-3); }
.arch img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.02); }
.arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(3,32,30,.75)); }
.note { position: absolute; font-family: var(--f-ruqaa); color: var(--noor); font-size: 2.2rem; line-height: 1; direction: rtl; transform: rotate(-8deg); left: -38px; top: 10%; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.note svg { position: absolute; width: 64px; height: 50px; left: 46px; top: 34px; transform: rotate(8deg); }
.note path { stroke: var(--noor); stroke-width: 2; fill: none; stroke-linecap: round; }
.chip-glass { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 18px; background: linear-gradient(180deg, rgba(232,241,236,.16), rgba(232,241,236,.06)); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 0 0 1px rgba(232,241,236,.14), 0 20px 40px -20px rgba(0,0,0,.6); font-size: .92rem; line-height: 1.25; animation: float 7s ease-in-out infinite; }
.chip-glass b { display: block; font-weight: 700; }
.chip-glass small { color: var(--on-ink-2); font-size: .8rem; }
.chip-glass .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green-hi); box-shadow: 0 0 0 0 rgba(60,193,116,.6); animation: pulse 2.2s infinite; flex: none; }
.chip-time { right: -26px; bottom: 18%; animation-delay: -2s; }
.chip-one { left: -30px; bottom: 6%; }
.chip-one .oct { width: 30px; height: 30px; clip-path: var(--octagram); background: var(--noor); display: grid; place-items: center; color: var(--ink); font: 700 .8rem var(--f-kufi); flex: none; }

.stats { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--hair-ink); }
.stat { padding: 22px 18px 6px 0; display: grid; gap: 4px; }
.stat + .stat { padding-left: 18px; border-left: 1px solid var(--hair-ink); }
.stat b { font-family: var(--f-display); font-weight: 400; font-size: var(--step-3); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--on-ink-2); font-size: var(--step--1); }

/* Verse */
.verse { margin: 0; background: var(--ink-2); padding-block: clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.verse::before { content: ""; position: absolute; inset: 0; background-image: var(--lattice-dim); background-size: 120px; opacity: .6; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.verse-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.ayah { font-family: var(--f-quran); direction: rtl; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem); line-height: 2; color: var(--noor); text-align: right; margin: 0; }
.verse figcaption { display: grid; gap: 14px; border-left: 1px solid var(--hair-ink); padding-left: clamp(18px, 3vw, 36px); }
.verse figcaption p { font-family: var(--f-display); font-size: var(--step-2); line-height: 1.25; }
.verse cite { font-style: normal; color: var(--on-ink-2); font-size: var(--step--1); letter-spacing: .06em; }

/* Class finder */
.finder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.q { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.q legend { font-weight: 700; font-size: var(--step-1); margin-bottom: 14px; display: flex; gap: 12px; align-items: baseline; padding: 0; }
.q legend span { font-family: var(--f-display); font-weight: 400; color: var(--green); font-size: 1rem; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt label { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair-paper), 0 1px 2px rgba(10,36,33,.06); cursor: pointer; font-weight: 600; font-size: .98rem; transition: box-shadow .2s, background .2s, color .2s, transform .2s; user-select: none; }
.opt label:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(31,138,76,.45), 0 6px 16px -10px rgba(10,36,33,.35); }
.opt input:checked + label { background: var(--ink); color: var(--on-ink); box-shadow: 0 10px 24px -14px rgba(3,32,30,.9); }
.opt input:checked + label::before { content: ""; width: 10px; height: 10px; clip-path: var(--octagram); background: var(--noor); }
.opt input:focus-visible + label { outline: 2px solid var(--green); outline-offset: 3px; }
.result { position: sticky; top: 100px; border-radius: var(--r-l); background: var(--ink); color: var(--on-ink); padding: clamp(22px, 3vw, 34px); display: grid; gap: 20px; overflow: hidden; isolation: isolate; box-shadow: 0 40px 80px -40px rgba(3,32,30,.8); }
.result::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--lattice-gold); background-size: 120px; opacity: .12; -webkit-mask-image: radial-gradient(400px 260px at 100% 0%, #000, transparent); mask-image: radial-gradient(400px 260px at 100% 0%, #000, transparent); }
.result small { color: var(--noor); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
.result h3 { font-size: var(--step-3); margin-top: 6px; }
.result > div > p { color: var(--on-ink-2); margin-top: 10px; }
.result ul.ticks { display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: start; }
.ticks li::before { content: ""; width: 12px; height: 12px; margin-top: .45em; clip-path: var(--octagram); background: var(--green-hi); }
.fit { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--hair-ink); }
.fit b { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-2); font-weight: 600; }
.fit ul { display: grid; gap: 8px; }
.fit li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; font-size: .95rem; }
.fit li .mono { width: 34px; height: 34px; font-size: 1.05rem; background: var(--noor); color: var(--ink); }
.fit li .mono::after { display: none; }
.fit li span { color: var(--on-ink-2); }
.fit li strong { color: var(--on-ink); font-weight: 600; }
.result .cta-row .btn { flex: 1 1 auto; }
.result.swap > * { animation: swap .45s cubic-bezier(.2,.8,.2,1) both; }

/* Programs */
.programs { background: var(--ink); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-l); padding: clamp(22px, 2.6vw, 32px); background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); box-shadow: inset 0 0 0 1px var(--hair-ink); display: grid; gap: 16px; align-content: start; text-decoration: none; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; min-width: 0; }
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(242,216,143,.35), 0 30px 60px -30px rgba(0,0,0,.8); }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(300px 200px at var(--mx, 80%) var(--my, 0%), rgba(242,216,143,.12), transparent 70%); opacity: 0; transition: opacity .35s; }
.card:hover::after { opacity: 1; }
.card h3 { font-size: var(--step-2); }
.card p { color: var(--on-ink-2); }
.card .ar-tag { font-family: var(--f-kufi); color: var(--noor); font-size: 1.05rem; direction: rtl; }
.card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card ul { display: flex; flex-wrap: wrap; gap: 8px; }
.card li { padding: 6px 12px; border-radius: 999px; background: rgba(232,241,236,.06); box-shadow: inset 0 0 0 1px var(--hair-ink); font-size: .85rem; color: var(--on-ink); }
.card .link { margin-top: auto; color: var(--noor); }
.c-learn { grid-column: span 4; grid-row: span 2; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); align-items: stretch; }
.c-learn .txt { display: grid; gap: 16px; align-content: start; min-width: 0; }
.c-learn figure { margin: 0; border-radius: 999px 999px var(--r-m) var(--r-m); overflow: hidden; min-height: 280px; box-shadow: 0 0 0 1px rgba(242,216,143,.3); }
.c-learn figure img { width: 100%; height: 100%; object-fit: cover; }
.c-tajweed { grid-column: span 2; grid-row: span 2; background: linear-gradient(180deg, #f6f3e8, #ece6d2); color: var(--text); box-shadow: none; }
.c-tajweed p { color: var(--text-2); }
.c-tajweed .ar-tag, .c-tajweed .link { color: var(--green); }
.c-tajweed li { background: rgba(10,36,33,.05); box-shadow: inset 0 0 0 1px var(--hair-paper); color: var(--text); }
.c-studies, .c-arabic { grid-column: span 3; }
.demo { margin: 4px 0; padding: 18px; border-radius: var(--r-m); background: #fffdf6; box-shadow: inset 0 0 0 1px var(--hair-paper); text-align: center; }
.demo .ayah-s { font-family: var(--f-quran); direction: rtl; font-size: 2.1rem; line-height: 1.9; color: var(--text); }
.q-letter { color: var(--qalqalah); position: relative; cursor: help; border-bottom: 2px dotted var(--qalqalah); outline: none; }
.q-tip { display: block; margin-top: 8px; font-size: .86rem; color: var(--text-2); line-height: 1.45; }
.q-tip b { color: var(--qalqalah); }

.who { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.who > span { color: var(--on-ink-2); margin-right: 6px; font-size: .95rem; }
.who ul { display: flex; flex-wrap: wrap; gap: 10px; }
.who li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(242,216,143,.08); box-shadow: inset 0 0 0 1px rgba(242,216,143,.22); font-weight: 600; font-size: .92rem; }
.who li::before { content: ""; width: 8px; height: 8px; clip-path: var(--octagram); background: var(--noor); }

/* Teachers */
.teachers { background: var(--paper); background-image: var(--lattice-paper); background-size: 120px; }
.sanad { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.thread { position: absolute; left: 0; right: 0; top: 64px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold) 8%, var(--gold) 92%, transparent); opacity: .55; }
.t { position: relative; background: #fff; border-radius: var(--r-l); padding: 24px; display: grid; gap: 14px; align-content: start; box-shadow: 0 1px 2px rgba(10,36,33,.06), 0 24px 48px -32px rgba(10,36,33,.45); text-decoration: none; color: var(--text); transition: transform .35s cubic-bezier(.2,.8,.2,1); min-width: 0; }
.t:hover { transform: translateY(-4px); }
.mono { width: 80px; height: 80px; clip-path: var(--octagram); background: conic-gradient(from 22.5deg, var(--ink), var(--ink-3), var(--ink)); display: grid; place-items: center; color: var(--noor); font: 700 2.2rem/1 var(--f-kufi); position: relative; padding-top: .12em; }
.mono::after { content: ""; position: absolute; inset: 3px; clip-path: var(--octagram); box-shadow: inset 0 0 0 1px rgba(242,216,143,.5); }
.t h3 { font-size: var(--step-2); }
.t .role { color: var(--text-2); font-size: .92rem; }
.t ul { display: grid; gap: 8px; font-size: .92rem; color: var(--text-2); }
.t li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; }
.t li::before { content: ""; width: 8px; height: 8px; margin-top: .55em; clip-path: var(--octagram); background: var(--gold); }
.badge { justify-self: start; display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(31,138,76,.1); color: var(--green); font-weight: 700; font-size: .8rem; }
.t .link { color: var(--green); margin-top: 4px; }
.sanad-end { margin-top: 28px; display: flex; align-items: center; gap: 16px; color: var(--text-2); font-size: .98rem; max-width: 760px; }
.sanad-end .seal { flex: none; width: 56px; height: 56px; clip-path: var(--octagram); background: var(--gold); color: #fff; display: grid; place-items: center; font: 400 1.5rem/1 var(--f-quran); }

/* Steps */
.steps-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.steps { display: grid; gap: 14px; counter-reset: s; }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding: 20px; border-radius: var(--r-m); background: rgba(232,241,236,.04); box-shadow: inset 0 0 0 1px var(--hair-ink); }
.step::before { counter-increment: s; content: counter(s); width: 56px; height: 56px; clip-path: var(--octagram); background: var(--noor); color: var(--ink); display: grid; place-items: center; font: 400 1.5rem/1 var(--f-display); }
.step h3 { font-family: var(--f-body); font-weight: 700; font-size: var(--step-1); line-height: 1.3; }
.step p { color: var(--on-ink-2); margin-top: 4px; }
.screen { position: relative; border-radius: var(--r-l); overflow: hidden; box-shadow: 0 0 0 1px var(--hair-ink), 0 40px 80px -40px #000; }
.screen img { width: 100%; aspect-ratio: 870 / 475; object-fit: cover; }
.clock { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border-radius: var(--r-m); overflow: hidden; background: rgba(232,241,236,.15); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.clock div { padding: 12px 14px; background: rgba(3,32,30,.55); display: grid; gap: 2px; min-width: 0; }
.clock small { color: var(--on-ink-2); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clock b { font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; font-variant-numeric: tabular-nums; line-height: 1.1; }

/* Testimonials */
.voices-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.voices-head .head { margin: 0; }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px var(--hair-paper); cursor: pointer; font-size: 1.2rem; transition: background .2s, color .2s; }
.arrows button:hover { background: var(--ink); color: var(--on-ink); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 380px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: rgba(10,36,33,.25) transparent; }
.quote { scroll-snap-align: start; background: #fff; border-radius: var(--r-l); padding: 26px; display: grid; grid-template-rows: auto 1fr auto; gap: 16px; box-shadow: 0 1px 2px rgba(10,36,33,.06), 0 20px 40px -32px rgba(10,36,33,.4); margin: 0; }
.quote::before { content: "“"; font-family: var(--f-display); font-size: 4rem; line-height: .6; height: 28px; color: var(--green); }
.quote p { color: var(--text); font-size: 1.02rem; }
.quote p mark { background: linear-gradient(transparent 60%, rgba(242,216,143,.7) 60%); color: inherit; padding: 0 2px; }
.quote footer { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--hair-paper); }
.quote footer .mono { width: 38px; height: 38px; font-size: 1rem; font-family: var(--f-display); font-weight: 400; padding-top: 0; }
.quote footer b { display: block; }
.quote footer small { color: var(--text-2); }

/* Lessons + FAQ */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.videos { display: grid; gap: 14px; }
.video { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px; border-radius: var(--r-m); background: rgba(232,241,236,.04); box-shadow: inset 0 0 0 1px var(--hair-ink); text-decoration: none; transition: background .25s; }
.video:hover { background: rgba(232,241,236,.08); }
.video .thumb { aspect-ratio: 16 / 10; border-radius: 12px; display: grid; place-items: center; background: var(--ink-3); background-image: var(--lattice-gold); background-size: 60px; position: relative; overflow: hidden; }
.video .thumb::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(3,32,30,.2), rgba(3,32,30,.85)); }
.video .thumb span { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--noor); display: grid; place-items: center; }
.video .thumb span::before { content: ""; margin-left: 3px; border-left: 12px solid var(--ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.video b { display: block; font-size: 1.05rem; }
.video small { color: var(--on-ink-2); }
.vm { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.vm div { padding: 20px; border-radius: var(--r-m); background: rgba(242,216,143,.06); box-shadow: inset 0 0 0 1px rgba(242,216,143,.18); }
.vm b { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; color: var(--noor); display: block; margin-bottom: 6px; }
.vm p { color: var(--on-ink-2); font-size: .95rem; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r-m); background: rgba(232,241,236,.04); box-shadow: inset 0 0 0 1px var(--hair-ink); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; clip-path: var(--octagram); background: var(--noor); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--on-ink-2); }

/* Closing CTA + footer */
.close { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(800px 500px at 50% 120%, rgba(31,138,76,.35), transparent 70%), var(--ink-2); }
.close .lattice, .close .lattice-lit { z-index: -1; }
.close-box { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.close h2 { font-size: var(--step-4); }
.close h2 .ar { font-family: var(--f-kufi); color: var(--noor); display: block; font-size: .5em; margin-bottom: 10px; text-align: left; }
.contact { display: grid; gap: 10px; }
.contact div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 14px 18px; border-radius: var(--r-m); background: rgba(232,241,236,.06); box-shadow: inset 0 0 0 1px var(--hair-ink); align-items: baseline; }
.contact small { color: var(--on-ink-2); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.contact b { font-weight: 600; user-select: all; overflow-wrap: anywhere; }
footer.site { background: var(--ink); border-top: 1px solid var(--hair-ink); padding-block: 48px 32px; color: var(--on-ink-2); font-size: .95rem; }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h4 { margin: 0 0 12px; color: var(--on-ink); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.foot ul { display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--on-ink); }
.foot .brand { margin: 0 0 14px; }
.legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--hair-ink); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* Floating WhatsApp */
.wa { position: fixed; z-index: 40; right: max(16px, calc(env(safe-area-inset-right, 0px) + 16px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); width: 58px; height: 58px; border-radius: 50%; background: var(--green); display: grid; place-items: center; box-shadow: 0 16px 40px -12px rgba(31,138,76,.9), inset 0 1px 0 rgba(255,255,255,.3); transition: transform .25s; }
.wa:hover { transform: scale(1.06); }
.wa svg { width: 28px; height: 28px; fill: #fff; }

/* Motion */
@keyframes rise { from { transform: translateY(.45em); filter: blur(6px); opacity: .35; } to { transform: none; filter: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(60,193,116,0); } 100% { box-shadow: 0 0 0 0 rgba(60,193,116,0); } }
@keyframes swap { from { transform: translateY(10px); opacity: .4; } to { transform: none; opacity: 1; } }
@supports (animation-timeline: view()) {
  .reveal { animation: up linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  @keyframes up { from { transform: translateY(36px) scale(.985); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero h1 em path { stroke-dashoffset: 0; }
}

/* Responsive */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .c-learn { grid-column: span 6; }
  .c-tajweed { grid-column: span 6; grid-row: auto; }
  .sanad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thread { display: none; }
}
@media (max-width: 900px) {
  .hero-grid, .verse-grid, .finder, .steps-grid, .split, .close-box { grid-template-columns: minmax(0, 1fr); }
  .result { position: relative; top: 0; }
  .hero-art { width: min(100%, 380px); margin-top: 8px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--hair-ink); }
  .verse figcaption { border-left: 0; padding-left: 0; border-top: 1px solid var(--hair-ink); padding-top: 18px; }
  .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .bar .btn span { display: none; }
  .bar .btn { width: 42px; padding: 0; }
  .brand small { display: none; }
  .c-learn { grid-template-columns: minmax(0, 1fr); }
  .c-learn figure { min-height: 220px; border-radius: var(--r-m); }
  .c-studies, .c-arabic { grid-column: span 6; }
  .sanad { grid-template-columns: minmax(0, 1fr); }
  .note { left: -6px; font-size: 1.8rem; }
  .chip-time { right: -6px; }
  .chip-one { left: -6px; }
  .vm { grid-template-columns: minmax(0, 1fr); }
  .contact div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .clock { position: static; border-radius: 0; }
  .rail { grid-auto-columns: minmax(260px, 86%); }
  .lattice, .lattice-lit { background-size: 90px 90px; }
}

/* ---------- Navigation dropdowns ---------- */
.nav { align-items: center; }
.nav > a[aria-current], .dd > a[aria-current] { background: rgba(242,216,143,.12); color: var(--noor); }
.dd { position: relative; }
.dd > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .7; }
.dd-panel { position: absolute; top: calc(100% + 16px); left: 50%; min-width: 300px; display: grid; gap: 2px; padding: 10px; border-radius: 22px; background: rgba(5,38,34,.97); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); box-shadow: inset 0 0 0 1px var(--hair-ink), 0 30px 60px -24px rgba(0,0,0,.8); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .2s, transform .25s cubic-bezier(.2,.8,.2,1), visibility .2s; }
.dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.dd:hover .dd-panel, .dd:focus-within .dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd-panel a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: var(--on-ink); }
.dd-panel a:hover { background: rgba(232,241,236,.07); }
.dd-panel b { font-weight: 600; font-size: .96rem; }
.dd-panel small { color: var(--on-ink-2); font-size: .82rem; }
.dd-wide { min-width: 560px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dd-wide .dd-all { grid-column: 1 / -1; }
.dd-panel .ar-mini { font-family: var(--f-kufi); color: var(--noor); font-size: .9rem; }
.dd-panel .dd-t { grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 12px; }
.dd-all { margin-top: 4px; border-top: 1px solid var(--hair-ink); border-radius: 0 0 12px 12px !important; color: var(--noor) !important; font-weight: 600; font-size: .9rem; }
.mono-s { width: 36px; height: 36px; font-size: 1.05rem; padding-top: .1em; }
.mono-s::after { inset: 2px; }
.sheet { max-height: calc(100dvh - 110px); overflow-y: auto; grid-template-columns: minmax(0, 1fr); }
.sheet-group { display: grid; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--hair-ink); }
.sheet-group:last-child { border-bottom: 0; }
.sheet-group a { font-weight: 500; font-size: 1rem; padding: 10px 16px; color: var(--on-ink-2); }
.sheet-group a.sheet-head { color: var(--noor); font-weight: 700; font-size: 1.05rem; }

/* ---------- Inner page hero ---------- */
.phero { position: relative; isolation: isolate; overflow: hidden; padding-top: calc(env(safe-area-inset-top, 0px) + 124px); padding-bottom: clamp(52px, 6vw, 92px); background: radial-gradient(800px 500px at 85% 0%, rgba(31,138,76,.26), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(184,145,63,.12), transparent 60%), var(--ink); }
.phero-grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.phero-grid.has-side { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.phero-copy { display: grid; gap: 18px; min-width: 0; max-width: 820px; }
.phero h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.6rem); line-height: 1; }
.phero h1 em, .close h2 em { font-style: normal; color: var(--noor); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: var(--step--1); color: var(--on-ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--on-ink); }
.crumbs [aria-current] { color: var(--noor); }
.phero-art { justify-self: center; width: min(100%, 380px); }
.arch-s { aspect-ratio: 4 / 4.6; }
.phero-side { min-width: 0; }
.mini-finder, .chain { display: grid; gap: 14px; padding: 24px; border-radius: var(--r-l); background: linear-gradient(180deg, rgba(232,241,236,.12), rgba(232,241,236,.04)); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(232,241,236,.12); }
.mini-finder small, .chain > small { color: var(--noor); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .76rem; }
.mini-finder b { font-family: var(--f-display); font-weight: 400; font-size: var(--step-2); line-height: 1.2; }
.mini-finder .btn { justify-self: start; }
.chain-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; position: relative; }
.chain-list::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(var(--noor), rgba(242,216,143,.2)); }
.chain-list li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; padding: 8px 0; }
.seal-s { width: 44px; height: 44px; clip-path: var(--octagram); background: var(--noor); color: var(--ink); display: grid; place-items: center; font: 400 1.3rem/1 var(--f-quran); }
.seal-t { font: 700 1.1rem/1 var(--f-kufi); }
.seal-y { background: var(--green-hi); font-size: 1rem; }
.chain-gap span:first-child { width: 44px; height: 44px; display: grid; place-items: center; }
.chain-gap span:first-child::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(242,216,143,.5); box-shadow: 0 -14px 0 rgba(242,216,143,.3), 0 14px 0 rgba(242,216,143,.3); }
.chain-gap span:last-child { color: var(--on-ink-2); font-size: .92rem; }

/* ---------- Content blocks ---------- */
.story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.story .head { margin: 0; }
.prose { display: grid; gap: 18px; font-size: var(--step-1); line-height: 1.6; max-width: 62ch; }
.paper .prose p, .paper-2 .prose p { color: var(--text-2); }
.prose p:first-child { color: var(--text); }
.prose .cta-row { margin-top: 8px; }
.vm-big { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); }
.vm-big > div { display: grid; gap: 14px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-l); background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); box-shadow: inset 0 0 0 1px var(--hair-ink); }
.vm-big p { font-family: var(--f-display); font-size: var(--step-2); line-height: 1.3; }
.list-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.lc { display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: var(--r-l); background: #fff; box-shadow: 0 1px 2px rgba(10,36,33,.06), 0 20px 40px -32px rgba(10,36,33,.4); }
.lc h3 { font-family: var(--f-body); font-weight: 700; font-size: var(--step-1); line-height: 1.3; }
.lc p { color: var(--text-2); }
.lc-mark { width: 40px; height: 40px; clip-path: var(--octagram); background: linear-gradient(135deg, var(--green), #146b39); margin-bottom: 6px; }
.who-paper > span { color: var(--text-2); }
.who-paper li { background: #fff; box-shadow: inset 0 0 0 1px var(--hair-paper); color: var(--text); }
.who-paper li::before { background: var(--green); }
.h-s { font-size: var(--step-2); margin-bottom: 18px; }
.ticks-paper { display: grid; gap: 12px; font-size: 1.04rem; }
.ticks-paper li { color: var(--text); }
.ticks-paper li::before { background: var(--green); }

/* Programs page */
.progs { display: grid; gap: clamp(28px, 4vw, 48px); }
.prog { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(18px, 2vw, 24px); border-radius: var(--r-l); background: #fff; box-shadow: 0 1px 2px rgba(10,36,33,.06), 0 30px 60px -40px rgba(10,36,33,.45); }
.prog.flip .prog-img { order: 2; }
.prog-img { margin: 0; border-radius: calc(var(--r-l) - 6px); overflow: hidden; aspect-ratio: 4 / 3; }
.prog-img img { width: 100%; height: 100%; object-fit: cover; }
.prog-txt { display: grid; gap: 16px; padding: clamp(4px, 1vw, 16px); min-width: 0; }
.prog-txt h2 { font-size: var(--step-3); }
.prog-txt .ar-tag { font-family: var(--f-kufi); color: var(--green); direction: rtl; justify-self: start; }
.prog-lead { color: var(--text-2); font-size: var(--step-1); line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 13px; border-radius: 999px; background: var(--paper); font-size: .88rem; font-weight: 600; }
.fit-row { display: grid; gap: 8px; }
.fit-row small { color: var(--text-2); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.fit-row > div { display: flex; flex-wrap: wrap; gap: 8px; }
.fit-chip { display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--paper); text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--text); transition: background .2s; }
.fit-chip:hover { background: var(--paper-2); }
.fit-chip-ink { background: rgba(232,241,236,.08); color: var(--on-ink); box-shadow: inset 0 0 0 1px var(--hair-ink); }
.table-wrap { overflow-x: auto; border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--hair-ink); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .96rem; }
.compare th, .compare td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--hair-ink); }
.compare thead th { font-weight: 600; color: var(--noor); background: rgba(232,241,236,.04); }
.compare thead th a { text-decoration: none; }
.compare tbody th { text-align: left; font-weight: 600; }
.compare tr:last-child > * { border-bottom: 0; }
.dot-yes, .dot-no { display: inline-block; width: 16px; height: 16px; clip-path: var(--octagram); vertical-align: middle; }
.dot-yes { background: var(--green-hi); }
.dot-no { background: rgba(232,241,236,.12); width: 10px; height: 10px; }

/* Service page */
.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.term { display: grid; gap: 10px; align-content: start; padding: 28px; border-radius: var(--r-l); background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); box-shadow: inset 0 0 0 1px var(--hair-ink); }
.term-ar { font-family: var(--f-quran); font-size: 2rem; line-height: 1.6; color: var(--noor); direction: rtl; }
.term h3 { font-size: var(--step-2); }
.term p { color: var(--on-ink-2); }
.demo-big { margin-top: 16px; padding: clamp(20px, 3vw, 32px); }
.demo-big .ayah-s { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); }
.sanad-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sanad-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.card.mini h3 { font-size: var(--step-1); font-family: var(--f-display); }

/* Teacher profile */
.phero-profile { padding-bottom: clamp(40px, 5vw, 72px); }
.profile-hero { display: grid; gap: 28px; }
.profile-top { display: flex; align-items: center; gap: clamp(20px, 3vw, 36px); flex-wrap: wrap; }
.profile-top > div { display: grid; gap: 12px; min-width: 0; }
.mono-xl { width: clamp(120px, 14vw, 168px); height: clamp(120px, 14vw, 168px); font-size: clamp(3.4rem, 5vw, 4.6rem); flex: none; }
.mono-l { width: 92px; height: 92px; font-size: 2.6rem; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge-ink { background: rgba(242,216,143,.12); color: var(--noor); box-shadow: inset 0 0 0 1px rgba(242,216,143,.3); }
.profile { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.profile-main { display: grid; gap: 40px; }
.profile-side { position: sticky; top: 100px; display: grid; gap: 16px; }
.side-card { display: grid; gap: 14px; justify-items: start; padding: 26px; border-radius: var(--r-l); background: #fff; box-shadow: 0 1px 2px rgba(10,36,33,.06), 0 24px 48px -32px rgba(10,36,33,.45); }
.side-card > b { font-family: var(--f-display); font-weight: 400; font-size: var(--step-2); }
.side-card > small { color: var(--text-2); margin-top: -8px; }
.side-card p { color: var(--text-2); }
.side-card .contact { width: 100%; }
.contact-paper div { background: var(--paper); box-shadow: none; }
.contact-paper small { color: var(--text-2); }
.contact-paper b { color: var(--text); }
.side-others { display: grid; gap: 6px; }
.side-others > small { color: var(--text-2); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; margin-bottom: 4px; }
.other-t { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border-radius: 14px; text-decoration: none; color: var(--text); transition: background .2s; }
.other-t:hover { background: #fff; }
.other-t small { display: block; color: var(--text-2); font-size: .82rem; }

/* Reviews */
.wall { columns: 3 300px; column-gap: 16px; }
.wall .quote { break-inside: avoid; margin-bottom: 16px; display: grid; }
.wall-few { columns: 2 300px; max-width: 900px; }
.quote .link { color: var(--green); font-size: .92rem; }
.phero-quote .wrap { display: grid; gap: 28px; }
.big-quote { margin: 0; display: grid; gap: 28px; max-width: 980px; }
.big-quote blockquote { margin: 0; }
.big-quote blockquote p { font-family: var(--f-display); font-size: clamp(1.6rem, 1.1rem + 2vw, 2.8rem); line-height: 1.25; }
.big-quote blockquote p::before { content: "\201C"; color: var(--noor); }
.big-quote blockquote p::after { content: "\201D"; color: var(--noor); }
.big-quote mark { background: linear-gradient(transparent 62%, rgba(242,216,143,.35) 62%); color: inherit; }
.big-quote figcaption { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.big-quote figcaption .mono { width: 48px; height: 48px; font: 400 1.3rem/1 var(--f-display); padding: 0; }
.big-quote figcaption small { display: block; color: var(--on-ink-2); }

/* Teachings and audios */
.video-l { grid-template-columns: 180px minmax(0, 1fr); padding: 18px; }
.video-l b { font-size: 1.25rem; }
.yt { display: grid; gap: 16px; align-content: start; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-l); background: radial-gradient(400px 260px at 100% 0%, rgba(31,138,76,.3), transparent 70%), var(--ink-2); box-shadow: inset 0 0 0 1px var(--hair-ink); color: var(--on-ink); }
.yt h2 { font-size: var(--step-3); }
.yt p { color: var(--on-ink-2); }
.yt .eyebrow { color: var(--noor); }
.yt .btn-ghost { background: rgba(232,241,236,.07); color: var(--on-ink); box-shadow: inset 0 0 0 1px var(--hair-ink); }
.paper-2 .eyebrow { color: var(--green); }
.tracks { display: grid; gap: 10px; }
.track { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 18px 14px 14px; border-radius: var(--r-m); background: #fff; box-shadow: 0 1px 2px rgba(10,36,33,.06); }
.track b { display: block; font-size: 1.08rem; }
.track small { color: var(--text-2); }
.play { width: 52px; height: 52px; border: 0; clip-path: var(--octagram); background: var(--ink); display: grid; place-items: center; cursor: not-allowed; opacity: .55; }
.play::before { content: ""; margin-left: 4px; border-left: 14px solid var(--noor); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.need { font-size: .78rem; font-weight: 700; color: #8a5a00; background: #fff3d6; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-grid aside { display: grid; gap: 16px; }
.cform { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-l); background: #fff; box-shadow: 0 1px 2px rgba(10,36,33,.06), 0 30px 60px -40px rgba(10,36,33,.45); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.fields .full { grid-column: 1 / -1; }
.fields label { display: grid; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--text); }
.fields input, .fields textarea { width: 100%; font: 400 1rem/1.4 var(--f-body); color: var(--text); background: var(--paper); border: 1px solid transparent; border-radius: 14px; padding: 13px 14px; transition: border-color .2s, background .2s; resize: vertical; color-scheme: light; }
.fields input:focus, .fields textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(31,138,76,.15); }
.fields [aria-invalid="true"] { border-color: #c2412d; background: #fff6f4; }
.form-note { color: var(--text-2); font-size: .9rem; align-self: center; }
.form-note[data-state="error"] { color: #b3361f; font-weight: 600; }
.form-note[data-state="ok"] { color: var(--green); font-weight: 600; }
.side-wa { background: var(--ink); color: var(--on-ink); }
.side-wa > b { font-size: var(--step-2); font-family: var(--f-display); font-weight: 400; }
.side-wa p { color: var(--on-ink-2); }
.clock-static { position: static; border-radius: var(--r-l); }

/* 404 */
.nf { display: grid; gap: 18px; justify-items: start; max-width: 860px; }
.nf-ar { font-family: var(--f-kufi); font-weight: 700; font-size: clamp(5rem, 3rem + 10vw, 11rem); line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--noor); direction: rtl; }


@media (max-width: 1100px) {
  .dd-panel { display: none; }
  .dd > a::after { display: none; }
  .terms { grid-template-columns: minmax(0, 1fr); }
  .sanad-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .phero-grid.has-side, .story, .vm-big, .prog, .profile, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .prog.flip .prog-img { order: 0; }
  .profile-side { position: relative; top: 0; }
  .phero-art { width: min(100%, 320px); }
}
@media (max-width: 640px) {
  .sanad-3, .sanad-2 { grid-template-columns: minmax(0, 1fr); }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .video-l { grid-template-columns: 110px minmax(0, 1fr); }
  .track { grid-template-columns: 44px minmax(0, 1fr); }
  .track .need { grid-column: 2; justify-self: start; }
  .play { width: 44px; height: 44px; }
}

/* Teacher person icons (no photos) inside the octagram frame */
.mono-person { padding: 0 !important; color: var(--noor); --face: #0f3f39; }
.mono-person svg { width: 58%; height: 58%; display: block; margin-top: 6%; }
.mono-person .face { fill: var(--face); }
.fit li .mono-person { color: var(--ink); --face: var(--noor); }
.mono-person.mono-s svg { width: 62%; height: 62%; }

/* Video rows on a paper band */
.paper .video, .paper-2 .video { background: #fff; box-shadow: 0 1px 2px rgba(10,36,33,.06), 0 16px 32px -28px rgba(10,36,33,.4); color: var(--text); }
.paper .video:hover, .paper-2 .video:hover { background: #fff; transform: translateY(-2px); }
.paper .video small, .paper-2 .video small { color: var(--text-2); }

/* ---------- WordPress and Elementor (appended to the prototype styles by scripts/build_plugin_assets.py) ---------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--noor); color: var(--ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }
.band-ink-2 { background: var(--ink-2); }
body.noor { margin: 0; }
[hidden], .sheet[hidden] { display: none !important; }
.elementor-widget-container > section, .elementor-widget-container > figure { margin: 0; }
.e-con.e-parent:has(> .e-con-inner > .elementor-widget[class*="elementor-widget-nae-"]),
.e-con.e-parent:has(> .elementor-widget[class*="elementor-widget-nae-"]) { --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; --gap: 0px; }
.elementor-widget[class*="elementor-widget-nae-"] { width: 100%; }
.page-prose { max-width: 72ch; }
.quote-h1 { font-family: var(--f-body); font-weight: 600; font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--noor); margin: 0; }
.page-prose h2, .page-prose h3 { color: var(--text); margin-top: 12px; }
.page-prose a { color: var(--green); }

/* Contact Form 7 inside the design's card */
.cform .wpcf7 .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
.cform .wpcf7 .row > div { min-width: 0; padding: 0; width: auto; max-width: none; }
.cform .wpcf7 .col-md-12, .cform .wpcf7 .col-lg-12 { grid-column: 1 / -1; }
.cform .wpcf7 p { margin: 0; }
.cform .wpcf7-form-control-wrap { display: block; }
.cform .wpcf7 input[type="text"], .cform .wpcf7 input[type="email"], .cform .wpcf7 input[type="tel"], .cform .wpcf7 textarea { width: 100%; font: 400 1rem/1.4 var(--f-body); color: var(--text); background: var(--paper); border: 1px solid transparent; border-radius: 14px; padding: 13px 14px; color-scheme: light; transition: border-color .2s, background .2s; }
.cform .wpcf7 textarea { min-height: 140px; resize: vertical; }
.cform .wpcf7 input:focus, .cform .wpcf7 textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(31,138,76,.15); }
.cform .wpcf7 .wpcf7-not-valid { border-color: #c2412d; background: #fff6f4; }
.cform .wpcf7-not-valid-tip { color: #b3361f; font-size: .85rem; margin-top: 6px; }
.cform .wpcf7-submit { min-height: 48px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--green); color: #fff; font: 600 1rem/1 var(--f-body); cursor: pointer; box-shadow: 0 10px 30px -12px rgba(31,138,76,.8); }
.cform .wpcf7-submit:hover { transform: translateY(-2px); }
.cform .wpcf7-response-output { margin: 16px 0 0 !important; padding: 12px 14px !important; border-radius: 12px; font-size: .92rem; color: var(--text); }
.cform .wpcf7-spinner { margin-left: 12px; }
@media (max-width: 640px) { .cform .wpcf7 .row { grid-template-columns: minmax(0, 1fr); } }

/* Audio rows with a file */
.track .play:not([disabled]) { cursor: pointer; opacity: 1; }
.track.is-playing .play::before { margin-left: 0; width: 14px; height: 16px; border: 0; background: linear-gradient(90deg, var(--noor) 0 35%, transparent 35% 65%, var(--noor) 65%); }

/* ---------- Articles ---------- */
.phero-article { padding-bottom: clamp(40px, 5vw, 72px); }
.art-hero { display: grid; gap: 16px; max-width: 900px; }
.art-hero h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.8rem); line-height: 1.05; }
.art-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; color: var(--on-ink-2); font-size: .92rem; }
.art-logo { width: 28px; height: 28px; border-radius: 8px; background: #fff; padding: 2px; }
.art-layout { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.art-side { position: sticky; top: 100px; display: grid; gap: 16px; }
.toc { padding: 20px; border-radius: var(--r-l); background: #fff; box-shadow: 0 1px 2px rgba(10,36,33,.06); }
.toc b { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 10px; }
.toc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: .94rem; }
.toc li a { display: block; padding: 6px 10px; border-radius: 10px; }
.toc li a:hover { background: var(--paper); }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--green); }
.art-program .ar-tag { font-family: var(--f-kufi); color: var(--green); direction: rtl; }
.art-program .link { color: var(--green); }
.art-body { display: grid; gap: 40px; min-width: 0; }
.art-prose { max-width: 70ch; font-size: 1.08rem; line-height: 1.75; color: var(--text); }
.art-prose > * + * { margin-top: 0; }
.art-prose p { color: var(--text-2); }
.art-prose h2 { font-size: var(--step-2); margin-top: 18px; scroll-margin-top: 100px; color: var(--text); }
.art-prose h3 { font-family: var(--f-body); font-weight: 700; font-size: var(--step-1); margin: 8px 0 0; color: var(--text); }
.art-prose ul, .art-prose ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--text-2); }
.art-prose li::marker { color: var(--green); }
.art-prose strong { color: var(--text); }
.art-prose a { color: var(--green); }
.art-prose blockquote { margin: 8px 0; padding: 18px 22px; border-radius: var(--r-m); background: #fff; box-shadow: inset 4px 0 0 var(--gold); }
.art-prose blockquote p { color: var(--text); }
.art-prose .ar { font-family: var(--f-quran); font-size: 1.6rem; line-height: 2; color: var(--text); display: block; text-align: right; }
.art-prose table { width: 100%; border-collapse: collapse; font-size: .96rem; background: #fff; border-radius: var(--r-m); overflow: hidden; }
.art-prose th, .art-prose td { padding: 12px 14px; border-bottom: 1px solid var(--hair-paper); text-align: left; vertical-align: top; }
.art-prose th { background: var(--paper-2); color: var(--text); }
.art-prose [lang="ar"]:not(.ar) { font-family: var(--f-quran); font-size: 1.22em; line-height: 1.6; font-style: normal; }
.art-prose span[lang="ar"]:not(.ar-wrap) { white-space: nowrap; }
.art-prose td[dir="rtl"] { text-align: right; }
@media (max-width: 640px) { .art-prose table { display: block; overflow-x: auto; } .art-prose th, .art-prose td { min-width: 132px; } }
.art-faq h2 { font-size: var(--step-2); margin-bottom: 16px; color: var(--text); scroll-margin-top: 100px; }
.faq-paper details { background: #fff; box-shadow: 0 1px 2px rgba(10,36,33,.06); color: var(--text); }
.faq-paper details p { color: var(--text-2); }
.faq-paper summary::after { background: var(--green); }
.art-reviewer { display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: var(--r-l); background: #fff; box-shadow: 0 1px 2px rgba(10,36,33,.06); max-width: 70ch; }
.art-reviewer small { display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.art-reviewer b { display: block; font-family: var(--f-display); font-weight: 400; font-size: var(--step-1); color: var(--text); }
.art-reviewer span { display: block; color: var(--text-2); font-size: .92rem; }
.art-reviewer .link { color: var(--green); margin-top: 6px; }
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.article-card { background: #fff; box-shadow: 0 1px 2px rgba(10,36,33,.06), 0 20px 40px -32px rgba(10,36,33,.4); color: var(--text); }
.article-card h3 { font-size: var(--step-1); font-family: var(--f-display); color: var(--text); }
.article-card p { color: var(--text-2); }
.article-card .ar-tag { font-family: var(--f-body); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green); direction: ltr; }
.article-card .art-meta { color: var(--text-2); font-size: .85rem; }
.article-card .link { color: var(--green); }
.section:not(.paper):not(.paper-2) .article-card { background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); color: var(--on-ink); }
.section:not(.paper):not(.paper-2) .article-card h3 { color: var(--on-ink); }
.art-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.art-chips .chip { padding: 9px 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair-paper); text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--text); }
.art-chips .chip.is-on { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.art-empty { display: grid; gap: 12px; justify-items: start; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-l); background: #fff; box-shadow: 0 1px 2px rgba(10,36,33,.06); max-width: 720px; }
.art-empty b { font-family: var(--f-display); font-weight: 400; font-size: var(--step-2); color: var(--text); }
.art-empty p { color: var(--text-2); }
@media (max-width: 900px) {
  .art-layout { grid-template-columns: minmax(0, 1fr); }
  .art-side { position: relative; top: 0; order: 2; }
}

/* Teachers: "Meet all" link under a partial list, and on profiles (2026-12-01) */
.t-more { margin-top: 28px; display: flex; justify-content: center; }
.side-others > .link { padding: 8px 10px 0; color: var(--green); }
