/* Isnad landing page.
   Colours live in :root only. Layout uses logical properties so Arabic (rtl) needs no second sheet. */

@font-face {
  font-family: "Isnad Sans";
  src: url("assets/fonts/geist-latin-caa3a2e1.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Isnad Mono";
  src: url("assets/fonts/geist-mono-latin-797e433a.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Isnad Arabic";
  src: url("assets/fonts/noto-sans-arabic-arabic-3fd1b3ed.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF,
    U+FE70-FEFC;
}

:root {
  /* surfaces */
  --paper: #f4f2ed;
  --cell: #ebe8e1;
  --card: #fcfbf9;
  --ink: #141312;
  --ink-2: #47443f;
  --muted: #77736c;
  --rule: #d9d4cb;
  --rule-strong: #b3ada2;
  /* one brand accent: Qatar maroon */
  --accent: #8a1538;
  --accent-tint: #f1dbe1;
  --accent-on-ink: #e08aa0;
  /* states, used inside mocks only */
  --ok: #1c7a4c;
  --ok-tint: #dcefe4;
  --warn: #8f5200;
  --warn-tint: #f7e8cc;
  /* on dark */
  --on-ink: #f4f2ed;
  --on-ink-2: #b9b4aa;
  --ink-raised: #23211f;
  --ink-rule: #3a3733;

  --sans: "Isnad Sans", "Isnad Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Isnad Mono", "Isnad Arabic", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --label: var(--mono);

  --frame: 1240px;
  --pad: clamp(20px, 3.4vw, 40px);
  --gap: 10px;

  --ls-h1: -0.05em;
  --ls-h2: -0.04em;
  --ls-h3: -0.02em;
  --lh-h1: 0.94;
  --lh-h2: 1.02;
  --lh-body: 1.5;
}

[dir="rtl"] {
  /* Arabic joins its letters: no tracking, and more room between lines. */
  --ls-h1: 0;
  --ls-h2: 0;
  --ls-h3: 0;
  --lh-h1: 1.22;
  --lh-h2: 1.3;
  --lh-body: 1.8;
  --label: var(--sans);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, dl, dd, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
b { font-weight: 600; }
svg { display: block; }
::selection { background: var(--accent-tint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
/* Kept for screen readers when a heading is not shown. */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- type ---------- */

.h1 {
  font-size: clamp(2.7rem, 8vw, 6.5rem);
  font-weight: 650;
  letter-spacing: var(--ls-h1);
  line-height: var(--lh-h1);
  text-wrap: balance;
  max-width: 16ch;
  margin-inline: auto;
}
[dir="rtl"] .h1 { font-weight: 700; max-width: 15ch; font-size: clamp(2.5rem, 7vw, 5.6rem); }

.h2 {
  font-size: clamp(1.9rem, 4.3vw, 3.35rem);
  font-weight: 620;
  letter-spacing: var(--ls-h2);
  line-height: var(--lh-h2);
  text-wrap: balance;
  max-width: 17ch;
}
[dir="rtl"] .h2 { font-weight: 700; max-width: 20ch; }

.lede {
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  color: var(--ink-2);
  max-width: 56ch;
  margin-inline: auto;
  text-wrap: pretty;
}
.lede b { color: var(--ink); }
/* The four beats of the punch line sit on their own line. */
.hero .lede b { display: block; margin-block-start: 6px; font-weight: 600; }
.lede--start { margin-inline: 0; margin-block-start: 20px; }

.label {
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
[dir="rtl"] .label { letter-spacing: 0; font-size: 13px; }

.fine { font-size: 13px; color: var(--muted); max-width: 70ch; }

.tag {
  font-family: var(--label);
  font-size: 11px;
  line-height: 1;
  padding: 4px 6px;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--label);
  font-size: 13px;
  line-height: 1;
  padding: 11px 14px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 14px; height: 14px; }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }
.btn--ghost { border-color: transparent; }
.btn--ghost:hover { background: var(--cell); color: var(--ink); }
.btn--paper { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.btn--paper:hover { background: var(--accent-on-ink); border-color: var(--accent-on-ink); color: var(--ink); }
[dir="rtl"] .btn { font-size: 14px; }
[dir="rtl"] .i-arrow { transform: scaleX(-1); }
#lang { font-family: var(--sans); font-size: 14px; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-block-end: 1px solid var(--rule);
}
.nav__in {
  max-width: var(--frame);
  margin-inline: auto;
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 680;
  letter-spacing: -0.04em;
  text-decoration: none;
}
[dir="rtl"] .brand { letter-spacing: 0; font-weight: 700; }
.brand__mark { width: 28px; height: 28px; }
.mark-bg { fill: var(--ink); }
.mark-a, .mark-b { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.mark-a { stroke: var(--paper); }
.mark-b { stroke: var(--accent-on-ink); }
.nav__links { display: flex; gap: 24px; font-family: var(--label); font-size: 13px; }
[dir="rtl"] .nav__links { font-size: 14px; }
.nav__links a { text-decoration: none; color: var(--ink-2); padding-block: 6px; }
.nav__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.nav__end { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }

/* ---------- ruled frame with corner marks ---------- */

.frame {
  max-width: var(--frame);
  margin-inline: auto;
  border-inline: 1px solid var(--rule);
}
.band {
  position: relative;
  padding: clamp(56px, 7.5vw, 108px) var(--pad);
  border-block-start: 1px solid var(--rule);
}
.band:first-child { border-block-start: 0; }
.band--tight { padding-block: 32px; }
/* A small cross where each rule meets the frame. */
.band::before, .band::after {
  content: "";
  position: absolute;
  inset-block-start: -8px;
  width: 15px;
  height: 15px;
  pointer-events: none;
  background:
    linear-gradient(var(--rule-strong), var(--rule-strong)) 50% 50% / 1px 100% no-repeat,
    linear-gradient(var(--rule-strong), var(--rule-strong)) 50% 50% / 100% 1px no-repeat;
}
.band::before { inset-inline-start: -8px; }
.band::after { inset-inline-end: -8px; }
.band:first-child::before, .band:first-child::after { display: none; }

/* ---------- hero ---------- */

.hero { text-align: center; padding-block: clamp(64px, 10vw, 132px) clamp(56px, 8vw, 104px); }
.pill {
  display: inline-flex;
  font-family: var(--label);
  font-size: 12.5px;
  line-height: 1;
  padding: 8px 11px;
  border-radius: 4px;
  background: var(--accent-tint);
  color: var(--accent);
  margin-block-end: 30px;
}
[dir="rtl"] .pill { font-size: 13.5px; }
.hero .lede { margin-block-start: 30px; }
.hero__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-block-start: 34px; }


/* ---------- sources ---------- */

.sources { display: grid; gap: 22px; justify-items: center; }
.sources__list {
  display: grid;
  grid-template-columns: repeat(5, auto);
  justify-content: space-between;
  gap: 16px 28px;
  width: 100%;
}
.sources__list li { display: inline-flex; align-items: center; gap: 9px; font-weight: 550; font-size: 15px; white-space: nowrap; }
.sources__list svg { width: 20px; height: 20px; color: var(--ink-2); flex: none; }

/* ---------- bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  margin-block-start: clamp(32px, 5vw, 56px);
}
.c8 { grid-column: span 8; }
.c6 { grid-column: span 6; }
.c4 { grid-column: span 4; }
.c3 { grid-column: span 3; }
.cell {
  background: var(--cell);
  border-radius: 3px;
  padding: 26px 26px 0;
  display: flex;
  flex-direction: column;
  min-height: 372px;
  overflow: hidden;
}
.cell h3 { font-size: 1.1875rem; font-weight: 620; letter-spacing: var(--ls-h3); line-height: 1.2; }
[dir="rtl"] .cell h3 { font-weight: 700; line-height: 1.5; }
.cell > p { margin-block-start: 8px; font-size: 14.5px; color: var(--ink-2); max-width: 46ch; }
.mock { margin-block-start: auto; padding-block: 26px; font-family: var(--label); font-size: 12.5px; line-height: 1.5; }
[dir="rtl"] .mock { font-size: 13.5px; }
.mock--bleed { padding-block-end: 0; }
/* Figures, codes and file names stay monospaced in both languages. */
.mock [dir="ltr"], .receipt [dir="ltr"], .events, .code { font-family: var(--mono); }
.mock svg { width: 15px; height: 15px; flex: none; }

/* window */
.win {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-block-end: 0;
  border-radius: 8px 8px 0 0;
  transition: transform 0.25s ease;
}
.win--full { border-block-end: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden; }
.cell:hover .mock--bleed .win { transform: translateY(-4px); }
.win__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-block-end: 1.5px solid var(--ink);
}
.win__title { font-weight: 600; }
.win__lead { padding: 14px 14px 10px; color: var(--ink-2); }
.win__lead b { color: var(--ink); }
.rows { margin: 0 14px; border: 1.5px solid var(--ink); border-block-end: 0; }
.rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-block-end: 1.5px solid var(--ink);
}
.rows li:last-child { color: var(--muted); }
.mock--bleed .rows { margin-block-end: 20px; }
.state { color: var(--muted); }
.state--on { color: var(--ok); font-weight: 600; }

/* checks */
.checks { display: grid; gap: 4px; }
.checks li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 3px;
  background: var(--card);
}
.checks svg { color: var(--ok); }
.checks .is-hl { background: var(--ink); color: var(--on-ink); }
.checks .is-hl svg { color: var(--on-ink); }

/* grades */
.grades { display: grid; gap: 4px; }
.grades li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 3px; background: var(--card); color: var(--ink-2); }
.grade__l {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  font-weight: 700;
  font-family: var(--mono);
  flex: none;
}
.grades .is-top { background: var(--ink); color: var(--on-ink); }

/* seal */
.seal { position: relative; background: var(--card); border: 1.5px solid var(--ink); border-radius: 6px; padding: 12px 14px; }
.seal__file { font-weight: 600; padding-block-end: 10px; border-block-end: 1.5px dashed var(--rule-strong); text-align: start; }
.seal__hash { padding-block: 10px; color: var(--ink-2); letter-spacing: 0.02em; text-align: start; }
.seal__foot { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11.5px; }
[dir="rtl"] .seal__foot { font-size: 12.5px; }
.seal__stamp {
  position: absolute;
  inset-block-start: -16px;
  inset-inline-end: -10px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-ink);
  box-shadow: 0 0 0 4px var(--cell);
  transform: rotate(-10deg);
  transition: transform 0.3s ease;
}
.seal__stamp svg { width: 20px; height: 20px; }
.cell:hover .seal__stamp { transform: rotate(0deg) scale(1.06); }
.seal { margin-block-start: 16px; }

