/* =========================================================================
   Sabbaha product page
   Colours mirror the app's Theme.swift: gold, emerald, ink, night, mist.
   Motion lives in sabbaha.js (GSAP + ScrollTrigger + Lenis); without JS or
   with reduced motion every section still reads as a normal page.
   ========================================================================= */

:root {
  --gold: #deba73;
  --gold-light: #fae6ad;
  --gold-deep: #a8803d;
  --emerald: #0f4d40;
  --ink: #082621;
  --night: #03120f;
  --mist: #cce0d9;
  --font-arabic: "Amiri", "Geeza Pro", "Times New Roman", serif;
  --font-quran: "Amiri Quran", "Amiri", "Geeza Pro", serif;
  --font-story: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", serif;
  --app-bg: linear-gradient(180deg, var(--emerald), var(--ink) 55%, var(--night));
}

.ar {
  font-family: var(--font-arabic);
  direction: rtl;
}

.gold-text {
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* =========================================================================
   Story page
   ========================================================================= */

.story {
  background: var(--night);
  overflow-x: clip;
}

html:has(body.story) { overflow-x: clip; }

.story main { position: relative; z-index: 1; }

.story .site-header {
  background: rgba(3, 18, 15, 0.55);
  border-bottom-color: rgba(222, 186, 115, 0.1);
}

.sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.story-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.story-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.story-h2 {
  font-family: var(--font-story);
  font-weight: 500;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-top: 18px;
  color: #f6efdc;
}

.story-lede {
  margin-top: 20px;
  max-width: 52ch;
  font-size: 17px;
  color: var(--text-dim);
}

/* --- Hero -------------------------------------------------------------- */

.hero {
  position: relative;
  overflow-x: clip; /* the bead orbit is wider than a phone screen */
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 110px 0 60px;
}

.hero-grid {
  display: grid;
  gap: 56px;
  align-items: center;
  width: 100%;
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; }
}

.verse {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.verse .ar {
  font-family: var(--font-quran);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.9;
  color: var(--gold);
  align-self: flex-start;
}

.verse-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
}

.verse-meta em {
  font-family: var(--font-story);
  font-size: 18px;
  color: var(--mist);
}

.verse-meta span {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.hero h1 {
  margin-top: 26px;
  font-family: var(--font-story);
  font-weight: 500;
  font-size: clamp(50px, 6.2vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: #f6efdc;
}

.hero h1 .gold-text { font-style: italic; padding-right: 0.06em; }

.hero .lede {
  margin-top: 26px;
  max-width: 44ch;
  font-size: 18px;
  color: var(--text-dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
  align-items: center;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  box-shadow: 0 0 0 1px rgba(250, 230, 173, 0.4), 0 10px 40px rgba(222, 186, 115, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(250, 230, 173, 0.6), 0 14px 50px rgba(222, 186, 115, 0.4); }

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 15px;
  color: var(--mist);
  border: 1px solid rgba(222, 186, 115, 0.35);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.btn-line:hover { border-color: var(--gold); background: rgba(222, 186, 115, 0.08); }

.soon {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-faint);
}

.try-it {
  margin-top: 44px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-story);
  font-size: 22px;
  color: var(--mist);
}

.try-it .seal {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(222, 186, 115, 0.4);
  box-shadow: 0 0 30px rgba(222, 186, 115, 0.25);
}

.try-it .seal svg { animation: spin 18s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Phone on its stage */

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1600px;
  zoom: var(--phone-zoom, 1);
}

.halo {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(15, 77, 64, 0.95), rgba(15, 77, 64, 0.25) 60%, transparent);
  pointer-events: none;
}

.orbit {
  position: absolute;
  width: 600px;
  height: 600px;
  pointer-events: none;
  animation: spin 90s linear infinite;
  opacity: 0.55;
}

.phone {
  position: relative;
  width: 300px;
  height: 630px;
  border-radius: 50px;
  padding: 11px;
  background: linear-gradient(145deg, #2b302e, #121514 40%, #1d2120);
  box-shadow:
    0 0 0 1px rgba(250, 230, 173, 0.18),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.06),
    0 60px 120px rgba(0, 0, 0, 0.6),
    0 0 90px rgba(222, 186, 115, 0.12);
  transform-style: preserve-3d;
  flex-shrink: 0;
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
  background: var(--app-bg);
  color: var(--mist);
  display: flex;
  flex-direction: column;
  padding: 50px 18px 0;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.phone-screen::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  width: 92px;
  height: 27px;
  margin-left: -46px;
  border-radius: 20px;
  background: #000;
  z-index: 3;
}

/* Glass glare that moves with the tilt */
.phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.07) 45%, transparent 60%);
  background-size: 250% 100%;
  background-position: var(--glare, 50%) 0;
  pointer-events: none;
  z-index: 2;
}

