/* ==========================================================================
   أرقام / NUMBURZ — Premium Saudi FinTech platform
   Arabic-first, true RTL. Design tokens mirror the Stitch design system.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand — pulled from the NUMBURZ logo: navy wordmark + gold Z */
  --navy-900: #0b1526;
  --navy-800: #12213c;
  --navy-700: #1b3054;
  --navy-600: #2a4570;

  --gold-500: #c9a063;
  --gold-400: #dcbb86;
  --gold-100: #f5ebda;

  --green-600: #0e9f6e;
  --green-50: #e7f6f0;
  --red-500: #d64545;
  --red-50: #fdeceC;

  --white: #ffffff;
  --off-white: #fafbfc;
  --gray-100: #f2f4f7;
  --gray-200: #e4e7ec;
  --gray-500: #667085;
  --gray-700: #414b5f;

  /* Radii */
  --r-sm: 8px;
  --r-btn: 12px;
  --r-card: 16px;
  --r-panel: 20px;
  --r-app: 24px;
  --r-pill: 999px;

  /* Elevation — borders do the work, shadows whisper */
  --sh-rest: 0 1px 2px rgba(16, 24, 40, .05);
  --sh-hover: 0 12px 28px rgba(11, 21, 38, .10);
  --sh-float: 0 32px 80px rgba(11, 21, 38, .16);

  /* Layout */
  --maxw: 1200px;
  --gutter: 24px;
  --section-y: 120px;

  --ease: cubic-bezier(.16, 1, .3, 1);

  --font: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0;           /* never track Arabic */
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Numbers, SAR amounts and Latin runs stay LTR inside Arabic text */
.num, [dir="ltr"] { unicode-bidi: isolate; font-variant-numeric: tabular-nums; }

:focus-visible {
  outline: 2px solid var(--navy-800);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--navy-800); line-height: 1.35; font-weight: 700; }
h1 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.28; }
h2 { font-size: clamp(27px, 3.2vw, 44px); }
h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 600; }
h4 { font-size: 19px; font-weight: 600; line-height: 1.45; }

p { max-width: 68ch; }

.lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--gray-700); }
.muted { color: var(--gray-500); }
.small { font-size: 15px; line-height: 1.7; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--off-white); }
.section--dark {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: rgba(255, 255, 255, .75);
  position: relative;
  overflow: hidden;
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

/* Faint grid + gold glow used on dark bands */
.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.section--dark::after {
  content: "";
  position: absolute;
  inset-block-start: -20%;
  inset-inline-end: -10%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(201, 160, 99, .16), transparent 68%);
  pointer-events: none;
}
.section--dark > .wrap { position: relative; z-index: 1; }

.head { margin-block-end: 56px; max-width: 760px; }
.head--center { margin-inline: auto; text-align: center; }
.head--center p { margin-inline: auto; }
.head h2 { margin-block-end: 16px; }

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-500);
  margin-block-end: 14px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  border-radius: 2px;
}
.head--center .eyebrow::after {
  content: "";
  width: 24px; height: 2px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-500));
  border-radius: 2px;
}

/* Grid and flex children default to min-width:auto, which lets a wide child
   (e.g. a 560px dashboard mock) stretch its whole track. Allow shrinking so
   the mock scrolls inside its own container instead of widening the page. */
.hero__grid > *, .about__grid > *, .contact__grid > *, .svc > *,
.chatwin > *, .grid > *, .bento > * { min-width: 0; }

/* Grids — first item sits on the RIGHT because the document is RTL */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-btn);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  transition: background .2s ease, color .2s ease, border-color .2s ease,
              transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--navy-800); color: #fff; }
.btn--primary:hover { background: var(--navy-700); transform: translateY(-1px); box-shadow: var(--sh-hover); }

.btn--secondary { border: 1px solid var(--gray-200); color: var(--navy-800); background: #fff; }
.btn--secondary:hover { border-color: var(--navy-800); background: var(--off-white); }

.btn--onDark { background: #fff; color: var(--navy-800); }
.btn--onDark:hover { background: var(--gold-100); transform: translateY(-1px); }

.btn--ghostDark { border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.btn--ghostDark:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.btn--gold { background: var(--gold-500); color: var(--navy-800); }
.btn--gold:hover { background: var(--gold-400); transform: translateY(-1px); }

.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 15px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy-800);
  font-weight: 600;
  font-size: 16px;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(-4px); }  /* forward = leftward in RTL */

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-card);
  padding: 32px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  border-color: rgba(201, 160, 99, .4);
  transform: translateY(-2px);
  box-shadow: var(--sh-hover);
}
.card h4 { margin-block-end: 10px; }
.card p { font-size: 16px; color: var(--gray-700); }

