/* ------------------------------------------------------------
   Wuquf : styles
   Palette: Ottoman dome green, marble ivory, lamp gold,
   and the blue of the hour before Fajr.
   ------------------------------------------------------------ */

@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Amiri"; src: url("/fonts/amiri-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Amiri"; src: url("/fonts/amiri-arabic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --green: #0F3B2E;
  --green-deep: #0A2A21;
  --green-line: #1E5243;
  --gold: #C9A95A;
  --gold-light: #E6D29A;
  --gold-deep: #9C7D2E;
  --ivory: #F7F4EC;
  --sand: #EFE6D3;
  --sand-line: #DCCFB3;
  --ink: #1B2420;
  --stone: #6A6E63;
  --night: #0E1F2B;
  --mist: rgba(248, 243, 232, 0.78);

  --display: "Cormorant", "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --text: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --arabic: "Amiri", "Noto Naskh Arabic", "Scheherazade New", serif;

  --wrap: 1120px;
  --gutter: clamp(18px, 4vw, 44px);
  --pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23C9A95A' stroke-width='1'%3E%3Crect x='30' y='30' width='36' height='36'/%3E%3Crect x='30' y='30' width='36' height='36' transform='rotate(45 48 48)'/%3E%3Crect x='-9' y='-9' width='18' height='18' transform='rotate(45 0 0)'/%3E%3Crect x='87' y='-9' width='18' height='18' transform='rotate(45 96 0)'/%3E%3Crect x='-9' y='87' width='18' height='18' transform='rotate(45 0 96)'/%3E%3Crect x='87' y='87' width='18' height='18' transform='rotate(45 96 96)'/%3E%3Cpath d='M48 0v30M48 66v30M0 48h30M66 48h30'/%3E%3C/g%3E%3C/svg%3E");
  --ornament: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='18' viewBox='0 0 160 18'%3E%3Cg fill='none' stroke='%23C9A95A' stroke-width='1'%3E%3Cpath d='M0 9h62M98 9h62'/%3E%3Crect x='73' y='2' width='14' height='14' transform='rotate(45 80 9)'/%3E%3Crect x='76' y='5' width='8' height='8' transform='rotate(45 80 9)' fill='%23C9A95A'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; line-height: 1.1; }
h1 { font-size: clamp(2.6rem, 1.8rem + 3.8vw, 5rem); line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3.2rem); text-wrap: balance; }
h3 { font-size: 1.7rem; }
p { margin: 0; }
p + p { margin-top: 0.9em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--green-deep); padding: 8px 14px; border-radius: var(--pill); z-index: 100; }
.skip:focus { left: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 42rem; }
.narrow h2 + p { margin-top: 1rem; }
.centered { text-align: center; }
.centered-block { margin-inline: auto; text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font: 500 1rem/1 var(--text);
  letter-spacing: 0.02em;
  padding: 1em 1.7em;
  border-radius: var(--pill);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--green-deep); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-line { background: transparent; color: var(--ivory); border-color: rgba(248,243,232,.45); }
.btn-line:hover { border-color: var(--ivory); }
.btn-green { background: var(--green); color: var(--ivory); border-color: var(--green); }
.btn-green:hover { background: var(--green-line); border-color: var(--green-line); }
.btn-sm { padding: 0.7em 1.2em; font-size: 0.9375rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--green);
  background-image: var(--star);
  background-size: 96px 96px;
  color: var(--ivory);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,59,46,.78) 0%, rgba(15,59,46,.86) 60%, var(--green-deep) 100%); pointer-events: none; }
.hero-stage { position: relative; display: grid; align-items: center; }
.hero-arch {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(92vw, 860px); height: min(100%, 980px);
  color: var(--gold); opacity: .55; pointer-events: none;
}
.top { position: relative; z-index: 2; padding: 22px 0; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand-ar { font-family: var(--arabic); font-weight: 700; font-size: 1.75rem; line-height: 1; color: var(--gold); }
.brand-ar.big { font-size: 2.6rem; }
.brand-en { font-family: var(--display); font-weight: 600; font-size: 1.5rem; letter-spacing: 0.04em; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 30px); }
.nav a { text-decoration: none; color: var(--mist); font-size: 0.9375rem; letter-spacing: 0.03em; }
.nav a:hover { color: var(--ivory); }
.nav .btn { color: var(--green-deep); }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