/* enrichment */
.enrich { display: grid; gap: 6px; }
.enrich__raw { padding: 8px 10px; background: var(--card); border-radius: 3px; color: var(--muted); overflow-wrap: anywhere; }
.enrich__out { display: flex; align-items: center; gap: 6px; padding-inline-start: 8px; margin-block-end: 6px; color: var(--muted); }
.enrich__out:last-child { margin-block-end: 0; }
[dir="rtl"] .enrich__out svg { transform: scaleX(-1); }
.chip { padding: 4px 8px; border-radius: 3px; background: var(--ink); color: var(--on-ink); }

/* api */
.api { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 10px; align-items: end; }
.code {
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.62;
  padding: 16px 18px 20px;
  border-radius: 8px 8px 0 0;
  overflow-x: auto;
  text-align: start;
  transition: transform 0.25s ease;
}
.cell:hover .code { transform: translateY(-4px); }
.c-dim { color: var(--on-ink-2); }
.c-key { color: var(--on-ink-2); }
.c-hl { background: var(--accent-on-ink); color: var(--ink); padding: 1px 3px; border-radius: 2px; }
.events {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-block-end: 0;
  border-radius: 8px 8px 0 0;
  padding: 12px 14px 18px;
  display: grid;
  gap: 7px;
  text-align: start;
}
.events li { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.events__head { color: var(--muted); padding-block-end: 6px; border-block-end: 1.5px dashed var(--rule-strong); margin-block-end: 2px; }
.dot { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--ink); flex: none; }
.dot--on { background: var(--ink); }

