/* ==========================================================================
   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: #0b3d5c;
  --color-primary-hover: #082c43;
  --color-primary-contrast: #ffffff;
  --color-accent: #10b981;

  /* Surfaces & text */
  --color-bg: #ffffff;
  --color-surface: #f4f7f9;
  --color-surface-2: #e8eef2;
  --color-text: #0b1f33;
  --color-text-muted: #5b6b7b;
  --color-border: #d9e2ea;

  /* Semantic */
  --color-success: #10b981;
  --color-error: #dc2626;

  /* Typography */
  --font-heading: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex 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: "Cairo", "Tajawal", "Segoe UI", Tahoma, system-ui, sans-serif;
  --weight-heading: 700;
  --leading-tight: 1.15;
  --leading-body: 1.6;

  /* Shape & depth */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-full: 8px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 51, 0.06);
  --shadow: 0 4px 16px rgba(11, 31, 51, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 31, 51, 0.14);

  /* 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 — everything unique to this template goes below.
   Override tokens in :root above first; only add rules here when a token
   cannot express the change.
   ========================================================================== */

/* --- Ledger: type & surfaces ---------------------------------------------- */
h1, h2, h3, h4 { font-weight: 600; }
h1, .h1 { font-size: clamp(2.3rem, 4vw + 1rem, 3.6rem); letter-spacing: -0.025em; }
.eyebrow { color: var(--color-accent); letter-spacing: 0.14em; }
.section--surface { border-block: 1px solid var(--color-border); }
.card { box-shadow: var(--shadow-sm); }
.card:hover { transform: translateY(-2px); }
.feature { padding: 1.75rem; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-bg); }
.icon-box { background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-primary); }
.btn--primary:hover { box-shadow: 0 6px 18px rgba(11, 61, 92, 0.25); }
.btn--secondary { background: var(--color-bg); border-color: var(--color-border); }
.btn--secondary:hover { border-color: var(--color-primary); color: var(--color-primary); }
.hero__glow {
  top: -35%;
  inset-inline-end: -20%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.16), transparent 65%);
}
.hero { padding-block: clamp(3rem, 7vw, 6rem); background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%); }
.hero__split { align-items: center; }
.hero__meta .icon { color: var(--color-accent); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Generic wide-content guard: anything that can exceed 390px scrolls inside its box. */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }

