/* Zaad website. Tokens follow design/v7/SYSTEM.md (colour, skies, type, motion). */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/plus-jakarta-sans.woff') format('woff');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Amiri';
  src: url('/assets/fonts/amiri-regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Amiri';
  src: url('/assets/fonts/amiri-bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Nastaliq Urdu';
  src: url('/assets/fonts/noto-nastaliq-urdu.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --page: #faf7ef;
  --t1: #16213e;
  --t2: #4a5266;
  --t3: #545b6e;
  --past: #646b7e;
  --gold: #b8932f;
  --gold-ink: #715611;
  --gold-duo: rgba(231, 194, 90, 0.55);
  --gold-duo-ink: #7a5e14;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-hi: rgba(255, 255, 255, 0.82);
  --glass-hair: rgba(22, 33, 62, 0.085);
  --glass-shadow: 0 1px 2px rgba(22, 33, 62, 0.06), 0 6px 16px -8px rgba(22, 33, 62, 0.18);
  --pressed: rgba(22, 33, 62, 0.07);
  --hairline: rgba(22, 33, 62, 0.09);
  --tint: rgba(184, 147, 47, 0.14);
  --tint-hair: rgba(184, 147, 47, 0.33);
  --sheet: #fbf9f4;
  --field: rgba(22, 33, 62, 0.055);
  --on-gold: #14110a;
  --gold-btn: linear-gradient(180deg, #d7b95e, #be9934);
  --card-shadow: 0 1px 2px rgba(22, 33, 62, 0.05), 0 18px 40px -24px rgba(22, 33, 62, 0.28);
  --phone-shadow: 0 2px 4px rgba(22, 33, 62, 0.08), 0 40px 70px -30px rgba(22, 33, 62, 0.45), 0 18px 30px -18px rgba(22, 33, 62, 0.25);
  --sun: #f2cf73;
  --sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --arabic: 'Amiri', 'Geeza Pro', 'Noto Naskh Arabic', serif;
  --urdu: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Noto Naskh Arabic', serif;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-enter: cubic-bezier(0.05, 0.7, 0.1, 1);
  --ease-exit: cubic-bezier(0.3, 0, 0.8, 0.15);
  --spring-snappy: cubic-bezier(0.3, 1.25, 0.4, 1);
  --short: 160ms;
  --medium: 240ms;
  --long: 360ms;
  --max: 1160px;
  --gutter: 20px;
  --radius-row: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --night-page: #0f0f1f;
}

/* Night tokens: system dark mode, and inside night skies (Isha, Ramadan). */
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0f0f1f;
    --t1: #f5f3ee;
    --t2: #c9cddb;
    --t3: #a3a9bd;
    --past: #959cb2;
    --gold: #c9a84c;
    --gold-ink: #e3c66e;
    --gold-duo: rgba(201, 168, 76, 0.34);
    --gold-duo-ink: #e3c66e;
    --glass: rgba(255, 255, 255, 0.09);
    --glass-hi: rgba(255, 255, 255, 0.14);
    --glass-hair: rgba(255, 255, 255, 0.11);
    --glass-shadow: none;
    --pressed: rgba(255, 255, 255, 0.09);
    --hairline: rgba(255, 255, 255, 0.08);
    --tint: rgba(227, 198, 110, 0.14);
    --tint-hair: rgba(227, 198, 110, 0.32);
    --sheet: #1a1a2c;
    --field: rgba(255, 255, 255, 0.07);
    --card-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
    --phone-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 40px 70px -30px rgba(0, 0, 0, 0.7);
    --sun: #8d8a7a;
  }
}
.night {
  --t1: #f5f3ee;
  --t2: #c9cddb;
  --t3: #a3a9bd;
  --past: #959cb2;
  --gold: #c9a84c;
  --gold-ink: #e3c66e;
  --gold-duo: rgba(201, 168, 76, 0.34);
  --gold-duo-ink: #e3c66e;
  --glass: rgba(255, 255, 255, 0.09);
  --glass-hi: rgba(255, 255, 255, 0.14);
  --glass-hair: rgba(255, 255, 255, 0.11);
  --glass-shadow: none;
  --pressed: rgba(255, 255, 255, 0.09);
  --hairline: rgba(255, 255, 255, 0.08);
  --tint: rgba(227, 198, 110, 0.14);
  --tint-hair: rgba(227, 198, 110, 0.32);
  --field: rgba(255, 255, 255, 0.07);
  color: var(--t1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--t1);
  font: 500 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg,
picture {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: currentColor;
}
:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}
h1 {
  font-size: clamp(40px, 7vw, 68px);
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  letter-spacing: -0.028em;
}
h3 {
  font-size: 21px;
  letter-spacing: -0.012em;
}
p {
  margin: 0 0 16px;
  text-wrap: pretty;
}
.ar {
  font-family: var(--arabic);
  font-weight: 400;
  letter-spacing: 0;
  direction: rtl;
  unicode-bidi: isolate;
}
.ur {
  font-family: var(--urdu);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 2.1;
  direction: rtl;
  unicode-bidi: isolate;
}
.tnum {
  font-variant-numeric: tabular-nums;
}
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow {
  max-width: 760px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--t1);
  color: var(--page);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* ---------------------------------------------------------------- icons */
.zi {
  width: 24px;
  height: 24px;
  flex: none;
}
.zi .zi-duo {
  fill: var(--gold-duo);
  fill-opacity: 1;
}
.zi.duo {
  color: var(--gold-duo-ink);
}
.tile {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--tint);
  box-shadow: inset 0 0 0 1px var(--tint-hair);
  color: var(--gold-duo-ink);
  flex: none;
}

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--page) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--medium) var(--ease-standard);
}
.site-header.scrolled {
  border-bottom-color: var(--hairline);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  margin-right: auto;
  min-height: 44px;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.brand .ar {
  font-weight: 700;
  font-size: 22px;
  color: var(--t2);
  margin-left: 2px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-hair), var(--glass-shadow);
}
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--t2);
  white-space: nowrap;
}
.nav a:hover {
  color: var(--t1);
  background: var(--pressed);
}
.nav a[aria-current='page'] {
  color: var(--gold-ink);
  background: var(--tint);
  font-weight: 800;
}
.menu {
  display: none;
  position: relative;
}
.menu summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-hair), var(--glass-shadow);
  cursor: pointer;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu .sheet {
  position: absolute;
  right: 0;
  top: 54px;
  width: min(300px, calc(100vw - 32px));
  padding: 8px;
  border-radius: 20px;
  background: var(--sheet);
  box-shadow: 0 0 0 1px var(--hairline), 0 24px 48px -16px rgba(10, 14, 30, 0.35);
}
.menu .sheet a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}
.menu .sheet a:hover,
.menu .sheet a[aria-current='page'] {
  background: var(--tint);
  color: var(--gold-ink);
}
.menu .sheet .zi {
  width: 22px;
  height: 22px;
  color: var(--t3);
}
.header-cta {
  white-space: nowrap;
}
@media (max-width: 1020px) {
  .nav {
    display: none;
  }
  .menu {
    display: block;
  }
}
@media (max-width: 359px) {
  .site-header .header-cta {
    display: none;
  }
}

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  font: 800 16px/1 var(--sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--short) var(--spring-snappy), box-shadow var(--short) var(--ease-standard), background var(--short);
}
.btn:active {
  transform: scale(0.97);
}
.btn-gold {
  background: var(--gold-btn);
  color: var(--on-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 20px -10px rgba(138, 106, 23, 0.6);
}
.btn-glass {
  background: var(--glass);
  color: var(--t1);
  box-shadow: inset 0 0 0 1px var(--glass-hair), var(--glass-shadow);
}
.btn-glass:hover {
  background: var(--glass-hi);
}
.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14.5px;
  border-radius: 999px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold-ink);
  font-weight: 800;
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
}
.text-link .zi {
  width: 18px;
  height: 18px;
}

