:root {
  --bg: #f5f8f8;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #dbe5e7;
  --accent: #0d9488;
  --accent-2: #14b8a6;
  --shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  max-width: 100%;
  /* Reduces horizontal jiggle when dir/lang changes (scrollbar width / RTL reflow). */
  scrollbar-gutter: stable;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 10% -10%, #d7fffa, transparent 40%), var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  max-width: 100%;
}

#primary.site-main {
  overflow-x: hidden;
  max-width: 100%;
}

html[data-lang="ar"] body {
  font-family: "Tajawal", system-ui, -apple-system, sans-serif;
  line-height: 1.75;
}

html[data-lang="en"] body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

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

.container {
  width: min(1120px, calc(100% - 2rem));
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
  box-sizing: border-box;
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 1.8rem 0;
}

.glass {
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, #ffffff 82%, #d9fffb 18%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
}

/* Icon leads in reading order: LTR → icon left; RTL → icon right */
.brand-mark {
  order: 1;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.brand-text {
  order: 2;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(118deg, #0f766e 0%, var(--accent) 38%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[dir="rtl"] .brand-text {
  letter-spacing: 0.04em;
  font-variant-ligatures: common-ligatures;
  margin-top: 3px;
}

/* Tajawal metrics: extra space below glyphs — nudge Arabic primary CTA down optically */
html[dir="rtl"] .site-header .btn-primary {
  padding-top: calc(0.72rem + 3px);
  padding-bottom: calc(0.72rem - 3px);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  color: var(--muted);
  font-weight: 500;
  justify-content: center;
}

.nav-links a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.72rem 1.1rem;
  font-weight: 700;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.3);
}

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

.btn-secondary,
.btn-ghost {
  border-color: var(--border);
  background: #fff;
  color: var(--text);
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.02em;
}

html[data-lang="ar"] .eyebrow,
html[data-lang="ar"] h1,
html[data-lang="ar"] h2,
html[data-lang="ar"] h3 {
  letter-spacing: 0;
}

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

h1 {
  font-size: clamp(1.95rem, 4vw, 3.2rem);
  line-height: 1.12;
  margin-top: 0.5rem;
}

h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
}

.lead {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.4rem;
  align-items: center;
}

.hero-visual {
  position: relative;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  z-index: 0;
}

