/* ==========================================================================
   WebDevTemplates — base.css
   Reset, design tokens, type scale, layout primitives, utilities.
   Every template copies this file into its own style.css (section 1 + 2).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS — the rebrand contract. Change these, change the brand.
   -------------------------------------------------------------------------- */
:root {
  /* Brand colours */
  --color-primary: #7c5cff;
  --color-primary-hover: #6a4ae6;
  --color-primary-contrast: #ffffff;
  --color-accent: #ffb648;

  /* Surfaces & text */
  --color-bg: #fffdf8;
  --color-surface: #fff4e6;
  --color-surface-2: #ffe9d1;
  --color-text: #2b2140;
  --color-text-muted: #6f6684;
  --color-border: #f0e4d6;

  /* Semantic */
  --color-success: #16a34a;
  --color-error: #dc2626;

  /* Typography */
  --font-heading: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  /* Arabic: used for both headings and body when <html lang="ar">. Swap per template
     (Cairo, Tajawal, Almarai, IBM Plex Sans Arabic, Noto Kufi Arabic…). */
  --font-arabic: "Almarai", "Segoe UI", Tahoma, system-ui, sans-serif;
  --weight-heading: 800;
  --leading-tight: 1.15;
  --leading-body: 1.6;

  /* Shape & depth */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgba(43, 33, 64, 0.06);
  --shadow: 0 6px 20px rgba(124, 92, 255, 0.10);
  --shadow-lg: 0 24px 60px rgba(124, 92, 255, 0.18);

  /* Layout */
  --container-max: 1200px;
  --container-pad: 1.25rem;
  --section-pad: clamp(4rem, 8vw, 7rem);
  --nav-height: 72px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.25s;
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--leading-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  color: var(--color-text);
}

h1, .h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4.25rem); letter-spacing: -0.02em; }
h2, .h2 { font-size: clamp(1.9rem, 3vw + 0.5rem, 2.9rem); letter-spacing: -0.02em; }
h3, .h3 { font-size: clamp(1.3rem, 1.5vw + 0.5rem, 1.6rem); }
h4, .h4 { font-size: 1.15rem; }

p { max-width: 65ch; }

.lead {
  font-size: clamp(1.1rem, 1vw + 0.7rem, 1.3rem);
  color: var(--color-text-muted);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.9rem;
}

.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.text-center p { margin-inline: auto; }

/* --------------------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow { max-width: 820px; }
.container--wide { max-width: 1400px; }

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

.section--tight { padding-block: calc(var(--section-pad) * 0.6); }
.section--surface { background: var(--color-surface); }
.section--primary {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}
.section--primary :is(h1, h2, h3, h4, .eyebrow, .lead) { color: inherit; }

.section__header {
  max-width: 680px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section__header--center {
  margin-inline: auto;
  text-align: center;
}
.section__header .lead { margin-top: 1rem; }

/* Grid */
.grid {
  display: grid;
  gap: var(--grid-gap, 1.5rem);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--grid-min, 280px)), 1fr)); }

@media (max-width: 1023px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* Split (two columns, text + media) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split--reverse > :first-child { order: 2; }
@media (max-width: 859px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

/* Flex helpers */
.flex { display: flex; gap: 1rem; }
.flex--center { align-items: center; }
.flex--between { justify-content: space-between; align-items: center; }
.flex--wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: var(--stack, 1rem); }

/* Blowout guard: grid/flex children default to min-width:auto, so one long
   unbreakable string (an email, a URL, a nowrap cell) can widen the page. */
.grid > *, .split > *, .flex > * { min-width: 0; }
.grid, .split { overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   5. 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;
}

.mt-1 { margin-top: 0.5rem; }  .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }  .mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 2rem; }

.hide-mobile { display: initial; }
.show-mobile { display: none; }
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: initial; }
}

/* --------------------------------------------------------------------------
   6. i18n / RTL — <html lang="ar" dir="rtl"> is set by the language toggle
   -------------------------------------------------------------------------- */
html[lang="ar"] {
  --font-heading: var(--font-arabic);
  --font-body: var(--font-arabic);
  --leading-body: 1.8;
  --leading-tight: 1.35;
}
html[lang="ar"] :is(h1, h2, h3, h4, .eyebrow, .badge, .btn, .nav__brand, .stat__value, .price-card__amount) {
  letter-spacing: 0;
}
html[lang="ar"] :is(.eyebrow, .badge, .btn, .logos__label, .tabs__btn) {
  text-transform: none;
}
html[lang="ar"] h1 { font-size: clamp(2.2rem, 4.5vw + 1rem, 3.9rem); }
/* English-only artefacts that should hide in Arabic and vice-versa */
html[lang="ar"] [data-only="en"],
html[lang="en"] [data-only="ar"] { display: none !important; }
/* Icons that point a direction (arrows) flip in RTL */
[dir="rtl"] .icon--dir { transform: scaleX(-1); }
/* Keep digits, prices and code in LTR even inside Arabic text */
.ltr, [dir="rtl"] :is(.price-card__amount, .stat__value, code, pre, .countdown__value, [type="tel"], [type="email"]) {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Language toggle button (in nav__actions) */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: color var(--dur), border-color var(--dur);
}
.lang-toggle:hover { color: var(--color-text); border-color: var(--color-text); }
html[lang="en"] .lang-toggle { font-family: var(--font-arabic); }

