/* ==========================================================================
   لمّة — الواجهة التسويقية (الصفحة الرئيسية والصفحات القانونية)
   كل الأصناف هنا تبدأ بـ mk- ، والألوان والمكوّنات العامة من base.css
   ========================================================================== */

.mk { overflow-x: clip; }
.mk section[id], .mk [id='main'] { scroll-margin-top: 84px; }

.mk-skip {
  position: absolute; inset-inline-start: 12px; top: -64px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--c-primary); color: var(--c-on-primary); font-weight: 600; text-decoration: none;
  transition: top .2s var(--ease);
}
.mk-skip:focus { top: 12px; }

.mk-narrow { max-width: 860px; }

/* ------------------------------ العناوين ------------------------------ */

.mk-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  color: var(--c-gold-strong); font-weight: 600; font-size: .95rem;
}
.mk-kicker::before { content: ''; width: 28px; height: 1px; background: var(--c-gold); }

.mk-h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.65rem, 4.2vw, 2.5rem); line-height: 1.45;
  text-wrap: balance;
}
.mk-h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; line-height: 1.5; }
.mk-lead { margin-top: 12px; color: var(--c-muted); font-size: 1.06rem; text-wrap: pretty; }

.mk-head { max-width: 720px; margin-inline: auto; margin-bottom: clamp(32px, 5vw, 56px); text-align: center; }
.mk-head .mk-kicker::after { content: ''; width: 28px; height: 1px; background: var(--c-gold); }

.mk-sec { padding-block: clamp(64px, 9vw, 112px); }
.mk-sec--tint {
  --c-muted: #54665F;
  background: var(--c-surface-2);
  border-block: 1px solid var(--c-line);
}

/* ------------------------------ الرأس ------------------------------ */

.mk-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 246, 238, .95);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.mk-header.is-stuck { border-bottom-color: var(--c-line); box-shadow: 0 6px 24px rgba(23, 48, 43, .06); }
.mk-header__in { position: relative; display: flex; align-items: center; gap: 10px; min-height: 68px; }
.mk-header .brand { margin-inline-end: auto; }
.mk-header .brand__name, .mk-footer .brand__name { font-size: 2.6rem; }

.mk-nav {
  position: absolute; inset-inline: -20px; top: 100%;
  display: none; flex-direction: column;
  padding: 4px 20px 16px;
  background: var(--c-bg); border-bottom: 1px solid var(--c-line);
  box-shadow: 0 18px 30px rgba(23, 48, 43, .08);
}
.mk-header[data-open='true'] .mk-nav { display: flex; }
.mk-nav__link {
  display: flex; align-items: center; min-height: 50px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink); font-weight: 500; text-decoration: none;
}
.mk-nav__link:last-child { border-bottom: 0; }
.mk-nav__link:hover { color: var(--c-primary); }

.mk-header__cta-long { display: none; }
.mk-header__cta { min-height: 44px; }

.mk-menu-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--c-line-strong); border-radius: 12px;
  background: var(--c-surface); color: var(--c-ink);
}
.mk-menu-btn__close { display: none; }
.mk-header[data-open='true'] .mk-menu-btn__open { display: none; }
.mk-header[data-open='true'] .mk-menu-btn__close { display: block; }

@media (min-width: 900px) {
  .mk-header .brand { margin-inline-end: 0; }
  .mk-nav {
    position: static; display: flex; flex-direction: row; gap: 4px;
    margin-inline: auto; padding: 0; background: none; border: 0; box-shadow: none;
  }
  .mk-nav__link { min-height: 44px; padding-inline: 14px; border: 0; border-radius: 999px; }
  .mk-nav__link:hover { background: var(--c-primary-soft); }
  .mk-header__cta-long { display: inline; }
  .mk-header__cta-short { display: none; }
  .mk-menu-btn { display: none; }
}

/* ------------------------------ الواجهة ------------------------------ */