/* Store buttons: plain text, styled to the site (no badge artwork). */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  min-height: 58px;
  padding: 8px 20px 8px 16px;
  border-radius: 16px;
  background: var(--t1);
  color: var(--page);
  text-decoration: none;
  transition: transform var(--short) var(--spring-snappy);
}
.store:active {
  transform: scale(0.97);
}
.store .zi {
  width: 26px;
  height: 26px;
}
.store span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.store small {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.8;
}
.store strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.night .store {
  background: #f5f3ee;
  color: #16213e;
}

/* ---------------------------------------------------------------- pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 14px 4px 12px;
  border-radius: 999px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-hair), var(--glass-shadow);
  font-size: 14px;
  font-weight: 600;
  color: var(--t2);
}
.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.pill strong {
  color: var(--t1);
  font-weight: 800;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gold-ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* ----------------------------------------------------------------- skies */
.sky {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --sky: linear-gradient(180deg, #cbe1f3 0%, #dceaf4 34%, #eef2f2 54%, var(--page) 74%);
}
.sky::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--sky);
}
.sky[data-sky='fajr'] {
  --sky: linear-gradient(180deg, #e3d3ea 0%, #f0dde3 34%, #f7ebe6 52%, var(--page) 72%);
  --sun-x: -6%;
  --sun-y: 48%;
  --sun: #f3c6b8;
}
.sky[data-sky='zuhr'] {
  --sun-x: 92%;
  --sun-y: 6%;
}
.sky[data-sky='asr'] {
  --sky: linear-gradient(180deg, #f3d9a9 0%, #f6e3c2 34%, #f8eedb 54%, var(--page) 74%);
  --sun-x: 96%;
  --sun-y: 24%;
  --sun: #edb45c;
}
.sky[data-sky='maghrib'] {
  --sky: linear-gradient(180deg, #d9cbe5 0%, #ebcfd3 26%, #f6d9c3 44%, #f9eee2 60%, var(--page) 76%);
  --sun-x: 94%;
  --sun-y: 42%;
  --sun: #f0a070;
}
.sky[data-sky='isha'] {
  --sky: linear-gradient(180deg, #0a1230 0%, #111a3c 34%, #111733 52%, #0f0f1f 74%);
}
.sky[data-sky='ramadan'] {
  --sky: linear-gradient(180deg, #120b36 0%, #1b1245 34%, #15113a 52%, #0f0f1f 74%);
}
.sky[data-sky='isha'],
.sky[data-sky='ramadan'] {
  --page: var(--night-page);
}
.sky[data-sky='isha'],
.sky[data-sky='ramadan'] {
  border-radius: 0 0 32px 32px;
}
.sky[data-sky='isha']::before,
.sky[data-sky='ramadan']::before {
  border-radius: inherit;
}
@media (prefers-color-scheme: dark) {
  .sky {
    --sky: linear-gradient(180deg, #152a47 0%, #16243f 34%, #131b33 54%, var(--page) 74%);
  }
  .sky[data-sky='fajr'] {
    --sky: linear-gradient(180deg, #2a2340 0%, #231d36 34%, #17152a 54%, var(--page) 74%);
  }
  .sky[data-sky='asr'] {
    --sky: linear-gradient(180deg, #33291a 0%, #2a2219 34%, #1b1720 54%, var(--page) 74%);
  }
  .sky[data-sky='maghrib'] {
    --sky: linear-gradient(180deg, #2c2140 0%, #3a2236 26%, #2e1d2a 44%, #1a1424 60%, var(--page) 76%);
  }
  .sky {
    --sun: #8d8a7a;
  }
  .sky[data-sky='isha'],
  .sky[data-sky='ramadan'] {
    border-radius: 0;
  }
}
/* Sun rings: four circles at 16, 22, 34 and 55% opacity. */
.sky .sun {
  position: absolute;
  z-index: -1;
  left: var(--sun-x, 92%);
  top: var(--sun-y, 6%);
  width: 300px;
  height: 300px;
  translate: -50% -50%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--sun) 55%, transparent) 0 40px, color-mix(in srgb, var(--sun) 34%, transparent) 40px 70px, color-mix(in srgb, var(--sun) 22%, transparent) 70px 108px, color-mix(in srgb, var(--sun) 16%, transparent) 108px 150px, transparent 150px);
}
@media (prefers-color-scheme: dark) {
  .sky .sun {
    opacity: 0.7;
  }
}
.sky[data-sky='isha'] .sun,
.sky[data-sky='ramadan'] .sun {
  display: none;
}
.sky .stars {
  position: absolute;
  inset: 0 0 auto;
  height: 420px;
  z-index: -1;
  display: none;
  pointer-events: none;
}
.sky[data-sky='isha'] .stars,
.sky[data-sky='ramadan'] .stars {
  display: block;
}

/* ----------------------------------------------------------------- hero */
.hero {
  padding: 56px 0 24px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 40px;
}
.hero h1 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 18px;
  margin: 18px 0 14px;
  font-size: clamp(56px, 10vw, 104px);
  line-height: 1.02;
}
.hero h1 .ar {
  font-weight: 700;
  font-size: 0.82em;
  color: var(--t2);
}
.hero .lead {
  max-width: 560px;
  font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--t1);
}
.hero .sub {
  max-width: 540px;
  color: var(--t2);
  font-size: 17.5px;
}
.hero .stores {
  margin: 26px 0 16px;
}
.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px 0 30px;
}
.hero-note {
  font-size: 14.5px;
  color: var(--t3);
  font-weight: 600;
}
.hero-note a {
  color: var(--gold-ink);
  font-weight: 800;
  text-decoration: none;
}
@media (max-width: 860px) {
  .hero {
    padding-top: 28px;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.page-hero {
  padding: 56px 0 40px;
}
.page-hero .lead {
  max-width: 680px;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.45;
  font-weight: 600;
  color: var(--t2);
}
.page-hero h1 {
  font-size: clamp(40px, 6.4vw, 64px);
}
.page-hero h1 .ar {
  font-size: 0.7em;
  font-weight: 400;
  color: var(--t2);
  margin-left: 12px;
}
.page-hero.split .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) {
  .page-hero {
    padding: 32px 0 24px;
  }
  .page-hero.split .wrap {
    grid-template-columns: 1fr;
  }
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--t3);
}
.crumbs li + li::before {
  content: '›';
  margin-right: 6px;
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------- phone */
.phone {
  --w: 270px;
  position: relative;
  width: var(--w);
  max-width: 100%;
  flex: none;
  padding: calc(var(--w) * 0.03);
  border-radius: calc(var(--w) * 0.16);
  background: linear-gradient(145deg, #2a2f45, #0c0f1d 45%, #1b1f33);
  box-shadow: var(--phone-shadow), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
}
.phone img {
  width: 100%;
  border-radius: calc(var(--w) * 0.13);
  background: #e9e6dc;
}
.phone::after {
  content: '';
  position: absolute;
  top: calc(var(--w) * 0.058);
  left: 50%;
  width: 29%;
  height: calc(var(--w) * 0.083);
  translate: -50% 0;
  border-radius: 999px;
  background: #05060b;
}
.phone::before {
  content: '';
  position: absolute;
  right: -2px;
  top: 26%;
  width: 3px;
  height: 14%;
  border-radius: 0 3px 3px 0;
  background: #2a2f45;
}
.phone.bare::after {
  display: none;
}
.phone.lg {
  --w: 300px;
}
.phone.sm {
  --w: 220px;
}
.phone.xs {
  --w: 180px;
}
@media (max-width: 420px) {
  .phone.lg {
    --w: 258px;
  }
  .phone {
    --w: 240px;
  }
  .phone.sm {
    --w: 200px;
  }
}
.phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
}
.phones.fan {
  gap: 0;
}
.phones.fan .phone:nth-child(1) {
  rotate: -6deg;
  translate: 24px 18px;
  z-index: 1;
}
.phones.fan .phone:nth-child(2) {
  z-index: 2;
}
.phones.fan .phone:nth-child(3) {
  rotate: 6deg;
  translate: -24px 18px;
  z-index: 1;
}
.scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px var(--gutter) 34px;
  margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: thin;
}
.scroller > * {
  scroll-snap-align: center;
}
figure {
  margin: 0;
}
figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--t2);
}
figcaption small {
  display: block;
  font-weight: 600;
  color: var(--t3);
}
.card-img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--card-shadow);
}

