/* ==========================================================================
   Qsynapse site: design tokens, base, layout, sections, motion, RTL
   Edit colours, fonts and spacing here; content lives in index.html.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #1c1c1c;
  --ink-2: #5c5c5c;
  --ink-3: #6f6f6f;
  --teal: #00a1b9;
  --teal-soft: #eef8fa;
  --teal-line: #cfe7ec;
  --teal-text: #087a8d;
  --navy: #0b1f3a;
  --paper: #ffffff;
  --grey: #f7f7f7;
  --line: #e9e9e9;
  --risk: #c0392b;
  --risk-soft: #fde8e6;
  --ok: #1f8a4c;
  --ok-soft: #e6f6ee;
  --warn: #c77700;
  --warn-soft: #fff1dc;

  --font-head: 'Space Grotesk', 'Inter Display', system-ui, 'Segoe UI', Tahoma, 'Noto Sans Arabic', sans-serif;
  --font-body: 'Inter Display', 'Inter', system-ui, 'Segoe UI', Tahoma, 'Noto Sans Arabic', sans-serif;
  --font-ui: 'Inter', 'Inter Display', system-ui, 'Segoe UI', Tahoma, 'Noto Sans Arabic', sans-serif;

  --radius-pill: 100px;
  --radius-card: 20px;
  --radius-sm: 13px;
  --radius-xs: 8px;
  --shadow-float: 0 18px 50px rgba(0, 0, 0, 0.1);
  --shadow-btn: 0 6px 16px rgba(0, 161, 185, 0.3);

  --max: 1200px;
  --pad-x: 48px;
  --sec-y: 96px;
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-block-start: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
html.lenis { scroll-behavior: auto; } /* Lenis drives scrolling itself */
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
p { margin: 0; color: var(--ink-2); }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; border-radius: 4px; }