/* Scroll reveal (paired with main.js) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }


/* ==========================================================================
   WebDevTemplates — components.css
   Shared UI components + the standard section vocabulary.
   Every template copies this into style.css (section 3) and overrides below.
   ========================================================================== */

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  transition: background var(--dur), color var(--dur), border-color var(--dur),
              transform var(--dur), box-shadow var(--dur);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}
.btn--primary:hover { background: var(--color-primary-hover); box-shadow: var(--shadow); }

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--secondary:hover { border-color: var(--color-text); }

.btn--ghost { padding-inline: 0.5rem; color: var(--color-text); }
.btn--ghost:hover { color: var(--color-primary); }

.btn--accent { background: var(--color-accent); color: var(--color-text); }

.btn--lg { padding: 1.05rem 2.1rem; font-size: 1.08rem; }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
.btn--block { width: 100%; }

.btn__icon { width: 1.1em; height: 1.1em; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.btn-group--center { justify-content: center; }

/* --------------------------------------------------------------------------
   ICONS (SVG sprite)
   -------------------------------------------------------------------------- */
.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}
.icon-box .icon { width: 24px; height: 24px; }

/* --------------------------------------------------------------------------
   CARD
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card--surface { background: var(--color-surface); border-color: transparent; }
.card__title { margin-bottom: 0.6rem; }
.card__text { color: var(--color-text-muted); }
.card__media {
  margin: -2rem -2rem 1.5rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   BADGE / PILL
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
}
.badge--primary {
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   NAV
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.nav.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
/* Blur lives on a pseudo-element: backdrop-filter on .nav itself would make
   it the containing block for the fixed .nav__menu and break the mobile menu. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--color-bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.nav__brand .icon { width: 28px; height: 28px; color: var(--color-primary); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--dur);
}
.nav__links a:hover { color: var(--color-text); }
.nav__actions { display: flex; align-items: center; gap: 0.75rem; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.nav__toggle .icon { width: 26px; height: 26px; }
.nav__toggle .icon--close { display: none; }
.nav__toggle[aria-expanded="true"] .icon--menu { display: none; }
.nav__toggle[aria-expanded="true"] .icon--close { display: block; }

@media (max-width: 899px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    background: var(--color-bg);
    padding: 2rem var(--container-pad);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
  }
  [dir="rtl"] .nav__menu { transform: translateX(-100%); }
  .nav__menu.is-open { transform: none; }
  .nav__links { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .nav__links a { font-size: 1.25rem; color: var(--color-text); }
  .nav__actions { flex-direction: column; align-items: stretch; }
  .nav__actions .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 900px) {
  .nav__menu { display: contents; }
}

/* --------------------------------------------------------------------------
   HERO (variants: --center, --split, --fullscreen)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(4rem, 10vw, 8rem);
  overflow: hidden;
}
.hero--center { text-align: center; }
.hero--center .hero__content { max-width: 760px; margin-inline: auto; }
.hero--center p { margin-inline: auto; }
.hero--center .btn-group { justify-content: center; }
.hero--fullscreen { min-height: calc(100vh - var(--nav-height)); display: flex; align-items: center; }

.hero__content > * + * { margin-top: 1.5rem; }
.hero__title { margin-top: 0 !important; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.hero__meta li { display: flex; align-items: center; gap: 0.4rem; }
.hero__meta .icon { color: var(--color-success); }

/* decorative background blob (optional) */
.hero__glow {
  position: absolute;
  inset: auto;
  width: 60vw;
  max-width: 800px;
  aspect-ratio: 1;
  top: -20%;
  inset-inline-end: -15%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-primary) 25%, transparent), transparent 65%);
  pointer-events: none;
  z-index: -1;
}

/* --------------------------------------------------------------------------
   LOGOS STRIP
   -------------------------------------------------------------------------- */
.logos { padding-block: 2.5rem; border-block: 1px solid var(--color-border); }
.logos__label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
}
.logos__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem 4rem;
}
.logos__list li {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-text-muted);
  opacity: 0.6;
  transition: opacity var(--dur);
}
.logos__list li:hover { opacity: 1; }

/* --------------------------------------------------------------------------
   FEATURES
   -------------------------------------------------------------------------- */
.feature { padding: 0.5rem 0; }
.feature__title { margin-bottom: 0.5rem; }
.feature__text { color: var(--color-text-muted); }

.feature-row { margin-top: clamp(3rem, 7vw, 6rem); }
.feature-row:first-of-type { margin-top: 0; }
.feature-row img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.check-list { margin-top: 1.5rem; }
.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.check-list .icon { color: var(--color-success); margin-top: 0.2rem; }

/* --------------------------------------------------------------------------
   HOW IT WORKS / STEPS
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; }
.step { position: relative; }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.step__title { margin-bottom: 0.5rem; }
.step__text { color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   STATS
   -------------------------------------------------------------------------- */
