/* ITSMOne public site — one stylesheet for every public page (2.14.0).
 *
 * Brand colours come from the logo: deep blue #0040A0, mid blue #0080C0,
 * teal #22C5C5. Type: Tajawal (Arabic), Inter (English).
 * Layout uses logical properties throughout so Arabic (RTL) and English (LTR)
 * share every rule.
 */

/* ───────────────────────── Tokens ───────────────────────── */
:root {
  --brand: #0040A0;
  --brand-hover: #003080;
  --brand-ink: #00347F;
  --brand-50: #EEF3FB;
  --brand-100: #DCE6F6;
  --mid: #0080C0;
  --teal: #22C5C5;
  --teal-ink: #0B7F86;          /* teal text that passes contrast on white */
  --teal-50: #E8F8F8;

  --ink: #0A1A33;               /* headings, body text */
  --ink-2: #2E3F59;             /* secondary text */
  --muted: #5A6A82;             /* captions, meta */
  --line: #E3E8F0;              /* hairlines */
  --line-2: #CBD5E3;            /* control borders */
  --paper: #F5F7FA;             /* alternate section ground */
  --white: #FFFFFF;

  --navy: #071A38;              /* dark bands, footer */
  --navy-2: #0D2550;
  --navy-line: rgba(255, 255, 255, .12);
  --on-navy: #E7EEF8;
  --on-navy-2: #A9B8CF;

  --ok: #0E8A5F;
  --warn: #B76E00;
  --bad: #C42B2B;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-shot: 0 1px 2px rgba(10, 26, 51, .06), 0 24px 48px -24px rgba(10, 26, 51, .28);
  --shadow-pop: 0 12px 32px -12px rgba(10, 26, 51, .25);

  --wrap: 1200px;
  --gutter: 24px;
  --header-h: 68px;

  --font-en: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ar: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  --font: var(--font-en);
}
html[lang="ar"] { --font: var(--font-ar); }

/* ───────────────────────── Base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="ar"] body { font-size: 18px; line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
/* Links inside running text are underlined, not told apart by colour alone (a11y). */
main p a:not(.btn), main li a:not(.btn), .hero-note a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid rgba(0, 64, 160, .45); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-100); }

h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; text-wrap: balance; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -0.022em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

/* One language at a time: every bilingual pair carries data-lang on each half. */
html[data-lang="ar"] body [data-lang="en"],
html[data-lang="en"] body [data-lang="ar"] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }
.num { font-variant-numeric: tabular-nums; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ───────────────────────── Type helpers ───────────────────────── */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand);
}
html[lang="ar"] .kicker { font-size: 15px; letter-spacing: 0; text-transform: none; }
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--teal); border-radius: 2px; }
.on-navy .kicker { color: var(--teal); }

