/* ============================================================
   ALAZAL PLATFORM — Cinematic Landing Page Styles
   Brand: Navy #100051 · Teal #06ffac · Violet accent #5b3ee5
   Sister site to the Alazal Group landing page — same brand
   palette + Main Shape, but distinct cinematic moments:
     - centered-logo split top bar
     - phone-mockup hero with floating glass chips
     - static brand strip
     - numbered legacy cards
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'DIN Next LT Arabic';
  src: url('fonts/DINNextLTArabic-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DIN Next LT Arabic';
  src: url('fonts/DINNextLTArabic-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'DIN Next LT Arabic';
  src: url('fonts/DINNextLTArabic-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'DIN Next LT Arabic';
  src: url('fonts/DINNextLTArabic-Heavy.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  --navy: #100051;
  --navy-900: #0a0033;
  --navy-800: #1a0a6b;
  --navy-700: #2a1a85;
  --teal: #06ffac;
  --teal-soft: #06ffac1a;
  --teal-mid: #06ffac40;
  --teal-glow: #06ffac26;
  --violet: #5b3ee5;
  --violet-soft: #5b3ee526;
  --white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-dim: rgba(255, 255, 255, 0.48);

  --point-radius: 40% 0 40% 0;
  --point-radius-mirror: 0 40% 0 40%;

  --shape-rect-sm:  28px 6px 28px 6px;
  --shape-rect:     40px 8px 40px 8px;
  --shape-rect-lg:  64px 10px 64px 10px;

  --radius-sm: 12px;
  --radius-md: 18px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-10: 5rem;
  --space-12: 6rem;
  --space-16: 8rem;

  --container: 1200px;
  --container-wide: 1320px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 180ms;
  --dur-med: 320ms;
  --dur-slow: 640ms;

  --topbar-h: 116px;
  --topbar-h-mobile: 64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  font-family: 'DIN Next LT Arabic', system-ui, -apple-system, Segoe UI, Tahoma, sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  touch-action: pan-y pinch-zoom;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
}
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; }

/* ---------- A11y utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: 0;
  right: 1rem;
  background: var(--teal);
  color: var(--navy);
  padding: 0.5rem 1rem;
  font-weight: 700;
  border-radius: 8px;
  z-index: 1000;
  transform: translateY(-200%);
  transition: transform var(--dur-fast);
}
.skip-link:focus { transform: translateY(0.5rem); }
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}
section { position: relative; }
.section__header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}
.section__header h2 {
  font-size: clamp(1.85rem, 3.8vw, 3rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}
.section__lede {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.8;
}
.eyebrow {
  display: inline-block;
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.accent { color: var(--teal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.85rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  transition: transform var(--dur-med) var(--ease-out),
              background var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
  white-space: nowrap;
  min-height: 48px;
}
.btn--primary {
  background: var(--teal);
  color: var(--navy);
}
.btn--primary:hover {
  transform: translateY(-2px);
  background: #1bffb6;
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

/* ============================================================
   TOP BAR — centered logo, split nav. Distinct from group site.
   ============================================================ */
.topbar {
  position: fixed;
  top: 0;
  right: 0; left: 0;
  z-index: 100;
  background: rgba(16, 0, 81, 0);
  transition: background var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.topbar.is-scrolled {
  background: rgba(10, 0, 51, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.topbar__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.85rem clamp(1rem, 3vw, 2rem) 0.5rem;
  max-width: var(--container-wide);
  margin: 0 auto;
  gap: 1rem;
}
.topbar__toggle {
  width: 44px;
  height: 44px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 10px;
  grid-column: 1;
  justify-self: start;
  transition: background var(--dur-fast);
}
.topbar__toggle:hover { background: rgba(255, 255, 255, 0.06); }
.topbar__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--teal);
  transition: transform var(--dur-med) var(--ease-out),
              opacity var(--dur-fast);
}
.topbar__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.topbar__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.topbar__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.topbar__logo {
  display: inline-flex;
  align-items: center;
  grid-column: 2;
  justify-self: center;
}
.topbar__logo img {
  height: 50px;
  width: auto;
  transition: transform var(--dur-med) var(--ease-out);
}
.topbar__logo:hover img {
  transform: scale(1.05);
}