/* statement demo */
.st { width: 100%; border-collapse: collapse; }
.st th, .st td { padding: 8px 12px; text-align: start; white-space: nowrap; }
.st th { font-weight: 500; color: var(--muted); border-block-end: 1.5px solid var(--ink); }
.st td { border-block-end: 1px solid var(--rule); }
.st .num { text-align: end; font-variant-numeric: tabular-nums; }
.st__open td { color: var(--muted); }
.st tbody tr { transition: background-color 0.2s ease; }
.st tr.is-bad { background: var(--warn-tint); }
.st tr.is-bad td:last-child { color: var(--warn); font-weight: 600; }
.amt {
  font: inherit;
  font-variant-numeric: tabular-nums;
  color: inherit;
  background: none;
  border: 0;
  border-block-end: 1.5px dotted var(--rule-strong);
  padding: 1px 2px;
  margin: -1px -2px;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.amt:hover { background: var(--ink); color: var(--on-ink); border-block-end-color: transparent; }
.amt.is-edited { background: var(--accent); color: var(--on-ink); border-block-end-color: transparent; }
.demo__status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--ok-tint);
  color: var(--ok);
  min-height: 46px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.demo__status.is-bad { background: var(--warn-tint); color: var(--warn); }
.demo__grade {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  font-weight: 700;
  flex: none;
}
.demo__msg { flex: 1; min-width: 0; }
.demo__reset {
  font: inherit;
  color: inherit;
  background: none;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  padding: 3px 8px;
  cursor: pointer;
  flex: none;
}
.demo__reset:hover { background: var(--warn); color: var(--on-ink); border-color: var(--warn); }
.cell .fine { font-family: var(--sans); margin-block-start: 14px; }