.h-display { font-size: clamp(36px, 5.2vw, 58px); line-height: 1.08; }
html[lang="ar"] .h-display { font-size: clamp(34px, 4.8vw, 54px); line-height: 1.3; }
.h-section { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; }
html[lang="ar"] .h-section { line-height: 1.4; }
.h-block { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; }
html[lang="ar"] .h-block { line-height: 1.45; }
.lead { font-size: 19px; line-height: 1.65; color: var(--ink-2); max-width: 62ch; }
html[lang="ar"] .lead { font-size: 20px; line-height: 1.85; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
html[lang="ar"] .small { font-size: 15px; }

.sec-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 48px; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
html[lang="ar"] .btn { font-size: 16px; font-weight: 700; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
html[lang="ar"] .btn-lg { font-size: 17px; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-line { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }
.btn-white { background: #fff; color: var(--brand-ink); }
.btn-white:hover { background: var(--brand-50); color: var(--brand-ink); }
.btn-navy-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-navy-line:hover { border-color: #fff; color: #fff; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn .arrow { font-size: 1.05em; }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link-arrow::after { content: "→"; transition: transform .15s; }
[dir="rtl"] .link-arrow::after { content: "←"; }
.link-arrow:hover::after { transform: translateX(3px); }
[dir="rtl"] .link-arrow:hover::after { transform: translateX(-3px); }

/* ───────────────────────── Header ───────────────────────── */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .bar { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand-logo { display: inline-flex; align-items: center; flex: none; }
.brand-logo img { height: 30px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav > a, .nav-drop > button {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px; border-radius: 6px;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--ink-2);
  background: none; border: 0; cursor: pointer;
}
html[lang="ar"] .main-nav > a, html[lang="ar"] .nav-drop > button { font-size: 16px; font-weight: 600; }
.main-nav > a:hover, .nav-drop > button:hover, .nav-drop.open > button { color: var(--ink); background: var(--paper); }
.main-nav > a[aria-current="page"] { color: var(--brand); }
.nav-drop { position: relative; }
.nav-drop > button .chev { font-size: 11px; transition: transform .15s; }
.nav-drop.open > button .chev { transform: rotate(180deg); }
.nav-panel {
  position: absolute; top: calc(100% + 8px); inset-inline-start: -12px;
  width: min(720px, calc(100vw - 48px));
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop);
  padding: 20px; display: none;
}
.nav-drop.open .nav-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.nav-panel a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; color: var(--ink); }
.nav-panel a:hover { background: var(--paper); }
.nav-panel a b { font-size: 15px; font-weight: 600; }
html[lang="ar"] .nav-panel a b { font-size: 16px; font-weight: 700; }
.nav-panel a span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
html[lang="ar"] .nav-panel a span { font-size: 14.5px; line-height: 1.6; }
.nav-panel .panel-foot { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 8px; padding: 12px 12px 0; font-size: 14px; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.lang-switch { font-weight: 600; }
html[lang="en"] .lang-switch span { font-family: var(--font-ar); font-size: 16px; }
html[lang="ar"] .lang-switch span { font-family: var(--font-en); font-size: 14px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 150; background: #fff;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 24px);
  overflow-y: auto; display: none;
}
.mobile-menu.open { display: block; }
.mobile-menu .mm-top { display: flex; align-items: center; justify-content: space-between; height: 48px; margin-bottom: 12px; }
.mobile-menu .mm-group { border-top: 1px solid var(--line); padding: 14px 0; display: grid; gap: 2px; }
.mobile-menu .mm-label { font-size: 13px; font-weight: 700; color: var(--muted); padding: 4px 0 6px; }
.mobile-menu a { display: block; padding: 9px 0; color: var(--ink); font-weight: 600; }
.mobile-menu .mm-cta { display: grid; gap: 10px; margin-top: 16px; }
body.menu-open { overflow: hidden; }

/* ───────────────────────── Sections ───────────────────────── */
.section { padding-block: 96px; }
.section.tight { padding-block: 64px; }
.section.paper { background: var(--paper); }
.section.navy, .on-navy { background: var(--navy); color: var(--on-navy); }
.on-navy h1, .on-navy h2, .on-navy h3 { color: #fff; }
.on-navy .lead, .on-navy .muted { color: var(--on-navy-2); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ───────────────────────── Hero ───────────────────────── */
.hero { padding-block: 72px 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 22px; padding-bottom: 72px; }
.hero-copy .lead { max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-note { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }
html[lang="ar"] .hero-note { font-size: 15px; }
.hero-note > span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note > span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.hero-shot { position: relative; margin-inline-end: calc(-1 * max(var(--gutter), (100vw - var(--wrap)) / 2 + var(--gutter))); }
.hero-shot .shot { border-start-end-radius: 0; border-end-end-radius: 0; border-inline-end: 0; }

/* Home: title and copy side by side, the product full width under them. */
.hero-wide { padding-block: 64px 0; overflow: visible; }
.hero-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; }
.hero-title { display: grid; gap: 20px; }
.hero-wide .h-display { font-size: clamp(38px, 5vw, 64px); }
html[lang="ar"] .hero-wide .h-display { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.28; }
.hero-wide .hero-copy { padding-bottom: 6px; gap: 20px; }
.hero-wide .lead { font-size: 18px; }
html[lang="ar"] .hero-wide .lead { font-size: 19px; }
.hero-frame { position: relative; margin-top: 56px; padding-bottom: 0; }
.hero-frame::before {
  content: ""; position: absolute; z-index: -1; left: 50%; transform: translateX(-50%); width: 100vw;
  top: 38%; bottom: 0; background: var(--paper); border-top: 1px solid var(--line);
}
.hero-frame .shot { border-radius: 14px 14px 0 0; border-bottom: 0; box-shadow: 0 -1px 0 var(--line), 0 30px 80px -30px rgba(10, 26, 51, .35); }
.hero-wide + .facts { border-top: 0; }
body { overflow-x: clip; }

/* Screenshot frame: the real product, no fake browser chrome. */
.shot {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-shot);
}
.shot img { width: 100%; }
.shot-cap { margin-top: 12px; font-size: 14px; color: var(--muted); }
html[lang="ar"] .shot-cap { font-size: 15px; }

/* Facts under the hero: a row of plain statements split by hairlines. */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.facts ul { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts li { padding: 26px 24px; display: grid; gap: 4px; border-inline-start: 1px solid var(--line); }
.facts li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.facts b { font-size: 16px; font-weight: 700; color: var(--ink); }
html[lang="ar"] .facts b { font-size: 17px; }
.facts span { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
html[lang="ar"] .facts span { font-size: 15.5px; line-height: 1.7; }

/* ───────────────────────── Request journey (mechanism) ───────────────────────── */
.journey { list-style: none; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 0; }
.journey li { position: relative; padding-inline-end: 28px; display: grid; gap: 10px; align-content: start; }
.journey li::after {
  content: ""; position: absolute; top: 19px; inset-inline-start: 46px; inset-inline-end: 8px; height: 2px;
  background: repeating-linear-gradient(to right, var(--line-2) 0 6px, transparent 6px 11px);
}
.journey li:last-child::after { display: none; }
.journey .node {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--brand); color: var(--brand); font-weight: 700; font-size: 15px;
  position: relative; z-index: 1;
}
.journey li.done .node { background: var(--brand); color: #fff; }
.journey .who { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-ink); }
html[lang="ar"] .journey .who { font-size: 14px; letter-spacing: 0; }
.journey h3 { font-size: 18px; line-height: 1.35; }
html[lang="ar"] .journey h3 { font-size: 19px; line-height: 1.5; }
.journey p { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
html[lang="ar"] .journey p { font-size: 16px; line-height: 1.8; }
.journey .tag {
  justify-self: start; font-size: 12.5px; font-weight: 600; padding: 3px 8px; border-radius: 4px;
  background: var(--brand-50); color: var(--brand-ink); font-variant-numeric: tabular-nums;
}
html[lang="ar"] .journey .tag { font-size: 13.5px; }
.journey .tag.sla { background: #FFF4E0; color: #7A4A00; }
.journey .tag.ok { background: #E3F5EC; color: #0B6B49; }

/* ───────────────────────── Feature rows ───────────────────────── */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.feature + .feature { margin-top: 112px; }
.feature.flip > .feature-copy { order: 2; }
.feature-copy { display: grid; gap: 16px; align-content: start; }
.feature-copy p { color: var(--ink-2); }
.checks { list-style: none; display: grid; gap: 12px; margin-top: 6px; }
.checks li { position: relative; padding-inline-start: 28px; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: calc(.5lh - 9px); width: 18px; height: 18px;
  background: no-repeat center / 18px 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%23E8F8F8'/%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.6' fill='none' stroke='%230B7F86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.checks b { color: var(--ink); font-weight: 600; }
html[lang="ar"] .checks b { font-weight: 700; }

/* Two screenshots side by side (Arabic | English). */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pair figure { margin: 0; }
.pair figcaption { margin-top: 12px; display: flex; gap: 8px; align-items: baseline; font-size: 14px; color: var(--muted); }
html[lang="ar"] .pair figcaption { font-size: 15px; }
.pair figcaption b { color: var(--ink); }

/* ───────────────────────── Grids of plain items ───────────────────────── */
.cols { display: grid; gap: 40px 48px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.item { display: grid; gap: 8px; align-content: start; padding-top: 20px; border-top: 2px solid var(--ink); }
.item.soft { border-top: 1px solid var(--line-2); }
.on-navy .item { border-top-color: var(--teal); }
.item h3 { font-size: 19px; line-height: 1.35; }
html[lang="ar"] .item h3 { font-size: 20px; line-height: 1.5; }
.item p { font-size: 16px; color: var(--ink-2); line-height: 1.65; }
html[lang="ar"] .item p { font-size: 17px; line-height: 1.85; }
.on-navy .item p { color: var(--on-navy-2); }
.item .shot { margin-top: 12px; }
.item .idx { font-size: 13px; font-weight: 700; color: var(--teal-ink); font-variant-numeric: tabular-nums; }
.on-navy .item .idx { color: var(--teal); }

/* ───────────────────────── Spec table ───────────────────────── */
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { text-align: start; vertical-align: top; padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec tr:first-child th, .spec tr:first-child td { border-top: 1px solid var(--line); }
.spec th { width: 34%; padding-inline-end: 32px; font-weight: 600; color: var(--ink); font-size: 16px; }
html[lang="ar"] .spec th { font-weight: 700; font-size: 17px; }
.spec td { color: var(--ink-2); font-size: 16px; }
html[lang="ar"] .spec td { font-size: 17px; }
.on-navy .spec th, .on-navy .spec td { border-color: var(--navy-line); }
.on-navy .spec th { color: #fff; }
.on-navy .spec td { color: var(--on-navy-2); }

/* Name lists (integrations etc.) */
.names { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.names li { padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 14.5px; font-weight: 500; background: #fff; color: var(--ink); }
html[lang="ar"] .names li { font-size: 15.5px; }
.on-navy .names li { background: transparent; border-color: var(--navy-line); color: var(--on-navy); }

/* ───────────────────────── Callout band ───────────────────────── */
.band { border-radius: 16px; background: var(--navy); color: var(--on-navy); padding: 56px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset-inline-end: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 48px solid rgba(34, 197, 197, .10); }
.band h2 { color: #fff; }
.band p { color: var(--on-navy-2); margin-top: 10px; max-width: 60ch; }
.band .actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; }

/* ───────────────────────── FAQ ───────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-size: 18px; font-weight: 600; color: var(--ink);
}
html[lang="ar"] .faq summary { font-size: 19px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; font-weight: 400; font-size: 18px; color: var(--ink-2); transition: transform .15s; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 24px; color: var(--ink-2); max-width: 70ch; }
.faq .answer p + p { margin-top: 10px; }

/* ───────────────────────── Forms (public) ───────────────────────── */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px; box-shadow: var(--shadow-shot); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
html[lang="ar"] .field label { font-size: 15px; font-weight: 700; }
.field label .req { color: var(--bad); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: 8px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 64, 160, .15); }
.field.invalid input, .field.invalid select { border-color: var(--bad); }
.field .hint { font-size: 13px; color: var(--muted); }
.form-msg { font-size: 15px; min-height: 0; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--bad); }
.hp-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* ───────────────────────── Page header (inner pages) ───────────────────────── */
.page-head { padding-block: 56px 48px; border-bottom: 1px solid var(--line); }
.page-head.paper { background: var(--paper); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
html[lang="ar"] .crumbs { font-size: 15px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep::before { content: "/"; color: var(--line-2); }

/* ───────────────────────── Prose (legal pages, articles) ───────────────────────── */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; line-height: 1.35; margin: 44px 0 12px; }
html[lang="ar"] .prose h2 { line-height: 1.5; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-inline-start: 22px; margin: 10px 0; display: grid; gap: 6px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 2px; font-size: 14.5px; }
.toc a { color: var(--muted); padding: 5px 0; border-inline-start: 2px solid var(--line); padding-inline-start: 14px; }
.toc a:hover { color: var(--brand); border-color: var(--brand); }

/* ───────────────────────── Footer ───────────────────────── */
.site-footer { background: var(--navy); color: var(--on-navy-2); padding-block: 72px 32px; font-size: 15px; }
html[lang="ar"] .site-footer { font-size: 16px; }
.site-footer a { color: var(--on-navy); }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-brand img { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.foot-brand p { margin-top: 16px; max-width: 34ch; line-height: 1.7; }
.foot-col h2 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
html[lang="ar"] .foot-col h2 { font-size: 15px; letter-spacing: 0; }
.foot-col ul { list-style: none; display: grid; gap: 9px; }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--navy-line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 14px; }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ───────────────────────── Solution pages ───────────────────────── */
.h-page { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.12; }
html[lang="ar"] .h-page { line-height: 1.35; }
.sol-hero { padding-top: 40px; }
.sol-hero .crumbs { margin-bottom: 4px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.split-side { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 0; }
.split-side .sec-head { margin-bottom: 32px; }
.split > .cols-2 { gap: 32px 40px; }
.rel-link { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.rel-link b { font-weight: 600; }
html[lang="ar"] .rel-link b { font-weight: 700; }
.rel-link span { font-size: 14.5px; color: var(--muted); }
html[lang="ar"] .rel-link span { font-size: 15.5px; }
.rel-link:hover b { color: var(--brand); }

/* "Today → with ITSMOne" rows (Arabic pages). */
.shift { border-top: 1px solid var(--line); }
.shift-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.shift-row .from { color: var(--muted); display: grid; gap: 4px; align-content: start; font-size: 17px; }
.shift-row .from .small { font-weight: 700; color: var(--bad); }
.shift-row .to { display: grid; gap: 8px; }
.shift-row .to h3 { font-size: 20px; line-height: 1.5; }
.shift-row .to p { color: var(--ink-2); }

/* ───────────────────────── Pricing ───────────────────────── */
.plans-state { padding: 40px 0; color: var(--muted); text-align: center; }
.plans-state.is-error { color: var(--bad); }
.plans { display: grid; grid-template-columns: repeat(var(--plans, 3), minmax(0, 1fr)); gap: 24px; max-width: calc(var(--plans, 3) * 400px); margin-inline: auto; }
.plan { display: flex; flex-direction: column; gap: 6px; padding: 32px; background: #fff; border: 1px solid var(--line-2); border-radius: 14px; }
.plan.is-first { border: 2px solid var(--brand); }
.plan-name { font-size: 22px; }
.plan-desc { color: var(--muted); font-size: 15px; min-height: 2.6em; }
.plan-price { margin-top: 18px; font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan-price .cur { font-size: 18px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.plan-unit { color: var(--muted); font-size: 15px; }
.plan-year { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.plan-year .save { display: inline-block; margin-inline-start: 4px; padding: 1px 8px; border-radius: 4px; background: #E3F5EC; color: #0B6B49; font-size: 13px; font-weight: 600; }
.plan-cover { font-size: 15px; color: var(--ink-2); padding: 14px 0; margin-top: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan-feats { margin: 14px 0 6px; }
.plan-feats li { font-size: 15.5px; }
.plan-cta { display: grid; gap: 10px; margin-top: auto; padding-top: 18px; }

/* Dialog sheet (quotation form). */
dialog.sheet { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 16px; box-shadow: var(--shadow-pop); color: var(--ink); }
dialog.sheet::backdrop { background: rgba(7, 26, 56, .55); }
dialog.sheet form { padding: 28px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sheet-close { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: var(--paper); border-radius: 8px; cursor: pointer; color: var(--ink-2); }
.sheet-close:hover { color: var(--ink); }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .header-actions .hide-md { display: none; }
  .hero-grid, .feature, .split, .hero-top { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-top { gap: 24px; }
  .hero-frame { margin-top: 40px; }
  .split-side { position: static; }
  .shift-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .feature.flip > .feature-copy { order: 0; }
  .hero-copy { padding-bottom: 0; }
  .hero-shot { margin-inline-end: 0; }
  .hero-shot .shot { border-radius: 12px; border-inline-end: 1px solid var(--line); }
  .hero { padding-bottom: 56px; }
  .journey { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .journey li { grid-template-columns: 40px minmax(0, 1fr); column-gap: 18px; padding: 0 0 28px; }
  .journey li > *:not(.node) { grid-column: 2; }
  .journey .node { grid-row: 1 / span 4; }
  .journey li::after { top: 44px; bottom: 4px; inset-inline-start: 19px; inset-inline-end: auto; width: 2px; height: auto; background: repeating-linear-gradient(to bottom, var(--line-2) 0 6px, transparent 6px 11px); }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; --header-h: 60px; }
  body { font-size: 16px; }
  html[lang="ar"] body { font-size: 17px; }
  .section { padding-block: 64px; }
  .section.tight { padding-block: 48px; }
  .hero { padding-top: 40px; }
  .sec-head { margin-bottom: 32px; }
  .facts ul { grid-template-columns: minmax(0, 1fr); }
  .facts li, .facts li:first-child { border-inline-start: 0; border-top: 1px solid var(--line); padding: 16px 0; }
  .facts li:first-child { border-top: 0; }
  .feature + .feature { margin-top: 72px; }
  .cols-2, .cols-3, .cols-4, .pair { grid-template-columns: minmax(0, 1fr); }
  .spec th, .spec td { display: block; width: auto; padding: 0; border: 0; }
  .spec th { padding-top: 16px; }
  .spec td { padding: 4px 0 16px; border-bottom: 1px solid var(--line); }
  .spec tr:first-child th { border-top: 1px solid var(--line); }
  .on-navy .spec td { border-color: var(--navy-line); }
  .band { grid-template-columns: minmax(0, 1fr); padding: 36px 24px; }
  .form-card { padding: 22px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .brand-logo img { height: 26px; }
  .header-actions .hide-sm { display: none; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .mobile-menu { display: none !important; }
}

/* Legal pages: contents on the side, the text in a readable column. */
.legal { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 64px; align-items: start; }
.legal .prose > section:first-child h2 { margin-top: 0; }
.legal .prose section { scroll-margin-top: calc(var(--header-h) + 24px); }
@media (max-width: 1080px) { .legal { grid-template-columns: minmax(0, 1fr); gap: 32px; } .legal .toc { position: static; } }

/* Pricing: plan comparison table */
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: start; }
.compare thead th { font-size: 15px; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--ink); white-space: nowrap; }
.compare thead th:not(:first-child), .compare td { text-align: center; width: 24%; }
.compare tbody th { font-weight: 500; color: var(--ink-2); }
html[lang="ar"] .compare tbody th { font-weight: 500; }
.compare tr.group th { padding-top: 26px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); border-bottom-color: var(--line-2); }
html[lang="ar"] .compare tr.group th { font-size: 15px; letter-spacing: 0; }
.compare .yes { color: var(--teal-ink); font-weight: 700; font-size: 18px; }
.compare .no { color: var(--line-2); }
.plan-plus { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--brand); }

/* Product tour */
.tour { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.tour-steps { list-style: none; display: grid; gap: 4px; position: sticky; top: calc(var(--header-h) + 24px); }
.tour-steps button { width: 100%; display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border: 1px solid transparent; border-radius: 10px; background: none; font: inherit; color: var(--ink-2); text-align: start; cursor: pointer; }
.tour-steps button:hover { background: var(--paper); }
.tour-steps button[aria-current="step"] { background: var(--brand-50); border-color: var(--brand-100); color: var(--ink); }
.tour-steps .n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-2); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tour-steps button[aria-current="step"] .n { background: var(--brand); border-color: var(--brand); color: #fff; }
.tour-steps .tx { display: grid; gap: 1px; }
.tour-steps .who, .tour-cap .who { font-size: 12.5px; font-weight: 700; color: var(--teal-ink); letter-spacing: .04em; }
html[lang="ar"] .tour-steps .who, html[lang="ar"] .tour-cap .who { font-size: 13.5px; letter-spacing: 0; }
.tour-steps b { font-weight: 600; font-size: 15.5px; }
html[lang="ar"] .tour-steps b { font-weight: 700; font-size: 16px; }
.tour-cap { margin-top: 24px; display: grid; gap: 8px; max-width: 62ch; }
.tour-cap p { color: var(--ink-2); }
.tour-nav { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tour-count { color: var(--muted); font-size: 14px; }
@media (max-width: 1080px) {
  .tour { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tour-steps { position: static; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); overflow-x: auto; padding-bottom: 6px; }
}
