/* Salah website design system — built from Design/tokens/ */

/* --------------------------------------------------------------------------
   Self-hosted Markazi Text (SIL Open Font License 1.1, Google Fonts v28)
   Weights 500 (Medium) for headings/methods and 600 (SemiBold) for names.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Markazi Text";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("assets/fonts/markazi-text-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
    U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF,
    U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4,
    U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24,
    U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47,
    U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59,
    U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A,
    U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89,
    U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: "Markazi Text";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("assets/fonts/markazi-text-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Markazi Text";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("assets/fonts/markazi-text-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   Design Tokens — Light (default)
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light dark;

  --font-display: "Markazi Text", Georgia, serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-urdu: "Noto Nastaliq Urdu", "Geeza Pro", "Markazi Text", serif;
  --font-bengali: "Noto Serif Bengali", "Kohinoor Bangla", "Bangla MN", serif;

  /* Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #f2f2f7;
  --bg-elevated: #ffffff;

  /* Labels */
  --label-primary: #000000;
  --label-secondary: rgba(60, 60, 67, 0.78);
  --label-tertiary: rgba(60, 60, 67, 0.62);
  --label-quaternary: rgba(60, 60, 67, 0.18);
  --label-on-accent: #261900;

  /* Separators & fills */
  --separator-default: rgba(60, 60, 67, 0.12);
  --fill-primary: rgba(120, 120, 128, 0.2);
  --fill-secondary: rgba(120, 120, 128, 0.16);
  --fill-tertiary: rgba(118, 118, 128, 0.12);

  /* Accent (gold) */
  --accent-default: #986f05;
  --accent-text: #7a5700;
  --accent-fill: #cca55b;
  --accent-fill-hover: #be974b;

  /* Elevation & glass */
  --shadow-key: rgba(0, 0, 0, 0.12);
  --shadow-ambient: rgba(0, 0, 0, 0.06);
  --glass-stroke: rgba(255, 255, 255, 0.6);

  /* Five prayer skies */
  --fajr-sky-top: #e4effe;
  --fajr-sky-bottom: #fcf5fc;
  --fajr-tint: #5178b0;
  --fajr-text: #3d5f91;

  --dhuhr-sky-top: #dcf2ff;
  --dhuhr-sky-bottom: #f0f9ff;
  --dhuhr-tint: #2180ac;
  --dhuhr-text: #06668d;

  --asr-sky-top: #feead8;
  --asr-sky-bottom: #fff6ed;
  --asr-tint: #a5661e;
  --asr-text: #874f07;

  --maghrib-sky-top: #f7e9f6;
  --maghrib-sky-bottom: #ffe7e8;
  --maghrib-tint: #ae5a60;
  --maghrib-text: #8e444a;

  --isha-sky-top: #e9edff;
  --isha-sky-bottom: #f5f7ff;
  --isha-tint: #6872ad;
  --isha-text: #51598e;

  /* Active phase defaults to Dhuhr when JS is disabled */
  --phase-sky-top: var(--dhuhr-sky-top);
  --phase-sky-bottom: var(--dhuhr-sky-bottom);
  --phase-tint: var(--dhuhr-tint);
  --phase-text: var(--dhuhr-text);

  /* Layout metrics */
  --content-max: 1200px;
  --gutter: 120px;
  --section-py: 160px;
}

/* Dark appearance (color.dark.json) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #000000;
    --bg-secondary: #1c1c1e;
    --bg-elevated: #2c2c2e;

    --label-primary: #ffffff;
    --label-secondary: rgba(235, 235, 245, 0.64);
    --label-tertiary: rgba(235, 235, 245, 0.44);
    --label-quaternary: rgba(235, 235, 245, 0.16);
    --label-on-accent: #261900;

    --separator-default: rgba(84, 84, 88, 0.5);
    --fill-primary: rgba(120, 120, 128, 0.36);
    --fill-secondary: rgba(120, 120, 128, 0.32);
    --fill-tertiary: rgba(118, 118, 128, 0.24);

    --accent-default: #cca55b;
    --accent-text: #e1c188;
    --accent-fill: #cca55b;
    --accent-fill-hover: #d7b26d;

    --shadow-key: rgba(0, 0, 0, 0.5);
    --shadow-ambient: rgba(0, 0, 0, 0.3);
    --glass-stroke: rgba(255, 255, 255, 0.15);

    --fajr-sky-top: #0b1c34;
    --fajr-sky-bottom: #1a2f4f;
    --fajr-tint: #aac8f4;
    --fajr-text: #c9defd;

    --dhuhr-sky-top: #011f2e;
    --dhuhr-sky-bottom: #01344a;
    --dhuhr-tint: #94cff1;
    --dhuhr-text: #bbe3fb;

    --asr-sky-top: #2c1600;
    --asr-sky-bottom: #462600;
    --asr-tint: #ecbb8e;
    --asr-text: #f8d5b6;

    --maghrib-sky-top: #261426;
    --maghrib-sky-bottom: #4d1e22;
    --maghrib-tint: #f5b2b5;
    --maghrib-text: #fecfd0;

    --isha-sky-top: #161932;
    --isha-sky-bottom: #272c4d;
    --isha-tint: #bac3f2;
    --isha-text: #d4dbfb;
  }
}

/* Light increased contrast (color.light-increased-contrast.json) */
@media (prefers-contrast: more) {
  :root {
    --bg-secondary: #ebebf0;
    --label-secondary: rgba(60, 60, 67, 0.92);
    --label-tertiary: rgba(60, 60, 67, 0.76);
    --label-quaternary: rgba(60, 60, 67, 0.36);
    --fill-primary: rgba(120, 120, 128, 0.28);
    --fill-secondary: rgba(120, 120, 128, 0.24);
    --fill-tertiary: rgba(118, 118, 128, 0.2);
    --accent-default: #7a5700;
    --accent-text: #4d3600;
    --accent-fill-hover: #d7b26d;
    --glass-stroke: rgba(255, 255, 255, 0.8);

    --fajr-tint: #3d5f91;
    --fajr-text: #2b4770;
    --dhuhr-tint: #06668d;
    --dhuhr-text: #024d6b;
    --asr-tint: #874f07;
    --asr-text: #673a00;
    --maghrib-tint: #8e444a;
    --maghrib-text: #6d3036;
    --isha-tint: #51598e;
    --isha-text: #3c426e;
  }
}

