/* ==========================================================================
   Makook — Horizon Design System · Tier 0 foundations
   Shared by all pages. Class prefix: mk-
   Surfaces: "sky" (dark night) and "day" (warm light) + arc divider between.
   ========================================================================== */

/* ---------- Fonts (Thmanyah Sans, self-hosted) ---------- */
@font-face { font-family: 'Thmanyah Sans'; src: url('../assets/fonts/thmanyah-sans-light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Thmanyah Sans'; src: url('../assets/fonts/thmanyah-sans-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Thmanyah Sans'; src: url('../assets/fonts/thmanyah-sans-medium.woff2') format('woff2'); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Thmanyah Sans'; src: url('../assets/fonts/thmanyah-sans-bold.woff2') format('woff2'); font-weight: 700 900; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* brand color */
  --mk-night: #1d0430;        /* darkest sky */
  --mk-deep: #340953;         /* brand primary dark */
  --mk-violet: #A259FF;       /* brand accent */
  --mk-violet-soft: rgba(162, 89, 255, 0.14);
  --mk-violet-tint: #F1E7FF;  /* light accent surface */
  --mk-day: #FAF7FD;          /* warm light surface */
  --mk-card: #ffffff;
  --mk-danger: #C4553B;       /* desaturated red for loss/warning states */

  /* text */
  --mk-ink: #340953;                        /* text on light */
  --mk-muted-light: #6b5a7e;                /* secondary on light */
  --mk-muted-dark: rgba(255, 255, 255, 0.68); /* secondary on dark */

  /* lines */
  --mk-line-light: #F0E8FA;
  --mk-line-dark: rgba(162, 89, 255, 0.25);

  /* radius */
  --mk-r-sm: 12px;
  --mk-r-md: 14px;
  --mk-r-lg: 22px;
  --mk-r-pill: 999px;

  /* elevation */
  --mk-shadow: 0 10px 40px rgba(52, 9, 83, 0.08);
  --mk-shadow-lg: 0 24px 60px rgba(52, 9, 83, 0.14);
  --mk-glow: 0 8px 28px rgba(162, 89, 255, 0.4);

  /* type */
  --mk-font: 'Thmanyah Sans', 'Segoe UI', Tahoma, sans-serif;

  /* rhythm */
  --mk-section-pad: 96px;
  --mk-container: 1140px;
}
@media (max-width: 900px) {
  :root {
    --mk-section-pad: 56px;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--mk-font);
  background: var(--mk-day);
  color: var(--mk-ink);
  line-height: 1.7;
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

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

/* ---------- Typography ---------- */
.mk-h1 { font-size: clamp(32px, 4.8vw, 52px); font-weight: 800; line-height: 1.35; }
.mk-h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; line-height: 1.4; }
.mk-h3 { font-size: 17.5px; font-weight: 600; line-height: 1.5; }
.mk-lead { font-size: clamp(16px, 2vw, 18px); font-weight: 300; color: var(--mk-muted-light); }
.mk-body { font-size: 15px; font-weight: 400; }
.mk-small { font-size: 13px; font-weight: 400; color: var(--mk-muted-light); }
.mk-accent { color: var(--mk-violet); }

/* ---------- Surfaces / section shells ---------- */
.mk-section { background: var(--mk-day); padding: var(--mk-section-pad) 0; }

.mk-section--sky {
  position: relative;
  background: var(--mk-night);
  color: #fff;
  padding: var(--mk-section-pad) 0;
  overflow-x: clip; /* decorative glow/stars must never widen the mobile viewport */
}
.mk-section--sky .mk-lead,
.mk-section--sky .mk-small { color: var(--mk-muted-dark); }

/* single restrained glow — add inside a sky section */
.mk-glow-spot {
  position: absolute; top: -160px; inset-inline-start: 50%;
  width: 860px; height: 640px; transform: translateX(50%);
  background: radial-gradient(ellipse at center, rgba(162, 89, 255, 0.2) 0%, rgba(162, 89, 255, 0.06) 40%, transparent 70%);
  pointer-events: none;
}

/* galaxy starfield — add inside a sky section.
   Layers 1–4: glowing halo stars. Layers 5–16: bright point stars. Layers 17–21: tiled micro-stars. */
.mk-stars {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(10px 10px at 43% 14%, rgba(255,255,255,1) 12%, rgba(197,153,255,0.35) 35%, transparent 70%),
    radial-gradient(9px 9px at 76% 22%, rgba(197,153,255,0.95) 14%, rgba(162,89,255,0.3) 38%, transparent 70%),
    radial-gradient(8px 8px at 15% 68%, rgba(255,255,255,0.9) 14%, rgba(255,255,255,0.2) 38%, transparent 70%),
    radial-gradient(9px 9px at 88% 76%, rgba(255,255,255,0.85) 13%, rgba(162,89,255,0.25) 36%, transparent 70%),
    radial-gradient(2.5px 2.5px at 10% 24%, rgba(255,255,255,0.95) 50%, transparent 51%),
    radial-gradient(2px 2px at 24% 44%, rgba(255,255,255,0.75) 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 60% 34%, rgba(255,255,255,0.85) 50%, transparent 51%),
    radial-gradient(2px 2px at 90% 46%, rgba(162,89,255,0.9) 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 6% 44%, rgba(162,89,255,0.8) 50%, transparent 51%),
    radial-gradient(2px 2px at 52% 56%, rgba(255,255,255,0.7) 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 33% 82%, rgba(255,255,255,0.75) 50%, transparent 51%),
    radial-gradient(2px 2px at 68% 70%, rgba(197,153,255,0.8) 50%, transparent 51%),
    radial-gradient(2px 2px at 94% 10%, rgba(255,255,255,0.85) 50%, transparent 51%),
    radial-gradient(2.2px 2.2px at 20% 10%, rgba(255,255,255,0.65) 50%, transparent 51%),
    radial-gradient(2px 2px at 55% 90%, rgba(162,89,255,0.7) 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 49% 28%, rgba(255,255,255,0.6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40px 60px, rgba(255,255,255,0.55) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 150px 220px, rgba(162,89,255,0.5) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 230px 110px, rgba(255,255,255,0.45) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 90px 300px, rgba(255,255,255,0.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 320px 180px, rgba(197,153,255,0.45) 50%, transparent 51%);
  background-repeat:
    no-repeat, no-repeat, no-repeat, no-repeat,
    no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat,
    no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat,
    repeat, repeat, repeat, repeat, repeat;
  background-size:
    auto, auto, auto, auto,
    auto, auto, auto, auto, auto, auto,
    auto, auto, auto, auto, auto, auto,
    290px 290px, 430px 430px, 350px 350px, 520px 520px, 610px 610px;
}

/* arc divider: place directly AFTER a sky section (dark melts into day).
   Background stays transparent: body's day color shows below the curve, and the
   1px overlap strip stays night-on-night even when the svg edge anti-aliases. */
.mk-arc { position: relative; background: transparent; line-height: 0; margin-top: -1px; }
.mk-arc svg { display: block; width: 100%; height: auto; }
/* flipped: place directly BEFORE a sky section (day melts into dark) */
.mk-arc--flip { margin-top: 0; margin-bottom: -1px; }
.mk-arc--flip svg { transform: scaleY(-1); }

/* ---------- Section head (kicker + title + sub) ---------- */
.mk-section-head { text-align: center; max-width: 560px; margin: 0 auto 52px; }
.mk-section-head .mk-lead { margin-top: 12px; }

.mk-kicker {
  display: inline-block; font-size: 13.5px; font-weight: 600;
  color: var(--mk-violet); background: var(--mk-violet-tint);
  border-radius: var(--mk-r-pill); padding: 6px 18px; margin-bottom: 16px;
}
.mk-section--sky .mk-kicker {
  background: rgba(162, 89, 255, 0.12);
  border: 1px solid var(--mk-line-dark);
}

/* ---------- Buttons ---------- */
.mk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--mk-r-md); cursor: pointer;
  font-family: var(--mk-font); font-weight: 600; font-size: 16px;
  padding: 15px 30px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.mk-btn--primary {
  background: var(--mk-violet); color: #fff;
  box-shadow: var(--mk-glow);
}
.mk-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(162, 89, 255, 0.5); }

.mk-btn--ghost {
  background: #fff; color: var(--mk-ink);
  border: 1.5px solid #E7DCF5; padding: 13.5px 28.5px;
}
.mk-btn--ghost:hover { border-color: var(--mk-violet); color: var(--mk-violet); }
.mk-section--sky .mk-btn--ghost {
  background: transparent; color: #fff;
  border-color: var(--mk-line-dark);
}
.mk-section--sky .mk-btn--ghost:hover { border-color: var(--mk-violet); background: var(--mk-violet-soft); color: #fff; }

.mk-btn--sm { padding: 10px 22px; font-size: 14px; border-radius: var(--mk-r-sm); }
.mk-btn--ghost.mk-btn--sm { padding: 8.5px 20.5px; }

/* ---------- Chips & tags ---------- */
.mk-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: var(--mk-r-pill);
  font-size: 14px; font-weight: 500;
  background: #fff; color: var(--mk-muted-light);
  border: 1.5px solid var(--mk-line-light);
}
.mk-section--sky .mk-chip {
  background: rgba(162, 89, 255, 0.08); color: var(--mk-muted-dark);
  border: 1px solid var(--mk-line-dark);
}
.mk-chip svg { flex: none; }

.mk-tag {
  display: inline-block; font-size: 11.5px; font-weight: 500;
  background: var(--mk-violet-tint); color: var(--mk-ink);
  border-radius: var(--mk-r-pill); padding: 3px 11px;
}

/* check icon helper for chips (inline svg recommended); fallback dot */
.mk-check {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: var(--mk-violet-tint);
  display: inline-flex; align-items: center; justify-content: center;
}
.mk-section--sky .mk-check { background: rgba(162, 89, 255, 0.18); }

/* ---------- Cards ---------- */
.mk-card {
  background: var(--mk-card);
  border: 1px solid #F3ECFB;
  border-radius: var(--mk-r-lg);
  padding: 30px 24px;
  box-shadow: var(--mk-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mk-card:hover { transform: translateY(-5px); box-shadow: var(--mk-shadow-lg); }
.mk-card .mk-h3 { margin-bottom: 8px; }
.mk-card p { font-size: 14px; font-weight: 300; color: var(--mk-muted-light); }

.mk-card--dark {
  background: linear-gradient(180deg, #2a0745 0%, rgba(42, 7, 69, 0.4) 100%);
  border: 1px solid var(--mk-line-dark);
  box-shadow: none;
}
.mk-card--dark .mk-h3 { color: #fff; }
.mk-card--dark p { color: var(--mk-muted-dark); }
.mk-card--dark:hover { border-color: rgba(162, 89, 255, 0.5); box-shadow: none; }

/* icon tile used inside cards */
.mk-icon {
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--mk-violet-tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.mk-card--dark .mk-icon { background: var(--mk-violet-soft); }

/* ---------- Forms ---------- */
.mk-field { display: flex; flex-direction: column; gap: 8px; }
.mk-label { font-size: 14px; font-weight: 600; color: var(--mk-ink); }
.mk-input, .mk-select, .mk-textarea {
  font-family: var(--mk-font); font-size: 15px; color: var(--mk-ink);
  background: #fff;
  border: 1.5px solid #E7DCF5; border-radius: var(--mk-r-md);
  padding: 13px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.mk-input::placeholder, .mk-textarea::placeholder { color: #A99BB8; font-weight: 300; }
.mk-input:focus, .mk-select:focus, .mk-textarea:focus {
  outline: none; border-color: var(--mk-violet);
  box-shadow: 0 0 0 4px rgba(162, 89, 255, 0.15);
}
.mk-textarea { min-height: 120px; resize: vertical; }
.mk-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b5a7e' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center; /* RTL: arrow sits at the inline-end */
  padding-inline-end: 16px;
}
/* inline form: input + button on one line (e.g. subscribe) */
.mk-form-row { display: flex; gap: 10px; }
.mk-form-row .mk-input { flex: 1; }
@media (max-width: 560px) { .mk-form-row { flex-direction: column; } }

/* dark-surface form variant */
.mk-section--sky .mk-input,
.mk-section--sky .mk-select,
.mk-section--sky .mk-textarea {
  background: rgba(255, 255, 255, 0.06); color: #fff;
  border-color: var(--mk-line-dark);
}
.mk-section--sky .mk-input::placeholder,
.mk-section--sky .mk-textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.mk-section--sky .mk-label { color: #fff; }

/* ---------- Layout: image + text ---------- */
.mk-media-text {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}
.mk-media-text--reverse > :first-child { order: 2; }

.mk-media { border-radius: var(--mk-r-lg); overflow: hidden; }
.mk-media img { width: 100%; height: auto; }
.mk-media--shadow { box-shadow: var(--mk-shadow-lg); }
/* placeholder visual until real imagery exists */
.mk-media-ph {
  aspect-ratio: 4 / 3;
  background: var(--mk-violet-tint);
  display: flex; align-items: center; justify-content: center;
}
.mk-media-ph img { width: 96px; height: auto; }
.mk-section--sky .mk-media-ph { background: rgba(162, 89, 255, 0.1); }

/* text side of media-text */
.mk-content .mk-h2 { margin-bottom: 14px; }
.mk-content .mk-lead { margin-bottom: 26px; }
.mk-content .mk-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Layout: multi column ---------- */
.mk-cols { display: grid; gap: 20px; }
.mk-cols--2 { grid-template-columns: repeat(2, 1fr); }
.mk-cols--3 { grid-template-columns: repeat(3, 1fr); }
.mk-cols--4 { grid-template-columns: repeat(4, 1fr); }
.mk-cols--loose { gap: 32px; }

/* plain content cell (icon + title + text, no card chrome) */
.mk-blurb .mk-h3 { margin-bottom: 8px; }
.mk-blurb p { font-size: 14px; font-weight: 300; color: var(--mk-muted-light); }
.mk-section--sky .mk-blurb p { color: var(--mk-muted-dark); }

/* ---------- Layout: multi row ---------- */
.mk-rows { display: flex; flex-direction: column; gap: 72px; }
/* media-text rows alternate sides automatically */
.mk-rows > .mk-media-text:nth-child(even) > :first-child { order: 2; }
/* divided variant: stacked rows separated by lines */
.mk-rows--divided { gap: 0; }
.mk-rows--divided > * { padding: 40px 0; }
.mk-rows--divided > * + * { border-top: 1px solid var(--mk-line-light); }
.mk-section--sky .mk-rows--divided > * + * { border-top-color: var(--mk-line-dark); }

@media (max-width: 900px) {
  .mk-media-text { grid-template-columns: 1fr; gap: 32px; }
  .mk-media-text--reverse > :first-child,
  .mk-rows > .mk-media-text:nth-child(even) > :first-child { order: 0; }
  .mk-cols--3, .mk-cols--4 { grid-template-columns: repeat(2, 1fr); }
  .mk-rows { gap: 56px; }
}
@media (max-width: 560px) {
  .mk-cols--2, .mk-cols--3, .mk-cols--4 { grid-template-columns: 1fr; }
}

/* ---------- Float / motion helpers ---------- */
@keyframes mk-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.mk-float { animation: mk-float 5s ease-in-out infinite; }
.mk-float--slow { animation-duration: 6s; }
.mk-float--offset { animation-delay: -2s; }

/* mark with violet glow (e.g. the floating rocket-bag) */
.mk-mark-glow { filter: drop-shadow(0 10px 40px rgba(162, 89, 255, 0.5)); }

/* tighter vertical rhythm for thin bands (stats, strips) */
.mk-section--tight { padding: 56px 0; }

/* ==========================================================================
   Tier 1 — skeleton sections
   ========================================================================== */

/* ---------- Brand lockup (nav + footer) ---------- */
.mk-brand { display: flex; align-items: center; gap: 10px; }
.mk-brand img { height: 36px; width: auto; }
.mk-brand .mk-brand-word { font-weight: 700; font-size: 22px; color: #fff; }

/* ---------- Sticky nav ---------- */
.mk-nav-wrap {
  position: sticky; top: 0; z-index: 50;
  background: rgba(29, 4, 48, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(162, 89, 255, 0.12);
}
.mk-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.mk-nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; color: var(--mk-muted-dark); }
.mk-nav-links a:hover { color: #fff; }
.mk-nav-burger {
  display: none; width: 42px; height: 42px; flex: none;
  background: none; border: 1px solid var(--mk-line-dark); border-radius: 10px;
  cursor: pointer; align-items: center; justify-content: center;
}
.mk-nav-menu { display: none; }
@media (max-width: 900px) {
  .mk-nav-links, .mk-nav > .mk-btn { display: none; }
  .mk-nav-burger { display: inline-flex; }
  .mk-nav-menu { display: none; flex-direction: column; padding: 6px 0 20px; }
  .mk-nav-wrap.is-open .mk-nav-menu { display: flex; }
  .mk-nav-menu a {
    padding: 12px 4px; font-size: 16px; color: var(--mk-muted-dark);
    border-top: 1px solid rgba(162, 89, 255, 0.1);
  }
  .mk-nav-menu a:hover { color: #fff; }
  .mk-nav-menu .mk-btn { margin-top: 14px; align-self: flex-start; }
}

/* ---------- Interior page hero ---------- */
.mk-page-hero { text-align: center; padding: 64px 0 72px; }
@media (max-width: 900px) { .mk-page-hero { padding: 40px 0 48px; } }
.mk-page-hero .mk-page-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.4; margin-bottom: 14px; }
.mk-page-hero .mk-lead { max-width: 560px; margin: 0 auto; }
.mk-page-hero .mk-chips-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- CTA band ---------- */
.mk-cta-band { text-align: center; }
.mk-cta-band .mk-cta-mark { width: 56px; height: auto; margin: 0 auto 26px; }
.mk-cta-band .mk-cta-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.4; margin-bottom: 14px; }
.mk-cta-band .mk-lead { max-width: 520px; margin: 0 auto 34px; }
.mk-cta-band .mk-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.mk-footer { background: var(--mk-night); color: #fff; padding-top: 72px; }
.mk-footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 48px;
}
.mk-footer-blurb { margin-top: 16px; font-size: 14px; font-weight: 300; color: var(--mk-muted-dark); max-width: 280px; }
.mk-footer-col h4 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.mk-footer-col a { display: block; padding: 6px 0; font-size: 14px; color: var(--mk-muted-dark); }
.mk-footer-col a:hover { color: var(--mk-violet); }
.mk-footer-bottom {
  border-top: 1px solid rgba(162, 89, 255, 0.15);
  padding: 22px 0; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.mk-footer-bottom p { font-size: 13px; color: rgba(255, 255, 255, 0.45); }
.mk-socials { display: flex; gap: 10px; }
.mk-socials a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--mk-line-dark);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.mk-socials a:hover { background: var(--mk-violet-soft); border-color: var(--mk-violet); }
@media (max-width: 900px) { .mk-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { 
  .mk-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .mk-footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* ==========================================================================
   Tier 2 — conversion sections
   ========================================================================== */

/* ---------- Phone storefront mockup ---------- */
.mk-phone {
  position: relative; width: 290px; max-width: 100%;
  background: #fff; border-radius: 38px; padding: 14px;
  box-shadow: var(--mk-shadow-lg);
}
.mk-section--sky .mk-phone { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(162, 89, 255, 0.25); }
.mk-phone-screen { background: var(--mk-day); border-radius: 26px; overflow: hidden; color: var(--mk-ink); }
.mk-phone-head { background: var(--mk-deep); color: #fff; padding: 18px 16px 14px; display: flex; align-items: center; gap: 10px; }
.mk-phone-avatar {
  width: 38px; height: 38px; border-radius: 12px; flex: none; font-size: 18px;
  background: var(--mk-violet); display: flex; align-items: center; justify-content: center;
}
.mk-phone-head .name { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.mk-phone-head .sub { font-size: 10.5px; opacity: 0.65; }
.mk-phone-head .verified { margin-inline-start: auto; }
.mk-phone-products { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
.mk-phone-product { background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 4px 14px rgba(52, 9, 83, 0.06); }
.mk-phone-product .ph {
  height: 64px; border-radius: 10px; margin-bottom: 8px; font-size: 26px;
  background: var(--mk-violet-tint);
  display: flex; align-items: center; justify-content: center;
}
.mk-phone-product .t { font-size: 10.5px; font-weight: 600; }
.mk-phone-product .pr { font-size: 10px; color: var(--mk-violet); font-weight: 600; }
.mk-phone-order {
  margin: 4px 12px 14px; padding: 11px;
  background: var(--mk-violet); color: #fff;
  border-radius: 12px; text-align: center; font-size: 13px; font-weight: 600;
}

/* ---------- Compare: chats vs your store ---------- */
.mk-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.mk-compare-panel { border-radius: var(--mk-r-lg); padding: 30px 28px; display: flex; flex-direction: column; }
.mk-compare-panel--before { background: #F5F2F8; border: 1px solid #E9E2F0; }
.mk-compare-panel--after { background: #fff; border: 1.5px solid var(--mk-violet); box-shadow: var(--mk-shadow-lg); }
.mk-compare-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; margin-bottom: 20px; }
.mk-compare .mk-list { margin-top: auto; }

/* messy chat mockup (the "before") */
.mk-chat { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.mk-chat .bubble {
  max-width: 85%; padding: 9px 14px; border-radius: 14px;
  border-end-start-radius: 4px;
  font-size: 12.5px; background: #fff; border: 1px solid #E9E2F0; color: #7d7292;
}
.mk-chat .bubble.me {
  align-self: flex-end; background: #EDE7F3; border-color: #E2D8EC;
  border-end-start-radius: 14px; border-end-end-radius: 4px;
}
/* mini storefront (the "after") — phone screen without the frame */
.mk-compare .mk-phone-screen { border: 1px solid var(--mk-line-light); border-radius: 18px; margin-bottom: 24px; }

/* icon lists (✓ / ✗) */
.mk-list { display: flex; flex-direction: column; gap: 10px; font-size: 14px; padding: 0; }
.mk-list li { list-style: none; display: flex; gap: 10px; align-items: flex-start; }
.mk-list .ic { flex: none; margin-top: 3px; }
.mk-list--x li { color: var(--mk-muted-light); }

/* ---------- Steps (how it works) ---------- */
.mk-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.mk-steps::before {
  content: ""; position: absolute; top: 34px; inset-inline: 16%;
  border-top: 2px dashed #DECDF3;
}
.mk-step { text-align: center; position: relative; }
.mk-step .num {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--mk-violet-tint); color: var(--mk-violet);
  font-size: 18px; font-weight: 700;
  border: 6px solid var(--mk-day);
  margin-bottom: 16px;
}
.mk-step h3 { margin-bottom: 8px; }
.mk-step p { font-size: 14px; font-weight: 300; color: var(--mk-muted-light); max-width: 260px; margin: 0 auto; }
@media (max-width: 860px) {
  .mk-steps { grid-template-columns: 1fr; gap: 40px; }
  .mk-steps::before { display: none; }
}

/* ---------- Testimonials ---------- */
.mk-quote { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.mk-quote .stars { color: #F5B301; font-size: 14px; letter-spacing: 3px; }
.mk-quote blockquote { font-size: 15px; font-weight: 300; color: var(--mk-muted-light); line-height: 1.8; margin: 0; }
.mk-quote .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.mk-quote .avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none; font-size: 20px;
  background: var(--mk-violet-tint);
  display: flex; align-items: center; justify-content: center;
}
.mk-quote .who b { display: block; font-size: 14px; }
.mk-quote .who span { font-size: 12.5px; color: var(--mk-muted-light); }

/* ---------- Stats band ---------- */
.mk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.mk-stat .num { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; line-height: 1.3; }
.mk-stat .num em { font-style: normal; color: var(--mk-violet); }
.mk-stat .lbl { font-size: 14px; font-weight: 300; color: var(--mk-muted-dark); margin-top: 4px; }
@media (max-width: 860px) { .mk-stats { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; } }

/* ---------- Pricing ---------- */
.mk-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.mk-plan { position: relative; display: flex; flex-direction: column; }
.mk-plan-name { font-size: 17px; font-weight: 700; }
.mk-plan-price { font-size: 38px; font-weight: 800; margin: 8px 0 2px; }
.mk-plan-price span { font-size: 14px; font-weight: 400; color: var(--mk-muted-light); }
.mk-plan-desc { font-size: 13.5px; font-weight: 300; color: var(--mk-muted-light); margin-bottom: 20px; }
.mk-plan .mk-list { flex: 1; margin-bottom: 26px; }
.mk-plan-badge {
  position: absolute; top: -13px; inset-inline-start: 24px;
  background: var(--mk-violet); color: #fff;
  font-size: 12px; font-weight: 700;
  border-radius: var(--mk-r-pill); padding: 4px 14px;
}
.mk-plan--featured { border: 2px solid var(--mk-violet); box-shadow: var(--mk-shadow-lg); }
.mk-plan--soon { opacity: 0.72; }
.mk-plan--soon .mk-plan-badge { background: var(--mk-violet-tint); color: var(--mk-deep); }
@media (max-width: 900px) { .mk-plans { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }

/* info tooltip (no JS): <span class="mk-tip" tabindex="0" data-tip="...">؟</span> */
.mk-tip {
  position: relative; flex: none; cursor: help;
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--mk-violet-tint); color: var(--mk-violet);
  font-size: 11px; font-weight: 700; margin-inline-start: 2px;
}
.mk-tip::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); inset-inline-start: 50%; transform: translateX(50%);
  width: max-content; max-width: 250px;
  background: var(--mk-night); color: #fff;
  font-size: 12px; font-weight: 400; line-height: 1.7; text-align: center;
  padding: 8px 12px; border-radius: 8px;
  opacity: 0; visibility: hidden; transition: opacity 0.15s ease;
  z-index: 20; pointer-events: none;
}
.mk-tip::before {
  content: ""; position: absolute; bottom: calc(100% - 2px); inset-inline-start: 50%; transform: translateX(50%);
  border: 5px solid transparent; border-top-color: var(--mk-night);
  opacity: 0; visibility: hidden; transition: opacity 0.15s ease;
  pointer-events: none;
}
.mk-tip:hover::after, .mk-tip:hover::before,
.mk-tip:focus::after, .mk-tip:focus::before { opacity: 1; visibility: visible; }

/* plan feature comparison table */
.mk-table-wrap {
  overflow-x: auto;
  background: #fff; border: 1px solid var(--mk-line-light);
  border-radius: var(--mk-r-lg); box-shadow: var(--mk-shadow);
}
.mk-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.mk-table th, .mk-table td {
  padding: 13px 20px; text-align: center;
  border-bottom: 1px solid var(--mk-line-light);
}
.mk-table thead th { font-size: 15px; font-weight: 700; background: var(--mk-day); }
.mk-table thead th small { display: block; font-size: 11px; font-weight: 600; color: var(--mk-violet); }
.mk-table th:first-child, .mk-table td:first-child { text-align: start; font-weight: 500; }
.mk-table tbody tr:last-child td { border-bottom: none; }
.mk-table .col-hl { background: rgba(162, 89, 255, 0.05); }
.mk-table .no { color: #C9BFD6; font-weight: 600; }
.mk-table .val { font-weight: 700; color: var(--mk-deep); }

/* ==========================================================================
   Homepage components
   ========================================================================== */

/* ---------- Home hero ---------- */
.mk-hero { position: relative; z-index: 2; padding: 64px 0 96px; }
.mk-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.mk-hero .mk-h1 { margin-bottom: 20px; }
.mk-hero .mk-lead { max-width: 480px; margin-bottom: 32px; }
.mk-hero .mk-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.mk-hero .mk-chips-row { display: flex; gap: 12px; flex-wrap: wrap; }
.mk-hero-stage { position: relative; display: flex; justify-content: center; }
@media (max-width: 900px) {
  .mk-hero { padding: 32px 0 48px; }
  .mk-hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .mk-hero-grid > div:first-child { text-align: center; }
  .mk-hero .mk-lead { margin-inline: auto; }
  .mk-hero .mk-actions, .mk-hero .mk-chips-row { justify-content: center; }
}

/* ---------- Floating orders card (admin hint next to hero phone) ---------- */
.mk-orders-card {
  position: absolute; z-index: 3;
  width: 232px; padding: 16px 18px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  color: var(--mk-ink);
}
.mk-orders-card .oc-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; font-weight: 700; margin-bottom: 8px;
}
.mk-orders-card .oc-head span { font-size: 10.5px; font-weight: 600; color: var(--mk-violet); }
.mk-order {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0; border-top: 1px solid #F3EDF9;
  font-size: 11.5px; line-height: 1.4;
}
.mk-order .oi {
  width: 26px; height: 26px; border-radius: 8px; flex: none; font-size: 13px;
  background: var(--mk-violet-tint);
  display: flex; align-items: center; justify-content: center;
}
.mk-order b { display: block; font-weight: 600; }
.mk-order small { font-size: 10px; color: var(--mk-muted-light); }
.mk-order .pill {
  margin-inline-start: auto; flex: none;
  font-size: 9.5px; font-weight: 700;
  border-radius: var(--mk-r-pill); padding: 3px 9px;
  background: #E1F5EC; color: #1F8A5F;
}
.mk-order .pill--new { background: var(--mk-violet-tint); color: var(--mk-violet); }

/* ---------- Compact feature item (big features grid) ---------- */
.mk-feature {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--mk-line-light);
  border-radius: var(--mk-r-md); padding: 14px 16px;
  font-size: 14.5px; font-weight: 600;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.mk-feature:hover { border-color: var(--mk-violet); transform: translateY(-2px); }
.mk-feature .fi {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: var(--mk-violet-tint);
  display: flex; align-items: center; justify-content: center;
}
.mk-feature .soon {
  margin-inline-start: auto; flex: none;
  font-size: 10.5px; font-weight: 700; color: var(--mk-muted-light);
  background: #F3EDF9; border-radius: var(--mk-r-pill); padding: 3px 9px;
}

/* ---------- Partner logo strips ---------- */
.mk-logos-group { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mk-logos-panel {
  background: #fff; border: 1px solid var(--mk-line-light);
  border-radius: var(--mk-r-lg); padding: 26px 28px;
}
.mk-logos-panel h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--mk-muted-light);
  margin-bottom: 18px;
}
.mk-logos { display: flex; flex-wrap: wrap; gap: 12px; }
.mk-logo {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--mk-line-light); border-radius: var(--mk-r-md);
  padding: 12px 22px;
  font-weight: 700; font-size: 15px; direction: ltr;
  background: var(--mk-day); color: var(--mk-deep);
}
.mk-logo .dot { width: 11px; height: 11px; border-radius: 3.5px; background: var(--mk-violet); }
.mk-logo img { height: 30px; width: auto; border-radius: 7px; display: block; }
@media (max-width: 860px) { .mk-logos-group { grid-template-columns: 1fr; } }

/* ---------- Social → store flow (sky band) ---------- */
.mk-flow {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(16px, 4vw, 48px);
}
.mk-flow-socials { display: flex; flex-direction: column; gap: 14px; }
.mk-social {
  width: 54px; height: 54px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--mk-line-dark);
  display: flex; align-items: center; justify-content: center;
}
.mk-flow-trail { flex: none; }
.mk-flow-store { width: 240px; }
.mk-flow-store .mk-phone-screen {
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 50px rgba(162, 89, 255, 0.2);
}
@media (max-width: 760px) {
  .mk-flow { flex-direction: column; gap: 28px; }
  .mk-flow-socials { flex-direction: row; }
  .mk-flow-trail { display: none; }
}

/* ---------- FAQ accordion (no JS) ---------- */
.mk-faq { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.mk-faq details {
  background: #fff; border: 1px solid var(--mk-line-light);
  border-radius: var(--mk-r-md); padding: 0 22px;
  transition: border-color 0.15s ease;
}
.mk-faq details[open] { border-color: var(--mk-violet); box-shadow: var(--mk-shadow); }
.mk-faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 0; font-size: 15.5px; font-weight: 600;
}
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq .chev { flex: none; transition: transform 0.2s ease; }
.mk-faq details[open] .chev { transform: rotate(180deg); }
.mk-faq .faq-a { padding: 0 0 18px; font-size: 14.5px; font-weight: 300; color: var(--mk-muted-light); }

/* FAQ page: category groups */
.mk-faq-group { max-width: 720px; margin: 0 auto 48px; scroll-margin-top: 90px; }
.mk-faq-group:last-child { margin-bottom: 0; }
.mk-faq-cat { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; margin-bottom: 16px; }
.mk-faq-cat .mk-icon { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 0; }

/* ---------- Made by Syrians panel ---------- */
.mk-made {
  background: var(--mk-violet-tint); border-radius: var(--mk-r-lg);
  padding: 44px 40px;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 36px; align-items: center;
}
.mk-made-points { display: flex; flex-direction: column; gap: 14px; padding: 0; }
.mk-made-points li { list-style: none; display: flex; gap: 10px; font-size: 15px; font-weight: 500; }
.mk-made-points .star { color: var(--mk-violet); flex: none; }
.mk-made-badge {
  background: #fff; border-radius: var(--mk-r-lg);
  box-shadow: var(--mk-shadow);
  padding: 34px 28px; text-align: center;
}
.mk-made-badge img { width: 54px; height: auto; margin: 0 auto 14px; }
.mk-made-badge .en {
  direction: ltr; font-weight: 800; letter-spacing: 0.5px;
  font-size: clamp(21px, 2.4vw, 26px); color: var(--mk-deep);
}
.mk-made-badge small {
  display: block; direction: ltr;
  font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--mk-violet); margin-top: 6px;
}
@media (max-width: 860px) { .mk-made { grid-template-columns: 1fr; padding: 32px 26px; } }

/* ---------- Phone theme variants (themes showcase) ---------- */
.mk-phone--rose .mk-phone-head { background: #7A1E3F; }
.mk-phone--rose .mk-phone-order { background: #E15A83; }
.mk-phone--rose .mk-phone-product .pr { color: #E15A83; }
.mk-phone--rose .mk-phone-avatar { background: #E15A83; }
.mk-phone--teal .mk-phone-head { background: #0E4D45; }
.mk-phone--teal .mk-phone-order { background: #18A08B; }
.mk-phone--teal .mk-phone-product .pr { color: #18A08B; }
.mk-phone--teal .mk-phone-avatar { background: #18A08B; }
.mk-themes-row { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.mk-themes-row .mk-phone { width: 250px; }

/* ==========================================================================
   Apps page — store badges + merchant app mockups
   ========================================================================== */

/* ---------- Store badges (official App Store / Google Play look) ---------- */
.mk-store-badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.mk-store-badge-pair { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mk-store-badge {
  display: inline-flex; align-items: center; gap: 9px;
  direction: rtl;
  padding: 8px 15px; border-radius: 9px;
  background: #000; border: 1px solid #A6A6A6;
}
.mk-store-badge svg { flex: none; }
.mk-store-badge .tx { display: flex; flex-direction: column; line-height: 1.25; text-align: right; }
.mk-store-badge .tx small { font-size: 10px; font-weight: 500; color: #fff; }
.mk-store-badge .tx b { font-size: 16px; font-weight: 700; color: #fff; }
.mk-store-badge.is-soon { cursor: default; user-select: none; }
.mk-soon-tag {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 700; color: var(--mk-violet);
  background: var(--mk-violet-tint); border-radius: var(--mk-r-pill);
  padding: 5px 13px;
}

/* ---------- Dashboard app mockup (stats + orders inside .mk-phone) ---------- */
.mk-phone-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 12px 0; }
.mk-phone-stats .st { background: #fff; border-radius: 12px; padding: 9px 12px; box-shadow: 0 4px 14px rgba(52, 9, 83, 0.06); }
.mk-phone-stats .st b { display: block; font-size: 16px; font-weight: 800; line-height: 1.4; }
.mk-phone-stats .st small { font-size: 10px; color: var(--mk-muted-light); }
.mk-phone .mk-orders-card { position: static; width: auto; margin: 10px 12px 0; padding: 12px 14px; box-shadow: 0 4px 14px rgba(52, 9, 83, 0.06); }

/* ---------- POS app mockup (cart + total inside .mk-phone) ---------- */
.mk-phone-cart { background: #fff; border-radius: 14px; margin: 12px 12px 10px; padding: 4px 14px; box-shadow: 0 4px 14px rgba(52, 9, 83, 0.06); }
.mk-cart-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid #F3EDF9; font-size: 12px; font-weight: 500; }
.mk-cart-line:first-child { border-top: none; }
.mk-cart-line .pr { color: var(--mk-violet); font-weight: 600; flex: none; }
.mk-phone-total {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 12px; padding: 10px 14px;
  background: var(--mk-violet-tint); border-radius: 12px;
  font-size: 13px; font-weight: 800;
}

/* FAQ answers: inline links (global a { color: inherit } would hide them) */
.mk-faq .faq-a a { color: var(--mk-violet); font-weight: 600; }

/* ==========================================================================
   Blog — post cards, article prose, pagination (concepts/blog-*.html)
   ========================================================================== */

/* ---------- Post card (use with .mk-card: inherits border/shadow/hover-lift) ---------- */
.mk-post-card {
  display: flex; flex-direction: column;
  padding: 0; overflow: hidden;
}
.mk-post-card .mk-h2, .mk-post-card .mk-h3 { transition: color 0.15s ease; }
.mk-post-card:hover .mk-h2, .mk-post-card:hover .mk-h3 { color: var(--mk-violet); }

.mk-post-thumb {
  aspect-ratio: 16 / 9; flex: none;
  background: var(--mk-violet-tint);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
}

.mk-post-card-body {
  padding: 22px 24px 24px; flex: 1;
  display: flex; flex-direction: column; gap: 10px;
}
.mk-post-card-body .mk-tag { align-self: flex-start; }
.mk-post-card-body p { flex: 1; }

/* featured post: spans the grid row, thumb + body side by side (thumb right in RTL) */
.mk-post-card--featured {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1.05fr 1fr;
}
.mk-post-card--featured .mk-post-thumb { aspect-ratio: auto; height: 100%; min-height: 300px; font-size: 64px; }
.mk-post-card--featured .mk-post-card-body { padding: 34px 36px; justify-content: center; }
.mk-post-card--featured .mk-post-card-body p { flex: none; }
@media (max-width: 900px) {
  .mk-post-card--featured { display: flex; flex-direction: column; }
  .mk-post-card--featured .mk-post-thumb { aspect-ratio: 16 / 9; height: auto; min-height: 0; font-size: 44px; }
  .mk-post-card--featured .mk-post-card-body { padding: 22px 24px 24px; }
}

/* date · reading time row */
.mk-post-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 12.5px; color: var(--mk-muted-light);
}
.mk-post-meta > * + *::before { content: "·"; margin-inline-end: 8px; }
.mk-section--sky .mk-post-meta { color: var(--mk-muted-dark); }

/* ---------- Byline (post hero) ---------- */
.mk-byline { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 26px; }
.mk-byline-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--mk-violet-soft); border: 1px solid var(--mk-line-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.mk-byline-info { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: start; }
.mk-byline-info b { font-size: 14px; }

/* ---------- Article ---------- */
.mk-post-cover {
  max-width: 860px; margin: 0 auto 52px;
  aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--mk-violet-tint);
  border-radius: var(--mk-r-lg);
  box-shadow: var(--mk-shadow-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 72px;
}

/* long-form prose column */
.mk-article { max-width: 720px; margin: 0 auto; }
.mk-article p { font-size: 17px; font-weight: 300; line-height: 2; color: var(--mk-muted-light); margin-bottom: 22px; }
.mk-article strong { font-weight: 700; color: var(--mk-ink); }
.mk-article h2 { font-size: 24px; font-weight: 700; line-height: 1.5; margin: 44px 0 14px; }
.mk-article h3 { font-size: 19px; font-weight: 600; line-height: 1.6; margin: 32px 0 10px; }
.mk-article a { /* global a { color: inherit } would hide prose links */
  color: var(--mk-violet); font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(162, 89, 255, 0.35);
  text-underline-offset: 4px;
}
.mk-article a:hover { text-decoration-color: var(--mk-violet); }
.mk-article ul, .mk-article ol { padding-inline-start: 22px; margin-bottom: 22px; }
.mk-article li { font-size: 16px; font-weight: 300; line-height: 1.9; color: var(--mk-muted-light); margin-bottom: 8px; }
.mk-article li::marker { color: var(--mk-violet); font-weight: 600; }
.mk-article blockquote {
  border-inline-start: 3px solid var(--mk-violet);
  padding-inline-start: 22px;
  margin: 32px 0;
  font-size: 18px; font-weight: 400; line-height: 1.9; color: var(--mk-ink);
}
.mk-article blockquote cite { display: block; margin-top: 10px; font-style: normal; font-size: 13px; color: var(--mk-muted-light); }
.mk-article figure { margin: 32px 0; }
.mk-article figcaption { margin-top: 10px; text-align: center; font-size: 13px; color: var(--mk-muted-light); }

/* tip box inside prose (placed after .mk-article p so its p rule wins) */
.mk-callout {
  display: flex; gap: 12px;
  background: var(--mk-violet-tint);
  border-radius: var(--mk-r-md);
  padding: 18px 22px; margin: 32px 0;
}
.mk-callout .ic { flex: none; font-size: 20px; line-height: 1.7; }
.mk-callout p, .mk-article .mk-callout p { font-size: 15px; font-weight: 400; line-height: 1.9; color: var(--mk-ink); margin: 0; }
.mk-callout b { color: var(--mk-deep); }

/* tags + share row under the article */
.mk-article-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 26px;
  border-top: 1px solid var(--mk-line-light);
}
.mk-tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-share { display: flex; align-items: center; gap: 12px; }

/* author box (wrap in .mk-card) */
.mk-author { display: flex; align-items: center; gap: 16px; }
.mk-author-avatar {
  width: 60px; height: 60px; border-radius: 50%; flex: none;
  background: var(--mk-violet-tint);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.mk-author b { display: block; font-size: 15px; margin-bottom: 4px; }

/* ---------- Pagination ---------- */
.mk-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 52px; }
.mk-page-link {
  min-width: 42px; height: 42px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--mk-r-sm);
  background: #fff; border: 1.5px solid #E7DCF5;
  font-size: 14px; font-weight: 600; color: var(--mk-ink);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.mk-page-link:hover { border-color: var(--mk-violet); color: var(--mk-violet); }
.mk-page-link.is-current { background: var(--mk-violet); border-color: var(--mk-violet); color: #fff; }

/* active category filter chip (works on both surfaces: declared after the sky variant) */
.mk-chip.is-active { background: var(--mk-violet); color: #fff; border-color: var(--mk-violet); }

/* upcoming posts on the index: visible with a title, not yet clickable */
.mk-post-card--soon { cursor: default; }
.mk-post-card--soon:hover { transform: none; box-shadow: var(--mk-shadow); }
.mk-post-card--soon:hover .mk-h3 { color: var(--mk-ink); }
.mk-post-card--soon .mk-h3 { flex: 1; }
.mk-post-card--soon .mk-post-thumb { opacity: 0.7; }
.mk-post-card--soon .mk-soon-tag { align-self: flex-start; }

/* ==========================================================================
   Help center — search, category cards, breadcrumb, article rows
   ========================================================================== */

/* ---------- Search (help.html hero) ---------- */
.mk-help-search { position: relative; max-width: 620px; margin: 32px auto 0; text-align: start; }
.mk-search-pop {
  position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 20;
  background: #fff; border-radius: var(--mk-r-md);
  box-shadow: var(--mk-shadow-lg); overflow: hidden;
}
.mk-search-hit { display: block; padding: 13px 18px; transition: background 0.15s ease; }
.mk-search-hit + .mk-search-hit { border-top: 1px solid var(--mk-line-light); }
.mk-search-hit:hover { background: var(--mk-day); }
.mk-search-hit b { display: block; font-size: 15px; font-weight: 600; color: var(--mk-ink); transition: color 0.15s ease; }
.mk-search-hit:hover b { color: var(--mk-violet); }
.mk-search-hit small { font-size: 12.5px; color: var(--mk-muted-light); }
.mk-search-empty { padding: 15px 18px; font-size: 14px; font-weight: 300; color: var(--mk-muted-light); }
.mk-search-empty a { color: var(--mk-violet); font-weight: 600; }

/* ---------- Category cards (use with .mk-card; <a> when live, static div when soon) ---------- */
.mk-card--static { cursor: default; }
.mk-card--static:hover { transform: none; box-shadow: var(--mk-shadow); }
.mk-help-cat { display: flex; flex-direction: column; }
.mk-help-cat p { margin-bottom: 18px; }
.mk-help-cat .mk-soon-tag, .mk-help-cat-link { margin-top: auto; align-self: flex-start; }
.mk-help-cat-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--mk-violet);
}
.mk-help-cat-link svg { transition: transform 0.15s ease; }
.mk-help-cat:hover .mk-help-cat-link svg { transform: translateX(-4px); } /* RTL: forward = left */

/* ---------- Breadcrumb (sky hero, above the page title) ---------- */
.mk-breadcrumb {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
  font-size: 13.5px; color: var(--mk-muted-dark); margin-bottom: 18px;
}
.mk-breadcrumb a:hover { color: #fff; }
.mk-breadcrumb > * + *::before { content: "\2039"; margin-inline-end: 8px; color: rgba(255, 255, 255, 0.35); }

/* ---------- Article rows (category page) ---------- */
.mk-help-list {
  max-width: 720px; margin: 0 auto;
  background: var(--mk-card); border: 1px solid #F3ECFB;
  border-radius: var(--mk-r-lg); box-shadow: var(--mk-shadow);
  overflow: hidden;
}
.mk-help-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 26px; transition: background 0.15s ease;
}
.mk-help-row + .mk-help-row { border-top: 1px solid var(--mk-line-light); }
.mk-help-row:hover { background: var(--mk-day); }
.mk-help-row b { display: block; font-size: 16px; font-weight: 600; transition: color 0.15s ease; }
.mk-help-row:hover b { color: var(--mk-violet); }
.mk-help-row .mk-small { margin-top: 4px; font-weight: 300; }
.mk-help-row .chev { flex: none; transition: transform 0.15s ease; }
.mk-help-row:hover .chev { transform: translateX(-4px); }

/* ==========================================================================
   Changelog — timeline (concepts/changelog.html)
   ========================================================================== */
.mk-timeline { position: relative; max-width: 720px; margin: 0 auto; padding-inline-start: 36px; }
.mk-timeline::before { /* the vertical rail: renders on the right in RTL */
  content: ""; position: absolute; inset-block: 6px; inset-inline-start: 9px;
  width: 2px; background: var(--mk-line-light); border-radius: 1px;
}
.mk-tl-entry { position: relative; padding-bottom: 48px; }
.mk-tl-entry:last-child { padding-bottom: 0; }
.mk-tl-entry::before { /* violet dot on the rail */
  content: ""; position: absolute; top: 5px; inset-inline-start: -33px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--mk-violet); border: 3px solid var(--mk-day);
  box-shadow: 0 0 0 2px var(--mk-violet-soft);
}
.mk-tl-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-bottom: 10px; font-size: 12.5px; color: var(--mk-muted-light);
}
.mk-tl-entry h2 { font-size: 18px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; }
.mk-tl-entry p { font-size: 15px; font-weight: 300; line-height: 1.9; color: var(--mk-muted-light); }
.mk-tl-entry ul { padding-inline-start: 20px; margin-top: 8px; }
.mk-tl-entry li { font-size: 14.5px; font-weight: 300; line-height: 1.9; color: var(--mk-muted-light); margin-bottom: 4px; }
.mk-tl-entry li::marker { color: var(--mk-violet); }
.mk-tl-entry a { color: var(--mk-violet); font-weight: 500; } /* global a { color: inherit } would hide links */

/* ==========================================================================
   Tools — hub cards, builder layout, output panel (tools.html, tool-*.html)
   ========================================================================== */

/* tool card on the hub: use with .mk-card; live = <a>, soon = .mk-card--static */
.mk-tool-card { display: flex; flex-direction: column; }
.mk-tool-card p { margin-bottom: 18px; }
.mk-tool-card .mk-tag { align-self: flex-start; margin-bottom: 14px; }
.mk-tool-card .mk-soon-tag, .mk-tool-card .mk-tool-link { margin-top: auto; align-self: flex-start; }
.mk-tool-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--mk-violet);
}
.mk-tool-link svg { transition: transform 0.15s ease; }
.mk-tool-card:hover .mk-tool-link svg { transform: translateX(-4px); } /* RTL: forward = left */

/* builder: form beside the result panel; stacks on mobile */
.mk-tool-builder {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 28px; align-items: start; max-width: 940px; margin: 0 auto;
}
.mk-tool-form { display: flex; flex-direction: column; gap: 18px; }
.mk-tool-form .mk-btn { margin-top: 4px; align-self: flex-start; }
@media (max-width: 900px) { .mk-tool-builder { grid-template-columns: 1fr; } }

/* result panel (sticky beside the form on desktop) */
.mk-tool-output {
  position: sticky; top: 90px;
  background: var(--mk-violet-tint);
  border: 1px solid var(--mk-line-light);
  border-radius: var(--mk-r-lg);
  padding: 26px 24px;
}
.mk-tool-output .mk-label { display: block; margin-bottom: 12px; }
.mk-tool-url {
  direction: ltr; text-align: start; unicode-bidi: plaintext;
  font-family: 'Segoe UI', Consolas, monospace;
  font-size: 13.5px; line-height: 1.9; color: var(--mk-deep);
  background: #fff; border: 1px solid var(--mk-line-light);
  border-radius: var(--mk-r-md); padding: 14px 16px;
  overflow-x: auto; overflow-wrap: anywhere;
  margin-bottom: 16px;
}
.mk-tool-url .p { color: var(--mk-violet); font-weight: 700; } /* highlight the utm params */
.mk-tool-url.is-empty { /* hint shown when no base URL yet: read as normal Arabic, not mono */
  direction: rtl; font-family: var(--mk-font); font-weight: 300;
  color: var(--mk-muted-light);
}
.mk-tool-output .mk-note { display: block; margin-top: 14px; }
@media (max-width: 900px) { .mk-tool-output { position: static; } }

/* calculator result block (inside .mk-tool-output) */
.mk-tool-result .cap { font-size: 13.5px; font-weight: 400; color: var(--mk-muted-light); margin-bottom: 6px; }
.mk-tool-result .big {
  font-size: clamp(30px, 4.5vw, 40px); font-weight: 800; line-height: 1.2; color: var(--mk-deep);
}
.mk-tool-result .big .cur { font-size: 16px; font-weight: 600; color: var(--mk-muted-light); margin-inline-start: 6px; }
.mk-tool-result .loss-note { display: none; margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--mk-danger); }
.mk-tool-result.is-loss .big { color: var(--mk-danger); }
.mk-tool-result.is-loss .loss-note { display: block; }
.mk-tool-result.is-empty .big, .mk-tool-result.is-empty .mk-tool-stats,
.mk-tool-result.is-empty .total-line { display: none; }
.mk-tool-result .empty-hint { display: none; font-size: 14px; font-weight: 300; color: var(--mk-muted-light); line-height: 1.8; }
.mk-tool-result.is-empty .empty-hint { display: block; }
.mk-tool-result.is-empty .cap { display: none; }

.mk-tool-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.mk-tool-stats .s { background: #fff; border: 1px solid var(--mk-line-light); border-radius: var(--mk-r-md); padding: 14px 16px; }
.mk-tool-stats .s .n { direction: ltr; text-align: right; font-size: 22px; font-weight: 800; color: var(--mk-deep); }
.mk-tool-stats .s .l { display: flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 300; color: var(--mk-muted-light); margin-top: 2px; }
.mk-tool-result .total-line { margin-top: 18px; font-size: 14px; font-weight: 400; color: var(--mk-ink); }
.mk-tool-result .total-line b { font-weight: 800; color: var(--mk-deep); }