.topbar__cta {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: var(--teal);
  color: var(--navy);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform var(--dur-med) var(--ease-out),
              background var(--dur-med) var(--ease-out);
}
.topbar__cta:hover {
  transform: translateY(-2px);
  background: #1bffb6;
}
.topbar__cta svg {
  width: 14px;
  height: 14px;
}

.topbar__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.6rem, 2vw, 1.6rem);
  padding: 0 1rem 0.6rem;
  border-bottom: 1px solid transparent;
  flex-wrap: wrap;
}
.topbar__nav a {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.4rem;
  color: var(--white);
  transition: color var(--dur-fast);
  letter-spacing: 0.005em;
}
.topbar__nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width var(--dur-med) var(--ease-out);
  border-radius: 1px;
}
.topbar__nav a:hover,
.topbar__nav a.is-active {
  color: var(--teal);
}
.topbar__nav a:hover::after,
.topbar__nav a.is-active::after {
  width: 80%;
}

.topbar__menu {
  position: fixed;
  top: var(--topbar-h-mobile);
  right: 0; left: 0;
  background: rgba(10, 0, 51, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem clamp(1rem, 3vw, 2rem) 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform var(--dur-med) var(--ease-out),
              opacity var(--dur-fast);
}
.topbar__menu:not([hidden]) {
  transform: translateY(0);
  opacity: 1;
}
.topbar__menu[hidden] { display: none !important; }
.topbar__menu a {
  font-size: 1.15rem;
  font-weight: 700;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color var(--dur-fast), padding-right var(--dur-med) var(--ease-out);
}
.topbar__menu a:hover {
  color: var(--teal);
  padding-right: 0.5rem;
}

@media (max-width: 899px) {
  .topbar__row {
    padding: 0.5rem clamp(1rem, 3vw, 1.5rem);
    grid-template-columns: 1fr auto 1fr;
  }
  .topbar__toggle { display: flex; }
  .topbar__logo img { height: 38px; }
  .topbar__cta {
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
  }
  .topbar__cta svg { width: 12px; height: 12px; }
  .topbar__nav { display: none; }
}

/* ============================================================
   HERO — phone mockup + floating glass chips + aurora.
   ============================================================ */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--topbar-h) + 1.5rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 899px) {
  .hero { padding-top: calc(var(--topbar-h-mobile) + 1.25rem); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
}
.hero__title .accent {
  position: relative;
  display: inline-block;
}
.hero__title .accent::after {
  content: "";
  position: absolute;
  right: 0; left: 0;
  bottom: -0.05em;
  height: 3px;
  background: var(--teal);
  border-radius: 999px;
}

.hero__tagline {
  display: inline-block;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.04em;
  padding: 0.4rem 1.1rem;
  border: 1px solid var(--teal-mid);
  border-radius: 999px;
  background: var(--teal-soft);
  direction: rtl;
}
.hero__tagline-hash { color: rgba(6, 255, 172, 0.7); margin-inline-end: 0.05em; }

/* ---------- The Phone Stage ---------- */
.hero__stage {
  position: relative;
  width: min(280px, 70vw);
  aspect-ratio: 9 / 19.5;
  margin: clamp(0.5rem, 2vw, 1.25rem) auto;
}

/* Reusable phone mockup. */
.phone {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0a0033;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 38px;
  padding: 7px;
  box-shadow: 0 24px 48px -22px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.phone__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 18px;
  background: #050018;
  border-radius: 999px;
  z-index: 5;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.phone__screen {
  position: absolute;
  inset: 7px;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  border-radius: 32px;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 600ms var(--ease-out),
              transform 800ms var(--ease-out);
  z-index: 1;
}
.phone__screen.is-on {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}
.phone__shadow {
  position: absolute;
  bottom: -8%;
  left: 50%;
  width: 70%;
  height: 22px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
  filter: blur(14px);
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

.phone--hero {
  animation: phone-float 7s ease-in-out infinite alternate;
}
@keyframes phone-float {
  0%   { transform: translateY(0) rotate(-1.5deg); }
  100% { transform: translateY(-14px) rotate(1.5deg); }
}

/* Floating glass chips around the phone — dark glass for high-contrast white text. */
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  background: #0a0033;
  border: 1px solid rgba(6, 255, 172, 0.4);
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  z-index: 4;
  box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.55);
  animation: chip-bob 5s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}
.float-chip svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
  flex-shrink: 0;
}
.float-chip--1 { top: 8%;   right: -22%; }
.float-chip--2 { top: 38%;  left:  -28%; }
.float-chip--3 { bottom: 28%; right: -28%; }
.float-chip--4 { bottom: 6%;  left:  -16%; }
@keyframes chip-bob {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(6px, -10px); }
}