.icon-tile {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--gray-100);
  color: var(--navy-800);
  display: grid;
  place-items: center;
  margin-block-end: 20px;
}
.icon-tile--gold { background: var(--gold-100); color: var(--gold-500); }
.icon-tile svg { width: 24px; height: 24px; }

/* Cards on dark bands */
.card--dark {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--r-card);
  padding: 28px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.card--dark:hover { border-color: rgba(201, 160, 99, .45); background: rgba(255, 255, 255, .06); transform: translateY(-2px); }
.card--dark h4 { color: #fff; font-size: 18px; margin-block-end: 8px; }
.card--dark p { color: rgba(255, 255, 255, .68); font-size: 15px; }
.card--dark .ico { color: var(--gold-500); margin-block-end: 16px; }
.card--dark .ico svg { width: 24px; height: 24px; }

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--navy-800);
}
.badge--gold { background: var(--gold-100); color: #8a6420; }
.badge--green { background: var(--green-50); color: var(--green-600); }
.badge--red { background: var(--red-50); color: var(--red-500); }
.badge--solidGold { background: var(--gold-500); color: var(--navy-800); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: 88px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-block-end: 1px solid transparent;
  transition: height .25s var(--ease), border-color .25s ease, box-shadow .25s ease;
}
.header.is-stuck { height: 68px; border-block-end-color: var(--gray-200); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.header__inner {
  height: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo sits at the RIGHT edge (start of an RTL line) */
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__ar { font-size: 24px; font-weight: 700; color: var(--navy-800); letter-spacing: 0; }
.logo__en {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: .18em;
  margin-block-start: 3px;
}
.logo--light .logo__ar { color: #fff; }
.logo--light .logo__en { color: rgba(255, 255, 255, .55); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-700);
  padding-block: 6px;
  position: relative;
  transition: color .2s ease;
}
.nav a:hover { color: var(--navy-800); }
.nav a.is-active { color: var(--navy-800); font-weight: 600; }
.nav a.is-active::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
}

/* Actions sit at the LEFT edge */
.header__actions { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }

.lang {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-pill);
  padding: 3px;
  background: #fff;
}
.lang button {
  padding: 5px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  transition: background .2s ease, color .2s ease;
}
.lang button.is-active { background: var(--navy-800); color: #fff; }

.header__login { font-size: 15px; font-weight: 500; color: var(--navy-800); padding: 8px 6px; }
.header__login:hover { color: var(--navy-700); }

.burger { display: none; width: 44px; height: 44px; place-items: center; color: var(--navy-800); }
.burger svg { width: 24px; height: 24px; }

/* Mobile drawer — docks to and slides in from the RIGHT in RTL.
   inset-inline-start resolves to the right edge under dir="rtl", so the
   closed state is pushed off-screen rightward with a positive translateX. */
.drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  width: min(88vw, 360px);
  background: #fff;
  z-index: 120;
  padding: 24px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .32s var(--ease), visibility .32s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
[dir="ltr"] .drawer { transform: translateX(-100%); }
.drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-block-end: 20px; }
.drawer a.drawer__link {
  padding: 14px 4px;
  font-size: 17px;
  font-weight: 500;
  color: var(--navy-800);
  border-block-end: 1px solid var(--gray-200);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.drawer__cta { margin-block-start: 24px; display: grid; gap: 12px; }
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(11, 21, 38, .45);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.scrim.is-open { opacity: 1; visibility: visible; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding-block: 152px 120px;
  position: relative;
  overflow: hidden;
  background: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset-block-end: -30%;
  inset-inline-start: -15%;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(18, 33, 60, .06), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18, 33, 60, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 33, 60, .025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero__copy { max-width: 560px; }
.hero h1 { margin-block: 20px 18px; }
.hero h1 .accent { color: var(--gold-500); }
.hero__sub { font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; color: var(--navy-800); line-height: 1.6; margin-block-end: 22px; }
.hero__body p { font-size: 18px; line-height: 1.9; color: var(--gray-700); max-width: 60ch; }
.hero__body p + p { margin-block-start: 16px; }
.hero__cta { display: flex; gap: 14px; margin-block-start: 34px; flex-wrap: wrap; }
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-block-start: 34px;
  padding-block-start: 28px;
  border-block-start: 1px solid var(--gray-200);
  font-size: 14px;
  color: var(--gray-500);
}
.hero__trust span { display: flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 16px; height: 16px; color: var(--green-600); flex: none; }

/* ---------- Product mockups ---------- */
.mock {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-app);
  box-shadow: var(--sh-float);
  overflow: hidden;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-block-end: 1px solid var(--gray-200);
  background: var(--off-white);
}
.mock__title { font-size: 14px; font-weight: 600; color: var(--navy-800); }
.mock__dots { margin-inline-start: auto; display: flex; gap: 6px; }  /* dots land on the LEFT */
.mock__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--gray-200); display: block; }
.mock__body { display: flex; }

