/* ===== Tokens ===== */
:root {
  --brand: #5a63f2;
  --brand-dark: #4348d8;
  --brand-soft: #eceefe;
  --ink: #12123f;
  --muted: #5d6280;
  --bg: #f4f5fc;
  --card: #ffffff;
  --green: #1fae4f;
  --green-dark: #148c3c;
  --red: #ec3a3a;
  --red-dark: #cf2626;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(60, 70, 160, .10);
  --dock-h: 96px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 12px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Tajawal', system-ui, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  flex: none;
}

:focus-visible {
  outline: 3px solid #ffb703;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  background: #fff;
  color: var(--brand-dark);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  z-index: 3000;
}

.skip-link:focus {
  top: 10px;
}

/* ===== Header ===== */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(165deg, #5b86f6 0%, #6a64f5 45%, #7a5cf4 100%);
  padding: 18px 16px 62px;
  overflow-x: clip;
  overflow-y: visible;
  isolation: isolate;
  z-index: 2;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.hero__blob--a {
  width: 230px;
  height: 230px;
  left: -90px;
  top: 90px;
  background: rgba(255, 255, 255, .08);
}

.hero__blob--b {
  width: 150px;
  height: 150px;
  right: -50px;
  bottom: 30px;
  background: rgba(255, 255, 255, .06);
}

.hero__inner {
  max-width: 520px;
  margin-inline: auto;
}

.hero__bar {
  display: grid;
  grid-template-columns: 76px 1fr 48px;
  align-items: start;
  gap: 8px;
}

/* الشعار (أول عنصر = أقصى اليمين في RTL) */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 600;
  opacity: .96;
}

.logo__mark {
  width: 70px;
  height: auto;
}

.logo__text {
  margin-top: 2px;
}

.brand {
  text-align: center;
  padding-top: 2px;
}

.brand__name {
  font-size: clamp(32px, 9.6vw, 50px);
  font-weight: 900;
  white-space: nowrap;
  line-height: 1.15;
  text-shadow: 0 3px 14px rgba(30, 20, 120, .25);
}

.brand__sub {
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 700;
  margin-top: 2px;
}

.menu-btn {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, .18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: background .2s;
}

.menu-btn:hover {
  background: rgba(255, 255, 255, .28);
}

.menu-btn span {
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
  background: #fff;
  transition: transform .25s, opacity .2s;
}

.menu-btn.is-open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-btn.is-open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.hero__tagline {
  text-align: center;
  font-size: clamp(17px, 4.6vw, 21px);
  font-weight: 600;
  margin-top: 10px;
}

.trust {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
  text-align: center;
}

.trust li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  font-size: clamp(12px, 3.4vw, 14px);
  font-weight: 600;
  line-height: 1.3;
}

.trust li:nth-child(2) {
  background: rgba(255, 255, 255, .09);
}

.trust svg {
  width: 34px;
  height: 34px;
  color: #dfe3ff;
}

.hero-call {
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 11px 30px;
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(40, 40, 140, .22);
  z-index: 5;
  transition: transform .2s, box-shadow .2s;
}

.hero-call:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 14px 30px rgba(40, 40, 140, .3);
}

.hero-call svg {
  width: 28px;
  height: 28px;
  color: var(--brand);
}

.hero-call bdi {
  direction: ltr;
}

/* ===== Menu ===== */
.menu {
  position: fixed;
  top: 70px;
  left: 16px;
  min-width: 210px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(30, 30, 100, .28);
  padding: 8px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  animation: pop .18s ease-out;
}

.menu a {
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--ink);
}

.menu a:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.menu__label {
  margin: 6px 16px 2px;
  padding-top: 10px;
  border-top: 1px solid #e8eaf6;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(.97);
  }
}

/* ===== Sheet ===== */
.sheet {
  position: relative;
  max-width: 560px;
  margin: -34px auto 0;
  padding: 72px 16px 8px;
  background: var(--bg);
  border-radius: 30px 30px 0 0;
  display: grid;
  gap: 16px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(110, 120, 220, .08);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ===== Intro ===== */
.intro {
  display: grid;
  grid-template-columns: 1fr 38%;
  grid-template-areas:
    "text media"
    "actions actions";
  gap: 10px 12px;
  padding: 14px 12px 12px;
}

.intro__text {
  grid-area: text;
  align-self: center;
}

.intro__title {
  font-size: clamp(20px, 5.7vw, 31px);
  font-weight: 900;
  line-height: 1.35;
}

.intro__desc {
  margin-top: 10px;
  color: var(--muted);
  font-size: clamp(13.5px, 3.7vw, 15.5px);
  font-weight: 600;
  line-height: 1.75;
}

.intro__media {
  grid-area: media;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, #eef3ff, #dfe8fb);
  align-self: stretch;
  display: grid;
  place-items: center;
}

.intro__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.intro__actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
  margin-top: 8px;
}

