/*
 * HidayahChat landing, bright edition.
 * Structure follows the voice-AI app template (21st.dev, kedhareswer): floating pill nav, a giant
 * centred headline with the product on a phone rising through it, glowing gradient borders,
 * iridescent glass objects, a bento grid, a sticky-phone scroll story, a carousel and a closing CTA card.
 * The palette is HidayahChat's own, brightened: cool white, lapis, violet light, gold leaf and turquoise.
 */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
    --bg: #F5F7FD;
    --bg-2: #EBF0FB;
    --surface: #FFFFFF;
    --ink: #0F1A3D;
    --ink-2: #26345E;
    --muted: #5A6688;
    --line: rgba(15, 26, 61, .09);
    --line-2: rgba(15, 26, 61, .16);
    --lapis: #1D3B8F;
    --lapis-2: #3F63D8;
    --violet: #8B7CF6;
    --gold: #F2B544;
    --turq: #14B8A6;
    --mint: #D4F1EA;
    --sky: #DCE4FF;
    --sand: #FFF1D6;
    --iris: conic-gradient(from var(--spin), #3F63D8, #8B7CF6, #F2B544, #14B8A6, #3F63D8);
    --iris-flat: linear-gradient(110deg, #3F63D8, #8B7CF6 38%, #F2B544 72%, #14B8A6);
    --shadow: 0 1px 2px rgba(15, 26, 61, .05), 0 12px 32px -12px rgba(29, 59, 143, .18);
    --shadow-lg: 0 2px 4px rgba(15, 26, 61, .04), 0 40px 80px -30px rgba(29, 59, 143, .35);
    --focus: var(--lapis-2);

    --sans: "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
    --naskh: "Amiri", "Traditional Arabic", serif;
    --kufi: "Reem Kufi", "Readex Pro", sans-serif;

    --max: 1200px;
    --pad: clamp(16px, 4vw, 40px);
    --nav-h: 72px;
}

/* Tones for the calendar */
.tone-sky { background: var(--sky); }
.tone-gold { background: var(--sand); }
.tone-mint { background: var(--mint); }
.tone-paper { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 17px/1.55 var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.035em; line-height: 1.05; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }

main > section { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vh, 140px) var(--pad) 0; overflow-x: clip; }

