/* تخصيص زر Download the App في الصفحة الرئيسية الإنجليزية */
.hero-home-en .hero-buttons .btn[href="/en/download.html"] {
  color: #fff;
  background: #16a34a; /* أخضر زاهي Tailwind green-600 */
  border-color: #16a34a;
}
.hero-home-en .hero-buttons .btn[href="/en/download.html"]:hover {
  background: #15803d; /* أخضر أغمق عند التحويم */
  color: #fff;
}
:root {
  color-scheme: light;

  --font-ar: "Cairo", sans-serif;
  --font-en: "Inter", sans-serif;

  --color-bg: #f4f7fb;
  --color-surface: #ffffff;
  --color-surface-soft: #eef3f9;
  --color-text: #0f172a;
  --color-muted: #5b6475;
  --color-border: #d7dfeb;

  --color-primary: #0b7a5a;
  --color-primary-dark: #075f46;
  --color-accent: #0ea5c6;

  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 18px 44px rgba(15, 23, 42, 0.14);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 72px;

  --container-max: 1280px;
  --page-max: 1100px;
  --measure: 72ch;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html[lang="ar"] body {
  font-family: var(--font-ar);
}

html[lang="en"] body {
  font-family: var(--font-en);
}

body {
  color: var(--color-text);
  background:
    radial-gradient(
      1200px 520px at 12% -10%,
      rgba(14, 165, 198, 0.12),
      transparent 48%
    ),
    radial-gradient(
      900px 500px at 88% -8%,
      rgba(11, 122, 90, 0.1),
      transparent 44%
    ),
    var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: 24px;
}

.page,
main.page {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: 24px;
}

.page-container {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition:
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.nav-desktop {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.nav-dropdown {
  position: relative;
}

.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-parent::after {
  content: "▼";
  font-size: 0.68em;
  line-height: 1;
  color: currentColor;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1001;
  min-width: 220px;
  margin-top: 0;
  padding: 8px 0;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(215, 223, 235, 0.95);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  pointer-events: none;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  white-space: nowrap;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

html[dir="ltr"] .dropdown-menu {
  left: 0;
  right: auto;
}

.nav-desktop a {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-desktop .btn-primary {
  padding-inline: 20px;
  min-height: 42px;
}

.nav-desktop a:hover {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-dark);
}

.btn-primary,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: #0b6b53;
  box-shadow: 0 10px 24px rgba(11, 122, 90, 0.28);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(11, 122, 90, 0.34);
}

.btn {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--color-border);
}

.btn:hover {
  color: var(--color-text);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 3.4vw, 3.35rem);
  line-height: 1.12;
  margin-bottom: var(--space-3);
}

h2 {
  font-size: clamp(1.4rem, 2.1vw, 2.1rem);
  line-height: 1.22;
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  line-height: 1.3;
  margin-bottom: var(--space-2);
}

p,
li {
  font-size: 1.04rem;
  line-height: 1.9;
  color: #22304a;
}

section {
  margin-bottom: clamp(42px, 5vw, 84px);
}

.page-container > p,
.post > p,
.article > p,
.page-container > ul,
.page-container > ol,
.post > ul,
.post > ol {
  max-width: var(--measure);
}

.footer {
  margin-top: var(--space-7);
  padding: var(--space-6) 0;
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid var(--color-border);
}

.footer a {
  color: var(--color-muted);
}

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

@media (max-width: 1024px) {
  .nav-desktop {
    gap: 14px;
    font-size: 0.96rem;
  }
}

@media (max-width: 768px) {
  .container,
  .page,
  main.page {
    padding-inline: 16px;
  }

  .header-inner {
    min-height: 74px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  p,
  li {
    font-size: 1rem;
  }
}
:root {
  --card-radius: 18px;
  --card-border: 1px solid rgba(15, 23, 42, 0.1);
}

.system-stage {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0a7f9c;
  background: rgba(14, 165, 198, 0.1);
  border: 1px solid rgba(14, 165, 198, 0.25);
  margin-bottom: 14px;
}

.breadcrumb {
  margin-bottom: 20px;
  color: #627089;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #627089;
}

.breadcrumb a:hover {
  color: #0b7a5a;
}

.meta-updated,
.page-last-updated {
  color: #71809a;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.hero-saas {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(14, 165, 198, 0.22);
  background:
    radial-gradient(
      740px 360px at 10% -30%,
      rgba(14, 165, 198, 0.2),
      transparent 60%
    ),
    radial-gradient(
      640px 340px at 85% -20%,
      rgba(11, 122, 90, 0.18),
      transparent 55%
    ),
    linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.14);
  padding: clamp(26px, 4.6vw, 56px);
}

.hero {
  width: 100%;
  padding: 100px 0;
  background: #ffffff;
}

.hero .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-content {
  max-width: 1100px;
  margin: auto;
}

[dir="rtl"] .hero-content {
  text-align: right;
}

[dir="ltr"] .hero-content {
  text-align: left;
}

.page-home-ar,
.page-home-en {
  max-width: none;
  padding-inline: 0;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(11, 122, 90, 0.1);
  color: #0b7a5a;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-home-ar .hero-content,
.hero-home-en .hero-content {
  color: #111827;
  text-align: center;
}

.hero-home-ar .hero-eyebrow,
.hero-home-ar .hero-badge,
.hero-home-en .hero-eyebrow,
.hero-home-en .hero-badge {
  background: #ecfdf5;
  color: #065f46;
}

.hero-home-ar h1,
.hero-home-ar p,
.hero-home-en h1,
.hero-home-en p {
  color: #111827;
}

.hero-home-ar p,
.hero-home-en p {
  max-width: 62ch;
  margin: 0;
  color: #4b5563;
}

.hero-home-ar .btn-primary,
.hero-home-en .btn-primary {
  background: #0b6b53;
  color: #ffffff;
}

.hero-home-ar .btn,
.hero-home-en .btn {
  color: #111827;
  border-color: #d1d5db;
  background: #ffffff;
}

/* تخصيص زر استكشف النظام في الصفحة الرئيسية العربية */
.hero-home-ar .hero-buttons .btn[href="/ar/system/"] {
  color: #fff;
  background: #16a34a; /* أخضر زاهي Tailwind green-600 */
  border-color: #16a34a;
}
.hero-home-ar .hero-buttons .btn[href="/ar/system/"]:hover {
  background: #15803d; /* أخضر أغمق عند التحويم */
  color: #fff;
}
}

.hero-home-ar .btn:hover,
.hero-home-en .btn:hover {
  color: #111827;
  background: #f9fafb;
}

.hero-home-ar .hero-buttons,
.hero-home-en .hero-buttons {
  justify-content: center;
}

.hero-saas h1 {
  margin-bottom: 14px;
}

.hero-saas p {
  max-width: 62ch;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.grid-3,
.cards-grid,
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.card {
  height: 100%;
  border-radius: var(--card-radius);
  border: var(--card-border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 20px;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
  border-color: rgba(14, 165, 198, 0.35);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  margin: 0 0 12px;
  color: #334155;
}

.card a {
  font-weight: 700;
  color: #0b7a5a;
}

.section {
  margin-bottom: clamp(40px, 4.8vw, 84px);
}

.page-container {
  padding-top: clamp(14px, 2.4vw, 28px);
  padding-bottom: clamp(30px, 4.8vw, 64px);
}

.post {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

@media (max-width: 768px) {
  .hero {
    padding: 64px 0;
  }

  .hero h1 {
    font-size: 40px;
    margin-bottom: 18px;
  }

  .hero-saas {
    border-radius: 20px;
    padding: 22px;
  }

  .hero-actions {
    gap: 10px;
  }

  .card {
    padding: 16px;
  }

  .post {
    border-radius: 16px;
    padding: 14px;
  }
}
/* Add to style.css (Option A: scoped to English pages only) */

html[lang="en"],
body.en-page {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: #fafbfc;
  color: #222;
}

body.en-page {
  margin: 0;
  padding: 0;
}

main.page {
  max-width: 900px;
  margin: 40px auto 40px auto;
  padding: 24px 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.article {
  font-size: 1.08rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.article h1 {
  font-size: 2.2rem;
  margin-bottom: 0.7em;
  font-weight: 700;
  border-bottom: 1px solid #ececec;
  padding-bottom: 0.3em;
}

.article h2 {
  font-size: 1.4rem;
  margin-top: 2em;
  margin-bottom: 0.6em;
  font-weight: 600;
  border-bottom: 1px solid #f2f2f2;
  padding-bottom: 0.2em;
}

.article h3 {
  font-size: 1.15rem;
  margin-top: 1.5em;
  margin-bottom: 0.4em;
  font-weight: 500;
}

.article p,
.article ul,
.article ol,
.article blockquote {
  margin-bottom: 1.2em;
}

.article ul,
.article ol {
  padding-left: 1.5em;
}

.article a {
  color: #1976d2;
  text-decoration: underline;
  transition: color 0.2s;
}

.article a:hover {
  color: #0d47a1;
}

.article blockquote {
  border-left: 4px solid #e0e0e0;
  background: #f7f7f7;
  padding: 0.7em 1em;
  margin: 1.2em 0;
  color: #555;
}

.article hr {
  border: none;
  border-top: 1px solid #ececec;
  margin: 2em 0;
}

@media (max-width: 600px) {
  main.page {
    padding: 12px 4px;
    margin: 16px auto;
  }
  .article h1 {
    font-size: 1.4rem;
  }
  .article h2 {
    font-size: 1.1rem;
  }
}
/* Remove old Cairo import — consolidated fonts at top */

/* تحسين CLS: حجز مساحة للصور والشعار */
.logo img {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  display: inline-block;
}
.related-card__thumb img {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 16/9;
  display: block;
}

/* تحسين الأداء: صور متجاوبة */
img[loading="lazy"] {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
}
/* =========================
   DESIGN TOKENS
========================= */

/* Light Theme */
:root {
  --bg-primary: #f5f5f5;
  --bg-surface: #ffffff;
  --bg-hero: linear-gradient(135deg, #006a4e 0%, #004232 100%);

  --text-primary: #333333;
  --text-secondary: #555555;
  --text-muted: #6b7280;

  --card-bg: #ffffff;
  --card-border: #e0e0e0;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);

  --accent-primary: #006a4e;
  --accent-primary-dark: #004232;
  --accent-mint: #50c878;
  --accent-warm: #ff7c00;
  --accent-warm-muted: #9a6a2f;

  --button-bg: #006a4e;
  --button-text: #ffffff;
  --white: #ffffff;

  --income: #2e7d32;
  --expense: #c62828;
  --danger: #c62828;
  --social-facebook: #1877f2;
  --surface-soft: #fff7ec;
  --hero-glass-bg: rgba(255, 255, 255, 0.12);
  --hero-glass-border: rgba(255, 255, 255, 0.25);
  --hero-card-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  --hero-glow: radial-gradient(
    circle,
    rgba(72, 214, 160, 0.35),
    transparent 70%
  );
  --hero-subtitle-color: #f3fff9;
  --hero-subtitle-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
  --showcase-bg: linear-gradient(180deg, #f2faf6 0%, #e7f4ee 100%);
  --compare-bg: #edf7f1;
  --phone-shell: linear-gradient(155deg, #2c3136 0%, #15191d 55%, #08090b 100%);
  --phone-screen-bg: #0f1418;
  --section-radius: 16px;
  --radius: 12px;
  --transition: 0.25s ease;

  /* Compatibility tokens */
  --primary: var(--accent-primary);
  --primary-dark: var(--accent-primary-dark);
  --accent: var(--accent-mint);
  --bg: var(--bg-primary);
  --text: var(--text-primary);
  --surface: var(--bg-surface);
  --border-light: var(--card-border);
  --brand-primary: var(--accent-primary);
  --brand-dark: var(--accent-primary-dark);
  --brand-accent: var(--accent-mint);
  --brand-light-bg: var(--bg-primary);
  --text-dark: var(--text-primary);
}

/* Dark Theme */
html.dark {
  --bg-primary: #0b1f17;
  --bg-surface: #122a21;
  --bg-hero: linear-gradient(135deg, #004232 0%, #001f16 100%);

  --text-primary: #e8fff4;
  --text-secondary: #b7e5d3;
  --text-muted: #b7e5d3;

  --card-bg: #142f25;
  --card-border: rgba(80, 200, 120, 0.25);
  --card-shadow: none;

  --accent-primary: #50c878;
  --accent-primary-dark: #2fae72;
  --accent-mint: #7be8c0;
  --accent-warm: #7be8c0;
  --accent-warm-muted: #b7e5d3;

  --button-bg: #50c878;
  --button-text: #003c2a;
  --white: #e8fff4;

  --social-facebook: #69b5ff;
  --surface-soft: #10261f;
  --hero-glass-bg: rgba(19, 43, 35, 0.78);
  --hero-glass-border: rgba(123, 232, 192, 0.25);
  --hero-card-shadow: none;
  --hero-glow: radial-gradient(
    circle,
    rgba(80, 200, 120, 0.2),
    transparent 70%
  );
  --hero-subtitle-color: #e8fff4;
  --hero-subtitle-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
  --showcase-bg: linear-gradient(180deg, #0d1b16, #08110d);
  --compare-bg: #0d1d17;
  --phone-shell: linear-gradient(155deg, #24332d 0%, #111a16 55%, #070d0a 100%);
  --phone-screen-bg: #0f1a15;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: "Cairo", sans-serif;
  transition:
    background 0.3s ease,
    color 0.3s ease;
  margin: 0;
  padding: 0;
}

section {
  background: var(--bg-surface);
}

a {
  color: var(--accent-primary);
}

button,
.cta-button,
.sticky-download-bar__button,
.exit-intent-modal__action {
  background: var(--button-bg);
  color: var(--button-text);
  border-radius: 12px;
}

.text-center {
  text-align: center;
}

main.page {
  padding: 40px 0;
}

.page-container {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  line-height: 1.9;
  font-size: 18px;
  color: var(--text);
}

.page-last-updated {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 14px;
}

.site-mini-banner {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--accent-primary-dark);
  color: var(--white);
  font-size: 14px;
}

.site-mini-banner a {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
}

.site-mini-banner button {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--white);
  border-radius: 8px;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.landing-focus {
  text-align: center;
}

.video-placeholder {
  border: 1px dashed var(--card-border);
  border-radius: 12px;
  padding: 36px 16px;
  text-align: center;
  color: var(--text-secondary);
}

.author-mini p {
  margin-bottom: 8px;
}

.page-title {
  color: var(--primary);
  margin: 0 0 20px;
}

.section-title {
  color: var(--primary);
  text-align: center;
  margin: 0 0 24px;
  font-size: 28px;
  position: relative;
  display: block;
  width: 100%;
  animation: title-fade-up 0.8s ease both;
}

.section-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(0, 106, 78, 0.15),
    rgba(0, 106, 78, 0.85),
    rgba(0, 106, 78, 0.15)
  );
  animation: title-line 1s ease 0.2s both;
}

@keyframes title-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes title-line {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 70px;
    opacity: 1;
  }
}

/* Blog */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.post {
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.9;
  font-size: 18px;
  color: var(--text);
}

.post h1 {
  margin: 0 0 16px;
  color: var(--primary);
}

.post h2,
.post h3 {
  color: var(--primary);
  margin: 24px 0 12px;
}

.post p {
  margin: 0 0 16px;
  color: var(--text);
}

.post ul,
.post ol {
  padding-right: 20px;
  margin: 0 0 16px;
  color: var(--text);
}

.post-byline {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 15px;
}

.post-byline a {
  font-weight: 700;
  text-decoration: none;
}

.post-byline a:hover {
  text-decoration: underline;
}

.post-hook {
  margin: 8px 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--surface-soft);
  color: var(--text-primary);
  font-weight: 600;
}

.reading-progress {
  position: fixed;
  top: 0;
  right: 0;
  height: 3px;
  width: 0;
  z-index: 1200;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-mint));
  transition: width 0.12s linear;
}

.post-reading-time {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}

.post-reading-time--secondary {
  margin-top: -2px;
}

.post-top-cta {
  margin: 12px 0 16px;
  padding: 12px 14px;
}

.post-top-cta .btn-accent {
  display: inline-flex;
}

.post-summary {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.post-summary h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.post-summary ul {
  margin: 0;
  padding-right: 18px;
}

.method-box {
  margin: 0 0 18px;
  padding: 14px 16px;
}

.method-box h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.method-box p {
  margin: 0;
  color: var(--text-secondary);
}

.post-content {
  counter-reset: post-section-counter;
}

.post-content h2 {
  counter-increment: post-section-counter;
}

.post-content h2::before {
  content: counter(post-section-counter) ". ";
  color: var(--accent-primary);
}

.sticky-mini-nav {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--surface-soft);
  position: sticky;
  top: 110px;
  z-index: 9;
}

.sticky-mini-nav h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.post-toc-wrap {
  margin: 0 0 18px;
}

.post-toc,
.post-toc-mobile {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.post-toc {
  position: sticky;
  top: 96px;
  padding: 12px 16px;
}

.post-toc h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.post-toc ul,
.post-toc-mobile ul {
  margin: 0;
  padding-right: 18px;
}

.toc-item {
  margin-bottom: 8px;
}

.toc-item--sub {
  margin-right: 14px;
  font-size: 15px;
}

.post-toc a,
.post-toc-mobile a {
  color: var(--text-primary);
  text-decoration: none;
}

.post-toc a:hover,
.post-toc-mobile a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

.post-toc-mobile {
  display: none;
  padding: 10px 14px;
}

.post-toc-mobile summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-primary);
}

@media (min-width: 1200px) {
  .post-toc-wrap {
    position: relative;
    min-height: 20px;
  }

  .post-toc {
    position: fixed;
    right: 20px;
    top: 110px;
    width: 280px;
    max-height: 72vh;
    overflow: auto;
    z-index: 30;
  }
}

.author-box {
  margin-top: 24px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-box__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--card-border);
}

.author-box__content h3 {
  margin: 0 0 8px;
}

.author-box__label {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}

.author-box__content p {
  margin: 0 0 10px;
  color: var(--text-secondary);
}

.author-box__content a {
  font-weight: 700;
}

.post img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 14px auto 22px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.post-related {
  max-width: 900px;
  margin: 36px auto 0;
}

.post-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.post-related--dynamic {
  max-width: 980px;
}

.related-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.related-card__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.related-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-card__body {
  padding: 12px 14px 14px;
}

.related-card__title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.6;
}

.related-card__title a {
  color: var(--primary);
  text-decoration: none;
}

.related-card__title a:hover {
  text-decoration: underline;
}

.related-card__desc {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-item {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 16px 18px;
  border-left: 5px solid var(--primary);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: center;
}

.post-item--text {
  grid-template-columns: 1fr;
}

.post-body {
  min-width: 0;
}

.post-thumb {
  display: block;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  aspect-ratio: 4 / 3;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-title {
  margin: 0 0 8px;
  font-size: 22px;
}

.post-title a {
  color: var(--primary);
  text-decoration: none;
}

.post-title a:hover {
  text-decoration: underline;
}

.post-meta {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 10px;
}

.post-excerpt {
  margin: 0 0 12px;
  color: var(--text-secondary);
}

.post-readmore {
  margin: 0;
}

.post-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.post-link:hover {
  text-decoration: underline;
}

.post-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 12px auto 22px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.post-image--wide {
  width: min(100%, 820px);
}

.auto-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inline-cta {
  margin: 20px 0;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid var(--card-border);
  background: var(--surface-soft);
}

.inline-cta h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.inline-cta p {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 16px;
}

.inline-cta--medium {
  border-color: var(--primary);
}

.inline-cta--single {
  border-color: rgba(0, 106, 78, 0.35);
  background: linear-gradient(
    145deg,
    rgba(0, 106, 78, 0.08),
    rgba(72, 214, 160, 0.06)
  );
}

.inline-cta--single .cta-button {
  display: inline-block;
  text-decoration: none;
}

.inline-read-also {
  border-color: rgba(0, 106, 78, 0.24);
  background: linear-gradient(
    145deg,
    rgba(0, 106, 78, 0.08),
    rgba(72, 214, 160, 0.06)
  );
}

.inline-read-also h3 {
  margin-bottom: 10px;
}

.template-download-box {
  margin: 16px 0 22px;
  padding: 18px;
  border-radius: 14px;
}

.template-download-box h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.template-download-box p {
  margin: 0 0 12px;
  color: var(--text-secondary);
}

.template-download-box .btn-accent {
  padding: 10px 16px;
  font-weight: 700;
}

.app-apply-box {
  margin: 18px 0 20px;
}

.app-apply-box h2 {
  margin: 0 0 10px;
}

.app-apply-box p {
  margin: 0 0 12px;
  color: var(--text-secondary);
}

.app-apply-box__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.next-step-box {
  margin: 18px 0 20px;
  padding: 16px;
}

.next-step-box h2 {
  margin: 0 0 8px;
}

.next-step-box p {
  margin: 0 0 12px;
  color: var(--text-secondary);
}

.next-step-box__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.post-bottom-cta .card {
  margin-top: 10px;
}

.scroll-cta-toast {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 1100;
  width: min(340px, calc(100vw - 32px));
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 12px 12px 10px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  display: grid;
  gap: 10px;
}

.dark .scroll-cta-toast {
  background: linear-gradient(
    145deg,
    rgba(19, 45, 38, 0.95),
    rgba(10, 25, 21, 0.95)
  );
  border-color: rgba(72, 214, 160, 0.28);
  backdrop-filter: blur(6px);
}

.scroll-cta-toast p {
  margin: 0;
  color: var(--text-primary);
  font-weight: 700;
}

.scroll-cta-toast .btn-accent {
  justify-content: center;
}

.scroll-cta-toast__close {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.scroll-cta-toast__close:hover {
  background: var(--surface-soft);
  color: var(--text-primary);
}

.micro-faq-toggle {
  margin: 20px 0;
  padding: 16px;
}

.micro-faq-toggle h2 {
  margin: 0 0 10px;
}

.micro-faq-toggle details {
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--bg-surface);
  margin-bottom: 10px;
}

.micro-faq-toggle summary {
  cursor: pointer;
  font-weight: 700;
}

.micro-faq-toggle p {
  margin: 8px 0 0;
  color: var(--text-secondary);
}

.related-by-intent {
  margin-top: 18px;
}

.intent-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.intent-card p {
  margin: 0 0 12px;
  color: var(--text-secondary);
}

.intent-card .btn-primary {
  text-decoration: none;
  display: inline-block;
}

.question-box {
  margin: 20px 0;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--surface-soft);
}

.question-box h3 {
  margin: 0 0 8px;
}

.question-box p {
  margin: 0;
  color: var(--text-secondary);
}

.trial-cta {
  max-width: 900px;
  margin: 18px auto 0;
  text-align: center;
  padding: 24px 18px;
}

.trial-cta h2 {
  margin: 0 0 8px;
}

.trial-cta p {
  margin: 0 0 14px;
  color: var(--text-secondary);
}

.share-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  background: var(--social-facebook);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  box-shadow: 0 6px 14px rgba(24, 119, 242, 0.25);
}

.share-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(24, 119, 242, 0.3);
}

/* Header */
header {
  background: var(--bg-surface);
  padding: 15px 0;
  border-bottom: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  width: 42px;
  margin-left: 10px;
}

.logo span {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
  transition: 0.3s;
}

nav a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-light);
  background: var(--card-bg);
  border-radius: 10px;
  cursor: pointer;
  gap: 4px;
  padding: 6px;
}