/* ai draft */
.draft { background: var(--card); border: 1.5px solid var(--ink); border-radius: 6px; padding: 12px 14px; display: grid; gap: 10px; }
.draft__label { color: var(--muted); font-size: 11.5px; }
[dir="rtl"] .draft__label { font-size: 12.5px; }
.draft__text { font-family: var(--sans); font-size: 14.5px; line-height: 1.75; color: var(--ink); }
.fig { font-family: var(--mono); font-size: 12.5px; padding: 2px 5px; margin-inline: 2px; border: 1.5px solid var(--ink); border-radius: 3px; white-space: nowrap; }
.draft__check { display: flex; align-items: center; gap: 6px; color: var(--ok); padding-block-start: 10px; border-block-start: 1.5px dashed var(--rule-strong); }


/* ---------- chain ---------- */

.chain {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-block-start: clamp(40px, 6vw, 72px);
}
.step { position: relative; padding: 26px 22px 0 0; padding-inline: 0 22px; border-block-start: 1.5px solid var(--rule-strong); }
.step::before {
  content: "";
  position: absolute;
  inset-block-start: -7.5px;
  inset-inline-start: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--rule-strong);
}
.step::after {
  content: "";
  position: absolute;
  inset-block-start: -1.5px;
  inset-inline-start: 0;
  height: 1.5px;
  width: 0;
  background: var(--ink);
}
.step.is-on::before { background: var(--accent); border-color: var(--accent); }
.step.is-on::after { width: 100%; }
.step:last-child.is-on::after { width: 0; }
@media (prefers-reduced-motion: no-preference) {
  .step::before { transition: background-color 0.3s ease, border-color 0.3s ease; transition-delay: calc(var(--i) * 0.28s); }
  .step::after { transition: width 0.28s linear; transition-delay: calc(var(--i) * 0.28s + 0.05s); }
}
.step__n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.step h3 { font-size: 1.375rem; font-weight: 620; letter-spacing: var(--ls-h3); margin-block: 6px 8px; }
[dir="rtl"] .step h3 { font-weight: 700; }
.step p { font-size: 14.5px; color: var(--ink-2); max-width: 26ch; }

/* ---------- who ---------- */

.who {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block-start: clamp(32px, 5vw, 56px);
  border-block: 1px solid var(--rule);
}
.who article { padding: 28px 28px 32px; border-inline-start: 1px solid var(--rule); }
.who article:first-child { border-inline-start: 0; padding-inline-start: 0; }
.who h3 { font-size: 1.25rem; font-weight: 620; letter-spacing: var(--ls-h3); line-height: 1.25; }
[dir="rtl"] .who h3 { font-weight: 700; line-height: 1.5; }
.who p { margin-block-start: 10px; color: var(--ink-2); font-size: 15px; }

.first {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 28px;
  margin-block-start: var(--gap);
  padding: 22px 26px;
  background: var(--cell);
  border-radius: 3px;
}
.first__text { font-size: 15.5px; color: var(--ink-2); max-width: 72ch; }
.first__text b { color: var(--ink); }

/* ---------- access ---------- */

.band--ink { background: var(--ink); color: var(--on-ink); border-block-start-color: var(--ink); }
.band--ink .lede { color: var(--on-ink-2); }
.band--ink .btn { margin-block-start: 32px; }
.band--ink :focus-visible { outline-color: var(--accent-on-ink); }