/* ------------------------------------------------------------- sections */
.section {
  padding: 72px 0;
}
.section.tight {
  padding: 40px 0;
}
.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}
.section-head p {
  color: var(--t2);
  font-size: 18.5px;
}
.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  padding: 40px 0;
}
.feature-row + .feature-row {
  border-top: 1px solid var(--hairline);
}
.feature-row.flip .feature-copy {
  order: 2;
}
.feature-copy h2,
.feature-copy h3 {
  font-size: clamp(28px, 3.6vw, 38px);
}
.feature-copy p {
  color: var(--t2);
  font-size: 18px;
}
.feature-copy .tile {
  margin-bottom: 16px;
}
.checks {
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--t1);
  font-weight: 600;
  font-size: 16.5px;
  line-height: 1.5;
}
.checks li::before {
  content: '';
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14 7.4' fill='none' stroke='%23b8932f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
  box-shadow: inset 0 0 0 1px var(--tint-hair);
}
@media (max-width: 860px) {
  .section {
    padding: 52px 0;
  }
  .feature-row {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 0;
  }
  .feature-row.flip .feature-copy {
    order: 0;
  }
}

/* Feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--sheet);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  transition: transform var(--short) var(--spring-snappy), box-shadow var(--medium) var(--ease-standard);
}
a.card:hover {
  transform: translateY(-2px);
}
a.card:active {
  transform: scale(0.985);
}
.card h3 {
  margin: 6px 0 0;
  font-size: 19px;
}
.card p {
  margin: 0;
  color: var(--t2);
  font-size: 15.5px;
  line-height: 1.5;
}
.card .more {
  margin-top: auto;
  padding-top: 6px;
  color: var(--gold-ink);
  font-weight: 800;
  font-size: 14.5px;
}

/* Promise band */
.promise {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-radius: var(--radius-xl);
  background: var(--sheet);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.promise > div {
  padding: 26px 24px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.promise h3 {
  font-size: 18px;
  margin: 12px 0 6px;
}
.promise p {
  margin: 0;
  font-size: 15px;
  color: var(--t2);
}

/* Plus */
.plus-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 40px;
  border-radius: var(--radius-xl);
  background: var(--sheet);
  box-shadow: var(--card-shadow);
}
.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 8px 0 4px;
}
.price strong {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.price span {
  color: var(--t3);
  font-weight: 600;
}
.plus-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 2px;
}
.plus-list li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}
.plus-list li:last-child {
  border-bottom: 0;
}
.plus-list b {
  display: block;
  font-size: 16px;
}
.plus-list small {
  display: block;
  color: var(--t3);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}
