/* ==========================================================================
   Deeny (ديني) — Sacred Architectural Sanctuary Design System
   Palette: Deep Emerald (#0F3D30), Nocturnal Shrine (#0A1814),
            Bronze-Gold Ink (#795619), Luminous Gold (#D9BC82 on dark),
            Sunlit Alabaster (#F7F8F7)
   ========================================================================== */

:root {
  --bg-paper: #F7F8F7;
  --bg-ivory: #FAF8F2;
  --bg-stone: #EFECE3;
  --bg-emerald: #0F3D30;
  --bg-shrine: #0A1814;
  --bg-card: #FFFFFF;

  --ink-primary: #111D18;
  --ink-secondary: #3B4B44;
  --ink-muted: #52625B;
  --ink-on-dark: #F4F5F2;
  --ink-on-dark-muted: #C2D0C9;

  --gold: #795619;
  --gold-border: #B58E46;
  --gold-soft: #D9BC82;
  --gold-wash: rgba(181, 142, 70, 0.14);
  --emerald: #0F3D30;
  --emerald-light: #185745;
  --emerald-wash: rgba(15, 61, 48, 0.07);

  --border-hairline: rgba(15, 61, 48, 0.14);
  --border-gold: rgba(181, 142, 70, 0.36);
  --border-dark: rgba(217, 188, 130, 0.24);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.06);
  --shadow-device: 0 24px 56px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-btn: 0 6px 18px rgba(0, 0, 0, 0.14);

  --font-display: "Newsreader", "Amiri", Georgia, serif;
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-arabic: "Cairo", "Noto Naskh Arabic", "Geeza Pro", sans-serif;
  --font-urdu: "Noto Nastaliq Urdu", "Cairo", "Geeza Pro", serif;

  --max-w: 1180px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-paper);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

html[lang="ar"] body {
  font-family: var(--font-arabic);
  line-height: 1.78;
}

html[lang="ur"] body {
  font-family: var(--font-urdu);
  line-height: 2.08;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: 16px;
  background: var(--emerald);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  z-index: 999;
  font-weight: 600;
}

.skip-link:focus {
  inset-block-start: 16px;
}

.container {
  width: min(100%, var(--max-w));
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 24px);
}

.lattice-bg {
  background-color: var(--bg-paper);
  background-image:
    radial-gradient(circle at 82% 14%, rgba(181, 142, 70, 0.08), transparent 46%),
    radial-gradient(circle at 10% 80%, rgba(15, 61, 48, 0.05), transparent 44%);
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 247, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-hairline);
}

.nav-inner {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
  border: 1px solid var(--border-gold);
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--emerald);
  letter-spacing: -0.01em;
}

.brand-tag {
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: color 0.18s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--emerald);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switcher {
  position: relative;
}

.lang-select {
  appearance: none;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  padding: 8px 34px 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--emerald);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230F3D30' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

html[dir="rtl"] .lang-select {
  padding: 8px 14px 8px 34px;
  background-position: left 12px center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 12px 22px;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--emerald);
  color: #FFFFFF;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--emerald-light);
}

.btn-gold {
  background: var(--gold-soft);
  color: #091511;
  font-weight: 700;
}

.btn-gold:hover {
  background: #E5CD9A;
}

.btn-outline {
  background: var(--bg-card);
  color: var(--emerald);
  border-color: var(--border-hairline);
}

.btn-outline:hover {
  border-color: var(--gold-border);
  background: var(--bg-ivory);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.84rem;
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding: 56px 20px 68px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.section-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-shrine .section-label {
  color: var(--gold-soft);
}

.hero-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.6vw, 3.75rem);
  line-height: 1.08;
  color: var(--emerald);
  letter-spacing: -0.02em;
}

html[lang="ar"] .hero-title,
html[lang="ur"] .hero-title {
  font-family: inherit;
  line-height: 1.3;
  letter-spacing: 0;
}

.hero-subtitle {
  margin: 0 0 28px;
  font-size: clamp(1.03rem, 1.4vw, 1.16rem);
  color: var(--ink-secondary);
  max-width: 54ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.store-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-shrine);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 14px;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-btn);
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease);
}

.store-badge-btn:hover {
  transform: translateY(-2px);
  background: var(--emerald);
}

.store-badge-copy {
  display: flex;
  flex-direction: column;
  text-align: start;
  line-height: 1.2;
}

.store-badge-kicker {
  font-size: 0.75rem;
  opacity: 0.9;
  font-weight: 500;
}

.store-badge-main {
  font-size: 1.05rem;
  font-weight: 700;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-hairline);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.trust-item svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* Interactive iPhone App Mechanism Showcase */
.hero-device-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.stage-panel {
  display: none;
  width: 100%;
  justify-content: center;
  animation: fadeSlide 0.26s var(--ease);
}

