/* ==========================================================================
   IA Algérie — site stylesheet
   Palette:  text #202124 · primary #15697A · light #E1F3F6 · background #fff
   Fonts:    Outfit for Latin (fr/en) · Noto Kufi Arabic for Arabic
   Arabic is the ROOT language; layout uses logical properties
   (inline-start/end) so the same rules serve both directions.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --ink: #202124;
  --primary: #15697a;
  --tint: #e1f3f6;

  --primary-deep: #0f4f5c;
  --primary-darker: #0a3a44;
  --primary-soft: rgba(21, 105, 122, 0.09);
  --primary-line: rgba(21, 105, 122, 0.22);
  --tint-2: #f3fafb;
  --tint-3: #cfe9ee;

  --canvas: #ffffff;
  --surface: #f8f9fa;
  --surface-2: #f1f3f5;
  --line: #e4e7ea;
  --line-strong: #d3d8dd;
  --muted: #5f6368;
  --muted-2: #80868b;

  --ok: #0f7b4f;
  --ok-tint: #e5f5ec;
  --warn: #9a6700;
  --warn-tint: #fff8e1;

  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-ar: "Noto Kufi Arabic", "Outfit", "Segoe UI", Tahoma, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-full: 999px;

  --shadow-xs: 0 1px 2px rgba(32, 33, 36, 0.06);
  --shadow-sm: 0 1px 3px rgba(32, 33, 36, 0.07), 0 1px 2px rgba(32, 33, 36, 0.04);
  --shadow: 0 4px 14px rgba(32, 33, 36, 0.07);
  --shadow-md: 0 10px 30px rgba(32, 33, 36, 0.09);
  --shadow-lg: 0 24px 60px rgba(15, 79, 92, 0.14);

  --ring: 0 0 0 3px rgba(21, 105, 122, 0.28);
  --container: 1160px;
  --nav-h: 68px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--font);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { font-family: var(--font-ar); line-height: 1.9; font-size: 0.9375rem; }
img, svg { max-width: 100%; display: block; height: auto; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
ul, ol { padding-inline-start: 1.15em; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--tint-3); }

h1, h2, h3, h4 { line-height: 1.18; font-weight: 700; letter-spacing: -0.02em; }
/* Noto Kufi Arabic is wider and taller than Outfit: relax the tracking and
   give headings and controls room to breathe. */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; line-height: 1.5; }
[dir="rtl"] .btn, [dir="rtl"] .nav__link, [dir="rtl"] .chip, [dir="rtl"] .badge { line-height: 1.7; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; line-height: 1.4; }
h1 { font-size: clamp(2rem, 4.4vw, 3.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }
p { color: var(--muted); }
strong { color: var(--ink); font-weight: 650; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.narrow { max-width: 780px; }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--tint { background: var(--tint-2); }
.section--tint-strong { background: var(--tint); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.skip-link { position: absolute; inset-inline-start: -9999px; top: 0; z-index: 200; background: var(--primary); color: #fff; padding: 0.75rem 1rem; }
.skip-link:focus { inset-inline-start: 0; }
.mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.5rem; } .mt-6 { margin-top: 2rem; } .mb-4 { margin-bottom: 1rem; }
.divider { height: 1px; background: var(--line); border: 0; margin-block: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { min-height: var(--nav-h); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand__mark { height: 30px; width: auto; max-width: 80px; object-fit: contain; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-size: 1.0625rem; }
.brand__sub { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
[dir="rtl"] .brand__sub { letter-spacing: 0; }

.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 0.25rem; }
.nav__link { padding: 0.5rem 0.75rem; border-radius: var(--r-sm); font-weight: 500; color: var(--muted); white-space: nowrap; }
.nav__link:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--primary); background: var(--primary-soft); font-weight: 600; }
.nav__actions { display: flex; align-items: center; gap: 0.5rem; margin-inline-start: 0.75rem; }

.lang { position: relative; }
.lang__button {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: none; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 0.45rem 0.75rem; font-size: 0.8125rem; font-weight: 600; color: var(--muted); cursor: pointer;
}
.lang__button:hover { border-color: var(--primary-line); color: var(--primary); }
.lang__button svg { width: 15px; height: 15px; }
.lang__menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 170px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-md); padding: 0.5rem; display: none; z-index: 120;
}
.lang[data-open="true"] .lang__menu { display: block; }
.lang__item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5rem 0.75rem; border-radius: var(--r-sm); color: var(--ink); }
.lang__item:hover { background: var(--surface-2); text-decoration: none; }
.lang__item[aria-current="true"] { color: var(--primary); font-weight: 650; background: var(--primary-soft); }
/* The language menu mixes scripts on every page, so each label carries its own
   lang attribute: "العربية" must render in Noto Kufi Arabic even on the pages
   whose body font is Outfit (which has no Arabic glyphs). */