.plus-list .tile {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}
.plus-list .tile .zi {
  width: 20px;
  height: 20px;
}
@media (max-width: 860px) {
  .plus-box {
    grid-template-columns: 1fr;
    padding: 26px 20px;
  }
}

/* Notes and callouts */
.note {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--field);
  color: var(--t2);
  font-size: 15.5px;
  line-height: 1.55;
}
.note .zi {
  color: var(--t3);
  margin-top: 1px;
}
.note p {
  margin: 0;
}
.note strong {
  color: var(--t1);
}
.flags {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}
.flag {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.flag i {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  margin-top: 2px;
}
.flag i.contains {
  background: var(--t1);
}
.flag i.check {
  box-shadow: inset 0 0 0 1.5px var(--t2);
}
.flag i.differ {
  background: var(--field);
  border-radius: 999px;
  width: 40px;
  height: 22px;
  margin-top: 4px;
}
.flag b {
  display: block;
}
.flag span {
  color: var(--t2);
  font-size: 15.5px;
}

/* Jantri banner */
.rename {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--tint);
  box-shadow: inset 0 0 0 1px var(--tint-hair);
  font-weight: 600;
  color: var(--t1);
}
.rename p {
  margin: 0;
}
.rename a {
  color: var(--gold-ink);
  font-weight: 800;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ FAQ */
.faq {
  border-top: 1px solid var(--hairline);
}
.faq details {
  border-bottom: 1px solid var(--hairline);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 2px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  background: currentColor;
  color: var(--t3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9.5l6 6 6-6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9.5l6 6 6-6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: rotate var(--medium) var(--ease-standard);
}
.faq details[open] summary::after {
  rotate: 180deg;
}
.faq .answer {
  padding: 0 2px 22px;
  color: var(--t2);
}
.faq .answer p:last-child,
.faq .answer ul:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------- prose */
.prose {
  max-width: 740px;
}
.prose h2 {
  font-size: 26px;
  margin: 40px 0 12px;
}
.prose h3 {
  font-size: 19px;
  margin: 28px 0 8px;
}
.prose p,
.prose li {
  color: var(--t2);
}
.prose strong {
  color: var(--t1);
}
.prose ul {
  padding-left: 22px;
  margin: 0 0 16px;
}
.prose li {
  margin: 6px 0;
}
.prose li::marker {
  color: var(--gold);
}
.prose a {
  color: var(--gold-ink);
  font-weight: 700;
}
.meta-line {
  color: var(--t3);
  font-weight: 600;
  font-size: 15px;
}
.credits {
  display: grid;
  gap: 0;
  margin: 8px 0 24px;
}
.credit {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}
.credit:first-child {
  border-top: 1px solid var(--hairline);
}
.credit h3 {
  font-size: 17px;
  margin: 0;
}
.credit h3 small {
  display: block;
  margin-top: 4px;
  color: var(--gold-ink);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0;
}
.credit p {
  margin: 0 0 6px;
  font-size: 15.5px;
}
@media (max-width: 640px) {
  .credit {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* --------------------------------------------------------------- get app */
.get-app {
  padding: 24px 0 72px;
}
.get-app .box {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 36px 40px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #0a1230, #111a3c 60%, #15113a);
  color: #f5f3ee;
}
.get-app .box > img {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.get-app h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  margin-bottom: 6px;
}
.get-app p {
  margin: 0;
  color: #c9cddb;
}
.get-app svg.stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.get-app .box > * {
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .get-app .box {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    gap: 18px;
  }
  .get-app .box > img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }
}

/* --------------------------------------------------------------- footer */
.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
  color: var(--t2);
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
.site-footer h2 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--t1);
  margin-bottom: 10px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.site-footer ul a {
  display: inline-block;
  padding: 5px 0;
  text-decoration: none;
  font-weight: 600;
}
.site-footer ul a:hover {
  color: var(--t1);
  text-decoration: underline;
}
.site-footer .about p {
  margin: 12px 0 0;
  max-width: 320px;
}
.site-footer .bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  color: var(--t3);
  font-weight: 600;
  font-size: 14px;
}
.site-footer .bottom a {
  color: var(--t1);
  font-weight: 800;
}
@media (max-width: 860px) {
  .site-footer .cols {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer .about {
    grid-column: 1 / -1;
  }
}

/* ---------------------------------------------------------- live tools */
.tool {
  padding: 28px 0 40px;
}
.tool-col {
  max-width: 560px;
  margin: 0 auto;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.loc-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(320px, 70vw);
  min-height: 44px;
  padding: 0 14px 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-hair), var(--glass-shadow);
  color: var(--t1);
  font: 700 16px/1 var(--sans);
  cursor: pointer;
}
.loc-pill .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.loc-pill .zi {
  width: 18px;
  height: 18px;
}
.loc-pill .chev {
  width: 14px;
  height: 14px;
  color: var(--t3);
}
.round-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-hair), var(--glass-shadow);
  color: var(--t1);
  cursor: pointer;
  flex: none;
}
.round-btn .zi {
  width: 20px;
  height: 20px;
}
.round-btn:active,
.loc-pill:active {
  transform: scale(0.95);
}
.round-btn:disabled {
  background: none;
  box-shadow: inset 0 0 0 1px var(--glass-hair);
  color: color-mix(in srgb, var(--t1) 32%, transparent);
  cursor: default;
}
.spacer {
  flex: 1;
}