.hero-body {
  position: relative; z-index: 2;
  align-self: center;
  text-align: center;
  max-width: 46rem;
  padding: clamp(40px, 8vh, 96px) 0 clamp(72px, 12vh, 140px);
}
.hero-ar { font-family: var(--arabic); font-weight: 700; font-size: clamp(4.5rem, 3rem + 7vw, 8.5rem); line-height: 1; color: var(--gold); text-shadow: 0 2px 28px rgba(0,0,0,.55); margin-bottom: 0.1em; }
.hero h1 { text-shadow: 0 2px 24px rgba(0,0,0,.55); }
.hero .lede, .hero .fine { text-shadow: 0 1px 14px rgba(0,0,0,.5); color: rgba(248,243,232,.9); }
.lede { font-size: 1.1875rem; line-height: 1.6; color: var(--mist); margin: 1.5rem auto 0; max-width: 36rem; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 2.2rem; }
.fine { font-size: 0.9375rem; color: var(--mist); margin: 1.3rem auto 0; max-width: 32rem; }

/* ---------- bands ---------- */
.band { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.band-ivory { background: var(--ivory); color: var(--ink); }
.band-sand { background: var(--sand); color: var(--ink); }
.band-green { background: var(--green); color: var(--ivory); }
.pattern-ivory { background-image: var(--star); background-size: 96px 96px; }
.pattern-ivory::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ivory) 0%, rgba(248,243,232,.82) 50%, var(--ivory) 100%); pointer-events: none; }
.pattern-ivory > .wrap { position: relative; }
.pattern-green { background-image: var(--star); background-size: 96px 96px; }
.pattern-green::before { content: ""; position: absolute; inset: 0; background: rgba(15,59,46,.86); pointer-events: none; }
.pattern-green > .wrap { position: relative; }
.band-green h2 + p { margin-top: 1rem; color: var(--mist); }
.centered h2, h2.centered { text-align: center; }
.fine-dark { font-size: 0.9375rem; color: var(--mist); }
.fine-light { font-size: 0.9375rem; color: var(--stone); margin-top: 2.4rem; }

.ornament { position: relative; z-index: 1; height: 18px; margin: 0 auto; width: min(100% - 2 * var(--gutter), 480px); background: var(--ornament) center / 160px 18px repeat-x; }
.band + .ornament { margin-top: calc(-1 * clamp(32px, 4.5vw, 60px)); margin-bottom: clamp(14px, 2vw, 32px); }
.ornament + .band { padding-top: clamp(40px, 6vw, 80px); }