/* The app's splash, then the counter (pure CSS so it works without JS). */
.splash {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background: radial-gradient(60% 40% at 50% 45%, rgba(15, 77, 64, 0.9), transparent), var(--ink);
  animation: splash-out 0.6s ease 2.5s forwards;
}

.splash .mark { width: 150px; height: 150px; }

.splash span {
  font-family: var(--font-story);
  font-size: 26px;
  color: var(--gold-light);
  opacity: 0;
  animation: fade-in 0.6s ease 1.7s forwards;
}

@keyframes splash-out { to { opacity: 0; visibility: hidden; } }
@keyframes fade-in { to { opacity: 1; } }

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.app-header strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
}

.app-header .right strong { color: var(--gold-light); text-align: right; font-variant-numeric: tabular-nums; }
.app-header small { font-size: 11.5px; color: rgba(204, 224, 217, 0.6); }

/* The dhikr as beads on a gold thread, with the after-prayer star at the head of the string. */
.rail {
  position: relative;
  margin: 14px -18px 0;
  padding-bottom: 16px;
  cursor: default;
}

.rail-window {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, transparent 25%, #000 38%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, transparent 25%, #000 38%, #000 88%, transparent);
}

.rail-beads {
  --w: 62px;
  position: relative;
  display: flex;
  width: max-content;
  margin-left: calc(50% - var(--w) / 2);
  transform: translateX(calc(var(--i, 0) * var(--w) * -1));
  transition: transform 0.4s var(--ease);
}

/* The thread runs through the bead centres, first to last. */
.rail-beads::before {
  content: "";
  position: absolute;
  top: 21px;
  left: calc(var(--w) / 2);
  right: calc(var(--w) / 2);
  height: 1px;
  background: linear-gradient(90deg, rgba(168, 128, 61, 0.5), rgba(222, 186, 115, 0.6), rgba(168, 128, 61, 0.5));
}

.bead {
  position: relative;
  width: var(--w);
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 4px 0 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  transform: scale(0.88);
  opacity: 0.75;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.bead[aria-pressed="true"] { transform: none; opacity: 1; }

.bead-ball {
  position: relative;
  width: 34px;
  height: 34px;
}

.bead-ball svg { position: absolute; inset: 0; transform: rotate(-90deg); overflow: visible; }
.bead-ball .track { stroke: rgba(222, 186, 115, 0.14); }
.bead-ball .fill { stroke: var(--gold-light); stroke-linecap: round; transition: stroke-dasharray 0.25s var(--ease); }

.bead-ball::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--emerald), var(--ink) 75%);
  border: 1px solid rgba(222, 186, 115, 0.3);
  transition: box-shadow 0.3s;
}

.bead[aria-pressed="true"] .bead-ball::after {
  background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold) 50%, var(--gold-deep));
  border-color: rgba(222, 186, 115, 0.6);
  box-shadow: 0 0 12px rgba(250, 230, 173, 0.45);
}

.bead-name {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
  font: 500 9.5px var(--font-body);
  color: rgba(204, 224, 217, 0.8);
}

.bead[aria-pressed="true"] .bead-name { font-weight: 600; color: var(--gold-light); }