.mk-hero { position: relative; padding-block: clamp(28px, 5vw, 64px) clamp(48px, 7vw, 96px); overflow: clip; }
.mk-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: var(--c-gold); opacity: .09;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 4L44 24L24 44L4 24ZM9.9 9.9H38.1V38.1H9.9Z' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E") 0 0 / 72px 72px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 4L44 24L24 44L4 24ZM9.9 9.9H38.1V38.1H9.9Z' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E") 0 0 / 72px 72px;
}
.mk-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 22% 38%, rgba(241, 228, 196, .7), transparent 70%),
    linear-gradient(to bottom, rgba(250, 246, 238, .2), var(--c-bg) 92%);
}

.mk-hero__in { display: grid; gap: 36px; align-items: center; }
.mk-hero__copy { max-width: 620px; }
.mk-hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.15rem, 6.4vw, 3.7rem); line-height: 1.38;
  text-wrap: balance;
}
.mk-hero__word {
  font-family: var(--font-script); font-weight: 400; font-size: 1.36em; line-height: 1;
  color: var(--c-gold-strong); padding-inline: .04em;
}
.mk-hero__lead { margin-top: 18px; max-width: 54ch; color: var(--c-ink-2); font-size: clamp(1.02rem, 1.6vw, 1.14rem); line-height: 1.95; }
.mk-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.mk-hero__points { display: flex; flex-direction: column; gap: 8px 22px; margin-top: 28px; color: var(--c-ink-2); font-size: .95rem; }
.mk-hero__points li { display: flex; align-items: center; gap: 10px; }
.mk-hero__points .icon { color: var(--c-gold-strong); }

@media (min-width: 560px) {
  .mk-hero__points { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 960px) {
  .mk-hero__in { grid-template-columns: 1.08fr .92fr; gap: 24px; }
}

/* مروحة الهواتف الثلاثة */
.mk-fan {
  --pw: clamp(150px, 40vw, 226px);
  position: relative; display: grid; place-items: center;
  height: calc(var(--pw) * 2.22);
}
.mk-fan::before {
  content: ''; position: absolute; width: calc(var(--pw) * 2.5); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(181, 138, 60, .26), rgba(181, 138, 60, .08) 55%, transparent 72%);
}
.mk-fan .mk-phone { position: absolute; width: var(--pw); }
.mk-fan .mk-phone:nth-child(1) { transform: translateX(-57%) translateY(3%) rotate(-9deg) scale(.84); z-index: 1; }
.mk-fan .mk-phone:nth-child(2) { z-index: 2; animation: mk-float 7s ease-in-out infinite; }
.mk-fan .mk-phone:nth-child(3) { transform: translateX(57%) translateY(3%) rotate(9deg) scale(.84); z-index: 1; }
@keyframes mk-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ------------------------------ المعاينة المصغّرة (هاتف) ------------------------------ */

.mk-phone {
  container-type: inline-size;
  width: 200px; aspect-ratio: 9 / 18.4; padding: 3.2%;
  border-radius: 15% / 7.4%;
  background: #14201D;
  box-shadow: 0 24px 50px rgba(23, 48, 43, .22), 0 4px 10px rgba(23, 48, 43, .12), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.mk-phone__screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 12.4% / 6%;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body);
  display: flex;
}
.mk-phone__screen::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 55% at 50% 0%, var(--accent), transparent 62%);
  opacity: .16;
}
.mk-phone__frame {
  position: relative; flex: 1; margin: 5cqw;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.4cqw;
  padding: 6cqw 4cqw; text-align: center;
}
.mk-phone[data-frame='arch'] .mk-phone__frame { border: 1px solid var(--accent); border-radius: 44cqw 44cqw 5cqw 5cqw; padding-top: 14cqw; }
.mk-phone[data-frame='double'] .mk-phone__frame { border: 3px double var(--accent); border-radius: 3cqw; }

.mk-phone .orn-crest { width: 58cqw; color: var(--accent); }
.mk-phone__kicker { font-size: 6cqw; line-height: 1.5; color: var(--accent-strong); font-weight: 500; }
.mk-phone__names {
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--font-display); font-size: 16cqw; line-height: 1.22; color: var(--ink);
}
.mk-phone__names--single { font-size: 13cqw; line-height: 1.4; }
.mk-phone__amp { font-size: .5em; line-height: 1.5; color: var(--accent); }
.mk-phone .orn-divider { gap: 3cqw; }
.mk-phone .orn-divider span { width: 14cqw; background: var(--accent); opacity: .6; }
.mk-phone .orn-glyph { width: 7cqw; height: 7cqw; color: var(--accent); }
.mk-phone__date { font-size: 5.2cqw; line-height: 1.5; color: var(--muted); }
.mk-phone__btn {
  margin-top: 2cqw; padding: 2.4cqw 8cqw; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-ink);
  font-size: 5.2cqw; font-weight: 600; line-height: 1.5;
}