/* Background light */
.aura { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aura i { position: absolute; width: 60vw; height: 60vw; border-radius: 50%; filter: blur(90px); opacity: .45; }
.aura i:nth-child(1) { left: -18vw; top: -22vw; background: #C9D5FF; }
.aura i:nth-child(2) { right: -20vw; top: 10vh; background: #E4DCFF; }
.aura i:nth-child(3) { left: 20vw; bottom: -40vw; background: #FFE7B8; opacity: .35; }

/* Shared type */
.sec-title { font-size: clamp(36px, 4.6vw, 64px); max-width: 16ch; }
.sec-title.center { margin-inline: auto; text-align: center; }
.sec-lede { margin-top: 18px; max-width: 34em; color: var(--muted); font-size: clamp(17px, 1.3vw, 19px); }
.sec-lede.center { margin-inline: auto; text-align: center; }

/* Cards */
.card { position: relative; background: var(--surface); border-radius: 28px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }

/* The glow border: a turning iridescent ring with a soft halo */
.glow { position: relative; isolation: isolate; }
.glow::before {
    content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: inherit; padding: 1.5px;
    background: var(--iris);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.glow, .threads li.glow, .otp b.glow { box-shadow: -8px 4px 22px -10px rgba(63, 99, 216, .55), 8px 6px 22px -10px rgba(242, 181, 68, .55), 0 14px 28px -14px rgba(139, 124, 246, .6); }

/* Pills */
.pill {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0;
    font: 500 16px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background-color .25s, color .25s;
}
.pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.pill:hover { transform: translateY(-2px); }
.pill:hover svg { transform: translateX(3px); }
.pill-lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.pill-dark { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(15, 26, 61, .6); }
.pill-dark:hover { background: var(--lapis); }
.pill-soft { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.pill-soft:hover { box-shadow: inset 0 0 0 1px var(--lapis-2), var(--shadow); }
.pill-glow { position: relative; isolation: isolate; color: #fff; background: linear-gradient(120deg, var(--lapis), var(--lapis-2) 55%, var(--violet)); box-shadow: 0 14px 30px -12px rgba(63, 99, 216, .75); }
.pill-glow::after { content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: inherit; background: var(--iris); filter: blur(10px); opacity: 0; transition: opacity .3s; }
.pill-glow:hover::after { opacity: .7; }

/* Header */
.nav {
    position: fixed; top: 14px; left: 50%; z-index: 30; translate: -50% 0;
    display: flex; align-items: center; gap: 12px;
    width: min(var(--max), calc(100% - 24px)); height: 60px; padding: 0 10px 0 16px;
    border-radius: 999px; background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 0 0 1px var(--line), var(--shadow);
    transition: box-shadow .3s, background-color .3s;
}
.nav.is-scrolled { background: rgba(255, 255, 255, .9); box-shadow: inset 0 0 0 1px #fff, 0 0 0 1px var(--line), var(--shadow-lg); }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 20px; font-weight: 600; letter-spacing: -.03em; text-decoration: none; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 10px 14px; border-radius: 999px; color: var(--ink-2); font-size: 15px; text-decoration: none; transition: background-color .2s, color .2s; }
.nav-links a:hover { background: var(--bg-2); color: var(--lapis); }
.nav-menu { display: none; position: relative; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 50%; background: var(--bg-2); cursor: pointer; }
.nav-menu i { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink); }
.nav-menu i:first-child { top: 17px; }
.nav-menu i:last-child { bottom: 17px; }

/* Mobile menu */
.menu {
    width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0;
    background: rgba(245, 247, 253, .97); color: var(--ink);
}
.menu::backdrop { background: rgba(245, 247, 253, .9); }
.menu-head { display: flex; justify-content: space-between; align-items: center; padding: 20px var(--pad); }
.menu-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; font-size: 26px; cursor: pointer; }
.menu nav { display: flex; flex-direction: column; padding: 8px var(--pad); }
.menu nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 28px; font-weight: 500; letter-spacing: -.03em; text-decoration: none; }

/* Explore popup */
.gate {
    width: min(760px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 32px;
    background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
.gate::backdrop { background: rgba(15, 26, 61, .35); backdrop-filter: blur(6px); }
.gate[open] { animation: pop-in .35s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pop-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.gate-head { display: flex; justify-content: space-between; align-items: center; padding: 26px 28px 6px; }
.gate-head h2 { font-size: 26px; }
.gate-close { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--bg-2); color: var(--ink); font-size: 24px; cursor: pointer; }
.gate-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px 28px; }
.gate-option {
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px; border-radius: 24px;
    background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none;
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background-color .25s;
}
.gate-option:hover { transform: translateY(-3px); background: #fff; box-shadow: inset 0 0 0 1.5px var(--lapis-2), var(--shadow); }
.gate-ar { font: 700 52px/1.1 var(--kufi); background: var(--iris-flat); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gate-name { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.gate-note { flex: 1; color: var(--muted); font-size: 15px; }
.gate-option .pill { margin-top: 10px; min-height: 40px; font-size: 15px; }
.gate-foot { padding: 6px 28px 26px; color: var(--muted); font-size: 14px; }

/* 1. Hero */
.hero { max-width: none !important; padding-top: calc(var(--nav-h) + clamp(48px, 9vh, 96px)) !important; text-align: center; overflow: hidden; }
.hero-title {
    position: relative; z-index: 1; max-width: 17ch; margin: 0 auto;
    font-size: clamp(48px, 7.6vw, 120px); font-weight: 600; letter-spacing: -.055em; line-height: .95;
    background: linear-gradient(180deg, var(--ink) 30%, #4B5A8C 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title .w { background: inherit; -webkit-background-clip: text; background-clip: text; }
.hero-stage { position: relative; z-index: 2; max-width: 1100px; height: 640px; margin: calc(clamp(48px, 7.6vw, 120px) * -.32) auto 0; }

.phone {
    position: relative; margin: 0; width: 330px; padding: 10px; border-radius: 54px;
    background: linear-gradient(145deg, #F4F6FB, #C9D0DE 40%, #EEF1F7 60%, #B9C1D2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 0 0 1px rgba(15, 26, 61, .12), var(--shadow-lg);
}
.phone::before { content: ""; position: absolute; right: -3px; top: 160px; width: 3px; height: 64px; border-radius: 2px; background: #B9C1D2; }
.phone-screen { position: relative; display: flex; flex-direction: column; height: 640px; padding: 14px 16px 18px; border-radius: 44px; background: linear-gradient(180deg, #FFFFFF, #F4F6FD); overflow: hidden; text-align: left; }
.phone-status { display: flex; justify-content: space-between; align-items: center; height: 26px; padding: 0 10px; font-size: 13px; font-weight: 600; }
.phone-status > i { width: 92px; height: 26px; border-radius: 20px; background: #0B0F1E; }
.phone-icons { display: flex; gap: 3px; }
.phone-icons b { width: 14px; height: 9px; border-radius: 3px; background: var(--ink); }
.phone-icons b:last-child { background: #22C55E; width: 18px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 16px 4px 12px; font-weight: 600; }
.chat-x { margin-left: auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-2); font-style: normal; font-size: 16px; color: var(--muted); }

.hero-phone { position: absolute; left: 50%; top: 0; translate: -50% 0; }
.chat { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bubble { font-size: 13.5px; line-height: 1.45; }
.bubble-me { align-self: flex-end; max-width: 84%; padding: 10px 14px; border-radius: 18px 18px 6px 18px; background: var(--bg-2); color: var(--ink); }
.bubble-by { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.bubble-by i { margin-left: auto; font-style: normal; letter-spacing: 1px; }
.bubble-ai { padding: 12px 14px; border-radius: 18px; background: var(--surface); }
.verse-glass {
    margin-top: 10px; padding: 12px 14px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(220, 228, 255, .7), rgba(255, 241, 214, .7));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 8px 20px -14px rgba(29, 59, 143, .5);
}
.verse-ar { font: 400 22px/1.75 var(--naskh); color: var(--ink); text-align: right; }
.verse-en { margin-top: 4px; color: var(--ink-2); font-size: 13px; }
.verse-ref { margin-top: 6px; color: var(--lapis); font-size: 12px; font-weight: 600; }

.composer {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    min-height: 44px; padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--surface);
    color: var(--muted); font-size: 13.5px;
}
.composer span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.composer-mic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); }
.composer-mic svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
[data-typer]::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--lapis-2); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Topic chips floating around the phone */
.topics { position: absolute; inset: 0; pointer-events: none; }
.topics li {
    position: absolute; left: var(--x); top: var(--y);
    display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px;
    background: rgba(255, 255, 255, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 0 0 1px #fff, 0 0 0 1px var(--line), var(--shadow);
    color: var(--ink-2); font-size: 15px; font-weight: 500;
    transform: translate(calc(var(--mx, 0) * var(--s) * -18px), calc(var(--my, 0) * var(--s) * -18px));
    transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}
.topics b { display: grid; place-items: center; min-width: 48px; height: 40px; padding: 0 8px; border-radius: 999px; background: var(--iris-flat); color: #fff; font: 700 20px/1 var(--kufi); }

/* Iridescent glass eight-point stars */
.glass-star {
    position: absolute; width: var(--sz, 160px); aspect-ratio: 1; pointer-events: none;
    filter: drop-shadow(0 30px 40px rgba(29, 59, 143, .25));
}
.glass-star::before {
    content: ""; position: absolute; inset: 0;
    clip-path: polygon(50% 0, 63.8% 16.6%, 85.4% 14.6%, 83.4% 36.2%, 100% 50%, 83.4% 63.8%, 85.4% 85.4%, 63.8% 83.4%, 50% 100%, 36.2% 83.4%, 14.6% 85.4%, 16.6% 63.8%, 0 50%, 16.6% 36.2%, 14.6% 14.6%, 36.2% 16.6%);
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .95), transparent 30%),
        radial-gradient(circle at 70% 75%, rgba(255, 255, 255, .5), transparent 35%),
        conic-gradient(from var(--spin), #9DB4FF, #C9B8FF, #FFD9A0, #9FE8DC, #9DB4FF);
}
.glass-star::after {
    content: ""; position: absolute; inset: 22%; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .7), transparent 70%); mix-blend-mode: soft-light;
}
.gs-1 { --sz: 150px; left: 6%; top: 34%; rotate: -14deg; }
.gs-2 { --sz: 110px; right: 8%; top: 64%; rotate: 18deg; }
.gs-3 { --sz: 120px; right: 2%; top: -10px; rotate: 12deg; }
.gs-4 { --sz: 170px; right: -30px; top: -40px; rotate: -10deg; }

.hero-foot { position: relative; z-index: 2; max-width: 760px; margin: 48px auto 0; }
.hero-lede { color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.hero-facts { display: flex; justify-content: center; gap: clamp(20px, 5vw, 64px); margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-facts div { display: flex; flex-direction: column-reverse; align-items: center; }
.hero-facts dd { font-size: clamp(32px, 3.4vw, 46px); font-weight: 600; letter-spacing: -.04em; line-height: 1; background: var(--iris-flat); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-facts dt { margin-top: 6px; color: var(--muted); font-size: 14px; }

/* 2. Statement */
.state { text-align: center; }
.state-title { max-width: 22ch; margin: 0 auto; font-size: clamp(32px, 4.4vw, 60px); line-height: 1.12; }
.state-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; text-align: left; }
.mini { padding: 24px; }
.mini h3 { margin-top: 16px; font-size: 20px; }
.mini p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.ico, .orb-ico {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, #E6ECFF 70%);
    box-shadow: inset 0 0 0 1px #fff, 0 0 0 1px var(--line), 0 10px 22px -10px rgba(63, 99, 216, .6);
}
.ico svg, .orb-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--lapis); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 3. Bento */
.bento { display: grid; grid-template-columns: 1.15fr .85fr 1.1fr; grid-template-rows: auto auto; gap: 18px; margin-top: 56px; }
.bento .card { padding: 28px; overflow: hidden; }
.bento h3 { font-size: 26px; }
.bento .card > p, .bento-starters-head p { margin-top: 8px; color: var(--muted); }
.bento-ask { display: flex; flex-direction: column; }
.composer-lg { margin-top: 32px; min-height: 54px; font-size: 15px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 28px; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 13px; }
.bento-understand { display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; }
.glass-stack { position: relative; height: 190px; margin: -6px 0 20px; }
.glass-stack i {
    position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; border-radius: 30px;
    background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .95), transparent 40%), conic-gradient(from var(--spin), #B9C9FF, #D9CCFF, #FFE1B0, #B5EEE4, #B9C9FF);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 20px 40px -18px rgba(29, 59, 143, .45);
    translate: -50% -50%; transition: rotate .5s cubic-bezier(.2, .8, .2, 1), translate .5s cubic-bezier(.2, .8, .2, 1);
}
.glass-stack i:nth-child(1) { rotate: -16deg; translate: -78% -46%; opacity: .7; }
.glass-stack i:nth-child(2) { rotate: -7deg; translate: -64% -48%; opacity: .85; }
.glass-stack i:nth-child(3) { rotate: 4deg; display: grid; place-items: center; }
.bento-understand:hover .glass-stack i:nth-child(1) { rotate: -24deg; translate: -96% -44%; }
.bento-understand:hover .glass-stack i:nth-child(2) { rotate: -12deg; translate: -72% -50%; }
.bento-understand:hover .glass-stack i:nth-child(3) { rotate: 8deg; translate: -40% -52%; }
.glass-stack span { font: 700 56px/1 var(--kufi); color: var(--lapis); text-shadow: 0 2px 0 rgba(255, 255, 255, .7); }
.bento-reflect { grid-row: span 2; display: flex; flex-direction: column; }
.orbit { position: relative; flex: 1; min-height: 380px; margin-top: 20px; }
.orb { position: absolute; left: 50%; top: 50%; width: min(62%, 240px); translate: -50% -50%; fill: none; stroke: url(#orb-g); stroke-width: 1.4; overflow: visible; filter: drop-shadow(0 0 14px rgba(139, 124, 246, .35)); }
.orb circle { stroke-width: 2; }
.orb-lines { transform-origin: 100px 100px; }
.orb-spin { transform-box: fill-box; transform-origin: center; }
.orbit::before { content: ""; position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(139, 124, 246, .28), rgba(242, 181, 68, .12) 50%, transparent 70%); }
.orbiter {
    position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255, 255, 255, .88); box-shadow: inset 0 0 0 1px #fff, 0 0 0 1px var(--line), var(--shadow);
    color: var(--lapis); font: 700 18px/1 var(--kufi);
    transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1));
}
.bento-starters { grid-column: span 2; display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: start; }
.threads { display: flex; flex-direction: column; gap: 8px; }
.threads li {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s;
}
.threads li:hover { transform: translateX(4px); box-shadow: inset 0 0 0 1px var(--lapis-2); }
.threads li p { flex: 1; font-size: 15px; }
.threads svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.thread-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--iris-flat); color: #fff; font: 700 18px/1 var(--kufi); }
.threads-more { margin-top: 12px; color: var(--muted); font-size: 14px; }

/* 4. Scroll story */
.story { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; }
.story-steps { margin-top: 32px; }
.story-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 22px; align-items: start; min-height: 62vh; padding-top: 28px; opacity: .35; transition: opacity .5s; }
.story-steps li.is-on { opacity: 1; }
.story-steps .orb-ico { width: 56px; height: 56px; transition: box-shadow .4s; }
.story-steps li.is-on .orb-ico { box-shadow: inset 0 0 0 1px #fff, 0 0 0 1px var(--line), 0 0 0 6px rgba(139, 124, 246, .14), 0 12px 30px -8px rgba(139, 124, 246, .7); }
.story-steps h3 { font-size: clamp(28px, 3.4vw, 48px); letter-spacing: -.045em; }
.story-steps p { margin-top: 12px; max-width: 30em; color: var(--muted); }
.story-phone-wrap { position: relative; }
.story-phone { position: sticky; top: max(calc(var(--nav-h) + 16px), calc(50vh - 320px + var(--nav-h) / 2)); }
.story-phone::after { content: ""; position: absolute; inset: 15% -20%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(139, 124, 246, .25), transparent 65%); filter: blur(20px); }
.story-phone .phone-screen { height: 620px; }
.sheet-window { position: relative; flex: 1; overflow: hidden; -webkit-mask: linear-gradient(#000 85%, transparent); mask: linear-gradient(#000 85%, transparent); }
.sheet { display: flex; flex-direction: column; gap: 10px; padding: 4px; transform: translateY(calc(var(--shift, 0) * -1px)); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.sheet-part { padding: 12px 14px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; opacity: .55; transition: opacity .4s, box-shadow .4s; }
.sheet-part.is-on { opacity: 1; box-shadow: inset 0 0 0 1.5px var(--violet), 0 10px 26px -12px rgba(139, 124, 246, .7); }
.sheet-label { margin-bottom: 6px; color: var(--lapis); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.sheet-q { font-size: 14px; }
.sheet-by { margin-top: 6px; color: var(--muted); font-size: 12px; }
.sheet-ar { font: 400 22px/1.7 var(--naskh); text-align: right; }
.sheet-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0 6px; border-bottom: 1px dashed var(--line-2); }
.sheet-row b { flex: none; color: var(--lapis); font-weight: 600; }

/* 5. Getting started carousel */
.start-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.carousel-btns { display: flex; gap: 10px; }
.round-btn { display: grid; place-items: center; width: 50px; height: 50px; border: 0; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); cursor: pointer; transition: transform .2s, background-color .2s; }
.round-btn:hover { transform: scale(1.06); background: var(--ink); }
.round-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.round-btn:hover svg { stroke: #fff; }
.carousel {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, calc((100% - 36px) / 2.4)); gap: 18px;
    margin: 40px calc(var(--pad) * -1) 32px; padding: 8px var(--pad) 24px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--pad); scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.step-card { padding: 22px; scroll-snap-align: start; }
.step-art {
    display: flex; flex-direction: column; justify-content: center; gap: 10px; height: 210px; margin-bottom: 22px; padding: 22px; border-radius: 20px;
    background: radial-gradient(circle at 80% 10%, #E8E2FF, transparent 50%), radial-gradient(circle at 10% 90%, #FFEFD0, transparent 50%), var(--bg);
}
.fake-input { padding: 11px 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 14px; }
.sign-ins { display: flex; gap: 8px; }
.sign-ins b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.sign-ins b:nth-child(2)::before { content: ""; width: 14px; height: 16px; border-radius: 6px 6px 8px 8px; background: var(--ink); }
.otp { display: flex; justify-content: center; gap: 8px; }
.otp b { display: grid; place-items: center; width: 40px; height: 52px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 22px; font-weight: 600; }
.otp-timer { align-self: center; padding: 4px 12px; border-radius: 999px; background: #fff; color: var(--lapis); font-size: 13px; font-weight: 500; }
.step-art .composer { min-height: 50px; color: var(--ink-2); }
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.toggle-row i { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--line-2); }
.toggle-row i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: left .3s; }
.toggle-row i.on { background: var(--lapis-2); }
.toggle-row i.on::after { left: 19px; }
.step-n { color: var(--lapis); font-size: 13px; font-weight: 600; }
.step-card h3 { margin-top: 6px; font-size: 24px; }
.step-card > p:last-child { margin-top: 8px; color: var(--muted); }

/* 6. The Islamic year: months swipe sideways; landing.js pins it on wide screens */
.year { max-width: none !important; padding-inline: 0 !important; }
.year-pin { display: flex; flex-direction: column; justify-content: center; padding: 0 0 8px; }
.year-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; width: min(var(--max), 100%); margin: 0 auto; padding: 0 var(--pad); }
.year-head .sec-lede { margin-top: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 14px; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 5px; }
.year-viewport { margin-top: 40px; padding-top: 38px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.year-track { display: flex; gap: 16px; width: max-content; padding: 0 max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))) 24px; }
.month {
    position: relative; width: 280px; flex: none; padding: 20px; border-radius: 24px; scroll-snap-align: start;
    background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.month h3 { min-height: 2.1em; margin-bottom: 14px; font-size: 28px; line-height: 1.04; letter-spacing: -.04em; }
.month h3 small { margin-left: 4px; color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.ev { padding: 11px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.38; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.ev:hover { transform: translateY(-2px); }
.ev + .ev { margin-top: 8px; }
.ev b { display: block; margin-bottom: 3px; font-size: 13px; font-weight: 600; color: var(--lapis); }
.month.is-now { box-shadow: inset 0 0 0 1.5px var(--violet), 0 18px 40px -16px rgba(139, 124, 246, .6); }
.month.is-now::after { content: ""; position: absolute; top: -12px; bottom: -12px; left: calc(var(--now, 0) * 100%); width: 2px; border-radius: 2px; background: var(--iris-flat); }
.month.is-now::before {
    content: attr(data-today); position: absolute; top: -40px; left: calc(var(--now, 0) * 100%); transform: translateX(-50%);
    padding: 4px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.year-note { width: min(var(--max), 100%); margin: 16px auto 0; padding: 0 var(--pad); color: var(--muted); font-size: 14px; }
.year.is-pinned { height: calc(100vh + var(--run, 0px)); padding-top: 0 !important; margin-top: clamp(40px, 6vh, 80px); }
.year.is-pinned .year-pin { position: sticky; top: 0; height: 100vh; padding-top: var(--nav-h); overflow: hidden; }
.year.is-pinned .year-viewport { overflow: visible; scroll-snap-type: none; }
.year.is-pinned .year-track { transform: translateX(calc(var(--shift, 0) * -1px)); will-change: transform; }

/* 7. Example conversations */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.case { display: flex; flex-direction: column; padding: 24px; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.case:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1.5px var(--violet), var(--shadow-lg); }
.case figcaption { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.tag { padding: 4px 12px; border-radius: 999px; background: var(--iris-flat); color: #fff; font-size: 13px; font-weight: 600; }
.case blockquote { display: flex; flex-direction: column; flex: 1; margin: 18px 0 0; }
.case-q { margin-bottom: 22px; font-size: 21px; font-weight: 500; letter-spacing: -.02em; line-height: 1.3; }
.case .verse-glass { margin-top: auto; }

/* 8. Surahs: glass pillars */
.surahs { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.surah-list { margin: 32px 0; }
.surah-list li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.surah-list li:last-child { border-bottom: 1px solid var(--line); }
.surah-list b { font-weight: 600; }
.surah-list span { color: var(--muted); font-size: 15.5px; }
.pillars { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(18px, 3vw, 40px); height: 460px; }
.pillar { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0; }
.pillar-bar {
    display: block; width: clamp(70px, 8vw, 110px); height: calc(var(--n) * 3.3px); border-radius: 26px 26px 18px 18px; transform-origin: bottom;
    background:
        radial-gradient(circle at 30% 10%, rgba(255, 255, 255, .95), transparent 30%),
        linear-gradient(90deg, rgba(255, 255, 255, .6), transparent 30%, transparent 70%, rgba(255, 255, 255, .45)),
        conic-gradient(from var(--spin) at 50% 30%, #9DB4FF, #C9B8FF, #FFD9A0, #9FE8DC, #9DB4FF);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 30px 50px -24px rgba(29, 59, 143, .55);
}
.pillar figcaption { display: flex; flex-direction: column; align-items: center; color: var(--muted); font-size: 14px; }
.pillar figcaption b { color: var(--ink); font-size: 30px; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }

/* 9. FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-head { position: sticky; top: calc(var(--nav-h) + 40px); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details { border-radius: 22px; padding: 0 22px; transition: box-shadow .3s; }
.faq-list details[open] { box-shadow: inset 0 0 0 1.5px var(--violet), var(--shadow); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-size: 19px; font-weight: 500; letter-spacing: -.02em; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-2); font-size: 22px; font-weight: 400; transition: transform .3s, background-color .3s, color .3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: #fff; }
.faq-list details p { max-width: 38em; padding: 0 0 22px; color: var(--muted); }

/* 10. Closing card */
.access-card {
    position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; padding: clamp(28px, 4vw, 56px); border-radius: 36px; overflow: hidden;
    background: radial-gradient(circle at 85% 20%, #E3DCFF, transparent 45%), radial-gradient(circle at 70% 95%, #FFE9C2, transparent 45%), radial-gradient(circle at 0% 0%, #DCE6FF, transparent 50%), var(--surface);
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg);
}
.access-rows { margin-top: 26px; }
.access-rows > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.access-rows > div:last-child { border-bottom: 1px solid var(--line); }
.access-rows dt { color: var(--muted); font-size: 14px; }
.access-rows dd { font-weight: 500; overflow-wrap: anywhere; }
.access-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.access-note { margin-top: 16px; color: var(--muted); font-size: 14px; }
.access-art { position: relative; display: grid; place-items: center; }
.window { position: relative; width: min(100%, 400px); padding: 16px 18px 20px; border-radius: 22px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px #fff, 0 0 0 1px var(--line), var(--shadow-lg); rotate: 2deg; transition: rotate .5s cubic-bezier(.2, .8, .2, 1); }
.access-card:hover .window { rotate: 0deg; }
.window-bar { display: flex; align-items: center; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #F87171; }
.window-bar i:nth-child(2) { background: var(--gold); }
.window-bar i:nth-child(3) { background: #34D399; }
.window-bar span { margin-left: 8px; }
.window-title { margin: 14px 0 10px; font-size: 18px; font-weight: 600; }
.window li { padding: 10px 12px; border-radius: 12px; font-size: 14px; color: var(--ink-2); }
.window li:nth-child(odd) { background: var(--bg); }

/* Footer */
.ft { margin-top: clamp(96px, 14vh, 160px); padding: 56px var(--pad) 28px; background: var(--surface); box-shadow: 0 -1px 0 var(--line); color: var(--ink); overflow: hidden; }
.ft > * { max-width: var(--max); margin-inline: auto; }
.ft-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.ft-about { max-width: 26em; }
.ft-about p { margin-top: 16px; color: var(--muted); }
.ft-cols { display: flex; flex-wrap: wrap; gap: 32px clamp(32px, 6vw, 88px); }
.ft-cols nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ft-cols h3 { margin-bottom: 4px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ft-cols a { color: var(--ink-2); text-decoration: none; transition: color .2s; }
.ft-cols a:hover { color: var(--lapis-2); }
.ft-word {
    margin-top: 48px; padding-bottom: .24em; font-size: clamp(56px, 14.6vw, 230px); font-weight: 600; letter-spacing: -.065em; line-height: .8;
    white-space: nowrap; text-align: center; color: #DCE4FF;
}
.ft-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.ft .vis-credit { color: var(--ink-2); }

/* Scroll progress, along the bottom of the floating nav */
.progress { position: absolute; left: 28px; right: 28px; bottom: 0; height: 2px; border-radius: 2px; background: var(--iris-flat); transform-origin: left; transform: scaleX(var(--p, 0)); pointer-events: none; }

/* ---------------------------------------------------------------- Motion
 * Behind html.motion, set by the inline script in <head> only when reduced motion is not asked for,
 * and removed again if landing.js never starts. landing.js sets .is-in and --i, and splits headings.
 */
@keyframes spin { to { --spin: 360deg; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(80px) scale(.96); } }
@keyframes nav-drop { from { opacity: 0; transform: translateY(-30px); } }
@keyframes blur-word { from { opacity: 0; filter: blur(14px); transform: translateY(.3em); } }
@keyframes orb-turn { to { transform: rotate(360deg); } }
@keyframes orb-breathe { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.25); } }
@keyframes pulse-ring { 0%, 100% { box-shadow: inset 0 0 0 1.5px var(--violet), 0 0 0 0 rgba(139, 124, 246, 0); } 50% { box-shadow: inset 0 0 0 1.5px var(--violet), 0 0 0 8px rgba(139, 124, 246, .16); } }
@keyframes chip-in { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@keyframes star-in { from { opacity: 0; scale: .4; } to { opacity: 1; scale: 1; } }

.w, .ch { display: inline-block; }

.motion .glow::before, .motion .glass-star::before, .motion .glass-stack i, .motion .pillar-bar { animation: spin 8s linear infinite; }
.motion .glass-star { animation: float 7s ease-in-out infinite; }
.motion .gs-3 { animation-duration: 8s; animation-delay: -4s; }
.motion .gs-4 { animation-duration: 9s; animation-delay: -2s; }
.motion .orb-lines { animation: orb-turn 40s linear infinite; }
.motion .orb-spin { animation: orb-breathe 6s ease-in-out infinite; }
.motion .orb-spin-2 { animation-duration: 9s; animation-direction: reverse; }
.motion .orbiter { animation: float calc(5s + var(--k, 0) * 1s) ease-in-out infinite; }
.motion .month.is-now { animation: pulse-ring 2.6s ease-in-out infinite; }

/* Hero entrance */
.motion .nav { animation: nav-drop .8s cubic-bezier(.2, .8, .2, 1) both; }
.motion .hero-title .w { animation: blur-word 1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.15s + var(--i) * 90ms); }
.motion .hero-phone { animation: rise-in 1.2s cubic-bezier(.2, .8, .2, 1) .5s both; }
.motion .hero-phone [data-step] { animation: rise-in .6s cubic-bezier(.2, .8, .2, 1) both; }
.motion .hero-phone [data-step]:nth-child(1) { animation-delay: 1.3s; }
.motion .hero-phone [data-step]:nth-child(2) { animation-delay: 1.8s; }
.motion .hero-phone [data-step]:nth-child(3) { animation-delay: 2s; }
.motion .topics li { animation: chip-in .8s cubic-bezier(.2, .8, .2, 1) both, float calc(6s + var(--s) * 2s) ease-in-out infinite; animation-delay: calc(1s + var(--n, 0) * 120ms), calc(2s + var(--n, 0) * .3s); }
.motion .hero-foot { animation: rise-in 1s cubic-bezier(.2, .8, .2, 1) 1s both; }
.motion .gs-1, .motion .gs-2 { animation: star-in 1.2s cubic-bezier(.2, .8, .2, 1) both, float 7s ease-in-out infinite; animation-delay: 1.1s, 1.6s; }

/* Scroll reveals */
.motion .rv-blur .w { opacity: 0; filter: blur(12px); transform: translateY(.25em); transition: opacity .8s ease, filter .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 55ms); }
.motion .rv-blur.is-in .w { opacity: 1; filter: none; transform: none; }
.motion .rv-up { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform 1s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s; }
.motion .rv-up.is-in { opacity: 1; transform: none; }
.motion .rv-up.is-in.case:hover { transform: translateY(-6px); transition-delay: 0s; }
.motion .pillar-bar { scale: 1 .05; transition: scale 1.4s cubic-bezier(.2, .8, .2, 1); }
.motion .pillar.is-in .pillar-bar { scale: 1 1; }
.motion .pillar:nth-of-type(2) .pillar-bar { transition-delay: .15s; }
.motion .pillar:nth-of-type(3) .pillar-bar { transition-delay: .3s; }
.motion .ft-word .ch { opacity: 0; transform: translateY(60%); transition: opacity .6s ease, transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 40ms); }
.motion .ft-word.is-in .ch { opacity: 1; transform: none; }

/* The statement lights up word by word as you read (landing.js sets .lit) */
.motion [data-read] .w { color: rgba(15, 26, 61, .16); transition: color .35s ease; }
.motion [data-read] .w.lit { color: var(--ink); }

/* Popups */
.motion .gate[open] .gate-option { animation: rise-in .5s cubic-bezier(.2, .8, .2, 1) both; }
.motion .gate[open] .gate-option + .gate-option { animation-delay: .08s; }
.motion .menu[open] nav a { animation: rise-in .45s cubic-bezier(.2, .8, .2, 1) both; }
.motion .menu[open] nav a:nth-child(2) { animation-delay: .04s; }
.motion .menu[open] nav a:nth-child(3) { animation-delay: .08s; }
.motion .menu[open] nav a:nth-child(4) { animation-delay: .12s; }
.motion .menu[open] nav a:nth-child(5) { animation-delay: .16s; }
.motion .menu[open] nav a:nth-child(6) { animation-delay: .2s; }
.motion .menu[open] nav a:nth-child(7) { animation-delay: .24s; }

/* Smooth FAQ open, where the browser can animate to height:auto */
@supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .faq-list details::details-content { height: 0; overflow: clip; transition: height .4s cubic-bezier(.2, .8, .2, 1), content-visibility .4s allow-discrete; }
    .faq-list details[open]::details-content { height: auto; }
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
    .nav-links a { padding: 10px 10px; }
    .bento { grid-template-columns: 1fr 1fr; }
    .bento-reflect { grid-row: auto; grid-column: span 2; }
    .bento-starters { grid-column: span 2; }
    .story { grid-template-columns: 1fr 340px; gap: 40px; }
    }

@media (max-width: 900px) {
    :root { --nav-h: 64px; }
    .nav-links, .nav-explore { display: none; }
    .nav-menu { display: block; }
    .nav { height: 56px; }

    .hero-stage { height: auto; margin-top: 32px; }
    .hero-phone { position: relative; left: auto; translate: none; margin: 0 auto; }
    .topics { display: none; }
    .gs-1 { left: -40px; top: 10%; --sz: 110px; }
    .gs-2 { right: -30px; top: 70%; --sz: 90px; }
    .hero-facts { flex-wrap: wrap; }

    .state-cols, .cases-grid { grid-template-columns: 1fr; }
    .bento { grid-template-columns: 1fr; }
    .bento-reflect, .bento-starters { grid-column: auto; }
    .bento-starters { grid-template-columns: 1fr; }
    .story { grid-template-columns: 1fr; }
    .story-steps li { min-height: 0; padding-bottom: 12px; opacity: 1; }
    .story-phone { position: relative; top: 0; margin: 0 auto; }
    .start-head { flex-direction: column; align-items: flex-start; }
    .carousel { grid-auto-columns: 82%; }
    .year-head { grid-template-columns: 1fr; }
    .surahs, .faq { grid-template-columns: 1fr; gap: 40px; }
    .faq-head { position: static; }
    .pillars { height: 400px; }
    .access-card { grid-template-columns: 1fr; }
    .access-art { display: none; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .gate-options { grid-template-columns: 1fr; padding: 12px 18px; }
    .gate-head { padding: 22px 18px 4px; }
    .gate-foot { padding: 6px 18px 22px; }
    .phone { width: min(330px, 100%); }
    .phone-screen { height: 600px; }
    .hero-actions .pill { width: 100%; }
    .hero-facts { gap: 18px 28px; }
    .bento .card, .mini { padding: 22px; }
    .orbit { min-height: 300px; }
    .orbiter { --r: 112px !important; width: 44px; height: 44px; font-size: 15px; }
    .surah-list li { grid-template-columns: 1fr; gap: 4px; }
    .access-rows > div { grid-template-columns: 1fr; gap: 2px; }
    .pillars { height: 360px; }
    .pillar-bar { height: calc(var(--n) * 2.6px); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