.nav-toggle__line {
  width: 20px;
  height: 2px;
  background: var(--primary);
  display: block;
}

.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-light);
  background: var(--card-bg);
  color: var(--text);
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: 0.25s ease;
}

.theme-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Hero Section */
.hero {
  padding: 80px 0;
}

.hero-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.hero-text {
  max-width: 550px;
}

.hero h1 {
  font-size: 38px;
  color: var(--accent-warm);
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-img {
  width: 350px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Button */
.btn-play img {
  width: 200px;
  margin-top: 20px;
}

/* Features */
#features {
  padding: 70px 0;
  background: var(--bg-surface);
}

/* Latest posts */
#latest-posts {
  padding: 70px 0;
  background: var(--bg-surface);
}

.latest-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 26px;
}

.latest-post {
  background: var(--surface-soft);
  border-radius: 14px;
  padding: 14px;
  border-left: 5px solid var(--accent-warm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.latest-post__title {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--accent-warm);
}

.latest-post__title a {
  color: inherit;
  text-decoration: none;
}

.latest-post__title a:hover {
  text-decoration: underline;
}

.latest-post__excerpt {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 16px;
}

/* Inner pages helpers */
.info-box,
.step,
.box,
.update,
.contact-card {
  background: var(--surface-soft);
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 15px;
  border-left: 5px solid var(--accent-warm);
}

.faq details {
  margin: 15px 0;
  padding: 15px;
  background: var(--surface-soft);
  border-radius: 10px;
  cursor: pointer;
}

.faq summary {
  font-weight: 700;
  color: var(--accent-warm);
  font-size: 18px;
}

.btn {
  display: inline-block;
  padding: 15px 25px;
  background: var(--accent-warm);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
}

.feature-box {
  background: var(--surface-soft);
  padding: 20px;
  border-radius: 14px;
  text-align: center;
  border-left: 5px solid var(--accent-warm);
}

.feature-box h3 {
  margin-bottom: 10px;
  color: var(--accent-warm);
}

/* Screens */
.screens-grid {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 8px 0 12px;
}

.screen-slide {
  flex: 0 0 360px;
  scroll-snap-align: center;
  margin: 0;
  position: relative;
}

.screen-slide:target {
  outline: 3px solid rgba(255, 124, 0, 0.35);
  border-radius: 14px;
}

.screen-slide picture {
  display: block;
}

.screen-img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19.5;
  object-fit: contain;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 10px;
}