/* ---------- kicker: the product a cell belongs to ---------- */

.kicker {
  font-family: var(--label);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-block-end: 10px;
}
[dir="rtl"] .kicker { letter-spacing: 0; font-size: 13px; font-weight: 600; }
.kicker--lg { font-size: 12.5px; margin-block-end: 18px; }
[dir="rtl"] .kicker--lg { font-size: 14px; }

/* ---------- product line (menu) ---------- */

.products { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px clamp(32px, 6vw, 88px); align-items: start; }
.products .h2 { max-width: 11ch; }
[dir="rtl"] .products .h2 { max-width: 14ch; }
.menu { border-block-start: 1px solid var(--rule-strong); }
.menu li { border-block-end: 1px solid var(--rule-strong); }
.menu a {
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr) 16px;
  align-items: baseline;
  gap: 6px 20px;
  padding: 18px 4px;
  text-decoration: none;
  transition: background-color 0.15s ease, padding 0.2s ease;
}
.menu b { font-size: 1.1875rem; font-weight: 640; letter-spacing: -0.02em; }
[dir="rtl"] .menu b { letter-spacing: 0; font-weight: 700; }
.menu span { color: var(--ink-2); font-size: 15px; }
.menu .i-chev { width: 16px; height: 16px; color: var(--muted); align-self: center; transition: transform 0.2s ease, color 0.2s ease; }
[dir="rtl"] .menu .i-chev { transform: scaleX(-1); }
.menu a:hover { background: var(--cell); padding-inline: 14px 10px; }
.menu a:hover .i-chev { color: var(--accent); transform: translateX(3px); }
[dir="rtl"] .menu a:hover .i-chev { transform: scaleX(-1) translateX(3px); }

/* ---------- credit evidence ---------- */

.facts li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-block-end: 1px solid var(--rule);
}
.facts li:last-child { border-block-end: 0; }
.facts li > span:first-child { color: var(--ink-2); }
.facts b { font-weight: 600; font-variant-numeric: tabular-nums; }
.facts svg { width: 16px; height: 16px; color: var(--muted); }
.grade__l--sm { width: 18px; height: 18px; font-size: 11px; border-radius: 3px; background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

/* ---------- private AI ---------- */

.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block-start: clamp(36px, 5vw, 60px);
  border-block: 1px solid var(--rule);
}
.tiers article { padding: 28px 28px 32px; border-inline-start: 1px solid var(--rule); }
.tiers article:first-child { border-inline-start: 0; padding-inline-start: 0; }
.tiers h3 { font-size: 1.375rem; font-weight: 620; letter-spacing: var(--ls-h3); margin-block: 16px 10px; }
[dir="rtl"] .tiers h3 { font-weight: 700; }
.tiers p { color: var(--ink-2); font-size: 15px; max-width: 38ch; }
.tag--accent { background: var(--accent); border-color: var(--accent); color: var(--on-ink); }

.ai {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px clamp(32px, 6vw, 88px);
  align-items: start;
  margin-block-start: clamp(36px, 5vw, 60px);
}
.rules { display: grid; gap: 22px; padding-block-start: 6px; }
.rules li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; }
.rules svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--ink); color: var(--on-ink); }
.rules b { display: block; font-size: 1.125rem; font-weight: 620; letter-spacing: var(--ls-h3); }
[dir="rtl"] .rules b { font-weight: 700; }
.rules span { display: block; color: var(--ink-2); font-size: 15px; margin-block-start: 3px; }

.receipt {
  font-family: var(--label);
  font-size: 13px;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 1px 0 var(--rule-strong), 0 24px 48px -28px rgb(20 19 18 / 0.45);
}
[dir="rtl"] .receipt { font-size: 14px; }
.receipt__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; font-weight: 600; }
.receipt .tag { color: var(--on-ink-2); border-color: var(--ink-rule); }
.receipt dl > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 14px; border-block-start: 1.5px dashed var(--ink-rule); }
.receipt dt { color: var(--on-ink-2); }
.receipt dd { text-align: end; }
.receipt bdi { font-family: var(--mono); }
.receipt__zero { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding-inline: 6px; border-radius: 3px; background: var(--accent-on-ink); color: var(--ink); font-family: var(--mono); font-weight: 700; }
.receipt .draft { margin-block-start: 6px; border: 0; border-radius: 6px; color: var(--ink); }
.draft__check svg { width: 15px; height: 15px; flex: none; }