/* ---------- the mihrab demo ---------- */
.mihrab-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.mihrab-copy h2 + p { margin-top: 1.2rem; max-width: 32rem; }
.keep-go { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--sand-line); }
.keep-go h3 { font-size: 1.45rem; }
.keep-go p { margin-top: 0.4rem; font-size: 0.9375rem; color: var(--stone); line-height: 1.6; }
@media (max-width: 880px) { .mihrab-grid { grid-template-columns: 1fr; } .keep-go { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 480px) { .keep-go { grid-template-columns: 1fr; } }

.demo { position: relative; display: grid; justify-items: center; padding-bottom: 72px; margin-bottom: 44px; }
.mihrab-frame {
  width: min(100%, 384px);
  padding: 3px;
  background: var(--gold);
  clip-path: url(#mihrab);
  filter: drop-shadow(0 30px 40px rgba(20,30,20,.28));
}
.mihrab-inner {
  background: var(--green);
  background-image: var(--star);
  background-size: 64px 64px;
  clip-path: url(#mihrab);
  padding: 104px 40px 56px;
  display: grid; justify-items: center;
}
@media (max-width: 480px) { .mihrab-inner { padding: 86px 22px 44px; } }

.phone {
  position: relative;
  width: 272px; height: 556px;
  border-radius: 46px;
  background: #0A1812;
  border: 9px solid #15271F;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.75), 0 0 0 1px rgba(0,0,0,.5);
  overflow: hidden;
}
.island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #06110D; z-index: 3; }
.screen { position: absolute; inset: 0; padding: 50px 14px 18px; transition: opacity .55s var(--ease); }
.screen-busy { background: #F1ECE0; color: var(--ink); opacity: 1; }
.screen-calm { background: var(--green-deep); color: var(--ivory); opacity: 0; }
.demo[data-state="calm"] .screen-busy { opacity: 0; }
.demo[data-state="calm"] .screen-calm { opacity: 1; }

.statusbar { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; }
.clock { font-family: var(--display); font-weight: 600; font-size: 1.25rem; }
.status-note { font-size: 0.75rem; opacity: .8; }
.screen-busy .status-note { color: #B33A3A; opacity: 1; font-weight: 500; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; margin-top: 20px; }
.tile { position: relative; display: grid; justify-items: center; gap: 5px; font-size: 0.62rem; line-height: 1; transition: transform .45s var(--ease), opacity .45s var(--ease); }
.tile svg { width: 50px; height: 50px; padding: 12px; border-radius: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile-block svg { background: var(--c, #ddd); color: var(--ink); }
.tile-keep svg { background: var(--green); color: var(--gold); }
.screen-calm .tile-keep svg { background: #17473A; color: var(--gold); }
.tile span { white-space: nowrap; }
.tile i {
  position: absolute; top: -5px; right: 2px;
  font-style: normal; font-size: 0.6rem; font-weight: 500; line-height: 1;
  background: #D23B3B; color: #fff; padding: 3px 5px; border-radius: var(--pill); min-width: 18px; text-align: center;
}
.demo[data-state="calm"] .screen-busy .tile-block { transform: scale(.6); opacity: 0; }

.calm-title { font-family: var(--display); font-weight: 600; font-size: 2.4rem; margin-top: 112px; text-align: center; color: var(--gold); line-height: 1; }
.calm-sub { text-align: center; font-size: 0.85rem; color: var(--mist); margin-top: 6px; }
.tools { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 10px; margin-top: 36px; padding: 0 10px; }
.screen-calm .tile { color: var(--mist); }

.disc {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(72px);
  width: 124px; height: 124px; padding: 0; border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #EBD79B 0%, var(--gold) 45%, #8F7029 100%);
  box-shadow: 0 18px 30px -12px rgba(0,0,0,.6), inset 0 0 0 10px rgba(0,0,0,.07), inset 0 1px 0 rgba(255,255,255,.4);
  cursor: pointer;
  display: grid; place-items: center;
  transition: transform .14s var(--ease);
  isolation: isolate;
}
.disc:hover { transform: translateX(72px) scale(1.03); }
.disc:active, .disc.is-pressed { transform: translateX(72px) scale(.95); }
.disc-face { font-family: var(--arabic); font-weight: 700; font-size: 2rem; line-height: 1; color: #2D2410; text-shadow: 0 1px 0 rgba(255,255,255,.35); pointer-events: none; }
.disc::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; pointer-events: none; z-index: -1; }
.disc.is-ringing::after { animation: ring .7s var(--ease) forwards; }
@keyframes ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }
.disc-hint { position: absolute; left: 50%; bottom: -38px; transform: translateX(72px); width: 124px; text-align: center; font-size: 0.8125rem; line-height: 1.35; color: var(--stone); }
@media (max-width: 420px) {
  .phone { width: 244px; height: 500px; }
  .tile svg { width: 44px; height: 44px; padding: 10px; }
  .calm-title { margin-top: 96px; }
  .disc, .disc-hint { transform: translateX(40px); }
  .disc:hover { transform: translateX(40px) scale(1.03); }
  .disc:active, .disc.is-pressed { transform: translateX(40px) scale(.95); }
}

/* ---------- day timeline ---------- */
.day-fig { margin: clamp(36px, 5vw, 60px) 0 0; }
.day-track { position: relative; height: 96px; }
.day-track::before { content: ""; position: absolute; left: 0; right: 0; top: 56px; height: 1px; background: var(--ink); }
.tick { position: absolute; left: var(--at); top: 48px; width: 1px; height: 18px; background: var(--ink); }
.tick b { position: absolute; top: 24px; left: 0; transform: translateX(-50%); font-weight: 400; font-size: 0.8125rem; color: var(--stone); white-space: nowrap; letter-spacing: 0.02em; }
.tick:first-of-type b { transform: none; }
.tick[style*="100%"] b { transform: translateX(-100%); }
.pause { position: absolute; left: var(--at); top: 38px; width: 1.4%; min-width: 10px; height: 38px; transform: translateX(-50%); background: var(--gold); border-radius: 2px; }
.pause b { position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%); font-family: var(--display); font-weight: 600; font-size: 1.25rem; white-space: nowrap; }
.day-list { display: none; list-style: none; margin: 18px 0 0; padding: 0; }
.day-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--sand-line); font-family: var(--display); font-weight: 600; font-size: 1.25rem; }
.day-list time { font-family: var(--text); font-weight: 400; font-size: 1rem; color: var(--stone); font-variant-numeric: tabular-nums; }
.day-fig figcaption { margin-top: 18px; font-size: 0.9375rem; color: var(--stone); }
@media (max-width: 640px) { .pause b { display: none; } .day-list { display: block; } }

/* ---------- athan / iqamah ---------- */
.choice { margin-top: clamp(48px, 7vw, 88px); }
.choice h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); max-width: 30rem; }
.cmp { width: 100%; border-collapse: collapse; margin-top: 1.6rem; border-top: 2px solid var(--gold); }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--sand-line); }
.cmp thead th { font-family: var(--display); font-weight: 600; font-size: 1.5rem; padding-top: 18px; }
.cmp tbody th { font-family: var(--text); font-weight: 500; font-size: 0.9375rem; color: var(--ink); width: 22%; padding-right: 24px; }
.cmp td { color: var(--stone); width: 39%; max-width: 26rem; }
.cmp td + td { padding-left: 18px; }
.choice .fine-light { margin-top: 1.2rem; }
@media (max-width: 700px) {
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto; max-width: none; }
  .cmp tr { padding: 14px 0; border-bottom: 1px solid var(--sand-line); }
  .cmp th, .cmp td { border: 0; padding: 0; }
  .cmp tbody th { width: auto; max-width: none; font-family: var(--display); font-weight: 600; font-size: 1.3rem; margin-bottom: 8px; }
  .cmp td { padding: 4px 0 4px 0; }
  .cmp td + td { padding-left: 0; }
  .cmp td::before { content: attr(data-label) ": "; font-weight: 500; color: var(--ink); }
}