.orb-1 {
  width: 110px;
  height: 110px;
  top: -20px;
  inset-inline-start: -24px;
  background: radial-gradient(circle at 30% 30%, #99f6e4, #14b8a680);
}

.orb-2 {
  width: 72px;
  height: 72px;
  bottom: 12px;
  inset-inline-end: -18px;
  background: radial-gradient(circle at 30% 30%, #67e8f9, #0ea5e980);
}

.hero-cta {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}

.hero-points {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.hero-point-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.hero-point-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.35);
}

.hero-point-icon svg {
  width: 15px;
  height: 15px;
}

.hero-point-icon svg path,
.hero-point-icon svg circle {
  stroke: #fff;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.dashboard-card,
.card,
.feature-card,
.step,
.plan-table-wrap,
.global-note,
.cta-box,
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.dashboard-card {
  padding: 1.3rem;
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
}

.dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge {
  background: #dcfce7;
  color: #065f46;
  font-size: 0.82rem;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-weight: 700;
}

.gauge-wrap {
  display: grid;
  place-items: center;
  margin: 0.8rem 0 1rem;
}

.gauge {
  position: relative;
  width: 260px;
  height: 140px;
}

.gauge svg {
  width: 100%;
  height: 100%;
}

.gauge path {
  fill: none;
  stroke-width: 18;
}

.gauge .track {
  stroke: #e5eef0;
  stroke-linecap: round;
}

.gauge .progress {
  stroke: var(--accent-2);
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
}

.score {
  position: absolute;
  inset: auto 0 8px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
}

.pillars-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin-top: 0.5rem;
  padding-block: 0.85rem 1.15rem;
}

.mini-pillar {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.3rem;
}

.mini-ring {
  --size: 64px;
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  background: conic-gradient(var(--accent) calc(var(--val) * 1%), #e5eef0 0);
  display: grid;
  place-items: center;
}

.mini-ring::before {
  content: "";
  width: calc(var(--size) - 10px);
  height: calc(var(--size) - 10px);
  border-radius: inherit;
  background: #fff;
  grid-area: 1 / 1;
}

.mini-ring strong {
  grid-area: 1 / 1;
  z-index: 1;
  font-size: 0.8rem;
}

.mini-pillar span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.cap-note {
  display: block;
  margin-top: 0.8rem;
  color: #0f766e;
  font-weight: 600;
  text-align: center;
  max-width: 22rem;
  margin-inline: auto;
  line-height: 1.55;
}

.trust-wrap {
  display: grid;
  gap: 1.1rem;
  text-align: center;
  background: linear-gradient(180deg, #ffffff, #f8fffd);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.trust-head {
  display: grid;
  gap: 0.45rem;
}

.trust-head h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.trust-head p[data-i18n="trustSubtitle"] {
  color: var(--muted);
  line-height: 1.8;
  max-width: 760px;
  margin-inline: auto;
}

.logos {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.logos span {
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
  padding: 0.62rem 1rem;
  border-radius: 999px;
  color: #0f766e;
  background: #f3fffd;
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  justify-content: center;
  gap: 1.2rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.stats div {
  display: grid;
  gap: 0.35rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem;
  min-width: 0;
  max-width: 100%;
}

.stats strong {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: #0f766e;
  line-height: 1;
}

.stats small {
  font-size: 0.95rem;
  color: var(--muted);
}

.stats span {
  color: var(--muted);
  font-size: 0.93rem;
}

.counter {
  display: inline-block;
  min-width: 2ch;
}

.section-head {
  text-align: center;
  margin-bottom: 1.7rem;
  display: grid;
  gap: 0.5rem;
}

.ps-grid,
.feature-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.feature-card,
.step {
  padding: 1.1rem;
}

.feature-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #f3fffd, transparent 42%);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 0.65rem;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 8px 18px rgba(20, 184, 166, 0.35);
}

.feature-icon svg {
  width: 21px;
  height: 21px;
}

.feature-icon svg path,
.feature-icon svg rect,
.feature-icon svg circle,
.feature-icon svg line {
  stroke: #ffffff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-lang="ar"] .card,
html[data-lang="ar"] .feature-card,
html[data-lang="ar"] .step,
html[data-lang="ar"] .faq details,
html[data-lang="ar"] .plan-table th,
html[data-lang="ar"] .plan-table td {
  line-height: 1.9;
}

.card p,
.feature-card p,
.step p {
  color: var(--muted);
  margin-top: 0.55rem;
  line-height: 1.7;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 0.65rem 0;
}

/* Problem → solution cards (same icons as plan table) */
.ps-card .ps-issue,
.ps-card .ps-solution {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.ps-card .ps-issue .status-icon,
.ps-card .ps-solution .status-icon {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.ps-card .ps-issue-body {
  flex: 1;
  min-width: 0;
}

.ps-card .ps-issue-body h3 {
  margin: 0 0 0.4rem;
  line-height: 1.3;
}

.ps-card .ps-issue-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.ps-card .ps-solution p {
  margin: 0;
  flex: 1;
  min-width: 0;
  color: var(--muted);
  line-height: 1.7;
}

.ps-card .divider {
  margin: 0.85rem 0;
}

.step span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.plan-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

/* Equal width for Grow vs Global; feature column gets the rest */
.plan-table thead th:nth-child(1) {
  width: 40%;
}

.plan-table thead th:nth-child(2),
.plan-table thead th:nth-child(3) {
  width: 30%;
}

.plan-billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
}

.plan-billing-toggle .billing-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.plan-billing-toggle .billing-label.is-active {
  color: var(--accent);
}

.plan-billing-toggle .billing-label--year {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  line-height: 1.15;
  text-align: center;
}

.plan-billing-toggle .billing-save-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: color 0.2s ease;
}

.plan-billing-toggle .billing-label--year.is-active .billing-save-pill {
  color: var(--accent);
}

.billing-switch {
  position: relative;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.billing-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.billing-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border);
  border-radius: 999px;
  transition: background 0.25s ease;
}

.billing-switch-slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  bottom: 3px;
  inset-inline-start: 3px;
  background: #fff;
  border-radius: 50%;
  transition: inset-inline-start 0.25s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.billing-switch input:focus-visible + .billing-switch-slider {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.billing-switch input:checked + .billing-switch-slider {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.billing-switch input:checked + .billing-switch-slider::before {
  inset-inline-start: calc(100% - 22px - 3px);
}

.plan-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfefe);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.plan-table th,
.plan-table td {
  border-bottom: 1px solid #e7eef0;
  padding: 0.95rem 0.9rem;
  text-align: center;
  vertical-align: middle;
}

.plan-table th:first-child,
.plan-table td:first-child {
  text-align: start;
  font-weight: 700;
  background: #f8fbfb;
}

.plan-table thead th {
  background: linear-gradient(180deg, #f9fcfc, #f3f9fa);
  vertical-align: top;
  border-bottom: 1px solid #dce9ec;
  position: sticky;
  top: 0;
  z-index: 2;
}

.plan-head {
  display: grid;
  gap: 0.15rem;
}

.plan-badge {
  justify-self: center;
  display: inline-block;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
}

.plan-badge.grow {
  color: #92400e;
  background: #fef3c7;
}

.plan-badge.global {
  color: #065f46;
  background: #d1fae5;
}

.plan-head strong {
  font-size: 1.45rem;
  color: #0f766e;
}

.plan-head small {
  color: var(--muted);
  font-weight: 500;
}

.plan-table th:nth-child(2),
.plan-table td:nth-child(2) {
  background: #fbfffe;
  border-inline: 1px solid #e6f4ef;
}

.plan-table th:nth-child(3),
.plan-table td:nth-child(3) {
  background: #f1fffb;
  border-inline: 1px solid #d7f2e8;
}

.plan-currency-sar {
  display: inline-flex;
  vertical-align: middle;
  margin-inline-start: 0.2rem;
  color: inherit;
}

.plan-currency-sar__svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.25;
  max-width: 100%;
  box-sizing: border-box;
}

.status-chip > span:not(.status-icon) {
  font-size: inherit;
  line-height: inherit;
  text-align: start;
}

.status-chip.yes {
  background: #ecfdf5;
  color: #166534;
}

.status-chip.no {
  background: #fef2f2;
  color: #991b1b;
}

.status-icon {
  display: inline-grid;
  justify-content: center;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 999px;
  flex-shrink: 0;
}

.status-icon.yes {
  background: #16a34a;
}

.status-icon.no {
  background: #ef4444;
}

.status-icon svg {
  width: 12px;
  height: 12px;
}

.status-icon svg path {
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 960px) {
  /* Slightly narrower feature col; Global a bit wider than Grow on small screens */
  .plan-table thead th:nth-child(1) {
    width: 36%;
  }

  .plan-table thead th:nth-child(2) {
    width: 29%;
  }

  .plan-table thead th:nth-child(3) {
    width: 35%;
  }

  .plan-table th,
  .plan-table td {
    padding: 0.72rem 0.55rem;
    font-size: 0.9rem;
  }

  .plan-head strong {
    font-size: 1.25rem;
  }

  .plan-table td:nth-child(2),
  .plan-table td:nth-child(3) {
    text-align: center;
  }

  .plan-table td:nth-child(2) .status-chip,
  .plan-table td:nth-child(3) .status-chip {
    margin-inline: auto;
    justify-content: center;
  }

  .plan-table td:nth-child(2) .status-chip > span:not(.status-icon),
  .plan-table td:nth-child(3) .status-chip > span:not(.status-icon) {
    text-align: center;
  }

  .status-chip {
    padding: 0.16rem 0.38rem;
    gap: 0.26rem;
    font-size: 0.78rem;
  }

  .status-icon {
    width: 17px;
    height: 17px;
  }

  .status-icon svg {
    width: 11px;
    height: 11px;
  }
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1rem;
  align-items: center;
}

.global-main,
.global-side {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.global-main {
  padding: 1.2rem;
}

.global-main h2 {
  line-height: 1.45;
}

.global-main p[data-i18n="globalText"] {
  margin-top: 0.7rem;
  color: var(--muted);
  line-height: 1.85;
}

.global-points {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
}

.global-point {
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  border-radius: 14px;
  padding: 0.8rem;
  background: linear-gradient(180deg, #f7fffd, #ffffff);
}

.global-point h3 {
  font-size: 1rem;
}

.global-point p {
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.8;
}

.global-side {
  padding: 1rem;
  background: linear-gradient(180deg, #f6fffd, #ecfdf5);
}

.global-checks {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.global-checks li {
  position: relative;
  padding-inline-start: 1.4rem;
  color: #0f172a;
  line-height: 1.75;
}

.global-checks li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: 0.05rem;
  color: #0f766e;
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq details {
  padding: 0.9rem 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

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

.faq summary::after {
  content: "+";
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #f0fdfa;
  color: #0f766e;
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.28s ease, background-color 0.28s ease;
}

.faq p {
  color: var(--muted);
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  line-height: 1.7;
  transition: max-height 0.35s ease, opacity 0.28s ease, margin-top 0.28s ease;
}

.faq details[open] {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: 0 10px 24px rgba(20, 184, 166, 0.12);
  background: linear-gradient(180deg, #ffffff, #f9fffd);
}

.faq details[open] summary::after {
  content: "−";
  background: #ccfbf1;
  transform: rotate(180deg);
}

.faq details[open] p {
  margin-top: 0.7rem;
  max-height: 240px;
  opacity: 1;
}

.final-cta {
  padding-top: 2rem;
}

.cta-box {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(180deg, #ffffff, #f0fffc);
}

.cta-box p {
  margin-top: 0.7rem;
  color: var(--muted);
}

.cta-box .hero-cta {
  justify-content: center;
}

.home-blog-cta {
  border-top: 1px solid var(--border);
  background: #fff;
}

.home-blog-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.home-blog-cta-copy {
  flex: 1 1 16rem;
  min-width: 0;
}

.home-blog-cta-copy .eyebrow {
  margin-bottom: 0.35rem;
}

.home-blog-cta-title {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 650;
  line-height: 1.35;
  margin: 0;
  letter-spacing: -0.02em;
}

.home-blog-cta-lead {
  margin: 0.45rem 0 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 36rem;
}

.home-blog-cta-btn {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .home-blog-cta-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
  }

  .home-blog-cta-copy {
    flex: 0 0 auto;
    width: 100%;
  }

  .home-blog-cta-lead {
    margin-inline: auto;
    margin-bottom: 0;
  }

  .home-blog-cta-btn {
    align-self: center;
    margin-top: 0;
  }
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1rem;
  padding: 2rem 0;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
  margin-top: 0.4rem;
  display: block;
}

@media (min-width: 961px) {
  .footer-grid > div:first-child > p {
    max-width: 80%;
  }
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1rem 0 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.reveal-up {
  opacity: 1;
  transform: none;
}

.gsap-ready .reveal-up {
  opacity: 0;
  transform: translateY(18px);
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .feature-grid,
  .highlight-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .ps-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .pillars-mini {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
  }

  .pillars-mini .mini-pillar {
    flex: 0 0 calc((100% - 1.1rem) / 3);
    max-width: calc((100% - 1.1rem) / 3);
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.6rem 0;
  }

  .btn {
    padding: 0.66rem 0.95rem;
    font-size: 0.92rem;
  }

  html[dir="rtl"] .site-header .btn-primary {
    padding-top: calc(0.66rem + 3px);
    padding-bottom: calc(0.66rem - 3px);
  }

  .header-actions {
    gap: 0.4rem;
  }

  .brand-text {
    font-size: 0.95rem;
  }

  .plan-table-wrap {
    border-radius: 12px;
  }

  .plan-table th,
  .plan-table td {
    padding: 0.55rem 0.4rem;
    font-size: 0.8rem;
    min-width: 0;
  }

  .plan-table th:first-child,
  .plan-table td:first-child {
    min-width: 7.5rem;
  }

  .plan-head strong {
    font-size: 1.1rem;
  }

  .plan-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
  }

  .status-chip {
    padding: 0.12rem 0.32rem;
    gap: 0.22rem;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
    flex-wrap: wrap;
  }

  .status-chip > span:not(.status-icon) {
    max-width: 9.5rem;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .status-icon {
    width: 15px;
    height: 15px;
  }

  .status-icon svg {
    width: 9px;
    height: 9px;
  }

  .status-icon svg path {
    stroke-width: 2.8;
  }
}

/* —— Contact & blog (WordPress) —— */
.contact-page-inner {
  max-width: 640px;
  margin-inline: auto;
}

.contact-page-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 0.35rem 0 0;
}

.contact-page-lead {
  margin-top: 0.75rem;
}

.contact-alert {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.contact-alert--ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.contact-alert--err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.contact-card {
  padding: 1.5rem 1.35rem;
}

.contact-form {
  display: grid;
  gap: 1.1rem;
}

.contact-field {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font: inherit;
  background: #fff;
}

.contact-field textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-field.has-error input,
.contact-field.has-error textarea {
  border-color: #f87171;
  box-shadow: 0 0 0 1px color-mix(in srgb, #f87171 35%, transparent);
}

.contact-field-error {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #991b1b;
  margin-top: 0.2rem;
  line-height: 1.35;
}

.contact-submit {
  justify-self: stretch;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.9rem 1.25rem;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow:
    0 4px 16px color-mix(in srgb, var(--accent) 32%, transparent),
    0 1px 0 color-mix(in srgb, #fff 35%, transparent) inset;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.15s ease;
}

.contact-submit:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px color-mix(in srgb, var(--accent) 38%, transparent),
    0 1px 0 color-mix(in srgb, #fff 40%, transparent) inset;
  filter: brightness(1.03);
}

.contact-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 28%, transparent);
}

.contact-submit:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

html[dir="rtl"] .contact-submit {
  letter-spacing: 0.04em;
}

.blog-archive-title {
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  margin: 0.35rem 0 0;
}

.blog-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.blog-card {
  container-type: inline-size;
  padding: 0;
  overflow: hidden;
  display: grid;
  gap: 0;
  align-content: start;
}

/* Featured image: full width, 16:9-derived height capped at 200px */
.blog-card-thumb {
  display: block;
  margin: 0;
  position: relative;
  width: 100%;
  height: min(200px, calc(100cqw * 9 / 16));
  max-height: 200px;
  overflow: hidden;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--accent-2) 18%, #ecfdf5) 0%,
    color-mix(in srgb, var(--accent) 12%, #ccfbf1) 55%,
    color-mix(in srgb, var(--accent-2) 22%, #99f6e4) 100%
  );
  line-height: 0;
}

.blog-card-thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.blog-card-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.blog-card-thumb-img--placeholder {
  object-fit: cover;
  object-position: center;
}

@supports not (width: 1cqw) {
  .blog-card-thumb {
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 200px;
  }
}

.blog-card-content {
  padding: 1.15rem 1.35rem 1.35rem;
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.blog-card-title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
}

.blog-card-title a {
  color: inherit;
}

.blog-card-title a:hover {
  color: var(--accent);
}

.blog-card-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.blog-card-excerpt {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.blog-card-more {
  justify-self: start;
  margin-top: 0.25rem;
}

.single-post-thumb {
  margin: 0.85rem 0 0;
}

.single-post-thumb-img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
  border: 1px solid var(--border);
}

.page-links {
  margin-top: 1.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}

.page-links .page-links-title {
  margin-inline-end: 0.5rem;
}

.page-links a {
  display: inline-block;
  margin: 0.15rem 0.2rem;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-weight: 700;
  color: var(--accent);
}

.blog-pagination {
  margin-top: 2.5rem;
}

.blog-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.blog-pagination a,
.blog-pagination span {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.88rem;
}

.blog-pagination a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.single-post-inner {
  max-width: 720px;
  margin-inline: auto;
}

.single-article {
  padding: 1.75rem 1.5rem;
}

.single-title {
  margin: 0.5rem 0 0;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.2;
}

.single-meta {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.single-content {
  margin-top: 1.25rem;
  color: var(--muted);
  line-height: 1.85;
}

.single-content p {
  margin: 0 0 1rem;
}

.single-back {
  margin: 2rem 0 0;
}

/* Bilingual blog article (static + theme)
   Also use .dohour-lang-* so unused-CSS tools that only see data-lang=ar do not strip EN rules. */
html[data-lang="ar"] .post-lang--en,
html.dohour-lang-ar .post-lang--en {
  display: none !important;
}

html[data-lang="en"] .post-lang--ar,
html.dohour-lang-en .post-lang--ar {
  display: none !important;
}

.single-article--bilingual .post-lang--ar {
  direction: rtl;
}

.single-article--bilingual .post-lang--en {
  direction: ltr;
}

html[data-lang="en"] .single-post .single-back,
html.dohour-lang-en .single-post .single-back {
  text-align: end;
}

.single-lead {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1rem;
}

.single-content.entry-content h2 {
  margin: 1.85rem 0 0.65rem;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 1.35;
  color: var(--text);
}

.single-content.entry-content ul {
  margin: 0.75rem 0 1.1rem;
  padding-inline-start: 1.3rem;
}

.single-content.entry-content li {
  margin: 0.35rem 0;
}

.single-content.entry-content code,
.post-lang code {
  font-size: 0.88em;
  background: color-mix(in srgb, var(--border) 60%, transparent);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

.post-cta {
  margin-top: 2rem;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 8%, var(--surface)),
    var(--surface)
  );
  text-align: center;
}

.post-cta-title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: var(--text);
}

.post-cta-actions {
  margin-top: 0.5rem;
}

/* Long-form blog: TOC, reading time, share, relaxed typography */
.single-post-inner--longform {
  max-width: min(1120px, calc(100% - 2rem));
}

.blog-longform .blog-post-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.blog-meta-sep {
  opacity: 0.6;
}

.blog-reading-time {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
}

.blog-post-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .blog-post-layout {
    grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
    align-items: start;
  }

  .blog-toc-sidebar {
    position: sticky;
    top: 5rem;
    max-height: calc(100vh - 6rem);
    overflow: auto;
  }
}

.blog-toc {
  padding: 1rem 1rem 1.1rem;
}

.blog-toc-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
}

.blog-toc-list {
  margin: 0;
  padding-inline-start: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.55;
}

.blog-toc-list a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-toc-list a:hover {
  color: var(--accent);
}

.blog-prose {
  line-height: 1.9;
  font-size: clamp(0.98rem, 1.5vw, 1.06rem);
  color: var(--muted);
}

@media (max-width: 599px) {
  .blog-prose {
    line-height: 1.95;
    font-size: 1rem;
  }
}

.blog-prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.35;
  color: var(--text);
}

.blog-prose h3 {
  margin: 1.35rem 0 0.55rem;
  font-size: clamp(1.02rem, 1.8vw, 1.15rem);
  line-height: 1.4;
  color: var(--text);
}

.blog-prose h2[id],
.blog-prose h3[id] {
  scroll-margin-top: 6rem;
}

.blog-prose p {
  margin: 0 0 1rem;
}

.blog-prose ul {
  margin: 0.5rem 0 1.1rem;
  padding-inline-start: 1.3rem;
}

.blog-prose li {
  margin: 0.35rem 0;
}

.blog-share {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.blog-share-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--text);
}

.blog-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* Blog hero (below H1): responsive image + caption */
.blog-hero {
  margin: 0.5rem 0 1.35rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.blog-hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.blog-hero-caption {
  margin: 0;
  padding: 0.65rem 1rem 0.8rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
  background: color-mix(in srgb, var(--border) 45%, var(--surface));
  border-top: 1px solid var(--border);
  font-style: italic;
}