.rail-star {
  position: absolute;
  top: 0;
  left: 8px;
  z-index: 1;
  width: 60px;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 6px 0 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.rail-star svg { width: 30px; height: 30px; filter: drop-shadow(0 0 6px rgba(222, 186, 115, 0.4)); }
.rail-star span { font: 600 9px var(--font-body); color: var(--gold); white-space: nowrap; }

.rail-dots {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.rail-dots i {
  width: 4px;
  height: 4px;
  border-radius: 4px;
  background: rgba(204, 224, 217, 0.25);
  cursor: pointer;
  transition: width 0.25s var(--ease), background 0.25s;
}

.rail-dots i.is-on { width: 11px; background: var(--gold); }

.phrase {
  margin-top: 8px;
  text-align: center;
  font-size: 30px;
  line-height: 1.5;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.meaning {
  text-align: center;
  font-size: 12.5px;
  color: rgba(204, 224, 217, 0.7);
}

.counter {
  position: relative;
  width: 200px;
  height: 200px;
  margin: auto;
  border: 0;
  padding: 0;
  background: radial-gradient(closest-side, rgba(15, 77, 64, 0.6), transparent);
  border-radius: 50%;
  color: inherit;
  cursor: pointer;
}

.ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.ring .track { stroke: rgba(222, 186, 115, 0.15); }

.ring .fill {
  stroke: url(#ring-gold);
  stroke-linecap: round;
  transition: stroke-dasharray 0.25s var(--ease);
}

.ring.is-done { filter: drop-shadow(0 0 10px rgba(250, 230, 173, 0.7)); }

.counter-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.counter-value b {
  font-size: 58px;
  font-weight: 600;
  line-height: 1;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}

.counter-value small {
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(204, 224, 217, 0.6);
}

.ripple {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 2px solid var(--gold-light);
  opacity: 0;
  pointer-events: none;
}

.ripple.is-on { animation: ripple 0.6s ease-out; }

@keyframes ripple {
  from { opacity: 0.55; transform: scale(0.85); }
  to { opacity: 0; transform: scale(1.18); }
}

/* Undo as a bead and the round target as a star seal, each named underneath. */
.app-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 0 10px;
}

.ctl {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 52px;
  padding: 0;
  border: 0;
  background: none;
  font: 500 9.5px var(--font-body);
  color: rgba(204, 224, 217, 0.7);
  cursor: pointer;
}

.ctl:disabled { opacity: 0.4; cursor: default; }

.ctl-icon {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}

.ctl-bead {
  border-radius: 50%;
  color: var(--gold);
  background: radial-gradient(circle at 35% 30%, var(--emerald), var(--ink) 80%);
  border: 1px solid rgba(222, 186, 115, 0.45);
}

.ctl-seal svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 6px rgba(222, 186, 115, 0.3)); }

.ctl-seal b {
  position: relative;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}

/* The floating tab bar along the bottom of the app. */
.tabbar {
  display: flex;
  align-self: center;
  gap: 2px;
  margin-bottom: 14px;
  padding: 4px;
  border-radius: 99px;
  background: rgba(8, 38, 33, 0.85);
  border: 1px solid rgba(204, 224, 217, 0.12);
  cursor: default;
}

.tabbar span {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 58px;
  padding: 6px 8px 5px;
  border-radius: 99px;
  font: 600 8.5px var(--font-body);
  color: var(--mist);
}

.tabbar span.is-on { color: var(--gold); background: rgba(204, 224, 217, 0.12); }

.hint {
  margin-top: 26px;
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
}

/* Emblem: autoplays in the splash, scroll-driven at the close. */
.mark { display: block; overflow: visible; filter: drop-shadow(0 0 14px rgba(250, 230, 173, 0.35)); }

.mark--splash .mark-bead { animation: bead-in 0.45s var(--ease) both; animation-delay: calc(0.15s + var(--i) * 60ms); }
.mark--splash .mark-arc { stroke-dasharray: 1; stroke-dashoffset: 1; animation: arc-draw 0.8s ease-in-out 0.75s forwards; }
.mark--splash .mark-star { animation: star-in 0.7s var(--ease) 1.35s both; }

@keyframes bead-in { from { opacity: 0; transform: scale(0.3); } }
@keyframes arc-draw { to { stroke-dashoffset: 0; } }
@keyframes star-in { from { opacity: 0; transform: scale(0.4) rotate(-45deg); } }

.mark--scrub .mark-arc { stroke-dasharray: 1; stroke-dashoffset: 0; }

/* --- Tasbih scene ------------------------------------------------------ */

.scene {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.scene-inner {
  --gutter: 24px;
  position: relative;
  width: 100%;
  height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.scene-copy {
  position: absolute;
  top: 110px;
  left: var(--gutter);
  right: var(--gutter);
  z-index: 2;
  pointer-events: none;
}

@media (min-width: 720px) { .scene-inner { --gutter: 40px; } }

.scene-copy .story-h2 { font-size: clamp(30px, 4vw, 52px); max-width: 12ch; }

.tasbih {
  position: relative;
  width: min(74vmin, 640px);
  aspect-ratio: 1;
  margin: 60px auto 0;
}

.tasbih canvas { width: 100%; height: 100%; display: block; }

.tasbih-center {
  position: absolute;
  inset: 22%;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 6px;
}

.tasbih-center .ar {
  font-size: clamp(26px, 4vmin, 40px);
  line-height: 1.5;
  color: var(--gold);
}

.tasbih-center b {
  font-family: var(--font-story);
  font-weight: 500;
  font-size: clamp(64px, 13vmin, 128px);
  line-height: 0.9;
  font-variant-numeric: lining-nums tabular-nums;
}

.tasbih-center small {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.phases {
  position: absolute;
  right: var(--gutter);
  bottom: 70px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 220px;
}

.phase {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: baseline;
  gap: 8px;
  color: rgba(204, 224, 217, 0.35);
  transition: color 0.4s var(--ease);
}

.phase i { font-style: normal; font-size: 12px; }
.phase strong { font-family: var(--font-story); font-size: 22px; font-weight: 500; }
.phase span { font-variant-numeric: tabular-nums; font-size: 13px; }
.phase.is-active { color: var(--gold-light); }
.phase.is-done { color: var(--gold); }

.phase-total {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-faint);
}

.phase-total b { color: var(--gold-light); font-variant-numeric: tabular-nums; }

.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 70px;
  z-index: 2;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 12px;
}

.scroll-cue::before {
  content: "";
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--gold), transparent);
}

