@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Noto+Kufi+Arabic:wght@600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --navy: #071428;
  --navy-2: #0b1b33;
  --navy-3: #12243f;
  --blue: #0088ff;
  --blue-2: #3aa3ff;
  --blue-soft: #e8f3ff;
  --blue-mid: #cfe6ff;
  --ink: #0f172a;
  --mute: #5b677a;
  --mute-2: #8a96a8;
  --line: #e6edf5;
  --paper: #f4f7fb;
  --white: #ffffff;
  --ok: #0f9d58;
  --warn: #c2410c;
  --font-display: 'Noto Kufi Arabic', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', sans-serif;
  --font-en: 'Plus Jakarta Sans', 'IBM Plex Sans Arabic', sans-serif;
  --r: 14px;
  --r-sm: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #0a1220;
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  font-size: 10.6pt;
  line-height: 1.5;
}

@page { size: A4; margin: 0; }

.page {
  width: 210mm;
  height: 297mm;
  background: var(--paper);
  position: relative;
  overflow: hidden;
  page-break-after: always;
  break-after: page;
  direction: rtl;
}

.page:last-child { page-break-after: auto; break-after: auto; }

.pad {
  position: relative;
  z-index: 1;
  padding: 18px 22px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--ink);
}

.h1 { font-size: 34px; }
.h2 { font-size: 22px; }
.h3 { font-size: 16px; font-family: var(--font-display); font-weight: 700; }

.eyebrow {
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.lede {
  font-size: 12px;
  color: var(--mute);
  line-height: 1.55;
  max-width: 58ch;
}

.tiny {
  font-size: 9px;
  color: var(--mute-2);
  font-weight: 600;
}

.en { font-family: var(--font-en); }

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-row img { height: 28px; width: 28px; border-radius: 7px; }
.brand-row .name {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--navy);
}
.brand-row .sub {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--mute-2);
  margin-top: 1px;
}

.page-num {
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 800;
  color: var(--mute-2);
  letter-spacing: 0.08em;
  background: var(--paper);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  direction: ltr;
  unicode-bidi: isolate;
}

.page-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.title-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
}

.title-block .accent {
  width: 36px;
  height: 3px;
  background: var(--blue);
  border-radius: 99px;
  margin: 9px 0 8px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 13px 14px;
}

.card h4 {
  font-family: var(--font-display);
  font-size: 13.5px;
  margin-bottom: 5px;
}

.card p {
  font-size: 11px;
  color: var(--mute);
  line-height: 1.5;
}

.card .n {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 6px;
}

.ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-en);
}

.stack { display: flex; flex-direction: column; gap: 9px; }

.row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.row .n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 800;
}

.row strong { display: block; font-size: 12px; margin-bottom: 2px; }
.row span { font-size: 11px; color: var(--mute); line-height: 1.45; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #075985;
  border: 1px solid #d7ebff;
}

.chip.ghost {
  background: var(--paper);
  color: var(--mute);
  border-color: var(--line);
}

.banner {
  background: var(--navy);
  color: #fff;
  border-radius: var(--r);
  padding: 14px 16px;
}

.banner h4 {
  font-family: var(--font-display);
  font-size: 15px;
  margin-bottom: 5px;
}

.banner p { font-size: 11.5px; color: rgba(255,255,255,0.72); line-height: 1.55; }

.banner.soft {
  background: var(--blue-soft);
  color: var(--ink);
  border: 1px solid var(--blue-mid);
}

.banner.soft p { color: var(--mute); }
.banner.soft h4 { color: var(--navy); }

