/* Founder Vision — نظام تصميم مشترك. بساطة، مساحة بيضاء، لون إبراز واحد. */

:root {
  --cream: #F0EBE1;
  --paper: #FFFFFF;
  --ink: #393E41;
  --border-strong: #20242A;
  --muted: #5B5650;
  --line: #DCD2C0;
  --red: #C1301E;
  --red-deep: #921F12;
  --coral: #F7544B;
  --coral-ink: #C1301E;
  --focus: #1A5FB4;
  --radius: 4px;
  --max-w: 1140px;
  --max-w-narrow: 760px;
  --font-head: "Changa", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-body: "Readex Pro", "Segoe UI", Tahoma, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.85;
  direction: rtl;
}

h1, h2, h3, .btn, .brand__name, .eyebrow, .price-box__amount {
  font-family: var(--font-head);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: var(--max-w-narrow); }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.brand__mark { height: 34px; width: auto; flex-shrink: 0; }
.brand__name { letter-spacing: -0.01em; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav a {
  text-decoration: none;
  font-size: 15px;
  color: var(--muted);
}
.site-nav a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--red);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 15px;
}
.nav-cta:hover { background: var(--red-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 19px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  min-height: 54px;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-primary::after { content: "←"; font-weight: 400; transition: transform .15s ease; }
.btn-primary:hover::after { transform: translateX(-3px); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--cream); }
.btn-whatsapp {
  background: #25D366;
  color: #fff;
}
.btn-whatsapp:hover { background: #1DA851; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.tight { padding: 48px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* الخط الاحتفالي (Changa) بالعربي يحتاج line-height سخي، وإلا نقاط الحروف
   بسطر بتصطدم بذيل السطر يلي فوقه — هاد سبب مشكلة "الكتابة فوق بعضها". */
h1 { font-size: 38px; line-height: 1.55; margin: 0 0 24px; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 28px; line-height: 1.55; margin: 0 0 20px; font-weight: 800; letter-spacing: -0.005em; }
h3 { font-size: 20px; line-height: 1.6; margin: 0 0 12px; font-weight: 700; }
p { margin: 0 0 18px; }
.lede { font-size: 19px; color: var(--muted); max-width: 58ch; line-height: 1.85; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-right: 4px solid var(--red);
  padding-right: 12px;
  margin-bottom: 22px;
}
@media (min-width: 720px) { h1 { font-size: 52px; } }
@media (min-width: 1100px) { h1 { font-size: 58px; } }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 56px;
  background-image: radial-gradient(circle, rgba(57,62,65,.08) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -12px -12px;
}
.hero__grid {
  display: grid;
  gap: 36px;
  align-items: center;
}
@media (min-width: 860px) {
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; }
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero__image-frame {
  position: relative;
  padding: 0 16px 16px 0;
}
[dir="rtl"] .hero__image-frame { padding: 0 0 16px 16px; }
.hero__image-frame::before {
  content: "";
  position: absolute;
  inset: 16px 0 0 16px;
  background: var(--red);
  border-radius: var(--radius);
  z-index: 0;
}
[dir="rtl"] .hero__image-frame::before { inset: 16px 16px 0 0; }
.hero__image {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border-strong);
  background: var(--paper);
}
.hero__note { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* ---------- شريط الأرقام الحقيقية (تكسير الرتابة، بدون أرقام مصنّعة) ---------- */
.stat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 44px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 2px solid var(--border-strong);
}
.stat-bar__item {
  border-right: 4px solid var(--red);
  padding-right: 18px;
  min-width: 150px;
}
[dir="rtl"] .stat-bar__item { border-right: 4px solid var(--red); }
.stat-bar__number {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
}
.stat-bar__label { font-size: 14.5px; color: var(--muted); margin-top: 8px; max-width: 20ch; }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 32px; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--paper);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 32px;
}
.card h3 { margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }

.situation-card { border-right: 4px solid var(--red); border-top: 1.5px solid var(--border-strong); border-bottom: 1.5px solid var(--border-strong); border-left: 1.5px solid var(--border-strong); }
[dir="rtl"] .situation-card { border-right: 4px solid var(--red); }