/* ---------- modes with arches ---------- */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(40px, 5vw, 64px); }
.mode { text-align: center; }
.arch { padding: 3px; background: var(--gold); clip-path: url(#arch); margin: 0 auto 1.4rem; width: min(100%, 300px); aspect-ratio: 4 / 5; }
.duo { position: relative; width: 100%; height: 100%; background: var(--green); clip-path: url(#arch); isolation: isolate; }
.duo img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: .85; filter: contrast(1.08); }
.duo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(201,169,90,.18), rgba(10,42,33,.35)); mix-blend-mode: multiply; pointer-events: none; }
.mode p { margin-top: 0.6rem; color: var(--stone); max-width: 22rem; margin-inline: auto; }
@media (max-width: 760px) { .modes { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- ledger (analytics) ---------- */
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.account-copy h2 + p { margin-top: 1rem; max-width: 32rem; color: var(--mist); }
.account-copy .section-ar { font-size: 2.6rem; margin-bottom: 0.2em; }
.plain-list { list-style: none; margin: 1.6rem 0 0; padding: 0; max-width: 30rem; }
.plain-list li { padding: 10px 0 10px 26px; position: relative; border-top: 1px solid var(--green-line); color: var(--ivory); }
.plain-list li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
.ledger {
  justify-self: center; width: min(100%, 420px);
  background: var(--ivory); color: var(--ink);
  border: 3px solid var(--gold); outline: 1px solid var(--gold); outline-offset: 6px;
  padding: 22px 24px 20px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
}
.ledger-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--sand-line); padding-bottom: 12px; }
.ledger-title { font-family: var(--display); font-weight: 600; font-size: 1.5rem; }
.ledger-score { font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: var(--green); }
.ledger-grid { display: grid; grid-template-columns: 4.6rem repeat(7, 1fr); gap: 10px 4px; align-items: center; margin-top: 16px; }
.lg-day { text-align: center; font-size: 0.75rem; color: var(--stone); letter-spacing: 0.04em; }
.lg-row { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.ledger-grid i { display: block; width: 16px; height: 16px; border-radius: 50%; margin: 0 auto; }
.ledger-grid i.on { background: var(--gold); box-shadow: inset 0 0 0 2px rgba(0,0,0,.06); }
.ledger-grid i.off { border: 1.5px solid var(--gold-deep); background: transparent; }
.ledger-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--sand-line); font-size: 0.875rem; color: var(--stone); }
.ledger-foot b { font-weight: 500; color: var(--ink); }
@media (max-width: 880px) { .account-grid { grid-template-columns: 1fr; } }

