/* ═══════════════════════════════════════
   بروشور جدوليست · A4 عمودي
   ═══════════════════════════════════════ */
:root {
  --bf-navy: #0f172a;
  --bf-green: #10b982;
  --bf-teal: #2ec4a0;
  --bf-a4w: 210mm;
  --bf-a4h: 297mm;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.brochure-page {
  font-family: "Tajawal", "Cairo", sans-serif;
  background: #64748b;
  color: var(--bf-navy);
  direction: rtl;
}

/* ── شريط أدوات (شاشة فقط) ── */
.brochure-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--bf-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.brochure-toolbar button,
.brochure-toolbar a {
  font: inherit;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.bro-btn-print { background: var(--bf-green); color: #fff; }
.bro-btn-back {
  background: transparent;
  color: #cbd5e1;
  border: 1px solid rgba(255,255,255,.35);
}

.brochure-wrap {
  width: var(--bf-a4w);
  height: var(--bf-a4h);
  margin: 16px auto 28px;
}

.brochure-sheet {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(168deg, #a7f3d0 0%, #d1fae5 32%, #99f6e4 68%, #ccfbf1 100%);
  box-shadow: 0 14px 48px rgba(0,0,0,.25);
  overflow: hidden;
}

/* ── رأس ── */
.bf-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4mm 10mm;
  background: var(--bf-navy);
  color: #fff;
}
.bf-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bf-logo {
  width: 10mm;
  height: 10mm;
  background: url("schedulist-sovereign-v173.svg") center/contain no-repeat;
}
.bf-brand strong {
  display: block;
  font-size: 13pt;
  font-weight: 900;
  line-height: 1.1;
}
.bf-brand span {
  font-size: 7pt;
  opacity: .85;
  font-weight: 600;
}
.bf-url {
  font-size: 10pt;
  font-weight: 900;
  color: var(--bf-teal);
  direction: ltr;
}

/* ── جسم ── */
.bf-main {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4.5mm;
  padding: 6mm 10mm 5mm;
  min-height: 0;
  overflow: hidden;
  background: transparent;
}

.bf-main-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 8%, rgba(16, 185, 129, 0.22), transparent 58%),
    radial-gradient(ellipse 58% 42% at 92% 4%, rgba(5, 150, 105, 0.28), transparent 56%),
    radial-gradient(ellipse 52% 40% at 6% 96%, rgba(13, 148, 136, 0.22), transparent 54%),
    radial-gradient(ellipse 75% 55% at 48% 48%, rgba(16, 185, 129, 0.12), transparent 65%);
}
.bf-main-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(4, 120, 87, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(4, 120, 87, 0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse 92% 88% at 50% 46%, #000 15%, transparent 80%);
}
.bf-main-bg::after {
  content: "";
  position: absolute;
  width: 62mm;
  height: 62mm;
  top: -20mm;
  left: -14mm;
  border-radius: 50%;
  border: 2px solid rgba(4, 120, 87, 0.15);
  opacity: 0.85;
}
.bf-main > *:not(.bf-main-bg) {
  position: relative;
  z-index: 1;
}

/* مقدمة */
.bf-intro {
  text-align: center;
  flex-shrink: 0;
  padding: 0 0.5mm;
}

.bf-intro-card {
  position: relative;
  padding: 4mm 7mm 4.5mm;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(4, 120, 87, 0.24);
  box-shadow:
    0 10px 28px rgba(4, 120, 87, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.bf-intro-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #059669, #10b981, #2ec4a0);
}

.bf-intro-card::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  bottom: -36px;
  left: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.14), transparent 68%);
  pointer-events: none;
}

.bf-intro-mark {
  width: 10mm;
  height: 10mm;
  margin: 0 auto 2mm;
  background: url("schedulist-sovereign-v173.svg") center/contain no-repeat;
  filter: drop-shadow(0 2px 5px rgba(4, 120, 87, 0.18));
}

.bf-title {
  position: relative;
  font-size: 20pt;
  font-weight: 900;
  line-height: 1.15;
  color: var(--bf-navy);
  letter-spacing: -.02em;
}

.bf-tagline {
  display: inline-block;
  font-size: 13.5pt;
  font-weight: 900;
  margin-top: 2mm;
  padding: 1.2mm 4.5mm;
  border-radius: 999px;
  color: #065f46;
  background: rgba(16, 185, 129, 0.11);
  border: 1px solid rgba(5, 150, 105, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.bf-tagline em {
  font-style: normal;
  color: #047857;
  font-weight: 900;
}

.bf-hook {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3mm;
  font-size: 7.5pt;
  font-weight: 700;
  color: #0f766e;
  margin-top: 2.5mm;
  line-height: 1.45;
}

.bf-hook-deco {
  flex: 1;
  max-width: 12mm;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(4, 120, 87, 0.38));
}

.bf-hook-deco:last-child {
  background: linear-gradient(90deg, rgba(4, 120, 87, 0.38), transparent);
}

.bf-intro-glow {
  position: absolute;
  width: 90mm;
  height: 36mm;
  top: 2mm;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.45), transparent 68%);
  opacity: 0.9;
}

/* ── ميزات المنصة ── */
.bf-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 3mm;
}