.screens-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 14px;
}

.screen-nav {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: inline-block;
  text-decoration: none;
}

.screen-nav:hover {
  background: rgba(255, 124, 0, 0.55);
  border-color: rgba(255, 124, 0, 0.65);
}

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

.screen-box {
  background: var(--card-border);
  height: 220px;
  border-radius: 12px;
  text-align: center;
  line-height: 220px;
  font-size: 20px;
}

/* Section box */
.section-box {
  background: var(--bg-surface);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  line-height: 1.9;
}

/* Contact */
.contact-box a {
  font-weight: bold;
  color: var(--accent-warm);
}

/* Footer */
footer {
  background: var(--card-bg);
  color: var(--text);
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid var(--border-light);
}

footer a {
  color: var(--primary);
  margin: 0 10px;
  text-decoration: underline;
}

.footer-newsletter {
  max-width: 760px;
  margin: 20px auto 0;
  padding: 16px;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: var(--surface-soft);
}

.footer-newsletter h3 {
  margin: 0 0 8px;
}

.footer-newsletter p {
  margin: 0 0 12px;
  color: var(--text-secondary);
}

.footer-newsletter__form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-newsletter__form input {
  min-width: min(340px, 90vw);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  background: var(--bg-surface);
  color: var(--text-primary);
}

