/* Hamza Rehan — shared site styles */

:root {
  --paper: #f7f2e8;
  --paper-2: #efe7d6;
  --surface: #fffdf8;
  --ink: #12261f;
  --ink-2: #3c4f47;
  --muted: #64746d;
  --line: #e2d8c4;
  --emerald: #0b5a48;
  --emerald-deep: #083a2f;
  --emerald-soft: #e3efe8;
  --gold: #c9922f;
  --gold-soft: #f6e9cc;
  --accent: var(--emerald);
  --accent-soft: var(--emerald-soft);
  --on-accent: #fffdf8;
  --shadow: 0 1px 2px rgba(18, 38, 31, .05), 0 12px 32px -12px rgba(18, 38, 31, .18);
  --radius: 20px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1714;
    --paper-2: #13211c;
    --surface: #15241f;
    --ink: #f1ece0;
    --ink-2: #cdd5cf;
    --muted: #97a69f;
    --line: #26392f;
    --emerald: #5cc6a3;
    --emerald-deep: #0a2a21;
    --emerald-soft: #173329;
    --gold: #e5b45a;
    --gold-soft: #2e2716;
    --on-accent: #08201a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 36px -14px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #0d1714;
  --paper-2: #13211c;
  --surface: #15241f;
  --ink: #f1ece0;
  --ink-2: #cdd5cf;
  --muted: #97a69f;
  --line: #26392f;
  --emerald: #5cc6a3;
  --emerald-deep: #0a2a21;
  --emerald-soft: #173329;
  --gold: #e5b45a;
  --gold-soft: #2e2716;
  --on-accent: #08201a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 36px -14px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* Per-product accent (Visual Shield) */
.theme-shield { --accent: #315fd1; --accent-soft: #e8eefc; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-shield { --accent: #8eaaf5; --accent-soft: #1b2440; }
}
:root[data-theme="dark"] .theme-shield { --accent: #8eaaf5; --accent-soft: #1b2440; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.narrow { width: min(780px, calc(100% - 32px)); margin-inline: auto; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; letter-spacing: .02em; line-height: 1.2; }
.brand span { line-height: 1.2; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--ink-2); text-decoration: none; font-weight: 650; font-size: 15px;
  padding: 8px 12px; border-radius: 999px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--paper-2); color: var(--ink); }

/* Type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: .09em; text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 6.4vw, 4.4rem); line-height: 1.04; margin: 14px 0 18px; font-variation-settings: "opsz" 144; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.12; margin: 10px 0 14px; font-variation-settings: "opsz" 96; }
h3 { font-size: 1.3rem; line-height: 1.25; margin: 0 0 8px; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--ink-2); max-width: 640px; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent);
  font-weight: 750; text-decoration: none; font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.button.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.button svg { width: 18px; height: 18px; flex: none; }

.store-badge {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 18px 6px 14px;
  background: #0d0d0d; color: #fff; border-radius: 12px; text-decoration: none; border: 1px solid #333;
  transition: transform .15s ease;
}
.store-badge:hover { transform: translateY(-1px); }
.store-badge svg { width: 24px; height: 24px; flex: none; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 700; font-size: 17px; }
.store-badge small { font-weight: 500; font-size: 11px; opacity: .85; }

/* Sections */
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section.tinted { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.section-head p { max-width: 520px; margin: 0; color: var(--ink-2); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 10vw, 112px) 0 clamp(48px, 8vw, 88px); }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -60% auto; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-soft) 0, transparent 65%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.pattern {
  position: relative; aspect-ratio: 1; max-width: 420px; justify-self: end; width: 100%;
  color: var(--accent);
}
.pattern svg { width: 100%; height: 100%; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; padding: 0; list-style: none; }
.facts li {
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 14px; font-weight: 650; color: var(--ink-2);
}

/* Cards */
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card p { color: var(--ink-2); margin: 0; }