.bf-features-head {
  text-align: center;
  flex-shrink: 0;
}

.bf-section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3mm;
}

.bf-section-line {
  flex: 1;
  max-width: 22mm;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(4, 120, 87, 0.32));
}

.bf-section-label .bf-section-line:last-child {
  background: linear-gradient(90deg, rgba(4, 120, 87, 0.32), transparent);
}

.bf-features-head h2 {
  font-size: 10pt;
  font-weight: 900;
  color: #047857;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.bf-features-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2.5mm;
  min-height: 0;
}

.bf-feat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5mm;
  padding: 3mm 2.5mm;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(4, 120, 87, 0.2);
  box-shadow:
    0 8px 22px rgba(4, 120, 87, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.bf-feat-icon {
  width: 10mm;
  height: 10mm;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 14pt;
  line-height: 1;
  flex-shrink: 0;
}
.bf-feat-icon--sched { background: rgba(16, 185, 129, 0.14); }
.bf-feat-icon--wait { background: rgba(217, 119, 6, 0.14); }
.bf-feat-icon--exam { background: rgba(99, 102, 241, 0.14); }
.bf-feat-icon--doc  { background: rgba(15, 124, 108, 0.14); }
.bf-feat-icon--wa   { background: rgba(37, 211, 102, 0.12); }
.bf-feat-icon--cloud { background: rgba(100, 116, 139, 0.14); }
.bf-feat-icon--task { background: rgba(22, 163, 74, 0.14); }
.bf-feat-icon--cal  { background: rgba(59, 130, 246, 0.14); }
.bf-feat-icon--visit { background: rgba(168, 85, 247, 0.14); }

.bf-feat h3 {
  font-size: 9.5pt;
  font-weight: 900;
  color: var(--bf-navy);
  line-height: 1.25;
}
.bf-feat p {
  font-size: 6.8pt;
  font-weight: 600;
  color: #64748b;
  line-height: 1.4;
  max-width: 95%;
}

/* ── شريط القيمة ── */
.bf-spotlight {
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  padding: 4.5mm 5mm;
  border-radius: 14px;
  background: linear-gradient(128deg, #064e3b 0%, #047857 38%, #059669 72%, #10b981 100%);
  box-shadow:
    0 8px 24px rgba(4, 120, 87, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.bf-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.12), transparent 42%),
    radial-gradient(circle at 88% 80%, rgba(255, 255, 255, 0.08), transparent 38%);
  pointer-events: none;
}

.bf-spotlight-pills {
  position: relative;
  z-index: 1;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5mm;
  margin: 0;
  padding: 0;
}

.bf-spotlight-pills li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.2mm 4mm;
  border-radius: 999px;
  font-size: 7.5pt;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  text-align: center;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.bf-spotlight-check {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 7px;
  font-weight: 900;
  color: #047857;
  background: #ecfdf5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* ── بطاقات الباقات ── */
.bf-info {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2.5mm;
}
.bf-info-lead {
  text-align: center;
  font-size: 9.5pt;
  font-weight: 800;
  color: #047857;
}
.bf-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3mm;
}
.bf-info-card {
  text-align: center;
  padding: 3mm 2mm 3.4mm;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(4, 120, 87, 0.18);
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.08);
}
.bf-info-card strong {
  display: block;
  font-size: 9pt;
  font-weight: 900;
  color: var(--bf-navy);
  margin-bottom: 1mm;
}
.bf-price {
  display: block;
  font-size: 15pt;
  font-weight: 900;
  color: #047857;
  line-height: 1.15;
  margin-bottom: 1mm;
}
.bf-price small {
  display: block;
  font-size: 6.8pt;
  font-weight: 700;
  color: #64748b;
  margin-top: .4mm;
}
.bf-info-card span:not(.bf-price) {
  font-size: 7pt;
  font-weight: 700;
  color: #64748b;
}

/* ── تذييل ── */
.bf-foot {
  flex-shrink: 0;
  text-align: center;
  padding: 4.5mm 10mm;
  background: linear-gradient(90deg, #059669, var(--bf-green), var(--bf-teal));
  color: #fff;
}
.bf-foot-lead {
  font-size: 9pt;
  font-weight: 800;
  opacity: .95;
  margin-bottom: 1mm;
}
.bf-foot-url {
  font-size: 15pt;
  font-weight: 900;
  direction: ltr;
  letter-spacing: .03em;
}

/* ── طباعة ── */
@page { size: A4 portrait; margin: 0; }

@media print {
  body.brochure-page { background: #fff; }
  .brochure-toolbar { display: none !important; }
  .brochure-wrap { margin: 0; }
  .brochure-sheet {
    box-shadow: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .brochure-sheet,
  .bf-main,
  .bf-main-bg,
  .bf-feat,
  .bf-intro-card,
  .bf-spotlight,
  .bf-feat-icon,
  .bf-info-card {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

@media screen and (max-width: 820px) {
  .brochure-wrap { width: 100%; height: auto; padding: 0 6px; }
  .brochure-sheet { height: auto; min-height: 100vh; }
  .bf-features-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .bf-info-grid { grid-template-columns: 1fr; }
  .bf-spotlight-pills { gap: 2mm; }
  .bf-spotlight-pills li { font-size: 8pt; }
}