/* Dark increased contrast (color.dark-increased-contrast.json) */
@media (prefers-color-scheme: dark) and (prefers-contrast: more) {
  :root {
    --bg-secondary: #242426;
    --bg-elevated: #363638;
    --label-secondary: rgba(235, 235, 245, 0.84);
    --label-tertiary: rgba(235, 235, 245, 0.6);
    --label-quaternary: rgba(235, 235, 245, 0.32);
    --fill-primary: rgba(120, 120, 128, 0.44);
    --fill-secondary: rgba(120, 120, 128, 0.4);
    --fill-tertiary: rgba(118, 118, 128, 0.32);
    --accent-default: #e1c188;
    --accent-text: #f9ecd6;
    --glass-stroke: rgba(255, 255, 255, 0.25);

    --fajr-tint: #c9defd;
    --fajr-text: #e4effe;
    --dhuhr-tint: #bbe3fb;
    --dhuhr-text: #dcf2ff;
    --asr-tint: #f8d5b6;
    --asr-text: #feead8;
    --maghrib-tint: #fecfd0;
    --maghrib-text: #ffe7e8;
    --isha-tint: #d4dbfb;
    --isha-text: #e9edff;
  }
}

/* Active phase mapping */
:root[data-phase="fajr"] {
  --phase-sky-top: var(--fajr-sky-top);
  --phase-sky-bottom: var(--fajr-sky-bottom);
  --phase-tint: var(--fajr-tint);
  --phase-text: var(--fajr-text);
}

:root[data-phase="dhuhr"] {
  --phase-sky-top: var(--dhuhr-sky-top);
  --phase-sky-bottom: var(--dhuhr-sky-bottom);
  --phase-tint: var(--dhuhr-tint);
  --phase-text: var(--dhuhr-text);
}

:root[data-phase="asr"] {
  --phase-sky-top: var(--asr-sky-top);
  --phase-sky-bottom: var(--asr-sky-bottom);
  --phase-tint: var(--asr-tint);
  --phase-text: var(--asr-text);
}

:root[data-phase="maghrib"] {
  --phase-sky-top: var(--maghrib-sky-top);
  --phase-sky-bottom: var(--maghrib-sky-bottom);
  --phase-tint: var(--maghrib-tint);
  --phase-text: var(--maghrib-text);
}

:root[data-phase="isha"] {
  --phase-sky-top: var(--isha-sky-top);
  --phase-sky-bottom: var(--isha-sky-bottom);
  --phase-tint: var(--isha-tint);
  --phase-text: var(--isha-text);
}

/* --------------------------------------------------------------------------
   Base & Accessibility
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg-primary);
  color: var(--label-primary);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  position: relative;
  margin: 0;
  background: var(--bg-primary);
  color: var(--label-primary);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
}

/* 2px accent/default focus ring on all interactive controls */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-default);
  outline-offset: 2px;
  border-radius: 6px;
}

.btn:focus-visible,
.header-download:focus-visible,
.skip-link:focus-visible {
  border-radius: 999px;
}

.badge-link:focus-visible {
  border-radius: 10px;
}

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent-fill);
  color: var(--label-on-accent);
  font-size: 15px;
  font-weight: 600;
}

.skip-link:focus {
  inset-inline-start: 16px;
}

/* Layout containers */
.container {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-py);
}

.section-band {
  background: var(--bg-secondary);
}

/* Typography helpers */
.section-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 54px;
  line-height: 58px;
  letter-spacing: -0.27px;
  color: var(--label-primary);
}

.section-lead {
  font-size: 19px;
  line-height: 30px;
  color: var(--label-secondary);
}

[dir="rtl"] .section-heading {
  font-size: 52px;
  line-height: 72px;
  letter-spacing: 0;
}

[dir="rtl"] .section-lead {
  font-size: 19px;
  line-height: 34px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding-inline: 26px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease, opacity 150ms ease;
}

.btn-primary {
  background: var(--accent-fill);
  color: var(--label-on-accent);
}

.btn-primary:hover {
  background: var(--accent-fill-hover);
}

.btn-secondary {
  background: var(--fill-tertiary);
  color: var(--label-primary);
}

.btn-secondary:hover {
  background: var(--fill-secondary);
}

.badge-link {
  display: inline-block;
  line-height: 0;
  transition: opacity 150ms ease;
}

.badge-link:hover {
  opacity: 0.88;
}

.badge-link img {
  height: 54px;
  width: auto;
}

/* --------------------------------------------------------------------------
   Shared Site Header
   -------------------------------------------------------------------------- */
.site-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 10;
  height: 80px;
  display: flex;
  align-items: center;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  line-height: 33px;
  color: var(--label-primary);
}

[dir="rtl"] .brand-name {
  line-height: 36px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-block: 6px;
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  color: var(--label-secondary);
  white-space: nowrap;
  transition: color 150ms ease;
}

.nav-link:hover {
  color: var(--label-primary);
}

.nav-link[aria-current="page"] {
  font-weight: 600;
  color: var(--label-primary);
}

.nav-globe {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.header-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding-inline: 16px;
  border-radius: 999px;
  background: var(--accent-fill);
  color: var(--label-on-accent);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  transition: background-color 150ms ease;
}

.header-download:hover {
  background: var(--accent-fill-hover);
}