/* ------------------------------ المزايا ------------------------------ */

.mk-features { display: grid; gap: 16px; }
.mk-feature {
  padding: 26px 24px;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.mk-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--c-line-strong); }
.mk-feature__icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px;
  border-radius: 16px; background: var(--c-primary-soft); color: var(--c-primary);
}
.mk-feature__glyph { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; direction: rtl; white-space: nowrap; }
.mk-feature p { margin-top: 8px; color: var(--c-muted); }

@media (max-width: 639px) {
  .mk-feature { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 20px 18px; }
  .mk-feature__icon { grid-row: 1 / span 2; width: 48px; height: 48px; margin-bottom: 0; border-radius: 14px; }
  .mk-feature p { grid-column: 2; margin-top: 4px; }
}
@media (min-width: 640px) { .mk-features { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 980px) { .mk-features { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------ الخطوات ------------------------------ */

.mk-steps { display: grid; gap: 28px; counter-reset: none; }
.mk-step { position: relative; text-align: center; padding-inline: 8px; }
.mk-step__num {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px;
  border: 1px solid var(--c-gold); border-radius: 50%;
  background: var(--c-surface); color: var(--c-gold-strong);
  font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; line-height: 1;
  box-shadow: 0 0 0 6px var(--c-surface-2), 0 0 0 7px var(--c-line);
}
.mk-step p { margin: 8px auto 0; max-width: 34ch; color: var(--c-muted); }

@media (min-width: 820px) {
  .mk-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .mk-step:not(:last-child)::after {
    content: ''; position: absolute; top: 32px; inset-inline-start: calc(50% + 52px);
    width: calc(100% - 104px + 24px); height: 1px;
    background: repeating-linear-gradient(to right, var(--c-gold) 0 6px, transparent 6px 12px);
  }
}

/* ------------------------------ لوحة المتابعة ------------------------------ */

.mk-split { display: grid; gap: 40px; align-items: center; }
.mk-ticks { display: grid; gap: 12px; margin-top: 24px; }
.mk-ticks li { display: flex; align-items: flex-start; gap: 12px; color: var(--c-ink-2); }
.mk-ticks .icon {
  margin-top: 5px; padding: 3px; width: 24px; height: 24px;
  border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary);
}

.mk-dash {
  position: relative; max-width: 460px; margin-inline: auto; padding: 22px;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}
.mk-dash::before {
  content: ''; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
  border: 1px solid var(--c-gold); border-radius: var(--radius-lg); opacity: .5;
}
.mk-dash__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mk-dash__title { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; line-height: 1.5; }
.mk-dash__sub { color: var(--c-muted); font-size: .88rem; }
.mk-dash__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.mk-stat { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--c-bg); border: 1px solid var(--c-line); }
.mk-stat__num { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; line-height: 1.2; color: var(--c-primary); }
.mk-stat__num small { font-size: .55em; margin-inline-start: 2px; }
.mk-stat__label { color: var(--c-muted); font-size: .86rem; line-height: 1.5; }
.mk-stat--accent { background: var(--c-primary); border-color: var(--c-primary); }
.mk-stat--accent .mk-stat__num { color: #F1E4C4; }
.mk-stat--accent .mk-stat__label { color: rgba(251, 247, 238, .86); }
.mk-dash__listtitle { margin-top: 20px; font-weight: 600; font-size: .9rem; color: var(--c-ink-2); }
.mk-dash__list { margin-top: 6px; }
.mk-dash__list li {
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px;
  padding-block: 10px; border-bottom: 1px solid var(--c-line);
}
.mk-dash__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.mk-dash__dot { grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.mk-dash__dot--ok { background: var(--c-success-soft); color: var(--c-success); }
.mk-dash__dot--no { background: var(--c-danger-soft); color: var(--c-danger); }
.mk-dash__name { font-weight: 600; font-size: .95rem; line-height: 1.5; }
.mk-dash__meta { grid-column: 2; color: var(--c-muted); font-size: .84rem; line-height: 1.5; }

@media (min-width: 900px) {
  .mk-split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .mk-dash { margin-inline: auto 14px; }
}

/* ------------------------------ القوالب ------------------------------ */

.mk-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.mk-chip {
  min-height: 44px; padding: 8px 18px;
  border: 1px solid var(--c-line-strong); border-radius: 999px;
  background: var(--c-surface); color: var(--c-ink-2); font-weight: 500;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.mk-chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.mk-chip[aria-pressed='true'] { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }

.mk-themes { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) {
  .mk-themes { gap: 20px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
}
.mk-theme {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.mk-theme:hover, .mk-theme:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.mk-theme__stage {
  display: grid; justify-items: center; align-items: start;
  height: 300px; padding-top: 30px; overflow: hidden;
  background: linear-gradient(165deg, var(--cover-bg), var(--cover-bg-2));
}
.mk-theme__stage .mk-phone { width: 172px; transition: transform .45s var(--ease); }
.mk-theme:hover .mk-phone, .mk-theme:focus-within .mk-phone { transform: translateY(-10px); }
.mk-theme__body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 18px 20px 20px; }
.mk-theme__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mk-theme__name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.4; }
.mk-theme__blurb { color: var(--c-muted); font-size: .95rem; }
.mk-theme__occ { color: var(--c-gold-strong); font-size: .86rem; font-weight: 500; }
.mk-theme__link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: auto; padding-top: 6px;
  color: var(--c-primary); font-weight: 600; text-decoration: none;
}
.mk-theme__link::after { content: ''; position: absolute; inset: 0; }
.mk-theme__link .icon { transition: transform .25s var(--ease); }
.mk-theme:hover .mk-theme__link .icon { transform: translateX(-4px); }
@media (max-width: 559px) {
  .mk-theme { border-radius: var(--radius); }
  .mk-theme__stage { height: 214px; padding-top: 20px; }
  .mk-theme__stage .mk-phone { width: 122px; }
  .mk-theme__body { gap: 2px; padding: 12px 14px 8px; }
  .mk-theme__name { font-size: 1.14rem; }
  .mk-theme__blurb, .mk-theme__link-long { display: none; }
  .mk-theme__occ { font-size: .8rem; line-height: 1.6; }
  .mk-theme__link { font-size: .92rem; padding-top: 0; }
  .mk-theme .badge { font-size: .72rem; padding-inline: 8px; }
}
.mk-themes__empty {
  margin-top: 8px; padding: 28px 20px; text-align: center;
  border: 1px dashed var(--c-line-strong); border-radius: var(--radius-lg); color: var(--c-muted);
}
.mk-themes__empty a { color: var(--c-primary); font-weight: 600; }

/* ------------------------------ المقارنة ------------------------------ */

.mk-compare {
  overflow: hidden;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}
.mk-compare__table { width: 100%; border-collapse: collapse; }
.mk-compare__table th, .mk-compare__table td { padding: 16px 18px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--c-line); }
.mk-compare__table tbody tr:last-child > * { border-bottom: 0; }
.mk-compare__table thead th { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; background: var(--c-surface-2); }
.mk-compare__table tbody th { width: 26%; font-weight: 600; color: var(--c-ink); }
.mk-compare__table td { color: var(--c-muted); }
.mk-compare__table .mk-compare__ours { background: var(--c-primary-soft); color: var(--c-primary-strong); font-weight: 500; }
.mk-compare__table thead .mk-compare__ours { background: var(--c-primary); color: var(--c-on-primary); }

@media (max-width: 639px) {
  .mk-compare__table, .mk-compare__table tbody, .mk-compare__table tr, .mk-compare__table th, .mk-compare__table td { display: block; }
  .mk-compare__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .mk-compare__table tbody tr { padding: 16px 18px; border-bottom: 1px solid var(--c-line); }
  .mk-compare__table tbody tr:last-child { border-bottom: 0; }
  .mk-compare__table tbody th, .mk-compare__table td { width: auto; padding: 0; border: 0; }
  .mk-compare__table tbody th { margin-bottom: 10px; font-family: var(--font-display); font-size: 1.1rem; }
  .mk-compare__table td { display: grid; grid-template-columns: 7.2em 1fr; gap: 10px; padding: 8px 12px; border-radius: 10px; }
  .mk-compare__table td + td { margin-top: 6px; }
  .mk-compare__table td::before { content: attr(data-label); font-weight: 600; font-size: .86rem; color: var(--c-ink-2); }
  .mk-compare__table td.mk-compare__ours::before { color: var(--c-primary); }
  .mk-compare__table td:not(.mk-compare__ours) { background: var(--c-bg); }
}

/* ------------------------------ الباقات ------------------------------ */

.mk-plans { display: grid; gap: 20px; align-items: stretch; }
.mk-plan {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 26px 26px;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}
.mk-plan__name { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.4; }
.mk-plan__tag { color: var(--c-muted); font-size: .95rem; }
.mk-plan__price { display: flex; align-items: baseline; gap: 8px; margin-top: 20px; }
.mk-plan__amount { font-family: var(--font-display); font-weight: 700; font-size: 2.7rem; line-height: 1.1; color: var(--c-primary); }
.mk-plan__cur { font-weight: 600; color: var(--c-ink-2); }
.mk-plan__once { color: var(--c-muted); font-size: .88rem; }
.mk-plan__list { display: grid; gap: 10px; margin-block: 22px 26px; padding-top: 22px; border-top: 1px solid var(--c-line); }
.mk-plan__list li { display: flex; align-items: flex-start; gap: 10px; color: var(--c-ink-2); font-size: .97rem; }
.mk-plan__list .icon { margin-top: 5px; color: var(--c-gold-strong); }
.mk-plan__cta { margin-top: auto; }

.mk-plan--popular {
  background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary);
  box-shadow: 0 20px 50px rgba(15, 76, 67, .28);
}
.mk-plan--popular .mk-plan__tag, .mk-plan--popular .mk-plan__once { color: rgba(251, 247, 238, .82); }
.mk-plan--popular .mk-plan__amount { color: #F1E4C4; }
.mk-plan--popular .mk-plan__cur { color: var(--c-on-primary); }
.mk-plan--popular .mk-plan__list { border-top-color: rgba(251, 247, 238, .2); }
.mk-plan--popular .mk-plan__list li { color: var(--c-on-primary); }
.mk-plan--popular .mk-plan__list .icon { color: #E3C583; }
.mk-plan__flag {
  position: absolute; top: -14px; inset-inline-start: 26px;
  padding: 3px 14px; border-radius: 999px;
  background: #E3C583; color: #3A2A08; font-size: .84rem; font-weight: 700; line-height: 1.7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
}

@media (min-width: 900px) {
  .mk-plans { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .mk-plan--popular { margin-block: -12px; padding-block: 42px 38px; }
}

.mk-custom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px;
  margin-top: 32px; padding: 24px 26px;
  border: 1px dashed var(--c-gold); border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .55);
}
.mk-custom > div { flex: 1 1 320px; }
.mk-custom p { margin-top: 4px; color: var(--c-muted); }

/* ------------------------------ الأسئلة ------------------------------ */

.mk-faq { border-top: 1px solid var(--c-line-strong); }
.mk-faq__item { border-bottom: 1px solid var(--c-line-strong); }
.mk-faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding-block: 14px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.14rem; line-height: 1.6;
  cursor: pointer; list-style: none;
}
.mk-faq__q::-webkit-details-marker { display: none; }
.mk-faq__q:hover { color: var(--c-primary); }
.mk-faq__mark {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--c-line-strong); border-radius: 50%; color: var(--c-gold-strong);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.mk-faq__item[open] .mk-faq__mark { transform: rotate(45deg); background: var(--c-gold-soft); }
.mk-faq__a { padding: 0 0 22px; max-width: 68ch; color: var(--c-ink-2); }

/* ------------------------------ الختام ونموذج التواصل ------------------------------ */

.mk-cta { position: relative; padding-block: clamp(64px, 9vw, 104px); background: var(--c-primary-strong); color: var(--c-on-primary); overflow: clip; isolation: isolate; }
.mk-cta::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: #E3C583; opacity: .07;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 4L44 24L24 44L4 24ZM9.9 9.9H38.1V38.1H9.9Z' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E") 0 0 / 72px 72px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 4L44 24L24 44L4 24ZM9.9 9.9H38.1V38.1H9.9Z' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E") 0 0 / 72px 72px;
}
.mk-cta__in { display: grid; gap: 40px; align-items: center; }
.mk-cta__copy { text-align: center; }
.mk-cta .mk-cta__crest { width: 190px; margin: 0 auto 10px; color: #E3C583; }
.mk-cta__title { color: #FFFDF7; }
.mk-cta__lead { margin: 14px auto 28px; max-width: 46ch; color: rgba(251, 247, 238, .86); font-size: 1.06rem; }

.mk-lead-form {
  width: 100%; max-width: 440px; margin-inline: auto; padding: 28px 24px;
  background: var(--c-surface); color: var(--c-ink);
  border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}
.mk-lead-form__title { margin-bottom: 16px; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; line-height: 1.4; }
.mk-lead-form__msg:not(:empty) { margin-bottom: 16px; }
.mk-lead-form__msg:empty { display: none; }
.mk-lead-form__submit { margin-top: 22px; }
.mk-lead-form__note { margin-top: 10px; text-align: center; }
.mk-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 900px) {
  .mk-cta__in { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .mk-cta__copy { text-align: start; }
  .mk-cta .mk-cta__crest { margin-inline: 0; }
  .mk-cta__lead { margin-inline: 0; }
}

/* ------------------------------ الذيل ------------------------------ */

.mk-footer { background: #072620; color: rgba(251, 247, 238, .84); padding-block: 40px calc(28px + 76px); }
.mk-footer__in { display: grid; gap: 24px; justify-items: center; text-align: center; }
.mk-footer .brand { color: #F1E4C4; }
.mk-footer__tag { margin-top: 4px; font-size: .95rem; }
.mk-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 6px; }
.mk-footer__nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px;
  color: inherit; text-decoration: none; border-radius: 999px;
}
.mk-footer__nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.mk-footer__base {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(251, 247, 238, .14);
  font-size: .88rem; color: rgba(251, 247, 238, .7);
}

@media (min-width: 900px) {
  .mk-footer { padding-bottom: 28px; }
  .mk-footer__in { grid-template-columns: auto 1fr auto; justify-items: start; align-items: center; text-align: start; gap: 32px; }
  .mk-footer__nav { justify-content: center; justify-self: center; }
  .mk-footer__base { justify-content: space-between; }
}

/* ------------------------------ شريط الطلب السفلي (الهاتف فقط) ------------------------------ */

.mk-dock {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr auto; gap: 10px;
  padding: 10px 14px max(10px, env(safe-area-inset-bottom));
  background: rgba(250, 246, 238, .94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--c-line);
  transform: translateY(110%); visibility: hidden;
  transition: transform .35s var(--ease), visibility .35s;
}
.mk-dock.is-on { transform: none; visibility: visible; }
@media (min-width: 900px) { .mk-dock { display: none; } }

/* ------------------------------ الظهور عند التمرير ------------------------------ */

.mk-pre { opacity: 0; transform: translateY(18px); }
.mk-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* ------------------------------ الصفحات القانونية ------------------------------ */

.mk-legal { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.mk-legal__head { margin-bottom: 24px; }
.mk-legal__draft { margin-bottom: 32px; }
.mk-legal__draft .icon { margin-top: 3px; }
.mk-legal__sec { padding-block: 22px; border-top: 1px solid var(--c-line); }
.mk-legal__sec ul { display: grid; gap: 8px; margin-top: 10px; padding-inline-start: 22px; list-style: disc; color: var(--c-ink-2); }
.mk-legal__sec li::marker { color: var(--c-gold); }
.mk-legal__back { margin-top: 28px; }
.mk--legal .mk-footer { padding-bottom: 28px; }