@media (max-width: 760px) {
  .scene-copy { top: 90px; }
  .tasbih { width: min(92vw, 520px); margin-top: 40px; }
  .phases { left: var(--gutter); right: var(--gutter); bottom: 28px; flex-direction: row; justify-content: space-between; gap: 6px; min-width: 0; }
  .phase { grid-template-columns: auto; justify-items: center; gap: 0; }
  .phase i { display: none; }
  .phase strong { font-size: 16px; }
  .phase-total, .scroll-cue { display: none; }
}

/* --- Everywhere (horizontal track) ------------------------------------- */

.everywhere { position: relative; padding: 120px 0 40px; }

.track-wrap { position: relative; overflow: hidden; }

.track {
  display: flex;
  gap: 28px;
  padding: 60px 24px 100px;
  width: max-content;
}

@media (min-width: 720px) { .track { padding-left: 40px; padding-right: 40px; } }

.card {
  position: relative;
  width: min(78vw, 980px);
  min-height: min(68vh, 560px);
  border-radius: 28px;
  border: 1px solid rgba(222, 186, 115, 0.16);
  background:
    radial-gradient(80% 70% at 75% 50%, rgba(15, 77, 64, 0.65), transparent 70%),
    linear-gradient(160deg, rgba(10, 42, 36, 0.9), rgba(3, 18, 15, 0.92));
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 32px;
  padding: 48px;
  overflow: hidden;
}

.card-index {
  font-family: var(--font-story);
  font-size: 15px;
  color: var(--gold);
}

.card h3 {
  margin-top: 14px;
  font-family: var(--font-story);
  font-weight: 500;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.02;
  color: #f6efdc;
}

.card p { margin-top: 16px; font-size: 16px; color: var(--text-dim); max-width: 38ch; }

.card-visual {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
}

/* Mobile: the track becomes a simple stack. */
@media (max-width: 899px) {
  .track { flex-direction: column; width: auto; padding-top: 30px; padding-bottom: 40px; }
  .card { width: auto; grid-template-columns: 1fr; padding: 30px 22px; min-height: 0; }
}

/* Widgets */