/* ---------- Path chooser (فرز) ---------- */
.path-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.path-card__title { font-size: 21px; font-weight: 800; }

/* ---------- Steps (الطريقة) ---------- */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: step;
  background: var(--paper);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
  padding-top: 50px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 16px;
  right: 20px;
  font-weight: 800;
  font-family: var(--font-head);
  font-size: 15px;
  color: #fff;
  background: var(--red);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
[dir="rtl"] .steps li::before { right: 20px; left: auto; }

/* ---------- Roles ---------- */
.roles { display: grid; gap: 20px; margin-top: 16px; }
@media (min-width: 720px) { .roles { grid-template-columns: repeat(3, 1fr); } }
.role {
  padding: 22px;
  background: var(--paper);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
}

/* ---------- Example / Q&A block ---------- */
.example-qa {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 22px;
}
.example-qa__q { font-weight: 700; margin-bottom: 6px; }
.example-qa__why { color: var(--muted); font-size: 15px; margin-bottom: 6px; }
.example-qa__decision { font-size: 15px; }
.example-qa__decision strong { color: var(--coral-ink); }

/* ---------- Founder bio ---------- */
.bio {
  display: grid;
  gap: 20px;
  align-items: center;
}
@media (min-width: 720px) { .bio { grid-template-columns: 140px 1fr; } }
.bio__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--line);
}
.bio__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pricing / offer details ---------- */
.offer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.offer-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 17px;
  line-height: 1.7;
}
.offer-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  margin-top: 10px;
  flex-shrink: 0;
}

.price-box {
  background: var(--ink);
  color: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.price-box .muted { color: #B8B2A6; }
.price-box__amount { font-size: 42px; font-weight: 800; margin-bottom: 6px; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--coral-ink);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 12px; color: var(--muted); }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}
.form-field .hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  background: #fff;
  color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--coral); }
.form-field.has-error input, .form-field.has-error textarea { border-color: var(--coral-ink); }
.form-error { color: var(--coral-ink); font-size: 13px; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 24px;
  font-size: 15px;
}
.alert-success { background: #EAF6EC; border: 1px solid #B7DEC0; color: #235A33; }
.alert-error { background: #FBEAE8; border: 1px solid #F0C2BD; color: #8A2A20; }
.alert-info { background: var(--paper); border: 1px solid var(--line); color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #C9C4BA;
  padding: 44px 0 28px;
  font-size: 14px;
}
.site-footer a { color: #E9E5DC; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal { border-top: 1px solid #2A2A2A; padding-top: 20px; color: #8A857B; }

/* ---------- Checkout layout ---------- */
.checkout-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr 1.15fr; align-items: start; }
  .checkout-grid .order-summary { position: sticky; top: 20px; }
}
.order-summary {
  background: var(--paper);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 24px;
}
.order-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.order-summary__row:first-of-type { border-top: none; }
.order-summary__total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 20px;
  padding-top: 14px;
  margin-top: 6px;
  border-top: 2px solid var(--border-strong);
}
.disclosure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 16px;
}
.disclosure summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 14px;
  list-style: none;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure__body { padding: 0 18px 16px; font-size: 14px; color: var(--muted); }

#paypal-button-container { margin-top: 18px; min-height: 48px; }

.skip-link {
  position: absolute;
  right: 12px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  z-index: 100;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- حركة دخول بسيطة عند التمرير (progressive enhancement) ---------- */
/* الكلاس reveal يُضاف بالجافاسكربت فقط — لو تعطّل الجافاسكربت المحتوى ظاهر عادي دايماً */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.card, .situation-card, .example-qa {
  transition: transform .18s ease, box-shadow .18s ease;
}
@media (hover: hover) {
  .card:hover, .example-qa:hover { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 480px) {
  h1 { font-size: 29px; line-height: 1.5; }
  h2 { font-size: 23px; line-height: 1.5; }
  section { padding: 56px 0; }
  .site-nav { gap: 14px; }
}