.prayer-hero {
  min-height: 112px;
}
.prayer-hero .now {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 46px;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.prayer-hero .now .ar {
  font-size: 32px;
  color: var(--t2);
}
.countdown b {
  color: var(--t1);
  font-weight: 800;
}
.curve {
  margin: 18px -4px 4px;
}
.curve svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.curve .horizon {
  stroke: color-mix(in srgb, var(--t1) 12%, transparent);
}
.curve .rest {
  stroke: color-mix(in srgb, var(--t1) 28%, transparent);
  stroke-dasharray: 3 5;
}
.curve .elapsed {
  stroke: var(--gold);
}
.curve .pdot {
  fill: var(--gold);
}
.curve .pdot.future {
  fill: color-mix(in srgb, var(--t1) 30%, transparent);
}
.curve text {
  fill: var(--t3);
  font: 800 9.5px var(--sans);
}
.daynav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 14px;
}
.daynav .date {
  flex: 1;
  text-align: center;
  min-height: 52px;
}
.today-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--tint);
  box-shadow: inset 0 0 0 1px var(--tint-hair);
  color: var(--gold-ink);
  font: 800 12.5px var(--sans);
  cursor: pointer;
}
.today-pill .zi {
  width: 14px;
  height: 14px;
}
.daynav .date b {
  display: block;
  font-size: 16px;
  font-weight: 700;
}
.hijri {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold-ink);
}
.hijri .ar {
  font-weight: 700;
  font-size: 15px;
}
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: var(--radius-row);
}
.row + .row::before {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 1px;
  background: var(--hairline);
}
.row.current::before,
.row.current + .row::before {
  display: none;
}
.row .label {
  flex: 1;
  min-width: 0;
  padding: 6px 0;
}
.row .label b {
  font-size: 17px;
  font-weight: 700;
}
.row .label .ar {
  margin-left: 8px;
  font-size: 18px;
  color: var(--t3);
}
.row .label .ur {
  margin-left: 8px;
  font-size: 14px;
  line-height: 28px;
  color: var(--t3);
}
.row .label small {
  display: block;
  margin-top: -2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--t3);
  line-height: 15px;
}
.row .time {
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.row.past .label b,
.row.past .time {
  color: var(--past);
  font-weight: 600;
}
.row.extra {
  min-height: 40px;
}
.row.extra .label b,
.row.extra .time {
  font-size: 15px;
  font-weight: 600;
  color: var(--t2);
}
.row.extra .label .ar {
  font-size: 16px;
}
.row.current {
  background: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 0 0 1.5px var(--gold), 0 8px 18px -12px rgba(184, 147, 47, 0.55);
}
.row.current small {
  color: var(--gold-ink);
  font-weight: 700;
}
@media (prefers-color-scheme: dark) {
  .row.current {
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 0 0 1.5px var(--gold);
  }
}
.night .row.current {
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1.5px var(--gold);
}
.sehri-iftar {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 6px 0 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--t2);
}
.sehri-iftar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sehri-iftar .zi {
  width: 15px;
  height: 15px;
  color: var(--gold-duo-ink);
}
.show-more {
  display: flex;
  justify-content: center;
  margin: 8px 0 0;
}
.show-more button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-hair), var(--glass-shadow);
  color: var(--t1);
  font: 700 13.5px var(--sans);
  cursor: pointer;
}
.show-more .zi {
  width: 14px;
  height: 14px;
  transition: rotate var(--long) var(--spring-snappy);
}
.show-more button[aria-expanded='true'] .zi {
  rotate: 180deg;
}
.method-line {
  margin: 22px 0 0;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--t3);
}
.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 12px;
  background: var(--field);
  gap: 2px;
}
.segmented button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--t2);
  font: 700 13px var(--sans);
  cursor: pointer;
}
.segmented button[aria-pressed='true'] {
  background: var(--glass-hi);
  color: var(--t1);
  box-shadow: 0 0 0 1px var(--glass-hair), 0 1px 3px rgba(22, 33, 62, 0.12);
}
.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--t2);
}