/* --------------------------------------------------------------------------
   Home Hero & Day Arc
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: 80px;
  min-height: 1200px;
  background: linear-gradient(
    to bottom,
    var(--phase-sky-top) 0%,
    var(--phase-sky-bottom) 62%,
    var(--bg-primary) 100%
  );
  overflow: hidden;
}

.hero-stage {
  position: relative;
  width: 100%;
  max-width: 1440px;
  height: 1120px;
  margin-inline: auto;
}

.day-arc-desktop {
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  overflow: visible;
}

.day-arc-phone {
  display: none;
  pointer-events: none;
  overflow: visible;
}

.arc-horizon {
  stroke: var(--separator-default);
  stroke-width: 1;
}

.arc-track {
  fill: none;
  stroke: var(--label-quaternary);
  stroke-width: 2;
}

.arc-progress {
  fill: none;
  stroke: var(--phase-tint);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.arc-dot-passed {
  fill: var(--phase-tint);
}

.arc-dot-future {
  fill: var(--bg-primary);
  stroke: var(--label-tertiary);
  stroke-width: 1.5;
}

.arc-dot-next {
  fill: var(--bg-primary);
  stroke: var(--accent-default);
  stroke-width: 2.5;
}

.arc-sun-halo {
  fill: var(--phase-tint);
  opacity: 0.2;
}

.arc-sun-dot {
  fill: var(--phase-tint);
  stroke: var(--bg-primary);
  stroke-width: 3;
}

.day-arc-phone .arc-sun-dot {
  stroke-width: 2.5;
}

.arc-label-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  fill: var(--label-primary);
}

.arc-label-time {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 15px;
  fill: var(--label-secondary);
}

.arc-label-next .arc-label-name,
.arc-label-next .arc-label-time {
  fill: var(--accent-text);
  font-weight: 600;
}

.day-arc-phone .arc-label-name {
  font-size: 16px;
}

.day-arc-phone .arc-label-time {
  font-size: 12px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin-inline: auto;
  padding-top: 181px;
  padding-inline: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

[dir="rtl"] .hero-copy {
  padding-top: 176px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 74px;
  line-height: 74px;
  letter-spacing: -0.74px;
  color: var(--phase-text);
}

[dir="rtl"] .hero-title {
  font-size: 72px;
  line-height: 86px;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 680px;
  margin-top: 22px;
  font-size: 20px;
  line-height: 30px;
  color: var(--label-secondary);
}

[dir="rtl"] .hero-lead {
  margin-top: 10px;
  line-height: 34px;
}

.hero-cta {
  margin-top: 32px;
}

[dir="rtl"] .hero-cta {
  margin-top: 22px;
}

.hero-note {
  margin-top: 14px;
  font-size: 15px;
  line-height: 20px;
  color: var(--label-secondary);
}

[dir="rtl"] .hero-note {
  line-height: 24px;
}

.hero-devices {
  position: absolute;
  inset-inline: 0;
  top: 589px;
  height: 531px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000000 0%,
    #000000 72%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000000 0%,
    #000000 72%,
    transparent 100%
  );
}

.hero-devices-cluster {
  position: relative;
  margin-top: 40px;
  width: 318.2px;
}

.device-frame.hero-iphone {
  width: 318.2px;
}

/* Switch English Hero iPhone screen by active clock phase */
.hero-phase-screen {
  display: none;
}

:root[data-phase="fajr"] .hero-phase-screen[data-screen-phase="fajr"],
:root[data-phase="dhuhr"] .hero-phase-screen[data-screen-phase="dhuhr"],
:root[data-phase="asr"] .hero-phase-screen[data-screen-phase="asr"],
:root[data-phase="maghrib"] .hero-phase-screen[data-screen-phase="maghrib"],
:root[data-phase="isha"] .hero-phase-screen[data-screen-phase="isha"],
:root:not([data-phase]) .hero-phase-screen[data-screen-phase="dhuhr"] {
  display: block;
}

.device-frame.hero-watch {
  position: absolute;
  top: 128px;
  inset-inline-start: calc(100% + 28px);
  width: 195.2px;
}

/* On English Home, Hero Watch matches Dhuhr's countdown (Asr 2:16:00), so show on Dhuhr only */
.device-frame.hero-watch-dhuhr-only {
  display: none;
}

:root[data-phase="dhuhr"] .device-frame.hero-watch-dhuhr-only,
:root:not([data-phase]) .device-frame.hero-watch-dhuhr-only {
  display: block;
}

/* --------------------------------------------------------------------------
   Device Frames (proportional geometry for iPhone, Watch, iPad, Mac, TV)
   -------------------------------------------------------------------------- */
.device-frame {
  position: relative;
  display: block;
  width: 100%;
  flex-shrink: 0;
}

.device-screen {
  position: absolute;
  background: #000000;
  overflow: hidden;
}

.device-screen picture,
.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* iPhone (430 x 896) */
.device-iphone {
  aspect-ratio: 430 / 896;
}

.device-iphone .device-body {
  position: absolute;
  left: 0.698%;
  top: 0;
  width: 98.605%;
  height: 100%;
  background: #000000;
  border: 1.5px solid rgba(138, 138, 142, 0.55);
  border-radius: 16.51% / 7.92%;
  box-shadow: 0 20px 48px var(--shadow-key), 0 2px 6px var(--shadow-ambient);
}

.device-iphone .device-screen {
  left: 3.256%;
  top: 1.228%;
  width: 93.488%;
  height: 97.545%;
  border-radius: 14.925% / 6.865%;
}

.device-iphone .btn-action,
.device-iphone .btn-vol-up,
.device-iphone .btn-vol-down,
.device-iphone .btn-side {
  position: absolute;
  background: #3a3a3c;
  width: 0.93%;
  border-radius: 2px;
}

.device-iphone .btn-action {
  left: 0;
  top: 18.527%;
  height: 3.795%;
}

.device-iphone .btn-vol-up {
  left: 0;
  top: 25.223%;
  height: 6.92%;
}

.device-iphone .btn-vol-down {
  left: 0;
  top: 33.705%;
  height: 6.92%;
}

.device-iphone .btn-side {
  right: 0;
  top: 27.902%;
  height: 10.938%;
}

/* Apple Watch (244 x 352) */
.device-watch {
  aspect-ratio: 244 / 352;
}

.device-watch .watch-band-top,
.device-watch .watch-band-bottom {
  position: absolute;
  left: 14.754%;
  width: 65.574%;
  height: 17.045%;
  background: #2c2c2e;
  border-radius: 11.25% / 30%;
}