.stats { text-align: center; }
.stat__value {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-primary);
}
.section--primary .stat__value { color: inherit; }
.stat__label { margin-top: 0.5rem; color: var(--color-text-muted); }
.section--primary .stat__label { color: inherit; opacity: 0.85; }

/* --------------------------------------------------------------------------
   PRICING
   -------------------------------------------------------------------------- */
.pricing-grid { align-items: stretch; }
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card--featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}
.price-card__badge {
  position: absolute;
  top: -0.9rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
}
.price-card__name { font-size: 1.1rem; }
.price-card__desc { color: var(--color-text-muted); font-size: 0.95rem; margin-top: 0.25rem; }
.price-card__price {
  margin: 1.5rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}
.price-card__amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-card__period { color: var(--color-text-muted); }
.price-card__features { flex: 1; margin-bottom: 1.75rem; }
.price-card__features li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.45rem 0;
  font-size: 0.95rem;
}
.price-card__features .icon { color: var(--color-success); margin-top: 0.15rem; }

/* --------------------------------------------------------------------------
   TESTIMONIALS
   -------------------------------------------------------------------------- */
.testimonial { display: flex; flex-direction: column; }
.testimonial__stars { display: flex; gap: 0.15rem; color: var(--color-accent); margin-bottom: 1rem; }
.testimonial__stars .icon { fill: currentColor; stroke: none; width: 18px; height: 18px; }
.testimonial__quote { flex: 1; font-size: 1.05rem; }
.testimonial__author { display: flex; align-items: center; gap: 0.85rem; margin-top: 1.5rem; }
.testimonial__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial__name { font-weight: 600; }
.testimonial__role { font-size: 0.875rem; color: var(--color-text-muted); }

/* Slider variant */
.slider { position: relative; }
.slider__track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > * {
  flex: 0 0 min(100%, 380px);
  scroll-snap-align: start;
}
.slider__controls { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.5rem; }
.slider__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur), color var(--dur);
}
.slider__btn:hover { background: var(--color-primary); color: var(--color-primary-contrast); border-color: var(--color-primary); }

/* --------------------------------------------------------------------------
   TEAM
   -------------------------------------------------------------------------- */
.member { text-align: center; }
.member__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}
.member__name { font-size: 1.1rem; }
.member__role { color: var(--color-text-muted); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   GALLERY / SHOWCASE
   -------------------------------------------------------------------------- */
.gallery-grid { --grid-gap: 1rem; }
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform var(--dur) var(--ease);
}
.gallery-grid a:hover img { transform: scale(1.03); }

/* --------------------------------------------------------------------------
   FAQ (accordion)
   -------------------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--color-border); }
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 0;
  text-align: start;
  font-weight: 600;
  font-size: 1.05rem;
}
.faq__q .icon { transition: transform var(--dur); color: var(--color-text-muted); }
.faq__q[aria-expanded="true"] .icon { transform: rotate(45deg); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.faq__a > div { overflow: hidden; }
.faq__a.is-open { grid-template-rows: 1fr; }
.faq__a p { color: var(--color-text-muted); padding-bottom: 1.35rem; }

/* --------------------------------------------------------------------------
   CTA BAND
   -------------------------------------------------------------------------- */
.cta-band {
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  padding: clamp(2.5rem, 6vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: inherit; }
.cta-band p { margin: 1rem auto 2rem; opacity: 0.9; }
.cta-band .btn--primary { background: var(--color-bg); color: var(--color-primary); }
.cta-band .btn--primary:hover { background: var(--color-surface); }

/* --------------------------------------------------------------------------
   FORMS
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.25rem; }
.form--inline { grid-template-columns: 1fr auto; align-items: start; }
@media (max-width: 539px) { .form--inline { grid-template-columns: 1fr; } }
.form__row { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 639px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 500; font-size: 0.95rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent);
}
.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--color-error); }
.field__error { font-size: 0.85rem; color: var(--color-error); display: none; }
.field.is-invalid .field__error { display: block; }
.form__status { font-size: 0.95rem; display: none; }
.form__status.is-success { display: block; color: var(--color-success); }
.form__status.is-error { display: block; color: var(--color-error); }

/* --------------------------------------------------------------------------
   CONTACT
   -------------------------------------------------------------------------- */
.contact-info { display: grid; gap: 1.5rem; }
.contact-info__item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info__item .icon-box { margin: 0; width: 44px; height: 44px; }
.contact-info__item strong { display: block; margin-bottom: 0.15rem; }
.contact-info__item span { color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-block: 4rem 2rem;
  font-size: 0.95rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
}
@media (max-width: 859px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 539px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand p { margin-top: 1rem; color: var(--color-text-muted); max-width: 32ch; }
.footer__col h4 { margin-bottom: 1.1rem; font-size: 0.95rem; }
.footer__col li { margin-bottom: 0.65rem; }
.footer__col a { color: var(--color-text-muted); transition: color var(--dur); }
.footer__col a:hover { color: var(--color-text); }
.footer__bottom {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}
.footer__social { display: flex; gap: 0.75rem; }
.footer__social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all var(--dur);
}
.footer__social a:hover { background: var(--color-primary); color: var(--color-primary-contrast); border-color: var(--color-primary); }

/* --------------------------------------------------------------------------
   MISC
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  inset-inline-end: 1.25rem;
  bottom: 1.25rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--dur), transform var(--dur);
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

.countdown { display: flex; gap: 1rem; justify-content: center; }
.countdown__unit { text-align: center; min-width: 72px; }
.countdown__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}
.countdown__label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); }

.tabs__list { display: flex; gap: 0.5rem; border-bottom: 1px solid var(--color-border); margin-bottom: 2rem; overflow-x: auto; }
.tabs__btn {
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.tabs__btn[aria-selected="true"] { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.tabs__panel[hidden] { display: none; }

/* ==========================================================================
   CREATIVE SCROLL — paired with main.js (section 11+). All opt-in by class.
   ========================================================================== */

/* Scroll progress bar: <div class="scroll-progress"></div> right after <body> */
.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 200;
  pointer-events: none;
}
[dir="rtl"] .scroll-progress { transform-origin: 100% 50%; }

