:root {
  --bg: #EEE7DC;
  --panel: #F6F1E9;
  --plaster: #E4D9C8;
  --ink: #2A2622;
  --muted: #6D645A;
  --line: rgba(42, 38, 34, 0.14);
  --teal: #15838A;
  --teal-deep: #106A70;
  --brand-teal: #1B9EA5;
  --brand-green: #85BD4D;
  --night: #0E1717;
  --blend: 32vh; /* scroll distance over which a section dissolves out, or in */
  --gold: #B8966A;
  --bar-h: 68px;
  --gutter: clamp(16px, 4.5vw, 64px);
  --display: clamp(32px, 2.9vw, 42px);
  --h2: 40px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 'IBM Plex Sans Arabic', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* the slight zoom while a section dissolves must not widen the page */
}
[dir='ltr'] body { line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
section[id] { scroll-margin-top: calc(var(--bar-h) + 8px); }

/* ---------- Seamless joins: no overlap; each edge fades to the colour the next section starts with ---------- */
/* the photos fade in from the 3D room behind them */
/* Scroll dissolve: no painted gradients and nothing slides over anything. A section's content
   fades and softly blurs away, the calm page colour shows for a beat, then the next one fades in.
   The life photos and the order scene are pinned while they dissolve, so no edge ever shows;
   they start a screen early (negative margin) so the handover has no empty scroll. */

.dissolve { opacity: var(--vis, 0); }
.dissolve[data-vis='0'] { visibility: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 500 16px/1 'IBM Plex Sans Arabic', system-ui, sans-serif;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-solid { background: var(--teal); color: #fff; }
.btn-solid:hover { background: var(--teal-deep); }
.btn-line { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-line:hover { background: rgba(27, 158, 165, 0.08); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.bar {
  position: fixed; top: 0; inset-inline: 0; z-index: 20;
  height: var(--bar-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
  background: rgba(246, 240, 231, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(42, 38, 34, 0.08);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: auto; }
.brand-name { font-weight: 600; font-size: 20px; }
.brand-sub { font-size: 13px; color: var(--muted); padding-inline-start: 10px; border-inline-start: 1px solid var(--line); }
.nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-size: 15px; color: var(--muted); padding: 6px 0; }
.nav a:hover { color: var(--ink); }
.bar-end { display: flex; align-items: center; gap: 14px; }
.lang { background: none; border: 0; padding: 8px 4px; font: inherit; font-size: 14px; color: inherit; cursor: pointer; display: inline-flex; gap: 8px; }
.lang [data-l] { opacity: 0.5; }
.lang [data-l].on { opacity: 1; font-weight: 600; }
.lang .sep { opacity: 0.35; }
.menu { display: none; background: none; border: 0; color: inherit; padding: 6px; cursor: pointer; }

/* ---------- The 3D fills the screen behind the page ---------- */
/* the 3D fills the screen behind the hero and How it works; the sections between have their own ground */
.stage-canvas, .stage-fallback { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.features { position: relative; background: var(--bg); min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.stage-fallback { object-fit: cover; }
.stage-canvas[hidden], .stage-fallback[hidden] { display: none; } /* the display rules above would otherwise override [hidden] */
main, .foot { position: relative; z-index: 1; }

/* ---------- Panels: one full screen per shot, a card of text over the scene ---------- */
.showcase { position: relative; }
.chapter { position: relative; }
.steps { list-style: none; margin: 0; padding: 0; }
/* each panel is about two screens of scrolling; its content stays pinned while the scene moves */
.panel { position: relative; height: 200vh; height: 200svh; }
.panel.hero { height: 100vh; height: 100svh; }
.pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--bar-h) + 32px) var(--gutter) 48px;
}
.card {
  max-width: 30rem;
  padding: clamp(22px, 2.6vw, 36px);
  border-radius: 22px;
  background: rgba(247, 242, 234, 0.8);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: 0 18px 50px rgba(40, 30, 18, 0.14);
  display: grid; gap: 12px;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.panel.on .card { opacity: 1; transform: none; }
.card-hero { max-width: 34rem; gap: 18px; }
.card-kicker { font-size: 14px; font-weight: 600; color: var(--teal-deep); letter-spacing: 0.01em; line-height: 1.5; }
[dir='ltr'] .card-kicker { text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; }
h2.card-kicker { font-size: 15px; }
.card h3 { font-size: 30px; line-height: 1.3; }
[dir='ltr'] .card h3 { line-height: 1.15; letter-spacing: -0.01em; font-weight: 500; }
.card p { font-size: 18px; color: var(--muted); }
.card .ico { width: 42px; height: 42px; fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step .num { font-size: 15px; font-weight: 600; color: var(--teal); font-variant-numeric: tabular-nums; }
.step .num::after { content: ''; display: inline-block; width: 36px; height: 1px; background: currentColor; vertical-align: middle; margin-inline-start: 12px; opacity: 0.5; }

.eyebrow { font-size: 15px; font-weight: 500; color: var(--teal-deep); letter-spacing: 0.02em; }
[dir='ltr'] .eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; }
h1 { font-size: var(--display); line-height: 1.18; font-weight: 600; text-wrap: balance; }
[dir='ltr'] h1 { line-height: 1.06; letter-spacing: -0.02em; font-weight: 500; }
.lede { font-size: 19px; color: var(--muted); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
h2 { font-size: var(--h2); line-height: 1.25; text-wrap: balance; }
[dir='ltr'] h2 { line-height: 1.12; letter-spacing: -0.015em; font-weight: 500; }

/* ---------- The logo's star outlines, used as quiet overlays ---------- */
.star {
  position: absolute; pointer-events: none;
  aspect-ratio: 810.79 / 824.79;
  background: currentColor;
  -webkit-mask: url('assets/brand/star.svg') center / contain no-repeat;
  mask: url('assets/brand/star.svg') center / contain no-repeat;
}
.card-hero { position: relative; overflow: hidden; }
.card-hero::after {
  content: ''; position: absolute; width: 230px; aspect-ratio: 810.79 / 824.79;
  top: -70px; inset-inline-end: -80px; pointer-events: none;
  background: var(--brand-teal); opacity: 0.09;
  -webkit-mask: url('assets/brand/star.svg') center / contain no-repeat;
  mask: url('assets/brand/star.svg') center / contain no-repeat;
}

/* ---------- Demo controls: a compact strip under the clock (positioned from the 3D view) ---------- */
.demo.at-clock { position: absolute; left: var(--demo-x); top: var(--demo-y); transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); }
.panel.on .demo.at-clock { transform: translateX(-50%); }
.hero .pin { flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; }
.demo {
  max-width: 34rem;
  padding: 10px 12px; border-radius: 18px;
  background: rgba(24, 20, 16, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #F3EDE3;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
}
.panel.on .demo { opacity: 1; transform: none; }
.demo-label { font-size: 12px; opacity: 0.7; margin: 0 4px 8px; }
.demo-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-buttons button {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 36px; padding: 0 12px 0 10px; border-radius: 999px;
  border: 1px solid rgba(243, 237, 227, 0.3); background: rgba(243, 237, 227, 0.07);
  color: inherit; font: 500 13px/1 'IBM Plex Sans Arabic', system-ui, sans-serif; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.demo-buttons button:hover { background: rgba(243, 237, 227, 0.16); }
.demo-buttons button[aria-pressed='true'] { background: #F3EDE3; color: var(--ink); border-color: #F3EDE3; }
.demo-buttons svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eq { display: none; gap: 2px; align-items: flex-end; height: 12px; }
.playing .eq { display: inline-flex; }
.eq b { width: 2px; background: var(--brand-teal); animation: eq 0.9s ease-in-out infinite; }
.eq b:nth-child(2) { animation-delay: -0.3s; }
.eq b:nth-child(3) { animation-delay: -0.6s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.demo-note { margin: 8px 4px 0; font-size: 13px; opacity: 0.85; }
.demo-note:empty { display: none; }

.tag { font-size: 14px; font-weight: 600; color: var(--teal-deep); }

/* ---------- Static sections after the hero ---------- */
.sec-head { text-align: center; display: grid; gap: 8px; justify-items: center; margin-bottom: clamp(28px, 5vh, 48px); }
.sec-head h2 { max-width: 20em; }
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Features: five cards in a row ---------- */
.features { padding: clamp(64px, 12vh, 120px) var(--gutter) clamp(48px, 8vh, 88px); }
.feat-row { list-style: none; margin: 0 auto; padding: 0; max-width: 1180px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.feat {
  display: grid; justify-items: center; align-content: start; gap: 10px; text-align: center;
  padding: 26px 18px 24px; border-radius: 20px;
  background: var(--panel);
  border: 1px solid rgba(42, 38, 34, 0.06);
  box-shadow: 0 14px 36px rgba(40, 30, 18, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feat:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(40, 30, 18, 0.12); }
.feat-ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: rgba(27, 158, 165, 0.1); }
.feat-ico svg { width: 30px; height: 30px; fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 17px; line-height: 1.4; }
.feat p { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- How it works: the phone stays put, the steps open one by one down a line ---------- */
.how { position: relative; height: calc(100vh + 5 * 55vh + var(--blend)); scroll-margin-top: 0; }
.how-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  padding: calc(var(--bar-h) + 24px) var(--gutter) 32px;
  display: flex; align-items: center;
}
.how-copy.card { position: relative; max-width: 31rem; gap: clamp(16px, 3vh, 28px); opacity: 1; transform: none; }
.how-head { display: grid; gap: 8px; }
.how-head h2 { font-size: clamp(26px, 2.6vw, 38px); }

.how-steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: clamp(10px, 2.2vh, 18px); --fill: 0; }
/* the line: faint all the way, teal down to the current step */
.how-steps::before, .how-steps::after {
  content: ''; position: absolute; inset-inline-start: 21px; top: 22px; width: 2px; border-radius: 2px;
}
.how-steps::before { bottom: 22px; background: rgba(27, 158, 165, 0.16); }
.how-steps::after { height: calc((100% - 44px) * var(--fill)); background: var(--brand-teal); transition: height 0.5s ease; }

.how-step {
  position: relative; display: grid; grid-template-columns: 44px 48px minmax(0, 1fr); gap: 14px; align-items: start;
  opacity: 0;
}
/* one step at a time, all in the same spot (the card keeps its size): the old one fades out, then the new one fades in */
.how-steps { display: grid; }
.how-step { grid-area: 1 / 1; visibility: hidden; transition: opacity 0.35s ease, visibility 0s linear 0.35s; }
.how-step.on { opacity: 1; visibility: visible; transition: opacity 0.45s ease 0.3s, visibility 0s; }
.how-steps::before, .how-steps::after { display: none; }
.how-num {
  position: relative; z-index: 1;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: var(--bg); border: 2px solid rgba(27, 158, 165, 0.35);
  color: var(--teal); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color 0.4s, color 0.4s, border-color 0.4s, transform 0.4s;
}
.how-step.on .how-num { background: var(--teal); border-color: var(--teal); color: #fff; transform: scale(1.08); box-shadow: 0 0 0 6px rgba(27, 158, 165, 0.14); }
.how-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--panel); box-shadow: 0 6px 16px rgba(40, 30, 18, 0.08); }
.how-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.how-body { padding-top: 9px; }
.how-body h3 { font-size: 19px; line-height: 1.35; }
/* the text opens only for the current step */
.how-more { display: grid; grid-template-rows: 1fr; }
.how-more p { overflow: hidden; min-height: 0; color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 30em; }
.how-step.on .how-more { grid-template-rows: 1fr; }
.how-more p { padding-top: 6px; }


/* ---------- Life with Iman: three cards, a photo and a few words each ---------- */
.life { position: relative; background: var(--bg); padding: clamp(72px, 12vh, 120px) var(--gutter); }
.life-row { list-style: none; margin: 0 auto; padding: 0; max-width: 1180px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.life-card {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  border-radius: 22px; background: var(--panel);
  border: 1px solid rgba(42, 38, 34, 0.06);
  box-shadow: 0 16px 40px rgba(40, 30, 18, 0.08);
}
.life-card:nth-child(2) { transition-delay: 0.1s; }
.life-card:nth-child(3) { transition-delay: 0.2s; }
.life-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.life-card img[src*='life-family'] { object-position: 50% 58%; }
.life-card img[src*='life-gift'] { object-position: 88% 50%; } /* keep the giver's face and the clock */
.life-body { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 0 24px 26px; }
.life-ico {
  width: 56px; height: 56px; margin-top: -28px; display: grid; place-items: center; border-radius: 50%;
  background: var(--panel); border: 1px solid rgba(27, 158, 165, 0.3);
  box-shadow: 0 8px 20px rgba(40, 30, 18, 0.1);
}
.life-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.life-body h3 { font-size: 19px; line-height: 1.4; }
.life-body p { font-size: 15px; line-height: 1.65; color: var(--muted); max-width: 26em; }

/* ---------- See the Iman clock up close: the unboxing reel ---------- */
.watch { position: relative; background: var(--bg); padding: clamp(24px, 4vh, 48px) var(--gutter) clamp(72px, 12vh, 120px); }
.watch-card {
  position: relative; overflow: hidden;
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: clamp(24px, 4vw, 56px);
  padding: clamp(20px, 2.6vw, 32px); border-radius: 28px;
  background: #FBF9F5; border: 1px solid rgba(42, 38, 34, 0.06);
  box-shadow: 0 20px 50px rgba(40, 30, 18, 0.08);
}
.star-watch { width: 360px; bottom: -150px; inset-inline-start: -130px; color: var(--brand-green); opacity: 0.08; }
.watch-copy { position: relative; display: grid; gap: 16px; justify-items: start; padding-inline-start: clamp(0px, 1vw, 12px); }
.watch-copy h2 { font-size: clamp(26px, 2.6vw, 36px); }
.watch-text { color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 32em; }
.watch-list { list-style: none; margin: 4px 0 6px; padding: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.watch-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.watch-ico { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(27, 158, 165, 0.1); }
.watch-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.watch-cta { gap: 10px; padding-inline: 22px 26px; }
.watch-cta svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.watch-cta svg path { fill: currentColor; stroke: none; }

.watch-video { position: relative; display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: #d9d2c7; box-shadow: 0 16px 36px rgba(40, 30, 18, 0.16); }
.watch-video img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.watch-video::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 16, 12, 0.28), transparent 40%); pointer-events: none; }
.watch-video:hover img { transform: scale(1.03); }
.watch-play {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 78px; height: 78px; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(27, 158, 165, 0.88); box-shadow: 0 10px 30px rgba(15, 51, 54, 0.35);
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.watch-play::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.6); animation: play-ring 2.2s ease-out infinite; }
@keyframes play-ring { from { transform: scale(0.85); opacity: 0.9; } to { transform: scale(1.35); opacity: 0; } }
.watch-play svg { width: 30px; height: 30px; fill: #fff; margin-inline-start: 4px; }
[dir='rtl'] .watch-play svg { margin-inline-start: 0; margin-inline-end: 4px; transform: none; }
.watch-video:hover .watch-play { transform: translate(-50%, -50%) scale(1.08); background: var(--teal); }
.watch-badge {
  position: absolute; z-index: 1; bottom: 12px; inset-inline-end: 12px;
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px;
  background: rgba(20, 16, 12, 0.55); color: #fff; font: 600 12px/1 system-ui, sans-serif; letter-spacing: 0.02em;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.watch-badge svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 1.8; }
.watch-badge svg circle:last-child { fill: #fff; stroke: none; }
@media (prefers-reduced-motion: reduce) { .watch-play::before { animation: none; } }

/* ---------- Order: trust points, the form and a photo of the clock in one card ---------- */
.order { position: relative; background: var(--bg); padding: clamp(24px, 4vh, 48px) var(--gutter) clamp(72px, 12vh, 120px); }
.order-card {
  position: relative; overflow: hidden;
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.4fr) minmax(0, 0.95fr); align-items: stretch; gap: clamp(20px, 3vw, 40px);
  padding: clamp(18px, 2.2vw, 28px); border-radius: 28px;
  background: #FBF9F5; border: 1px solid rgba(42, 38, 34, 0.06);
  box-shadow: 0 20px 50px rgba(40, 30, 18, 0.08);
}
.star-order { width: 340px; top: -140px; inset-inline-start: -120px; color: var(--brand-teal); opacity: 0.07; }
.order-trust { position: relative; list-style: none; margin: 0; padding: 0 clamp(4px, 1vw, 12px); display: grid; align-content: center; gap: 26px; }
.order-trust li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.trust-ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(27, 158, 165, 0.1); }
.trust-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.order-main { position: relative; display: grid; gap: 18px; align-content: center; padding-block: 8px; }
.order-head { text-align: center; display: grid; gap: 6px; }
.order-head h2 { font-size: clamp(26px, 2.6vw, 36px); }
.order-sub { font-size: 17px; font-weight: 600; color: var(--teal-deep); }
.order-text { font-size: 15px; color: var(--muted); }
.order-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.field-wide { grid-column: 1 / -1; }
.field { position: relative; display: grid; gap: 4px; align-content: start; }
.field-ico { position: absolute; inset-inline-start: 14px; top: 14px; width: 20px; height: 20px; pointer-events: none; }
.field-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; padding-inline-start: 44px;
  font: 400 15px/1.4 'IBM Plex Sans Arabic', system-ui, sans-serif; color: var(--ink);
  background: #fff; border: 1px solid rgba(42, 38, 34, 0.12); border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; color: var(--muted);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%236D645A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat left 14px center / 18px; }
[dir='ltr'] .field select { background-position: right 14px center; }
.field select:valid { color: var(--ink); }
.field textarea { resize: vertical; min-height: 64px; padding-top: 13px; }
.field ::placeholder { color: #9A9086; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-teal); box-shadow: 0 0 0 4px rgba(27, 158, 165, 0.14); }
.field [aria-invalid='true'] { border-color: #B4442F; }
.err { font-style: normal; font-weight: 400; font-size: 13px; color: #9C3A27; }
.err:empty { display: none; }
.order-submit { min-height: 52px; gap: 10px; border-radius: 12px; font-size: 16px; margin-top: 2px; }
.order-submit svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
[dir='rtl'] .order-submit svg { transform: scaleX(-1); }
.form-status { font-size: 15px; text-align: center; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--teal-deep); }
.form-status.warn { color: #8A5A12; }

.order-photo { position: relative; margin: 0; border-radius: 20px; overflow: hidden; min-height: 360px; box-shadow: 0 14px 34px rgba(40, 30, 18, 0.14); }
.order-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }

/* ---------- FAQ: two columns of questions ---------- */
.faq { position: relative; background: var(--bg); padding: clamp(40px, 7vh, 72px) var(--gutter) clamp(56px, 9vh, 96px); }
.faq .sec-head { margin-bottom: clamp(22px, 4vh, 36px); }
.faq-sub { color: var(--muted); font-size: 16px; }
.faq-list { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; align-items: start; }
.faq details {
  border-radius: 14px; background: #FBF9F5;
  border: 1px solid rgba(42, 38, 34, 0.08);
  box-shadow: 0 6px 18px rgba(40, 30, 18, 0.05);
  transition: box-shadow 0.25s, border-color 0.25s;
}
.faq details:hover { border-color: rgba(27, 158, 165, 0.25); }
.faq details[open] { border-color: rgba(27, 158, 165, 0.3); box-shadow: 0 12px 30px rgba(40, 30, 18, 0.08); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; font-size: 16px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.q-chev { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s ease; }
.faq details[open] .q-chev { transform: rotate(180deg); }
.faq details p { padding: 0 18px 16px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.faq details[open] p { animation: faq-open 0.35s ease; }
@keyframes faq-open { from { opacity: 0; } }

/* ---------- Footer: light, the colour logo, three columns ---------- */
.foot {
  position: relative; overflow: hidden;
  padding: clamp(40px, 6vh, 64px) var(--gutter) 22px;
  background: linear-gradient(to bottom, var(--bg), #E9E1D4);
  border-top: 1px solid rgba(42, 38, 34, 0.08);
  color: var(--ink);
}
.foot-mosque { position: absolute; bottom: 0; inset-inline-start: 2%; width: min(420px, 45vw); height: auto; fill: rgba(184, 150, 106, 0.14); pointer-events: none; }
.foot-inner { position: relative; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 0.8fr)) minmax(0, 1.5fr); gap: 32px; align-items: start; }
.foot h4 { font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--ink); }
.foot-col a { display: flex; align-items: center; gap: 8px; width: fit-content; text-decoration: none; padding: 4px 0; font-size: 14px; color: var(--muted); transition: color 0.2s; }
.foot-col a:hover { color: var(--teal); }
.foot-li { width: 17px; height: 17px; fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.foot-brand { display: grid; gap: 16px; justify-items: end; text-align: end; }
[dir='ltr'] .foot-brand { justify-items: end; }
.foot-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-direction: row-reverse; }
.foot-logo img { width: 64px; height: auto; }
.foot-name { display: block; font-size: 20px; font-weight: 700; color: var(--ink); }
.foot-tag { display: block; font-size: 14px; color: var(--muted); max-width: 22em; }
.foot-social { display: flex; gap: 10px; }
.foot-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(27, 158, 165, 0.35); color: var(--teal); transition: background-color 0.2s, color 0.2s; }
.foot-social a:hover { background: var(--teal); color: #fff; }
.foot-social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.foot-base { position: relative; max-width: 1180px; margin: 28px auto 0; padding-top: 16px; border-top: 1px solid rgba(42, 38, 34, 0.1); font-size: 13px; color: var(--muted); text-align: end; }

/* ---------- Lightweight: skip rendering sections until they are close to the screen ---------- */
.life, .watch, .order, .faq, .foot { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* ---------- Veil ---------- */
.veil { position: fixed; inset: 0; z-index: 40; background: var(--bg); transition: opacity 0.9s ease; pointer-events: none; }
.veil.gone { opacity: 0; }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .feat-row { gap: 10px; }
  .feat { padding: 20px 12px; }
  :root { --h2: 34px; }
  .nav { gap: 18px; }
  .brand-sub { display: none; }
}

/* ---------- Mobile: the clock stays at the top, copy scrolls beneath ---------- */
@media (max-width: 820px) {
  .watch { padding: 24px 12px 56px; }
  .watch-card { grid-template-columns: 1fr; padding: 14px 14px 20px; border-radius: 22px; gap: 18px; }
  .watch-video { order: -1; border-radius: 16px; }
  .watch-play { width: 62px; height: 62px; }
  .watch-list { gap: 10px 12px; }
  .watch-list li { font-size: 14px; }
  .watch-ico { width: 34px; height: 34px; }
  .watch-cta { width: 100%; }
  .features { padding: 56px 12px 32px; }
  .feat-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .how-pin { align-items: flex-end; padding: calc(var(--bar-h) + 12px) 12px 12px; }
  .how-copy.card { max-width: none; width: 100%; padding: 16px; }
  .how-copy { gap: 12px; }
  .how-head h2 { font-size: 22px; }
  .how-head .eyebrow { display: none; }
  .how-steps { gap: 6px; }
  .how-steps::before, .how-steps::after { inset-inline-start: 17px; top: 18px; }
  .how-steps::before { bottom: 18px; }
  .how-steps::after { height: calc((100% - 36px) * var(--fill)); }
  .how-step { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .how-num { width: 36px; height: 36px; font-size: 13px; }
  .how-ico { display: none; }
  .how-body { padding-top: 6px; }
  .how-body h3 { font-size: 16px; }
  .how-more p { font-size: 14px; }
  .feat:last-child { grid-column: 1 / -1; }
  .feat { padding: 18px 12px; }
  .feat p { font-size: 13px; }
  :root { --blend: 28vh; }
  :root { --display: 28px; --h2: 28px; --bar-h: 58px; }
  body { font-size: 16px; }
  .menu { display: inline-flex; }
  .nav {
    position: absolute; top: var(--bar-h); inset-inline: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .bar-end { margin-inline-start: auto; gap: 8px; }
  .pin { align-items: flex-end; padding: calc(var(--bar-h) + 16px) 12px 16px; }
  .card { max-width: none; width: 100%; padding: 18px 18px 16px; border-radius: 18px; gap: 8px; }
  .card h3 { font-size: 22px; }
  .card p { font-size: 15px; }
  .card .ico { width: 32px; height: 32px; }
  .lede { font-size: 16px; }
  .ctas { flex-wrap: nowrap; gap: 8px; }
  .ctas .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; font-size: 15px; white-space: nowrap; }
  .hero .pin { flex-direction: column; justify-content: flex-end; gap: 12px; }
  .demo { max-width: none; width: 100%; padding: 10px; }
  .demo-label { display: none; }
  .demo-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } /* all four fit, nothing scrolls off the edge */
  .demo-buttons button { min-height: 38px; font-size: 13px; justify-content: center; }
  .demo-note { font-size: 13px; margin-top: 6px; }
  .life { padding: 56px 16px; }
  .life-row { grid-template-columns: 1fr; gap: 18px; }
  .order { padding: 24px 12px 56px; }
  .order-card { grid-template-columns: 1fr; padding: 14px 14px 20px; border-radius: 22px; gap: 18px; }
  .order-photo { order: -1; min-height: 200px; border-radius: 16px; }
  .order-trust { order: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0; }
  .order-trust li { flex-direction: column; text-align: center; gap: 6px; font-size: 12px; }
  .order-form { grid-template-columns: 1fr; }
  .faq { padding: 40px 12px 56px; }
  .faq-list { grid-template-columns: 1fr; }
  .foot { padding: 36px 16px 18px; }
  .foot-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
  .foot-brand { grid-column: 1 / -1; order: -1; justify-items: start; text-align: start; }
  .foot-logo { flex-direction: row; }
  .foot-col a { font-size: 13px; }
  .foot-base { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .veil { transition-duration: 0.01s; }
  .eq b { animation: none; height: 8px; }
}
