/* Homepage feature compositions. Screens remain original image assets. */
body { background: #00131f; }
.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0 calc((100vw - 100%) / -2) -180px; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); background: radial-gradient(ellipse 48% 66% at 55% 47%, #164e3d 0%, #0b302f 40%, #00131f00 100%); }
.hero { max-width: 1296px; grid-template-columns: 1fr 1.2fr 1fr; gap: 40px; padding: 120px 48px 64px; min-height: 650px; flex: none; }
.hero-left h1 { font-size: clamp(30px, 2.8vw, 40px); width: auto; }
.hero-left p { width: auto; line-height: 1.6; }
.hero-right { min-width: 0; }
.hero-benefits { display: grid; gap: 32px; padding-left: 0; justify-self: end; }
.hero-benefits h2 { font-size: 19px; font-weight: 500; letter-spacing: -.03em; margin-bottom: 9px; }
.hero-benefits p { font-size: 14px; color: var(--muted); line-height: 1.65; max-width: 230px; }
.feature-grid { width: calc(100% - 96px); max-width: 1344px; margin: 24px auto 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.feature-card { background: #0b202b; border-radius: 36px; overflow: hidden; position: relative; min-width: 0; }
.feature-copy h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 500; line-height: 1.12; letter-spacing: -.045em; text-wrap: balance; }
.feature-copy p { color: #a1adb4; font-size: 16px; line-height: 1.65; margin-top: 18px; max-width: 440px; text-wrap: pretty; }
.feature-copy small { display: block; font-size: 13px; color: #83949e; margin-top: 16px; line-height: 1.5; }
.feature-quran { grid-column: span 5; grid-row: span 2; padding: 64px 48px 0; min-height: 1020px; }
.screen-phone { background: #080b10; padding: 7px; border-radius: 16.5% / 7.6%; box-shadow: 0 0 0 2px #343a41, 0 0 0 5px #14191f, 0 30px 65px -22px #0009; overflow: hidden; }
.screen-phone img { display: block; width: 100%; height: auto; border-radius: 14.6% / 6.7%; }
.quran-phone { width: min(100%, 314px); margin: 66px auto -60px; transform: none; }
.feature-widgets { grid-column: span 7; min-height: 430px; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 48px; padding: 56px 48px; }
.feature-widgets h2 { font-size: 32px; }
.widget-art { filter: drop-shadow(0 12px 16px rgba(0, 7, 14, .32)); position: relative; min-height: 270px; display: flex; align-items: center; width: 100%; }
.prayer-widget { width: 100%; height: auto; clip-path: inset(8.3% 5% 6.6% round 25px); transform: rotate(-3deg); }
.verse-widget { position: absolute; width: 45%; height: auto; bottom: 4px; right: 8px; clip-path: inset(3.1% 6.5% 2% round 24px); transform: rotate(8deg); }
.feature-duas { grid-column: span 7; min-height: 558px; display: grid; grid-template-columns: .9fr 1fr; align-items: center; gap: 40px; padding: 56px 48px 0; }
.feature-duas .feature-copy { padding-bottom: 56px; }
.duas-phone { width: 260px; margin-bottom: -130px; transform: none; }
.feature-guides { grid-column: span 7; min-height: 690px; padding: 64px 56px 0; }
.guide-art { position: relative; height: 420px; margin-top: 64px; }
.guide-art .screen-phone { width: 245px; position: absolute; top: 0; }
.guide-back { left: 9%; transform: rotate(-8deg); }
.guide-front { right: 8%; transform: rotate(7deg) translateY(32px); }
.feature-offline { grid-column: span 5; min-height: 690px; padding: 64px 48px; display: flex; flex-direction: column; justify-content: center; gap: 52px; }
.offline-art { color: #c5ddd1; width: 170px; height: 170px; background: #132e35; border-radius: 48px; margin: 0 auto; padding: 18px; }
.offline-art svg { width: 100%; height: 100%; }
.feature-download { text-align: center; padding: 130px 24px 140px; }
.feature-download h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 500; letter-spacing: -.045em; margin-bottom: 32px; }
@media(min-width: 1600px) { .feature-grid { gap: 36px; } }
@media(max-width: 1100px) and (min-width: 769px) {
 .hero { grid-template-columns: 1fr 1.2fr; padding-left: 32px; padding-right: 32px; gap: 24px; }
 .hero-benefits { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); padding: 16px 0 0; }
 .feature-grid { width: calc(100% - 64px); gap: 28px; }
 .feature-quran { padding: 48px 32px 0; }
 .feature-widgets { grid-template-columns: 1fr; padding: 40px; gap: 16px; }
 .widget-art { min-height: 200px; max-width: 320px; width: 100%; margin: auto; }
 .feature-duas { grid-template-columns: 1fr; padding: 40px 40px 0; gap: 0; }
 .feature-duas .feature-copy { padding-bottom: 0; }
 .duas-phone { margin: 36px auto -210px; }
 .feature-guides { padding: 48px 32px 0; }
 .guide-art .screen-phone { width: 210px; }
 .feature-offline { padding: 48px 32px; }
}
@media(max-width: 768px) {
 .hero { grid-template-columns: 1fr; padding: 130px 24px 64px; min-height: auto; gap: 40px; }
 .hero-left h1 { font-size: 40px; max-width: 470px; }
 .hero-right { order: 0; width: 100%; max-width: 480px; margin: auto; }
 .hero-benefits { grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 8px 0 0; text-align: center; }
 .hero-benefits h2 { font-size: 15px; }
 .hero-benefits p { font-size: 12px; }
 .feature-grid { width: calc(100% - 32px); gap: 24px; margin-top: 28px; grid-template-columns: 1fr; }
 .feature-grid > .feature-card { grid-column: 1; grid-row: auto; border-radius: 28px; }
 .feature-copy h2 { font-size: 32px; }
 .feature-copy p { font-size: 15px; margin-top: 16px; }
 .feature-quran { min-height: 790px; padding: 44px 32px 0; }
 .quran-phone { max-width: 280px; margin-top: 48px; margin-bottom: -70px; }
 .feature-widgets { grid-template-columns: 1fr; padding: 32px 32px 44px; gap: 24px; }
 .widget-art { min-height: 260px; width: 100%; max-width: 370px; margin: auto; }
 .feature-widgets .feature-copy { order: -1; }
 .feature-duas { grid-template-columns: 1fr; min-height: 700px; padding: 44px 32px 0; gap: 44px; }
 .feature-duas .feature-copy { padding: 0; }
 .duas-phone { width: 270px; margin: 0 auto -145px; }
 .feature-guides { min-height: 690px; padding: 44px 32px 0; }
 .guide-art { margin-top: 48px; }
 .guide-art .screen-phone { width: 210px; }
 .guide-back { left: 0; }
 .guide-front { right: -8px; }
 .feature-offline { min-height: 470px; padding: 48px 32px; gap: 44px; }
 .offline-art { width: 140px; height: 140px; border-radius: 38px; }
 .feature-download { padding: 88px 24px 96px; }
}

.feature-home { grid-column: span 12; min-height: 500px; padding: 48px 72px 0; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.feature-home .feature-copy { padding-bottom: 48px; max-width: 400px; }
.home-art { height: 452px; overflow: hidden; display: flex; justify-content: center; padding: 6px; }
.home-phone { width: 250px; flex-shrink: 0; align-self: flex-start; }
@media(max-width:1100px) and (min-width:769px) {
 .hero { min-height: 620px; }
 .hero-benefits { justify-self: stretch; }
 .feature-home { padding: 56px 48px 0; gap: 48px; }
}
@media(max-width:768px) {
 .hero { padding-top: 108px; }
 .hero::before { background: radial-gradient(ellipse 95% 50% at 50% 48%, #164e3d 0%, #0b302f 40%, #00131f00 100%); }
 .hero-benefits { justify-self: stretch; }
 .feature-widgets { gap: 40px; }
 .widget-art { min-height: 240px; }
 .feature-home { min-height: 720px; padding: 44px 32px 0; grid-template-columns: 1fr; gap: 44px; }
 .feature-home .feature-copy { padding: 0; }
 .home-art { height: 470px; }
 .home-phone { width: 240px; }
}

.hero-right .td-stage { aspect-ratio: auto; height: 440px; max-height: none; }
.hero-right .td-phone { box-shadow: 0 30px 65px -20px #000c, inset 0 0 0 1px #353a40; }
@media(max-width:1100px) and (min-width:769px) {
 .hero-right .td-stage { height: 420px; }
}
@media(max-width:768px) {
 .hero-right .td-stage { height: min(105vw, 430px); }
}
@media(max-width:768px) {
 .feature-quran { min-height: 0; padding-bottom: 48px; }
 .quran-phone { margin-bottom: 0; }
 .feature-duas { min-height: 0; padding-bottom: 48px; }
 .duas-phone { width: min(100%, 270px); margin-bottom: 0; }
 .feature-home { min-height: 0; padding-bottom: 48px; }
 .home-art { height: auto; overflow: visible; }
 .home-phone { width: min(100%, 240px); }
}

@media(prefers-reduced-motion:reduce) {
 .hero-left h1 .accent { animation: none; }
}
.goal-demo-wrap { margin-top: 66px; padding-bottom: 48px; }
.goal-demo-wrap .quran-phone { margin: 0 auto; }
.goal-screen { position: relative; width: 100%; aspect-ratio: 393 / 852; border-radius: 14.6% / 6.7%; overflow: hidden; background: #00091a; }
.goal-screen > .td-content > img { width: 100%; height: auto; }
.goal-demo-control { display: block; margin: 28px auto 0; padding: 10px 16px; border: 0; border-radius: 12px; background: rgba(255,255,255,.05); color: #a1adb4; font: 500 12px/1.4 'Inter',sans-serif; cursor: pointer; }
.goal-demo-control[hidden] { display: none; }
.goal-demo-control:hover { background: rgba(255,255,255,.09); color: #fff; }
.goal-demo-control:focus-visible { outline: 2px solid #59ed97; outline-offset: 4px; }
@media(max-width:768px) { .goal-demo-wrap { margin-top: 48px; padding-bottom: 0; } }
.goal-demo { isolation: isolate; }
.goal-screen { border-radius: 44px; clip-path: inset(0 round 44px); isolation: isolate; }
.goal-screen .td-content { border-radius: inherit; overflow: hidden; }
.goal-loop-fade { position: absolute; inset: 0; z-index: 20; background: #000; opacity: 0; pointer-events: none; border-radius: inherit; }
@media(max-width:768px) { .goal-screen { border-radius: 39px; clip-path: inset(0 round 39px); } }
.goal-home-focus .s-quranStreakCard1 { position: relative; z-index: 2; }
.goal-screen .td-touch { background: rgba(255,255,255,.18); box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.goal-demo { container-type: inline-size; }
.goal-screen { border-radius: 14.6cqw; clip-path: inset(0 round 14.6cqw); }