.device-watch .watch-band-top {
  top: 0;
}

.device-watch .watch-band-bottom {
  bottom: 0;
}

.device-watch .watch-crown {
  position: absolute;
  left: 93.852%;
  top: 30.682%;
  width: 4.508%;
  height: 10.795%;
  background: #48484a;
  border-radius: 3.5px;
}

.device-watch .watch-side-btn {
  position: absolute;
  left: 93.852%;
  top: 48.864%;
  width: 2.869%;
  height: 14.773%;
  background: #3a3a3c;
  border-radius: 2.5px;
}

.device-watch .device-body {
  position: absolute;
  left: 0;
  top: 11.364%;
  width: 95.082%;
  height: 77.273%;
  background: #1c1c1e;
  border: 1.5px solid rgba(99, 99, 102, 0.8);
  border-radius: 25% / 21.324%;
  box-shadow: 0 20px 48px var(--shadow-key), 0 2px 6px var(--shadow-ambient);
}

.device-watch .device-screen {
  left: 4.918%;
  top: 14.773%;
  width: 85.246%;
  height: 70.455%;
  border-radius: 22.115% / 18.548%;
}

/* iPad (1258 x 882) */
.device-ipad {
  aspect-ratio: 1258 / 882;
}

.device-ipad .device-body {
  position: absolute;
  inset: 0;
  background: #000000;
  border: 1px solid rgba(138, 138, 142, 0.55);
  border-radius: 3.657% / 5.215%;
  box-shadow: 0 14px 36px var(--shadow-key), 0 2px 6px var(--shadow-ambient);
}

.device-ipad .device-screen {
  left: 1.908%;
  top: 2.721%;
  width: 96.184%;
  height: 94.558%;
  border-radius: 1.818% / 2.638%;
}

/* MacBook (1160 x 674) */
.device-macbook {
  aspect-ratio: 1160 / 674;
}

.device-macbook .device-body {
  position: absolute;
  left: 6.552%;
  top: 0;
  width: 86.897%;
  height: 97.329%;
  background: #000000;
  border: 1px solid rgba(138, 138, 142, 0.55);
  border-radius: 1.984% 1.984% 0.595% 0.595% / 3.049% 3.049% 0.915% 0.915%;
  box-shadow: 0 16px 40px var(--shadow-key), 0 2px 6px var(--shadow-ambient);
}

.device-macbook .device-screen {
  left: 7.759%;
  top: 2.671%;
  width: 84.483%;
  height: 91.988%;
  border-radius: 0.4% / 0.65%;
}

.device-macbook .macbook-base {
  position: absolute;
  left: 0;
  top: 97.033%;
  width: 100%;
  height: 2.671%;
  background: linear-gradient(to bottom, #d9d9de, #9999a1);
  border-radius: 2px 2px 10px 10px;
}

.device-macbook .macbook-notch {
  position: absolute;
  left: 43.103%;
  top: 97.033%;
  width: 13.793%;
  height: 1.039%;
  background: #8e8e93;
  border-radius: 0 0 4px 4px;
}

/* Apple TV (1960 x 1172) */
.device-appletv {
  aspect-ratio: 1960 / 1172;
}

.device-appletv .tv-neck {
  position: absolute;
  left: 47.959%;
  top: 94.71%;
  width: 4.082%;
  height: 4.096%;
  background: #2c2c2e;
}

.device-appletv .tv-foot {
  position: absolute;
  left: 35.714%;
  top: 98.464%;
  width: 28.571%;
  height: 1.536%;
  background: #3a3a3c;
  border-radius: 999px;
}

.device-appletv .device-body {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 95.563%;
  background: #000000;
  border: 1.5px solid #48484a;
  border-radius: 0.918% / 1.607%;
  box-shadow: 0 12px 32px var(--shadow-key), 0 2px 6px var(--shadow-ambient);
}

.device-appletv .device-screen {
  left: 1.02%;
  top: 1.706%;
  width: 97.959%;
  height: 92.15%;
  border-radius: 0.3% / 0.55%;
}

/* --------------------------------------------------------------------------
   Section: Skies ("Each prayer has its own sky.")
   -------------------------------------------------------------------------- */
.skies {
  padding-top: 96px;
  padding-bottom: 160px;
}

.skies-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 680px;
}

[dir="rtl"] .skies-intro {
  gap: 16px;
}

.skies-intro .section-lead {
  max-width: 640px;
}

.sky-strip {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-radius: 28px;
  overflow: hidden;
}

.sky-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px;
  padding: 28px 24px;
}

.sky-card[data-sky="fajr"] {
  background: linear-gradient(to bottom, var(--fajr-sky-top), var(--fajr-sky-bottom));
  --card-tint: var(--fajr-tint);
  --card-text: var(--fajr-text);
}

.sky-card[data-sky="dhuhr"] {
  background: linear-gradient(to bottom, var(--dhuhr-sky-top), var(--dhuhr-sky-bottom));
  --card-tint: var(--dhuhr-tint);
  --card-text: var(--dhuhr-text);
}

.sky-card[data-sky="asr"] {
  background: linear-gradient(to bottom, var(--asr-sky-top), var(--asr-sky-bottom));
  --card-tint: var(--asr-tint);
  --card-text: var(--asr-text);
}

.sky-card[data-sky="maghrib"] {
  background: linear-gradient(to bottom, var(--maghrib-sky-top), var(--maghrib-sky-bottom));
  --card-tint: var(--maghrib-tint);
  --card-text: var(--maghrib-text);
}

.sky-card[data-sky="isha"] {
  background: linear-gradient(to bottom, var(--isha-sky-top), var(--isha-sky-bottom));
  --card-tint: var(--isha-tint);
  --card-text: var(--isha-text);
}

.sky-card-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.sky-glyph {
  width: 30px;
  height: 30px;
  color: var(--card-tint);
  flex-shrink: 0;
}

.sky-name-time {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sky-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 46px;
  line-height: 50px;
  color: var(--card-text);
}

[dir="rtl"] .sky-name {
  line-height: 58px;
}