/* ===== Buttons ===== */
.btn {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  min-width: 0;
  gap: 5px;
  min-height: 62px;
  padding: 8px 9px;
  border-radius: 18px;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .14);
  transition: transform .2s, box-shadow .2s, filter .2s;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn:active {
  transform: translateY(0) scale(.98);
}

.btn--call {
  background: linear-gradient(135deg, #6a6ef7, #4f55ee);
  box-shadow: 0 8px 20px rgba(90, 99, 242, .38);
}

.btn--wa {
  background: linear-gradient(135deg, #2cc561, #17a243);
  box-shadow: 0 8px 20px rgba(31, 174, 79, .35);
}

/* ترتيب الصورة: السهم يميناً، النص، ثم الأيقونة يساراً */
.btn__arrow {
  width: 15px;
  height: 15px;
  opacity: .9;
}

.btn__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
  text-align: center;
}

.btn__text b {
  white-space: nowrap;
  font-size: clamp(13px, 3.7vw, 18px);
  font-weight: 800;
}

.btn__text small {
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 600;
  opacity: .92;
}

.btn__icon {
  width: 28px;
  height: 28px;
}

/* ===== Perks ===== */
.perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.perk {
  padding: 16px 8px 14px;
  text-align: center;
  transition: transform .25s;
}

.perk:hover {
  transform: translateY(-3px);
}

.perk__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
}

.perk__icon svg {
  width: 28px;
  height: 28px;
}

.perk__icon--green {
  background: #dcf5e3;
  color: #1c9d4a;
}

.perk__icon--violet {
  background: #e4e3fb;
  color: #5a55e0;
}

.perk__icon--blue {
  background: #dfeafd;
  color: #2b72e0;
}

.perk h3 {
  font-size: clamp(13.5px, 3.7vw, 17px);
  font-weight: 800;
  line-height: 1.3;
}

.perk p {
  margin-top: 6px;
  font-size: clamp(11.5px, 3.2vw, 13.5px);
  color: var(--muted);
  font-weight: 600;
  line-height: 1.6;
}

/* ===== Services ===== */
.services {
  display: grid;
  grid-template-columns: 1fr 30%;
  gap: 6px;
  align-items: center;
  padding: 18px 14px;
  background: linear-gradient(160deg, #fff, #f1f2fd);
  overflow: hidden;
}

.section-title {
  font-size: clamp(19px, 5.2vw, 23px);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 10px;
}

.section-title--center {
  text-align: center;
}

.checklist {
  list-style: none;
  display: grid;
  gap: 8px;
}

.checklist li {
  position: relative;
  padding-inline-start: 32px;
  color: #3d4160;
  font-weight: 500;
  font-size: clamp(13.5px, 3.7vw, 16px);
  line-height: 1.5;
}

.checklist li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.500 4 4 8-9' fill='none' stroke='%234a44d8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.services__media img {
  width: 100%;
  mix-blend-mode: multiply;
}

/* ===== About (نص تعريفي) ===== */
.about {
  padding: 20px 18px;
}

.about p {
  color: #3d4160;
  font-weight: 500;
  font-size: clamp(14px, 3.8vw, 16px);
  line-height: 1.9;
}

.about p+p {
  margin-top: 10px;
}

.about strong,
.intro__desc strong {
  color: var(--brand-dark);
  font-weight: 800;
}

/* ===== FAQ ===== */
.faq {
  padding: 20px 16px 14px;
}

.faq__item {
  border-top: 1px solid #e8eaf6;
}

.faq__item:first-of-type {
  border-top: 0;
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px;
  font-weight: 800;
  font-size: clamp(14px, 3.9vw, 16px);
  line-height: 1.5;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transition: transform .2s;
}

.faq__item[open] summary::after {
  content: "2";
}

.faq__item p {
  padding: 0 2px 14px;
  color: var(--muted);
  font-weight: 500;
  font-size: clamp(13.5px, 3.7vw, 15.5px);
  line-height: 1.8;
}

.faq__item p a {
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: underline;
}

/* ===== More (روابط الصفحات الأخرى) ===== */
.more {
  text-align: center;
  padding: 6px 0 0;
}

.more__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 10px;
}

.more__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.chip {
  background: #fff;
  border: 1px solid #dfe2f6;
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 700;
  font-size: 14px;
  transition: background .2s, transform .2s;
}

.chip:hover {
  background: var(--brand-soft);
  transform: translateY(-1px);
}

/* ===== Steps ===== */
.steps {
  padding: 20px 16px 22px;
}

.steps__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 6px;
  counter-reset: s;
}

.steps__list li {
  text-align: center;
  position: relative;
}

