:root {
  --bg: #FFFFFF;
  --bg-soft: #F7F8FA;
  --ink: #0A0C0F;
  --ink-2: #3D4550;
  --muted: #6B7480;
  --line: #E4E7EB;
  --line-2: #CFD4DB;
  --accent: #2F6BFF;
  --accent-ink: #1F4FD8;
  --accent-wash: #F4F7FF;
  --header: #0A0C0F;
  --header-fg: #F4F6F8;
  --header-muted: #B9C0CA;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body { font-family: "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif; }

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- header ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--header); color: var(--header-fg);
  height: 60px; display: flex; align-items: center;
}
.nav .wrap { display: flex; align-items: center; gap: 28px; width: 100%; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.mark { width: 17px; height: 17px; color: #fff; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--header-muted); font-size: 14px; }
.nav-links a:hover { color: #fff; }
.nav-end { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.lang { font-size: 13px; color: var(--header-muted); }
.lang:hover { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 8px;
  font: inherit; font-size: 15px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .06s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-primary:active { background: #1a45c0; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 7px; gap: 6px; }
.btn svg { width: 15px; height: 15px; flex: none; transition: transform .16s ease; }
.btn-primary:hover svg { transform: translateX(2px); }
[dir="rtl"] .btn svg { transform: scaleX(-1); }
[dir="rtl"] .btn-primary:hover svg { transform: scaleX(-1) translateX(2px); }
.btn-on-dark { background: #fff; color: #0A0C0F; border-color: #fff; }
.btn-on-dark:hover { background: #E9ECF1; border-color: #E9ECF1; }
.btn-on-dark:focus-visible { outline-color: #fff; }
.btn.is-loading { color: transparent; position: relative; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- hero ---------- */
.hero { padding: 84px 0 64px; }
h1 {
  margin: 0; font-size: clamp(34px, 4vw, 48px); line-height: 1.12;
  letter-spacing: -.025em; font-weight: 600; max-width: 26ch;
}
[dir="rtl"] h1 { letter-spacing: 0; line-height: 1.3; max-width: 30ch; }

.capture { display: flex; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.capture input {
  flex: 1 1 260px; max-width: 320px; height: 46px;
  background: #fff; border: 1px solid var(--line-2);
  border-radius: 8px; padding: 0 14px; font-size: 15px;
  color: var(--ink); font-family: inherit;
}
.capture input::placeholder { color: #9AA1AC; }
.capture input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.capture input[dir="ltr"] { direction: ltr; }
.trust { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.consent { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); max-width: 52ch; }
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- scroll sections ---------- */
.sec { padding: 84px 0; border-top: 1px solid var(--line); }
.sec-inner {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  column-gap: 56px;
  align-items: start;
}
.sec-inner > .sec-head-col { grid-column: 1; grid-row: 1; }
.sec-inner > *:not(.sec-head-col) { grid-column: 2; }
.sec-head-col .num { margin-bottom: 10px; }
.num { display: block; margin-bottom: 14px; color: var(--muted); }
.sec h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 600;
  max-width: 22ch;
}
[dir="rtl"] .sec h2 { letter-spacing: 0; line-height: 1.35; }
.sec p { margin: 0; font-size: 17px; color: var(--ink-2); max-width: 56ch; }
.sec p + p { margin-top: 12px; }
.sec .nos + p, .sec p + .nos { margin-top: 4px; }
.num-range { unicode-bidi: isolate; }
.stat {
  margin-top: 22px; font-family: "IBM Plex Mono", monospace;
  font-size: 13px; color: var(--muted); letter-spacing: .02em;
}
.sec a.inline { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.sec a.inline:hover { color: var(--accent-ink); }

.nos { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.nos li { font-size: 15px; color: var(--ink-2); display: flex; gap: 10px; align-items: baseline; }
.nos li::before { content: "\00B7"; color: var(--accent); font-weight: 700; }

/* ---------- app grid ---------- */
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.app {
  display: flex; align-items: center; gap: 11px;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 15px 16px; background: #fff;
  transition: border-color .16s ease, background-color .16s ease;
}
.app:hover { border-color: var(--line-2); background: #FCFCFD; }
.app svg { width: 22px; height: 22px; fill: var(--ink); flex: none; }
.app span { font-size: 14px; font-weight: 500; }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.plan {
  background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 22px;
  display: flex; flex-direction: column;
}
.plan.hot { border-color: var(--accent); background: var(--accent-wash); }
.pname { font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tag { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.price { margin-top: 12px; font-size: 30px; letter-spacing: -.02em; font-weight: 600; }
.price small { font-size: 12px; font-weight: 400; color: var(--muted); margin-inline-start: 5px; letter-spacing: 0; }
.specs { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.specs li { font-size: 14px; color: var(--ink-2); display: flex; gap: 8px; }
.specs li b { font-weight: 500; color: var(--ink); min-width: 30px; display: inline-block; font-variant-numeric: tabular-nums; }
.vat { margin: 20px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- closing subscribe ---------- */
.close { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 88px 0; }
.close h2 { margin: 0 0 12px; font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.02em; line-height: 1.15; max-width: 20ch; }
.close p { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 50ch; }

/* ---------- footer ---------- */
footer { background: #0A0C0F; border-top: 0; padding: 28px 0 40px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: #8C96A3; }
footer a { margin-inline-end: 16px; color: #B9C0CA; }
footer a:hover { color: #FFFFFF; }

/* ---------- scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero { padding: 44px 0 40px; }
  h1 { font-size: 32px; }
  .capture input { max-width: none; }
  .capture .btn { width: 100%; }
  .sec, .close { padding: 56px 0; }
  .sec-inner { grid-template-columns: minmax(0, 1fr); column-gap: 0; row-gap: 12px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
  .split .map { width: 200px; }
  .sec-inner > .sec-head-col, .sec-inner > *:not(.sec-head-col) { grid-column: 1; }
  .sec-head-col .num { margin-bottom: 8px; }
  .sec h2 { font-size: 26px; }
  .sec p { font-size: 16px; }
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .nav .btn-sm { padding: 0 11px; }
}

/* ---------- desktop scale: one section per screen, not three ---------- */
@media (min-width: 861px) {
  .hero {
    min-height: 480px;
    padding: 88px 0 72px;
    display: flex;
    align-items: center;
  }
  .hero > .wrap { width: 100%; }

  .sec {
    min-height: 620px;
    padding: 96px 0;
    display: flex;
    align-items: center;
  }
  .sec > .wrap { width: 100%; }

  .sec h2 { font-size: clamp(38px, 4.2vw, 62px); line-height: 1.06; max-width: 14ch; }
  [dir="rtl"] .sec h2 { max-width: 16ch; }
  .sec p { font-size: 19px; line-height: 1.62; max-width: 46ch; }
  .sec .num-range { unicode-bidi: isolate; }
.stat { font-size: 14px; }
  .num { font-size: 13px; }
  h1 { font-size: clamp(40px, 4.4vw, 62px); max-width: 24ch; }
  .capture input, .capture .btn { height: 50px; }
  .capture input { max-width: 340px; }
  .trust { font-size: 14px; }
  .num { margin-bottom: 18px; }

  .apps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app { padding: 18px 18px; }
  .app span { font-size: 15px; }

  #plans { align-items: flex-start; min-height: 0; padding-top: 104px; padding-bottom: 104px; }
  #get-access { min-height: 0; }
  .close { padding: 120px 0; }
}
/* ---------- section bands: white and light grey, strictly alternating ---------- */
.tone-grey  { background: #F2F4F7; }
.tone-white { background: #FFFFFF; }
/* The order is set in the markup: 01 grey, 02 white, … 08 white, so no two
   neighbouring sections share a tone. Section borders stay visible because
   the two tones differ by less than 4% lightness — the hairline is the divider,
   not the colour. */

/* closing block: the page ends on the same black it started */
.close.dark { background: #0A0C0F; border-top-color: #0A0C0F; }
.close.dark h2 { color: #F4F6F8; }
.close.dark p { color: #B9C0CA; }
.close.dark .consent { color: #A3ABB6; }
.close.dark .consent a { color: #7FA3FF; }
.close.dark input {
  background: #14171D; border-color: rgba(255,255,255,.18); color: #F4F6F8;
}
.close.dark input::placeholder { color: #6B7480; }
.close.dark input:focus { border-color: var(--accent); }
.close.dark .btn-primary { background: #fff; color: #0A0C0F; }
.close.dark .btn-primary:hover { background: #E9ECF1; }
/* ---------- section 01: title left, map right ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 64px;
  align-items: center;
}
.split-left .num { display: block; margin-bottom: 18px; }
.split-left h2 { margin: 0 0 22px; }
.split .stat { margin-top: 0; max-width: 40ch; }
.split .num-range { unicode-bidi: isolate; }

.map { margin: 0; width: 100%; }
.map svg { display: block; width: 100%; height: auto; }
.map figcaption {
  margin-top: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
/* ---------- mobile overrides that must come last ---------- */
@media (max-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }
  .split .map { width: 200px; }
}
/* ---------- brand mark panel (section 05) ---------- */
.logo-panel {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.logo-brand { width: 104px; height: 104px; fill: var(--ink); }
.logo-panel figcaption { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
/* ---------- neutral list (section 02) ---------- */
.points { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.points li { font-size: 16px; color: var(--ink-2); display: flex; gap: 10px; align-items: baseline; }
.points li::before { content: "\00B7"; color: var(--accent); font-weight: 700; }
/* ---------- signup form (closing section) ---------- */
.signup { margin-top: 28px; display: grid; gap: 18px; max-width: 760px; }
.field { display: grid; gap: 7px; }
.field label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8C96A3;
}
.field input, .field select, .field textarea {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.18);
  background: #14171D;
  color: #F4F6F8;
  font: inherit;
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { height: auto; min-height: 68px; padding: 11px 14px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C96A3' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
[dir="rtl"] .field select { padding-right: 14px; padding-left: 38px; background-position: left 12px center; }
.field input::placeholder, .field textarea::placeholder { color: #6B7480; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47,107,255,.25);
}
.field select.is-set { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,107,255,.25); }

.opt-head {
  margin: 2px 0 -4px;
  font-size: 13px;
  color: #8C96A3;
}
.form-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.form-foot .consent { margin: 0; flex: 1 1 320px; }

/* plan subscribe buttons */
.btn-plan {
  margin-top: 18px;
  width: 100%;
  justify-content: center;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-plan:hover { border-color: var(--ink); background: #fff; }
.btn-plan-hot { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-plan-hot:hover { background: #2459e0; border-color: #2459e0; }

@media (max-width: 860px) {
  .form-row { grid-template-columns: minmax(0, 1fr); }
}
/* ---------- RTL typography + phone ergonomics ---------- */

/* Letter-spacing tears Arabic apart: it breaks the joins between letters.
   Any small-caps label that can hold Arabic loses its tracking and takes the
   Arabic family, because IBM Plex Mono has no Arabic glyphs. */
[dir="rtl"] .mono,
[dir="rtl"] .num,
[dir="rtl"] .field label,
[dir="rtl"] .map figcaption,
[dir="rtl"] .logo-panel figcaption {
  letter-spacing: 0;
  font-family: "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
}
[dir="rtl"] .num,
[dir="rtl"] .field label { font-size: 11px; }

@media (max-width: 860px) {
  /* iOS Safari zooms the whole page when a focused field is under 16px. */
  .capture input, .field input, .field select, .field textarea { font-size: 16px; }

  /* A flex item will not shrink below its content width without min-width: 0.
     In Arabic the longer button pushed the hero input past the viewport. */
  .capture { flex-direction: column; align-items: stretch; }
  .capture input,
  .capture .btn {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .field input, .field select, .field textarea { min-width: 0; }

  /* 44px is the smallest thing a thumb hits reliably. */
  .brand,
  .lang,
  nav .btn,
  footer a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  nav .btn { padding: 0 12px; font-size: 12px; }
  footer a { padding: 0 2px; }
  footer .wrap { gap: 4px 16px; }
}
/* Under 400px the header cannot hold brand + language + CTA without crowding.
   The hero form is a hundred pixels below, so the duplicate goes. */
@media (max-width: 380px) {
  .nav-end .btn { display: none; }
  .nav .wrap { padding-inline: 18px; }
}
/* ---------- production additions ---------- */

/* Honeypot: present in the DOM, invisible to people, irresistible to bots.
   Never display:none — some bots skip those. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Keyboard users land here first. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 16px;
  background: #fff;
  color: #0A0C0F;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* Result of a submit, shown in place of a page reload. */
.form-status {
  margin: 16px 0 0;
  font-size: 14px;
  color: #B9C0CA;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.form-status[data-tone="error"] { color: #FFB4B4; }
.form-status[data-tone="ok"] { color: #9BE3B8; }

/* A form that is mid-submit should not accept a second click. */
form[aria-busy="true"] .btn { opacity: .6; pointer-events: none; }

/* Legal pages reuse the prose styles without the landing-page rhythm. */
.legal { max-width: 68ch; padding: 64px 0 96px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p { margin: 0 0 12px; }
.legal .updated { font-size: 13px; color: var(--muted); margin-bottom: 28px; }