/* AHLUNUR editorial visual system — last-loaded responsive layer. */
:root{--canvas:#f7f4ee;--surface:#fffdf9;--line:#e6e1d7;--soft:#edf1e8;--green:#124b35;--green2:#277451;--muted:#526057;--page-shadow:0 6px 24px #48392009;--hero-paper:#f6ead7;--hero-ink:#133f2d}
:root[data-theme=dark]{--canvas:#111e18;--surface:#1c2a23;--line:#3a4b40;--soft:#283c30;--green:#b7dfc3;--green2:#9ed6b2;--muted:#bdc9bc;--page-shadow:none;--hero-paper:#1d3025;--hero-ink:#f7f0df}
body{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.55;letter-spacing:-.01em}main{max-width:1460px;padding:24px 28px 64px}header{background:var(--surface);padding:10px max(24px,calc((100vw - 1404px)/2));min-height:70px;gap:20px;box-shadow:0 2px 16px #2b3c2410}header .logo{font-family:Georgia,serif;font-weight:700;font-size:22px;letter-spacing:-.025em;gap:10px}header .logo img{width:38px;height:38px}.header-actions{display:flex;align-items:center;gap:6px;flex:none}.header-account{background:#145238;color:#fff;border:1px solid #145238;padding:8px 18px;font-size:13px;border-radius:999px}.header-account:hover{background:#216846;color:#fff}.theme-button{border-radius:999px;padding:7px 10px;font-size:12px}.tile{border-radius:22px;box-shadow:var(--page-shadow);padding:22px}
@media(min-width:1051px){header nav{justify-content:center;gap:4px;flex-wrap:nowrap}header nav>button,header nav>.nav-more summary{flex-direction:row;font-size:13px;gap:7px;padding:10px 12px;min-height:44px}header nav>button svg{width:18px;height:18px}header nav>button[aria-current=page]{background:var(--soft)}.nav-more-panel{right:0}}
@media(min-width:851px) and (max-width:1050px){header{gap:8px;padding-inline:16px}.header-actions{gap:2px}.theme-button{font-size:11px;padding:6px}.header-account{padding:7px 10px}.logo{font-size:19px!important}}
/* Keep the family in the illustration visible, with a quiet readable left column. */
#guestHero{position:relative;display:grid;grid-template-columns: minmax(0,44%) minmax(0,56%);min-height:420px;isolation:isolate;border:1px solid var(--line);border-radius:30px;background:var(--hero-paper);color:var(--hero-ink);box-shadow:0 12px 40px #6b542416;margin-bottom:16px}
#guestHero .workspace-intro{position:relative;z-index:2;background:transparent;padding:clamp(28px,4vw,60px);min-width:0}#guestHero .brand-eyebrow{color:var(--green2);letter-spacing:.15em;font-size:11px;margin:0 0 18px}
#guestHero h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(38px,4.4vw,69px);font-weight:600;line-height:1.04;letter-spacing:-.046em;max-width:none;color:var(--hero-ink);margin:0 0 18px}#guestHero .workspace-intro>p:not(.brand-eyebrow){color:var(--hero-ink);font-size:clamp(15px,1.3vw,19px);max-width:43ch;margin:0 0 14px}#guestHero .actions{gap:8px;margin:5px 0 12px}#guestHero .actions button,.premium-panel button{border-radius:999px;font-size:14px;padding:10px 16px;margin:0;min-height:44px;white-space:normal}#guestHero .actions .workspace-primary{background:linear-gradient(180deg,#287451,#10472f);border-color:#155239;color:#fff;box-shadow:0 4px 12px #164c3526}#guestHero .actions button:not(.workspace-primary){background:var(--surface);border-color:var(--line);color:var(--green)}#guestHero .workspace-intro .hero-trust{font-size:12px!important;font-weight:600;opacity:.85}
#guestHero picture{position:relative;min-width:0;height:100%;margin-left:-10%;overflow:hidden}#guestHero picture img{display:block;width:100%;height:100%;min-height:420px;max-height:none;object-fit:cover;object-position:72% center}#guestHero picture:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--hero-paper),transparent 25%);pointer-events:none}
#homeTrial{margin:16px 0 20px;background:var(--surface);padding:14px 20px;border-radius:18px;gap:16px}#homeTrial p{font-size:13px;margin:2px 0}#homeTrial button{border-radius:999px}
.premium-launch{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border:1px solid var(--line);background:var(--surface);border-radius:22px;box-shadow:var(--page-shadow);padding:12px;gap:4px;margin:16px 0 24px}.premium-launch button{display:flex;align-items:center;text-align:left;gap:10px;border:0;border-radius:14px;margin:0;padding:12px 8px;background:transparent;min-width:0;min-height:64px;color:var(--ink)}.premium-launch button:hover{background:var(--soft)}.premium-launch button svg{width:36px;height:36px;padding:7px;background:#f2e7d2;border-radius:12px;color:#946d2d;flex:none}.premium-launch button span{min-width:0}.premium-launch strong{display:block;font-size:14px;letter-spacing:-.025em}.premium-launch small{display:block;font-size:11px;line-height:1.25;color:var(--muted);font-weight:400;margin-top:3px}
.home-section-title{margin:28px 0 14px}.home-section-title h2{font-size:clamp(24px,3vw,34px);font-weight:680;letter-spacing:-.045em}.section-kicker{font-size:11px;letter-spacing:.1em;color:var(--green2);font-weight:700}
.premium-bento{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:14px}.premium-panel{position:relative;min-height:215px;border-radius:24px;border:1px solid var(--line);overflow:hidden;background:var(--surface);isolation:isolate;display:flex;align-items:center;box-shadow:var(--page-shadow);grid-column:span 4}.premium-panel>div{padding:22px;position:relative;z-index:2;max-width:67%;min-width:0}.premium-panel h3{font-size:clamp(20px,2.1vw,30px);line-height:1.08;letter-spacing:-.04em;margin:8px 0}.premium-panel p:not(.section-kicker){font-size:13px;color:var(--muted);margin:0 0 16px;line-height:1.45}.premium-panel .section-kicker{margin:0}.premium-panel button{background:var(--soft);border:1px solid var(--line);color:var(--green);font-weight:650}.premium-panel button:hover{background:var(--surface)}
.panel-quran,.panel-prayer,.panel-academy{background-color:var(--hero-paper);color:var(--hero-ink);border-color:var(--line)}.panel-quran:before,.panel-prayer:before,.panel-academy:before{content:"";position:absolute;inset:0;z-index:-1;background-size:cover;background-position:center right}.panel-quran:before{background-image:url('/illustrations/visual-pack/quran-terrace.webp')}.panel-prayer:before{background-image:url('/illustrations/architecture-hero.svg');background-size:cover;background-position:right center}.panel-academy:before{background-image:url('/illustrations/academy-cover.webp')}.panel-quran:after,.panel-prayer:after,.panel-academy:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,var(--hero-paper) 12%,var(--hero-paper) 28%,transparent 100%)}.panel-quran p:not(.section-kicker),.panel-prayer p:not(.section-kicker),.panel-academy p:not(.section-kicker){color:var(--hero-ink)}.panel-quran>div,.panel-prayer>div,.panel-academy>div{max-width:72%}.panel-kids,.panel-map{grid-column:span 6;min-height:215px;background:var(--surface)}.panel-kids{background:linear-gradient(120deg,var(--surface),var(--soft))}.panel-kids img{position:absolute;right:4%;bottom:0;width:38%;height:auto;max-height:210px;object-fit:contain;filter:drop-shadow(0 10px 12px #543b2018)}.panel-map{background:linear-gradient(120deg,var(--surface),var(--soft))}.panel-map>svg{position:absolute;right:6%;width:30%;height:auto;max-height:145px}.home-family-banner{margin-top:16px;background:var(--surface);border-radius:24px}.home-family-banner>div{padding:28px}.home-family-banner h2{font-family:Georgia,serif;font-weight:600;font-size:clamp(28px,3vw,42px);letter-spacing:-.035em}.home-family-banner img{max-height:300px;min-height:200px;object-position:70% 40%}
.home-start,.home-faq{margin:32px 0}.home-start-grid .tile{box-shadow:var(--page-shadow);border-radius:20px}.home-final-cta{background:#174b35}.home-final-cta button{background:#f0d7a4;color:#163d2b}.home-dashboard{border-radius:28px;background:var(--surface);padding:26px}.home-dashboard-stats>div{background:var(--soft);border:none}.home-widget{border-radius:18px;box-shadow:none}.home-widget h3{font-size:21px}
#learn .workspace-hero,.workspace-family{border-color:var(--line);background:var(--hero-paper);color:var(--hero-ink);box-shadow:var(--page-shadow);border-radius:26px;min-height:260px;grid-template-columns:1fr 1fr}.workspace-family .workspace-intro,#learn .workspace-intro{background:var(--hero-paper);padding:clamp(24px,3vw,42px)}#learn .workspace-intro h2,.workspace-family .workspace-intro h2{font-family:Georgia,serif;font-weight:600;color:var(--hero-ink);font-size:clamp(32px,4vw,52px)}#learn .workspace-intro p,.workspace-family .workspace-intro p{color:var(--hero-ink)}.workspace-family .workspace-intro .actions button{background:var(--surface);color:var(--green);border-color:var(--line)}#learn .workspace-hero img,.workspace-family img{max-height:320px;min-height:230px}.section-heading.quran-heading,.section-heading.prayer-heading,.section-heading.section-feature{border:1px solid var(--line);border-radius:26px}.prayer-heading{background:linear-gradient(105deg,#163d2d 40%,#39745b);min-height:165px}.quran-heading{min-height:185px}.quran-heading .quran-cover-art{width:45%;mask-image:linear-gradient(to right,transparent,#000 32%);opacity:1}.quran-heading h2{font-family:Georgia,serif;font-weight:600}.reader-grid .tile{border-radius:18px}.workspace-card .lesson-cover{border-radius:14px}.workspace-card{border-radius:20px}.kids-section-hero{background:linear-gradient(120deg,#153f2f,#2b7856)}footer{font-size:13px}
@media(max-width:1100px){.premium-launch{grid-template-columns:repeat(3,minmax(0,1fr))}.premium-panel{grid-column:span 6}.panel-map{grid-column:span 12}}
@media(max-width:850px){header{position:sticky;top:0;padding:10px 14px;gap:8px;min-height:62px;backdrop-filter:none}header .logo{font-size:20px}header .logo img{width:32px;height:32px}header nav{background:var(--surface);box-shadow:0 -4px 24px #163d3010;z-index:10}header nav>button,header nav>.nav-more summary{font-size:10px}main{padding:14px 16px 100px}.premium-launch{padding:8px;gap:3px}.premium-launch button{padding:10px 7px}.premium-launch button svg{width:34px;height:34px}.premium-launch strong{font-size:13px}.premium-launch small{font-size:11px}#guestHero{min-height:0;grid-template-columns:1fr 1fr;border-radius:24px}#guestHero .workspace-intro{padding:26px}#guestHero h1{font-size:40px}#guestHero picture img{min-height:350px}.tile{padding:18px}.header-actions .theme-button{font-size:11px}.header-account{padding:7px 12px}}
@media(max-width:620px){main{padding-inline:12px}#guestHero{display:flex;flex-direction:column;min-height:0;overflow:hidden}#guestHero .workspace-intro{padding:24px 20px 10px}#guestHero h1{font-size:clamp(34px,10vw,46px);margin-bottom:12px}#guestHero .brand-eyebrow{margin-bottom:12px}#guestHero .workspace-intro>p:not(.brand-eyebrow){font-size:15px}#guestHero picture{margin:0;height:auto;aspect-ratio:16/9}#guestHero picture img{height:100%;min-height:0;max-height:none;object-position:center}#guestHero picture:after{background:linear-gradient(180deg,var(--hero-paper),transparent 21%)}#guestHero .actions{margin:3px 0 9px}#guestHero .actions button{padding:9px 13px;font-size:13px}#homeTrial{padding:14px;gap:8px}.premium-launch{grid-template-columns:repeat(3,minmax(0,1fr));padding:5px;border-radius:18px}.premium-launch button{flex-direction:column;align-items:center;text-align:center;padding:8px 2px;gap:5px;min-height:80px}.premium-launch button svg{width:34px;height:34px}.premium-launch strong{font-size:12px}.premium-launch small{font-size:10px}.premium-bento{gap:10px;grid-template-columns:1fr 1fr}.premium-panel{grid-column:span 1;min-height:192px;border-radius:20px;align-items:flex-end}.premium-panel>div{padding:16px;max-width:100%}.premium-panel h3{font-size:23px}.premium-panel p:not(.section-kicker){font-size:12px;margin-bottom:10px}.premium-panel button{padding:8px 12px;font-size:12px}.panel-quran:after,.panel-prayer:after,.panel-academy:after{background:linear-gradient(0deg,var(--hero-paper) 35%,transparent 100%)}.panel-kids,.panel-map{grid-column:span 2;align-items:center;min-height:174px}.panel-kids>div,.panel-map>div{max-width:65%}.panel-kids img{width:37%;right:2%;max-height:155px}.panel-map svg{width:28%}.home-family-banner>div{padding:20px}.home-family-banner img{min-height:0;max-height:230px}.home-dashboard{padding:18px}.home-section-title h2{font-size:26px}#learn .workspace-hero,.workspace-family{grid-template-columns:1fr;min-height:0}#learn .workspace-hero img,.workspace-family img{min-height:0;height:auto;max-height:220px}.quran-heading .quran-cover-art{width:30%;opacity:.8}.quran-heading{padding-right:28%}.home-start,.home-faq{margin:28px 0}.header-actions .theme-button{max-width:90px;font-size:10px}.header-account{font-size:12px}}
@media(max-width:350px){.premium-panel{grid-column:span 2}.premium-launch small{display:none}.header-actions .theme-button{max-width:70px}.header .logo{font-size:17px}}
@media(prefers-reduced-motion:no-preference){.premium-panel,.premium-launch button{transition:box-shadow .2s ease,background .2s ease}.premium-panel:hover{box-shadow:0 10px 26px #143b2419}}

/* Browser QA: allow direct section links to clear the sticky header. */
main>section{scroll-margin-top:88px}#main{scroll-margin-top:88px}
#guestHero{margin-bottom:14px}.premium-launch{margin-top:0;margin-bottom:18px}#homeTrial{margin:18px 0 20px}
@media(min-width:1051px){#guestHero{height:clamp(350px,27vw,400px);min-height:0;grid-template-rows:minmax(0,1fr)}#guestHero .workspace-intro{padding:24px clamp(28px,3.8vw,54px);min-height:0}#guestHero h1{font-size:clamp(42px,4.05vw,61px);margin-bottom:14px}#guestHero .brand-eyebrow{margin-bottom:12px}#guestHero picture,#guestHero picture img{min-height:0;height:100%}#guestHero picture img{object-position:72% 54%}#guestHero .workspace-intro>p:not(.brand-eyebrow){font-size:16px;margin-bottom:10px}#guestHero .actions{margin:4px 0 9px}}
@media(max-width:850px){main>section,#main{scroll-margin-top:76px}}
:root[data-theme=dark] .surah-row .surah-open,:root[data-theme=dark] .surah-row [data-favorite],:root[data-theme=dark] .kids-play-panel .game-options button{color:var(--green)}
