/* Istiqamah website — "Living notch".
   The browser window is the Mac: the header is the menu bar, a real notch sits fixed at the top
   centre and changes state as you scroll, and the page background is the sky moving from Fajr to Isha.
   One stylesheet for Arabic (rtl) and English (ltr): use logical properties (inline/block). */

/* ---------- Fonts (all self-hosted) ---------- */
@font-face { font-family: "Thmanyah Sans"; src: url("../fonts/thmanyah-sans/thmanyahsans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("../fonts/thmanyah-sans/thmanyahsans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("../fonts/thmanyah-sans/thmanyahsans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Thmanyah Serif Display"; src: url("../fonts/thmanyah-serif-display/thmanyahserifdisplay-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
/* OFL, variable, Latin subset */
@font-face { font-family: "Google Sans"; src: url("../fonts/google-sans/GoogleSans-Variable-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter/Inter-Variable-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #07080f;
  --text: #f5f4f2;
  --muted: rgba(245, 244, 242, 0.72);
  --dim: rgba(245, 244, 242, 0.55);
  --line: rgba(255, 255, 255, 0.12);
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.1);
  --chip-active: rgba(255, 255, 255, 0.16);
  --header-bg: rgba(7, 8, 15, 0.38);
  --green: #5fd38d;
  --cyan: #5ac8e8;
  --grad: linear-gradient(90deg, var(--green), var(--cyan));
  --grad-text: var(--grad);
  --link: var(--cyan);
  --icon: var(--cyan);
  --check: var(--green);
  --net-line: rgba(90, 200, 232, 0.5);
  --radius: 20px;
  --gutter: 16px;
  --max: 1120px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font: "Thmanyah Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Thmanyah Serif Display", "Thmanyah Sans", Georgia, serif;
  --display-weight: 700;
  /* The notch is drawn in the app's own points (NotchLayout); --u is one point on this screen.
     The menu bar is exactly the notch's height, as on a MacBook. Steps set in notch.css. */
  --u: 1.15px;
  --menubar-h: calc(34 * var(--u));
}
:root:lang(en) {
  --font: "Inter", "Thmanyah Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Google Sans", "Inter", system-ui, sans-serif;
  --display-weight: 600;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f6f1ea;
    --text: #1d1a16;
    --muted: rgba(29, 26, 22, 0.74);
    --dim: rgba(29, 26, 22, 0.62);
    --line: rgba(29, 26, 22, 0.13);
    --surface: rgba(255, 255, 255, 0.5);
    --surface-2: rgba(255, 255, 255, 0.72);
    --chip-active: rgba(29, 26, 22, 0.09);
    --header-bg: rgba(255, 255, 255, 0.42);
    --grad-text: linear-gradient(90deg, #1a8f50, #13789c);
    --link: #13789c;
    --icon: #13789c;
    --check: #1a8f50;
    --net-line: rgba(19, 120, 156, 0.45);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f1ea;
  --text: #1d1a16;
  --muted: rgba(29, 26, 22, 0.74);
  --dim: rgba(29, 26, 22, 0.62);
  --line: rgba(29, 26, 22, 0.13);
  --surface: rgba(255, 255, 255, 0.5);
  --surface-2: rgba(255, 255, 255, 0.72);
  --chip-active: rgba(29, 26, 22, 0.09);
  --header-bg: rgba(255, 255, 255, 0.42);
  --grad-text: linear-gradient(90deg, #1a8f50, #13789c);
  --link: #13789c;
  --icon: #13789c;
  --check: #1a8f50;
  --net-line: rgba(19, 120, 156, 0.45);
}
:root[data-theme="dark"] { color-scheme: dark; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:root:lang(en) body { line-height: 1.65; letter-spacing: -0.006em; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 0; white-space: nowrap;
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-primary { background: var(--grad); color: #04140c; box-shadow: 0 10px 30px -10px rgba(90, 200, 232, 0.55); }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; box-shadow: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm svg { width: 16px; height: 16px; }

/* ---------- The sky (page background) ----------
   Six fixed full-window layers; the one for the scene being read fades in.
   Dark theme: deep skies (stars at Fajr and Isha). Light theme: the same moments, pale and airy. */
.sky-stage { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--bg); }
/* A new sky fades in on top while every sky under it stays fully opaque, and a sky is never faded out:
   a plain crossfade dips halfway through and the page colour shows, which read as a flash while scrolling
   (fast scrolling made it worse, with several fades overlapping). site.js raises the z-index of the sky
   being shown, so the layers just stack. Each is its own compositor layer, so the fade doesn't repaint
   the gradients or the frosted glass above them. */
.page-sky { --stars-on: linear-gradient(transparent, transparent); position: absolute; inset: 0; z-index: 0; opacity: 0; background: var(--stars-on), var(--sky); will-change: opacity; transform: translateZ(0); }
.page-sky.is-shown { opacity: 1; }
.page-sky.is-fading { transition: opacity 1.2s ease; }
.page-sky::before {                              /* broad glow of the sun or moon */
  content: ""; position: absolute;
  left: var(--glow-x, 50%); top: var(--glow-y, 100%);
  width: var(--glow-size, 70vmax); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
}
.page-sky::after {                               /* the sun or moon itself */
  content: ""; position: absolute;
  left: var(--orb-x, 50%); top: var(--orb-y, 100%);
  width: var(--orb-size, 0px); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--orb, transparent);
  box-shadow: 0 0 60px 18px var(--orb-glow, transparent);
}

.page-sky[data-sky="fajr"]      { --sky: linear-gradient(180deg, #060818 0%, #14183a 50%, #3a2a4e 100%); --glow: rgba(231, 150, 140, 0.28); --glow-y: 105%; --glow-size: 90vmax; }
.page-sky[data-sky="sunrise"]   { --sky: linear-gradient(180deg, #0c1230 0%, #2a2747 55%, #5a3a3e 100%); --glow: rgba(255, 170, 100, 0.32); --glow-x: 30%; --glow-y: 100%; --orb: #ffd9a0; --orb-size: 80px; --orb-x: 30%; --orb-y: 98%; --orb-glow: rgba(255, 180, 110, 0.5); }
.page-sky[data-sky="noon"]      { --sky: linear-gradient(180deg, #061827 0%, #0b2539 60%, #0f2c40 100%); --glow: rgba(120, 200, 240, 0.2); --glow-x: 78%; --glow-y: 0%; --glow-size: 80vmax; }
.page-sky[data-sky="afternoon"] { --sky: linear-gradient(180deg, #0d0b10 0%, #231a14 60%, #3a2614 100%); --glow: rgba(240, 180, 90, 0.26); --glow-x: 15%; --glow-y: 35%; }
.page-sky[data-sky="sunset"]    { --sky: linear-gradient(180deg, #0f0a1c 0%, #2b1330 50%, #521c28 100%); --glow: rgba(255, 110, 70, 0.32); --glow-x: 62%; --glow-y: 100%; --orb: #ffb27a; --orb-size: 90px; --orb-x: 62%; --orb-y: 100%; --orb-glow: rgba(255, 120, 70, 0.55); }
.page-sky[data-sky="night"]     { --sky: linear-gradient(180deg, #020309 0%, #070b1a 60%, #0d1328 100%); --glow: rgba(160, 170, 220, 0.12); --glow-x: 80%; --glow-y: 12%; --glow-size: 50vmax; --orb: #f4f0e2; --orb-size: 34px; --orb-x: 82%; --orb-y: 16%; --orb-glow: rgba(244, 240, 226, 0.25); }
.page-sky[data-sky="fajr"], .page-sky[data-sky="night"] {
  --stars-on:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 22% 40%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 34% 12%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 41% 30%, #fff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 55% 22%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 63% 44%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 70% 9%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 86% 36%, #fff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 92% 14%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 6% 52%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 48% 60%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 78% 58%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 28% 72%, #fff 50%, transparent 52%), radial-gradient(1.3px 1.3px at 90% 78%, #fff 50%, transparent 52%);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .page-sky { --stars-on: linear-gradient(transparent, transparent); }
  :root:not([data-theme="dark"]) .page-sky[data-sky="fajr"]      { --sky: linear-gradient(180deg, #e8e5f2 0%, #f1e6ec 55%, #f8e4d8 100%); --glow: rgba(255, 190, 160, 0.45); }
  :root:not([data-theme="dark"]) .page-sky[data-sky="sunrise"]   { --sky: linear-gradient(180deg, #eaeef8 0%, #f6ece2 55%, #fbe6c8 100%); --glow: rgba(255, 200, 130, 0.55); --orb: #ffd38a; --orb-glow: rgba(255, 190, 110, 0.6); }
  :root:not([data-theme="dark"]) .page-sky[data-sky="noon"]      { --sky: linear-gradient(180deg, #dcecfa 0%, #eef5fb 60%, #f8f6f0 100%); --glow: rgba(255, 255, 240, 0.9); }
  :root:not([data-theme="dark"]) .page-sky[data-sky="afternoon"] { --sky: linear-gradient(180deg, #efe9dc 0%, #f6ecd8 60%, #fae6c4 100%); --glow: rgba(255, 205, 120, 0.5); }
  :root:not([data-theme="dark"]) .page-sky[data-sky="sunset"]    { --sky: linear-gradient(180deg, #ece2ea 0%, #f6dfdc 55%, #fbd9c0 100%); --glow: rgba(255, 150, 110, 0.45); --orb: #ffb27a; --orb-glow: rgba(255, 140, 90, 0.5); }
  :root:not([data-theme="dark"]) .page-sky[data-sky="night"]     { --sky: linear-gradient(180deg, #dfe1ec 0%, #e8e8f0 60%, #efede9 100%); --glow: rgba(170, 180, 230, 0.35); --orb: #c9cde6; --orb-glow: rgba(170, 180, 230, 0.4); }
}
:root[data-theme="light"] .page-sky { --stars-on: linear-gradient(transparent, transparent); }
:root[data-theme="light"] .page-sky[data-sky="fajr"]      { --sky: linear-gradient(180deg, #e8e5f2 0%, #f1e6ec 55%, #f8e4d8 100%); --glow: rgba(255, 190, 160, 0.45); }
:root[data-theme="light"] .page-sky[data-sky="sunrise"]   { --sky: linear-gradient(180deg, #eaeef8 0%, #f6ece2 55%, #fbe6c8 100%); --glow: rgba(255, 200, 130, 0.55); --orb: #ffd38a; --orb-glow: rgba(255, 190, 110, 0.6); }
:root[data-theme="light"] .page-sky[data-sky="noon"]      { --sky: linear-gradient(180deg, #dcecfa 0%, #eef5fb 60%, #f8f6f0 100%); --glow: rgba(255, 255, 240, 0.9); }
:root[data-theme="light"] .page-sky[data-sky="afternoon"] { --sky: linear-gradient(180deg, #efe9dc 0%, #f6ecd8 60%, #fae6c4 100%); --glow: rgba(255, 205, 120, 0.5); }
:root[data-theme="light"] .page-sky[data-sky="sunset"]    { --sky: linear-gradient(180deg, #ece2ea 0%, #f6dfdc 55%, #fbd9c0 100%); --glow: rgba(255, 150, 110, 0.45); --orb: #ffb27a; --orb-glow: rgba(255, 140, 90, 0.5); }
:root[data-theme="light"] .page-sky[data-sky="night"]     { --sky: linear-gradient(180deg, #dfe1ec 0%, #e8e8f0 60%, #efede9 100%); --glow: rgba(170, 180, 230, 0.35); --orb: #c9cde6; --orb-glow: rgba(170, 180, 230, 0.4); }

/* ---------- Menu bar (site header) ---------- */
.menubar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--menubar-h);
  /* No backdrop-filter here: blurring the sky behind it made the bar flicker whenever a new sky faded in
     (the browser re-blurs every frame). A near-solid tint looks the same on these pale skies. */
  background: rgba(250, 247, 242, 0.9);
  border-block-end: 1px solid var(--line);
  transform: translateZ(0);
}
.menubar .bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-inline: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.9375rem; text-decoration: none; }
.brand-mark { width: 30px; height: 12px; border-radius: 0 0 7px 7px; background: #000; position: relative; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
.brand-mark::after { content: ""; position: absolute; inset-inline-start: 5px; top: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--grad); }
.menu { display: flex; align-items: center; gap: 14px; font-size: 0.875rem; }
.menu a:not(.btn) { color: var(--muted); text-decoration: none; }
.menu a:not(.btn):hover { color: var(--text); }
.theme-toggle {
  display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer;
}
.theme-toggle:hover { color: var(--text); background: var(--surface-2); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.menu-lang .short { display: none; }
.menu .menu-link { padding-inline: 2px; }
.menu-lang { padding-inline-start: 14px; border-inline-start: 1px solid var(--line); }
@media (max-width: 1180px) { .menu .menu-link { display: none; } .menu-lang { padding-inline-start: 0; border: 0; } }
@media (max-width: 760px) {
  .menubar .bar { padding-inline: 12px; }
  .brand-name, .menu .btn { display: none; }
  .menu-lang .long { display: none; }
  .menu-lang .short { display: inline; }
}


/* ---------- Scenes ----------
   Each scene is about a window tall. Its text sits below the space its notch state needs:
   --clear is that state's height in screen points. */
.scene {
  min-height: 100svh;
  display: grid; align-content: center; justify-items: center; text-align: center;
  padding-block: calc(var(--menubar-h) + var(--clear, 60) * var(--u) + 56px) 120px;
  padding-inline: var(--gutter);
}
.scene > * { max-width: 680px; }
.scene-hero > h1 { max-width: 1000px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.875rem; font-weight: 500; color: var(--dim); margin-block-end: 18px; }
.scene .eyebrow::before, .scene .eyebrow::after { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.6; }
.scene h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1.12; letter-spacing: -0.015em; margin-block-end: 20px; }
:root:lang(ar) .scene h2 { line-height: 1.3; letter-spacing: 0; }
.scene .lead { color: var(--muted); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 560px; margin-inline: auto; }
.scene .note { margin-block-start: 18px; color: var(--dim); font-size: 0.9375rem; }

/* Hero */
.scene-hero { padding-block-start: calc(var(--menubar-h) + 34 * var(--u) + 72px); }
.scene-hero h1 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(2.75rem, 8.4vw, 6.25rem); line-height: 1.05; letter-spacing: -0.02em; margin-block-end: 24px; }
:root:lang(ar) .scene-hero h1 { line-height: 1.25; letter-spacing: 0; }
:root:lang(en) .scene-hero h1 { font-size: clamp(2.5rem, 7vw, 5.5rem); line-height: 1.04; letter-spacing: -0.035em; }   /* 88px on desktop */
:root:lang(en) .scene h2 { letter-spacing: -0.03em; }
:root:lang(en) .scene-hero > h1 { max-width: 1100px; }
.scene-hero .lead { margin-block-end: 36px; }

/* Hand-drawn arrow pointing up at the notch. Its tip (97.5, 3 in the viewBox) sits just under the pill. */
.scene-hero { position: relative; }
.hero-arrow {
  position: absolute; top: calc(var(--menubar-h) + 8px); left: calc(50% - 97px); width: 140px; height: 100px;
  color: var(--muted); max-width: none; pointer-events: none;
  animation: arrow-nudge 3.2s ease-in-out 2.2s infinite;
}
.hero-arrow path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.hero-arrow .shaft { animation: arrow-draw 1.1s cubic-bezier(0.55, 0.1, 0.35, 1) 0.5s forwards; }
.hero-arrow .head { animation: arrow-draw 0.35s ease-out 1.55s forwards; }
@keyframes arrow-draw { to { stroke-dashoffset: 0; } }
@keyframes arrow-nudge { 0%, 70%, 100% { translate: 0 0; } 80% { translate: 3px -5px; } 90% { translate: 0 1px; } }
@media (max-height: 640px) { .hero-arrow { display: none; } }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-meta { color: var(--dim); font-size: 0.875rem; }
.hero-meta a { color: var(--muted); text-underline-offset: 3px; }
.hero-meta a:hover { color: var(--text); }

/* The main download button: the gradient drifts, a sheen passes now and then, the glow breathes,
   and the arrow nods. Calm, slow; all of it stops for reduced motion. */
.btn-cta {
  background-image:
    linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.55) 50%, transparent 58%),
    linear-gradient(90deg, var(--green), var(--cyan), var(--green));
  background-size: 300% 100%, 200% 100%;
  background-repeat: no-repeat, repeat-x;
  background-position: 150% 0, 0 0;
  animation: cta-flow 6s linear infinite, cta-glow 6s ease-in-out infinite;
}
.btn-cta svg { animation: cta-nod 6s ease-in-out infinite; }
.btn-cta:hover { filter: brightness(1.08); }
.btn-cta:hover svg { animation: cta-nod 1.4s ease-in-out infinite; }
/* One animation for both layers (two would fight over background-position): the colours drift the
   whole time; the sheen waits off to one side, crosses between 50% and 80%, and waits off the other. */
@keyframes cta-flow {
  0%   { background-position: 150% 0, 0 0; }
  50%  { background-position: 150% 0, -100% 0; }
  80%  { background-position: -50% 0, -160% 0; }
  100% { background-position: -50% 0, -200% 0; }
}
@keyframes cta-glow {
  0%, 100% { box-shadow: 0 10px 30px -10px rgba(90, 200, 232, 0.55), 0 0 0 0 rgba(95, 211, 141, 0); }
  50% { box-shadow: 0 14px 40px -8px rgba(95, 211, 141, 0.6), 0 0 0 6px rgba(95, 211, 141, 0.12); }
}
@keyframes cta-nod {
  0%, 60%, 100% { transform: none; }
  70% { transform: translateY(3px); }
  80% { transform: translateY(-1px); }
  88% { transform: translateY(1px); }
}
.scroll-cue { margin-block-start: 56px; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; color: var(--dim); font-size: 0.8125rem; text-decoration: none; }
.scroll-cue svg { width: 18px; height: 18px; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 0.6; } 50% { transform: translateY(6px); opacity: 1; } }

/* Hero facts: four short promises under the button, separated by dots. */
.hero-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; color: var(--dim); font-size: 0.875rem; }
.hero-facts li { display: inline-flex; align-items: center; }
.hero-facts li + li::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.6; margin-inline: 12px; }

/* Scene details: the lead says what it is; these say how it behaves. One quiet card, a dot per line. */
.points {
  list-style: none; margin: 28px auto 0; padding: 18px 22px; display: grid; gap: 10px;
  max-width: 560px; width: 100%; text-align: start;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 0.9375rem; line-height: 1.65; color: var(--muted);
}
.points li { display: grid; grid-template-columns: 8px 1fr; gap: 12px; align-items: baseline; }
.points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); transform: translateY(-2px); }
.scene-switch { margin-block-start: 26px; }

/* The day rail: the six times of the sample day, fixed at the side; the one you're reading about is lit.
   Wide windows only (it would crowd the text on smaller ones). */
.day-rail {
  position: fixed; z-index: 20; top: 50%; inset-inline-end: 28px; transform: translateY(-50%);
  opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s;
}
.day-rail.is-visible { opacity: 1; visibility: visible; }
.day-rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: relative; }
.day-rail ol::before { content: ""; position: absolute; inset-block: 14px; inset-inline-end: 5.5px; width: 1px; background: var(--line); }
.day-rail a { display: grid; grid-template-columns: auto 12px; grid-template-areas: "name dot" "time dot"; column-gap: 12px; align-items: center; justify-items: end; padding: 5px 0; text-decoration: none; color: var(--dim); }
.rail-dot { grid-area: dot; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); position: relative; transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease); }
.rail-name { grid-area: name; font-size: 0.8125rem; font-weight: 500; line-height: 1.3; transition: color 0.3s; }
.rail-time { grid-area: time; font-size: 0.75rem; line-height: 1.3; opacity: 0; max-height: 0; overflow: hidden; transition: opacity 0.3s, max-height 0.3s; }
.day-rail a:hover { color: var(--text); }
.day-rail .is-current a { color: var(--text); }
.day-rail .is-current .rail-dot { background: var(--grad); border-color: transparent; transform: scale(1.15); box-shadow: 0 0 0 5px rgba(95, 211, 141, 0.16); }
.day-rail .is-current .rail-time { opacity: 1; max-height: 1.4em; color: var(--muted); }
@media (max-width: 1180px), (max-height: 560px) { .day-rail { display: none; } }

/* Everything it does: the full list, as a grid of small cards. */
.feature-grid { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 980px; width: 100%; text-align: start; }
.scene > .feature-grid { max-width: 980px; }
.feature-grid li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 0.9375rem; line-height: 1.55; font-weight: 500; }
.feature-grid .ico { width: 20px; height: 20px; fill: none; stroke: var(--check); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-block-start: 2px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* Tabs (hub, looks) */
.tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-block-start: 28px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tab { font: inherit; font-size: 0.9375rem; font-weight: 500; color: var(--muted); background: transparent; border: 0; padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: background 0.25s, color 0.25s; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--chip-active); color: var(--text); }

/* Feature list ("never in the way") */
.quiet-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; text-align: start; max-width: 760px; }
.quiet-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.quiet-list svg { width: 26px; height: 26px; stroke: var(--icon); margin-block-start: 2px; }
.quiet-list strong { font-weight: 700; }
.quiet-list span { color: var(--muted); }
@media (max-width: 640px) { .quiet-list { grid-template-columns: 1fr; } }

/* Privacy in brief */
.promises { list-style: none; padding: 0; margin: 36px 0 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 900px; text-align: start; }
.promises li { padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.promises strong { display: block; margin-block-end: 6px; }
.promises span { color: var(--muted); font-size: 0.9375rem; line-height: 1.65; display: block; }
@media (max-width: 760px) { .promises { grid-template-columns: 1fr; } }
.text-link { color: var(--link); text-decoration: none; font-weight: 500; }
.text-link:hover { text-decoration: underline; }

/* Final call */
.scene-final h2 { font-size: clamp(2.5rem, 7vw, 5rem); }
.scene-final .lead { margin-block-end: 32px; }

/* First open (the app isn't notarized): calm, numbered, one time only, each step with a picture of
   the macOS screen and the button to click. The download buttons scroll here (site.js). */
.scene > .install { max-width: 940px; width: 100%; }
.install { margin-block-start: 48px; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); text-align: start; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); scroll-margin-block-start: calc(var(--menubar-h) + 24px); outline: none; }
.install h3 { font-size: 1.25rem; margin-block-end: 6px; }
.install-lead { color: var(--muted); font-size: 0.9375rem; max-width: 640px; }
.install-started { display: none; align-items: center; gap: 10px; margin-block-end: 14px; font-weight: 600; font-size: 0.9375rem; }
.install-started::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(95, 211, 141, 0.18); }
.install.is-started .install-started { display: flex; }
.install.is-flash { animation: install-flash 1.6s ease-out; }
@keyframes install-flash { 0% { box-shadow: 0 0 0 0 rgba(95, 211, 141, 0.55); } 100% { box-shadow: 0 0 0 18px rgba(95, 211, 141, 0); } }
.install ol { list-style: none; counter-reset: step; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.install li { counter-increment: step; display: grid; gap: 14px; align-content: start; padding: 12px 12px 16px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.install li p { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 0.9375rem; line-height: 1.55; padding-inline: 4px; }
.install li p::before { content: counter(step); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.8125rem; color: #04140c; background: var(--grad); }
:root:lang(ar) .install li p::before { content: counter(step, arabic-indic); }
@media (max-width: 720px) { .install { padding: 20px 16px; } .install ol { grid-template-columns: 1fr; } }

/* The macOS screens. Dark windows in the dark theme, light ones in the light theme. */
.mac-shot {
  --m-desk: linear-gradient(160deg, #2b3350, #1a1d2e 60%, #2a2032);
  --m-win: #262628; --m-bar: #2f2f31; --m-side: #222224; --m-card: #303032; --m-line: rgba(255, 255, 255, 0.14);
  --m-text: #f2f2f2; --m-dim: rgba(255, 255, 255, 0.55); --m-btn: #48484a; --m-blue: #0a84ff;
  margin: 0; height: 216px; border-radius: 12px; overflow: hidden; position: relative;
  display: grid; place-items: center; background: var(--m-desk); color: var(--m-text);
  font: 500 12px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "IBM Plex Sans Arabic", "Inter", sans-serif;
  user-select: none;
}
:root[data-theme="light"] .mac-shot {
  --m-desk: linear-gradient(160deg, #cfd9ee, #e9e4f0 60%, #f3e3d8);
  --m-win: #f6f6f6; --m-bar: #ececec; --m-side: #e8e8ea; --m-card: #ffffff; --m-line: rgba(0, 0, 0, 0.1);
  --m-text: #1d1d1f; --m-dim: rgba(0, 0, 0, 0.5); --m-btn: #e3e3e5; --m-blue: #007aff;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .mac-shot {
    --m-desk: linear-gradient(160deg, #cfd9ee, #e9e4f0 60%, #f3e3d8);
    --m-win: #f6f6f6; --m-bar: #ececec; --m-side: #e8e8ea; --m-card: #ffffff; --m-line: rgba(0, 0, 0, 0.1);
    --m-text: #1d1d1f; --m-dim: rgba(0, 0, 0, 0.5); --m-btn: #e3e3e5; --m-blue: #007aff;
  }
}
.mac-win { width: 86%; border-radius: 10px; background: var(--m-win); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(0, 0, 0, 0.4); overflow: hidden; }
.mac-bar { height: 24px; display: flex; align-items: center; gap: 8px; padding-inline: 9px; background: var(--m-bar); border-block-end: 1px solid var(--m-line); }
.mac-lights { display: inline-flex; gap: 5px; direction: ltr; }
.mac-lights i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.mac-lights i:nth-child(2) { background: #febc2e; }
.mac-lights i:nth-child(3) { background: #28c840; }
.mac-title { flex: 1; text-align: center; font-size: 11px; color: var(--m-dim); margin-inline-end: 37px; }
.mac-line { display: block; height: 6px; border-radius: 3px; background: var(--m-line); }
.mac-lines { display: grid; gap: 5px; justify-items: center; width: 100%; }
.mac-appicon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(180deg, #8e9aaf, #5b6577); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 2px 6px rgba(0, 0, 0, 0.3); }
.mac-appicon svg { width: 26px; height: 26px; }

/* The button to click: a soft accent ring, and a cursor that taps it now and then. */
.target { position: relative; }
.target::after { content: ""; position: absolute; inset: -5px; border-radius: 12px; border: 2px solid #5fd38d; box-shadow: 0 0 0 4px rgba(95, 211, 141, 0.25); animation: target-ring 2.4s ease-in-out infinite; pointer-events: none; }
.mac-cursor { position: absolute; width: 13px; height: 18px; inset-inline-end: 6px; bottom: -10px; z-index: 2; animation: cursor-tap 2.4s ease-in-out infinite; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35)); }
@keyframes target-ring { 0%, 100% { opacity: 0.55; transform: scale(1); } 45% { opacity: 1; transform: scale(1.03); } }
@keyframes cursor-tap { 0%, 35%, 100% { transform: translate(6px, 6px); } 45% { transform: none; } 52% { transform: scale(0.88); } 60% { transform: none; } }

/* 1. The disk image window */
.mac-dmg-body { height: 118px; display: flex; align-items: center; justify-content: space-around; padding-inline: 12px; }
.mac-file { display: grid; justify-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; font-size: 11px; }
.mac-file b { font-weight: 500; }
.mac-drag { width: 56px; color: #5fd38d; animation: drag-hint 2.4s ease-in-out infinite; }
:dir(rtl) .mac-drag { transform: scaleX(-1); }
@keyframes drag-hint { 0%, 100% { opacity: 0.45; translate: -4px 0; } 50% { opacity: 1; translate: 4px 0; } }
:dir(rtl) .mac-drag { animation-name: drag-hint-rtl; }
@keyframes drag-hint-rtl { 0%, 100% { opacity: 0.45; translate: 4px 0; } 50% { opacity: 1; translate: -4px 0; } }
.mac-folder { width: 48px; height: 38px; border-radius: 4px 4px 6px 6px; position: relative; background: linear-gradient(180deg, #6cc4f5, #3a9fe3); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.mac-folder::before { content: ""; position: absolute; top: -5px; inset-inline-start: 0; width: 18px; height: 8px; border-radius: 3px 3px 0 0; background: #5ab6ee; }
.mac-folder::after { content: "A"; position: absolute; inset: 9px 0 0; text-align: center; font: 700 16px/1 -apple-system, sans-serif; color: rgba(255, 255, 255, 0.85); }

/* 2 and 4. The alerts */
.mac-alert { width: 210px; padding: 12px 14px 10px; border-radius: 14px; background: var(--m-win); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.55), 0 0 0 0.5px rgba(0, 0, 0, 0.4); display: grid; justify-items: center; gap: 7px; text-align: center; }
.mac-alert .mac-appicon { width: 38px; height: 38px; border-radius: 9px; }
.mac-alert .mac-appicon svg { width: 22px; height: 22px; }
.mac-alert-title { font-size: 12px; font-weight: 700; }
.mac-alert .mac-lines { margin-block-end: 4px; }
.mac-btn { display: block; width: 100%; height: 24px; line-height: 24px; border-radius: 7px; background: var(--m-btn); font-size: 11.5px; font-weight: 500; text-align: center; white-space: nowrap; }
.mac-btn.default { background: var(--m-blue); color: #fff; }
.mac-btn.small { width: auto; display: inline-block; padding-inline: 12px; height: 22px; line-height: 22px; flex: none; }

/* 3. System Settings › Privacy & Security */
.mac-settings { width: 92%; }
.mac-split { display: grid; grid-template-columns: 42% 1fr; height: 148px; }
.mac-side { background: var(--m-side); padding: 8px 6px; display: grid; align-content: start; gap: 4px; border-inline-end: 1px solid var(--m-line); }
.mac-side-row { display: flex; align-items: center; gap: 5px; height: 18px; padding-inline: 5px; border-radius: 5px; font-size: 10px; white-space: nowrap; overflow: hidden; }
.mac-side-row .mac-line { height: 5px; }
.mac-side-row.on { background: var(--m-blue); color: #fff; }
.mac-hand { width: 11px; height: 11px; border-radius: 3px; flex: none; background: #fff; opacity: 0.9; }
.mac-main { padding: 10px 12px; display: grid; align-content: start; gap: 6px; text-align: start; }
.mac-h { font-size: 12.5px; }
.mac-sec { font-size: 10.5px; color: var(--m-dim); font-weight: 600; margin-block-start: 30px; }
.mac-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; background: var(--m-card); border: 1px solid var(--m-line); }
.mac-card .mac-lines { justify-items: start; }
.mac-card .mac-lines { min-width: 0; flex: 1; }
@media (max-width: 480px) {
  .mac-settings { width: 96%; }
  .mac-split { grid-template-columns: 38% 1fr; }
  .mac-main { padding-inline: 8px; }
  .mac-card { padding: 8px; }
  .mac-card .mac-lines { display: none; }
  .mac-side-row { font-size: 9px; padding-inline: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .target::after, .mac-cursor, .mac-drag, .install.is-flash { animation: none; }
}

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; padding-block: 28px 0; color: var(--dim); font-size: 0.875rem; border-block-start: 1px solid var(--line); }
.site-footer .row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.site-footer nav { display: flex; gap: 20px; margin-inline-start: auto; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.wordmark {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(3.5rem, 15vw, 11rem); line-height: 1.1; text-align: center; white-space: nowrap;
  margin-block: 28px -0.3em;
  background: linear-gradient(180deg, color-mix(in srgb, var(--text) 18%, transparent) 20%, transparent 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none; pointer-events: none;
}

/* ---------- Floating download pill ---------- */
.float-cta {
  position: fixed; z-index: 30; inset-inline: 0; margin-inline: auto;
  bottom: max(16px, env(safe-area-inset-bottom));
  width: max-content; max-width: calc(100% - 2 * var(--gutter));
  display: flex; align-items: center; gap: 12px;
  padding-block: 7px; padding-inline: 16px 7px; border-radius: 999px;
  background: var(--header-bg); border: 1px solid var(--line);
  backdrop-filter: saturate(170%) blur(20px); -webkit-backdrop-filter: saturate(170%) blur(20px);
  box-shadow: 0 14px 44px -12px rgba(0, 0, 0, 0.35);
  opacity: 0; transform: translateY(calc(100% + 24px));
  transition: transform 0.5s var(--ease), opacity 0.3s ease;
}
.float-cta.is-visible { opacity: 1; transform: none; }
.float-text { display: grid; line-height: 1.35; }
.float-text strong { font-size: 0.9375rem; }
.float-text span { font-size: 0.8125rem; color: var(--dim); }

/* ---------- Privacy page ---------- */
.page { padding-block: calc(var(--menubar-h) + 34 * var(--u) + 72px) 64px; }
.page-hero { padding-block-end: 40px; }
.page-hero h1 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(2.5rem, 6.4vw, 4.5rem); line-height: 1.12; margin-block-end: 18px; }
:root:lang(ar) .page-hero h1 { line-height: 1.3; }
.lead { color: var(--muted); font-size: 1.1875rem; max-width: 640px; }
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-block-start: 32px; max-width: 760px; }
.promise div { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; gap: 12px; font-weight: 500; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.promise svg { width: 22px; height: 22px; stroke: var(--check); flex: none; }
@media (max-width: 640px) { .promise { grid-template-columns: 1fr; } }
.page-section { padding-block: clamp(36px, 5vw, 60px); border-block-start: 1px solid var(--line); }
.page-section h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.625rem, 3.2vw, 2.25rem); margin-block-end: 18px; }
.prose { max-width: 720px; }
.prose p, .prose ul { color: var(--muted); margin-block: 0 16px; }
.prose ul { padding-inline-start: 1.2em; }
.prose li { margin-block-end: 8px; }
.prose li::marker { color: var(--check); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--link); }
.updated { color: var(--dim); font-size: 0.9375rem; }
.netmap { display: grid; grid-template-columns: 1fr auto 1.4fr; align-items: center; margin-block: 8px; }
.net-mac { padding: 22px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); text-align: center; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.net-mac strong { display: block; font-size: 1.0625rem; margin-block-end: 6px; }
.net-mac span { color: var(--muted); font-size: 0.875rem; line-height: 1.6; display: block; }
.net-lines { width: 64px; height: 100%; min-height: 220px; }
.net-lines path { stroke: var(--net-line); stroke-width: 1.5; fill: none; stroke-dasharray: 3 4; }
.net-dest { display: grid; gap: 12px; }
.net-dest div { padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.net-dest strong { display: block; font-size: 1rem; }
.net-dest span { color: var(--muted); font-size: 0.875rem; line-height: 1.6; }
:dir(rtl) .net-lines { transform: scaleX(-1); }
@media (max-width: 720px) { .netmap { grid-template-columns: 1fr; gap: 12px; } .net-lines { display: none; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-sky.is-fading { transition: none; }
  .scroll-cue svg { animation: none; }
  .float-cta { transform: none; transition: opacity 0.2s linear; }
  .btn { transition: none; }
  .btn-cta, .btn-cta svg { animation: none; }
  .hero-arrow, .hero-arrow path { animation: none; stroke-dashoffset: 0; }
}

