/* متاجرة Motajrh — marketing site. Identity: black mark + orange #ff4f01, six-colour palette, confetti pattern. */
@font-face { font-family: "Shamel"; src: url("/fonts/shamel-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Shamel"; src: url("/fonts/shamel-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0d0d12;
  --ink-2: #3b3d4a;
  --muted: #6b6f80;
  --line: #e4e7ef;
  --mist: #e8ecf3;
  --paper: #ffffff;
  --soft: #f6f7fb;
  --brand: #ff4f01;
  --brand-dark: #d94300;
  --sun: #fcd227;
  --teal: #32d6c6;
  --blue: #2f98f7;
  --violet: #8e4df4;
  --purple: #bd57ff;
  --pink: #ff4080;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(13, 13, 18, .08);
  --font: "Montserrat", "Shamel", "Alexandria", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.75; font-size: 16px; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.latin { direction: ltr; unicode-bidi: isolate; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.5em; border-radius: 999px; font-weight: 700; font-size: 1rem; border: 2px solid transparent; cursor: pointer; font-family: inherit; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(255, 79, 1, .28); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-lg { padding: 1em 2em; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand-logo { height: 30px; width: auto; }
.nav { display: flex; gap: 4px; margin-inline-start: 12px; }
.nav a { padding: .45em .9em; border-radius: 999px; color: var(--ink-2); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--soft); color: var(--ink); }
.header-cta { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.menu-toggle { display: none; margin-inline-start: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

@media (max-width: 920px) {
  .nav, .header-cta .btn-ghost { display: none; }
  .menu-toggle { display: block; margin-inline-start: 0; }
  .header-cta { margin-inline-start: auto; }
  .site-header.open .nav { display: flex; flex-direction: column; position: absolute; top: 72px; inset-inline: 0; background: #fff; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); margin: 0; }
  .site-header.open .nav a { padding: .8em 1em; }
}

/* ---------- sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; font-size: .9rem; color: var(--brand); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: currentColor; }
.bg-soft { background: var(--soft); }
.bg-mist { background: var(--mist); }
.bg-ink { background: linear-gradient(rgba(13, 13, 18, .5), rgba(13, 13, 18, .5)), url("/brand/pattern.svg") repeat, var(--ink); background-size: auto, 240px; color: #fff; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 96px; background: linear-gradient(180deg, var(--mist) 0%, #fff 100%); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: url("/brand/pattern.svg") repeat; background-size: 240px; opacity: .18; pointer-events: none; mask-image: linear-gradient(180deg, #000 0%, transparent 80%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%); }
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -.01em; }
.hero h1 .hl { color: var(--brand); }
.hero .lead { font-size: 1.2rem; color: var(--ink-2); max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.hero-note { color: var(--muted); font-size: .92rem; display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span::before { content: "✓"; color: var(--teal); font-weight: 900; margin-inline-end: 6px; }

/* the store mock-up in the hero */
.mock { position: relative; }
.mock-window { background: #fff; border-radius: 22px; box-shadow: 0 30px 70px rgba(13, 13, 18, .16); overflow: hidden; border: 1px solid var(--line); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--soft); border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-bar .url { margin-inline-start: 10px; flex: 1; background: #fff; border-radius: 8px; font-size: .78rem; color: var(--muted); padding: 3px 12px; direction: ltr; text-align: left; }
.mock-body { padding: 18px; display: grid; gap: 14px; }
.mock-banner { border-radius: 14px; padding: 22px; color: #fff; background: var(--ink) url("/brand/pattern.svg"); background-size: 180px; }
.mock-banner b { display: block; font-size: 1.2rem; }
.mock-banner small { opacity: .8; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-card { border: 1px solid var(--line); border-radius: 12px; padding: 8px; font-size: .78rem; }
.mock-card .ph { height: 64px; border-radius: 8px; margin-bottom: 6px; }
.mock-card b { display: block; }
.mock-card span { color: var(--brand); font-weight: 700; }
.mock-float { position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 12px 16px; font-size: .88rem; display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); }
.mock-float .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 900; }
.mock-float.f1 { bottom: -22px; inset-inline-start: -26px; }
.mock-float.f2 { top: 70px; inset-inline-end: -22px; }
.mock-float b { display: block; }
.mock-float small { color: var(--muted); }

@media (max-width: 920px) {
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .mock-float.f1 { inset-inline-start: 8px; }
  .mock-float.f2 { inset-inline-end: 8px; }
}

/* ---------- logos strip / stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; padding: 22px 12px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.stat b { display: block; font-size: 1.9rem; line-height: 1.2; }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { font-size: 1.18rem; }
.card p { color: var(--muted); margin: 0; }
.tile { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.tile svg { width: 26px; height: 26px; }
.c-sun { background: var(--sun); } .c-teal { background: var(--teal); } .c-blue { background: var(--blue); }
.c-violet { background: var(--violet); } .c-purple { background: var(--purple); } .c-pink { background: var(--pink); } .c-brand { background: var(--brand); }
.tint-sun { background: #fff8d9; } .tint-teal { background: #dcf8f5; } .tint-blue { background: #dfeefe; }
.tint-violet { background: #eee4fd; } .tint-purple { background: #f5e6ff; } .tint-pink { background: #ffe3ec; }
@media (max-width: 920px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: #1a1a22; border: 1px solid rgba(255, 255, 255, .12); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step p { color: rgba(255, 255, 255, .72); margin: 0; font-size: .95rem; }
@media (max-width: 920px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- split rows (features page) ---------- */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; padding: 56px 0; border-bottom: 1px solid var(--line); }
.split:last-child { border-bottom: 0; }
.split .intro p { color: var(--muted); font-size: 1.05rem; }
.split ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split li { background: var(--soft); border-radius: 14px; padding: 18px; }
.split li b { display: block; margin-bottom: 4px; }
.split li span { color: var(--muted); font-size: .94rem; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 20px; } .split ul { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.cycle-switch { display: inline-flex; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 0 auto 36px; }
.cycle-switch button { border: 0; background: none; padding: .55em 1.3em; border-radius: 999px; font-family: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; color: var(--ink-2); }
.cycle-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cycle-switch .save { color: var(--brand); font-size: .8rem; margin-inline-start: 4px; }
.cycle-switch button[aria-pressed="true"] .save { color: var(--sun); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px 26px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--ink); box-shadow: 0 24px 50px rgba(13, 13, 18, .12); }
.plan .badge { position: absolute; top: -13px; inset-inline-start: 24px; background: var(--brand); color: #fff; font-size: .8rem; font-weight: 700; padding: 3px 14px; border-radius: 999px; }
.plan h3 { font-size: 1.35rem; margin-bottom: 4px; }
.plan .tagline { color: var(--muted); font-size: .95rem; min-height: 3em; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 4px; }
.price b { font-size: 2.6rem; line-height: 1; }
.price span { color: var(--muted); }
.price-note { color: var(--muted); font-size: .85rem; min-height: 1.6em; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-size: .95rem; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center/16px no-repeat; }
.plan li.off { color: var(--muted); text-decoration: line-through; }
.plan li.off::before { background: var(--line); }
[data-cycle="monthly"] .yearly-only, [data-cycle="yearly"] .monthly-only { display: none; }

/* ---------- templates ---------- */
.filters { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.filters button { border: 1px solid var(--line); background: #fff; padding: .45em 1.1em; border-radius: 999px; font-family: inherit; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.theme-card { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #fff; transition: box-shadow .2s, transform .2s; }
.theme-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.theme-shot { aspect-ratio: 4 / 3; padding: 18px; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; }
.theme-shot .t-nav { display: flex; justify-content: space-between; align-items: center; }
.theme-shot .t-nav i { display: block; height: 8px; border-radius: 4px; }
.theme-shot .t-hero { border-radius: 12px; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; gap: 6px; }
.theme-shot .t-hero i { display: block; height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .85); }
.theme-shot .t-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.theme-shot .t-row i { display: block; height: 38px; border-radius: 8px; }
.theme-info { padding: 16px 20px 20px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.theme-info h3 { font-size: 1.08rem; margin: 0; }
.theme-info p { color: var(--muted); font-size: .9rem; margin: 2px 0 0; }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--soft); color: var(--ink-2); white-space: nowrap; }
.pill.premium { background: #fff1e8; color: var(--brand-dark); }
@media (max-width: 920px) { .themes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .themes { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq h2 { font-size: 1.3rem; margin-top: 32px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--ink-2); }

/* ---------- CTA band ---------- */
.cta-band { border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, .75); margin: 0; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 36px 24px; } }

/* ---------- page head ---------- */
.page-head { padding: 64px 0 40px; background: var(--mist); text-align: center; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: url("/brand/pattern.svg"); background-size: 240px; opacity: .14; }
.page-head .container { position: relative; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-head p { color: var(--ink-2); max-width: 640px; margin: 0 auto; font-size: 1.1rem; }

/* ---------- forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid > * { min-width: 0; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 22px 18px; } }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.input, select.input, textarea.input { width: 100%; font: inherit; padding: .75em 1em; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.input:focus { border-color: var(--ink); outline: none; }
textarea.input { min-height: 120px; resize: vertical; }
.slug-field { display: flex; direction: ltr; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.slug-field:focus-within { border-color: var(--ink); }
.slug-field input { border: 0; flex: 1; min-width: 0; font: inherit; padding: .75em 1em; outline: none; }
.slug-field span { background: var(--soft); padding: .75em .8em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.hint { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.hint.ok { color: #0f8f7f; } .hint.bad { color: #c62828; }
.error { color: #c62828; font-size: .88rem; margin-top: 4px; }
.alert { border-radius: 14px; padding: 16px 20px; margin-bottom: 20px; }
.alert-ok { background: #dcf8f5; color: #0b5f55; }
.alert-err { background: #ffe3ec; color: #9b1239; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--brand); }
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.radio-cards label { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; cursor: pointer; margin: 0; font-weight: 600; }
.radio-cards input { position: absolute; opacity: 0; }
.radio-cards label:has(input:checked) { border-color: var(--brand); background: #fff4ee; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* ---------- about / legal prose ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose p, .prose li { color: var(--ink-2); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .88rem; }
.palette-dots { display: flex; gap: 6px; margin-top: 18px; }
.palette-dots i { width: 14px; height: 14px; border-radius: 4px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 560px) { .mock-float.f2 { display: none; } .mock-float.f1 { position: static; margin-top: 12px; } }