/* Icon rail docks to the RIGHT edge in RTL */
.mock__rail {
  flex: none;
  width: 56px;
  border-inline-start: 1px solid var(--gray-200);
  padding-block: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--off-white);
  order: -1;
}
.mock__rail i {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--gray-500);
}
.mock__rail i svg { width: 18px; height: 18px; }
.mock__rail i.is-active { background: var(--navy-800); color: var(--gold-400); }
.mock__main { flex: 1; padding: 18px; min-width: 0; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-block-end: 16px; }
.kpi { border: 1px solid var(--gray-200); border-radius: 12px; padding: 12px; background: #fff; }
.kpi__label { font-size: 11px; color: var(--gray-500); margin-block-end: 6px; }
.kpi__val { font-size: 15px; font-weight: 700; color: var(--navy-800); font-variant-numeric: tabular-nums; line-height: 1.3; }
.kpi__delta { display: inline-flex; align-items: center; gap: 3px; margin-block-start: 6px; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: var(--r-pill); }
.kpi__delta.up { background: var(--green-50); color: var(--green-600); }

.panel { border: 1px solid var(--gray-200); border-radius: 12px; padding: 14px; background: #fff; }
.panel__head { display: flex; align-items: center; justify-content: space-between; margin-block-end: 12px; }
.panel__title { font-size: 13px; font-weight: 600; color: var(--navy-800); }

.chart { width: 100%; height: auto; display: block; }

/* Transaction rows: Arabic description on the right, amount on the far left */
.txn { display: flex; align-items: center; gap: 10px; padding-block: 9px; border-block-end: 1px solid var(--gray-200); }
.txn:last-child { border-block-end: 0; }
.txn__ico { width: 30px; height: 30px; border-radius: 8px; background: var(--gray-100); color: var(--navy-800); display: grid; place-items: center; flex: none; }
.txn__ico svg { width: 15px; height: 15px; }
.txn__desc { font-size: 12.5px; font-weight: 500; color: var(--navy-800); line-height: 1.4; }
.txn__meta { font-size: 11px; color: var(--gray-500); }
.txn__amt { margin-inline-start: auto; font-size: 12.5px; font-weight: 600; color: var(--navy-800); font-variant-numeric: tabular-nums; flex: none; }
.txn__amt.neg { color: var(--red-500); }

/* Floating AI card over the hero dashboard */
.hero__visual { position: relative; }
.ai-float {
  position: absolute;
  inset-block-end: -34px;
  inset-inline-start: -28px;
  width: 330px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-panel);
  box-shadow: var(--sh-float);
  overflow: hidden;
  z-index: 2;
}
.ai-float__head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; background: var(--navy-800); }
.ai-float__spark { width: 28px; height: 28px; border-radius: 8px; background: rgba(201, 160, 99, .18); color: var(--gold-400); display: grid; place-items: center; flex: none; }
.ai-float__spark svg { width: 15px; height: 15px; }
.ai-float__name { font-size: 13px; font-weight: 600; color: #fff; }
.ai-float__status { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(255, 255, 255, .6); }
.ai-float__status i { width: 6px; height: 6px; border-radius: 50%; background: var(--green-600); display: block; }
.ai-float__body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ai-float__input {
  display: flex; align-items: center; gap: 8px;
  margin: 0 14px 14px;
  padding: 9px 12px;
  background: var(--gray-100);
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--gray-500);
}
.ai-float__send { margin-inline-start: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--navy-800); color: #fff; display: grid; place-items: center; flex: none; }
.ai-float__send svg { width: 13px; height: 13px; }

/* Chat bubbles — user on the right, assistant on the left.
   In an RTL column flex container the cross axis starts on the right,
   so flex-start = right and flex-end = left. */
.bubble { max-width: 88%; padding: 10px 14px; font-size: 12.5px; line-height: 1.75; border-radius: 14px; }
.bubble--user { background: var(--navy-800); color: #fff; align-self: flex-start; border-end-start-radius: 4px; }
.bubble--ai { background: var(--gray-100); color: var(--gray-700); align-self: flex-end; border-end-end-radius: 4px; }
.bubble--ai b { color: var(--navy-800); font-weight: 700; }
.chip-inline {
  display: inline-flex; align-items: center;
  padding: 1px 7px;
  border-radius: var(--r-pill);
  background: var(--green-50);
  color: var(--green-600);
  font-size: 11px;
  font-weight: 700;
}

.float-chip {
  position: absolute;
  inset-block-start: -18px;
  inset-inline-end: -18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-hover);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy-800);
  z-index: 2;
}
.float-chip svg { width: 16px; height: 16px; color: var(--green-600); flex: none; }

