:root,
:root[data-theme="light"] {
  --color-bg: #F2F5F0;
  --color-surface: #FFFEFB;
  --color-surface-secondary: #E9EFE8;
  --color-surface-raised: #FFFFFF;
  --color-primary: #246747;
  --color-primary-hover: #1B583B;
  --color-primary-soft: #E1ECE3;
  --color-accent: #D5AD52;
  --color-accent-hover: #E6C36D;
  --color-text: #1E3329;
  --color-text-secondary: #5D6D62;
  --color-border: #D4DED5;
  --color-header: rgba(247, 249, 244, .88);
  --color-translucent: rgba(255, 254, 251, .76);
  --color-button-text: #183124;
  --color-decoration: rgba(36, 103, 71, .2);
  --color-shadow: rgba(25, 49, 36, .1);
  --color-backdrop: rgba(9, 26, 17, .68);
  --color-callout: linear-gradient(135deg, #F7F7EF, #E2ECE2);
  --color-hero-bg: #164C36;
  --color-hero-photo-opacity: .3;
  --color-hero-overlay-strong: rgba(8, 31, 21, .89);
  --color-hero-overlay: rgba(14, 49, 32, .73);
  --color-hero-overlay-soft: rgba(23, 66, 43, .42);
  --color-hero-text: #FFFDF5;
  --color-hero-note: #D4E1D5;
}

:root[data-theme="dark"] {
  --color-bg: #0D1712;
  --color-surface: #15251B;
  --color-surface-secondary: #111E16;
  --color-surface-raised: #1B3022;
  --color-primary: #8ABD92;
  --color-primary-hover: #A3D0AA;
  --color-primary-soft: rgba(138, 189, 146, .14);
  --color-accent: #D8B65E;
  --color-accent-hover: #E8CD83;
  --color-text: #F2F4ED;
  --color-text-secondary: #B8C5B9;
  --color-border: #304638;
  --color-header: rgba(15, 29, 21, .88);
  --color-translucent: rgba(21, 37, 27, .78);
  --color-button-text: #101A13;
  --color-decoration: rgba(216, 182, 94, .22);
  --color-shadow: rgba(0, 0, 0, .24);
  --color-backdrop: rgba(3, 10, 6, .82);
  --color-callout: linear-gradient(135deg, #17291E, #101C15);
  --color-hero-bg: #0D1712;
  --color-hero-photo-opacity: .22;
  --color-hero-overlay-strong: rgba(6, 16, 10, .91);
  --color-hero-overlay: rgba(8, 24, 15, .79);
  --color-hero-overlay-soft: rgba(15, 36, 22, .58);
  --color-hero-text: #F2F4ED;
  --color-hero-note: #B8C5B9;
}

html[data-language="ar"] { --body-font: 'IBM Plex Sans Arabic', Tahoma, sans-serif; --display-font: 'Amiri', Georgia, serif; }
html[data-language="bn"] { --body-font: 'Noto Sans Bengali', sans-serif; --display-font: 'Noto Serif Bengali', serif; }
html[data-language="en"], html[data-language="es"], html[data-language="fr"], html[data-language="id"], html[data-language="tr"] { --body-font: 'Inter', 'Noto Sans', sans-serif; --display-font: 'Playfair Display', 'Noto Serif', serif; }
html[data-language="fa"] { --body-font: 'Vazirmatn', Tahoma, sans-serif; --display-font: 'Vazirmatn', Tahoma, sans-serif; }
html[data-language="ru"] { --body-font: 'Noto Sans', Arial, sans-serif; --display-font: 'Noto Serif', Georgia, serif; }
html[data-language="ur"] { --body-font: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', serif; --display-font: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', serif; }
html { scroll-padding-top: 110px; }
body { background-image: radial-gradient(ellipse at 50% -20%, var(--color-primary-soft), transparent 48%); font-family: var(--body-font); }
.quran-lines, .reader-basmalah, .dua-excerpt { font-family: 'Amiri', Georgia, serif; }
html[data-language="ur"] body { line-height: 2.1; }
html[data-language="ur"] .button, html[data-language="ur"] .language-control select { line-height: 1.8; }
html[data-language="ur"] .site-nav a, html[data-language="ur"] .release-table th, html[data-language="ur"] .release-table td { line-height: 2.2; }
html[data-language="bn"] h1, html[data-language="bn"] h2, html[data-language="bn"] h3 { line-height: 1.5; }
html[data-language="ur"] h1, html[data-language="ur"] h2, html[data-language="ur"] h3 { line-height: 1.9; }
.container { width: min(var(--content-width), calc(100% - 56px)); }
.site-header { inset: 14px 0 auto; width: min(1360px, calc(100% - 40px)); margin-inline: auto; overflow: visible; border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; background: rgba(15, 35, 24, .42); box-shadow: 0 12px 42px rgba(0, 0, 0, .12); backdrop-filter: blur(18px) saturate(1.3); }
.site-header.is-scrolled, .subpage .site-header { border-color: var(--color-border); background: var(--color-header); box-shadow: 0 12px 40px var(--color-shadow); }
.header-inner { min-height: 72px; gap: clamp(10px, 1.5vw, 22px); padding-inline: 18px; }
.brand { gap: 10px; }
.brand img { width: 42px; height: 42px; filter: drop-shadow(0 4px 9px var(--color-shadow)); }
.brand span { font-size: .92rem; }
.brand small { font-size: .67rem; }
.site-nav { gap: clamp(9px, 1.5vw, 21px); }
.site-nav a, .site-footer nav a { font-size: .8rem; font-weight: 500; }
.site-nav a { position: relative; padding-block: 7px; }
.site-nav a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; border-radius: 2px; background: var(--color-accent); content: ''; transform: scaleX(0); transform-origin: right; transition: transform .22s ease; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header:not(.is-scrolled) .site-nav a[aria-current="page"] { color: var(--color-accent-hover); }
.button { min-height: 48px; border-radius: 9px; font-size: .87rem; }
.button-gold { box-shadow: 0 8px 22px rgba(197, 161, 59, .17); }
.button-outline { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); backdrop-filter: blur(10px); }
.button-outline:hover { background: var(--color-surface); }
.theme-toggle { border-radius: 14px; box-shadow: none; }
.menu-toggle { border-radius: 12px !important; }
.hero { min-height: min(880px, 100svh); padding-block: clamp(132px, 15vh, 164px) 76px; }
.hero-photo { transform: scale(1.025); animation: hero-drift 28s ease-in-out infinite alternate; filter: saturate(.84) brightness(.92); }
.hero-shade { background: linear-gradient(90deg, rgba(5, 20, 13, .82) 0%, rgba(7, 27, 17, .68) 46%, rgba(7, 27, 17, .48) 76%, rgba(7, 27, 17, .4) 100%), linear-gradient(0deg, rgba(5, 18, 12, .62), transparent 42%); }
.hero-grid { grid-template-columns: 1.1fr .9fr; gap: clamp(42px, 6vw, 82px); }
.hero-copy { max-width: 660px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; }
.hero .eyebrow { width: fit-content; padding: 7px 13px; border: 1px solid rgba(232, 205, 131, .42); border-radius: 999px; background: rgba(8, 25, 16, .34); color: #FFE29A; backdrop-filter: blur(6px); }
.hero h1 { max-width: none; margin-bottom: 20px; color: #FFFDF5; font-size: clamp(3rem, 5.5vw, 5.2rem); letter-spacing: -.035em; line-height: 1.2; text-shadow: 0 3px 22px rgba(0, 0, 0, .52); }
html:not([lang="ar"]) .hero h1 { font-size: clamp(2.8rem, 4.5vw, 4rem); }
.hero h1 em { color: #F4D27A; text-shadow: 0 3px 22px rgba(0, 0, 0, .42); }
.hero-lead { max-width: 580px; margin-bottom: 28px; color: #F5F7F2; font-size: 1.02rem; line-height: 2; text-shadow: 0 2px 10px rgba(0, 0, 0, .42); }
.hero-actions { gap: 14px; }
.hero-actions .button-gold { border: 1px solid #F1D17A; background: linear-gradient(135deg, #F0D17A, #D7AE48); color: #17291E; box-shadow: 0 9px 26px rgba(0, 0, 0, .22); }
.hero-actions .button-outline { border: 1px solid rgba(255, 253, 245, .76); background: rgba(7, 25, 16, .52); color: #FFFDF5; box-shadow: 0 8px 22px rgba(0, 0, 0, .16); }
.hero-actions .button-outline:hover { border-color: #F2CC70; background: rgba(20, 50, 33, .88); color: #FFFDF5; }
.hero-note { color: #E6EDE4; text-shadow: 0 2px 8px rgba(0, 0, 0, .38); }
.hero-art { width: min(100%, 430px); padding: 0; }
.hero-art::before { inset: 8% -13% 5% 9%; border: 1px solid rgba(245, 218, 143, .42); border-radius: 48% 48% 14px 14px; background: linear-gradient(145deg, rgba(237, 205, 119, .1), transparent 62%); box-shadow: 0 0 0 12px rgba(255, 255, 255, .02), 0 24px 64px rgba(0, 0, 0, .18); }
.arch-frame { height: clamp(380px, 45vw, 520px); border: 1px solid rgba(245, 218, 143, .82); border-radius: 48% 48% 14px 14px; box-shadow: 0 24px 64px rgba(0, 0, 0, .32), 0 0 30px rgba(232, 205, 131, .1); }
.arch-frame::after { border: 8px solid rgba(246, 245, 238, .16); }
.arch-frame img { filter: saturate(.84) brightness(.9); transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.hero-art:hover .arch-frame img { transform: scale(1.045); }
.section-pad { padding-block: clamp(76px, 9vw, 132px); }
.intro, .photo-band, .dua-section { background: var(--color-surface-secondary); }
.intro-grid { gap: 12%; }
.intro h2, .photo-grid h2, .section-heading h2, .dua-frame h2, .callout-inner h2, .page-hero h1 { letter-spacing: -.025em; }
.intro-grid > div:last-child { font-size: 1.02rem; line-height: 2; }
.text-link { font-weight: 600; }
.section-heading { margin-bottom: 42px; }
.section-heading h2 { font-size: clamp(2.7rem, 4.2vw, 4.2rem); }
.preview-shell { border: 1px solid var(--preview-accent); border-radius: 18px; box-shadow: 0 34px 100px var(--color-shadow); }
.preview-titlebar { height: 38px; }
.preview-layout { min-height: 590px; }
.preview-side { padding: 24px 16px; }
.preview-toolstrip { border-bottom: 1px solid var(--color-border); background: var(--preview-panel); }
.preview-toolstrip > button, .preview-icon { border-radius: 9px; }
.preview-content { padding: 24px 30px 0; }
.reader-page { min-height: 410px; border-radius: 15px; box-shadow: 0 14px 38px rgba(0, 0, 0, .1); }
.surah-rail { padding: 16px 12px; }
.photo-grid { gap: 10%; }
.photo-detail { height: clamp(300px, 35vw, 450px); border: 1px solid var(--color-decoration); border-radius: 24px; box-shadow: 0 24px 60px var(--color-shadow); }
.photo-detail img { transition: transform .8s ease; }
.photo-detail:hover img { transform: scale(1.04); }
.theme-strip button { min-height: 68px; border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-surface); box-shadow: 0 8px 24px var(--color-shadow); transition: transform .2s, border-color .2s, box-shadow .2s; }
.theme-strip button:hover { transform: translateY(-3px); box-shadow: 0 14px 30px var(--color-shadow); }
.dua-frame { border: 1px solid var(--color-border); border-radius: 22px; outline: none; background: linear-gradient(120deg, var(--color-surface), var(--color-primary-soft)); box-shadow: 0 20px 55px var(--color-shadow); }
.dua-frame::before { position: absolute; inset: 0; border-radius: inherit; content: ''; pointer-events: none; }
.dua-frame { position: relative; overflow: hidden; }
.dua-frame > div { position: relative; }
.dua-frame .button { position: relative; }
.callout-inner { position: relative; overflow: hidden; border: 1px solid var(--color-border); border-radius: 26px; background: radial-gradient(ellipse at 50% 0, var(--color-primary-soft), transparent 55%), var(--color-callout); box-shadow: 0 22px 60px var(--color-shadow); }
.callout-inner::before { position: absolute; top: -110px; right: 50%; width: 240px; height: 240px; border: 1px solid var(--color-decoration); border-radius: 50%; content: ''; transform: translateX(50%); box-shadow: 0 0 0 20px var(--color-primary-soft), 0 0 0 40px transparent; opacity: .45; }
.callout-inner > * { position: relative; }
.site-footer { padding-block: 60px 26px; background: var(--color-surface); }
.footer-grid { gap: 28px; }
.site-footer .brand { width: fit-content; }
.site-footer nav { gap: 12px 22px; }
.site-footer nav a { padding-block: 5px; }
.copyright { margin-top: 4px; }
.page-main { padding-top: 96px; }
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(78px, 9vw, 126px) 70px; border: 0; background: radial-gradient(ellipse at 83% 24%, rgba(213, 173, 82, .15), transparent 28%), linear-gradient(125deg, #133e2b, #10291d 58%, #0D1C14); color: #F2F4ED; }
.page-hero::before { position: absolute; z-index: -1; top: -270px; left: -130px; width: 600px; height: 600px; border: 1px solid rgba(232, 205, 131, .15); border-radius: 50%; content: ''; box-shadow: 0 0 0 34px rgba(232, 205, 131, .025), 0 0 0 68px rgba(232, 205, 131, .018); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: #E8CD83; }
.page-hero h1 { max-width: 800px; margin-bottom: 10px; color: #FFFDF5; font-size: clamp(3rem, 6vw, 5rem); }
.page-hero p:not(.eyebrow) { color: rgba(242, 244, 237, .76); font-size: 1rem; }
.content-section { padding-block: clamp(52px, 7vw, 92px) clamp(76px, 9vw, 120px); }
.feature-grid { gap: 18px; }
.feature-card { min-height: 270px; padding: 28px; border-color: var(--color-border); border-radius: 18px; background: linear-gradient(145deg, var(--color-surface), var(--color-surface-secondary)); box-shadow: 0 10px 32px var(--color-shadow); }
.feature-card::after { height: 2px; }
.feature-card:hover { transform: translateY(-7px); border-color: var(--color-accent); box-shadow: 0 22px 44px var(--color-shadow); }
.feature-icon { width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(145deg, var(--color-primary-soft), var(--color-surface)); }
.feature-category { border-radius: 999px; }
.feature-card h2 { margin-top: 26px; color: var(--color-text); font-size: 1.55rem; }
.feature-card p { line-height: 1.9; }
.feature-link { padding-top: 8px; }
.download-panel { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--color-border); border-radius: 20px; background: radial-gradient(ellipse at 100% 0, var(--color-primary-soft), transparent 55%), var(--color-surface); box-shadow: 0 18px 48px var(--color-shadow); }
.download-panel h2 { color: var(--color-text); font-size: clamp(1.7rem, 4vw, 2.3rem); }
.download-panel .eyebrow { margin-bottom: 10px; }
.download-panel .button { border-radius: 10px; }
.install-section { padding-top: 0; }
.install-panel { padding: clamp(22px, 4vw, 38px); border: 1px solid var(--color-border); border-radius: 20px; background: var(--color-surface); box-shadow: 0 14px 38px var(--color-shadow); }
.install-panel h2 { margin-bottom: 20px; color: var(--color-text); font-size: clamp(1.5rem, 3vw, 2rem); }
.install-steps { display: grid; gap: 12px; margin: 0; padding-inline-start: 24px; }
.install-steps li { padding-inline-start: 6px; }
.install-requirements { margin: 24px 0 0; padding: 14px 16px; border-inline-start: 3px solid var(--color-accent); border-radius: 8px; background: var(--color-primary-soft); color: var(--color-text); }
.release-table td[data-release-checksum] { overflow-wrap: anywhere; text-align: left; font-family: Consolas, monospace; font-size: .82rem; }
.release-table { width: 100%; table-layout: fixed; overflow: hidden; margin-top: 28px; border: 1px solid var(--color-border); border-radius: 16px; background: var(--color-surface); }
.release-table th, .release-table td { padding: 16px 20px; border-bottom: 1px solid var(--color-border); }
.release-table th, .release-table td { overflow-wrap: anywhere; }
.release-table tr:last-child th, .release-table tr:last-child td { border-bottom: 0; }
.release-table th { width: 34%; background: var(--color-surface-secondary); }
.faq-list { max-width: 900px; padding: 8px 28px; border: 1px solid var(--color-border); border-radius: 20px; background: var(--color-surface); box-shadow: 0 14px 40px var(--color-shadow); }
.faq-list details { border-bottom-color: var(--color-border); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary { position: relative; padding: 21px 4px; color: var(--color-text); font-weight: 600; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { display: inline-grid; width: 28px; height: 28px; float: left; place-items: center; border-radius: 50%; background: var(--color-primary-soft); color: var(--color-primary); content: '+'; font-size: 1.15rem; line-height: 1; transition: transform .2s; }
.faq-list details[open] summary::after { content: '−'; transform: rotate(180deg); }
.faq-list details p { padding: 0 4px 20px; line-height: 2; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .75fr); align-items: start; gap: clamp(24px, 4vw, 48px); }
.contact-form { padding: clamp(22px, 4vw, 42px); border: 1px solid var(--color-border); border-radius: 20px; background: var(--color-surface); box-shadow: 0 18px 48px var(--color-shadow); }
.contact-form-heading { margin-bottom: 28px; }
.contact-form-heading .eyebrow { margin-bottom: 10px; }
.contact-form-heading h2, .contact-aside h2 { margin-bottom: 10px; color: var(--color-text); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.contact-form-heading > p:last-child, .contact-aside > p:not(.eyebrow) { margin-bottom: 0; color: var(--color-text-secondary); line-height: 1.9; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-field { display: grid; min-width: 0; gap: 8px; color: var(--color-text); font-size: .88rem; font-weight: 600; }
.contact-field > span small { color: var(--color-text-secondary); font-size: .8em; font-weight: 400; }
.contact-field input, .contact-field select, .contact-field textarea { width: 100%; min-width: 0; min-height: 48px; padding: 11px 13px; border: 1px solid var(--color-border); border-radius: 9px; background: var(--color-surface-secondary); color: var(--color-text); font: inherit; font-weight: 400; }
.contact-field textarea { min-height: 170px; resize: vertical; line-height: 1.8; }
.contact-field input:focus, .contact-field select:focus, .contact-field textarea:focus { border-color: var(--color-primary); outline: 3px solid var(--color-primary-soft); }
.contact-message { grid-column: 1 / -1; }
.contact-note { margin-block: 20px; color: var(--color-text-secondary); font-size: .84rem; line-height: 1.9; }
.contact-note a, .contact-email { color: var(--color-primary); font-weight: 700; overflow-wrap: anywhere; }
.contact-form > .button { width: 100%; }
.contact-status { margin: 16px 0 0; color: var(--color-primary); font-size: .88rem; line-height: 1.8; }
.contact-mail-link { margin-top: 12px; }
.contact-aside { position: relative; overflow: hidden; padding: clamp(25px, 4vw, 38px); border: 1px solid rgba(232, 205, 131, .26); border-radius: 20px; background: radial-gradient(ellipse at 100% 0, rgba(232, 205, 131, .15), transparent 46%), linear-gradient(145deg, #173b2a, #10271c); color: #F2F4ED; }
.contact-aside-mark { display: grid; width: 48px; height: 48px; margin-bottom: 30px; place-items: center; border: 1px solid rgba(232, 205, 131, .42); border-radius: 15px; color: #F2D58B; font-size: 1.5rem; }
.contact-aside .eyebrow { color: #E8CD83; }
.contact-aside h2 { color: #FFFDF5; }
.contact-aside > p:not(.eyebrow) { color: rgba(242, 244, 237, .78); }
.contact-email { display: grid; gap: 8px; margin-top: 26px; padding: 18px; border: 1px solid rgba(255, 239, 184, .9); border-radius: 16px; background: linear-gradient(135deg, #F5DC91, #D9B451 58%, #F9E9B4); box-shadow: 0 10px 28px rgba(217, 180, 81, .24), inset 0 1px 0 rgba(255, 255, 255, .7); color: #173322; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.contact-email:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(217, 180, 81, .38), inset 0 1px 0 rgba(255, 255, 255, .8); }
.contact-email:focus-visible { outline: 3px solid #FFFDF5; outline-offset: 4px; }
.contact-email span { color: rgba(23, 51, 34, .76); font-size: .8rem; font-weight: 600; }
.contact-email strong { color: #123D2D; direction: ltr; text-align: start; }
.contact-email .contact-email-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; padding-top: 10px; border-top: 1px solid rgba(23, 51, 34, .2); color: #173322; }
.site-dialog { border-radius: 20px; box-shadow: 0 28px 90px rgba(0, 0, 0, .3); }
.language-control { display: inline-flex; align-items: center; }
.language-control select { max-width: 148px; min-height: 40px; padding: 6px 30px 6px 11px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface); color: var(--color-text); font: 500 .76rem/1.4 var(--body-font); cursor: pointer; }
.site-header:not(.is-scrolled):not(.subpage .site-header) .language-control select { border-color: rgba(255, 255, 255, .3); background: rgba(15, 35, 24, .55); color: #FFFDF5; }
.quran-lines, .reader-basmalah, .dua-excerpt { direction: rtl; }
@keyframes hero-drift { from { transform: scale(1.025) translateX(-.3%); } to { transform: scale(1.09) translateX(.3%); } }

@media (max-width: 1060px) {
  .site-nav { gap: 10px; }
  .site-nav a { font-size: .75rem; }
  .brand small { font-size: .62rem; }
  .header-download { padding-inline: 12px; }
}
@media (max-width: 820px) {
  .site-header { top: 10px; width: calc(100% - 24px); border-radius: 15px; }
  .header-inner { min-height: 66px; padding-inline: 12px; }
  .language-control select { max-width: 118px; min-height: 38px; font-size: .7rem; }
  .site-nav { inset-block-start: calc(100% + 1px); border: 1px solid var(--color-border); border-radius: 0 0 15px 15px; }
  .hero { min-height: auto; padding-block: 132px 68px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { width: 100%; max-width: 740px; }
  .hero-art { width: min(75%, 420px); }
  .arch-frame { height: 440px; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-aside { order: -1; }
  .page-hero { padding-block: 80px 54px; }
  .feature-card { min-height: 250px; }
  .hero h1 { font-size: clamp(2.7rem, 7vw, 4.2rem); }
  html:not([lang="ar"]) .hero h1 { font-size: clamp(2.5rem, 5.5vw, 3.6rem); }
  .preview-content { min-width: 0; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 34px); }
  .site-header { width: calc(100% - 20px); }
  .header-inner { display: grid; min-height: 62px; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 6px; padding-inline: 8px; }
  .brand { grid-column: 1; min-width: 0; gap: 5px; margin-inline-end: 0; }
  .brand span { overflow: hidden; min-width: 0; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
  .brand small { display: none; }
  .theme-toggle { grid-column: 2; order: 0; width: 34px; min-width: 34px; height: 36px; padding: 2px; }
  .theme-toggle svg { width: 28px; height: 28px; flex-basis: 28px; }
  .menu-toggle { grid-column: 3; order: 0; width: 34px; min-width: 34px; height: 36px; }
  .language-control { grid-column: 4; min-width: 0; }
  .language-control select { width: min(82px, 24vw); max-width: 82px; min-height: 36px; padding: 5px 22px 5px 6px; font-size: .62rem; }
  .brand img { width: 34px; height: 34px; }
  .brand { font-size: .76rem; }
  .theme-toggle { border-radius: 12px; }
  .hero { padding-block: 112px 58px; }
  .hero-grid { gap: 32px; }
  .hero-copy { min-width: 0; }
  .contact-form { padding: 21px 16px; border-radius: 16px; }
  .contact-fields { grid-template-columns: 1fr; gap: 15px; }
  .contact-message { grid-column: auto; }
  .contact-aside { padding: 24px 20px; border-radius: 16px; }
  .hero h1 { font-size: clamp(2.35rem, 9.2vw, 3.6rem); line-height: 1.24; }
  html:not([lang="ar"]) .hero h1 { font-size: clamp(2.35rem, 8vw, 3rem); }
  .hero-lead { font-size: .96rem; }
  .hero-actions .button { width: 100%; }
  .hero-art { width: min(84%, 340px); }
  .arch-frame { height: 370px; }
  .section-pad { padding-block: 70px; }
  .section-heading { margin-bottom: 28px; }
  .preview-shell { border-radius: 14px; }
  .preview-content { padding-inline: 8px; }
  .preview-content, .preview-pane, .reader-page, .surah-rail { min-width: 0; }
  .photo-detail { height: 290px; }
  .dua-frame { border-radius: 17px; }
  .callout-inner { border-radius: 20px; }
  .page-main { padding-top: 82px; }
  .page-hero { padding-block: 64px 42px; }
  .page-hero h1 { font-size: 2.7rem; }
  .content-section { padding-block: 42px 72px; }
  .feature-card { min-height: 230px; padding: 23px; border-radius: 15px; }
  .download-panel { border-radius: 16px; }
  .release-table th, .release-table td { padding: 12px 10px; }
  .faq-list { padding-inline: 16px; border-radius: 16px; }
  .faq-list summary { padding-block: 17px; }
  .intro h2, .photo-grid h2, .section-heading h2, .dua-frame h2, .callout-inner h2, .page-hero h1 { font-size: clamp(1.8rem, 9vw, 2.6rem); line-height: 1.35; }
  .release-table th, .release-table td { padding: 12px 8px; font-size: .78rem; }
}
@media (max-width: 360px) {
  .header-inner { gap: 4px; padding-inline: 6px; }
  .theme-toggle, .menu-toggle { width: 32px; min-width: 32px; }
  .language-control select { width: 72px; padding-inline: 4px 19px; font-size: .58rem; }
  .release-table th, .release-table td { padding-inline: 5px; font-size: .72rem; }
}
@media (min-width: 1600px) {
  .container { width: min(1440px, calc(100% - 80px)); }
  .hero-grid { gap: clamp(80px, 8vw, 150px); }
  .preview-layout { min-height: 680px; }
}

.download-hero { padding-block: clamp(86px, 10vw, 132px) 82px; }
.download-hero .container { max-width: 900px; text-align: center; }
.download-hero h1 { margin-inline: auto; }
.download-hero p:not(.eyebrow) { max-width: 620px; margin: 14px auto 0; }
.download-hero .button { margin-top: 24px; }
.download-panel { grid-template-columns: minmax(0, 1fr) auto; }
.download-intro { display: flex; align-items: center; gap: 20px; min-width: 0; }
.download-app-icon { display: grid; width: 76px; height: 76px; flex: 0 0 76px; place-items: center; border: 1px solid var(--color-border); border-radius: 22px; background: var(--color-surface); box-shadow: 0 8px 24px var(--color-shadow); }
.download-app-icon img { width: 48px; height: 48px; }
.download-intro .eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.release-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface); color: var(--color-text-secondary); font-size: .75rem; }
.download-panel h2 { margin-top: 10px; }
.download-panel .download-status { max-width: 55ch; line-height: 1.8; }
.download-panel .button { min-width: 210px; }
.download-disabled { opacity: .62; cursor: not-allowed; }
.download-disabled:hover { transform: none; background: var(--color-accent); }
.download-details { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); align-items: stretch; gap: 22px; margin-top: 24px; }
.release-table-wrap, .checksum-card { min-width: 0; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--color-border); border-radius: 18px; background: var(--color-surface); box-shadow: 0 12px 34px var(--color-shadow); }
.details-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.details-heading .eyebrow, .checksum-card .eyebrow { margin-bottom: 4px; }
.details-heading h2, .checksum-card h2 { margin: 0; color: var(--color-text); font-size: 1.28rem; }
.secure-note { display: inline-flex; align-items: center; gap: 7px; color: var(--color-success); font-size: .78rem; white-space: nowrap; }
.secure-note svg, .checksum-icon svg, .copy-checksum svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.release-table { margin: 0; border-radius: 12px; }
.release-table th, .release-table td { padding: 14px 16px; }
.release-table th { width: 38%; color: var(--color-text-secondary); font-size: .86rem; font-weight: 500; }
.release-table td { color: var(--color-text); font-weight: 600; }
.checksum-card { display: flex; align-items: flex-start; gap: 16px; background: linear-gradient(145deg, var(--color-surface), var(--color-primary-soft)); }
.checksum-icon { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border-radius: 14px; background: var(--color-surface); color: var(--color-primary); }
.checksum-icon svg { width: 25px; height: 25px; }
.checksum-content { min-width: 0; }
.checksum-value { margin: 15px 0 12px; padding: 12px; border: 1px solid var(--color-border); border-radius: 9px; background: var(--color-surface); color: var(--color-text); font-family: Consolas, 'Courier New', monospace; font-size: .76rem; line-height: 1.8; overflow-wrap: anywhere; text-align: left; }
.copy-checksum { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 13px; border: 1px solid var(--color-border); border-radius: 9px; background: var(--color-surface); color: var(--color-text); font: inherit; font-size: .82rem; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.copy-checksum:hover:not(:disabled) { border-color: var(--color-primary); color: var(--color-primary); }
.copy-checksum:disabled { opacity: .55; cursor: not-allowed; }
.copy-status { display: block; min-height: 1.5em; margin-top: 6px; color: var(--color-success); font-size: .78rem; }
.install-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.install-heading .eyebrow { margin-bottom: 3px; }
.install-heading h2 { margin: 0; }
.install-heading-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; background: var(--color-primary-soft); color: var(--color-primary); font-size: 1.6rem; }
.install-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0; list-style: none; }
.install-steps li { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 17px; border: 1px solid var(--color-border); border-radius: 13px; background: var(--color-surface-secondary); }
.step-number { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 50%; background: var(--color-primary-soft); color: var(--color-primary); font-weight: 700; }
.install-steps li > span:last-child { display: grid; gap: 5px; }
.install-steps strong { color: var(--color-text); font-size: .92rem; }
.install-steps small { color: var(--color-text-secondary); line-height: 1.7; }
.install-requirements { margin-top: 20px; }

@media (max-width: 800px) {
  .download-details { grid-template-columns: 1fr; }
  .install-steps { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .download-hero { padding-block: 64px 48px; }
  .download-hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .download-panel { grid-template-columns: 1fr; gap: 20px; }
  .download-intro { align-items: flex-start; gap: 14px; }
  .download-app-icon { width: 58px; height: 58px; flex-basis: 58px; border-radius: 16px; }
  .download-app-icon img { width: 38px; height: 38px; }
  .download-panel .button { width: 100%; }
  .release-table-wrap, .checksum-card { padding: 18px 14px; }
  .release-table tr { display: grid; grid-template-columns: minmax(100px, .75fr) minmax(0, 1.25fr); }
  .release-table th, .release-table td { width: auto; padding: 12px 10px; font-size: .78rem; }
  .checksum-card { gap: 12px; }
}

.page-hero-action { margin-top: 22px; }
.page-hero-action:hover { transform: translateY(-2px); }
.section-heading { align-items: end; gap: 24px; margin-bottom: 30px; }
.section-heading h2, .intro h2, .photo-grid h2, .dua-frame h2, .callout-inner h2 { letter-spacing: -.025em; }
.feature-card { position: relative; overflow: hidden; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.feature-card::before { position: absolute; top: -42px; left: -42px; width: 120px; height: 120px; border: 1px solid var(--color-decoration); border-radius: 50%; content: ''; opacity: .5; transition: transform .3s ease; }
.feature-card:hover::before { transform: scale(1.3); }
.feature-card:focus-within { border-color: var(--color-primary); outline: 3px solid var(--color-primary-soft); }
.photo-grid { gap: clamp(32px, 7vw, 88px); }
.photo-grid > div:last-child { max-width: 520px; }
.theme-strip { gap: 14px; }
.theme-strip button { color: var(--color-text); font: 600 .88rem var(--body-font); cursor: pointer; }
.theme-strip button:focus-visible, .copy-checksum:focus-visible, .site-nav a:focus-visible, .button:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.dua-frame { padding: clamp(26px, 5vw, 50px); }
.dua-frame h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.download-callout .callout-inner { padding: clamp(38px, 7vw, 72px) 24px; }
.callout-inner > p:not(.eyebrow) { color: var(--color-text-secondary); }
.faq-hero .container { max-width: 900px; }
.faq-hero h1 { max-width: 720px; }
.faq-layout { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.5fr); align-items: start; gap: clamp(30px, 6vw, 78px); }
.faq-intro { position: sticky; top: 120px; max-width: 360px; }
.faq-intro h2 { margin-bottom: 14px; color: var(--color-text); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.faq-intro > p:not(.eyebrow) { margin-bottom: 22px; color: var(--color-text-secondary); line-height: 1.9; }
.faq-list { max-width: none; padding: 6px 24px; }
.faq-list details { padding-inline: 5px; transition: background .2s ease; }
.faq-list details[open] { margin-inline: -5px; padding-inline: 10px; border-radius: 10px; background: var(--color-primary-soft); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; line-height: 1.8; cursor: pointer; }
.faq-list summary::after { float: none; flex: 0 0 28px; }
.faq-list details p { margin: 0; color: var(--color-text-secondary); }
.faq-contact-section { padding-block: 0 clamp(72px, 9vw, 112px); }
.faq-contact-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(24px, 4vw, 42px); border: 1px solid var(--color-border); border-radius: 20px; background: radial-gradient(ellipse at 100% 0, var(--color-primary-soft), transparent 55%), var(--color-surface); box-shadow: 0 14px 38px var(--color-shadow); }
.faq-contact-card .eyebrow { margin-bottom: 6px; }
.faq-contact-card h2 { margin-bottom: 6px; color: var(--color-text); font-size: clamp(1.45rem, 3vw, 2rem); }
.faq-contact-card p:not(.eyebrow) { margin: 0; color: var(--color-text-secondary); }
.site-footer { border-top: 1px solid var(--color-border); }
.site-footer nav { flex-wrap: wrap; }
.site-footer nav a { transition: color .2s ease; }
.site-footer nav a:hover { color: var(--color-primary); }
.contact-form, .contact-aside { border-radius: 22px; }
.contact-form-heading h2 { letter-spacing: -.02em; }
.contact-field input, .contact-field select, .contact-field textarea { transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.contact-field input:hover, .contact-field select:hover, .contact-field textarea:hover { border-color: var(--color-primary); }
.contact-field input:focus, .contact-field select:focus, .contact-field textarea:focus { box-shadow: 0 0 0 3px var(--color-primary-soft); }
.contact-aside { position: sticky; top: 120px; }

@media (max-width: 820px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-intro, .contact-aside { position: static; max-width: none; }
}
@media (max-width: 600px) {
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .faq-list { padding-inline: 15px; }
  .faq-list summary { gap: 10px; font-size: .92rem; }
  .faq-contact-card { align-items: flex-start; flex-direction: column; }
  .faq-contact-card .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .feature-card, .feature-card::before, .theme-strip button { transition: none; }
  .hero-photo { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo { animation: none; transform: none; }
}