/* --- Ledger: dashboard mockup ---------------------------------------------- */
.mockup {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 0.85rem;
  max-width: 100%;
}
.mockup__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.mockup__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-border); }
.mockup__crumb { margin-inline-start: 0.6rem; font-size: 0.75rem; color: var(--color-text-muted); font-weight: 500; }
.mockup__kpi {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 0.75rem;
}
.mockup__kpi-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.mockup__kpi-value {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}
.mockup__chart { padding: 0.5rem 1.25rem 0.75rem; }
.mockup__chart-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}
.mockup__svg { width: 100%; height: 90px; overflow: visible; }
.mockup__svg line { stroke: var(--color-surface-2); stroke-width: 1; }
.mockup__area { fill: url(#chartFill); }
.mockup__line { fill: none; stroke: var(--color-accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mockup__point { fill: var(--color-accent); stroke: var(--color-bg); stroke-width: 2; vector-effect: non-scaling-stroke; }

.mockup__table { width: 100%; min-width: 440px; border-collapse: collapse; border-top: 1px solid var(--color-border); }
.mockup__table th,
.mockup__table td { padding: 0.65rem 1.25rem; text-align: start; white-space: nowrap; border-bottom: 1px solid var(--color-border); }
.mockup__table th {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-surface);
}
.mockup__table tbody tr:last-child td { border-bottom: 0; }
.mockup__table tbody tr:hover td { background: var(--color-surface); }
.mockup__table .num { text-align: end; font-variant-numeric: tabular-nums; }
.mockup__table td.mono { color: var(--color-text-muted); font-size: 0.8rem; }

/* status pills (also used for the KPI delta) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.pill .icon { width: 0.95em; height: 0.95em; }
.pill--up,
.pill--paid { background: rgba(16, 185, 129, 0.14); color: #047857; }
.pill--overdue { background: rgba(220, 38, 38, 0.12); color: #b91c1c; }
.pill--sent { background: rgba(11, 61, 92, 0.1); color: var(--color-primary); }

/* --- Ledger: stats & pricing ---------------------------------------------- */
.stats { background: linear-gradient(135deg, var(--color-primary) 0%, #0f5078 100%); }
.stat__value { font-family: var(--font-mono); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price-card__amount { font-family: var(--font-mono); font-weight: 600; font-size: 2.75rem; }
.price-card--featured { border-color: var(--color-accent); box-shadow: 0 0 0 1px var(--color-accent), var(--shadow-lg); }
.price-card__badge { background: var(--color-accent); color: #ffffff; }
.pricing-note { margin: 2rem auto 0; font-size: 0.9rem; max-width: 60ch; }

/* --- Ledger: security strip ------------------------------------------------ */
.security { border-block: 1px solid var(--color-border); background: var(--color-bg); }
.security__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.security__intro .eyebrow { margin-bottom: 0.5rem; }
.security__intro h2 { margin-bottom: 0.5rem; }
.security__badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.security__badges li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  font-weight: 600;
  font-size: 0.92rem;
}
.security__badges .icon { color: var(--color-accent); width: 20px; height: 20px; }
@media (max-width: 859px) {
  .security__inner { grid-template-columns: 1fr; }
}
@media (max-width: 479px) {
  .security__badges { grid-template-columns: 1fr; }
}

/* --- Ledger: testimonials, cta, footer ------------------------------------- */
.testimonial__stars { color: var(--color-accent); }
.testimonial__quote { font-size: 1rem; }
.cta-band { background: var(--color-primary); border-radius: var(--radius-lg); }
.cta-band .btn--primary { background: var(--color-accent); color: #ffffff; }
.cta-band .btn--primary:hover { background: #0e9f70; }
.footer { border-top: 1px solid var(--color-border); background: var(--color-surface); }

/* --- Ledger (2026 rework): layout helpers, RTL-safe overrides -------------- */
.split--top { align-items: start; }
.cta-band__ghost { color: inherit; border-color: currentColor; }
.cta-band__ghost:hover { background: rgba(255, 255, 255, 0.1); color: inherit; }
.mockup__eta { margin-inline-start: auto; }
.pill--eta { background: rgba(11, 61, 92, 0.08); color: var(--color-primary); border: 1px solid rgba(11, 61, 92, 0.15); }
.price-card__amount small { font-size: 0.4em; font-weight: 600; color: var(--color-text-muted); letter-spacing: 0.04em; }
.footer__pay { margin-top: 1rem; font-size: 0.8rem; color: var(--color-text-muted); font-weight: 500; }
#benefits .img-reveal img { border-radius: var(--radius-lg); }

/* --- Ledger: editorial numbers (statement + sticky-split + oversized figures) */
.numbers { position: relative; overflow: hidden; }
.numbers::before {
  content: "EGP";
  position: absolute;
  inset-inline-end: -0.1em;
  top: -0.15em;
  font-family: var(--font-mono);
  font-size: clamp(8rem, 28vw, 24rem);
  font-weight: 600;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
}
.numbers .container { position: relative; }
.numbers .statement { font-weight: 600; letter-spacing: -0.025em; max-width: 26ch; }
.numbers .statement > span.is-active { color: var(--color-primary); }
.numbers .sticky-split__aside .eyebrow { display: block; margin-bottom: 0.75rem; }
.bignums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(3rem, 8vw, 6rem);
  padding-top: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--color-border);
}
.bignum__value {
  display: flex;
  align-items: baseline;
  gap: 0.2em;
  font-family: var(--font-mono);
  font-size: clamp(3.6rem, 8vw, 7rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}
.bignum__value small {
  font-family: var(--font-heading);
  font-size: 0.28em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--color-accent);
}
.bignum__label { margin-top: 1rem; max-width: 26ch; color: var(--color-text-muted); font-size: 0.95rem; }
@media (max-width: 859px) {
  .bignums { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* --- Ledger: workflow stack-cards with HTML mockups ------------------------ */
#workflow .section__header { margin-bottom: clamp(2rem, 5vw, 4rem); }
#workflow .section__header h2 { max-width: 22ch; }
#workflow .stack-card { background: var(--color-bg); }
#workflow .stack-card h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -0.02em; }
#workflow .check-list { margin-top: 1.25rem; }
#workflow .check-list li { font-size: 0.95rem; }
#workflow .hscroll__index { display: block; color: var(--color-accent); font-weight: 600; }

/* img-reveal is written for <img>; extend the same clip reveal to the HTML mockup */
.img-reveal > .wf-mock {
  clip-path: inset(0 100% 0 0);
  transform: scale(1.06);
  transition: clip-path 1.1s var(--ease), transform 1.4s var(--ease);
}
[dir="rtl"] .img-reveal > .wf-mock { clip-path: inset(0 0 0 100%); }
.img-reveal.is-visible > .wf-mock { clip-path: inset(0 0 0 0); transform: none; }

.wf-mock {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
  max-width: 100%;
}
.wf-mock__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--color-border);
}
.wf-mock__title { font-weight: 600; color: var(--color-primary); }
.wf-mock__head .mono { font-size: 0.78rem; color: var(--color-text-muted); }
.wf-mock__meta { display: flex; flex-direction: column; gap: 0.15rem; margin-bottom: 0.9rem; }
.wf-mock__meta span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); }
html[lang="ar"] .wf-mock__meta span { text-transform: none; letter-spacing: 0; }
.wf-mock__lines { display: grid; gap: 0.45rem; }
.wf-mock__line { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.3rem; border-bottom: 1px dashed var(--color-border); }
.wf-mock__line:last-child { border-bottom: 0; }
.wf-mock__line--total { font-weight: 600; color: var(--color-primary); border-bottom: 0; border-top: 1px solid var(--color-border); padding-top: 0.6rem; margin-top: 0.2rem; }
.wf-mock__line .mono { color: var(--color-text); white-space: nowrap; flex: 0 0 auto; }
.wf-mock__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; margin-top: 1rem; }
.wf-mock__uuid { font-size: 0.72rem; color: var(--color-text-muted); }

.wf-mock__amount {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  line-height: 1.1;
  text-align: start;
}
.wf-mock__sub { margin-top: 0.25rem; color: var(--color-text-muted); font-size: 0.8rem; }
.wf-mock__methods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; margin-top: 1rem; }
.wf-mock__method {
  padding: 0.5rem 0.35rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: default;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wf-mock__method.is-active { border-color: var(--color-accent); color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-accent); }
.wf-mock__code {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.wf-mock__code strong { font-size: 1rem; color: var(--color-primary); letter-spacing: 0.18em; white-space: nowrap; }
.wf-mock__timeline { display: grid; gap: 0.4rem; margin-top: 1rem; font-size: 0.78rem; color: var(--color-text-muted); }
.wf-mock__timeline li { display: flex; align-items: center; gap: 0.6rem; }
.wf-mock__timeline li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-border); flex: 0 0 auto; }
.wf-mock__timeline li.is-done::before { background: var(--color-accent); }
.wf-mock__timeline li.is-now { color: var(--color-primary); font-weight: 600; }
.wf-mock__timeline li.is-now::before { background: var(--color-primary); box-shadow: 0 0 0 3px rgba(11, 61, 92, 0.15); }

.wf-mock__bars { display: grid; gap: 0.6rem; margin-bottom: 1rem; }
.wf-mock__bar { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; align-items: center; gap: 0.6rem; font-size: 0.78rem; color: var(--color-text-muted); }
.wf-mock__bar i { display: block; height: 10px; border-radius: 999px; background: var(--color-surface-2); position: relative; overflow: hidden; }
.wf-mock__bar i::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w, 50%); border-radius: inherit; background: var(--color-primary); }
.wf-mock__bar--net i::after { background: var(--color-accent); }
.wf-mock__bar b { font-weight: 600; color: var(--color-text); font-size: 0.8rem; }
@media (max-width: 479px) {
  .wf-mock { padding: 1rem; }
  .wf-mock__methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wf-mock__bar { grid-template-columns: 6rem minmax(0, 1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
  .img-reveal > .wf-mock { clip-path: none; transform: none; transition: none; }
}