.sky-time {
  font-size: 17px;
  font-weight: 500;
  line-height: 22px;
  color: var(--card-text);
}

.sky-caption {
  font-size: 15px;
  line-height: 22px;
  color: var(--label-secondary);
}

[dir="rtl"] .sky-caption {
  line-height: 24px;
}

/* --------------------------------------------------------------------------
   Section: At a Glance
   -------------------------------------------------------------------------- */
.glance-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 680px;
}

[dir="rtl"] .glance-intro {
  gap: 16px;
}

.glance-intro .section-lead {
  max-width: 640px;
}

.glance-row-top {
  margin-top: 72px;
  display: grid;
  grid-template-columns: minmax(286px, 286fr) minmax(0, 629fr) minmax(0, 220fr);
  column-gap: 32px;
  row-gap: 28px;
}

.glance-row-top .device-iphone {
  max-width: 266.6px;
}

.glance-row-bottom {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 580fr 584fr;
  column-gap: 36px;
  row-gap: 28px;
}

.glance-item {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  align-items: start;
  min-width: 0;
}

.glance-stage {
  align-self: end;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  width: 100%;
}

.glance-caption {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

[dir="rtl"] .glance-caption {
  gap: 6px;
}

.glance-caption h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 24px;
  color: var(--label-primary);
}

[dir="rtl"] .glance-caption h3 {
  line-height: 30px;
}

.glance-caption p {
  font-size: 16px;
  line-height: 24px;
  color: var(--label-secondary);
  max-width: 440px;
}

[dir="rtl"] .glance-caption p {
  line-height: 28px;
}

/* --------------------------------------------------------------------------
   Section: Reminders
   -------------------------------------------------------------------------- */
.reminders-grid {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 584px);
  gap: 96px;
  align-items: center;
  justify-content: space-between;
}

.reminders-text {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.reminders-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

[dir="rtl"] .reminders-intro {
  gap: 16px;
}

.points-list {
  list-style: none;
  padding: 0;
}

.points-list li {
  padding-block: 16px;
  border-top: 1px solid var(--separator-default);
  font-size: 17px;
  font-weight: 500;
  line-height: 24px;
  color: var(--label-primary);
}

[dir="rtl"] .points-list li {
  padding-block: 14px;
  line-height: 28px;
}

.reminders-visual {
  position: relative;
  width: 100%;
  max-width: 584px;
  min-height: 640px;
}

.device-frame.reminders-iphone {
  position: relative;
  margin-inline-start: auto;
  width: 301px;
  max-width: 100%;
}

.notification-card {
  position: absolute;
  inset-inline-start: 0;
  top: 168px;
  width: min(386px, 92%);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 26px;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-stroke);
  box-shadow: 0 20px 48px var(--shadow-key), 0 2px 6px var(--shadow-ambient);
}

.notification-icon {
  width: 38px;
  height: 38px;
  margin-top: 2px;
  flex-shrink: 0;
}

.notification-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.notification-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.notification-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  color: var(--label-primary);
}

.notification-time {
  font-size: 13px;
  line-height: 18px;
  color: var(--label-secondary);
  flex-shrink: 0;
}

.notification-subtitle {
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  color: var(--label-primary);
}

.notification-message {
  font-size: 15px;
  line-height: 20px;
  color: var(--label-primary);
}

/* --------------------------------------------------------------------------
   Section: Accuracy & Calculation Methods
   -------------------------------------------------------------------------- */
.accuracy {
  padding-top: 0;
  padding-bottom: 160px;
}

.accuracy-grid {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 96px;
  align-items: start;
}

.accuracy-text {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.accuracy-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

[dir="rtl"] .accuracy-intro {
  gap: 16px;
}

.qibla-block {
  padding-top: 28px;
  border-top: 1px solid var(--separator-default);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sub-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 36px;
  color: var(--label-primary);
}

[dir="rtl"] .sub-heading {
  font-size: 34px;
  line-height: 46px;
}

.qibla-block p {
  font-size: 17px;
  line-height: 27px;
  color: var(--label-secondary);
}

[dir="rtl"] .qibla-block p {
  line-height: 30px;
}

.methods-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.methods-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
}

.methods-list {
  list-style: none;
  padding: 0;
}

.methods-list li {
  padding-block: 11px;
  border-top: 1px solid var(--separator-default);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 30px;
  color: var(--label-primary);
}

[dir="rtl"] .methods-list li {
  line-height: 34px;
}

/* --------------------------------------------------------------------------
   Section: Languages
   -------------------------------------------------------------------------- */
.languages-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 284px;
  gap: 96px;
  align-items: center;
}

.languages-text {
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-width: 0;
}

.languages-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
}

[dir="rtl"] .languages-intro {
  gap: 16px;
}

.language-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 36px;
  row-gap: 14px;
  color: var(--label-primary);
}

.language-list li {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 42px;
  line-height: 50px;
  white-space: nowrap;
}

[dir="rtl"] .language-list li {
  line-height: 56px;
}

.language-list li.lang-ar-fa {
  font-size: 46px;
  line-height: 56px;
}

[dir="rtl"] .language-list li.lang-ar-fa {
  line-height: 64px;
}

.language-list li.lang-ur {
  font-family: var(--font-urdu);
  font-weight: 400;
  font-size: 32px;
  line-height: 70px;
}

.language-list li.lang-bn {
  font-family: var(--font-bengali);
  font-weight: 500;
  font-size: 34px;
  line-height: 50px;
}

.device-frame.languages-phone {
  width: 284px;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   Section: Privacy (Home) & Facts Grid (shared with Privacy page)
   -------------------------------------------------------------------------- */
.privacy-home-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
}

