@font-face { font-family: "IBM Plex Sans"; src: url("/seo-assets/IBMPlexSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/seo-assets/IBMPlexSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/seo-assets/IBMPlexSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/seo-assets/IBMPlexSansArabic-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/seo-assets/IBMPlexSansArabic-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/seo-assets/IBMPlexSansArabic-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5d687a;
  --paper: #f7f8fc;
  --surface: #ffffff;
  --line: #d8deea;
  --blue: #0b57d0;
  --blue-deep: #073a8e;
  --teal: #087f73;
  --amber: #a86000;
  --soft-blue: #e9f0ff;
  --focus: #a86000;
  --selection: #cbdcff;
  --selection-ink: #0b285b;
  --scroll-track: #e7ebf3;
  --scroll-thumb: #64748b;
  --max: 1120px;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef3ff;
  --muted: #b5c0d1;
  --paper: #10151f;
  --surface: #17202e;
  --line: #344156;
  --blue: #8db5ff;
  --blue-deep: #b7ceff;
  --teal: #6bd5c7;
  --amber: #ffc16a;
  --soft-blue: #1b2a45;
  --focus: #ffc16a;
  --selection: #294f8d;
  --selection-ink: #ffffff;
  --scroll-track: #17202e;
  --scroll-thumb: #7f91aa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--scroll-thumb) var(--scroll-track); scrollbar-width: thin; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.62; }
a { color: var(--blue); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--blue-deep); }
button { font: inherit; }
::selection { background: var(--selection); color: var(--selection-ink); text-shadow: none; }
:where(a, button, summary, [tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--scroll-track); }
::-webkit-scrollbar-thumb { border: 3px solid var(--scroll-track); border-radius: 999px; background: var(--scroll-thumb); }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

.locale { display: none; }
:root[data-locale="en"] .locale-en,
:root[data-locale="ar"] .locale-ar { display: block; }
:root[data-locale="en"] .inline.locale-en,
:root[data-locale="ar"] .inline.locale-ar { display: inline; }
:root[data-locale="ar"] { font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif; }

.skip-link { position: absolute; inset-inline-start: .75rem; top: -3rem; z-index: 20; background: var(--blue); color: white; padding: .45rem .7rem; }
.skip-link:focus { top: .75rem; }
.bar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: var(--surface); }
.reading-progress { position: absolute; inset-inline-start: 0; bottom: -1px; width: 0; height: 2px; background: var(--teal); }
.bar-inner, main, .footer-inner { width: min(calc(100% - 2rem), var(--max)); margin: auto; }
.bar-inner { min-height: 76px; display: flex; align-items: center; gap: 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 29px; height: 29px; object-fit: contain; }
.brand small { display: block; color: var(--muted); font-size: .73rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.nav { display: flex; align-items: center; flex: 1; gap: .95rem; overflow-x: auto; }
.nav a { color: var(--muted); font-size: .93rem; text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.tools { display: flex; gap: .4rem; align-items: center; }
.tool { border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; min-height: 36px; padding: .35rem .6rem; }
.tool:hover { border-color: var(--blue); color: var(--blue); }
.tool[data-theme-toggle] { display: inline-grid; width: 38px; place-items: center; padding: 0; }
.tool-icon { display: block; width: 18px; height: 18px; }
.theme-icon--to-light { display: none; }
:root[data-theme="dark"] .theme-icon--to-dark { display: none; }
:root[data-theme="dark"] .theme-icon--to-light { display: block; }

main { padding: 3.8rem 0 4.5rem; }
h1, h2, h3 { line-height: 1.14; letter-spacing: -.025em; }
h1 { max-width: 20ch; margin: 0 0 1.1rem; font-size: clamp(2.15rem, 5vw, 4.55rem); }
h2 { margin: 2.7rem 0 .85rem; font-size: clamp(1.45rem, 3vw, 2.15rem); }
h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.lead { max-width: 72ch; color: var(--muted); font-size: 1.1rem; }
.rule { width: min(100%, 900px); margin: 2rem 0; border: 0; border-top: 2px solid var(--blue); }
.entry { max-width: 840px; }
.entry p { margin: .55rem 0; }
.entry ul { padding-inline-start: 1.2rem; }
.entry li { margin: .22rem 0; }
.product-shot { margin: 2.4rem 0 1rem; }
.product-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; }
.product-shot figcaption { margin-top: .55rem; color: var(--muted); font-size: .75rem; }
.module-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); margin-top: 2rem; }
.module { padding: 1.15rem 1rem 1.15rem 0; border-bottom: 1px solid var(--line); }
.module:nth-child(odd) { border-inline-end: 1px solid var(--line); padding-inline-end: 1.2rem; }
.module:nth-child(even) { padding-inline-start: 1.2rem; }
.module p, .note { color: var(--muted); margin: 0; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); margin-top: 2.3rem; }
.plan { padding: 1.2rem 1.15rem; border-bottom: 1px solid var(--line); }
.plan:nth-child(odd) { border-inline-end: 1px solid var(--line); }
.plan .price { color: var(--blue); font-size: 1.6rem; font-weight: 700; margin: .1rem 0 .5rem; }
.plan .badge { display: inline-block; color: var(--teal); font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.comparison { display: block; width: 100%; overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; min-width: 650px; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); padding: .7rem .8rem; text-align: start; }
th { background: var(--soft-blue); font-size: .86rem; }
.addons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.addon { padding: .9rem 1rem .9rem 0; border-bottom: 1px solid var(--line); }
.addon:nth-child(odd) { border-inline-end: 1px solid var(--line); padding-inline-end: 1rem; }
.addon:nth-child(even) { padding-inline-start: 1rem; }
.addon strong { color: var(--amber); }
details { border-top: 1px solid var(--line); padding: .8rem 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: .65rem 0 .15rem; }
.callout { border: 1px solid var(--line); background: var(--soft-blue); padding: 1rem 1.1rem; max-width: 800px; }
.callout strong { display: block; margin-bottom: .25rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .6rem 1rem; background: var(--blue); color: white; border: 1px solid var(--blue); border-radius: 8px; font-weight: 700; text-decoration: none; }
.button:hover { background: var(--blue-deep); color: white; }
.button.secondary { background: transparent; color: var(--blue); }
.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { padding: 2rem 0; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .45rem .9rem; }
.footer-nav a { font-size: .92rem; }
.fine { color: var(--muted); font-size: .87rem; }

@media (max-width: 720px) {
  .bar-inner { min-height: auto; padding: .8rem 0; flex-wrap: wrap; }
  .nav { order: 3; width: 100%; padding-top: .25rem; }
  main { padding: 2.4rem 0 3rem; }
  h1 { font-size: clamp(2rem, 11vw, 3.4rem); }
  .module-list, .plans, .addons, .footer-inner { grid-template-columns: 1fr; }
  .module:nth-child(odd), .plan:nth-child(odd), .addon:nth-child(odd) { border-inline-end: 0; padding-inline-end: 0; }
  .module:nth-child(even), .addon:nth-child(even) { padding-inline-start: 0; }
}

@media (forced-colors: active) {
  :where(a, button, summary, [tabindex]):focus-visible { outline-color: Highlight; }
}