.footer-newsletter__form button {
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.footer-trust-strip {
  max-width: 980px;
  margin: 16px auto 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--surface-soft);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-entity {
  max-width: 980px;
  margin: 14px auto 0;
  line-height: 1.9;
  color: var(--text-secondary);
  font-size: 15px;
}

@media (max-width: 900px) {
  .header-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  nav.nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0 4px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  nav.nav-links.is-open {
    display: flex;
  }

  nav.nav-links a {
    margin-left: 0;
    padding: 8px 10px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-light);
  }

  .logo span {
    font-size: 20px;
  }

  .hero {
    padding: 50px 0;
  }

  .hero-row {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-img {
    width: min(90%, 360px);
  }

  .btn-play img {
    width: 180px;
  }

  main.page {
    padding: 28px 0;
  }

  .page-container {
    padding: 20px;
    font-size: 16px;
  }

  .post {
    font-size: 16px;
  }

  .post-item {
    grid-template-columns: 1fr;
  }

  .post-thumb img {
    height: 170px;
  }
}

@media (max-width: 600px) {
  .container {
    width: 92%;
  }

  .logo img {
    width: 36px;
  }

  .logo span {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 16px;
  }

  .btn {
    font-size: 18px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-row {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-img {
    margin-bottom: 20px;
  }

  main.page {
    padding: 20px 0;
  }

  .page-container {
    padding: 20px;
  }

  .screen-slide {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
}

html.dark footer,
html.dark .page-container,
html.dark .post-item,
html.dark .post-nav__item,
html.dark .info-box,
html.dark .step,
html.dark .box,
html.dark .update,
html.dark .contact-card,
html.dark .faq details {
  background: var(--card-bg);
  color: var(--text);
}

html.dark .section {
  color: var(--text);
}

html.dark .button {
  background: var(--primary);
  color: var(--button-text);
}

html.dark .post,
html.dark .post p,
html.dark .post ul,
html.dark .post ol,
html.dark .post-meta,
html.dark .post-excerpt,
html.dark .post-hint {
  color: var(--text);
}

html.dark .post-thumb,
html.dark .screen-img {
  border-color: var(--border-light);
}

html.dark .sticky-mini-nav {
  background: rgba(19, 43, 35, 0.72);
  border: 1px solid rgba(123, 232, 192, 0.24);
  backdrop-filter: blur(10px);
}

html.dark .card,
html.dark .feature-card,
html.dark .guide-card,
html.dark .home-card,
html.dark .page-container,
html.dark .post-item,
html.dark .post-nav__item,
html.dark .article-cta,
html.dark .app-banner,
html.dark header,
html.dark .sticky-download-bar,
html.dark .exit-intent-modal {
  box-shadow: none;
}

html.dark .page-title,
html.dark .section-title,
html.dark .post h1,
html.dark .post h2,
html.dark .post h3 {
  color: var(--primary);
}

h1,
h2,
h3,
h4 {
  font-family: "Cairo", sans-serif;
  margin-bottom: 16px;
}

.section {
  padding: 80px 20px;
  max-width: 1100px;
  margin: auto;
}

.section--compact {
  padding-top: 24px;
  padding-bottom: 24px;
}

.mindset-banner {
  text-align: center;
  font-weight: 700;
  background: var(--surface-soft);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 14px 16px;
}

.why-system-trust h2 {
  text-align: center;
}

.tool-topbar {
  background: var(--surface-soft);
  border-bottom: 1px solid var(--card-border);
}

.tool-topbar__content {
  max-width: 1160px;
  margin: 0 auto;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
}

.tool-topbar__content span {
  font-weight: 700;
}

.tool-topbar__content a {
  text-decoration: none;
  font-weight: 700;
  color: var(--primary);
}

.tool-topbar__content a:hover {
  text-decoration: underline;
}

.app-banner {
  position: relative;
  z-index: 90;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--card-shadow);
}

.banner-content {
  max-width: 1160px;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.banner-content span {
  font-weight: 600;
}

.banner-btn,
.banner-secondary {
  display: inline-block;
  text-decoration: none;
  border-radius: 16px;
  padding: 8px 14px;
  font-size: 14px;
  transition: 0.25s ease;
}

.banner-btn {
  background: var(--primary);
  color: var(--button-text);
  font-weight: 700;
}

.banner-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.banner-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.banner-secondary:hover {
  background: var(--primary);
  color: var(--button-text);
}

.banner-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}

.banner-close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.breadcrumb {
  font-size: 14px;
  margin-bottom: 14px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ===== Buttons ===== */
.btn-primary {
  background: var(--button-bg);
  color: var(--button-text);
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

.btn-accent {
  background: var(--accent);
  color: var(--button-text);
  padding: 14px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
}

.btn-accent:hover {
  transform: translateY(-2px);
}

/* ===== Cards ===== */
.card,
.feature-card,
.guide-card,
.home-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  transition: all 0.25s ease;
}

.card:hover,
.feature-card:hover,
.guide-card:hover,
.home-card:hover {
  transform: translateY(-4px);
}

/* ===== Grid ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.hero {
  padding: 120px 20px;
  text-align: center;
  background: var(--bg-hero);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-family: "Cairo", sans-serif;
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  max-width: 700px;
  margin: auto;
  line-height: 1.8;
  color: var(--hero-subtitle-color);
  text-shadow: var(--hero-subtitle-shadow);
  opacity: 1;
}

.hero-buttons {
  margin-top: 40px;
}

.hero-cards {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.finance-card {
  min-width: 220px;
  padding: 20px;
  border-radius: 20px;
  backdrop-filter: blur(14px);
  background: var(--hero-glass-bg);
  border: 1px solid var(--hero-glass-border);
  box-shadow: var(--hero-card-shadow);
  transition: all 0.3s ease;
}

.finance-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hero-card-shadow);
}

.finance-card span {
  display: block;
  font-size: 14px;
  opacity: 0.85;
}

.finance-card strong {
  font-size: 24px;
  display: block;
  margin-top: 10px;
  font-family: "Cairo", sans-serif;
}

.finance-card.income strong {
  color: var(--income);
}

.finance-card.expense strong {
  color: var(--expense);
}

.finance-card.balance strong {
  color: var(--accent);
}

.hero::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--hero-glow);
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(60px);
  z-index: 0;
}

html.dark .hero::after {
  display: none;
}

html.dark .finance-card {
  backdrop-filter: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.app-showcase {
  padding: 120px 20px;
  background: var(--showcase-bg);
  color: var(--text-primary);
}

.showcase-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

.phone-mockup {
  width: 308px;
  padding: 10px;
  border-radius: 34px;
  background: var(--phone-shell);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 20px 46px rgba(0, 66, 50, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(0, 0, 0, 0.42);
  position: relative;
  transition: 0.4s ease;
  overflow: hidden;
}

.phone-screen-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 28px;
  overflow: hidden;
  background: var(--phone-screen-bg)
    url("/assets/images/screens/screen-01.webp") center/cover no-repeat;
}

.phone-mockup::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.phone-mockup::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 6px;
  border-radius: 999px;
  background: rgba(8, 10, 12, 0.72);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.phone-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  opacity: 0;
  transition:
    opacity 0.45s ease,
    filter 0.45s ease;
  filter: saturate(0.95);
}

.phone-screen.is-active {
  opacity: 1;
  filter: saturate(1);
}

.phone-screen.is-flash {
  animation: screen-flash 0.45s ease;
}

@keyframes screen-flash {
  0% {
    filter: brightness(1.25) saturate(1.2);
  }
  100% {
    filter: brightness(1) saturate(1);
  }
}

.phone-mockup:hover {
  transform: rotateY(6deg) rotateX(4deg);
}

.download-screenshot {
  display: block;
  width: min(380px, 92vw);
  max-width: 100%;
  height: auto;
  margin: 24px auto 0;
  object-fit: contain !important;
}

.download-phone-demo .phone-mockup {
  width: auto !important;
  max-width: min(380px, 92vw) !important;
  padding: 0 !important;
  margin: 24px auto 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  transform: none !important;
}

.download-phone-demo .phone-mockup::before,
.download-phone-demo .phone-mockup::after {
  display: none !important;
}

.download-phone-demo .phone-screen-stack {
  position: static !important;
  width: auto !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

.download-phone-demo .phone-screen {
  position: static !important;
  display: block !important;
  width: min(380px, 92vw) !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 0 !important;
  opacity: 1 !important;
  filter: none !important;
  object-fit: contain !important;
}

.showcase-text {
  max-width: 450px;
}

.showcase-text h2 {
  font-family: "Cairo", sans-serif;
  font-size: 32px;
  margin-bottom: 20px;
}

.showcase-text p {
  margin: 0;
  line-height: 1.9;
  opacity: 0.92;
}

.cta-secondary {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 24px;
  border-radius: 50px;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  text-decoration: none;
  transition: 0.3s;
}

.cta-secondary:hover {
  background: var(--accent-primary);
  color: var(--button-text);
}

.before-after {
  padding: 100px 20px;
  background: var(--compare-bg);
}

.ba-container {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.ba-card {
  width: 320px;
  padding: 30px;
  border-radius: 24px;
  backdrop-filter: blur(8px);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  box-shadow: var(--card-shadow);
}

.ba-card h3 {
  margin-top: 0;
}

.ba-card ul {
  margin: 0;
  padding-right: 18px;
  line-height: 2;
}

.ba-card.bad {
  border-left: 4px solid var(--danger);
}

.ba-card.good {
  border-left: 4px solid var(--income);
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 16px;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.25s ease;
  margin: 10px;
}

.btn.primary {
  background: var(--accent);
  color: var(--button-text);
  font-weight: bold;
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

.cta-button {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  background: var(--primary);
  color: var(--button-text);
  transition: 0.25s ease;
}

.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.article-cta {
  margin: 40px auto 0;
  max-width: 900px;
  text-align: center;
  padding: 28px 22px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  box-shadow: var(--card-shadow);
}

.article-cta--strong {
  border-width: 2px;
}

.article-cta h3 {
  margin: 0 0 10px;
  color: var(--text);
}

.article-cta p {
  margin: 0 0 16px;
  color: var(--text);
}

.article-cta .cta-button,
.article-cta .cta-secondary {
  margin: 6px;
}

.article-cta .cta-secondary {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 16px;
  border: 1px solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  background: transparent;
  transition: 0.25s ease;
}

.article-cta .cta-secondary:hover {
  background: var(--primary);
  color: var(--button-text);
}

.static-related {
  padding-top: 8px;
}

.pillar-mini-feature {
  margin-top: 26px;
  text-align: center;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.pillar-mini-feature h2 {
  margin: 0 0 14px;
}

.pillar-mini-feature ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.pillar-mini-feature li {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--surface-soft);
  font-weight: 700;
  color: var(--text-primary);
}

.sticky-download-bar {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 22px));
  z-index: 1200;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background:
    linear-gradient(145deg, rgba(0, 106, 78, 0.08), rgba(0, 66, 50, 0.12)),
    var(--card-bg);
  box-shadow: var(--card-shadow);
}

.sticky-download-bar[hidden] {
  display: none !important;
}

.sticky-download-bar__text {
  margin: 0;
  font-weight: 700;
  color: var(--text-primary);
}

.sticky-download-bar__button {
  text-decoration: none;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 12px;
  white-space: nowrap;
}

.sticky-download-bar__button:hover {
  opacity: 0.94;
}

.sticky-download-bar__close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.exit-intent-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  background: rgba(6, 20, 15, 0.55);
  padding: 16px;
}

.exit-intent-overlay[hidden] {
  display: none !important;
}

.exit-intent-modal {
  width: min(520px, 100%);
  position: relative;
  text-align: center;
  padding: 26px 20px 20px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.exit-intent-modal h3 {
  margin: 0 0 16px;
  line-height: 1.8;
}

.exit-intent-modal__close {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 20px;
}

.exit-intent-modal__action {
  display: inline-block;
  text-decoration: none;
  padding: 12px 22px;
  font-weight: 700;
}

.author-page {
  max-width: 900px;
  margin: 0 auto;
}

.author-profile {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}

.author-profile__image {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--card-border);
}

.author-profile__meta h1 {
  margin: 0 0 10px;
}

.author-profile__meta p {
  margin: 0;
  color: var(--text-secondary);
}

.author-page__section {
  margin-bottom: 22px;
}

.author-page__section h2 {
  margin-bottom: 8px;
}

.author-page__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.trust-signals .grid-3 .card h3 {
  margin-top: 0;
}

.trust-signals-note {
  margin-top: 18px;
  text-align: center;
  font-weight: 700;
  color: var(--accent-primary);
}

.free-tools-links {
  margin: 0;
  padding-right: 20px;
  line-height: 2;
}

.free-tools-links a {
  text-decoration: none;
  font-weight: 700;
}

.free-tools-links a:hover {
  text-decoration: underline;
}

.budget-calculator {
  max-width: 940px;
  margin: 0 auto;
}

.budget-calculator__intro {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.calculator-form {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--card-shadow);
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.calculator-input {
  display: grid;
  gap: 6px;
}

.calculator-input label {
  font-weight: 700;
}

.calculator-input input {
  width: 100%;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  background: var(--bg-surface);
  color: var(--text-primary);
  box-sizing: border-box;
}

.calculator-output {
  margin-top: 18px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--surface-soft);
}

.calculator-output p {
  margin: 0 0 10px;
}

.calculator-result {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}

.calculator-result--positive {
  color: var(--income);
}

.calculator-result--negative {
  color: var(--expense);
}

.calculator-tip {
  margin: 0 0 14px;
  color: var(--text-secondary);
}

.calculator-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.weekly-template {
  max-width: 940px;
  margin: 0 auto;
}

.weekly-template__intro {
  color: var(--text-secondary);
}

.tools-intro {
  margin-bottom: 18px;
  color: var(--text-secondary);
}

.tools-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tools-calculator h2 {
  margin-top: 0;
  font-size: 22px;
}

.press-mentions,
.resources-list,
.updates-list {
  margin: 0;
  padding-right: 20px;
  line-height: 1.9;
}

.case-study-card h2 {
  font-size: 22px;
  margin-top: 0;
}

.case-study-metrics {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--card-border);
}

.latest-updates .grid-3 {
  align-items: stretch;
}

.latest-update-card {
  position: relative;
}

.latest-update-card h3 {
  margin-top: 10px;
}

.latest-update-card h3 a {
  text-decoration: none;
  color: inherit;
}

.latest-update-date {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 8px 0 14px;
}

.update-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(80, 200, 120, 0.16);
  color: var(--accent-primary);
  font-size: 12px;
  font-weight: 700;
}

.new-posts-list {
  display: grid;
  gap: 16px;
}

.new-post-item h2 {
  margin-top: 0;
}

.new-post-item h2 a {
  text-decoration: none;
  color: inherit;
}

.inline-read-also {
  margin: 20px 0;
}

.inline-read-also h2 {
  margin-top: 0;
  font-size: 20px;
}

.inline-read-also ul {
  margin: 0;
  padding-right: 20px;
}

.inline-read-also li {
  margin: 8px 0;
}

.social-push-card h2 {
  margin-top: 0;
}

.social-push-card button {
  border: 0;
  cursor: pointer;
}

.start-progress__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.start-progress__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.start-progress__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
}

.start-progress__icon--done {
  color: var(--income);
  border-color: var(--income);
}

.method-diagram {
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--surface-soft);
  overflow-x: auto;
  line-height: 1.8;
}

.template-table-wrap {
  overflow-x: auto;
  margin: 14px 0 18px;
}

.template-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.template-table th,
.template-table td {
  border: 1px solid var(--card-border);
  padding: 10px;
  text-align: right;
}

.template-table th {
  background: var(--surface-soft);
}

.template-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.topical-blocks-home .grid-3 {
  align-items: stretch;
}

.topic-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.topic-block h3 {
  margin: 0;
}

.topic-block p {
  margin: 0;
}

.topic-block__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.topic-block__list a {
  color: var(--text-primary);
  text-decoration: none;
}

.topic-block__list a:hover {
  text-decoration: underline;
}

.topic-level-ladder .card p {
  margin: 0;
}

.post-topic-cluster,
.post-next-step,
.post-topic-hub {
  padding-top: 14px;
  padding-bottom: 14px;
}

.post-next-step p {
  margin: 0;
}

.post-topic-hub .btn-primary {
  margin-top: 6px;
}

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  color: inherit;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary:hover {
  color: var(--accent-primary);
}

.nav-dropdown[open] summary {
  color: var(--accent-primary);
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--bg-surface);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  z-index: 50;
  display: grid;
  gap: 6px;
}

.nav-dropdown__menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-dropdown__menu a:hover {
  background: rgba(0, 106, 78, 0.08);
}

body.dark .nav-dropdown__menu {
  box-shadow: none;
}

body.dark .nav-dropdown__menu a:hover {
  background: rgba(80, 200, 120, 0.12);
}

.quiz-list {
  margin: 0;
  padding-right: 20px;
  display: grid;
  gap: 16px;
}

.quiz-list li p {
  margin-bottom: 8px;
  font-weight: 700;
}

.quiz-list label {
  margin-left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quiz-actions {
  margin-top: 18px;
}

.quiz-result {
  margin-top: 16px;
}

.email-capture-box__form {
  margin: 14px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.email-capture-box__form input {
  flex: 1 1 260px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--bg-surface);
  color: var(--text-primary);
}

.email-capture-box__form button {
  border: none;
  cursor: pointer;
  padding: 10px 16px;
}

.demand-funnel-box ol {
  margin: 0;
  padding-right: 18px;
  display: grid;
  gap: 8px;
}

.mobile-article-sticky {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  padding: 8px;
}

.mobile-article-sticky__cta {
  flex: 1;
  text-align: center;
  text-decoration: none;
  background: var(--accent-primary);
  color: var(--white);
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
}

.mobile-article-sticky__close {
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--text-primary);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown summary {
    display: block;
    width: 100%;
    padding: 6px 0;
  }

  .nav-dropdown__menu {
    position: static;
    margin-top: 8px;
    width: 100%;
    box-shadow: none;
  }

  .topic-block {
    gap: 10px;
  }

  .post-topic-cluster,
  .post-next-step,
  .post-topic-hub {
    padding: 10px 0;
  }

  .post-toc {
    display: none;
  }

  .post-toc-mobile {
    display: block;
  }

  .author-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .author-box__avatar {
    width: 84px;
    height: 84px;
  }

  .post-summary h2 {
    font-size: 20px;
  }

  .sticky-mini-nav {
    position: static;
  }

  .hero {
    padding: 80px 16px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

  .app-showcase {
    padding: 80px 16px;
  }

  .showcase-container {
    gap: 40px;
  }

  .phone-mockup {
    width: min(308px, 86vw);
  }

  .before-after {
    padding: 80px 16px;
  }

  .banner-content {
    justify-content: flex-start;
    gap: 8px;
  }

  .tool-topbar__content {
    justify-content: flex-start;
  }

  .banner-content span {
    width: 100%;
    font-size: 14px;
  }

  .sticky-download-bar {
    width: calc(100% - 16px);
    grid-template-columns: 1fr auto;
    padding: 9px 10px;
    bottom: 8px;
    gap: 8px;
  }

  .sticky-download-bar__text {
    grid-column: 1 / -1;
    font-size: 14px;
  }

  .sticky-download-bar__button {
    width: 100%;
    text-align: center;
  }

  .sticky-download-bar__close {
    justify-self: start;
  }

  .exit-intent-modal {
    padding: 24px 14px 16px;
  }

  .exit-intent-modal h3 {
    font-size: 20px;
  }

  .article-cta {
    margin-top: 28px;
    padding: 22px 16px;
  }

  .author-profile {
    grid-template-columns: 1fr;
  }

  .email-capture-box__form {
    flex-direction: column;
  }

  .site-mini-banner {
    font-size: 13px;
    padding: 7px 10px;
    gap: 8px;
  }
}

@media (min-width: 901px) {
  .mobile-article-sticky {
    display: none !important;
  }
}
.article-layout {
  max-width: 760px;
  margin: 0 auto;
}
.article-layout .post,
.article-layout .post-content,
.article-layout .page-container {
  line-height: 1.6;
}
.article-layout p {
  margin: 12px 0;
}
.article-layout h1 {
  margin: 0 0 8px;
  line-height: 1.2;
}
.article-layout h2 {
  margin: 24px 0 12px;
  font-size: 1.35rem;
}
.article-layout h3 {
  margin: 16px 0 8px;
  font-size: 1.1rem;
}
.article-layout .post__meta {
  margin-bottom: 20px;
  color: #555;
  font-size: 0.95rem;
}
.article-layout .post__meta time {
  font-weight: 600;
}
.article-layout .post {
  max-width: 48ch;
}

.author-box {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafafa;
  margin: 32px 0 12px;
}
.author-box__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
}
.author-box__name {
  margin: 0 0 4px;
  font-weight: 700;
}
.author-box__bio {
  margin: 0 0 8px;
  color: #444;
}
.author-box__link {
  font-weight: 600;
  color: #0f766e;
  text-decoration: none;
}
.author-box__link:hover {
  text-decoration: underline;
}

.related-posts {
  margin: 40px auto 32px;
  padding: 0 0;
  max-width: 1100px;
}
.related-posts__title {
  margin: 0 0 16px;
  font-size: 1.35rem;
}
.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.related-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.related-card__thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}
.related-card__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.related-card__title {
  margin: 0;
  font-size: 1.05rem;
}
.related-card__title a {
  text-decoration: none;
  color: #111;
}
.related-card__title a:hover {
  text-decoration: underline;
}
.related-card__desc {
  margin: 0;
  color: #444;
  font-size: 0.95rem;
}

/* Lazy images + CLS guard */
img[loading="lazy"] {
  height: auto;
  display: block;
}
.related-card__thumb img {
  aspect-ratio: 1200 / 630;
}
picture img {
  width: 100%;
  height: auto;
}

/* EN minimal scope */
body.en-page img {
  max-width: 100%;
  height: auto;
}
body.en-page img[width][height] {
  object-fit: cover;
}

/* EN: last updated */
.en-page .last-updated,
html[lang="en"] .last-updated {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  opacity: 0.75;
}

/* EN width override */
html[lang="en"] .page-container {
  max-width: 1280px;
  margin: 0 auto;
}

/* Fix hero click issues */
html[lang="en"] .hero-saas {
  position: relative;
  z-index: 1;
}

html[lang="en"] .hero-saas * {
  position: relative;
  z-index: 2;
}

html[lang="en"] .hero-saas::before,
html[lang="en"] .hero-saas::after {
  pointer-events: none !important;
}

html[lang="en"] .hero-actions a {
  pointer-events: auto !important;
  z-index: 5;
}

/* Hero checklist bullets */
html[lang="en"] .hero-card ul {
  list-style: none;
  padding-left: 0;
  margin: 12px 0 0;
}

html[lang="en"] .hero-card li {
  position: relative;
  padding-left: 24px;
  margin: 10px 0;
}

html[lang="en"] .hero-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 600;
  opacity: 0.85;
}

/* EN: make all common containers wider */
html[lang="en"] .container {
  max-width: 1280px;
}

html[lang="en"] .page-container {
  max-width: 1280px;
}

/* EN: reduce heavy hero background on article pages */
html[lang="en"] .hero {
  text-align: left;
}

.hero-slim {
  padding: 40px 0 20px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.topic-card {
  padding: 24px;
  border-radius: 16px;
  background: #f7f9f8;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.topic-card h2 {
  margin-top: 0;
}

.topic-card a {
  font-weight: 600;
  text-decoration: none;
}

/* ================================
   EN HUB PACK (Guides + Topics)
   Applies only to English pages
================================ */

html[lang="en"] .page-container {
  max-width: 1280px;
  margin: 0 auto;
}

/* Slim hero */
html[lang="en"] .hero-slim {
  padding: 56px 0 32px;
}

html[lang="en"] .hero-slim h1 {
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 14px;
}

html[lang="en"] .hero-slim p {
  font-size: 18px;
  max-width: 720px;
  opacity: 0.85;
}

/* CTA row */
html[lang="en"] .en-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Secondary button */
html[lang="en"] .btn-secondary {
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: transparent;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

html[lang="en"] .btn-secondary:hover {
  background: #f3f5f4;
}

/* Feature grid */
html[lang="en"] .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 24px;
}

/* Cards */
html[lang="en"] .feature-card,
html[lang="en"] .topic-card {
  padding: 28px;
  border-radius: 18px;
  background: #f8faf9;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

html[lang="en"] .feature-card:hover,
html[lang="en"] .topic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

html[lang="en"] .feature-card h3,
html[lang="en"] .topic-card h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

html[lang="en"] .feature-card p,
html[lang="en"] .topic-card p {
  opacity: 0.85;
  line-height: 1.6;
}

/* Links inside cards */
html[lang="en"] .feature-card a,
html[lang="en"] .topic-card a {
  font-weight: 600;
  text-decoration: none;
}

/* Topic grid */
html[lang="en"] .topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 28px;
}

/* Better spacing between sections */
html[lang="en"] .section {
  padding: 56px 0;
}

/* Improve headings rhythm */
html[lang="en"] h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

html[lang="en"] h3 {
  font-size: 20px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  html[lang="en"] .hero-slim h1 {
    font-size: 30px;
  }

  html[lang="en"] .section {
    padding: 40px 0;
  }
}

/* Arabic font tuning */
html[lang="ar"],
body.ar-page {
  font-family: "Cairo", Tahoma, "Arial", sans-serif;
}

/* System context box */
.system-context {
  background: #f5f8f7;
  padding: 14px 18px;
  border-left: 4px solid #0f6b4f;
  margin: 16px 0 22px;
  border-radius: 8px;
  font-size: 15px;
}
.system-context a {
  font-weight: 600;
  text-decoration: none;
}

/* ===============================
   MODULE LAYOUT SYSTEM
================================ */

.module-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
}

/* Sidebar */
.module-sidebar {
  position: relative;
}

.module-sidebar-inner {
  position: sticky;
  top: 100px;
}

.module-sidebar-title {
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 14px;
  text-transform: uppercase;
  opacity: 0.7;
}

.module-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.module-nav a {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0.8;
}

.module-nav a:hover {
  background: #f3f5f4;
}

.module-nav a.active {
  background: #e9f2ef;
  font-weight: 600;
  opacity: 1;
}

/* CTA */
.module-cta {
  margin-top: 24px;
}

/* Content width optimization */
.module-content {
  max-width: 780px;
}

/* Mobile */
@media (max-width: 980px) {
  .module-container {
    grid-template-columns: 1fr;
  }

  .module-sidebar {
    display: none;
  }

  .module-content {
    max-width: 100%;
  }
}

.inline-download {
  background: #f5f8f7;
  padding: 18px 20px;
  border-radius: 12px;
  margin: 30px 0;
}

html.dark .inline-download {
  background: #0f3025;
  border: 1px solid rgba(123, 232, 192, 0.25);
}

.module-link {
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-top: 8px;
}
/* EN layout readability */
body.en-page .page {
  max-width: 900px;
  margin: 40px auto;
  padding: 24px 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
body.en-page .article {
  max-width: 48ch;
  margin: 0 auto;
  line-height: 1.6;
}
body.en-page h1 {
  margin: 0 0 10px;
  line-height: 1.2;
  font-size: 2rem;
}
body.en-page h2 {
  margin: 24px 0 12px;
  font-size: 1.35rem;
}
body.en-page h3 {
  margin: 16px 0 8px;
  font-size: 1.1rem;
}
body.en-page p {
  margin: 12px 0;
}
body.en-page ul,
body.en-page ol {
  margin: 12px 0 12px 22px;
  padding: 0;
}
body.en-page li {
  margin: 6px 0;
}
body.en-page a {
  color: #0f766e;
  text-decoration: none;
}
body.en-page a:hover {
  text-decoration: underline;
}
/* =========================
   EN SaaS Upgrade (Header + Layout)
========================= */

/* Better baseline for EN pages */
html[lang="en"] .page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
html[lang="en"] .section {
  padding: 28px 0;
}
html[lang="en"] .section.hero {
  padding: 48px 0 26px;
}
html[lang="en"] h1 {
  letter-spacing: -0.02em;
  line-height: 1.1;
}
html[lang="en"] h2 {
  letter-spacing: -0.01em;
}
html[lang="en"] p {
  line-height: 1.75;
}

/* Header (sticky + subtle blur) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-name {
  font-weight: 700;
  font-size: 1rem;
  color: inherit;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.main-nav a {
  text-decoration: none;
  opacity: 0.9;
}
.main-nav a:hover {
  opacity: 1;
}

.btn-nav {
  padding: 10px 14px;
  border-radius: 10px;
  background: #0c6a4e; /* If you prefer keep your tokens, replace with var */
  color: #fff !important;
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.7);
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 2px;
}

/* Mobile Drawer */
.mobile-drawer[hidden] {
  display: none;
}
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
}
.mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.mobile-drawer__panel {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  padding: 14px;
}
.mobile-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.mobile-title {
  font-weight: 700;
}
.mobile-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}
.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
}
.mobile-links a {
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
}
.btn-mobile {
  text-align: center;
  background: #0c6a4e !important;
  color: #fff !important;
}