/* City search sheet */
.search-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 72px 16px 16px;
  background: rgba(10, 14, 30, 0.32);
}
.search-sheet[hidden] {
  display: none;
}
.search-panel {
  width: min(520px, 100%);
  max-height: calc(100dvh - 96px);
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: var(--sheet);
  color: var(--t1);
  box-shadow: 0 0 0 1px var(--hairline), 0 30px 60px -20px rgba(10, 14, 30, 0.5);
  overflow: hidden;
  animation: rise var(--long) var(--ease-enter);
}
.search-panel header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 10px 20px;
}
.search-panel h2 {
  flex: 1;
  margin: 0;
  font-size: 20px;
}
.field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px 10px;
  padding: 0 14px;
  height: 46px;
  border-radius: 14px;
  background: var(--field);
}
.field .zi {
  width: 20px;
  height: 20px;
  color: var(--t3);
}
.field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--t1);
  font: 600 16px var(--sans);
  outline: none;
}
.locate-btn {
  margin: 0 16px 8px;
  justify-content: flex-start;
  border-radius: 14px;
}
.results {
  list-style: none;
  margin: 0;
  padding: 4px 8px 12px;
  overflow-y: auto;
}
.results button,
.results a {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--t1);
  font: 700 16px var(--sans);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.results button:hover,