/* ==========================================================================
   ABOUT — data journey
   ========================================================================== */
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.about__copy p { font-size: 18px; line-height: 1.9; }
.about__copy p + p { margin-block-start: 18px; }

.flow { display: flex; flex-direction: column; gap: 14px; position: relative; }
.flow::before {
  content: "";
  position: absolute;
  inset-block: 24px;
  inset-inline-start: 27px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-500), var(--navy-800));
  border-radius: 2px;
}
.flow__item { display: flex; gap: 16px; position: relative; z-index: 1; }
.flow__dot {
  width: 56px; height: 56px;
  flex: none;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--gray-200);
  color: var(--navy-800);
  display: grid;
  place-items: center;
  box-shadow: var(--sh-rest);
}
.flow__dot svg { width: 22px; height: 22px; }
.flow__card { flex: 1; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-card); padding: 16px 18px; }
.flow__card h4 { font-size: 16px; margin-block-end: 4px; }
.flow__card p { font-size: 14px; color: var(--gray-500); margin-block-end: 10px; }
.flow__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.flow__chips span { font-size: 11px; padding: 3px 9px; border-radius: var(--r-pill); background: var(--gray-100); color: var(--gray-700); }
.flow__chips span.gold { background: var(--gold-100); color: #8a6420; }
.flow__chips span.green { background: var(--green-50); color: var(--green-600); }
.flow__mini { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.flow__mini i { flex: 1; background: var(--gray-200); border-radius: 2px; display: block; }
.flow__mini i.on { background: var(--navy-800); }
.flow__mini i.gold { background: var(--gold-500); }
.flow__kpi { display: flex; align-items: center; gap: 10px; }
.flow__kpi b { font-size: 17px; color: var(--navy-800); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   SERVICES — RTL tabs
   ========================================================================== */
/* Wraps on wide screens so no tab is clipped; becomes a scrolling RTL rail
   on narrow ones (see the 768px block). */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-block-end: 40px;
  scrollbar-width: none;
  padding-block-end: 4px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  padding: 11px 22px;
  border-radius: var(--r-pill);
  border: 1px solid var(--gray-200);
  background: #fff;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-500);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
  min-height: 44px;
}
.tab:hover { color: var(--navy-800); border-color: var(--navy-600); }
.tab.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; font-weight: 600; }

.tabpanel { display: none; }
.tabpanel.is-active { display: block; animation: fadeUp .35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.svc {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-panel);
  padding: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.svc h3 { margin-block-end: 14px; }
.svc__lead { font-size: 18px; color: var(--gray-700); margin-block-end: 26px; }
.svc__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-block-end: 26px; }
.svc__list li { display: flex; align-items: flex-start; gap: 9px; font-size: 15px; color: var(--gray-700); line-height: 1.6; }
.svc__list svg { width: 17px; height: 17px; color: var(--gold-500); flex: none; margin-block-start: 4px; }

/* Ledger table */
.ledger__head, .ledger__row {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 10px;
  align-items: center;
  padding-block: 10px;
}
.ledger__head { font-size: 11px; font-weight: 600; color: var(--gray-500); border-block-end: 1px solid var(--gray-200); }
.ledger__row { border-block-end: 1px solid var(--gray-200); font-size: 12.5px; }
.ledger__row:last-of-type { border-block-end: 0; }
.ledger__desc { font-weight: 500; color: var(--navy-800); line-height: 1.45; }
.ledger__amt { text-align: end; font-weight: 600; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.ledger__amt.neg { color: var(--red-500); }
.ledger__foot {
  display: flex; align-items: center; gap: 12px;
  margin-block-start: 14px; padding-block-start: 14px;
  border-block-start: 1px solid var(--gray-200);
  font-size: 12.5px; color: var(--gray-700);
}
.ring { width: 38px; height: 38px; flex: none; }
.seg { display: inline-flex; border: 1px solid var(--gray-200); border-radius: var(--r-sm); overflow: hidden; }
.seg span { padding: 5px 12px; font-size: 11px; color: var(--gray-500); }
.seg span.on { background: var(--navy-800); color: #fff; font-weight: 600; }

/* ==========================================================================
   AI ASSISTANT
   ========================================================================== */
.chatwin {
  max-width: 1000px;
  margin-inline: auto;
  background: #fff;
  /* This window sits on a dark band — reset the inherited light text
     so copy on its light surfaces stays legible. */
  color: var(--gray-700);
  border-radius: var(--r-panel);
  box-shadow: var(--sh-float);
  overflow: hidden;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
}
.chatwin__side { background: var(--off-white); border-inline-start: 1px solid var(--gray-200); padding: 22px; }
.chatwin__side h4 { font-size: 13px; color: var(--gray-500); font-weight: 600; margin-block-end: 14px; }
.qbtn {
  display: flex; align-items: flex-start; gap: 9px;
  width: 100%;
  text-align: start;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--gray-700);
  transition: background .2s ease, color .2s ease;
  margin-block-end: 4px;
}
.qbtn svg { width: 15px; height: 15px; color: var(--gold-500); flex: none; margin-block-start: 4px; }
.qbtn:hover { background: var(--gray-100); color: var(--navy-800); }
.qbtn.is-active { background: rgba(18, 33, 60, .07); color: var(--navy-800); font-weight: 600; }

.chatwin__main { padding: 26px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.msg { display: flex; flex-direction: column; gap: 10px; }
.msg__q { align-self: flex-start; max-width: 76%; background: var(--navy-800); color: #fff; padding: 12px 18px; border-radius: 16px; border-end-start-radius: 5px; font-size: 15px; line-height: 1.7; }
/* row-reverse puts the assistant avatar on the outer (left) edge in RTL */
.msg__a { align-self: flex-end; max-width: 88%; display: flex; flex-direction: row-reverse; gap: 11px; }
.msg__avatar { width: 30px; height: 30px; border-radius: 9px; background: var(--gold-100); color: var(--gold-500); display: grid; place-items: center; flex: none; }
.msg__avatar svg { width: 16px; height: 16px; }
.msg__bubble { background: #f6f7f9; color: var(--gray-700); border-radius: 16px; border-end-end-radius: 5px; padding: 14px 18px; font-size: 15px; line-height: 1.75; min-width: 0; }
.msg__bubble b { color: var(--navy-800); }
.msg__viz { margin-block-start: 12px; padding-block-start: 12px; border-block-start: 1px solid var(--gray-200); }

.hbar { display: flex; align-items: center; gap: 10px; margin-block-end: 7px; font-size: 12px; }
.hbar__name { width: 62px; flex: none; color: var(--gray-500); }
.hbar__track { flex: 1; height: 7px; background: var(--gray-200); border-radius: 4px; overflow: hidden; }
.hbar__fill { height: 100%; background: var(--navy-800); border-radius: 4px; display: block; }
.hbar__fill.gold { background: var(--gold-500); }
.hbar__val { width: 38px; flex: none; text-align: end; font-weight: 600; color: var(--navy-800); font-variant-numeric: tabular-nums; }

.inv { display: flex; align-items: center; gap: 10px; padding-block: 8px; border-block-end: 1px solid var(--gray-200); font-size: 12.5px; }
.inv:last-child { border-block-end: 0; }
.inv__name { color: var(--navy-800); font-weight: 500; }
.inv__amt { margin-inline-start: auto; font-weight: 600; color: var(--navy-800); font-variant-numeric: tabular-nums; }

.chatwin__input {
  display: flex; align-items: center; gap: 10px;
  margin-block-start: auto;
  padding: 11px 16px;
  background: var(--gray-100);
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--gray-500);
}
.chatwin__input svg { width: 18px; height: 18px; flex: none; }
.chatwin__send { margin-inline-start: auto; width: 34px; height: 34px; border-radius: 50%; background: var(--navy-800); color: #fff; display: grid; place-items: center; flex: none; }
.chatwin__send svg { width: 16px; height: 16px; }

.caps { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-block-start: 36px; }
.caps span {
  padding: 9px 20px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px;
  color: rgba(255, 255, 255, .8);
}

/* ==========================================================================
   BENTO FEATURES
   ========================================================================== */
/* Tile spans total 16 across 4 columns, so the grid closes cleanly.
   `dense` backfills any hole if a tile's span changes later. */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 20px; }
.bento .card { padding: 26px; display: flex; flex-direction: column; }
.bento .card h4 { font-size: 18px; }
.bento .card p { font-size: 14.5px; line-height: 1.75; color: var(--gray-500); }
.bento .icon-tile { width: 42px; height: 42px; margin-block-end: 16px; }
.bento .icon-tile svg { width: 21px; height: 21px; }
.span2 { grid-column: span 2; }
.rows2 { grid-row: span 2; }
.bento__viz { margin-block-start: 18px; padding-block-start: 16px; border-block-start: 1px solid var(--gray-200); }

.acct { display: flex; align-items: center; gap: 10px; padding-block: 7px; font-size: 12.5px; }
.acct__mark { width: 26px; height: 26px; border-radius: 7px; background: var(--gray-100); flex: none; }
.acct__bal { margin-inline-start: auto; font-weight: 600; color: var(--navy-800); font-variant-numeric: tabular-nums; }

.roles { width: 100%; font-size: 12px; border-collapse: collapse; }
.roles td { padding-block: 7px; border-block-end: 1px solid var(--gray-200); }
.roles tr:last-child td { border-block-end: 0; }
.toggle { width: 30px; height: 17px; border-radius: var(--r-pill); background: var(--gray-200); position: relative; display: inline-block; }
.toggle::after { content: ""; position: absolute; inset-block-start: 2px; inset-inline-end: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; }
.toggle.on { background: var(--green-600); }
.toggle.on::after { inset-inline-end: auto; inset-inline-start: 2px; }

.audit { font-size: 12px; }
.audit li { display: flex; align-items: center; gap: 8px; padding-block: 6px; }
.audit time { margin-inline-start: auto; color: var(--gray-500); font-size: 11px; flex: none; }
.audit i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); flex: none; display: block; }

.entities li { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; font-size: 12.5px; }
.entities li.on { background: var(--gray-100); font-weight: 600; color: var(--navy-800); }
.entities i { width: 20px; height: 20px; border-radius: 6px; background: var(--gray-200); flex: none; display: block; }
.entities li.on i { background: var(--navy-800); }

/* ==========================================================================
   INTEGRATIONS
   ========================================================================== */
.integ { text-align: center; padding: 30px 18px; }
.integ__mark {
  width: 56px; height: 56px;
  margin-inline: auto;
  margin-block-end: 16px;
  border-radius: 14px;
  background: var(--gray-100);
  color: var(--navy-800);
  display: grid;
  place-items: center;
}
.integ__mark svg { width: 26px; height: 26px; }
.integ h4 { font-size: 15.5px; line-height: 1.5; }

/* ==========================================================================
   WHY — hairline rows
   ========================================================================== */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-block-start: 1px solid var(--gray-200); }
.why__item {
  padding: 32px 24px;
  border-block-end: 1px solid var(--gray-200);
  border-inline-start: 1px solid var(--gray-200);
  transition: background .2s ease;
}
.why__item:nth-child(4n) { border-inline-start: 0; }
.why__item:hover { background: var(--off-white); }
.why__item .ico { color: var(--gold-500); margin-block-end: 14px; }
.why__item .ico svg { width: 24px; height: 24px; }
.why__item h4 { font-size: 17px; margin-block-end: 8px; }
.why__item p { font-size: 14.5px; color: var(--gray-500); line-height: 1.7; }

/* ==========================================================================
   HOW IT WORKS — RTL timeline
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; position: relative; }
.steps::before {
  content: "";
  position: absolute;
  inset-block-start: 27px;
  inset-inline: 10%;
  height: 2px;
  background: var(--gray-200);
}
.steps::after {
  content: "";
  position: absolute;
  inset-block-start: 27px;
  inset-inline-end: 10%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-500));
  transition: width 1.1s var(--ease);
}
.steps.is-lit::after { width: 80%; }
.step { text-align: center; position: relative; z-index: 1; }
.step__num {
  width: 54px; height: 54px;
  margin-inline: auto;
  margin-block-end: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--gray-200);
  color: var(--navy-800);
  font-size: 18px;
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: border-color .3s ease, background .3s ease, color .3s ease;
  font-variant-numeric: tabular-nums;
}
.steps.is-lit .step__num { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.step h4 { font-size: 18px; margin-block-end: 8px; }
.step p { font-size: 14.5px; color: var(--gray-500); margin-inline: auto; }

/* ==========================================================================
   PRICING
   ========================================================================== */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plan {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-panel);
  padding: 40px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.plan .btn { margin-block-start: auto; }
.plan:hover { box-shadow: var(--sh-hover); transform: translateY(-2px); }
.plan--featured { border: 2px solid var(--navy-800); box-shadow: var(--sh-hover); }
.plan__badge {
  position: absolute;
  inset-block-start: -14px;
  inset-inline-start: 50%;
  transform: translateX(50%);   /* RTL-correct centring */
  white-space: nowrap;
}
.plan__name { font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--gray-500); margin-block-end: 14px; }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin-block-end: 14px; }
.plan__price b { font-size: 42px; font-weight: 700; color: var(--navy-800); line-height: 1.1; font-variant-numeric: tabular-nums; }
/* direct child only — the isolated figure inside <b> must stay at 42px */
.plan__price > span { font-size: 15px; color: var(--gray-500); }
.plan__desc { font-size: 15px; color: var(--gray-500); line-height: 1.75; margin-block-end: 24px; min-height: 54px; }
.plan__list { display: grid; gap: 12px; margin-block-end: 32px; flex: 1; }
.plan__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.6; }
.plan__list svg { width: 17px; height: 17px; color: var(--gold-500); flex: none; margin-block-start: 3px; }