/* Responsive: hide desktop nav, show hamburger */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-block;
  }
}

/* Hero layout upgrade */
.hero-saas {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: center;
}
.hero-card {
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.03);
  padding: 18px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.btn-secondary {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  text-decoration: none;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.feature-card {
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  padding: 16px;
}
.feature-card h3 {
  margin: 0 0 6px;
}
.feature-card p {
  margin: 0;
  opacity: 0.9;
}

@media (max-width: 900px) {
  .hero-saas {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Prevent body scroll when menu open */
body.no-scroll {
  overflow: hidden;
}

/* ======================================
   MOBILE MODULE DRAWER (System Modules)
====================================== */
.mobile-module-toggle {
  display: none;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #f3f5f4;
}

.mobile-module-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  display: flex;
  align-items: flex-end;
}

.mobile-module-panel {
  background: #fff;
  width: 100%;
  max-height: 80%;
  border-radius: 20px 20px 0 0;
  padding: 20px;
  overflow: auto;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.mobile-module-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mobile-module-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.mobile-module-links a {
  text-decoration: none;
  font-weight: 500;
}

.mobile-download-btn {
  width: 100%;
  text-align: center;
}

@media (max-width: 980px) {
  .module-sidebar {
    display: none;
  }
  .mobile-module-toggle {
    display: block;
  }
  .module-content {
    max-width: 100%;
  }
}

@media (min-width: 981px) {
  .mobile-module-drawer {
    display: none;
  }
}

/* ===============================
   MOBILE FIRST CORE TYPOGRAPHY
================================ */
html {
  font-size: 16px;
}

body {
  line-height: 1.7;
  padding-bottom: 60px; /* reserve space for mobile sticky CTA */
}

.page-container {
  padding: 0 18px;
}

/* Improve reading width */
.module-content,
.page-container {
  max-width: 720px;
  margin: 0 auto;
}

/* Better spacing */
.section {
  padding: 36px 0;
}

h1 {
  font-size: 28px;
  line-height: 1.2;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

/* Image safety: prevent CLS */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hero mobile optimization */
.hero {
  padding-top: 28px;
}

.hero p {
  font-size: 16px;
  opacity: 0.9;
}

.btn-primary {
  display: inline-block;
  width: 100%;
  text-align: center;
  margin-top: 12px;
}

/* Mobile-first grids */
.feature-grid,
.topic-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 980px) {
  .feature-grid,
  .topic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile sticky CTA */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f6b4f;
  text-align: center;
  padding: 12px;
  z-index: 1000;
}

.mobile-sticky-cta a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

@media (min-width: 980px) {
  .mobile-sticky-cta {
    display: none;
  }
}

/* Header compact on mobile */
.site-header {
  padding: 10px 0;
}

/* Dark theme fixes */
html.dark body {
  background: #0b1f17;
  color: #e8fff4;
}

html.dark .site-header {
  background: rgba(11, 31, 23, 0.9);
  border-bottom: 1px solid rgba(123, 232, 192, 0.15);
}

html.dark .main-nav a {
  color: #e8fff4;
}

html.dark .logo span,
html.dark .brand-name {
  color: #e8fff4;
}

html.dark .page,
html.dark main.page,
html.dark .page-container,
html.dark .container.page-container {
  background: transparent;
  color: #e8fff4;
}

html.dark .container {
  background: transparent;
}

html.dark main.page,
html.dark .page,
html.dark .card,
html.dark .hero-card,
html.dark .topic-card,
html.dark .feature-card,
html.dark .module-content,
html.dark .module-sidebar-inner {
  background: #142f25;
  color: #e8fff4;
  box-shadow: none;
  border-color: rgba(123, 232, 192, 0.18);
}

html.dark .page-container {
  background: transparent;
}

html.dark a {
  color: #7be8c0;
}

html.dark .btn-primary,
html.dark .btn-secondary,
html.dark .btn-nav {
  color: #fff !important;
}

html.dark a {
  color: #7be8c0;
}
/* Theme toggle */
.theme-toggle-btn {
  position: fixed;
  inset-inline-end: 16px;
  inset-block-end: 90px;
  z-index: 1200;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #0f6b4f;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
\n.theme-toggle-btn:hover {
  background: #f3f5f4;
}

@media (max-width: 768px) {
  .theme-toggle-btn {
    inset-block-end: 80px;
  }
}

/* Ensure green buttons stay legible */
.btn-primary,
.btn-primary:visited {
  color: #fff !important;
}

.btn-primary:hover {
  color: #fff !important;
}

/* Button legibility */
button,
.btn,
.btn.primary,
.btn-accent {
  color: #fff !important;
  font-weight: 700;
}

.btn.secondary,
.btn-secondary {
  background: transparent;
  border: 1px solid #0f6b4f;
  color: #0f6b4f !important;
}

html.dark .btn.secondary,
html.dark .btn-secondary {
  border: 1px solid #7be8c0;
  color: #7be8c0 !important;
  background: transparent;
}

/* Store badges */
.store-badge {
  display: inline-block;
}

.store-badge img {
  height: 60px;
  width: auto;
  display: block;
}

/* Floating AR switch on EN pages */
html[lang="en"] .floating-lang-btn {
  position: fixed;
  right: 16px;
  bottom: 90px;
  z-index: 1200;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #0f6b4f;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

html[lang="en"] .floating-lang-btn:hover {
  background: #f3f5f4;
}

@media (min-width: 981px) {
  html[lang="en"] .floating-lang-btn {
    bottom: 24px;
  }
}

/* ======================================
   MOBILE MODULE DRAWER (System Modules)
====================================== */
.mobile-module-toggle {
  display: none;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #f3f5f4;
}

.mobile-module-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  display: flex;
  align-items: flex-end;
}

.mobile-module-panel {
  background: #fff;
  width: 100%;
  max-height: 80%;
  border-radius: 20px 20px 0 0;
  padding: 20px;
  overflow: auto;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.mobile-module-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mobile-module-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.mobile-module-links a {
  text-decoration: none;
  font-weight: 500;
}

.mobile-download-btn {
  width: 100%;
  text-align: center;
}

@media (max-width: 980px) {
  .module-sidebar {
    display: none;
  }
  .mobile-module-toggle {
    display: block;
  }
  .module-content {
    max-width: 100%;
  }
}

@media (min-width: 981px) {
  .mobile-module-drawer {
    display: none;
  }
}

/* ===============================
   MOBILE FIRST CORE TYPOGRAPHY
================================ */
html {
  font-size: 16px;
}

body {
  line-height: 1.7;
}

.page-container {
  padding: 0 18px;
}

/* Improve reading width */
.module-content,
.page-container {
  max-width: 720px;
  margin: 0 auto;
}

/* Better spacing */
.section {
  padding: 36px 0;
}

h1 {
  font-size: 28px;
  line-height: 1.2;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

/* Hero mobile optimization */
.hero {
  padding-top: 28px;
}

.hero p {
  font-size: 16px;
  opacity: 0.9;
}

.btn-primary {
  display: inline-block;
  width: 100%;
  text-align: center;
  margin-top: 12px;
}

/* Mobile-first grids */
.feature-grid,
.topic-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 980px) {
  .feature-grid,
  .topic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile sticky CTA */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f6b4f;
  text-align: center;
  padding: 12px;
  z-index: 1000;
}

.mobile-sticky-cta a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

@media (min-width: 980px) {
  .mobile-sticky-cta {
    display: none;
  }
}

/* Header compact on mobile */
.site-header {
  padding: 10px 0;
}

/* Mega Menu for Arabic system nav */
.main-nav {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.nav-item.mega {
  position: relative;
}
.nav-item.mega .mega-toggle {
  display: none;
}
.nav-item.mega .mega-toggle-btn {
  display: none;
  cursor: pointer;
  width: 14px;
  height: 14px;
}
.nav-item.mega .mega-panel {
  position: absolute;
  right: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 16px;
  display: none;
  min-width: 540px;
  max-width: 760px;
  z-index: 20;
  border-radius: 10px;
}
.nav-item.mega:hover .mega-panel {
  display: grid;
}
.nav-item.mega .mega-panel {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.mega-card {
  display: block;
  padding: 10px 12px;
  border: 1px solid #eef1f4;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
  background: #fafbfc;
}
.mega-card:hover {
  border-color: #0ea5c6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.mega-title {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}
.mega-desc {
  display: block;
  font-size: 14px;
  color: #4b5563;
}

@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .nav-item.mega {
    width: 100%;
  }
  .nav-item.mega .mega-toggle-btn {
    display: inline-block;
    margin-right: 8px;
  }
  .nav-item.mega .mega-panel {
    position: static;
    display: none;
    width: 100%;
    box-shadow: none;
    border-radius: 8px;
  }
  .nav-item.mega
    .mega-toggle:checked
    + .nav-link
    + .mega-toggle-btn
    + .mega-panel {
    display: grid;
  }
  .nav-item.mega:hover .mega-panel {
    display: none;
  }
}

.card-cover {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
  display: block;
}

/* Arabic home hero refresh */
.site-header .btn-primary,
.hero-buttons .btn-primary,
.hero-buttons .btn {
  width: auto;
  margin-top: 0;
}

.page-home-ar .hero-home-ar {
  background:
    radial-gradient(
      circle at top right,
      rgba(11, 107, 83, 0.08),
      transparent 32%
    ),
    linear-gradient(180deg, #fffdf8 0%, #f7f8f6 100%);
  color: #111827;
  padding: 72px 0 40px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.page-home-ar .hero-home-ar::after {
  display: none;
}

.page-home-ar .hero-home-ar .hero-home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 32px;
  align-items: center;
  text-align: right;
}

.page-home-ar .hero-copy {
  max-width: 700px;
}

.page-home-ar .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: #eef6f2;
  border: 1px solid rgba(11, 107, 83, 0.08);
  color: #0b6b53;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 20px;
}

.page-home-ar .hero-home-ar h1 {
  color: #0f172a;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.page-home-ar .hero-home-ar p,
.page-home-ar .hero-home-ar .hero-lead {
  color: #475569;
  text-shadow: none;
  opacity: 1;
  margin: 0;
}

.page-home-ar .hero-home-ar .hero-lead {
  max-width: 640px;
  font-size: 20px;
  line-height: 1.9;
}

.page-home-ar .hero-buttons {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.page-home-ar .hero-buttons .btn-primary,
.page-home-ar .hero-buttons .btn {
  min-width: 190px;
  text-align: center;
  border-radius: 999px;
  padding: 14px 22px;
}

.page-home-ar .hero-buttons .btn {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.12);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.page-home-ar .hero-buttons .btn:hover {
  background: #f8fafc;
}

.page-home-ar .hero-points {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}

.page-home-ar .hero-points li {
  position: relative;
  padding-right: 18px;
  color: #334155;
  font-size: 16px;
}

.page-home-ar .hero-points li::before {
  content: "";
  position: absolute;
  top: 11px;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0b6b53;
}

.page-home-ar .hero-proof {
  display: block;
}

.page-home-ar .hero-proof-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(249, 250, 251, 0.98) 100%
  );
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
  padding: 28px;
}

.page-home-ar .hero-proof-label {
  font-size: 14px;
  font-weight: 700;
  color: #0b6b53;
  margin-bottom: 18px;
}

.page-home-ar .hero-proof-steps {
  display: grid;
  gap: 16px;
}

.page-home-ar .hero-proof-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.page-home-ar .hero-proof-step strong {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #edf7f2;
  color: #0b6b53;
  font-size: 18px;
}

.page-home-ar .hero-proof-step h2 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #0f172a;
}

.page-home-ar .hero-proof-step p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.8;
}

.page-home-ar .hero-proof-link {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  color: #0b6b53;
  text-decoration: none;
  font-weight: 700;
}

.page-home-ar .hero-proof-link:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .page-home-ar .hero-home-ar {
    padding: 56px 0 28px;
  }

  .page-home-ar .hero-home-ar .hero-home-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-home-ar .hero-home-ar h1 {
    font-size: 40px;
  }

  .page-home-ar .hero-home-ar .hero-lead {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .page-home-ar .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .page-home-ar .hero-buttons .btn-primary,
  .page-home-ar .hero-buttons .btn {
    width: 100%;
    min-width: 0;
  }

  .page-home-ar .hero-proof-card {
    padding: 20px;
    border-radius: 22px;
  }
}

.page-home-en .hero-home-en {
  background:
    radial-gradient(
      circle at top left,
      rgba(14, 165, 198, 0.06),
      transparent 28%
    ),
    linear-gradient(180deg, #fffdf8 0%, #f7f8f6 100%);
  color: #111827;
  padding: 72px 0 40px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.page-home-en .hero-home-en::after {
  display: none;
}

.page-home-en .hero-home-layout-en {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
  gap: 40px;
  align-items: start;
  text-align: left;
}

.page-home-en .hero-copy {
  max-width: 760px;
  justify-self: start;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}

.page-home-en .hero-eyebrow {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  background: #eef6f2;
  border: 1px solid rgba(11, 107, 83, 0.08);
  color: #0b6b53;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 20px;
}

.page-home-en .hero-home-en h1 {
  color: #0f172a;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  max-width: 11.5ch;
}

.page-home-en .hero-home-en p,
.page-home-en .hero-home-en .hero-lead {
  color: #475569;
  text-shadow: none;
  opacity: 1;
  margin: 0;
}

.page-home-en .hero-home-en .hero-lead {
  max-width: 640px;
  font-size: 20px;
  line-height: 1.9;
}

.page-home-en .hero-buttons {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.page-home-en .hero-buttons .btn-primary,
.page-home-en .hero-buttons .btn {
  min-width: 190px;
  text-align: center;
  border-radius: 999px;
  padding: 14px 22px;
}

.page-home-en .hero-buttons .btn {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.page-home-en .hero-buttons .btn:hover {
  background: #f8fafc;
}

.page-home-en .hero-buttons .btn[href="/en/system/"] {
  color: #0f172a;
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
}

.page-home-en .hero-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.page-home-en .hero-download-btn__icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-home-en .hero-download-btn__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-home-en .hero-saas__note {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: #6b7c8a;
}

.page-home-en .hero-library-link {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1f5b40;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
}

.page-home-en .hero-library-link strong {
  font-weight: 800;
}

.page-home-en .hero-library-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.page-home-en .hero-points {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}

.page-home-en .hero-points li {
  position: relative;
  padding-left: 18px;
  color: #334155;
  font-size: 16px;
}

.page-home-en .hero-points li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0b6b53;
}

.page-home-en .hero-proof {
  display: block;
  justify-self: end;
  width: 100%;
  max-width: 420px;
  margin-top: 12px;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

.page-home-en .hero-proof-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(249, 250, 251, 0.98) 100%
  );
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
  padding: 28px;
}

.page-home-en .hero-proof-label {
  font-size: 14px;
  font-weight: 700;
  color: #0b6b53;
  margin-bottom: 18px;
}

.page-home-en .hero-proof-steps {
  display: grid;
  gap: 16px;
}

.page-home-en .hero-proof-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.page-home-en .hero-proof-step strong {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #edf7f2;
  color: #0b6b53;
  font-size: 18px;
  grid-column: 1;
}

.page-home-en .hero-proof-step h2 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #0f172a;
  line-height: 1.2;
}

.page-home-en .hero-proof-step p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.page-home-en .hero-proof-link {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  color: #0b6b53;
  text-decoration: none;
  font-weight: 700;
}

.page-home-en .hero-proof-link:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .page-home-en .hero-home-en {
    padding: 56px 0 28px;
  }

  .page-home-en .hero-home-layout-en {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-home-en .hero-copy,
  .page-home-en .hero-proof {
    justify-self: stretch;
    max-width: none;
    grid-row: auto;
  }

  .page-home-en .hero-copy,
  .page-home-en .hero-proof {
    grid-column: auto;
  }

  .page-home-en .hero-home-en h1 {
    font-size: 40px;
  }

  .page-home-en .hero-home-en .hero-lead {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .page-home-en .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .page-home-en .hero-buttons .btn-primary,
  .page-home-en .hero-buttons .btn {
    width: 100%;
    min-width: 0;
  }

  .page-home-en .hero-proof-card {
    padding: 20px;
    border-radius: 22px;
  }
}

/* Final unified sticky header treatment */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset;
  transition:
    background-color 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: rgba(15, 23, 42, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 18px 38px rgba(15, 23, 42, 0.08);
}

.site-header .header-inner,
.site-header .header-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  min-height: 80px;
  align-items: center;
}

html.dark .site-header {
  background: rgba(11, 31, 23, 0.74);
  border-bottom-color: rgba(123, 232, 192, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

html.dark .site-header.scrolled {
  background: rgba(11, 31, 23, 0.88);
  border-bottom-color: rgba(123, 232, 192, 0.16);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 18px 38px rgba(0, 0, 0, 0.28);
}

@media (max-width: 768px) {
  .site-header .header-inner,
  .site-header .header-container {
    padding: 12px 16px;
    min-height: 74px;
  }
}