/* ---------- what the AI does ---------- */

.h2--wide { max-width: 22ch; }
.job__n { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-block-end: 10px; }
.log { display: grid; gap: 4px; font-family: var(--mono); }
.log li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 3px; background: var(--card); }
.log li > :first-child { color: var(--muted); }
.log .is-ok { background: var(--ok-tint); color: var(--ok); }
.log .is-ok > :first-child { color: var(--ok); }
.log .is-bad { background: var(--warn-tint); color: var(--warn); }
.log .is-bad > :first-child { color: var(--warn); }
.log__grade { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1.5px solid var(--warn); color: var(--warn); border-radius: 3px; font-weight: 700; line-height: 1; }
.log--map li > :first-child { color: var(--ink-2); font-family: var(--sans); }
.log--map li > :last-child { color: var(--ink); font-weight: 600; }

.agent { display: grid; gap: 8px; }
.agent p { margin: 0; }
.agent__q {
  justify-self: end;
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 10px 10px 2px 10px;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
}
[dir="rtl"] .agent__q { border-radius: 10px 10px 10px 2px; }
.agent__q bdi { font-family: var(--mono); font-size: 0.92em; }
.agent__call { padding: 8px 12px; border-radius: 4px; background: var(--ink-raised); color: var(--on-ink); overflow-x: auto; white-space: nowrap; text-align: start; }
.agent__consent { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 4px; background: var(--ok-tint); color: var(--ok); }
.agent__a {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 10px 10px 10px 2px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.8;
}
[dir="rtl"] .agent__a { border-radius: 10px 10px 2px 10px; }
.agent__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; color: var(--muted); padding-inline: 2px; }
.agent__foot span:last-child { color: var(--ok); }

/* ---------- bank wall ---------- */