/* ---------- women's mode + make-up list ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); }
.two-col h2 + p { margin-top: 1rem; }
.two-col .fine-light { margin-top: 1rem; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; gap: 44px; } }

/* ---------- steps ---------- */
.steps { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.steps li { counter-increment: step; text-align: center; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 3.4rem; line-height: 1; color: var(--gold-deep); margin-bottom: 12px; }
.steps h3 { font-size: 1.55rem; }
.steps p { margin: 0.6rem auto 0; color: var(--stone); max-width: 22rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- masjid band ---------- */
.band-photo { background: var(--green-deep); color: var(--ivory); overflow: hidden; }
.band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.band-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,42,33,.94) 0%, rgba(10,42,33,.86) 55%, rgba(10,42,33,.6) 100%); }
.masjid-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.masjid-grid h2 + p { margin-top: 1rem; max-width: 34rem; color: var(--mist); }
.masjid-grid .fine-dark { margin-top: 1.2rem; }
.masjid-grid .btn { margin-top: 1.8rem; }
.door-sign {
  justify-self: center;
  width: min(100%, 300px); aspect-ratio: 3 / 4;
  background: var(--ivory); color: var(--ink);
  display: grid; align-content: center; justify-items: center; gap: 10px;
  padding: 28px; text-align: center;
  border: 3px solid var(--gold);
  outline: 1px solid var(--gold); outline-offset: 6px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
}
.door-ar { font-family: var(--arabic); font-weight: 700; font-size: 4.2rem; line-height: 1; color: var(--green); margin-bottom: 8px; }
.door-line { font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; }
.door-line.small { font-size: 1.1rem; font-weight: 500; font-style: italic; color: var(--stone); }
@media (max-width: 760px) { .masjid-grid { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(36px, 5vw, 56px); }
.price { text-align: center; padding: 8px clamp(16px, 3vw, 40px); }
.price + .price { border-left: 1px solid var(--sand-line); }
.price p { color: var(--stone); max-width: 20rem; margin-inline: auto; }
.amount { font-family: var(--display); font-weight: 600; font-size: 3.2rem; line-height: 1; color: var(--green) !important; margin: 12px 0 14px; }
.amount s { color: var(--stone); font-size: 1.6rem; margin-right: 6px; text-decoration-thickness: 2px; }
.price .btn { margin-top: 1.4rem; }
@media (max-width: 760px) {
  .prices { grid-template-columns: 1fr; gap: 36px; }
  .price + .price { border-left: 0; border-top: 1px solid var(--sand-line); padding-top: 36px; }
}

/* ---------- faq ---------- */
#faq details { border-bottom: 1px solid var(--sand-line); padding: 16px 0; }
#faq details:first-of-type { margin-top: 1.4rem; border-top: 1px solid var(--sand-line); }
#faq summary { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 1.45rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after { content: "+"; font-family: var(--text); font-weight: 400; color: var(--gold-deep); font-size: 1.4rem; line-height: 1; flex: none; }
#faq details[open] summary::after { content: "−"; }
#faq details p { margin-top: 10px; color: var(--stone); max-width: 38rem; }

/* ---------- waitlist ---------- */
.section-ar { font-family: var(--arabic); font-weight: 700; font-size: 3.4rem; line-height: 1; color: var(--gold); margin-bottom: 0.3em; }
.wl { display: flex; gap: 10px; margin: 1.8rem auto 0; max-width: 30rem; }
.wl input {
  flex: 1; min-width: 0;
  font: 1rem var(--text); color: var(--ivory);
  background: var(--green-deep); border: 1.5px solid var(--green-line); border-radius: var(--pill);
  padding: 0.95em 1.3em;
}
.wl input::placeholder { color: rgba(248,243,232,.4); }
.wl input:focus { border-color: var(--gold); outline: none; }
.wl input[aria-invalid="true"] { border-color: #D27B7B; }
.wl .btn { flex: none; margin-top: 0; }
.wl-note { margin-top: 12px; font-size: 0.9375rem; color: var(--mist); min-height: 1.5em; }
@media (max-width: 480px) { .wl { flex-direction: column; } }

/* ---------- footer ---------- */
.foot { background: var(--green-deep); color: var(--mist); padding: 52px 0 60px; border-top: 1px solid var(--green-line); }
.foot-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-end; }
.foot-line { font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--ivory); margin-top: 8px; }
.foot-meta { font-size: 0.9375rem; text-align: right; max-width: 30rem; }
.foot-meta p + p { margin-top: 2px; }
.foot-meta a { text-decoration: none; color: var(--gold); }
.credits { margin-top: 14px !important; font-size: 0.8125rem; color: rgba(248,243,232,.5); }
@media (max-width: 560px) { .foot-meta { text-align: left; } }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .screen, .tile, .disc, .btn { transition: none; }
  .disc.is-ringing::after { animation: none; }
}