.app-card { display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: inherit; position: relative; transition: transform .18s ease, border-color .18s ease; }
a.app-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.app-card .top { display: flex; align-items: center; gap: 14px; }
.app-card .top img { width: 60px; height: 60px; border-radius: 15px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.app-card h3 { margin: 0; }
.app-card .kind { font-size: 13px; color: var(--muted); font-weight: 650; }
.app-card .foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line); }
.app-card .more { font-weight: 750; color: var(--accent); font-size: 14px; }
.app-card.placeholder { box-shadow: none; background: transparent; border-style: dashed; align-items: flex-start; justify-content: center; min-height: 220px; }
.app-card.placeholder .plus { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 15px; background: var(--paper-2); color: var(--muted); font-size: 28px; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 750; letter-spacing: .02em; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.live { background: var(--emerald-soft); color: var(--emerald); }
.pill.dev { background: var(--gold-soft); color: #8a5d12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.dev { color: var(--gold); } }
:root[data-theme="dark"] .pill.dev { color: var(--gold); }
.platforms { display: flex; flex-wrap: wrap; gap: 6px; }
.platforms span { font-size: 12px; font-weight: 700; color: var(--ink-2); background: var(--paper-2); padding: 3px 9px; border-radius: 8px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button {
  font: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Featured product */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: var(--emerald-deep); color: #f4efe3; border-radius: 28px; padding: clamp(28px, 5vw, 56px); overflow: hidden;
}
.feature h2, .feature h3 { color: #fffaf0; }
.feature .eyebrow { color: #e9be6c; }
.feature p { color: #cfdcd5; }
.feature ul { padding-left: 20px; color: #dfe8e3; margin: 18px 0 0; }
.feature li { margin: 6px 0; }
.feature .button.secondary { background: transparent; color: #fffaf0; border-color: rgba(255,255,255,.3); }
.shots { display: flex; gap: 14px; justify-content: center; }
.shots img { width: 46%; max-width: 220px; border-radius: 18px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.5); }
.shots img:nth-child(2) { transform: translateY(28px); }

.gallery { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; }
.gallery img { width: min(240px, 62vw); flex: none; border-radius: 18px; scroll-snap-align: start; border: 1px solid var(--line); box-shadow: var(--shadow); }

.icon-chip { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.icon-chip svg { width: 22px; height: 22px; }

/* Product hero */
.product-hero { padding: clamp(48px, 8vw, 88px) 0 clamp(36px, 6vw, 64px); }
.product-hero .grid-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.app-icon-lg { width: 96px; height: 96px; border-radius: 24px; box-shadow: var(--shadow); }
.hero-shot { border-radius: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--surface); padding: 10px; }
.hero-shot img { border-radius: 16px; }

.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.link-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  color: var(--ink); text-decoration: none; font-weight: 700;
}
.link-list a:hover { border-color: var(--accent); }
.link-list a::after { content: "→"; color: var(--accent); }

/* About / CTA */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.about p { color: var(--ink-2); font-size: 1.08rem; }
.cta {
  text-align: center; padding: clamp(36px, 6vw, 64px) 24px; border-radius: 28px;
  background: var(--gold-soft); border: 1px solid var(--line);
}
.cta .lead { margin: 0 auto; }
.cta .actions { justify-content: center; }

/* Long-form content (legal, support) */
.content { padding: clamp(40px, 7vw, 72px) 0 clamp(56px, 9vw, 96px); }
.content h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); }
.content article { margin-top: 28px; }
.content h2 { font-size: 1.5rem; margin-top: 38px; }
.content h3 { font-size: 1.15rem; margin-top: 24px; }
.content p, .content li { color: var(--ink-2); }
.content li { margin: 6px 0; }
.content table { width: 100%; border-collapse: collapse; margin: 18px 0; background: var(--surface); font-size: 15px; }
.content th, .content td { text-align: left; padding: 12px; border: 1px solid var(--line); vertical-align: top; }
.content th { background: var(--paper-2); }
.table-scroll { overflow-x: auto; }
.notice { padding: 16px 20px; border-left: 4px solid var(--gold); background: var(--surface); border-radius: 10px; margin: 20px 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-top: 20px; }
.panel h2 { margin-top: 0; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--muted); }

/* Footer */
.site-footer { background: var(--emerald-deep); color: #c9d8d0; padding: 56px 0 28px; margin-top: 0; }
.site-footer a { color: #f4efe3; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { margin: 0 0 12px; color: #e9be6c; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.footer-brand p { max-width: 300px; font-size: 15px; }
.footer-brand .brand { color: #fffaf0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }

@media (max-width: 900px) {
  .hero-grid, .feature, .about, .product-hero .grid-hero { grid-template-columns: 1fr; }
  .pattern { max-width: 260px; justify-self: start; order: -1; }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .grid.cols-3, .grid.cols-2, .grid.cols-4 { grid-template-columns: 1fr; }
  .nav-links a.hide-sm { display: none; }
  .nav-links a { padding: 8px 9px; }
  .brand small { display: none; }
  .pattern { display: none; }
  .shots img:nth-child(2) { transform: translateY(16px); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Tip the developer */
.gift-note { border-color: var(--gold); background: linear-gradient(180deg, var(--gold-soft), var(--surface) 70%); }
.gift-note p + p { margin-top: 12px; }
.hadith { margin: 22px 0 0; padding: 16px 20px; border-left: 3px solid var(--gold); background: var(--surface); border-radius: 10px; }
.hadith p { margin: 0; }
.hadith .arabic { font-family: "Amiri", "Geeza Pro", "Noto Naskh Arabic", serif; font-size: 1.7rem; line-height: 1.6; color: var(--ink); margin-bottom: 6px; }
.bank dl { margin: 0; display: grid; }
.bank-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.bank-row:last-child { border-bottom: 0; }
.bank-row dt { color: var(--muted); font-weight: 650; font-size: 14px; }
.bank-row dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.bank-row .value { font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.copy {
  display: inline-flex; align-items: center; gap: 6px; flex: none; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border: 0; border-radius: 999px; padding: 6px 12px;
}
.copy svg { width: 14px; height: 14px; }
.steps { margin: 0; padding-left: 20px; color: var(--ink-2); }
.steps li { margin: 8px 0; }
@media (max-width: 600px) {
  .bank-row { grid-template-columns: 1fr; gap: 4px; }
}
.section .narrow > h2 { margin-top: 48px; }

/* Editorial refresh: generous type, quiet surfaces and a clear product hierarchy. */
:root {
  --paper: #f8f7f2; --paper-2: #efeee7; --surface: #fffefa;
  --ink: #192c25; --ink-2: #41544a; --muted: #617267; --line: #dedfd3;
  --emerald: #1a5d46; --emerald-deep: #153c2f; --emerald-soft: #e7eee5;
  --gold: #a87628; --gold-soft: #f3ead7;
  --shadow: 0 2px 3px rgba(25,44,37,.02), 0 18px 45px -30px rgba(25,44,37,.18);
  --radius: 24px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #101b17; --paper-2: #15231c; --surface: #192920;
    --ink: #f4f1e7; --ink-2: #cbd5cc; --muted: #a1b0a5; --line: #314438;
    --emerald: #8ad0aa; --emerald-deep: #123326; --emerald-soft: #233c2c;
    --gold: #deb46a; --gold-soft: #342c1e; --on-accent: #10291c;
  }
}
:root[data-theme="dark"] {
  --paper: #101b17; --paper-2: #15231c; --surface: #192920;
  --ink: #f4f1e7; --ink-2: #cbd5cc; --muted: #a1b0a5; --line: #314438;
  --emerald: #8ad0aa; --emerald-deep: #123326; --emerald-soft: #233c2c;
  --gold: #deb46a; --gold-soft: #342c1e; --on-accent: #10291c;
}
[hidden] { display: none !important; }
html { scroll-padding-top: 110px; }
body { font-size: 15px; line-height: 1.75; }
main { min-height: 55vh; }
.wrap { width: min(1184px, calc(100% - 64px)); }
.narrow { width: min(800px, calc(100% - 64px)); }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
h1 { font-size: clamp(2.65rem, 5.6vw, 5rem); line-height: 1.08; letter-spacing: -.045em; }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.8rem); letter-spacing: -.035em; line-height: 1.17; }
h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 750; letter-spacing: -.025em; line-height: 1.4; }
.lead { line-height: 1.8; font-size: clamp(1rem, 1.45vw, 1.16rem); }
.eyebrow { font-size: 11px; letter-spacing: .13em; gap: 10px; }
.eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; }
.site-header {
  background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--line);
}
.nav { min-height: 82px; }
.brand { gap: 12px; font-size: 16px; }
.brand-mark { width: 39px; height: 39px; }
.brand small { font-size: 10px; margin-top: 5px; font-weight: 500; letter-spacing: .06em; }
.nav-links { gap: 9px; }
.nav-links a { font-size: 13px; padding: 9px 15px; }
.nav-links .nav-contact { border: 1px solid var(--line); padding-inline: 20px; }
.button { min-height: 48px; padding-inline: 24px; font-size: 13px; gap: 12px; }
.button.secondary { background: transparent; }
.button:hover { box-shadow: none; }
.section { padding: clamp(56px, 7.5vw, 104px) 0; }
.section.tinted { border: 0; background: var(--paper-2); }
.section-head { margin-bottom: 40px; }
.section-head p { font-size: 15px; max-width: 375px; }
.section-head h2 { margin-bottom: 0; }
.hero { padding: 76px 0 84px; }
.hero::before { display: none; }
.hero-grid { grid-template-columns: 1.1fr 1fr; gap: 70px; }
.hero h1 { margin-block: 22px; }
.hero .lead { max-width: 510px; }
.hero .facts { margin-top: 36px; gap: 0; }
.facts li { border: 0; padding: 0; background: none; font-size: 11px; font-weight: 600; }
.facts li + li::before { content: "·"; display: inline-block; padding-inline: 12px; color: var(--gold); }
.hero-showcase { min-width: 0; position: relative; padding: 23px; border: 1px solid var(--line); border-radius: 30px; background: var(--paper-2); }
.showcase-label { display: flex; justify-content: space-between; gap: 12px; margin: 0 2px 17px; font-size: 10px; color: var(--muted); letter-spacing: .04em; }
.showcase-pilgrim { display: block; padding: 20px 20px 0; border-radius: 20px; background: #173e30; color: #f8f5e9; text-decoration: none; overflow: hidden; }
.showcase-app, .showcase-shield { display: flex; align-items: center; gap: 12px; }
.showcase-app img, .showcase-shield img { border-radius: 12px; flex: none; }
.showcase-app strong, .showcase-shield strong { font-size: 13px; display: block; }
.showcase-app small { display: block; color: #bdcebe; font-size: 11px; }
.showcase-arrow { margin-left: auto; font-size: 22px; font-weight: 400; }
.showcase-screens { display: flex; gap: 15px; justify-content: center; height: 290px; margin-top: 24px; overflow: hidden; }
.showcase-screens img { width: calc(50% - 14px); height: auto; object-fit: cover; object-position: top; align-self: start; border-radius: 16px 16px 0 0; box-shadow: 0 15px 30px #0003; }
.showcase-screens img:nth-child(2) { margin-top: 35px; }
.showcase-shield { border-radius: 18px; padding: 16px 20px; background: var(--surface); color: var(--ink); text-decoration: none; margin-top: 14px; border: 1px solid var(--line); }
.showcase-shield small { display: block; font-size: 11px; color: var(--muted); }
.showcase-pilgrim:hover .showcase-arrow, .showcase-shield:hover .showcase-arrow { color: var(--gold); }
.card { padding: 28px; box-shadow: none; }
.grid { gap: 24px; }
.grid > *, .hero-grid > *, .grid-hero > *, .document-layout > * { min-width: 0; }
.app-card { gap: 18px; padding: 24px; }
.app-card h3 { font-size: 1.2rem; }
.app-card .top img { width: 52px; height: 52px; border-radius: 14px; }
.app-card .kind { font-size: 11px; margin-top: 4px; }
.app-card .foot { border-top-style: solid; padding-top: 18px; }
.app-preview { height: 245px; border-radius: 16px; background: var(--paper-2); overflow: hidden; display: flex; justify-content: center; padding: 25px 25px 0; margin-bottom: 6px; }
.app-preview img { width: auto; height: auto; max-width: 100%; object-fit: cover; object-position: top; border-radius: 12px 12px 0 0; align-self: start; }
.app-card[data-cat="islamic"] .app-preview { background: #dfe8dc; }
.app-card[data-cat="islamic"] .app-preview img { width: 175px; }
.app-card[data-cat="tools"] .app-preview { background: #e2e7f1; align-items: center; padding: 24px; }
.app-card[data-cat="tools"] .app-preview img { border-radius: 10px; align-self: center; box-shadow: 0 10px 24px #17293c20; }
.platforms span { font-size: 10px; font-weight: 650; border-radius: 6px; background: var(--paper-2); }
.pill { font-size: 10px; }
.section-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 30px; font-size: 13px; }
.text-link { font-weight: 750; text-decoration: none; display: inline-flex; align-items: center; gap: 24px; }
.text-link:hover { text-decoration: underline; }
.principles .card { border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; padding: 5px 24px; }
.principles .card:first-child { border-left: 0; padding-left: 0; }
.principles .card p { font-size: 13px; }
.icon-chip { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 20px; }
.about { grid-template-columns: 1fr 1.2fr; gap: 90px; }
.about h2 { max-width: 350px; }
.about p { font-size: 15px; margin-top: 0; }
.cta { padding-block: 64px; background: var(--emerald-deep); border: 0; color: #d3e0d3; }
.cta h2 { color: #fff8e8; font-size: clamp(2rem, 4vw, 3.4rem); }
.cta .eyebrow { color: #e9be6c; }
.cta .lead { color: #c7d7cc; max-width: 560px; }
.cta .button { background: #f8f5e9; color: #173e30; border-color: #f8f5e9; }
.cta .button.secondary { background: transparent; color: #f8f5e9; border-color: #7b9985; }
.cta .muted { color: #c1d1c5; }
.cta p.small a { color: #e9be6c; }
.catalogue-note { display: flex; justify-content: space-between; align-items: center; gap: 36px; margin-top: 50px; padding: 36px 0 0; border-top: 1px solid var(--line); }
.catalogue-note h2 { font-size: 1.6rem; }
.catalogue-note p { color: var(--muted); margin: 0; }
.catalogue-note .button { flex: none; }
.filters { gap: 10px; margin-bottom: 32px; }
.filters button { min-height: 44px; font-size: 12px; padding-inline: 20px; }
.product-hero { padding-block: 60px 72px; }
.product-hero .grid-hero { grid-template-columns: 1fr 1fr; gap: 70px; }
.product-hero .app-icon-lg { width: 70px; height: 70px; border-radius: 18px; margin-top: 24px; }
.product-hero h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.product-hero .shots { background: var(--paper-2); border: 1px solid var(--line); border-radius: 30px; padding: 34px 24px 50px; }
.product-hero .shots img { max-width: 180px; }
.product-nav { border-block: 1px solid var(--line); background: var(--surface); }
.product-nav .wrap { display: flex; gap: 30px; overflow-x: auto; }
.product-nav a { display: inline-block; padding: 16px 0; color: var(--ink-2); font-size: 12px; text-decoration: none; font-weight: 700; white-space: nowrap; }
.product-nav a:hover { color: var(--accent); }
.hero-shot { padding: 10px; background: var(--surface); border-radius: 22px; transform: rotate(1.5deg); }
.preview-bar { display: flex; gap: 20px; align-items: center; padding: 6px 8px 14px; font-size: 10px; color: var(--muted); }
.preview-dots { font-size: 8px; letter-spacing: 2px; color: var(--line); }
.process-grid { display: grid; grid-template-columns: repeat(3,1fr); list-style: none; padding: 0; margin: 0 0 40px; gap: 40px; }
.process-grid li { padding-top: 20px; border-top: 1px solid var(--line); }
.process-grid p { font-size: 14px; color: var(--muted); }
.step-number { display: inline-block; font-size: 12px; color: var(--accent); font-weight: 750; margin-bottom: 18px; }
.gallery { gap: 24px; padding-block: 8px 24px; scrollbar-color: var(--line) transparent; }
.gallery img { width: min(225px,64vw); box-shadow: none; }
.contact-grid { margin-top: 42px; }
.contact-grid .card { background: var(--surface); min-height: 245px; }
.contact-grid .more { margin-top: auto; }
.page-heading { padding-bottom: 44px; max-width: 850px; }
.page-heading .lead { max-width: 750px; }
.reading-page .content { padding-top: 54px; }
.reading-page .page-heading h1 { margin-block: 18px; }
.reading-page .page-heading > p:not(.lead) { font-size: 13px; color: var(--muted); }
.document-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 64px; align-items: start; border-top: 1px solid var(--line); padding-top: 38px; }
.document-nav { position: sticky; top: 110px; display: grid; gap: 3px; max-height: calc(100vh - 140px); overflow-y: auto; scrollbar-width: thin; padding-right: 14px; }
.document-nav-label { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 750; padding: 0 10px 12px; }
.document-nav a { text-decoration: none; color: var(--muted); font-size: 12px; line-height: 1.5; padding: 8px 10px; border-radius: 8px; }
.document-nav a:hover, .document-nav a:focus-visible { color: var(--accent); background: var(--accent-soft); }
.document-body { max-width: 800px; }
.document-body article { margin: 0; }
.document-body h2 { font-family: var(--sans); font-weight: 750; font-size: 1.2rem; padding-top: 6px; margin-top: 38px; letter-spacing: -.02em; }
.document-body > h2:first-child, .document-body article > h2:first-child { margin-top: 0; }
.document-body h3 { font-size: 1rem; }
.document-body p, .document-body li { font-size: 14px; line-height: 1.9; }
.document-body .panel { margin: 0 0 24px; padding: 26px; }
.document-body .panel h2 { margin-top: 0; }
.content .notice, .notice { border-left-width: 2px; border-radius: 0 12px 12px 0; padding: 18px 22px; font-size: 13px; }
.content table { font-size: 13px; }
.faq { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; margin: 12px 0; padding: 0 20px; }
.faq summary { font-size: 14px; font-weight: 700; padding: 18px 24px 18px 0; cursor: pointer; }
.faq[open] summary { color: var(--accent); border-bottom: 1px solid var(--line); }
.faq p, .faq ol { margin-bottom: 22px; }
.gift-note { border: 1px solid var(--line); background: var(--surface); padding: clamp(24px,4vw,40px); }
.gift-note h2 { font-size: 1.7rem; }
.gift-note p { font-size: 14px; }
.hadith { background: var(--paper); border: 0; border-radius: 14px; margin-top: 28px; padding: 26px; }
.hadith p.quote-context { text-transform: uppercase; letter-spacing: .1em; font-size: 10px; font-weight: 750; color: var(--muted); margin-bottom: 14px; }
.hadith p.quote-text { font-family: var(--serif); font-size: clamp(1.3rem,2.5vw,1.65rem); color: var(--ink); line-height: 1.5; }
.hadith cite { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 18px; }
.bank { box-shadow: none; }
.bank-row { border-bottom-style: solid; padding-block: 16px; }
.copy { min-height: 36px; }
.copy:disabled { opacity: .45; cursor: not-allowed; }
.copy-status { min-height: 1.5em; font-size: 12px; color: var(--accent); }
.error-page { min-height: 60vh; display: grid; align-items: center; }
.error-page .eyebrow { font-size: 14px; }
.site-footer { padding-top: 60px; background: #15382c; }
.footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 42px; }
.footer-grid h4 { font-size: 10px; letter-spacing: .14em; }
.footer-grid ul { font-size: 12px; gap: 10px; }
.footer-brand p { color: #b9ccbf; font-size: 12px; line-height: 1.9; max-width: 280px; }
.footer-bottom { font-size: 11px; margin-top: 52px; }
@media (max-width: 1000px) {
  .hero-grid { gap: 32px; }
  .product-hero .grid-hero { gap: 36px; }
  .document-layout { gap: 34px; grid-template-columns: 190px minmax(0,1fr); }
  .showcase-app strong { font-size: 11px; }
  .footer-grid { gap: 24px; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; }
  .hero h1 { font-size: 3rem; }
  .showcase-label span:last-child { display: none; }
  .showcase-screens { height: 230px; }
  .hero-showcase { padding: 14px; }
  .showcase-pilgrim { padding: 14px 14px 0; }
  .showcase-app img { width: 34px; height: 34px; }
  .showcase-app small { font-size: 9px; }
  .showcase-shield { padding: 12px; }
  .showcase-shield img { width: 36px; height: 36px; }
  .showcase-shield strong { font-size: 11px; }
  .showcase-shield small { font-size: 9px; }
  .principles .card:nth-child(3) { border-left: 0; padding-left: 0; }
  .about { gap: 40px; }
  .footer-grid { grid-template-columns: repeat(3,1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 400px; }
}
@media (max-width: 700px) {
  .wrap, .narrow { width: calc(100% - 40px); }
  .nav { min-height: 74px; gap: 12px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand { font-size: 13px; gap: 8px; }
  .brand small { display: none; }
  .nav-links { gap: 2px; }
  .nav-links a { font-size: 11px; padding-inline: 11px; }
  .nav-links .nav-contact { padding-inline: 13px; }
  .nav-links .hide-sm { display: none; }
  .hero { padding-top: 42px; padding-bottom: 50px; }
  .hero-grid, .product-hero .grid-hero { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: clamp(2.7rem,8vw,4rem); }
  .hero .lead { max-width: 100%; }
  .hero .facts { margin-top: 26px; }
  .hero-showcase { padding: 18px; border-radius: 24px; }
  .showcase-label span:last-child { display: inline; }
  .showcase-app strong { font-size: 13px; }
  .showcase-app small { font-size: 10px; }
  .showcase-screens { height: 260px; }
  .showcase-screens img { max-width: 190px; }
  .showcase-shield strong { font-size: 13px; }
  .showcase-shield small { font-size: 10px; }
  .showcase-pilgrim { padding: 18px 18px 0; }
  .section-head { gap: 20px; margin-bottom: 28px; }
  .section-head p { max-width: 100%; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .principles { gap: 28px 10px; }
  .principles .card { padding-right: 10px; padding-left: 18px; }
  .principles h3 { font-size: .95rem; }
  .principles .card p { font-size: 12px; }
  .app-card { padding: 18px; }
  .app-preview { height: 210px; }
  .about { grid-template-columns: 1fr; gap: 18px; }
  .about h2 { max-width: 100%; }
  .cta { padding: 42px 22px; border-radius: 22px; }
  .cta .actions { flex-direction: column; }
  .catalogue-note { flex-direction: column; align-items: start; gap: 24px; }
  .product-hero { padding-block: 36px 44px; }
  .product-hero .shots { max-width: 100%; padding: 24px 22px 44px; }
  .product-nav .wrap { gap: 24px; }
  .hero-shot { transform: none; }
  .process-grid { grid-template-columns: 1fr; gap: 20px; }
  .process-grid li { position: relative; padding-left: 44px; padding-top: 18px; }
  .step-number { position: absolute; left: 0; top: 19px; }
  .process-grid p { margin-block: 6px 0; }
  .contact-grid .card { min-height: 210px; }
  .document-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 22px; }
  .document-nav { position: static; display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding: 0 0 12px; max-height: none; }
  .document-nav-label { display: none; }
  .document-nav a { white-space: nowrap; background: var(--surface); border: 1px solid var(--line); font-size: 11px; }
  .page-heading { padding-bottom: 30px; }
  .reading-page .content { padding-top: 32px; }
  .document-body .panel { padding: 20px; }
  .document-body p, .document-body li { font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { margin-top: 34px; }
}
@media (max-width: 360px) {
  .wrap, .narrow { width: calc(100% - 28px); }
  .nav-links a { padding-inline: 8px; }
  .nav-links .nav-contact { padding-inline: 10px; }
  .brand { font-size: 12px; }
  .hero .facts li { font-size: 10px; }
  .facts li + li::before { padding-inline: 8px; }
}

/* 3D device render (transparent PNG) */
.hero-3d { width: 100%; max-width: 460px; justify-self: center; margin-inline: auto; }
/* Safari stretches replaced elements inside grid/flex unless they opt out of stretch */
.hero-3d, .hero-shot img, .gallery img, .app-icon-lg { align-self: center; height: auto; object-fit: contain; }
.gallery img { align-self: flex-start; width: min(300px, 72vw); }