.stage-panel.is-active {
  display: flex;
}

.hero-photo-frame {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-device);
  background: var(--bg-stone);
}

.hero-photo-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.device-frame {
  width: min(100%, 348px);
  background: #171B19;
  border-radius: 46px;
  padding: 12px;
  box-shadow: var(--shadow-device);
  border: 2px solid rgba(217, 188, 130, 0.42);
  position: relative;
}

.device-screen {
  background: var(--bg-ivory);
  border-radius: 36px;
  overflow: hidden;
  min-height: 530px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.device-arch-banner {
  background: linear-gradient(170deg, #0F3D30 0%, #0A251D 100%);
  color: #FFFFFF;
  padding: 20px 18px 22px;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  position: relative;
}

.device-notch {
  width: 96px;
  height: 22px;
  background: #171B19;
  border-radius: 999px;
  margin: 0 auto 14px;
}

.device-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.device-app-id {
  display: flex;
  align-items: center;
  gap: 8px;
}

.device-app-id img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(217, 188, 130, 0.5);
}

.device-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-soft);
  background: rgba(217, 188, 130, 0.16);
  border: 1px solid rgba(217, 188, 130, 0.34);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.device-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sim-card {
  background: #FFFFFF;
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
  padding: 14px 16px;
}

.sim-prayer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.sim-prayer-row.is-next {
  background: var(--emerald);
  color: #FFFFFF;
}

.sim-prayer-row.is-next .sim-time {
  color: var(--gold-soft);
}

.sim-arabic-ayah {
  font-family: "Amiri", "Noto Naskh Arabic", serif;
  font-size: 1.32rem;
  line-height: 1.95;
  text-align: center;
  color: var(--emerald);
  direction: rtl;
}

.sim-audio-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-shrine);
  color: #FFFFFF;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border-dark);
}

.sim-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: #091511;
  border: none;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.qibla-dial-preview {
  width: 196px;
  height: 196px;
  margin: 4px auto;
  border-radius: 50%;
  background: radial-gradient(circle, #FFFFFF 0%, #FAF8F2 75%);
  border: 2px solid var(--gold-border);
  position: relative;
  display: grid;
  place-items: center;
}

.qibla-ring-inner {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px dashed rgba(15, 61, 48, 0.25);
  display: grid;
  place-items: center;
  position: relative;
}

.qibla-needle {
  position: absolute;
  width: 3px;
  height: 126px;
  background: linear-gradient(to bottom, var(--emerald) 0%, var(--emerald) 48%, rgba(181, 142, 70, 0.45) 52%, transparent 100%);
  transform: rotate(36deg);
  border-radius: 4px;
}

.qibla-kaaba-dot {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #141917;
  border: 2px solid var(--gold-border);
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.device-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--bg-stone);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
}

.device-tab-btn {
  border: none;
  background: transparent;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.device-tab-btn.is-active {
  background: var(--emerald);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Section Cadence & Feature Pillar Architecture
   -------------------------------------------------------------------------- */
.section {
  padding: 68px 20px;
}

.section-ivory {
  background: var(--bg-ivory);
}

.section-shrine {
  background: var(--bg-shrine);
  color: var(--ink-on-dark);
}

.section-head {
  max-width: 68ch;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-head.is-centered {
  margin-inline: auto;
  text-align: center;
}

.section-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  color: var(--emerald);
}

.section-shrine .section-title {
  color: #FFFFFF;
}

html[lang="ar"] .section-title,
html[lang="ur"] .section-title {
  font-family: inherit;
  line-height: 1.32;
}

.section-desc {
  margin: 0;
  font-size: 1.04rem;
  color: var(--ink-secondary);
}

.section-shrine .section-desc {
  color: var(--ink-on-dark-muted);
}

/* Verifiable Fact Strip */
.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.fact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 20px 18px;
}

.fact-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--emerald);
  line-height: 1.05;
  margin-bottom: 6px;
}

html[lang="ar"] .fact-num,
html[lang="ur"] .fact-num {
  font-family: inherit;
}

.fact-label {
  font-size: 0.9rem;
  color: var(--ink-secondary);
  font-weight: 600;
}

/* Editorial Asymmetric Split */
.editorial-split {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.editorial-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-device);
}

.editorial-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.editorial-points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.editorial-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.point-bullet {
  color: var(--gold-soft);
  flex-shrink: 0;
  margin-top: 3px;
}

.editorial-points h3 {
  margin: 0 0 4px;
  font-size: 1.04rem;
  color: #FFFFFF;
}

.editorial-points p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-on-dark-muted);
}

/* Capabilities Grid (side-by-side inline header, no icon-tile-stack box) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.feature-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-2px);
}

.feature-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--emerald);
}

.feature-head svg {
  color: var(--gold);
  flex-shrink: 0;
}

.feature-head h3 {
  margin: 0;
  font-size: 1.08rem;
  color: var(--emerald);
}

.feature-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-secondary);
}

/* Visual Gallery Showcase */
.gallery-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
}