/* ---------- masjids page ---------- */
.hero-short { min-height: min(100svh, 820px); }
.dark-list li { color: var(--ink); border-top-color: var(--sand-line); }
.dark-list b { font-weight: 500; }
.ar-inline { font-family: var(--arabic); font-weight: 700; color: var(--green); }
.two-col h2 + p + .plain-list { margin-top: 1.2rem; }
.steps-four { grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.steps-four h3 { font-size: 1.4rem; }
.steps-four p { max-width: 20rem; }
@media (max-width: 960px) { .steps-four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps-four { grid-template-columns: 1fr; } }
.qgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); margin-top: clamp(36px, 5vw, 56px); }
.qgrid h3 { font-size: 1.45rem; }
.qgrid p { margin-top: 0.5rem; color: var(--stone); }
@media (max-width: 860px) { .qgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .qgrid { grid-template-columns: 1fr; } }
.give-line { margin-top: 14px; color: var(--stone); font-size: 0.9375rem; }
.give-ask { font-family: var(--display); font-weight: 600; font-size: 1.6rem; margin-top: 18px; }
.give-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.give-row span { text-align: center; padding: 10px 0; border: 1.5px solid var(--sand-line); border-radius: var(--pill); font-weight: 500; }
.give-row .give-pick { background: var(--green); color: var(--ivory); border-color: var(--green); }
.give-pay { margin-top: 12px; text-align: center; padding: 13px 0; border-radius: var(--pill); background: var(--ink); color: var(--ivory); font-weight: 500; }
.give-skip { margin-top: 12px; text-align: center; font-size: 0.875rem; color: var(--stone); }
.prices-two { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; }
@media (max-width: 760px) { .prices-two { grid-template-columns: 1fr; } }
.mode-link { margin-top: 0.8rem !important; }
.mode-link a { color: var(--green); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
.mode-link a:hover { border-bottom-color: var(--green); }
.foot-meta a[href="/"] { color: var(--ivory); }
.band-green .cmp td, .band-green .cmp tbody th { color: var(--mist); }
.band-sand .cmp { border-top-color: var(--gold); }