/* ---------- Hero store buttons ---------- */
.hero__stores {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* On smaller screens, pull the chips closer in so they don't bleed off. */
@media (max-width: 720px) {
  .float-chip { font-size: 0.78rem; padding: 0.45rem 0.7rem; }
  .float-chip--1 { right: -10%; }
  .float-chip--2 { left:  -10%; }
  .float-chip--3 { right: -10%; }
  .float-chip--4 { left:  -10%; }
}
@media (max-width: 480px) {
  .float-chip--1, .float-chip--3 { right: -2%; }
  .float-chip--2, .float-chip--4 { left:  -2%; }
}

/* ============================================================
   BRAND STRIP — static row of brand affirmations (no motion).
   ============================================================ */
.brandstrip {
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin: clamp(1rem, 3vw, 2rem) 0;
}
.brandstrip__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 2vw, 1.5rem) clamp(1rem, 3vw, 2.25rem);
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brandstrip__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
}
.brandstrip__list i {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--teal);
  border-radius: var(--point-radius);
  flex-shrink: 0;
}

/* ============================================================
   LEGACY — numbered cards with huge gradient numerals.
   ============================================================ */
.legacy {
  padding: clamp(2rem, 5vw, 4rem) 0;
}
.legacy__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
}
@media (min-width: 720px) {
  .legacy__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .legacy__grid { grid-template-columns: repeat(3, 1fr); }
}

.legacy-card {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.25rem) clamp(1.5rem, 2.5vw, 2rem);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
  opacity: 0;
  transform: translateY(24px);
}
.legacy-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 600ms var(--ease-out),
              transform 600ms var(--ease-out),
              border-color var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.legacy-card::before {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: 70%; height: 4px;
  background: linear-gradient(to left, var(--teal), transparent);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-out);
}
.legacy-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 255, 172, 0.35);
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.5);
}
.legacy-card:hover::before { opacity: 1; }

.legacy-card__num {
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  user-select: none;
}
.legacy-card h3 {
  position: relative;
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  margin-bottom: 0.85rem;
  z-index: 1;
}
.legacy-card p {
  position: relative;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.85;
  z-index: 1;
}

/* ============================================================
   DOWNLOAD CTA (panel)
   ============================================================ */
.download {
  padding: clamp(2rem, 5vw, 4rem) 0;
}
.download__panel {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--shape-rect-lg);
  text-align: center;
}

.download__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto;
}
@media (min-width: 540px) {
  .download__grid { grid-template-columns: 1fr 1fr; }
}
/* ---------- Store buttons (shared) ---------- */
.store-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: var(--white);
  text-decoration: none;
  transition: transform var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out),
              background var(--dur-med) var(--ease-out);
  min-height: 64px;
}
.store-btn:hover,
.store-btn:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(6, 255, 172, 0.5);
  background: rgba(255, 255, 255, 0.06);
}
.store-btn__glyph {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
}
.store-btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  gap: 0.15rem;
}
.store-btn__sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.store-btn__main {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
  direction: ltr;
}

/* ============================================================
   TEACHER CTA SECTION
   ============================================================ */
.teach {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}
.teach__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.25rem);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--shape-rect-lg);
}
.teach__inner .section__header { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }

.teach__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.teach__cta .btn { min-width: 240px; }
.teach__perks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .teach__perks { grid-template-columns: repeat(2, 1fr); }
}
.teach__perks li {
  display: flex;
  gap: 0.9rem;
  padding: 1.1rem 1.15rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--shape-rect-sm);
  align-items: flex-start;
}
.teach__perks li:nth-child(even) { border-radius: 6px 28px 6px 28px; }
.teach__perk-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 255, 172, 0.1);
  color: var(--teal);
  border-radius: 50% 0 50% 0;
}
.teach__perk-icon svg { width: 20px; height: 20px; }
.teach__perks h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.teach__perks p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  background: linear-gradient(to bottom, transparent 0%, var(--navy-900) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 760px) {
  .footer__top { grid-template-columns: 1.4fr 1fr; }
}
.footer__brand img {
  height: 60px;
  width: auto;
  margin-bottom: 1rem;
}
.footer__brand p {
  color: var(--text-muted);
  line-height: 1.85;
  font-size: 0.98rem;
  max-width: 540px;
}
.footer__tag {
  display: inline-block !important;
  margin-top: 1rem !important;
  padding: 0.4rem 1rem;
  background: var(--teal-soft);
  border: 1px solid var(--teal-mid);
  color: var(--teal) !important;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem !important;
  letter-spacing: 0.04em;
}

.footer__contact {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--shape-rect);
  padding: 1.5rem 1.4rem;
}
.footer__contact h3 {
  font-size: 1.05rem;
  color: var(--teal);
  margin-bottom: 1rem;
  font-weight: 700;
}
.footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.05rem;
  color: var(--white);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: 1rem;
  transition: color var(--dur-fast);
}
.footer__phone:hover { color: var(--teal); }
.footer__phone svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
}
.footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(6, 255, 172, 0.08);
  border: 1px solid rgba(6, 255, 172, 0.2);
  color: var(--white);
  border-radius: 12px;
  transition: background var(--dur-fast),
              border-color var(--dur-fast),
              color var(--dur-fast),
              transform var(--dur-fast);
}
.footer__socials a:hover {
  background: var(--teal);
  color: var(--navy);
  border-color: var(--teal);
  transform: translateY(-3px);
}
.footer__socials a.is-whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
}
.footer__socials a svg { width: 18px; height: 18px; }

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer__shaar {
  color: var(--teal);
  font-style: italic;
  font-weight: 500;
}

/* ============================================================
   "Coming Soon" pill + Snackbar (used by .js-coming-soon links)
   ============================================================ */
.store-btn.js-coming-soon {
  position: relative;
  cursor: pointer;
}
.store-btn.js-coming-soon::after {
  content: "قريباً";
  position: absolute;
  top: -8px;
  inset-inline-end: 12px;
  padding: 0.15rem 0.6rem;
  background: var(--teal);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
}

.snackbar {
  position: fixed;
  bottom: clamp(1rem, 3vw, 1.75rem);
  left: 50%;
  transform: translate(-50%, calc(100% + 1rem));
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.25rem;
  background: rgba(10, 0, 51, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 18px 36px -16px rgba(0, 0, 0, 0.6);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: transform 360ms var(--ease-spring),
              opacity 240ms var(--ease-out);
  max-width: calc(100% - 2rem);
}
.snackbar.is-open {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.snackbar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  color: var(--teal);
  flex-shrink: 0;
}
.snackbar__icon svg { width: 22px; height: 22px; }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Small screens fine-tuning
   ============================================================ */
@media (max-width: 480px) {
  .hero__title { font-size: 2.5rem; }
  .hero__stores {
    flex-direction: column;
    align-items: center;
  }
  .hero__stores .store-btn {
    width: auto;
    min-width: 220px;
    padding: 0.8rem 1.2rem;
    min-height: 58px;
  }
  .download__grid {
    grid-template-columns: 1fr;
    justify-items: center;
    max-width: 280px;
  }
  .download__grid .store-btn {
    width: auto;
    min-width: 220px;
    padding: 0.8rem 1.2rem;
    min-height: 58px;
  }
  .store-btn__main { font-size: 1.05rem; }
  .store-btn__sub  { font-size: 0.75rem; }
  .store-btn__glyph { width: 32px; height: 32px; }
}
