:root {
  --ink: #243472;
  --ink-soft: #4c5a8a;
  --line: #dce3ef;
  --bg: #f3f5f9;
  --card: #ffffff;
  --pro: #243472;
  --shadow: 0 18px 50px rgba(36, 52, 114, 0.08);
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(900px 420px at 12% 8%, rgba(190, 206, 240, 0.45), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", Poppins, sans-serif;
  line-height: 1.6;
}
body.lang-en { font-family: Poppins, "IBM Plex Sans Arabic", sans-serif; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -40px;
  background: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px 8px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  justify-self: start;
}
.brand-mark img { display: block; height: 40px; width: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name strong { font-size: 18px; }
.brand-name em { font-style: normal; font-size: 12px; letter-spacing: 0.08em; color: var(--ink-soft); font-family: Poppins, sans-serif; }
.brand-vos {
  font-family: Poppins, sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  border-inline-start: 1px solid var(--line);
  padding-inline-start: 8px;
}
.site-nav {
  display: flex;
  gap: 22px;
  justify-content: center;
}
.site-nav a { text-decoration: none; font-weight: 500; font-size: 15px; }
.site-nav a:hover { text-decoration: underline; }
.lang {
  justify-self: end;
  border: 0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 0 6px 18px rgba(36, 52, 114, 0.08);
  cursor: pointer;
  font-weight: 600;
}

.hero, .plans, .compare, .faq, .site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  padding-top: 36px;
  padding-bottom: 12px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3d6fe8;
  display: inline-block;
}
h1, h2 { font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.25; margin: 0 0 14px; }
h1 span { display: block; }
.lede { margin: 0; max-width: 38rem; color: var(--ink-soft); font-size: 17px; }
.checks { list-style: none; padding: 18px 0 0; margin: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.checks span:first-child { color: #2f6bdb; }

.hero-card {
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
  position: relative;
  z-index: 0;
}
.hero-card::before {
  content: "";
  position: absolute;
  top: -36px;
  inset-inline-end: -56px;
  width: 150px;
  height: 150px;
  background: #e4ecf8;
  border-radius: 50%;
  z-index: -1;
}
.hero-card-top { display: flex; justify-content: space-between; color: var(--ink-soft); font-size: 13px; font-family: Poppins, sans-serif; }
.dots::before { content: "•••"; letter-spacing: 2px; }
.hero-mark { display: grid; place-items: center; padding: 8px 0 4px; }
.hero-mark img { width: min(220px, 72%); height: auto; }
.hero-card h2 { margin: 8px 0 4px; font-size: 26px; text-align: center; }
.hero-card p { margin: 0; text-align: center; color: var(--ink-soft); }
.pills { display: flex; justify-content: center; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.pills span {
  background: #f4f7fb;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--ink-soft);
}

.branch-bar {
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.branch-copy h2 { margin: 0; font-size: 18px; }
.branch-copy p { margin: 2px 0 0; color: var(--ink-soft); font-size: 13px; }
.stepper {
  display: inline-flex;
  align-items: center;
  background: #f4f7fb;
  border-radius: 999px;
  padding: 4px;
}
.stepper button, .presets button, .choose, .faq-item button, dialog button {
  cursor: pointer;
}
.stepper button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 20px;
}
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stepper input {
  width: 52px;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: 18px;
}
.presets { display: flex; gap: 8px; }
.presets button {
  border: 0;
  background: #f4f7fb;
  border-radius: 999px;
  padding: 8px 12px;
  font-family: Poppins, sans-serif;
  font-weight: 600;
}
.presets button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.plan-meta {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 13px;
  margin: 18px 4px 10px;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 18px;
  box-shadow: 0 10px 30px rgba(36, 52, 114, 0.04);
  display: flex;
  flex-direction: column;
}
.plan-pro {
  background: var(--pro);
  color: #fff;
  border-color: var(--pro);
  transform: translateY(-8px);
}
.plan-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef3fb;
  color: var(--ink);
}
.plan-pro .plan-icon { background: rgba(255, 255, 255, 0.12); color: #fff; }
.plan h3 { margin: 12px 0 6px; font-family: Poppins, sans-serif; font-size: 28px; }
.plan [data-plan-blurb] { margin: 0 0 16px; min-height: 3.2em; color: var(--ink-soft); }
.plan-pro [data-plan-blurb], .plan-pro .price-caption, .plan-pro .later, .plan-pro .per-extra, .plan-pro .includes { color: rgba(255, 255, 255, 0.82); }
.price { margin: 0; display: flex; align-items: baseline; gap: 6px; font-family: Poppins, sans-serif; }
.price span { font-size: 52px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price small { font-weight: 600; font-size: 14px; }
.price em { font-style: normal; font-size: 14px; opacity: 0.8; }
.price-caption, .later, .per-extra, .includes { margin: 6px 0 0; font-size: 13px; color: var(--ink-soft); }
.later { font-weight: 600; }
.split { margin: 14px 0 0; display: grid; gap: 8px; }
.split div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.split dt { color: inherit; opacity: 0.75; }
.split dd { margin: 0; font-family: Poppins, sans-serif; font-weight: 600; }
.plan-pro .split { border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 12px; }
.plan:not(.plan-pro) .split { border-top: 1px solid var(--line); padding-top: 12px; }
.choose {
  margin-top: 16px;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.plan-pro .choose { background: #fff; color: var(--ink); }
.includes { margin-top: 16px; font-weight: 600; }
.plan ul { list-style: none; padding: 8px 0 0; margin: 0; display: grid; gap: 8px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.plan li.off { opacity: 0.72; }
.fineprint { color: var(--ink-soft); font-size: 13px; margin: 18px 0 8px; }
.compare-link {
  display: inline-flex;
  gap: 6px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 28px;
}

.compare, .faq { padding-top: 28px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 8px; line-height: 1.3; }
.section-head p:last-child { margin: 0; color: var(--ink-soft); max-width: 40rem; }
.diff {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 8px;
  font-weight: 600;
}
.swipe { margin: 0 0 10px; color: var(--ink-soft); font-size: 13px; }
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--line); }
thead th:first-child, tbody th { text-align: start; font-weight: 600; }
thead th span { display: block; font-weight: 500; font-size: 12px; color: var(--ink-soft); font-family: Poppins, sans-serif; }
tr.group th {
  text-align: start;
  background: #f7f9fc;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 13px;
}
.mark.yes { background: #e7f6ee; color: #0f7a45; }
.mark.no { background: #f3f5f8; color: #8b93a7; }
.soon { color: var(--ink-soft); font-size: 13px; }
.table-note { color: var(--ink-soft); font-size: 13px; }

.faq-list { display: grid; gap: 10px; margin: 18px 0 36px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq-item button {
  width: 100%;
  text-align: start;
  background: transparent;
  border: 0;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}
.faq-item i {
  width: 10px;
  height: 10px;
  border-inline-end: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  margin-top: 4px;
  flex: none;
}
.faq-item button[aria-expanded="true"] i { transform: rotate(-135deg); margin-top: 8px; }
.faq-a { padding: 0 16px 14px; color: var(--ink-soft); }

.site-footer {
  padding-bottom: 40px;
  color: var(--ink-soft);
}
.site-footer .brand { margin-bottom: 8px; }
.site-footer .brand-mark img { height: 34px; }
.site-footer p { margin: 0; }
.made { margin-top: 4px !important; }

dialog {
  border: 0;
  padding: 0;
  border-radius: 20px;
  width: min(460px, calc(100% - 32px));
  box-shadow: 0 24px 80px rgba(16, 24, 64, 0.28);
}
dialog::backdrop { background: rgba(20, 28, 58, 0.45); }
dialog form { padding: 18px 18px 16px; }
dialog header, dialog footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
dialog h2 { margin: 0; font-size: 18px; }
.icon-close {
  border: 0;
  background: #f3f5f9;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
}
.sheet-kicker { margin: 12px 0 0; color: var(--ink-soft); font-size: 13px; }
#summary-sheet h3 { margin: 4px 0; font-family: Poppins, sans-serif; font-size: 32px; }
.sheet-branches { margin: 0 0 12px; color: var(--ink-soft); }
#summary-sheet dl { margin: 0; display: grid; gap: 8px; }
#summary-sheet dl div { display: flex; justify-content: space-between; gap: 12px; }
#summary-sheet dd { margin: 0; font-family: Poppins, sans-serif; font-weight: 600; }
#summary-sheet .total { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 700; }
.sheet-note { color: var(--ink-soft); font-size: 13px; }
dialog footer { margin-top: 8px; }
dialog footer button {
  flex: 1;
  border-radius: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
}
#print-summary { background: var(--ink); color: #fff; border-color: var(--ink); }

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand lang" "nav nav";
  }
  .brand { grid-area: brand; }
  .lang { grid-area: lang; }
  .site-nav {
    grid-area: nav;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px 18px;
  }
  .hero, .plan-grid { grid-template-columns: 1fr; }
  .plan-pro { transform: none; }
  .hero-card { order: -1; }
  .hero-card::before { display: none; }
  .branch-bar { flex-direction: column; align-items: stretch; }
  .presets { flex-wrap: wrap; }
  .stepper { align-self: flex-start; }
}
@media print {
  body * { visibility: hidden; }
  #summary-dialog, #summary-dialog * { visibility: visible; }
  #summary-dialog {
    position: absolute;
    inset: 0;
    width: auto;
    box-shadow: none;
  }
  dialog footer, .icon-close { display: none !important; }
}