.results button:focus-visible,
.results [aria-selected='true'] {
  background: var(--tint);
}
.results small {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--t3);
}
.results .ur {
  margin-left: auto;
  font-size: 15px;
  line-height: 1.9;
  color: var(--t3);
}
.status-msg {
  padding: 8px 20px 16px;
  color: var(--t3);
  font-size: 14.5px;
  font-weight: 600;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* Timetable */
.table-wrap {
  overflow-x: auto;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter);
}
table.times {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}
table.times th,
table.times td {
  padding: 8px 8px;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid var(--hairline);
}
table.times thead th {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--t2);
  vertical-align: bottom;
}
table.times thead .ur {
  display: block;
  font-size: 10.5px;
  line-height: 21px;
  color: var(--t3);
}
table.times td:first-child,
table.times th:first-child {
  text-align: left;
  font-weight: 700;
}
table.times td:first-child small {
  color: var(--t3);
  font-weight: 600;
  margin-left: 4px;
}
table.times tr.today td {
  background: var(--tint);
  font-weight: 800;
}
table.times tr.friday td:first-child {
  color: var(--gold-ink);
}

/* Qibla */
.compass {
  position: relative;
  width: min(340px, 86vw);
  aspect-ratio: 1;
  margin: 10px auto 18px;
}
.compass svg {
  width: 100%;
  height: 100%;
}
.compass .dial {
  transition: transform 120ms linear;
  transform-origin: 50% 50%;
}
.compass .ring {
  fill: var(--sheet);
  stroke: var(--hairline);
}
.compass .tick {
  stroke: var(--t3);
}
.compass .tick.major {
  stroke: var(--t1);
}
.compass text {
  fill: var(--t2);
  font: 800 13px var(--sans);
}
.compass .needle {
  fill: var(--gold);
}
.compass .kaaba {
  fill: var(--t1);
}
.qibla-read {
  text-align: center;
}
.qibla-read .deg {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.qibla-read p {
  color: var(--t2);
  margin: 8px 0 0;
}
.big-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.big-stats div {
  padding: 16px;
  border-radius: 16px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-hair);
}
.big-stats b {
  display: block;
  font-size: 22px;
  font-weight: 800;
}
.big-stats small {
  color: var(--t3);
  font-weight: 600;
  font-size: 13px;
}

.hide {
  display: none !important;
}

/* Reveal on scroll (only once JavaScript has started; content is visible without it). */
.js .reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--medium) var(--ease-enter), transform var(--medium) var(--ease-enter);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------- print */
@media print {
  :root {
    --page: #fff;
    --t1: #000;
    --t2: #222;
    --t3: #444;
  }
  body {
    font-size: 12px;
  }
  .site-header,
  .site-footer,
  .get-app,
  .no-print,
  .sky::before,
  .sun,
  .stars {
    display: none !important;
  }
  .sky {
    background: none;
  }
  .page-hero {
    padding: 0 0 12px;
  }
  table.times th,
  table.times td {
    padding: 4px;
    border-bottom: 1px solid #ccc;
  }
  table.times tr.today td {
    background: #eee;
  }
  a {
    text-decoration: none;
  }
}
.mt {
  margin-top: 22px;
}
.phones.wrap-row {
  flex-wrap: wrap;
  gap: 28px;
}
.card-shot {
  max-width: 320px;
  margin: 0 auto;
}
.ayah {
  margin: 0 0 36px;
  padding: 28px 24px;
  border-radius: var(--radius-xl);
  background: var(--sheet);
  box-shadow: var(--card-shadow);
  text-align: center;
}
.ayah .ar {
  margin: 0 0 10px;
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.7;
  color: var(--t1);
}
.ayah figcaption {
  margin: 0;
  font-size: 17px;
  color: var(--t2);
}
.city-title {
  font-size: clamp(30px, 5vw, 42px);
  margin: 0 0 20px;
}
.city-title .ur {
  font-size: 0.6em;
  color: var(--t2);
  margin-left: 8px;
}
.now-title {
  font-size: 30px;
  margin: 4px 0 0;
}
.now-title .ar {
  font-size: 26px;
  color: var(--t2);
  margin-left: 8px;
}
.month-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.month-head h2 {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 32px);
}
.city-links {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 4 180px;
  column-gap: 24px;
}
.city-links li {
  break-inside: avoid;
}
.city-links a {
  display: inline-block;
  padding: 5px 0;
  font-weight: 600;
  color: var(--t2);
  text-decoration: none;
}
.city-links a:hover {
  color: var(--t1);
  text-decoration: underline;
}
.country-block {
  margin: 0 0 22px;
}
.country-block h3 {
  font-size: 17px;
  margin: 0 0 6px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-hair);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.chips a:hover {
  background: var(--tint);
  color: var(--gold-ink);
}
.compass .cardinal {
  fill: var(--t1);
  font-size: 16px;
}
.facing .compass .needle {
  fill: var(--gold-ink);
}
.tool .crumbs {
  margin-bottom: 8px;
}