.lang__item > span[lang="ar"] { font-family: var(--font-ar); line-height: 1.9; }
.lang__code { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; color: var(--muted-2); text-transform: uppercase; }

.nav-toggle {
  display: none; margin-inline-start: auto;
  background: none; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 0.5rem; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.15rem; border-radius: var(--r-sm); border: 1px solid transparent;
  font-size: 0.9375rem; font-weight: 600; line-height: 1.2; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-xs); }
.btn--primary:hover { background: var(--primary-deep); color: #fff; }
.btn--ghost { background: #fff; color: var(--primary); border-color: var(--primary-line); }
.btn--ghost:hover { background: var(--primary-soft); color: var(--primary-deep); }
.btn--quiet { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.btn--quiet:hover { background: var(--line); color: var(--ink); }
.btn--onDark { background: #fff; color: var(--primary-deep); }
.btn--onDark:hover { background: var(--tint); color: var(--primary-darker); }
.btn--outlineLight { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn--outlineLight:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn--lg { padding: 0.85rem 1.5rem; font-size: 1rem; }
.btn--sm { padding: 0.45rem 0.8rem; font-size: 0.8125rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.btn-row--center { justify-content: center; }

/* ---------- headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-soft); border-radius: var(--r-full);
  padding: 0.35rem 0.75rem; margin-bottom: 1rem;
}
.eyebrow svg { width: 15px; height: 15px; }
[dir="rtl"] .eyebrow { letter-spacing: 0; }
.eyebrow--plain { background: none; padding: 0; }
.lede { font-size: 1.125rem; color: var(--muted); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.35em;
  font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.55rem;
  border-radius: var(--r-full); background: var(--primary-soft);
  color: var(--primary-deep); border: 1px solid var(--primary-line);
}
.badge--ok { background: var(--ok-tint); color: var(--ok); border-color: rgba(15,123,79,.25); }
.badge--muted { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.badge--warn { background: var(--warn-tint); color: var(--warn); border-color: rgba(154,103,0,.25); }
.pill {
  display: inline-flex; align-items: center; font-size: 0.8125rem; font-weight: 600;
  padding: 0.3rem 0.7rem; border-radius: var(--r-full);
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
}
.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-xs); }
.card--flat { box-shadow: none; }
.card--tint { background: var(--tint-2); border-color: var(--tint-3); }
.card--hover { transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.card--hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary-line); }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.9375rem; }
.card__icon {
  width: 40px; height: 40px; border-radius: var(--r); display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 1rem;
}
.card__icon svg { width: 21px; height: 21px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--tint) 0%, var(--tint-2) 62%, #fff 100%); }
.hero::after {
  content: ""; position: absolute; inset-inline-end: -12%; top: -22%; width: 46rem; height: 46rem;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(21,105,122,.14) 0%, rgba(21,105,122,0) 68%);
}
.hero__inner { position: relative; z-index: 1; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.hero__h1-accent { color: var(--primary); }
.hero .lede { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); margin-bottom: 1.5rem; }
.hero__note { font-size: 0.8125rem; color: var(--muted-2); margin-top: 0.75rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.5rem; list-style: none; padding: 0; }
.hero__trust li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--muted); font-weight: 500; }
.hero__trust svg { width: 15px; height: 15px; color: var(--primary); flex: none; }

/* ---------- terminal ---------- */
.terminal { background: var(--ink); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.terminal__bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.08); }
.terminal__dots { display: flex; gap: 6px; }
.terminal__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.2); display: block; }
.terminal__title { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,.6); letter-spacing: 0.04em; }
.terminal__body {
  padding: 1rem 1.5rem 1.5rem; font-family: var(--font-mono); font-size: 0.8125rem;
  line-height: 1.75; color: #e8eaed; overflow-x: auto; direction: ltr; text-align: start;
}
.terminal__body pre { margin: 0; white-space: pre; }
.tok-c { color: #7f8c9b; } .tok-k { color: #7fd1e0; } .tok-s { color: #a5d6a7; }
.terminal__reply { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px dashed rgba(255,255,255,.14); display: flex; gap: 0.75rem; }
.terminal__reply svg { width: 18px; height: 18px; color: #7fd1e0; flex: none; margin-top: 2px; }
.terminal__reply p { color: #e8eaed; font-family: var(--font); font-size: 0.8125rem; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.stat__v { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 750; letter-spacing: -0.03em; color: var(--primary); line-height: 1.1; }
.stat__l { font-size: 0.8125rem; color: var(--muted); margin-top: 0.25rem; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 620px; }
table.data th, table.data td { padding: 0.75rem 1rem; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data thead th {
  background: var(--surface); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
[dir="rtl"] table.data thead th { letter-spacing: 0; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--tint-2); }
table.data .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data .price { font-weight: 700; color: var(--ink); }
table.data .price small { display: block; font-weight: 500; font-size: 0.75rem; color: var(--muted-2); }
.mono { font-family: var(--font-mono); font-size: 0.82em; direction: ltr; display: inline-block; }

/* ---------- compare ---------- */
.compare { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.compare__col { padding: 1.5rem; }
.compare__col--bad { background: var(--surface); }
.compare__col--good { background: var(--tint-2); }
.compare__head { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 1rem; }
.compare__col--bad .compare__head { color: var(--muted-2); }
.compare__col--good .compare__head { color: var(--primary); }
.compare__list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.compare__list li { display: flex; gap: 0.75rem; }
.compare__list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.compare__col--bad .compare__list svg { color: var(--muted-2); }
.compare__col--good .compare__list svg { color: var(--primary); }
.compare__col--bad .compare__list li { color: var(--muted); }

/* ---------- steps ---------- */
.steps { display: grid; gap: 1.5rem; }
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; }
.step__n {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 0.9375rem; flex: none;
}
.step h3 { font-size: 1.125rem; margin-bottom: 0.25rem; }
.step h4 { margin-bottom: 0.25rem; }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.plan { position: relative; display: flex; flex-direction: column; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; }
.plan--highlight { border-color: var(--primary); box-shadow: var(--shadow-md); }
.plan--highlight::before {
  content: attr(data-popular); position: absolute; top: -12px; inset-inline-start: 1.5rem;
  background: var(--primary); color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 0.2rem 0.6rem; border-radius: var(--r-full);
}
.plan__name { font-size: 1.125rem; font-weight: 700; }
.plan__desc { font-size: 0.8125rem; color: var(--muted); min-height: 2.4em; }
.plan__price { display: flex; align-items: baseline; gap: 0.3rem; flex-wrap: wrap; }
.plan__amount { font-size: 1.85rem; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan__unit { font-size: 0.8125rem; color: var(--muted); }
.plan__bonus { font-size: 0.8125rem; font-weight: 650; color: var(--ok); }
.plan__meta { font-size: 0.8125rem; color: var(--muted); display: grid; gap: 0.25rem; margin: 0; }
.plan__meta div { display: flex; justify-content: space-between; gap: 0.75rem; }
.plan__meta dt { color: var(--muted-2); }
.plan__meta dd { margin: 0; }
.plan__meta b { color: var(--ink); font-weight: 650; }
.plan__feats { list-style: none; padding: 0; display: grid; gap: 0.5rem; font-size: 0.8125rem; }
.plan__feats li { display: flex; gap: 0.5rem; align-items: flex-start; }
.plan__feats svg { width: 16px; height: 16px; color: var(--primary); flex: none; margin-top: 3px; }
.plan__feats li.is-off { color: var(--muted-2); }
.plan__feats li.is-off svg { color: var(--muted-2); }
.plan__cta { margin-top: auto; }

/* ---------- filters / toolbar ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between;
  padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-full);
  padding: 0.35rem 0.8rem; font-size: 0.8125rem; font-weight: 600; color: var(--muted); cursor: pointer;
}
.chip:hover { border-color: var(--primary-line); color: var(--primary); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip__count { opacity: .65; font-weight: 500; }
.field { display: flex; align-items: center; gap: 0.5rem; }
.field label { font-size: 0.8125rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.input, .select { background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 0.45rem 0.7rem; }
.input:focus, .select:focus { border-color: var(--primary); outline: none; box-shadow: var(--ring); }
.search { position: relative; flex: 1 1 220px; max-width: 320px; }
.search .input { width: 100%; padding-inline-start: 2.2rem; }
.search svg { position: absolute; inset-inline-start: 0.7rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted-2); pointer-events: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.75rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.5rem; }
.faq details[open] { border-color: var(--primary-line); box-shadow: var(--shadow-xs); }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1rem; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--primary); line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 0.75rem; }

/* ---------- callout ---------- */
.callout { display: flex; gap: 0.75rem; padding: 1rem 1.5rem; border-radius: var(--r); background: var(--tint-2); border: 1px solid var(--tint-3); border-inline-start: 4px solid var(--primary); }
.callout svg { width: 19px; height: 19px; color: var(--primary); flex: none; margin-top: 3px; }
.callout--warn { background: var(--warn-tint); border-color: rgba(154,103,0,.2); border-inline-start-color: var(--warn); }
.callout--warn svg { color: var(--warn); }
.warn-flag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--warn); }
.note { font-size: 0.8125rem; color: var(--muted-2); }

/* ---------- code ---------- */
.code { background: var(--ink); border-radius: var(--r); overflow: hidden; }
.code__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0.75rem 0.5rem 1rem; background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.08); }
.code__label { font-size: 0.75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.55); direction: ltr; }
.code pre { margin: 0; padding: 1rem 1.5rem; overflow-x: auto; font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.7; color: #e8eaed; direction: ltr; text-align: start; }
.code pre code { font-family: inherit; }
.code + .code { margin-top: 1rem; }
.code__bar { display: flex; gap: 0.5rem; align-items: center; padding: 0.5rem 1rem; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.code-stack .code { border-radius: 0 0 var(--r) var(--r); }
code:not([class]) { font-family: var(--font-mono); font-size: 0.86em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 0.08em 0.35em; color: var(--primary-deep); direction: ltr; display: inline-block; }

/* ---------- docs layout ---------- */
.docs { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.docs__toc { position: sticky; top: calc(var(--nav-h) + 24px); font-size: 0.8125rem; }
.docs__toc h2 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); margin-bottom: 0.75rem; }
[dir="rtl"] .docs__toc h2 { letter-spacing: 0; }
.docs__toc ol { list-style: none; padding: 0; display: grid; gap: 2px; }
.docs__toc a { display: block; padding: 0.28rem 0.6rem; border-radius: var(--r-sm); color: var(--muted); border-inline-start: 2px solid transparent; }
.docs__toc a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.docs__body { min-width: 0; }
.docs__section { padding-block: 2rem; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 20px); }
.docs__section:last-child { border-bottom: 0; }
.docs__section h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.docs__section > p { margin-bottom: 1rem; }
.docs__section h3 { font-size: 1.125rem; margin: 1.5rem 0 0.5rem; }
.docs__body ul, .docs__body ol { color: var(--muted); display: grid; gap: 0.5rem; margin-block: 0.75rem; }
.docs__body li::marker { color: var(--primary); }

/* ---------- prose ---------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: 1.375rem; margin: 2rem 0 0.5rem; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 0.75rem; }
.prose ul, .prose ol { margin-block: 0.75rem; display: grid; gap: 0.5rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- blog ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); gap: 1.5rem; }
.post { display: flex; flex-direction: column; gap: 0.75rem; padding: 0; overflow: hidden; }
.post__thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--tint) 0%, var(--tint-3) 100%); display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.post__thumb svg { width: 52px; height: 52px; color: var(--primary); }
.post__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.post__meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; color: var(--muted-2); font-weight: 600; flex-wrap: wrap; }
.post h3 { font-size: 1.125rem; }
.post h3 a { color: var(--ink); }
.post h3 a:hover { color: var(--primary); text-decoration: none; }
.post__more { margin-top: auto; font-weight: 650; font-size: 0.8125rem; }
.article__head { max-width: 760px; }
.article__body { max-width: 74ch; }
.article__body p { font-size: 1rem; line-height: 1.8; }
.article__body p + p { margin-top: 1rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: clamp(2rem, 5vw, 3.5rem); }
.cta-band::after { content: ""; position: absolute; inset-inline-end: -8rem; bottom: -10rem; width: 30rem; height: 30rem; border-radius: 50%; background: radial-gradient(circle, rgba(21,105,122,.55) 0%, rgba(21,105,122,0) 70%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,.76); max-width: 60ch; }
.cta-band .btn-row { margin-top: 1.5rem; }

/* ---------- meter ---------- */
.meter { max-width: 420px; }
.meter__bar { height: 8px; border-radius: var(--r-full); background: rgba(255,255,255,.16); overflow: hidden; }
.meter__fill { height: 100%; width: 37%; background: linear-gradient(90deg, #7fd1e0, #e1f3f6); border-radius: var(--r-full); }
.meter__label { display: flex; justify-content: space-between; font-size: 0.8125rem; color: rgba(255,255,255,.8); margin-top: 0.5rem; }
.meter--light .meter__bar { background: var(--tint-3); }
.meter--light .meter__fill { background: linear-gradient(90deg, var(--primary), #2f95a8); }
.meter--light .meter__label { color: var(--muted); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.contact-item { display: flex; gap: 0.75rem; align-items: flex-start; }
.contact-item svg { width: 19px; height: 19px; color: var(--primary); flex: none; margin-top: 3px; }
.contact-item dt { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); }
[dir="rtl"] .contact-item dt { letter-spacing: 0; }
.contact-item dd { margin: 0.25rem 0 0; font-weight: 600; }

/* ---------- breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.8125rem; color: var(--muted-2); padding-block: 1rem; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding-block: 4rem 1.5rem; margin-top: 4rem; }
.site-footer h2 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: #fff; margin-bottom: 0.75rem; }
[dir="rtl"] .site-footer h2 { letter-spacing: 0; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.footer__brand .brand { color: #fff; margin-bottom: 1rem; }
.footer__brand .brand__sub { color: #7fd1e0; }
.footer__brand p { font-size: 0.8125rem; color: rgba(255,255,255,.62); max-width: 34ch; }
.footer__list { list-style: none; padding: 0; display: grid; gap: 0.5rem; font-size: 0.8125rem; }
.footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; font-size: 0.75rem; color: rgba(255,255,255,.55); }
.footer__bottom p { color: inherit; font-size: inherit; }
.footer__disclaimer { max-width: 68ch; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    padding: 1rem 1.5rem 1.5rem;
  }
  .site-header[data-open="true"] .nav { display: flex; }
  .nav__link { padding: 0.75rem 0.5rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav__actions { margin: 1rem 0 0; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero::after { display: none; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .docs { grid-template-columns: minmax(0, 1fr); }
  .docs__toc { position: static; border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; background: var(--surface); }
  .compare { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --nav-h: 62px; }
  .container { padding-inline: 1rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search { max-width: none; }
  .footer__bottom { flex-direction: column; }
}
@media print {
  .site-header, .site-footer, .btn, .cta-band { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