.banks { display: grid; gap: 26px; padding-block: clamp(44px, 5.5vw, 72px); }
.banks__h { font-size: clamp(1.25rem, 2.2vw, 1.625rem); font-weight: 620; letter-spacing: var(--ls-h3); line-height: 1.25; max-width: 32ch; }
[dir="rtl"] .banks__h { font-weight: 700; line-height: 1.5; }
.banks__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
/* A partner-style wall: every logo in one ink tone, so white and coloured marks read alike. */
.logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-block: 1px solid var(--rule-strong); }
.logos li {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 30px 18px 38px;
  border-inline-start: 1px solid var(--rule);
  transition: background-color 0.2s ease;
}
.logos li:first-child { border-inline-start: 0; }
.logos img {
  display: block;
  max-width: 100%;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0.78;
  transition: opacity 0.25s ease;
}
.logos li:hover { background: var(--card); }
.logos li:hover img { opacity: 1; }
/* Optical balance: some marks carry more ink than others. */
.logos img[src*="qnb"] { max-height: 30px; }
.logos img[src*="qiib"] { max-height: 30px; }
/* QIB's mark is a filled disc with a cut-out: a flat silhouette would erase it, so it is greyed instead. */
.logos img[src$="qib.svg"] { filter: grayscale(1) contrast(1.25) brightness(0.55); opacity: 0.9; }
.logos .tag { position: absolute; inset-block-end: 12px; inset-inline-start: 50%; transform: translateX(-50%); }
[dir="rtl"] .logos .tag { transform: translateX(50%); }
.banks__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; }
.sources__list--also { display: flex; flex-wrap: wrap; gap: 10px 22px; width: auto; }
.sources__list--also li { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.sources__list--also svg { width: 17px; height: 17px; }
.sources__label { font-family: var(--label); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
[dir="rtl"] .sources__label { text-transform: none; letter-spacing: 0; font-size: 13px; }

/* ---------- design partners ---------- */

.seats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-block-start: clamp(32px, 5vw, 56px); }
.seats article {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 8px;
  min-height: 210px;
  padding: 24px;
  border: 1.5px dashed var(--rule-strong);
  border-radius: 4px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.seats article:hover { border-color: var(--accent); background: var(--card); }
.seats__n { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.seats h3 { font-size: 1.25rem; font-weight: 620; letter-spacing: var(--ls-h3); }
[dir="rtl"] .seats h3 { font-weight: 700; }
.seats p { color: var(--ink-2); font-size: 15px; }
.seats .tag { justify-self: start; }
.seats__cta { margin-block-start: 28px; }

/* ---------- access ---------- */

.access { text-align: center; }
.access .h2 { margin-inline: auto; }
.access .lede { margin-block-start: 20px; }

/* ---------- footer ---------- */

.foot { display: grid; gap: 10px; }
.foot__brand { font-weight: 650; font-size: 17px; }
.foot__where { font-family: var(--label); font-weight: 400; font-size: 12.5px; color: var(--muted); margin-inline-start: 10px; }
[dir="rtl"] .foot__where { font-size: 13.5px; }

/* ---------- responsive ---------- */

@media (max-width: 1040px) {
  .c4 { grid-column: span 3; }
  .c8 { grid-column: 1 / -1; }
  .products { grid-template-columns: 1fr; }
  .nav__links { gap: 16px; }
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sources__list { grid-template-columns: repeat(3, auto); justify-content: space-around; }
  .chain { grid-template-columns: 1fr; margin-inline-start: 6px; }
  .step { border-block-start: 0; border-inline-start: 1.5px solid var(--rule-strong); padding: 0 0 30px 0; padding-inline: 26px 0; }
  .step:last-child { padding-block-end: 0; }
  .step::before { inset-block-start: 4px; inset-inline-start: -7.5px; }
  .step::after { inset-block-start: 0; inset-inline-start: -1.5px; width: 1.5px; height: 0; }
  .step.is-on::after { width: 1.5px; height: 100%; }
  .step:last-child.is-on::after { height: 0; }
  .step p { max-width: 52ch; }
  @media (prefers-reduced-motion: no-preference) {
    .step::after { transition: height 0.28s linear; transition-delay: calc(var(--i) * 0.28s + 0.05s); }
  }
  .who { grid-template-columns: 1fr; }
  .who article { border-inline-start: 0; border-block-start: 1px solid var(--rule); padding-inline: 0; }
  .who article:first-child { border-block-start: 0; }
  .first { grid-template-columns: 1fr; justify-items: start; }
  .tiers { grid-template-columns: 1fr; }
  .tiers article { border-inline-start: 0; border-block-start: 1px solid var(--rule); padding-inline: 0; }
  .tiers article:first-child { border-block-start: 0; }
  .ai { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logos li:nth-child(n + 4) { border-block-start: 1px solid var(--rule); }
  .logos li:nth-child(4) { border-inline-start: 0; }
  .seats { grid-template-columns: 1fr; }
  .seats article { min-height: 0; }
}

@media (max-width: 760px) {
  .products { grid-template-columns: 1fr; }
  .products .h2 { max-width: 16ch; }
  .menu a { grid-template-columns: minmax(0, 1fr) 16px; }
  .menu span { grid-column: 1; grid-row: 2; font-size: 14px; }
  .menu .i-chev { grid-column: 2; grid-row: 1 / span 2; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos li { min-height: 112px; padding: 24px 14px 34px; }
  .logos li:nth-child(n + 3) { border-block-start: 1px solid var(--rule); }
  .logos li:nth-child(odd) { border-inline-start: 0; }
  .logos li:nth-child(4) { border-inline-start: 1px solid var(--rule); }
  .logos img { max-height: 32px; }
  .receipt dl > div { flex-wrap: wrap; gap: 4px 16px; }
  .nav__links { display: none; }
  .nav__in { gap: 12px; }
  .frame { border-inline: 0; }
  .band::before, .band::after { display: none; }
  .c8, .c6, .c4, .c3 { grid-column: 1 / -1; }
  .agent__q, .agent__a { max-width: 100%; }
  .cell { min-height: 0; padding: 22px 20px 0; }
  .api { grid-template-columns: 1fr; }
  .api .events { display: none; }
  .sources__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
  .sources__list li { white-space: normal; font-size: 14.5px; }
}

@media (max-width: 480px) {
  .sources__list { grid-template-columns: 1fr; justify-items: start; }
  .st th, .st td { padding: 8px 8px; }
  .st th:first-child, .st td:first-child { display: none; }
  .demo__status { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .nav .btn--solid { display: none; }
  .mock { font-size: 11.5px; }
  [dir="rtl"] .mock { font-size: 12.5px; }
  .code { font-size: 11.5px; }
}