/* Calendar, Ramadan, Mosques */
.tool-col.wide {
  max-width: 720px;
}
.lead-line {
  color: var(--t2);
  font-weight: 600;
  margin: 8px 0 0;
}
.cal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 12px;
}
.cal-head b {
  display: block;
  font-size: 20px;
  font-weight: 800;
}
.cal-head small {
  display: block;
  color: var(--t3);
  font-weight: 600;
  font-size: 13.5px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.cal-grid .dow {
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--t3);
  padding: 4px 0;
}
.cal-grid .cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 14px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-hair);
}
.cal-grid .cell.empty {
  background: none;
  box-shadow: none;
}
.cal-grid .cell b {
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.cal-grid .cell small {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--t3);
}
.cal-grid .cell.white {
  background: var(--glass-hi);
}
.cal-grid .cell.event {
  box-shadow: inset 0 0 0 1.5px var(--gold);
}
.cal-grid .cell.today {
  background: var(--tint);
  box-shadow: inset 0 0 0 1.5px var(--gold);
}
.cal-grid .cell.today b {
  color: var(--gold-ink);
}
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--t3);
}
.cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cal-legend i {
  width: 14px;
  height: 14px;
  border-radius: 5px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-hair);
}
.cal-legend i.today {
  background: var(--tint);
  box-shadow: inset 0 0 0 1.5px var(--gold);
}
.cal-legend i.event {
  box-shadow: inset 0 0 0 1.5px var(--gold);
}
.cal-legend i.white {
  background: var(--glass-hi);
}
.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--t2);
  cursor: pointer;
}
.switch-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}
.events,
.mosque-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.event-row,
.mosque-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.event-row .tile {
  flex-direction: column;
  width: 48px;
  height: 48px;
  line-height: 1;
}
.event-row .tile b {
  font-size: 17px;
}
.event-row .tile small {
  font-size: 10.5px;
  font-weight: 700;
}
.event-row .label,
.mosque-list .label {
  flex: 1;
  min-width: 0;
}
.event-row .label .ar {
  color: var(--t3);
  margin-left: 6px;
}
.event-row small,
.mosque-list small {
  display: block;
  color: var(--t3);
  font-weight: 600;
  font-size: 13.5px;
}
.event-row .days,
.mosque-list .dist {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.event-row .days b {
  font-size: 20px;
}
.mosque-list .dir {
  display: block;
  font-size: 13px;
  font-weight: 700;
}
.mosque-list .dir a {
  color: var(--gold-ink);
}
.map-box {
  margin: 16px 0 6px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--card-shadow), inset 0 0 0 1px var(--hairline);
  background: var(--field);
}
.map {
  height: min(62vh, 520px);
  min-height: 340px;
}
.map-credit {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--t3);
  margin: 0;
}
.map-pop b {
  display: block;
  font: 800 15px var(--sans);
  color: #16213e;
}
.map-pop small {
  display: block;
  font: 600 12.5px var(--sans);
  color: #545b6e;
}
.map-pop span {
  display: block;
  margin-top: 6px;
  font: 700 13px var(--sans);
}
.map-pop a {
  color: #715611;
}
.ramadan-table td small {
  display: block;
  color: var(--gold-ink);
  font-weight: 700;
}
@media (max-width: 520px) {
  .cal-grid .cell {
    min-height: 48px;
    border-radius: 11px;
  }
  .month-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
.prose,
.answer,
.credit {
  overflow-wrap: anywhere;
}
@media (max-width: 860px) {
  .feature-row,
  .hero .wrap,
  .page-hero.split .wrap,
  .plus-box {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .phones.fan .phone.sm {
    --w: 43vw;
  }
  .phones.fan .phone:nth-child(1) {
    translate: 10px 12px;
  }
  .phones.fan .phone:nth-child(3) {
    translate: -10px 12px;
  }
}
/* Local Figma capture build only: masks don't survive the capture. */
.capture .faq summary::after {
  display: none;
}
.directory {
  columns: 4 210px;
  column-gap: 32px;
}
.directory .country-block {
  break-inside: avoid;
}
.directory .city-links {
  columns: auto;
}
.directory .city-links a {
  padding: 2px 0;
  font-size: 15px;
}
@media (max-width: 560px) {
  .directory {
    columns: 2;
    column-gap: 18px;
  }
}
@media (max-width: 560px) {
  .city-links {
    columns: 2;
    column-gap: 18px;
  }
}