.widget {
  border-radius: 22px;
  background:
    radial-gradient(closest-side, rgba(15, 77, 64, 0.8), transparent),
    linear-gradient(180deg, var(--emerald), var(--ink) 60%, var(--night));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: var(--mist);
  border: 0;
  font: inherit;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.widget-small {
  width: 150px;
  height: 150px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.widget-small .name { font-size: 15px; color: var(--gold); line-height: 1.3; }

.widget-ring { position: relative; width: 98px; height: 98px; }
.widget-ring .counter-value b { font-size: 28px; }
.widget-ring .counter-value small { margin-top: 2px; font-size: 9px; }

.widget-medium {
  width: 100%;
  max-width: 318px;
  height: 150px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.widget-medium .widget-ring { width: 112px; height: 112px; flex-shrink: 0; border: 0; padding: 0; background: none; color: inherit; cursor: pointer; }
.widget-medium .text { flex: 1; display: flex; flex-direction: column; height: 100%; min-width: 0; }
.widget-medium .phrase { margin: 0; font-size: 22px; text-align: right; line-height: 1.4; }
.widget-medium .meaning { text-align: left; font-size: 11px; }

.widget-medium .row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: rgba(204, 224, 217, 0.6);
}

.undo-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(222, 186, 115, 0.25);
  cursor: pointer;
}

.undo-dot:disabled { opacity: 0.4; cursor: default; }

@media (max-width: 480px) {
  .widget-medium { gap: 12px; padding: 12px; }
  .widget-medium .widget-ring { width: 96px; height: 96px; }
}

/* Lock Screen */

.lock {
  width: 300px;
  height: 400px;
  border-radius: 36px;
  padding: 34px 24px;
  background:
    radial-gradient(70% 50% at 50% 100%, rgba(222, 186, 115, 0.25), transparent),
    linear-gradient(180deg, #0b3a31, #061f1a 60%, #020c0a);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: #fff;
  text-align: center;
}

.lock small { font-size: 15px; font-weight: 500; opacity: 0.85; }
.lock .time { font-size: 82px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }

.lock-row { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }

.lock-circ {
  position: relative;
  width: 62px;
  height: 62px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.lock-circ .ring .track { stroke: rgba(255, 255, 255, 0.2); }
.lock-circ .ring .fill { stroke: #fff; }
.lock-circ .counter-value b { font-size: 17px; color: #fff; }

.lock-rect {
  width: 150px;
  padding: 8px 12px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.lock-rect .name { font-size: 15px; line-height: 1.2; }
.lock-rect .line { font-size: 12px; opacity: 0.75; }
.lock-rect .line b { font-size: 15px; margin-right: 4px; }
.lock-rect .bar { background: rgba(255, 255, 255, 0.2); }
.lock-rect .bar i { background: #fff; }

/* Apple Watch (Series 11, 46 mm), with real screens from the app */

.aw {
  position: relative;
  margin: 0;
  padding: 74px 0 0;
  display: grid;
  justify-items: center;
}

/* Sport band, fading into the card above and below the case. */
.aw::before,
.aw::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 172px;
  margin-left: -86px;
  height: 120px;
  background: linear-gradient(90deg, #070b0a, #1a2321 18%, #121a18 50%, #1a2321 82%, #070b0a);
}

.aw::before {
  top: 0;
  border-radius: 22px 22px 0 0;
  -webkit-mask-image: linear-gradient(to top, #000 55%, transparent);
  mask-image: linear-gradient(to top, #000 55%, transparent);
}

.aw::after {
  top: 314px;
  height: 96px;
  border-radius: 0 0 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
}

.aw-case {
  position: relative;
  z-index: 1;
  width: 246px;
  height: 288px;
  padding: 13px;
  border-radius: 66px;
  background:
    radial-gradient(120% 80% at 28% 8%, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(160deg, #3b403e, #1a1d1c 42%, #0b0d0c 78%, #222625);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 -8px 16px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.7),
    0 40px 70px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(222, 186, 115, 0.08);
}

.aw-glass {
  position: relative;
  width: 220px;
  height: 262px;
  padding: 7px 6px;
  border-radius: 54px;
  background: #000;
  overflow: hidden;
}

/* Sapphire glare */
.aw-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.1), transparent 34%, transparent 70%, rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.aw-glass img {
  position: absolute;
  inset: 7px 6px;
  width: 208px;
  height: 248px;
  border-radius: 46px;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}

.aw-glass img.is-on { opacity: 1; }

.aw-crown {
  position: absolute;
  z-index: 0;
  top: 166px;
  left: calc(50% + 116px);
  width: 15px;
  height: 52px;
  border-radius: 6px;
  background: repeating-linear-gradient(180deg, #6a6f6d 0 1.5px, #2a2e2d 1.5px 3px);
  box-shadow: inset -3px 0 4px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.6);
}

.aw-button {
  position: absolute;
  z-index: 0;
  top: 236px;
  left: calc(50% + 117px);
  width: 8px;
  height: 64px;
  border-radius: 4px;
  background: linear-gradient(90deg, #1d2120, #4a4f4d);
}

.aw figcaption {
  margin-top: 64px;
  position: relative;
  z-index: 1;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: opacity 0.4s var(--ease);
}

/* Watch face (Modular style) with Sabbaha complications */

.aw-face {
  height: 100%;
  border-radius: 46px;
  padding: 26px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #fff;
  background: #000;
}

.aw-face-top { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; }
.aw-date { font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: 0.02em; }
.aw-date b { color: #fff; }
.aw-time { font-size: 34px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.aw-rect { padding: 10px 12px; border-radius: 16px; background: #141414; }
.aw-rect-head { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; color: var(--gold); }
.aw-rect-head img { border-radius: 4px; }
.aw-rect .name { margin-top: 2px; font-size: 18px; line-height: 1.3; color: var(--gold-light); }
.aw-rect .line { font-size: 12.5px; color: rgba(255, 255, 255, 0.6); }
.aw-rect .line b { color: #fff; font-size: 18px; margin-right: 4px; font-variant-numeric: tabular-nums; }

.aw-face-bottom { margin-top: auto; display: flex; align-items: center; gap: 10px; }

.aw-circ { position: relative; width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; background: #141414; }
.aw-circ .counter-value b { font-size: 14px; color: var(--gold-light); }

.aw-inline { font-size: 12px; color: rgba(255, 255, 255, 0.7); display: flex; align-items: baseline; gap: 5px; }
.aw-inline .ar { color: var(--gold); font-size: 14px; }
.aw-inline b { color: #fff; font-variant-numeric: tabular-nums; }

.bar { margin-top: 7px; height: 5px; border-radius: 3px; background: rgba(222, 186, 115, 0.2); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-light)); transition: width 0.25s var(--ease); }

@media (max-width: 480px) {
  .aw { zoom: 0.82; }
}

/* Calendar */

.cal { width: 100%; max-width: 320px; }
.cal-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.cal-head strong { font-family: var(--font-story); font-weight: 600; font-size: 24px; color: var(--gold-light); }
.cal-head span { font-size: 12.5px; color: var(--text-faint); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-grid i { aspect-ratio: 1; border-radius: 7px; background: rgba(222, 186, 115, var(--a, 0.06)); }
.cal-grid i.is-today { box-shadow: 0 0 0 1.5px var(--gold-light); }
.cal-grid i.is-blank { background: none; }
.cal-stats { display: flex; gap: 22px; margin-top: 18px; }
.cal-stats b { display: block; font-size: 20px; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.cal-stats span { font-size: 12px; color: var(--text-faint); }

/* --- Adhkar: Arabic that fills with gold as you read ------------------- */

.adhkar-sec { padding: 120px 0; }

.dhikr-line {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  padding: 48px 0;
  border-top: 1px solid rgba(222, 186, 115, 0.1);
}

.dhikr-line:last-child { border-bottom: 1px solid rgba(222, 186, 115, 0.1); }

.dhikr-line .ar {
  font-size: clamp(46px, 8vw, 104px);
  line-height: 1.55;
  background: linear-gradient(to left, var(--gold-light) 0 50%, rgba(204, 224, 217, 0.13) 50% 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dhikr-line .meta {
  display: flex;
  gap: 14px;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
}

.dhikr-line .meta strong { font-family: var(--font-story); font-weight: 500; font-size: 24px; color: #f6efdc; }
.dhikr-line .meta em { font-family: var(--font-story); font-size: 19px; color: var(--text-dim); }

.dhikr-line .meta span {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid rgba(222, 186, 115, 0.3);
}

/* --- Privacy statement ------------------------------------------------- */

.manifesto { padding: 140px 0; }

.manifesto p {
  font-family: var(--font-story);
  font-weight: 500;
  font-size: clamp(34px, 5.4vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #f6efdc;
  max-width: 18ch;
}

.manifesto p em { color: var(--gold); }

.manifesto a { display: inline-block; margin-top: 36px; color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }

/* --- Small details ----------------------------------------------------- */

.details {
  display: grid;
  gap: 1px;
  background: rgba(222, 186, 115, 0.12);
  border: 1px solid rgba(222, 186, 115, 0.12);
  border-radius: 24px;
  overflow: hidden;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) { .details { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .details { grid-template-columns: repeat(4, 1fr); } }

.detail { padding: 30px 26px; background: rgba(3, 18, 15, 0.92); }
.detail svg { color: var(--gold); }
.detail h3 { margin-top: 16px; font-family: var(--font-story); font-weight: 600; font-size: 22px; color: #f6efdc; }
.detail p { margin-top: 8px; font-size: 14.5px; color: var(--text-dim); }

/* --- FAQ --------------------------------------------------------------- */

.faq-sec { padding: 120px 0 60px; }
.faq { max-width: 760px; margin-top: 40px; }
.faq details { border-bottom: 1px solid rgba(222, 186, 115, 0.14); padding: 22px 0; }
.faq summary { cursor: pointer; font-family: var(--font-story); font-size: 24px; font-weight: 500; color: #f6efdc; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-family: var(--font-body); font-size: 20px; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 12px; color: var(--text-dim); font-size: 16px; max-width: 60ch; }
.faq a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

/* --- Close ------------------------------------------------------------- */

.close {
  padding: 120px 0 140px;
  text-align: center;
}

.close .mark { width: min(300px, 70vw); height: auto; aspect-ratio: 1; margin: 0 auto; }

.close h2 {
  margin-top: 30px;
  font-family: var(--font-story);
  font-weight: 500;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 1;
  color: #f6efdc;
}

.close .lede { margin: 22px auto 0; max-width: 46ch; color: var(--text-dim); font-size: 17px; }
.close .hero-actions { justify-content: center; }

.close .verse { align-items: center; margin-top: 60px; }
.close .verse .ar { align-self: center; font-size: clamp(24px, 3vw, 34px); }
.close .verse-meta { justify-content: center; }

/* --- Reduced motion ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .orbit, .try-it .seal svg { animation: none; }
  .mark--splash .mark-bead, .mark--splash .mark-star { animation: none; }
  .mark--splash .mark-arc { animation: none; stroke-dashoffset: 0; }
  .splash { animation-delay: 0.6s; }
}

/* SplitText wraps each letter; gold words carry their gradient per letter so it survives the transforms. */
.gold-text .ch,
.gold-text .wd {
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Sabbaha header & footer (the site is Sabbaha's own) --------------- */

.sb-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-story);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--gold-light);
}

.sb-logo img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(250, 230, 173, 0.25), 0 0 18px rgba(222, 186, 115, 0.25);
}

.btn-gold-sm { padding: 9px 18px; font-size: 13.5px; }

.sb-header { background: rgba(3, 18, 15, 0.6); border-bottom-color: rgba(222, 186, 115, 0.1); }
.sb-header .mobile-menu { background: var(--night); border-bottom-color: rgba(222, 186, 115, 0.1); }

.sb-footer {
  position: relative;
  z-index: 1;
  background: rgba(2, 12, 10, 0.94);
  border-top-color: rgba(222, 186, 115, 0.12);
}

.sb-footer .footer-brand p { margin-top: 14px; }
.sb-footer .footer-brand p.ar { margin-top: 6px; font-size: 20px; color: var(--gold); }
.sb-footer .footer-bottom { border-top-color: rgba(222, 186, 115, 0.1); }

/* The watch card shows two watches side by side. */
@media (min-width: 900px) {
  .card--watch { grid-template-columns: 0.75fr 1.25fr; min-height: min(78vh, 620px); }
  .card--watch .card-visual { flex-wrap: nowrap; gap: 40px; }
}

@media (min-width: 900px) and (max-height: 820px) {
  .card--watch .aw { zoom: 0.85; }
}

/* Launch waitlist form: an email field with the gold button inside one pill. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.notify { width: 100%; max-width: 440px; }

.notify-row {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 99px;
  background: rgba(3, 18, 15, 0.55);
  border: 1px solid rgba(222, 186, 115, 0.35);
  transition: border-color 0.25s var(--ease);
}

.notify-row:focus-within { border-color: var(--gold); }

.notify input {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  border: 0;
  outline: none;
  background: none;
  font: 500 15px var(--font-body);
  color: var(--mist);
}

.notify input::placeholder { color: rgba(204, 224, 217, 0.45); }

.notify .btn-gold {
  flex-shrink: 0;
  padding: 12px 22px;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.notify .btn-gold:disabled { opacity: 0.6; cursor: default; transform: none; }

.notify-note { margin-top: 12px; font-size: 13px; color: var(--text-faint); }
.notify-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.notify[data-state="error"] .notify-note { color: #f0a58a; }
.notify[data-state="done"] .notify-row { display: none; }
.notify[data-state="done"] .notify-note { margin-top: 0; font-size: 15px; color: var(--gold-light); }

.close .notify { margin: 0 auto; }
.close .notify-note { text-align: center; }