/* Parallax: any element with data-parallax="0.15" (fraction of scroll delta) */
[data-parallax] { will-change: transform; }

/* Marquee: <div class="marquee"><div class="marquee__track">…items…</div></div>
   main.js duplicates the track content once so the loop is seamless. */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex;
  gap: var(--marquee-gap, 3rem);
  width: max-content;
  animation: marquee var(--marquee-speed, 30s) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
/* In RTL the track overflows to the LEFT of the box, so it must travel rightwards. */
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  color: var(--color-text-muted);
}
.marquee__item .dot {
  width: 0.4em; height: 0.4em; border-radius: 50%;
  background: var(--color-primary);
}
@keyframes marquee {
  to { transform: translateX(calc(-50% - var(--marquee-gap, 3rem) / 2)); }
}
@keyframes marquee-rtl {
  to { transform: translateX(calc(50% + var(--marquee-gap, 3rem) / 2)); }
}

/* Horizontal scroll section: the page scrolls vertically, the track moves sideways.
   <section class="hscroll"><div class="hscroll__sticky"><div class="hscroll__track">
     <div class="hscroll__panel">…</div> ×N </div></div></section>
   main.js sets the section height from the panel count. */
.hscroll { position: relative; }
.hscroll__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hscroll__track {
  display: flex;
  gap: var(--hscroll-gap, 2rem);
  padding-inline: var(--container-pad);
  will-change: transform;
}
.hscroll__panel {
  flex: 0 0 min(80vw, 640px);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.hscroll__panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hscroll__panel > :not(img) { position: relative; z-index: 1; }
.hscroll__panel--intro { flex-basis: min(60vw, 420px); background: transparent; border: 0; justify-content: center; }
.hscroll__index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}
@media (max-width: 767px) {
  /* On phones horizontal scroll feels hostile: fall back to a swipeable row */
  .hscroll { height: auto !important; }
  .hscroll__sticky { position: static; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-block: 2rem; }
  .hscroll__track { transform: none !important; }
  .hscroll__panel { scroll-snap-align: start; flex-basis: 85vw; min-height: 50vh; }
}

/* Stacking cards: each card sticks under the previous one and scales back.
   <div class="stack-cards"><article class="stack-card">…</article> ×N </div> */
.stack-cards { display: grid; gap: var(--stack-gap, 1.5rem); }
.stack-card {
  position: sticky;
  top: calc(var(--nav-height) + var(--stack-offset, 1rem));
  min-height: min(70vh, 560px);
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  transform-origin: 50% 0;
  will-change: transform;
  overflow: hidden;
}
.stack-card:nth-child(2) { top: calc(var(--nav-height) + var(--stack-offset, 1rem) + 1.5rem); }
.stack-card:nth-child(3) { top: calc(var(--nav-height) + var(--stack-offset, 1rem) + 3rem); }
.stack-card:nth-child(4) { top: calc(var(--nav-height) + var(--stack-offset, 1rem) + 4.5rem); }
.stack-card:nth-child(5) { top: calc(var(--nav-height) + var(--stack-offset, 1rem) + 6rem); }

/* Split-text reveal: words animate in one by one.
   <h2 class="split-text">Any heading</h2> — main.js wraps each word. */
.split-text .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.split-text .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.8s var(--ease);
  transition-delay: calc(var(--i) * 45ms);
}
.split-text.is-visible .word > span { transform: none; }

/* Image clip reveal: <div class="img-reveal"><img …></div> */
.img-reveal { overflow: hidden; }
.img-reveal img {
  clip-path: inset(0 100% 0 0);
  transform: scale(1.15);
  transition: clip-path 1.1s var(--ease), transform 1.4s var(--ease);
}
[dir="rtl"] .img-reveal img { clip-path: inset(0 0 0 100%); }
.img-reveal.is-visible img { clip-path: inset(0 0 0 0); transform: none; }