.custom {
  margin-block-start: 32px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-card);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.custom h3 { font-size: 24px; margin-block-end: 8px; }
.custom p { font-size: 16px; color: var(--gray-700); }
.custom .btn { margin-inline-start: auto; }

/* ==========================================================================
   SECURITY
   ========================================================================== */
.sec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.sec-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--r-card);
  padding: 22px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .82);
  transition: border-color .2s ease, background .2s ease;
}
.sec-item:hover { border-color: rgba(201, 160, 99, .45); background: rgba(255, 255, 255, .06); }
.sec-item svg { width: 21px; height: 21px; color: var(--gold-500); flex: none; margin-block-start: 3px; }
.sec-highlight {
  text-align: center;
  margin-block-start: 48px;
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--gold-500);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 880px; margin-inline: auto; }
.faq__item { border-block-end: 1px solid var(--gray-200); position: relative; transition: background .25s ease; }
.faq__item.is-open { background: var(--off-white); }
.faq__item.is-open::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-500), var(--gold-400));
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
  text-align: start;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-800);
  line-height: 1.6;
  min-height: 44px;
}
.faq__icon {
  margin-inline-start: auto;   /* icon sits at the LEFT end */
  width: 30px; height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--navy-800);
  display: grid;
  place-items: center;
  transition: transform .3s var(--ease), background .2s ease, color .2s ease;
}
.faq__icon svg { width: 16px; height: 16px; }
.faq__item.is-open .faq__icon { transform: rotate(180deg); background: var(--navy-800); color: #fff; }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 20px 26px; font-size: 17px; line-height: 1.85; color: var(--gray-700); max-width: 74ch; }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.finalcta { text-align: center; padding-block: 140px; }
.finalcta h2 { font-size: clamp(30px, 3.6vw, 50px); margin-block-end: 22px; }
.finalcta p { max-width: 70ch; margin-inline: auto; font-size: clamp(16px, 1.4vw, 19px); color: rgba(255, 255, 255, .75); }
.finalcta__highlight { margin-block-start: 26px; font-size: clamp(18px, 1.9vw, 24px); font-weight: 600; color: var(--gold-500); }
.finalcta__btns { display: flex; justify-content: center; gap: 16px; margin-block-start: 40px; flex-wrap: wrap; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.contact__points { margin-block-start: 34px; display: grid; gap: 20px; }
.contact__point { display: flex; gap: 14px; align-items: flex-start; }
.contact__point .ico { width: 40px; height: 40px; border-radius: 11px; background: var(--gold-100); color: var(--gold-500); display: grid; place-items: center; flex: none; }
.contact__point .ico svg { width: 19px; height: 19px; }
.contact__point h4 { font-size: 16px; margin-block-end: 4px; }
.contact__point p { font-size: 14.5px; color: var(--gray-500); }

.form {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-panel);
  padding: 40px;
  box-shadow: var(--sh-rest);
}
.form__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--navy-800); text-align: start; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: 15px;
  color: var(--navy-800);
  text-align: start;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: var(--gray-500); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy-800);
  box-shadow: 0 0 0 4px rgba(18, 33, 60, .08);
}
/* Select: native chevron off, custom one on the LEFT end */
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  background-size: 17px;
  padding-inline-start: 40px;
}
.tel { display: flex; align-items: stretch; gap: 0; }
.tel__prefix {
  display: grid; place-items: center;
  padding-inline: 14px;
  border: 1px solid var(--gray-200);
  border-inline-start: 0;                /* joins the input on its LEFT */
  border-start-end-radius: 0;
  border-end-end-radius: 0;
  border-start-start-radius: var(--r-sm);
  border-end-start-radius: var(--r-sm);
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: 14px;
  flex: none;
}
.tel input { border-start-start-radius: 0; border-end-start-radius: 0; }
.form__submit { margin-block-start: 26px; }
.form__alt { text-align: center; margin-block-start: 16px; font-size: 15px; }
.form__alt a { color: var(--navy-800); font-weight: 600; border-block-end: 1px solid var(--gold-500); padding-block-end: 2px; }
.form__note { margin-block-start: 14px; font-size: 13px; color: var(--gray-500); text-align: center; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, .65); padding-block: 80px 0; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 40px; padding-block-end: 56px; }
.footer__brand p { font-size: 15px; color: rgba(255, 255, 255, .6); margin-block-start: 16px; max-width: 34ch; }
.footer__col h4 { font-size: 15px; font-weight: 600; color: #fff; margin-block-end: 18px; }
.footer__col li { margin-block-end: 11px; }
.footer__col a { font-size: 15px; color: rgba(255, 255, 255, .65); transition: color .2s ease; }
.footer__col a:hover { color: var(--gold-400); }
.footer__bottom {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 26px;
  border-block-start: 1px solid rgba(255, 255, 255, .10);
  font-size: 14px;
  color: rgba(255, 255, 255, .5);
}
.footer__lang { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.footer__lang button { padding: 5px 12px; border-radius: var(--r-pill); font-size: 13px; color: rgba(255, 255, 255, .55); }
.footer__lang button.is-active { background: rgba(255, 255, 255, .10); color: #fff; font-weight: 600; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive — 1280 / 1024 / 768 / 480
   ========================================================================== */
@media (max-width: 1280px) {
  :root { --section-y: 96px; }
  .hero__grid { gap: 40px; }
  .ai-float { width: 300px; inset-inline-start: -14px; }
}

@media (max-width: 1024px) {
  :root { --section-y: 88px; }
  .nav, .header__login { display: none; }
  .burger { display: grid; }
  .header__actions { gap: 8px; }

  .hero { padding-block: 128px 96px; }
  .hero__grid, .about__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { max-width: none; }
  .about__grid { gap: 48px; }
  .svc { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 32px; }
  .chatwin { grid-template-columns: minmax(0, 1fr); }
  .chatwin__side { border-inline-start: 0; border-block-end: 1px solid var(--gray-200); }
  .bento, .g4, .sec-grid, .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why__item:nth-child(4n) { border-inline-start: 1px solid var(--gray-200); }
  .why__item:nth-child(2n) { border-inline-start: 0; }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .plan { padding: 28px 18px; }
  .plan__price b { font-size: 34px; }
  .plan__desc { font-size: 14px; min-height: 48px; }
  .plan__list li { font-size: 13.5px; gap: 8px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps::before { inset-block: 27px 27px; inset-inline: auto; inset-inline-end: 26px; width: 2px; height: auto; }
  .steps::after { display: none; }
  .step { display: flex; gap: 18px; text-align: start; padding-block-end: 28px; }
  .step__num { margin: 0; flex: none; }
  .step p { margin-inline: 0; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .custom { flex-direction: column; align-items: flex-start; }
  .custom .btn { margin-inline-start: 0; }
}

@media (max-width: 768px) {
  :root { --section-y: 64px; --gutter: 20px; }
  body { font-size: 16px; }

  /* Phone header carries only the logo and the menu button — the language
     switcher and CTAs live inside the drawer. */
  .header .lang, .header__actions > .btn { display: none; }

  .hero { padding-block: 116px 72px; }
  .hero__body p { font-size: 16.5px; }
  .hero__cta .btn { flex: 1; min-width: 150px; }

  /* Mockups keep their legible width and scroll inside their own container
     rather than shrinking — and rather than widening the page. */
  .mock__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .mock__scroll::-webkit-scrollbar { display: none; }
  .mock__scroll > .mock { min-width: 560px; }
  .hero__visual { margin-inline: 0; }
  .ai-float { position: static; width: auto; margin: 20px var(--gutter) 0; }
  .float-chip { display: none; }

  /* Tab rail becomes a single horizontally scrolling RTL line on phones */
  .tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; }

  .g2, .g3, .g4, .bento, .sec-grid, .why, .form__grid { grid-template-columns: minmax(0, 1fr); }
  .span2, .rows2 { grid-column: auto; grid-row: auto; }
  .why__item, .why__item:nth-child(2n), .why__item:nth-child(4n) { border-inline-start: 0; padding-inline: 0; }
  .svc__list { grid-template-columns: 1fr; }
  .ledger__head, .ledger__row { grid-template-columns: 1.8fr 1fr 1fr; }
  .ledger__head span:nth-child(3), .ledger__row > *:nth-child(3) { display: none; }
  .form { padding: 26px 22px; }
  .custom { padding: 26px 22px; }
  .plans { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .plan--featured { order: -1; }
  .plan { padding: 32px 24px; }
  .msg__q, .msg__a { max-width: 96%; }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__lang { margin-inline-start: 0; }
  .caps span { font-size: 13px; padding: 8px 14px; }
}

@media (max-width: 480px) {
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .plan { padding: 26px 18px; }
  .plan__badge { font-size: 11px; padding: 3px 10px; }
  .plan__price b { font-size: 32px; }
  .plan__desc { font-size: 14px; min-height: auto; margin-block-end: 18px; }
  .plan__list { gap: 10px; margin-block-end: 24px; }
  .plan__list li { font-size: 13.5px; }
  .faq__q { font-size: 16.5px; padding-inline: 14px; }
  .faq__a p { padding-inline: 14px; font-size: 16px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .header, .drawer, .scrim, .finalcta__btns { display: none; }
  .section--dark { background: #fff; color: #000; }
}