.banner.warn {
  background: linear-gradient(135deg, #fff7ed, #fff);
  border: 1px solid #fed7aa;
  color: var(--ink);
}
.banner.warn h4 { color: var(--warn); }
.banner.warn p { color: #9a3412; }

.banner.ok {
  background: linear-gradient(135deg, #ecfdf5, #fff);
  border: 1px solid #a7f3d0;
}
.banner.ok h4 { color: #047857; }
.banner.ok p { color: #065f46; }

/* Cover */
.page.cover {
  background: var(--navy);
  color: #fff;
}

.page.cover .pad { gap: 0; }

.cover-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cover-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cover-brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.cover-brand .name {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.cover-brand .ar {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 2px;
}

.pill {
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
}

.cover-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 18px 0 10px;
}

.cover-hero .eyebrow { color: var(--blue-2); }

.cover-hero h1 {
  font-size: 38px;
  color: #fff;
  max-width: 13ch;
}

.cover-hero h1 em {
  font-style: normal;
  color: var(--blue-2);
}

.cover-hero .lede {
  color: rgba(255,255,255,0.68);
  font-size: 13px;
  max-width: 46ch;
}

.cover-glow {
  position: absolute;
  inset: auto -80px 80px auto;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(0,136,255,0.28), transparent 68%);
  pointer-events: none;
}

.cover-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent);
  pointer-events: none;
}

.price-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.price-strip .cell {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 13px 14px;
}

.price-strip .cell.featured {
  background: linear-gradient(165deg, rgba(0,136,255,0.28), rgba(255,255,255,0.05));
  border-color: rgba(0,136,255,0.55);
}

.price-strip label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: var(--blue-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 5px;
  font-family: var(--font-en);
}

.price-strip strong {
  font-family: var(--font-en);
  font-size: 20px;
  display: block;
  letter-spacing: -0.03em;
}

.price-strip .was {
  display: block;
  font-family: var(--font-en);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  text-decoration: line-through;
  margin-bottom: 2px;
  direction: ltr;
  unicode-bidi: isolate;
}

.price-strip small {
  font-size: 10.5px;
  color: rgba(255,255,255,0.62);
  display: block;
  margin-top: 4px;
}

.cover-foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 13px 16px;
  margin-top: 8px;
}

.cover-foot label {
  display: block;
  font-size: 9px;
  color: var(--blue-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: var(--font-en);
}

.cover-foot strong { font-size: 12.5px; font-weight: 600; }

/* Pricing cards */
.pkg {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  min-height: 168px;
}

.pkg.featured {
  border-color: rgba(0,136,255,0.45);
  background: linear-gradient(180deg, #f3f9ff, #fff);
  box-shadow: 0 10px 24px rgba(0, 80, 170, 0.08);
}

.pkg .tag {
  position: absolute;
  top: -10px;
  left: 12px;
  background: var(--blue);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-en);
  letter-spacing: 0.04em;
}

.pkg .tier {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.pkg h3 { font-size: 15px; }

.pkg .amt {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pkg .amt .now,
.price-strip strong,
.kpi .v {
  direction: ltr;
  unicode-bidi: isolate;
}

.pkg .amt .now {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pkg .amt .now small {
  font-size: 12px;
  font-weight: 600;
  margin-right: 4px;
  opacity: 0.55;
}

.pkg .amt .was {
  font-size: 11px;
  color: var(--mute-2);
  text-decoration: line-through;
}

.pkg .amt .save {
  font-size: 10.5px;
  color: var(--ok);
  font-weight: 700;
  margin-top: 2px;
}

.pkg ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.pkg li {
  font-size: 11px;
  color: var(--mute);
  display: flex;
  gap: 7px;
  line-height: 1.4;
}

.pkg li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 6px;
  flex-shrink: 0;
}

.mod {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 12px;
}

.mod .ico { margin-bottom: 0; flex-shrink: 0; }
.mod strong { display: block; font-size: 12.5px; margin-bottom: 2px; }
.mod span { font-size: 10.5px; color: var(--mute); line-height: 1.4; }

.stage-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.stage {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}

.stage .k {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 4px;
}

.stage p { font-size: 11px; font-weight: 700; }

.os-pills {
  display: flex;
  gap: 8px;
}

.os-pill {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.os-pill .mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 12px;
}

.os-pill strong { display: block; font-size: 13px; }
.os-pill span { font-size: 11px; color: var(--mute); }

.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-size: 11px;
}

.compare th, .compare td {
  padding: 9px 12px;
  text-align: right;
  border-bottom: 1px solid var(--line);
}

.compare th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 10.5px;
}

.compare td:first-child { font-weight: 600; }
.compare tr:last-child td { border-bottom: none; }

.sign-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sign-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  min-height: 148px;
}

.sign-box label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-family: var(--font-en);
}

.sign-box .line {
  border-bottom: 1px solid var(--line);
  margin-top: 38px;
  padding-bottom: 4px;
  font-size: 10px;
  color: var(--mute-2);
}

.kpi {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

.kpi .v {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.kpi .l { font-size: 11px; color: var(--mute); margin-top: 2px; }

@media screen {
  body {
    padding: 28px 0 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }
  .page {
    box-shadow: 0 24px 70px rgba(0,0,0,0.38);
    border-radius: 4px;
  }
}

@media print {
  html, body { background: #fff; padding: 0; }
  .page { box-shadow: none; border-radius: 0; }
}

html[lang="en"] {
  font-family: var(--font-en);
}
html[lang="en"] .page { direction: ltr; }
html[lang="en"] .display,
html[lang="en"] .h3,
html[lang="en"] .card h4,
html[lang="en"] .banner h4,
html[lang="en"] .pkg h3 {
  font-family: var(--font-en);
}
html[lang="en"] .cover-hero h1 { max-width: 18ch; font-size: 36px; }
html[lang="en"] .lede { max-width: 62ch; }
html[lang="en"] .compare th,
html[lang="en"] .compare td { text-align: left; }
html[lang="en"] .page-header,
html[lang="en"] .page-footer { direction: ltr; }
html[lang="en"] .pkg li::before { margin-top: 7px; }