/* Big statement: oversized text that fades in by line while you scroll.
   <p class="statement"><span>Line one.</span><span>Line two.</span></p> */
.statement {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.statement > span {
  display: block;
  opacity: 0.18;
  transition: opacity 0.5s var(--ease);
}
.statement > span.is-active { opacity: 1; }

/* Tilt on hover: data-tilt on a .card */
[data-tilt] { transition: transform 0.15s ease-out; transform-style: preserve-3d; }

/* Sticky side label + scrolling content (editorial layout)
   <div class="sticky-split"><aside class="sticky-split__aside">…</aside><div>…</div></div> */
.sticky-split { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.sticky-split__aside { position: sticky; top: calc(var(--nav-height) + 2rem); }
@media (max-width: 859px) { .sticky-split { grid-template-columns: 1fr; } .sticky-split__aside { position: static; } }

/* Floating cursor-follow glow (desktop only): <div class="cursor-glow"></div> */
.cursor-glow {
  position: fixed;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-primary) 18%, transparent), transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s;
}
@media (hover: hover) and (pointer: fine) { .cursor-glow.is-on { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .split-text .word > span, .img-reveal img { transform: none; clip-path: none; transition: none; }
  .stack-card { position: static; }
  [data-parallax] { transform: none !important; }
}

/* ==========================================================================
   4. TEMPLATE-SPECIFIC
   ========================================================================== */

/* --- Orbit: pastel palette helpers --------------------------------------- */
:root {
  --orbit-violet: #7c5cff;
  --orbit-violet-soft: #ece6ff;
  --orbit-peach: #ffb648;
  --orbit-peach-soft: #ffe9d1;
  --orbit-mint: #3ccf91;
  --orbit-mint-soft: #dcf7ea;
  --orbit-sky: #4fb3ff;
  --orbit-sky-soft: #dceeff;
  --orbit-ink: #15102a;
}

body { font-weight: 400; }
strong, b { font-weight: 700; }
.btn { font-weight: 800; }
.btn--primary { box-shadow: 0 8px 20px rgba(124, 92, 255, 0.28); }
.btn--primary:hover { box-shadow: 0 10px 26px rgba(124, 92, 255, 0.38); transform: translateY(-1px); }
.btn--secondary { background: var(--color-bg); border-color: var(--color-border); }
.btn--secondary:hover { border-color: var(--color-primary); color: var(--color-primary); }
.badge--primary { background: var(--orbit-violet-soft); }
.badge .icon { fill: var(--color-accent); stroke: none; width: 1em; height: 1em; }
.eyebrow { color: var(--color-primary); font-weight: 800; }
.nav__links a { font-weight: 700; }
.nav__brand { font-weight: 900; }
.lang-toggle { font-weight: 700; }
.card { box-shadow: var(--shadow-sm); }
.section--primary { background: linear-gradient(135deg, var(--color-primary), #9b7bff); }
.section--surface { border-block: 1px solid var(--color-border); }
.step__num { font-weight: 900; box-shadow: 0 6px 16px rgba(124, 92, 255, 0.3); }
.step { padding: 1.75rem; background: var(--color-surface); border-radius: var(--radius-lg); }
.step:nth-child(2) { background: var(--orbit-violet-soft); }
.step:nth-child(3) { background: var(--orbit-mint-soft); }
.faq__q { font-weight: 800; }
.faq__q .icon { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--orbit-violet-soft); color: var(--color-primary); }
.cta-band { background: linear-gradient(135deg, var(--color-primary), #9b7bff); }
.cta-band::after {
  content: "";
  position: absolute;
  inset-inline-end: -10%;
  bottom: -60%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 182, 72, 0.35);
  filter: blur(40px);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.logos__list li { font-weight: 900; font-style: italic; letter-spacing: -0.01em; }
html[lang="ar"] .logos__list li { font-style: normal; letter-spacing: 0; }
.slider__btn { background: var(--color-bg); }

/* Split-text headings: keep the words on their natural baseline */
h2.split-text { overflow: hidden; }
h2.split-text .word { padding-bottom: 0.12em; margin-bottom: -0.12em; }

/* --- Orbit: pastel icon boxes ------------------------------------------- */
.icon-box { width: 56px; height: 56px; }
.icon-box--violet { background: var(--orbit-violet-soft); color: var(--orbit-violet); }
.icon-box--peach { background: var(--orbit-peach-soft); color: #d97a00; }
.icon-box--mint { background: var(--orbit-mint-soft); color: #1f9a68; }
.icon-box--sky { background: var(--orbit-sky-soft); color: #1f7fd1; }
.feature { padding: 1.75rem; border-radius: var(--radius-lg); transition: background var(--dur); }
.feature:hover { background: var(--color-surface); }

/* --- Orbit: app-store badges -------------------------------------------- */
.store-badges { gap: 0.75rem; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.1rem;
  padding-inline-start: 0.85rem;
  min-height: 54px;
  background: var(--orbit-ink);
  color: #fff;
  border-radius: var(--radius-full);
  border: 2px solid var(--orbit-ink);
  line-height: 1.05;
  text-align: start;
  transition: transform var(--dur), box-shadow var(--dur), background var(--dur);
}
.store-badge .icon { width: 26px; height: 26px; }
.store-badge span { display: flex; flex-direction: column; }
.store-badge small { font-size: 0.66rem; font-weight: 600; opacity: 0.8; letter-spacing: 0.02em; }
html[lang="ar"] .store-badge small { letter-spacing: 0; }
.store-badge strong { font-size: 1.05rem; font-weight: 800; white-space: nowrap; }
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(43, 33, 64, 0.25); background: #241a44; }
.cta-band .store-badge { background: var(--color-bg); color: var(--color-text); border-color: var(--color-bg); }
.cta-band .store-badge:hover { background: var(--color-surface); }
.cta-band .store-badge .icon { color: var(--color-primary); }

/* --- Orbit: hero — phone in the middle, callouts orbiting around it ------ */
.hero--orbit { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 6vw, 5rem); text-align: center; }
.hero--orbit .hero__content { max-width: 720px; margin-inline: auto; }
.hero--orbit .hero__content .lead { max-width: 56ch; margin-inline: auto; }
.hero--orbit .hero__title { font-size: clamp(2.6rem, 6vw + 1rem, 4.75rem); }
.hero--orbit .hero__meta { justify-content: center; margin-top: 1.5rem; }

.hero__stage {
  position: relative;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 1.5rem;
  isolation: isolate;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  aspect-ratio: 1;
}
.blob--violet { width: min(60%, 520px); top: -8%; inset-inline-start: 8%; background: rgba(124, 92, 255, 0.32); }
.blob--peach { width: min(48%, 420px); bottom: -6%; inset-inline-end: 6%; background: rgba(255, 182, 72, 0.42); }
.blob--mint { width: min(32%, 260px); top: 40%; inset-inline-end: 22%; background: rgba(60, 207, 145, 0.32); }

/* Feature callouts: a normal list on phones, absolutely positioned bubbles on desktop */
.callouts {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 2;
}
.callout {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  padding-inline-start: 0.8rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(43, 33, 64, 0.12);
  text-align: start;
}
.callout__icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; }
.callout__icon .icon { width: 22px; height: 22px; }
.callout__avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orbit-sky);
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 0 0 3px var(--orbit-sky-soft);
}
.callout__body { display: flex; flex-direction: column; min-width: 0; }
.callout__body strong { font-size: 0.95rem; font-weight: 800; line-height: 1.2; }
.callout__body small { font-size: 0.78rem; color: var(--color-text-muted); font-weight: 600; }

@media (min-width: 860px) {
  .hero__stage { min-height: 720px; display: block; }
  .hero__stage .phone { margin-inline: auto; }
  .callouts { position: absolute; inset: 0; max-width: none; display: block; pointer-events: none; }
  .callout { position: absolute; width: max-content; max-width: 300px; pointer-events: auto; }
  /* asymmetric placement: two high, two low, overlapping the phone edges */
  .callout--streak   { top: 6%;  inset-inline-start: calc(50% - 420px); }
  .callout--reminder { top: 24%; inset-inline-end: calc(50% - 440px); }
  .callout--friend   { top: 56%; inset-inline-start: calc(50% - 380px); }
  .callout--widget   { top: 76%; inset-inline-end: calc(50% - 390px); }
  .callout--streak { transform: rotate(-3deg); }
  .callout--widget { transform: rotate(2deg); }
}
@media (min-width: 860px) and (max-width: 1099px) {
  .callout--streak   { inset-inline-start: calc(50% - 360px); }
  .callout--reminder { inset-inline-end: calc(50% - 370px); }
  .callout--friend   { inset-inline-start: calc(50% - 340px); }
  .callout--widget   { inset-inline-end: calc(50% - 350px); }
}

/* --- Orbit: CSS phone mockup -------------------------------------------- */
.phone {
  position: relative;
  z-index: 1;
  width: clamp(240px, 70vw, 320px);
  max-width: 100%;
  aspect-ratio: 9 / 19;
  background: var(--orbit-ink);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 30px 70px rgba(43, 33, 64, 0.28), inset 0 0 0 2px #3a2f5c;
}
.phone__notch {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: 38%;
  height: 24px;
  background: var(--orbit-ink);
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(180deg, #fffdf8 0%, #fff4e6 100%);
  padding: 2.4rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.78rem;
  text-align: start;
}
.app__status {
  position: absolute;
  top: 0.55rem;
  inset-inline: 1rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 800;
}
.app__signal { display: flex; gap: 2px; align-items: flex-end; }
.app__signal i { display: block; width: 3px; background: var(--color-text); border-radius: 1px; }
.app__signal i:nth-child(1) { height: 5px; }
.app__signal i:nth-child(2) { height: 8px; }
.app__signal i:nth-child(3) { height: 11px; }
.app__head { display: flex; justify-content: space-between; align-items: center; }
.app__greet { display: block; color: var(--color-text-muted); font-weight: 600; font-size: 0.7rem; }
.app__title { display: block; font-size: 1.35rem; font-weight: 900; letter-spacing: -0.02em; }
html[lang="ar"] .app__title { letter-spacing: 0; }

.ring { position: relative; width: 52px; height: 52px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__bg { fill: none; stroke: var(--orbit-violet-soft); stroke-width: 6; }
.ring__fg {
  fill: none;
  stroke: var(--orbit-violet);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 125.66;
  stroke-dashoffset: 31.4; /* 75% complete */
}
.ring span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 900;
}

.habits { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.habit {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(43, 33, 64, 0.05);
}
.habit__dot {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #fff;
  border: 2px solid transparent;
}
.habit__dot .icon { width: 14px; height: 14px; stroke-width: 3; }
.habit__dot--violet { background: var(--orbit-violet); }
.habit__dot--peach { background: var(--orbit-peach); }
.habit__dot--mint { background: var(--orbit-mint); }
.habit__dot--sky { background: var(--orbit-sky); }
.habit:not(.is-done) .habit__dot { background: transparent; border-color: var(--orbit-sky); }
.habit__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.habit__body strong { font-size: 0.8rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.habit__body small { font-size: 0.65rem; color: var(--color-text-muted); font-weight: 600; }
.habit.is-done .habit__body strong { text-decoration: line-through; text-decoration-color: rgba(43, 33, 64, 0.35); }
.habit__streak {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.7rem;
  font-weight: 900;
  color: #d97a00;
  background: var(--orbit-peach-soft);
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-full);
}
.habit__streak .icon { width: 12px; height: 12px; }
.app__week { display: flex; justify-content: space-between; margin-top: auto; padding-inline: 0.2rem; }
.app__week span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  background: #fff;
  color: var(--color-text-muted);
}
.app__week .is-hit { background: var(--orbit-violet-soft); color: var(--orbit-violet); }
.app__week .is-today { background: var(--orbit-violet); color: #fff; }
.app__week .is-weekend { background: var(--orbit-peach-soft); color: #d97a00; }
.app__fab {
  position: absolute;
  inset-inline-end: 0.9rem;
  bottom: 3.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orbit-violet);
  color: #fff;
  box-shadow: 0 8px 18px rgba(124, 92, 255, 0.4);
}
.app__fab .icon { width: 18px; height: 18px; stroke-width: 3; }

/* --- Orbit: screens as a pinned horizontal scroll ------------------------ */
.hscroll { --hscroll-gap: 1.5rem; background: var(--color-surface); }
.hscroll__panel--intro { flex-basis: min(60vw, 460px); }
.hscroll__panel--intro .text-muted { max-width: 34ch; }
.hscroll__hint {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-top: 1.5rem;
  border-radius: 50%;
  background: var(--orbit-violet);
  color: #fff;
  box-shadow: 0 8px 18px rgba(124, 92, 255, 0.35);
  animation: hint-nudge 1.6s ease-in-out infinite;
}
@keyframes hint-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}
[dir="rtl"] .hscroll__hint { animation-name: hint-nudge-rtl; }
@keyframes hint-nudge-rtl {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-6px); }
}
.hscroll__panel--screen {
  flex-basis: min(80vw, 560px);
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: auto 1fr;
  align-items: center;
  column-gap: 2rem;
  padding: 2rem;
  background: #fff;
  overflow: visible;
}
.hscroll__panel--screen:nth-of-type(2) { background: var(--orbit-violet-soft); }
.hscroll__panel--screen:nth-of-type(3) { background: var(--orbit-peach-soft); }
.hscroll__panel--screen:nth-of-type(4) { background: var(--orbit-mint-soft); }
.hscroll__panel--screen:nth-of-type(5) { background: var(--orbit-sky-soft); }
.hscroll__panel--screen .hscroll__index {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  color: rgba(43, 33, 64, 0.18);
  margin: 0;
}
.hscroll__panel--screen .screen { grid-column: 1; grid-row: 1 / span 2; width: 220px; margin-block: -3rem; }
.screen-caption { grid-column: 2; grid-row: 2; align-self: start; }
.screen-caption h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.screen-caption p { font-size: 0.95rem; }
@media (max-width: 767px) {
  .hscroll__panel--screen { grid-template-columns: 1fr; grid-template-rows: auto auto auto; row-gap: 1rem; padding: 1.5rem; }
  .hscroll__panel--screen .hscroll__index { grid-column: 1; grid-row: 1; font-size: 2rem; }
  .hscroll__panel--screen .screen { grid-column: 1; grid-row: 2; width: min(200px, 60%); margin: 0 auto; }
  .screen-caption { grid-column: 1; grid-row: 3; }
}

.screen {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #fff;
  border: 6px solid var(--orbit-ink);
  border-radius: 30px;
  padding: 1.4rem 0.85rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow: hidden;
  font-size: 0.74rem;
  box-shadow: var(--shadow-lg);
  text-align: start;
}
.screen__bar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: center; }
.screen__bar i { width: 36%; height: 14px; background: var(--orbit-ink); border-radius: 0 0 10px 10px; }
.screen__head { display: flex; justify-content: space-between; align-items: center; margin-top: 0.25rem; }
.screen__head strong { font-size: 1rem; font-weight: 900; }
.screen__ring { width: 34px; height: 34px; }
.screen__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.screen__chip { font-size: 0.6rem; font-weight: 800; padding: 0.2rem 0.5rem; border-radius: var(--radius-full); background: var(--orbit-violet-soft); color: var(--orbit-violet); }
.screen__row { display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.5rem; background: var(--color-surface); border-radius: 12px; }
.screen__row .habit__dot { width: 18px; height: 18px; }
.screen__row b { flex: 1; height: 6px; border-radius: 3px; background: var(--color-border); position: relative; overflow: hidden; }
.screen__row b::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w, 50%); background: var(--orbit-violet); border-radius: 3px; }
.screen__row em { font-style: normal; font-weight: 900; font-size: 0.68rem; color: #d97a00; }
.screen__bars { flex: 1; display: flex; align-items: flex-end; gap: 0.35rem; padding: 0.5rem 0.25rem 0; max-height: 120px; }
.screen__bars span { flex: 1; height: var(--h, 50%); background: linear-gradient(180deg, var(--orbit-violet), #b3a3ff); border-radius: 6px 6px 3px 3px; }
.screen__bars span:nth-child(4) { background: linear-gradient(180deg, var(--orbit-peach), #ffd59a); }
.screen__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.screen__kpis div { background: var(--color-surface); border-radius: 12px; padding: 0.5rem 0.6rem; display: flex; flex-direction: column; }
.screen__kpis small { font-size: 0.6rem; color: var(--color-text-muted); font-weight: 600; }
.screen__kpis strong { font-size: 0.9rem; font-weight: 900; }
.screen__friend { display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.5rem; background: var(--color-surface); border-radius: 12px; }
.screen__friend > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.screen__friend strong { font-size: 0.74rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen__friend small { font-size: 0.6rem; color: var(--color-text-muted); font-weight: 600; }
.screen__avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 0.7rem; color: #fff; flex-shrink: 0; }
.screen__avatar--violet { background: var(--orbit-violet); }
.screen__avatar--peach { background: var(--orbit-peach); }
.screen__avatar--mint { background: var(--orbit-mint); }
.screen__tick { width: 20px; height: 20px; border-radius: 50%; background: var(--orbit-mint); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.screen__tick .icon { width: 11px; height: 11px; stroke-width: 3; }
.screen__tick.is-off { background: transparent; border: 2px dashed var(--color-border); }
.screen__widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.screen__widget { background: var(--orbit-violet-soft); border-radius: 14px; padding: 0.6rem; display: flex; flex-direction: column; gap: 0.1rem; }
.screen__widget--peach { background: var(--orbit-peach-soft); }
.screen__widget--md { grid-column: 1 / -1; background: var(--orbit-mint-soft); }
.screen__widget small { font-size: 0.6rem; font-weight: 700; color: var(--color-text-muted); }
.screen__widget strong { font-size: 1.3rem; font-weight: 900; line-height: 1; }
.screen__widget em { font-style: normal; font-size: 0.6rem; color: var(--color-text-muted); font-weight: 600; }
.screen__dots { display: flex; gap: 0.3rem; margin: 0.25rem 0; }
.screen__dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--orbit-mint); }
.screen__dots .is-hit { background: var(--orbit-mint); }

/* --- Orbit: reviews with initial avatars -------------------------------- */
.testimonial__heading { margin-bottom: 0.5rem; }
.testimonial__quote { color: var(--color-text-muted); font-size: 1rem; }
.testimonial__stars { color: var(--color-accent); }
.testimonial__avatar { display: grid; place-items: center; font-weight: 900; font-size: 1.1rem; color: #fff; flex-shrink: 0; }
.testimonial__avatar--violet { background: var(--orbit-violet); }
.testimonial__avatar--peach { background: var(--orbit-peach); }
.testimonial__avatar--mint { background: var(--orbit-mint); }

/* --- Orbit: pricing in KWD, tilt cards, payment methods ------------------ */
.price-card { padding: 2.25rem; }
.price-card--featured { background: #fff; }
.price-card__features .icon { color: var(--color-primary); }
.price-card__amount small { font-size: 1.1rem; font-weight: 800; color: var(--color-text-muted); letter-spacing: 0; }
[data-tilt] { will-change: transform; }
.pay-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  font-size: 0.85rem;
}
.pay-methods__label { color: var(--color-text-muted); font-weight: 700; margin-inline-end: 0.25rem; }
.pay-methods__item {
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  background: #fff;
  border: 1px solid var(--color-border);
  font-weight: 800;
}

/* --- Orbit: footer address --------------------------------------------- */
.footer__address { margin-top: 1rem; font-style: normal; display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.875rem; color: var(--color-text-muted); }
.footer__address a { color: var(--color-text); font-weight: 700; }
.footer__address a:hover { color: var(--color-primary); }
[dir="rtl"] .footer__address .ltr { align-self: flex-start; }

@media (prefers-reduced-motion: reduce) {
  .hscroll__hint { animation: none; }
}