.container { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--sec-y); }
.section--grey { background: var(--grey); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2 { color: #fff; }
.section--navy p { color: #b7c4d4; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin-block-end: 14px;
}
.display { font-size: 56px; line-height: 1.08; }
.section-title { font-size: 48px; line-height: 1.1; max-width: 760px; }
.lead { font-size: 18px; max-width: 640px; margin-block-start: 16px; }
.row-title { font-size: 28px; line-height: 1.2; margin-block-end: 12px; }
.label { font-family: var(--font-ui); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin-block-end: 8px; }

/* Buttons and chips */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.btn--primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-btn); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0, 161, 185, 0.35); }
.btn--ghost { background: #fff; color: var(--ink); border-color: #ddd; }
.btn--ghost:hover { border-color: #bbb; }
.arrow { display: inline-block; }

.chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid #e3e3e3;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink-2);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }

/* Cards and grids */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px; }
.card--grey { background: var(--grey); border-color: transparent; }
.card h3 { font-size: 24px; margin-block-end: 6px; }
.grid { display: grid; gap: 20px; margin-block-start: 36px; }
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 3. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-block-end: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); position: relative; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand span { font-family: var(--font-head); font-weight: 600; font-size: 18px; letter-spacing: 0.04em; color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav > a:not(.btn) { font-family: var(--font-ui); font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.site-nav > a:not(.btn):hover { color: var(--ink); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 4. Hero ---------- */
.hero { padding-block: 88px 0; text-align: center; }
.hero__kicker { font-family: var(--font-ui); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-text); margin-block-end: 22px; }
.hero__kicker span { margin-inline: 8px; color: #9ac; }
.hero h1 { font-size: 56px; line-height: 1.08; max-width: 820px; margin-inline: auto; }
.hero .lead { margin-inline: auto; margin-block-start: 22px; }
.hero__actions { display: flex; justify-content: center; gap: 12px; margin-block-start: 30px; flex-wrap: wrap; }
.hero__media { margin-block-start: 56px; aspect-ratio: 1425 / 577; overflow: hidden; background: #f3f3f3; }
.hero__media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); } /* the source videos carry a 1px dark edge; a slight zoom inside the clipped box hides it */

/* ---------- 5. Trust strip ---------- */
.trust { padding-block: 28px; }
.trust__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.trust__title { font-family: var(--font-ui); font-size: 13px; font-weight: 500; color: var(--ink-3); }
.trust__chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }

/* ---------- 6. Product intro ---------- */
.product-card { display: flex; gap: 22px; align-items: center; text-decoration: none; color: inherit; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
.product-card__media { flex: none; width: 220px; border-radius: var(--radius-sm); overflow: hidden; background: var(--grey); }
.product-card__media video { width: 100%; height: auto; transform: scale(1.03); }
.product-card h3 { font-size: 24px; margin-block-end: 6px; }
.product-card .eyebrow { margin-block-end: 4px; }
.product-card .more { font-family: var(--font-ui); font-weight: 500; color: var(--teal-text); }

/* ---------- 7. Showcase rows ---------- */
.showcase { margin-block-start: 24px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-block: 44px; border-block-start: 1px solid var(--line); }
.row:first-child { border-block-start: 0; }
.row--flip .row__media { order: -1; }
.row__media { position: relative; border-radius: var(--radius-card); overflow: hidden; background: #f3f5f7; border: 1px solid var(--line); }
.row__media video { width: 100%; height: auto; transform: scale(1.02); }
.row p { font-size: 16px; }
.closing { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; margin-block-start: 32px; }
.closing h3 { font-size: 28px; line-height: 1.2; }
.closing .btn { margin-block-start: 20px; }

/* ---------- 8. Evidence chain ---------- */
.chain { position: relative; display: flex; align-items: flex-start; justify-content: space-between; padding: 32px 36px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); margin-block-start: 20px; }
.chain__bar { position: absolute; inset-inline: 100px; top: 54px; height: 2px; background: #e3e6ea; }
.chain__fill { position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 0; background: var(--teal); transition: width 1s linear; }
.chain__node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 140px; font-family: var(--font-ui); font-size: 13px; font-weight: 500; color: var(--ink-2); text-align: center; }
.chain__dot { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid #d9dee3; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 600; color: #a3a3a3; transition: all 0.4s; }
.chain__node.on .chain__dot { border-color: var(--teal); color: var(--teal); box-shadow: 0 0 0 6px rgba(0, 161, 185, 0.12); }
.chain__node.on { color: var(--ink); }

/* ---------- 9. Explainer panels (ReasonEye = .re, Midad = .lp) ---------- */
.panel { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-float); padding: 22px 24px; font-family: var(--font-ui); font-size: 13px; line-height: 1.45; margin-block-start: 36px; }
.panel__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block-end: 12px; border-block-end: 1px solid var(--line); margin-block-end: 16px; flex-wrap: wrap; }
.panel__bar b { font-family: var(--font-head); font-size: 15px; color: var(--ink); }
.panel__bar b + span { color: var(--ink-3); }
.stages { display: flex; gap: 6px; flex-wrap: wrap; }
.stages span { font-size: 11px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: #767676; padding: 4px 9px; border-radius: var(--radius-pill); border: 1px solid #e6e6e6; transition: all 0.4s; }
.panel[data-stage="1"] .stages .s1, .panel[data-stage="2"] .stages .s2, .panel[data-stage="3"] .stages .s3, .panel[data-stage="4"] .stages .s4 { color: var(--teal-text); border-color: var(--teal); background: var(--teal-soft); }
.panel__cols { display: grid; gap: 22px; align-items: start; }
.re .panel__cols { grid-template-columns: 210px 1fr 270px; }
.lp .panel__cols { grid-template-columns: 1fr 1fr 1fr; }
.legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-block-start: 16px; padding-block-start: 12px; border-block-start: 1px solid var(--line); }
.legend span { font-size: 12px; color: #767676; padding-inline-start: 14px; position: relative; transition: color 0.4s; }
.legend span::before { content: ''; position: absolute; inset-inline-start: 0; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: #dfe3e7; transition: background 0.4s; }
.panel[data-stage="1"] .l1, .panel[data-stage="2"] .l2, .panel[data-stage="3"] .l3, .panel[data-stage="4"] .l4 { color: var(--ink); font-weight: 500; }
.panel[data-stage="1"] .l1::before, .panel[data-stage="2"] .l2::before, .panel[data-stage="3"] .l3::before, .panel[data-stage="4"] .l4::before { background: var(--teal); }
.panel__note { font-size: 12px; color: var(--ink-2); margin-block-start: 10px; }
.panel b { font-weight: 500; }

/* ReasonEye panel */
.doc { position: relative; display: flex; gap: 9px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; margin-block-end: 8px; background: #fff; opacity: 0.3; transform: translateX(-10px); transition: all 0.5s; }
.doc img { width: 30px; height: 38px; object-fit: cover; object-position: top; border-radius: 3px; border: 1px solid #eee; }
.doc b { display: block; color: var(--ink); font-size: 12px; font-weight: 500; }
.doc span { color: var(--ink-3); font-size: 11px; }
.doc i { position: absolute; inset-inline-end: 8px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--teal); color: #fff; font-style: normal; font-size: 10px; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(0.4); transition: all 0.3s; }
.doc.on { opacity: 1; transform: none; }
.doc.read i { opacity: 1; transform: none; }
.scan { position: relative; border: 1px dashed var(--teal-line); border-radius: 12px; min-height: 230px; padding: 14px 16px; background: #fbfdfd; overflow: hidden; }
.scan__beam { position: absolute; inset-inline: 0; top: 0; height: 2px; background: var(--teal); box-shadow: 0 0 14px var(--teal); opacity: 0; }
.panel[data-stage="1"] .scan__beam { opacity: 1; animation: beam 1.4s linear infinite; }
@keyframes beam { from { top: 0; } to { top: 100%; } }
.scan__eye { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--teal-text); font-weight: 500; font-size: 11px; padding-block: 6px 12px; }
.panel[data-stage="1"] .scan__eye svg { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.15); } }
.field { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); margin-block-end: 6px; opacity: 0; transform: translateY(6px); transition: all 0.4s; }
.field span:first-child { color: var(--ink-3); }
.field span:nth-child(2) { color: var(--ink); font-weight: 500; text-align: end; }
.field small { color: var(--teal-text); font-weight: 500; font-size: 11px; background: var(--teal-soft); padding: 2px 7px; border-radius: var(--radius-pill); white-space: nowrap; }
.field.on { opacity: 1; transform: none; }
.cn { display: flex; align-items: center; gap: 10px; padding-block: 6px; color: #a3a3a3; font-weight: 500; position: relative; transition: color 0.4s; }
.cn i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #dfe3e7; background: #fff; color: #b3b3b3; font-style: normal; font-size: 10px; display: flex; align-items: center; justify-content: center; transition: all 0.4s; flex: none; }
.cn::before { content: ''; position: absolute; inset-inline-start: 9px; top: -10px; height: 16px; width: 2px; background: #e6e6e6; }
.cn:first-child::before { display: none; }
.cn.on { color: var(--ink); }
.cn.on i { border-color: var(--teal); background: var(--teal); color: #fff; box-shadow: 0 0 0 4px rgba(0, 161, 185, 0.14); }
.cn.on::before { background: var(--teal); }
.find { margin-block-start: 12px; border: 1px solid #f3c6c6; background: #fff7f7; border-radius: 12px; padding: 11px; opacity: 0; transform: translateY(10px); transition: all 0.5s; }
.find.on { opacity: 1; transform: none; }
.find__risk { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--risk); background: var(--risk-soft); padding: 2px 8px; border-radius: var(--radius-pill); margin-block-end: 6px; }
.find__text { font-weight: 500; color: var(--ink); font-size: 12px; line-height: 1.35; }
.find__src { color: var(--ink-3); font-size: 11px; margin-block-start: 4px; }
.find__owner { display: flex; justify-content: space-between; align-items: center; margin-block-start: 8px; font-size: 11px; color: var(--ink-2); }
.find__owner b { color: var(--teal-text); }

/* Midad panel */
.sbox { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #fbfdfd; min-height: 36px; direction: rtl; color: var(--ink); }
.sbox i { font-style: normal; color: var(--teal-text); }
.sq::after { content: '|'; color: var(--teal); animation: blink 1s step-end infinite; }
.panel:not([data-stage="1"]) .sq::after { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.hit { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-block-start: 8px; opacity: 0; transform: translateY(6px); transition: all 0.4s; }
.hit b { display: block; color: var(--ink); font-size: 12px; font-weight: 500; }
.hit span { color: var(--ink-3); font-size: 11px; }
.hit.on { opacity: 1; transform: none; }
.hcount { color: var(--ink-3); font-size: 11px; margin-block-start: 10px; }
.il { display: flex; flex-direction: column; gap: 6px; }
.st { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 9px; border: 1px solid transparent; color: #a3a3a3; transition: all 0.4s; }
.st i { width: 22px; height: 22px; border-radius: 6px; background: #f0f2f4; color: #b3b3b3; font-style: normal; font-family: var(--font-head); font-weight: 600; font-size: 12px; display: flex; align-items: center; justify-content: center; flex: none; transition: all 0.4s; }
.st b { display: block; font-size: 12px; font-weight: 500; color: inherit; }
.st span { font-size: 11px; }
.st.on { color: var(--ink); border-color: var(--teal-line); background: var(--teal-soft); }
.st.on i { background: var(--teal); color: #fff; }
.score { margin-block-start: 10px; font-size: 11px; color: var(--ink-3); }
.score__bar { height: 6px; border-radius: var(--radius-pill); background: #eef0f2; margin-block-start: 6px; overflow: hidden; }
.score__fill { height: 100%; width: 0; background: var(--teal); border-radius: var(--radius-pill); transition: width 1.6s ease; }
.panel[data-stage="2"] .score__fill, .panel[data-stage="3"] .score__fill, .panel[data-stage="4"] .score__fill { width: 86%; }
.cl { display: flex; align-items: flex-start; gap: 9px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; margin-block-end: 7px; opacity: 0.35; transition: all 0.4s; }
.cl i { width: 18px; height: 18px; border-radius: 50%; font-style: normal; font-size: 10px; font-weight: 500; display: flex; align-items: center; justify-content: center; flex: none; margin-block-start: 1px; }
.cl i.ok { background: var(--ok-soft); color: var(--ok); }
.cl i.warn { background: var(--warn-soft); color: var(--warn); }
.cl b { display: block; font-size: 12px; font-weight: 500; color: var(--ink); }
.cl span { font-size: 11px; color: var(--ink-3); }
.cl.on { opacity: 1; }
.cl--warn.on { border-color: #f3d9a8; background: #fffaf2; }
.rep { margin-block-start: 10px; border: 1px solid var(--teal-line); background: var(--teal-soft); border-radius: 12px; padding: 11px 12px; opacity: 0; transform: translateY(10px); transition: all 0.5s; }
.rep.on { opacity: 1; transform: none; }
.rep__title { font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--ink); margin-block-end: 6px; }
.rep__line { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); padding-block: 2px; }
.rep__line b { color: var(--ink); font-weight: 500; }
.rep__open { display: flex; justify-content: space-between; margin-block-start: 6px; font-size: 11px; color: var(--ink-2); }
.rep__open b { color: var(--teal-text); }

/* ---------- 10. Ask demo ---------- */
.ask-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-block-start: 36px; }
.ask { position: relative; background: var(--navy); border-radius: var(--radius-card); padding: 26px; color: #fff; min-height: 280px; }
.ask__q { font-family: var(--font-head); font-size: 18px; min-height: 54px; color: #fff; }
.ask__q::after { content: '|'; color: var(--teal); animation: blink 1s step-end infinite; }
.ask__answers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-block-start: 18px; }
.ask__a { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius-sm); padding: 14px; font-size: 13px; color: #c9d3df; opacity: 0; transform: translateY(8px); transition: all 0.5s; }
.ask__a.on { opacity: 1; transform: none; }
.ask__a b { display: block; font-family: var(--font-ui); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin-block-end: 8px; }
.ask__a--bad b { color: #ff9c9c; }
.ask__a--good { border-color: rgba(0, 161, 185, 0.6); background: rgba(0, 161, 185, 0.12); color: #fff; }
.ask__a--good b { color: #7fd8e6; }

/* ---------- 11. Numbers ---------- */
.numbers { padding-block: 56px; }
.numbers .grid { margin-block-start: 0; }
.stat { font-family: var(--font-head); font-size: 44px; font-weight: 500; line-height: 1; color: #fff; }
.stat small { display: block; font-family: var(--font-ui); font-size: 13px; font-weight: 400; color: #9fb0c4; margin-block-start: 10px; }

/* ---------- 12. Services steps ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-block-start: 44px; }
.steps::before { content: ''; position: absolute; inset-inline: 8%; top: 24px; height: 2px; background: #e3e6ea; }
.steps__prog { position: absolute; inset-inline-start: 8%; top: 24px; height: 2px; background: var(--teal); width: 0; transition: width 1.4s linear; }
.step { position: relative; text-align: center; padding-block-start: 60px; }
.step i { position: absolute; inset-inline-start: 50%; top: 8px; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid #d9dee3; color: #a3a3a3; font-style: normal; font-family: var(--font-head); font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: all 0.4s; }
.step.on i { border-color: var(--teal); background: var(--teal); color: #fff; box-shadow: 0 0 0 6px rgba(0, 161, 185, 0.14); }
.step h3 { font-size: 18px; margin-block-end: 4px; }
.step p { font-size: 13px; }

/* ---------- 13. Governance loop ---------- */
.gov { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.loop { position: relative; width: 300px; height: 300px; margin-inline: auto; }
.loop__ring { position: absolute; inset: 22px; border-radius: 50%; border: 2px dashed #d9dee3; }
.loop__arc { position: absolute; inset: 22px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--teal); animation: spin 4s linear infinite; animation-play-state: paused; }
.loop.is-live .loop__arc, .no-js .loop__arc { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
.loop__node { position: absolute; width: 100px; padding: 10px 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); text-align: center; font-family: var(--font-head); font-weight: 500; font-size: 15px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06); transition: all 0.4s; }
.loop__node.n1 { inset-inline-start: 100px; top: -6px; }
.loop__node.n2 { inset-inline-end: -14px; bottom: 44px; }
.loop__node.n3 { inset-inline-start: -14px; bottom: 44px; }
.loop__node.on { border-color: var(--teal); color: var(--teal-text); }

/* ---------- 14. Contact and footer ---------- */
.contact { text-align: center; }
.contact .section-title { margin-inline: auto; max-width: 760px; }
.contact .lead { margin-inline: auto; }
.contact__actions { display: flex; justify-content: center; gap: 12px; margin-block-start: 28px; }
.contact__city { color: #8fa0b4; margin-block-start: 18px; font-size: 14px; }
.site-footer { background: var(--navy); border-block-start: 1px solid rgba(255, 255, 255, 0.1); color: #8fa0b4; font-size: 13px; padding-block: 26px; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer .brand span { color: #fff; }
.site-footer .brand img { width: 28px; height: 28px; background: #fff; border-radius: 50%; padding: 3px; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer nav a { color: #b7c4d4; text-decoration: none; font-family: var(--font-ui); padding-block: 12px; display: inline-block; }
.site-footer nav a:hover { color: #fff; }
.motion-toggle { background: none; border: 1px solid rgba(255, 255, 255, 0.25); color: #b7c4d4; border-radius: var(--radius-pill); padding: 11px 16px; min-height: 44px; font-family: var(--font-ui); font-size: 12px; cursor: pointer; }
.motion-toggle:hover { color: #fff; border-color: #fff; }
.site-footer__meta { display: flex; align-items: center; gap: 16px; }

/* ---------- 15. Motion: appear on scroll ---------- */
.up { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--up-delay, 0ms); animation: up-reveal 0s 2.5s forwards; }
.up.in { opacity: 1; transform: none; }
@keyframes up-reveal { to { opacity: 1; transform: none; } }

/* No JavaScript: show every explainer in its final state and the menu inline. */
.no-js .up { opacity: 1; transform: none; animation: none; }
.no-js :is(.doc, .field, .find, .hit, .rep, .ask__a) { opacity: 1; transform: none; }
.no-js .cl { opacity: 1; }
.no-js .doc i { opacity: 1; transform: none; }
.no-js :is(.cn, .st, .chain__node, .step, .loop__node) { color: var(--ink); }
.no-js .cn i, .no-js .step i, .no-js .st i { border-color: var(--teal); background: var(--teal); color: #fff; }
.no-js .chain__dot { border-color: var(--teal); color: var(--teal-text); }
.no-js .chain__fill { width: 100%; }
.no-js .score__fill { width: 86%; }
.no-js .steps__prog { width: 84%; }
.no-js .stages span, .no-js .legend span { color: var(--ink); }

/* Motion switched off by the visitor (footer control) */
.motion-off .loop__arc, .motion-off .scan__beam, .motion-off .scan__eye svg { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .up { opacity: 1; transform: none; transition: none; }
  .loop__arc, .panel[data-stage="1"] .scan__beam, .panel[data-stage="1"] .scan__eye svg { animation: none; }
  .ask__q::after, .sq::after { animation: none; }
  .doc, .field, .find, .hit, .rep, .ask__a, .cl, .st, .cn, .chain__fill, .score__fill, .steps__prog, .btn, .product-card { transition: none; }
  .btn--primary:hover, .product-card:hover { transform: none; }
}

/* ---------- 16. Breakpoints (Framer's: 1440+, 1200-1439, 810-1199, <=809) ---------- */
@media (max-width: 1199px) {
  :root { --sec-y: 72px; }
  .nav-toggle { display: flex; }
  .site-nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 4px; background: #fff; border-block-end: 1px solid var(--line); padding: 12px var(--pad-x) 20px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); }
  .site-nav.is-open { display: flex; }
  .site-nav > a:not(.btn) { padding: 12px 0; font-size: 16px; border-block-end: 1px solid var(--line); }
  .site-nav .btn { margin-block-start: 12px; justify-content: center; }
  .no-js .nav-toggle { display: none; }
  .no-js .site-nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; box-shadow: none; padding: 0; border: 0; }
  .product-card { flex-direction: column; align-items: flex-start; }
  .product-card__media { width: 100%; }
  .ask__answers { grid-template-columns: 1fr; }
  .hero h1, .display { font-size: 46px; }
  .section-title { font-size: 40px; }
  .re .panel__cols { grid-template-columns: 180px 1fr 230px; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .steps::before, .steps__prog { display: none; }
  .grid--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 999px) {
  .ask-row { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 899px) {
  .re .panel__cols, .lp .panel__cols { grid-template-columns: 1fr; }
}
@media (max-width: 809px) {
  :root { --pad-x: 20px; --sec-y: 56px; }
  .hero { padding-block-start: 56px; }
  .hero h1, .display { font-size: 36px; }
  .hero__kicker { line-height: 1.9; }
  .hero__media { aspect-ratio: 4 / 3; }
  .hero__media video { transform: scale(1.45); } /* the letterbox bars are 13.6% top and bottom; 1.45 keeps them out of the 4:3 frame */
  .section-title { font-size: 32px; }
  .lead { font-size: 16px; }
  .row-title { font-size: 24px; }
  .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .row, .ask-row, .gov, .closing { grid-template-columns: 1fr; gap: 24px; }
  .row--flip .row__media { order: 0; }
  .row__media { order: -1; }
  .trust__inner { justify-content: center; text-align: center; }
  .trust__chips { justify-content: center; }
  .chain { flex-wrap: wrap; gap: 18px 8px; justify-content: center; }
  .chain__bar { display: none; }
  .chain__node { width: 100px; font-size: 12px; }
  .panel { padding: 16px; }
  .legend { grid-template-columns: 1fr 1fr; }
  .field { grid-template-columns: auto 1fr; }
  .field small { grid-column: 1 / -1; justify-self: start; }
  .stat { font-size: 36px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .loop { width: 260px; height: 260px; }
  .loop__node { width: 88px; font-size: 13px; }
  .loop__node.n1 { inset-inline-start: 86px; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- 9b. Inline SVG animations (ReasonEye reader and rules) ---------- */
.anim { display: block; width: 100%; height: auto; aspect-ratio: 554 / 422; direction: ltr; }
.anim .a-h { font-family: var(--font-head); font-size: 12px; font-weight: 500; fill: var(--ink); }
.anim .a-t { font-family: var(--font-ui); font-size: 9px; fill: #6f6f6f; }
.anim .a-tb { font-family: var(--font-ui); font-size: 9.5px; font-weight: 500; fill: var(--ink); }
.anim .a-th { font-family: var(--font-ui); font-size: 8px; font-weight: 500; letter-spacing: 0.06em; fill: #8a8a8a; }
.anim .a-n { font-family: var(--font-ui); font-size: 9.5px; fill: var(--ink); }
.anim .a-nb { font-family: var(--font-ui); font-size: 10.5px; font-weight: 500; fill: var(--ink); }
.anim .a-ar { font-family: var(--font-body); font-size: 9.5px; fill: var(--ink); }
.anim .a-g { font-family: var(--font-head); font-size: 22px; font-weight: 500; fill: #00a1b9; }
.anim .a-g-ar { font-family: var(--font-body); }
.anim .a-warn { font-family: var(--font-ui); font-size: 10px; font-weight: 700; fill: #c77700; }
.anim .a-chip-t { font-family: var(--font-ui); font-size: 10px; font-weight: 500; fill: #087a8d; }
.anim .a-badge-t { font-family: var(--font-ui); font-size: 8.5px; font-weight: 500; fill: #087a8d; }
.anim .a-hl, .anim .a-row { fill: #eef8fa; opacity: 0; }
.anim .a-line { fill: none; stroke: #00a1b9; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 280; stroke-dashoffset: 280; }
.anim .a-icon, .anim .a-chip, .anim .a-check, .anim .a-badge, .anim .a-badge-t { opacity: 0; }
.anim .a-eye { transform-box: fill-box; transform-origin: center; }
.anim .a-beam { opacity: 0; }
/* running state: one shared 8s loop; every element resets together at 96-100% */
.anim.is-live .a-beam { animation: a-beam 8s linear infinite; }
.anim.is-live .a-hl1, .anim.is-live .a-r1 { animation: a-show1 8s linear infinite; }
.anim.is-live .a-hl2, .anim.is-live .a-r2 { animation: a-show2 8s linear infinite; }
.anim.is-live .a-hl3, .anim.is-live .a-r3 { animation: a-show3 8s linear infinite; }
.anim.is-live .a-r4 { animation: a-show4 8s linear infinite; }
.anim.is-live .a-r5 { animation: a-show5 8s linear infinite; }
.anim.is-live .a-r6 { animation: a-show6 8s linear infinite; }
.anim.is-live .a-l1 { animation: a-draw1 8s linear infinite; }
.anim.is-live .a-l2 { animation: a-draw2 8s linear infinite; }
.anim.is-live .a-l3 { animation: a-draw3 8s linear infinite; }
.anim.is-live .a-l4 { animation: a-draw4 8s linear infinite; }
.anim.is-live .a-i1, .anim.is-live .a-p1, .anim.is-live .a-c1 { animation: a-pop1 8s linear infinite; }
.anim.is-live .a-i2, .anim.is-live .a-p2, .anim.is-live .a-c2 { animation: a-pop2 8s linear infinite; }
.anim.is-live .a-i3, .anim.is-live .a-p3, .anim.is-live .a-c3 { animation: a-pop3 8s linear infinite; }
.anim.is-live .a-i4 { animation: a-pop4 8s linear infinite; }
.anim.is-live .a-badge, .anim.is-live .a-badge-t { animation: a-pop5 8s linear infinite; }
.anim.is-live .a-eye { animation: a-pulse 8s ease-in-out infinite; }
@keyframes a-beam { 0% { transform: translateY(0); opacity: 1; } 28% { transform: translateY(352px); opacity: 1; } 30%, 100% { opacity: 0; } }
@keyframes a-show1 { 0%, 30% { opacity: 0; } 33%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes a-show2 { 0%, 32.5% { opacity: 0; } 35.5%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes a-show3 { 0%, 35% { opacity: 0; } 38%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes a-show4 { 0%, 37.5% { opacity: 0; } 40.5%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes a-show5 { 0%, 40% { opacity: 0; } 43%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes a-show6 { 0%, 42.5% { opacity: 0; } 45.5%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes a-draw1 { 0%, 34% { stroke-dashoffset: 280; } 46%, 92% { stroke-dashoffset: 0; } 96%, 100% { stroke-dashoffset: 280; } }
@keyframes a-draw2 { 0%, 39% { stroke-dashoffset: 280; } 51%, 92% { stroke-dashoffset: 0; } 96%, 100% { stroke-dashoffset: 280; } }
@keyframes a-draw3 { 0%, 44% { stroke-dashoffset: 280; } 56%, 92% { stroke-dashoffset: 0; } 96%, 100% { stroke-dashoffset: 280; } }
@keyframes a-draw4 { 0%, 49% { stroke-dashoffset: 280; } 61%, 92% { stroke-dashoffset: 0; } 96%, 100% { stroke-dashoffset: 280; } }
@keyframes a-pop1 { 0%, 44% { opacity: 0; } 49%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes a-pop2 { 0%, 50% { opacity: 0; } 55%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes a-pop3 { 0%, 56% { opacity: 0; } 61%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes a-pop4 { 0%, 62% { opacity: 0; } 67%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes a-pop5 { 0%, 68% { opacity: 0; } 73%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes a-pulse { 0%, 34%, 100% { transform: scale(1); } 15% { transform: scale(0.96); } 30% { transform: scale(1.06); } }
/* final state: everything visible, no motion */
.anim.is-final .a-hl, .anim.is-final .a-row, .anim.is-final .a-icon, .anim.is-final .a-chip, .anim.is-final .a-check, .anim.is-final .a-badge, .anim.is-final .a-badge-t { opacity: 1; animation: none; }
.anim.is-final .a-line { stroke-dashoffset: 0; animation: none; }
.anim.is-final .a-beam, .anim.is-final .a-eye { animation: none; }
.no-js .anim .a-hl, .no-js .anim .a-row, .no-js .anim .a-icon, .no-js .anim .a-chip, .no-js .anim .a-check, .no-js .anim .a-badge, .no-js .anim .a-badge-t { opacity: 1; }
.no-js .anim .a-line { stroke-dashoffset: 0; }
.motion-off .anim * { animation: none !important; }
.motion-off .anim :is(.a-hl, .a-row, .a-icon, .a-chip, .a-check, .a-badge, .a-badge-t) { opacity: 1; }
.motion-off .anim .a-line { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .no-js .anim * { animation: none; } }

/* ---------- 17. RTL overrides (set dir="rtl" on <html>) ---------- */
[dir="rtl"] .arrow { transform: scaleX(-1); }
[dir="rtl"] :is(h1, h2, h3, h4, .eyebrow, .label, .hero__kicker, .stages span, .find__risk, .ask__a b, .brand span), :lang(ar) { letter-spacing: 0; }
[dir="rtl"] .doc { transform: translateX(10px); }
[dir="rtl"] .doc.on { transform: none; }
[dir="rtl"] .step i { transform: translateX(50%); }
