/* Shared site-wide layout: one palette, one type scale, one app showcase. */
html[data-theme="dark"] {
  --color-bg-deep:#061b18; --color-bg-primary:#09221e;
  --color-bg-card:#102d27; --color-bg-card-hover:#173c32;
  --color-text-title:#f5f4eb; --color-text-body:#cedcd5; --color-text-muted:#a8bfb3;
  --color-border-subtle:rgb(185 170 120 / 19%);
  --bg-ambient-grad:radial-gradient(ellipse at 85% 20%,#17473755,transparent 55%),linear-gradient(#061b18,#09221e);
}
html[data-theme="light"] {
  --color-bg-deep:#f5f8f3; --color-bg-primary:#f0f5ef;
  --color-bg-card:#fff; --color-bg-card-hover:#edf5ee;
  --color-text-title:#163b2d; --color-text-body:#365749; --color-text-muted:#526e60;
}
html body .site-hero { padding-block:clamp(32px,4vw,64px); overflow:clip; }
html body .hero-layout { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr); gap:clamp(28px,5vw,80px); align-items:center; }
html body .hero-intro { min-width:0; }
html body .hero-intro h1 { font-size:clamp(2rem,3.4vw,3.4rem); line-height:1.2; margin-block:16px 20px; }
html[lang="ur"] body .hero-intro h1 { font-size:clamp(32px,3.1vw,52px)!important; line-height:1.85!important; }
html body .hero-intro > p { max-width:58ch; font-size:clamp(16px,1.25vw,19px); line-height:1.8; }
html[lang="ur"] body .hero-intro > p { font-size:clamp(20px,1.45vw,24px); line-height:2.05; }
html body .hero-crumb, html body .hero-kicker { padding-inline-end:0; }
.page-app-showcase { width:100%; max-width:430px; justify-self:center; min-width:0; text-align:center; }
.page-phone-stage { position:relative; isolation:isolate; padding:32px 30px 20px; perspective:1200px; }
.page-phone-stage::before { content:''; position:absolute; inset:0 0 12px; background:url('images/mihrab-stage.svg') center / 100% 100% no-repeat; z-index:-1; filter:drop-shadow(0 18px 16px #0003); }
.page-phone-device { width:clamp(190px,17vw,250px); margin-inline:auto; padding:7px; border:1px solid #d4bc82; border-radius:30px; background:linear-gradient(125deg,#e2cf9d,#756644 40%,#16352c 80%,#b39a63); transform:rotateY(-10deg) rotateZ(2deg); box-shadow:4px 3px 0 #9c8659,8px 6px 0 #24382c,18px 24px 32px #0005; overflow:hidden; }
.page-phone-zoom { display:block; position:relative; width:100%; padding:0; border:0; border-radius:23px; overflow:hidden; background:#071713; cursor:zoom-in; }
.page-phone-zoom img { width:100%; height:auto; aspect-ratio:1080/2400; object-fit:contain; display:block; }
.page-zoom-icon { position:absolute; bottom:12px; inset-inline-end:12px; width:36px; height:36px; display:grid; place-items:center; background:#123b30e8; color:#f3d58d; border:1px solid #c3ac73; border-radius:50%; }
.page-phone-caption { color:var(--hero-ink); margin:16px 0 10px; font-size:16px; line-height:1.8; }
html[lang="ur"] .page-phone-caption { font-size:21px; }
.page-screen-tabs { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.page-screen-tab { min-height:44px; max-width:100%; padding:8px 14px; border:1px solid var(--hero-rule); background:var(--color-bg-card); color:var(--hero-ink); border-radius:999px; font:inherit; font-size:14px; line-height:1.65; cursor:pointer; }
html[lang="ur"] .page-screen-tab { font-size:18px; padding-block:4px; line-height:1.9; }
.page-screen-tab.active { background:#0b6a50; color:#fff9dc; border-color:#d5b766; box-shadow:0 4px 12px #04342633; }
html body :is(.ifta-form-card,.blog-card,.policy-box,.mgmt-stat-card,.contact-form-card,.demo-card-box) { background:var(--color-bg-card); border:1px solid var(--color-border-subtle); border-radius:20px; box-shadow:0 12px 30px #001a1614; }
html body :is(input,select,textarea) { font-size:max(16px,1em); max-width:100%; }
html body :is(.btn,.filter-pill,.cat-pill,.page-screen-tab) { min-height:44px; white-space:normal; }
html body :is(.inner-preview-content,.blog-card-body,.hero-intro,.ifta-form-card) { overflow-wrap:break-word; }
@media(max-width:900px) {
 html body .hero-layout { grid-template-columns:minmax(0,1fr) minmax(220px,.65fr); gap:24px; }
 .page-phone-stage { padding:24px 16px 18px; }
 .page-phone-device { width:190px; }
}
@media(max-width:700px) {
 html body .hero-layout { grid-template-columns:minmax(0,1fr); gap:28px; }
 html body .site-hero { padding-block:26px 34px; }
 html body .hero-intro h1 { font-size:clamp(28px,7vw,36px); }
 html[lang="ur"] body .hero-intro h1 { font-size:clamp(29px,7.5vw,38px)!important; }
 html body .hero-intro > p { font-size:16px; }
 html[lang="ur"] body .hero-intro > p { font-size:20px; }
 .page-app-showcase { max-width:330px; }
 .page-phone-device { width:min(58vw,218px); }
 html body .hero-actions { display:flex; flex-wrap:wrap; }
 html body .hero-actions > .btn { flex:1 1 180px; width:auto; }
 html body .hero-detail { max-width:100%; }
 html body :is(.ifta-grid,.inner-preview-grid,.contact-grid,.management-grid) { grid-template-columns:minmax(0,1fr)!important; }
 html body .blog-search-bar { display:flex; flex-wrap:wrap; padding:12px; gap:10px; }
 html body .blog-search-bar input { min-width:0; flex:1 1 150px; }
 html body .container { width:100%; padding-inline:18px; }
 html body .section-header h2 { font-size:clamp(26px,6vw,34px)!important; }
 html[lang="ur"] body .section-header h2 { line-height:1.9!important; }
}
@media(prefers-reduced-motion:reduce) { .page-phone-device { transform:none; } }