[dir="rtl"] .privacy-home-intro {
  gap: 16px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.privacy-home .facts-grid {
  margin-top: 56px;
}

.fact-item {
  border-top: 1px solid var(--separator-default);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fact-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 30px;
  color: var(--label-primary);
}

[dir="rtl"] .fact-title {
  line-height: 38px;
}

.fact-text {
  font-size: 16px;
  line-height: 24px;
  color: var(--label-secondary);
}

[dir="rtl"] .fact-text {
  line-height: 28px;
}

.privacy-home-cta {
  margin-top: 56px;
}

/* --------------------------------------------------------------------------
   Section: Open Source
   -------------------------------------------------------------------------- */
.opensource-grid {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  gap: 96px;
  align-items: start;
}

.opensource-text {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.opensource-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

[dir="rtl"] .opensource-intro {
  gap: 16px;
}

.opensource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.packages-list {
  list-style: none;
  padding: 0;
}

.package-row {
  padding-block: 20px;
  border-top: 1px solid var(--separator-default);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.package-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  line-height: 34px;
  color: var(--label-primary);
  display: inline-block;
  align-self: flex-start;
}

.package-name:hover {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.package-desc {
  font-size: 16px;
  line-height: 24px;
  color: var(--label-secondary);
}

[dir="rtl"] .package-desc {
  line-height: 28px;
}

/* --------------------------------------------------------------------------
   Section: Get Salah (always Isha night sky)
   -------------------------------------------------------------------------- */
.get-salah {
  background: linear-gradient(
    to bottom,
    var(--isha-sky-top),
    var(--isha-sky-bottom)
  );
  padding-top: 140px;
  padding-bottom: 150px;
  text-align: center;
}

.get-salah-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.get-salah-icon {
  width: 112px;
  height: 112px;
}

.get-salah-title {
  margin-top: 32px;
  max-width: 900px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 60px;
  line-height: 64px;
  letter-spacing: -0.3px;
  color: var(--isha-text);
}

[dir="rtl"] .get-salah-title {
  font-size: 58px;
  line-height: 78px;
  letter-spacing: 0;
}

.get-salah-lead {
  margin-top: 16px;
  max-width: 760px;
  font-size: 19px;
  line-height: 30px;
  color: var(--label-secondary);
}

[dir="rtl"] .get-salah-lead {
  margin-top: 10px;
  line-height: 34px;
}

.get-salah-cta {
  margin-top: 32px;
}

/* --------------------------------------------------------------------------
   Sub-pages: Support & Privacy Page Header
   -------------------------------------------------------------------------- */
.page-header {
  padding-top: 80px;
  background: linear-gradient(
    to bottom,
    var(--phase-sky-top) 0%,
    var(--phase-sky-bottom) 70%,
    var(--bg-primary) 100%
  );
}

.page-title-block {
  padding-top: 88px;
  padding-bottom: 104px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.page-privacy .page-title-block {
  padding-bottom: 96px;
  gap: 16px;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 68px;
  line-height: 72px;
  letter-spacing: -0.34px;
  color: var(--phase-text);
}

.page-effective {
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  color: var(--label-secondary);
}

.page-lead {
  max-width: 720px;
  font-size: 20px;
  line-height: 30px;
  color: var(--label-secondary);
}

/* --------------------------------------------------------------------------
   Support Page
   -------------------------------------------------------------------------- */
.support-body {
  padding-top: 8px;
  padding-bottom: 160px;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 96px;
  align-items: start;
}

.support-section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 40px;
  line-height: 44px;
  color: var(--label-primary);
  margin-bottom: 12px;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 1px solid var(--separator-default);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--separator-default);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  font-size: 19px;
  font-weight: 600;
  line-height: 26px;
  color: var(--label-primary);
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  width: 22px;
  height: 22px;
  color: var(--label-tertiary);
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform 200ms ease, color 150ms ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--label-primary);
}

.faq-answer {
  padding-bottom: 24px;
  padding-inline-end: 46px;
  font-size: 17px;
  line-height: 27px;
  color: var(--label-secondary);
}

.support-rail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.support-rail .support-section-title {
  margin-bottom: 0;
}

.contact-card {
  background: var(--bg-secondary);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 32px;
  color: var(--label-primary);
}

.contact-card p {
  font-size: 16px;
  line-height: 24px;
  color: var(--label-secondary);
}

.contact-card .btn {
  margin-top: 8px;
}

.text-link {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-offset: 2px;
}

.text-link:hover {
  opacity: 0.82;
}

.contact-email {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

.security-note {
  padding-top: 4px;
  font-size: 15px;
  line-height: 22px;
  color: var(--label-secondary);
}

/* --------------------------------------------------------------------------
   Privacy Policy Page
   -------------------------------------------------------------------------- */
.in-short {
  padding-bottom: 96px;
}

.in-short-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 34px;
  line-height: 40px;
  color: var(--label-primary);
  margin-bottom: 24px;
}

.privacy-body {
  padding-bottom: 160px;
}

.privacy-grid {
  display: grid;
  grid-template-columns: 264px minmax(0, 720px);
  gap: 96px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-heading {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--label-primary);
  padding-bottom: 4px;
}

.toc-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 6px;
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  color: var(--label-secondary);
  transition: color 150ms ease;
}

.toc-link::before {
  content: "";
  width: 2px;
  height: 22px;
  border-radius: 1px;
  background: transparent;
  flex-shrink: 0;
  transition: background-color 150ms ease;
}

.toc-link:hover {
  color: var(--label-primary);
}

.toc-link[aria-current="true"] {
  font-weight: 600;
  color: var(--label-primary);
}

.toc-link[aria-current="true"]::before {
  background: var(--accent-default);
}

.policy-article {
  display: flex;
  flex-direction: column;
  gap: 56px;
  min-width: 0;
}

.policy-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.policy-section h2 {
  scroll-margin-top: 32px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 36px;
  line-height: 42px;
  color: var(--label-primary);
}

.policy-section p,
.policy-section li {
  font-size: 18px;
  line-height: 30px;
  color: var(--label-primary);
}

.policy-section ul {
  padding-inline-start: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.policy-section strong {
  font-weight: 600;
}

.policy-section a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-offset: 2px;
}

.policy-section a:hover {
  opacity: 0.82;
}