.gallery-banner img {
  width: 100%;
  border-radius: var(--radius-md);
}

.artwork-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.artwork-tile {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.artwork-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.artwork-caption {
  padding: 16px;
}

.artwork-caption h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--emerald);
}

.artwork-caption p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-secondary);
}

/* 6-Language Switch Matrix */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lang-pill-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.lang-pill-card:hover {
  border-color: var(--gold-border);
  background: var(--bg-ivory);
}

.lang-native {
  font-weight: 700;
  color: var(--emerald);
  font-size: 1.04rem;
}

.lang-sub {
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.lang-dir {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--emerald-wash);
  color: var(--emerald);
}

/* Pricing & Open Worship Integrity */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.plan-card.is-featured {
  border-color: var(--gold-border);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF8F2 100%);
  box-shadow: var(--shadow-soft);
}

.plan-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--emerald);
  background: var(--gold-wash);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  margin-bottom: 12px;
}

.plan-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: var(--emerald);
}

.plan-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.plan-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--ink-secondary);
}

.plan-list svg {
  color: var(--emerald);
  flex-shrink: 0;
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin-inline: auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 4px 20px;
}

.faq-item summary {
  padding-block: 16px;
  font-weight: 700;
  color: var(--emerald);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0 0 18px;
  color: var(--ink-secondary);
  font-size: 0.95rem;
}

/* Final CTA Banner */
.cta-band {
  background: linear-gradient(155deg, #0F3D30 0%, #091A15 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: clamp(2.2rem, 5vw, 3.8rem);
  border: 1px solid rgba(217, 188, 130, 0.34);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.15;
}

html[lang="ar"] .cta-band h2,
html[lang="ur"] .cta-band h2 {
  font-family: inherit;
  line-height: 1.3;
}

.cta-band p {
  margin: 0;
  color: var(--ink-on-dark-muted);
  max-width: 52ch;
}

/* --------------------------------------------------------------------------
   Sub-pages: Privacy Policy, Terms of Use, Contact Us
   -------------------------------------------------------------------------- */
.doc-hero {
  background: linear-gradient(180deg, var(--bg-ivory) 0%, var(--bg-paper) 100%);
  padding: 44px 20px;
}

.doc-hero h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 2.65rem;
  color: var(--emerald);
  line-height: 1.15;
}

html[lang="ar"] .doc-hero h1,
html[lang="ur"] .doc-hero h1 {
  font-family: inherit;
  line-height: 1.3;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.doc-layout {
  padding-block: clamp(2.2rem, 4.5vw, 3.8rem);
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.doc-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 20px;
}

.doc-sidebar h2 {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--gold);
}

.doc-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.doc-toc a {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  font-weight: 500;
}

.doc-toc a:hover {
  color: var(--emerald);
}

.doc-article {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.doc-section + .doc-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-hairline);
}

.doc-section h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: var(--emerald);
}

.doc-section p {
  margin: 0 0 12px;
  color: var(--ink-secondary);
}

.doc-section code {
  background: var(--bg-ivory);
  border: 1px solid var(--border-hairline);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.88em;
  color: var(--emerald);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  padding-block: clamp(2.2rem, 4.5vw, 3.8rem);
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.contact-card h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.24;
  color: var(--emerald);
}

.email-box {
  background: var(--bg-ivory);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-block: 16px;
}

.email-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--emerald);
  direction: ltr;
}

.form-field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--emerald);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  background: var(--bg-paper);
  font: inherit;
  color: var(--ink-primary);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--emerald);
  background: #FFFFFF;
}

.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.topic-chip {
  border: 1px solid var(--border-hairline);
  background: var(--bg-ivory);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--emerald);
}

.topic-chip:hover {
  border-color: var(--gold-border);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-hairline);
  background: var(--bg-ivory);
  padding-block: 44px 32px;
  padding-inline: 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 32px;
}

.footer-col h3 {
  margin: 0 0 12px;
  font-size: 0.94rem;
  color: var(--emerald);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--ink-secondary);
}

.footer-col a:hover {
  color: var(--emerald);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid,
  .editorial-split,
  .doc-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .doc-sidebar {
    position: static;
  }

  .fact-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid,
  .lang-grid,
  .artwork-trio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-cta-desktop {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .site-header.is-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    inset-inline: 0;
    top: var(--nav-h);
    background: var(--bg-paper);
    padding: 18px 20px 24px;
    border-bottom: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-soft);
    align-items: flex-start;
    gap: 14px;
  }

  .feature-grid,
  .plans-grid,
  .lang-grid,
  .artwork-trio,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .store-badge-btn,
  .btn {
    justify-content: center;
  }
}