.steps__num {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  background: linear-gradient(135deg, #6a6ef7, #4f55ee);
  box-shadow: 0 6px 14px rgba(90, 99, 242, .35);
}

.steps__list h3 {
  font-size: clamp(14px, 3.9vw, 16px);
  font-weight: 800;
}

.steps__list p {
  margin-top: 4px;
  font-size: clamp(11.5px, 3.2vw, 13.5px);
  color: var(--muted);
  font-weight: 600;
  line-height: 1.6;
}

/* ===== Final CTA ===== */
.final {
  text-align: center;
  padding: 24px 18px;
  color: #fff;
  background: linear-gradient(150deg, #5b86f6, #6a64f5 55%, #7a5cf4);
  border: 0;
  box-shadow: 0 14px 34px rgba(90, 99, 242, .35);
}

.final h2 {
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 900;
}

.final p {
  margin-top: 4px;
  font-weight: 600;
  opacity: .95;
}

.final__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.pill {
  flex: 1;
  max-width: 190px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 17px;
  transition: transform .2s;
}

.pill:hover {
  transform: translateY(-2px);
}

.pill svg {
  width: 22px;
  height: 22px;
}

.pill--call {
  background: #fff;
  color: var(--brand-dark);
}

.pill--wa {
  background: #25d366;
  color: #fff;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 18px 8px 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.9;
}

.footer a {
  color: var(--brand-dark);
  font-weight: 700;
}

.footer a:hover {
  text-decoration: underline;
}

/* ===== Dock (شريط ثابت) ===== */
.dock {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 600px;
  margin-inline: auto;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -8px 30px rgba(40, 40, 120, .16);
}

.dock__btn {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 8px;
  min-height: 68px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  transition: transform .2s, filter .2s;
}

.dock__btn:hover {
  filter: brightness(1.06);
}

.dock__btn:active {
  transform: scale(.97);
}

.dock__btn--wa {
  background: linear-gradient(135deg, #2cc561, #17a243);
  box-shadow: 0 8px 20px rgba(31, 174, 79, .35);
}

.dock__btn--call {
  background: linear-gradient(135deg, #f2504e, #e22f2f);
  box-shadow: 0 8px 20px rgba(236, 58, 58, .35);
}

.dock__sep {
  width: 1px;
  align-self: stretch;
  margin: 6px 10px;
  background: #e1e3f0;
}

.dock__icon {
  width: 36px;
  height: 36px;
}

.dock__arrow {
  width: 22px;
  height: 22px;
}

.dock__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: center;
}

.dock__text b {
  font-size: clamp(16px, 4.6vw, 20px);
  font-weight: 800;
}

.dock__text small {
  font-size: clamp(12px, 3.4vw, 15px);
  font-weight: 700;
  opacity: .95;
}

/* نبضة خفيفة تلفت الانتباه لزر الاتصال */
.dock__btn--call {
  animation: ring 3.2s ease-in-out infinite;
}

@keyframes ring {

  0%,
  80%,
  100% {
    box-shadow: 0 8px 20px rgba(236, 58, 58, .35);
  }

  90% {
    box-shadow: 0 8px 20px rgba(236, 58, 58, .35), 0 0 0 9px rgba(236, 58, 58, .16);
  }
}

@media (max-width: 420px) {
  .btn__arrow {
    display: none;
  }
}

/* ===== Small phones ===== */
@media (max-width: 360px) {
  .hero__bar {
    grid-template-columns: 70px 1fr 44px;
  }

  .logo__mark {
    width: 54px;
  }

  .logo {
    font-size: 10px;
  }

  .intro__actions {
    grid-template-columns: 1fr;
  }

  .btn__arrow {
    display: none;
  }

  .dock__arrow {
    display: none;
  }
}

/* ===== Tablet / Desktop ===== */
@media (min-width: 768px) {
  :root {
    --dock-h: 104px;
  }

  .hero {
    padding: 28px 24px 70px;
  }

  .hero__inner {
    max-width: 860px;
  }

  .hero__bar {
    grid-template-columns: 130px 1fr 56px;
  }

  .logo {
    font-size: 13px;
  }

  .logo__mark {
    width: 90px;
  }

  .sheet {
    max-width: 900px;
    padding: 64px 28px 12px;
    gap: 22px;
  }

  .intro {
    grid-template-columns: 1fr 340px;
    padding: 28px;
    gap: 18px 28px;
  }

  .intro__title {
    font-size: 40px;
  }

  .intro__desc {
    font-size: 17px;
  }

  .intro__actions {
    max-width: 640px;
  }

  .perk {
    padding: 24px 16px;
  }

  .services {
    padding: 28px;
    grid-template-columns: 1fr 260px;
  }

  .menu {
    top: 84px;
    left: max(24px, calc(50% - 430px));
  }

  .dock {
    bottom: 14px;
    max-width: 680px;
    border-radius: 999px;
    padding: 10px 14px;
    box-shadow: 0 14px 40px rgba(40, 40, 120, .25);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