/* --------------------------------------------------------------------------
   Shared Site Footer (never carries funding links)
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--separator-default);
  padding-top: 72px;
  padding-bottom: 56px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.footer-about {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 340px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
}

.footer-brand span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 31px;
  color: var(--label-primary);
}

[dir="rtl"] .footer-brand span {
  line-height: 34px;
}

.footer-tagline {
  font-size: 15px;
  line-height: 22px;
  color: var(--label-secondary);
}

[dir="rtl"] .footer-tagline {
  line-height: 24px;
}

.footer-columns {
  display: flex;
  gap: 88px;
  align-items: flex-start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h2 {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--label-primary);
}

[dir="rtl"] .footer-col h2 {
  line-height: 22px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 15px;
  line-height: 22px;
  color: var(--label-secondary);
  white-space: nowrap;
  transition: color 150ms ease;
}

[dir="rtl"] .footer-col a {
  line-height: 24px;
}

.footer-col a:hover {
  color: var(--label-primary);
}

.footer-copy {
  font-size: 13px;
  line-height: 18px;
  color: var(--label-secondary);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints (1100px, 880px, 600px)
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  :root {
    --gutter: 48px;
  }

  .hero-stage {
    height: 1020px;
  }

  .hero {
    min-height: 1100px;
  }

  .hero-copy {
    padding-top: 116px;
  }

  [dir="rtl"] .hero-copy {
    padding-top: 108px;
  }

  .hero-title {
    font-size: 56px;
    line-height: 58px;
    letter-spacing: -0.56px;
  }

  [dir="rtl"] .hero-title {
    font-size: 54px;
    line-height: 68px;
    letter-spacing: 0;
  }

  .hero-lead {
    max-width: 470px;
    margin-top: 16px;
    font-size: 17px;
    line-height: 26px;
  }

  [dir="rtl"] .hero-lead {
    max-width: 450px;
    line-height: 30px;
  }

  .hero-cta {
    margin-top: 24px;
  }

  .hero-devices {
    top: 490px;
  }

  .glance-row-top {
    grid-template-columns: minmax(0, 266.6fr) minmax(0, 629fr) minmax(0, 220fr);
    column-gap: 28px;
  }

  .reminders-grid,
  .accuracy-grid,
  .languages-grid,
  .opensource-grid,
  .support-grid,
  .privacy-grid {
    gap: 56px;
  }

  .support-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .privacy-grid {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .footer-columns {
    gap: 48px;
  }
}

@media (max-width: 880px) {
  :root {
    --section-py: 112px;
  }

  .hero {
    min-height: 0;
  }

  .hero-stage {
    height: auto;
    padding-bottom: 430px;
  }

  .day-arc-desktop {
    display: none;
  }

  .day-arc-phone {
    display: block;
    width: 100%;
    max-width: 500px;
    margin-inline: auto;
    margin-top: -20px;
  }

  .hero-copy {
    padding-top: 16px;
    padding-inline: 48px;
  }

  [dir="rtl"] .hero-copy {
    padding-top: 16px;
  }

  .hero-lead,
  [dir="rtl"] .hero-lead {
    max-width: 560px;
  }

  .hero-devices {
    top: auto;
    bottom: 0;
    height: 410px;
  }

  .hero-watch {
    display: none !important;
  }

  .sky-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sky-card {
    min-height: 240px;
  }

  .sky-card:last-child {
    grid-column: 1 / -1;
    min-height: 160px;
  }

  .glance-row-top {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .glance-row-bottom {
    grid-template-columns: 1fr;
    gap: 56px;
    margin-top: 56px;
  }

  .glance-item {
    display: flex;
    flex-direction: column;
    grid-row: auto;
    gap: 24px;
  }

  .glance-stage {
    align-self: stretch;
  }

  .glance-item .device-iphone {
    max-width: 280px;
  }

  .glance-item .device-watch {
    max-width: 220px;
  }

  .reminders-grid,
  .accuracy-grid,
  .languages-grid,
  .opensource-grid,
  .support-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .reminders-visual {
    min-height: 0;
    margin-inline: auto;
  }

  .languages-phone {
    margin-inline: auto;
  }

  .facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .toc {
    position: static;
  }

  .footer-top {
    flex-direction: column;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 24px;
    --section-py: 80px;
  }

  /* Compact Phone Header */
  .site-header {
    height: 64px;
  }

  .site-header .container {
    padding-inline: 20px;
  }

  .brand-link {
    gap: 10px;
  }

  .brand-icon {
    width: 30px;
    height: 30px;
  }

  .brand-name {
    font-size: 26px;
    line-height: 29px;
  }

  .site-nav {
    gap: 18px;
  }

  .nav-globe,
  .header-download {
    display: none;
  }

  /* Phone Hero: Day Arc sits above Copy, centered iPhone fades at bottom */
  .hero {
    padding-top: 64px;
    min-height: 0;
  }

  .hero-stage {
    height: auto;
    padding-bottom: 386px;
  }

  .day-arc-desktop {
    display: none;
  }

  .day-arc-phone {
    display: block;
    width: 100%;
    max-width: 440px;
    margin-inline: auto;
    margin-top: -20px;
  }

  .hero-copy {
    padding-top: 12px;
    padding-inline: 24px;
  }

  [dir="rtl"] .hero-copy {
    padding-top: 12px;
  }

  .hero-title {
    font-size: 46px;
    line-height: 48px;
    letter-spacing: -0.46px;
  }

  [dir="rtl"] .hero-title {
    font-size: 46px;
    line-height: 58px;
    letter-spacing: 0;
  }

  .hero-lead {
    margin-top: 14px;
    font-size: 17px;
    line-height: 26px;
  }

  [dir="rtl"] .hero-lead {
    margin-top: 12px;
    font-size: 17px;
    line-height: 30px;
  }

  .hero-cta {
    margin-top: 24px;
  }

  .badge-link img {
    height: 48px;
  }

  .hero-note {
    margin-top: 12px;
    font-size: 14px;
    line-height: 20px;
  }

  .hero-devices {
    top: auto;
    bottom: 0;
    height: 386px;
  }

  .hero-devices-cluster {
    margin-top: 20px;
    width: 266.6px;
  }

  .device-frame.hero-iphone {
    width: 266.6px;
  }

  /* Phone Typography */
  .section-heading {
    font-size: 36px;
    line-height: 40px;
    letter-spacing: -0.18px;
  }

  [dir="rtl"] .section-heading {
    font-size: 36px;
    line-height: 50px;
    letter-spacing: 0;
  }

  .section-lead {
    font-size: 17px;
    line-height: 26px;
  }

  [dir="rtl"] .section-lead {
    font-size: 17px;
    line-height: 30px;
  }

  /* Phone Skies: 5 stacked horizontal rows */
  .skies {
    padding-top: 64px;
    padding-bottom: 80px;
  }

  .sky-strip {
    margin-top: 36px;
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .sky-card,
  .sky-card:last-child {
    min-height: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
  }

  .sky-card-top {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .sky-name {
    font-size: 34px;
    line-height: 36px;
  }

  [dir="rtl"] .sky-name {
    font-size: 34px;
    line-height: 44px;
  }

  .sky-time {
    font-size: 15px;
    line-height: 20px;
  }

  .sky-caption {
    font-size: 14px;
    line-height: 20px;
    max-width: 136px;
    text-align: end;
  }

  /* Phone At a Glance */
  .glance-row-top {
    margin-top: 40px;
    gap: 48px;
  }

  .glance-row-bottom {
    margin-top: 48px;
    gap: 48px;
  }

  .glance-item {
    gap: 20px;
  }

  .glance-stage {
    justify-content: center;
  }

  .glance-caption h3 {
    font-size: 18px;
  }

  /* Phone Reminders */
  .reminders-text {
    gap: 28px;
  }

  .points-list li {
    font-size: 16px;
    line-height: 22px;
    padding-block: 14px;
  }

  .reminders-visual {
    padding-bottom: 24px;
  }

  .device-frame.reminders-iphone {
    margin-inline: auto;
    width: 266.6px;
  }

  .notification-card {
    top: 168px;
    inset-inline: 0;
    margin-inline: auto;
    width: 100%;
    max-width: 342px;
  }

  /* Phone Accuracy */
  .accuracy {
    padding-bottom: 80px;
  }

  .sub-heading {
    font-size: 26px;
    line-height: 30px;
  }

  [dir="rtl"] .sub-heading {
    font-size: 28px;
    line-height: 38px;
  }

  .methods-columns {
    grid-template-columns: 1fr;
  }

  .methods-list li {
    font-size: 21px;
    line-height: 26px;
  }

  .qibla-block p {
    font-size: 16px;
    line-height: 25px;
  }

  /* Phone Languages */
  .languages-text {
    gap: 32px;
  }

  .language-list {
    column-gap: 22px;
    row-gap: 8px;
  }

  .language-list li {
    font-size: 30px;
    line-height: 38px;
  }

  .language-list li.lang-ar-fa {
    font-size: 33px;
    line-height: 42px;
  }

  .language-list li.lang-ur {
    font-size: 23px;
    line-height: 52px;
  }

  .language-list li.lang-bn {
    font-size: 25px;
    line-height: 38px;
  }

  .device-frame.languages-phone {
    width: 266.6px;
  }

  /* Phone Privacy & Open Source */
  .facts-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .privacy-home .facts-grid {
    margin-top: 36px;
  }

  .privacy-home-cta {
    margin-top: 36px;
  }

  .opensource-actions {
    flex-direction: column;
    width: 100%;
  }

  .opensource-actions .btn,
  .contact-card .btn {
    width: 100%;
  }

  .package-row {
    padding-block: 18px;
    gap: 4px;
  }

  /* Phone Get Salah */
  .get-salah {
    padding-top: 88px;
    padding-bottom: 96px;
  }

  .get-salah-icon {
    width: 88px;
    height: 88px;
  }

  .get-salah-title {
    margin-top: 28px;
    font-size: 40px;
    line-height: 44px;
  }

  [dir="rtl"] .get-salah-title {
    font-size: 40px;
    line-height: 54px;
  }

  .get-salah-lead {
    margin-top: 14px;
    font-size: 17px;
    line-height: 26px;
  }

  .get-salah-cta {
    margin-top: 28px;
  }

  /* Phone Support & Privacy sub-pages */
  .page-header {
    padding-top: 64px;
  }

  .page-title-block,
  .page-privacy .page-title-block {
    padding-top: 48px;
    padding-bottom: 64px;
    gap: 14px;
  }

  .page-title {
    font-size: 48px;
    line-height: 52px;
    letter-spacing: -0.24px;
  }

  .page-effective {
    font-size: 14px;
  }

  .page-lead {
    font-size: 17px;
    line-height: 26px;
  }

  .support-body {
    padding-bottom: 88px;
  }

  .support-grid {
    gap: 64px;
  }

  .support-section-title {
    font-size: 32px;
    line-height: 36px;
  }

  .faq-item summary {
    font-size: 17px;
    line-height: 24px;
    padding-block: 18px;
    gap: 16px;
  }

  .faq-answer {
    padding-inline-end: 0;
    font-size: 16px;
    line-height: 25px;
  }

  .contact-card {
    padding: 24px 22px;
    border-radius: 22px;
    gap: 10px;
  }

  .in-short {
    padding-bottom: 56px;
  }

  .in-short-heading {
    font-size: 30px;
    line-height: 36px;
  }

  .privacy-body {
    padding-bottom: 88px;
  }

  .privacy-grid {
    gap: 56px;
  }

  .policy-article {
    gap: 44px;
  }

  .policy-section h2 {
    font-size: 30px;
    line-height: 36px;
  }

  .policy-section p,
  .policy-section li {
    font-size: 17px;
    line-height: 28px;
  }

  /* Phone Footer */
  .site-footer {
    padding-top: 48px;
    padding-bottom: 40px;
  }

  .footer-inner {
    gap: 36px;
  }

  .footer-top {
    gap: 36px;
  }

  .footer-columns {
    flex-wrap: wrap;
    gap: 32px 40px;
  }
}

/* Reduced motion: disable transitions */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .badge-link,
  .nav-link,
  .header-download,
  .faq-chevron,
  .toc-link,
  .toc-link::before,
  .footer-col a {
    transition: none;
  }
}
