/* ==========================================================================
   Maashee — main stylesheet
   One file for both languages. Layout uses logical properties
   (margin-inline, padding-inline, inset-inline...) so the Arabic pages
   (dir="rtl") mirror automatically.
   ========================================================================== */

/* Hidden SVG icon sprite at the top of every page */
.sprite { position: absolute; }

/* ---------- Fonts (self-hosted, SIL Open Font License — see assets/fonts/OFL.txt) ---------- */
@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/readex-pro-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/readex-pro-latin.woff2") format("woff2");
  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;
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand: lapis blue (think Ishtar Gate) + date-gold */
  --lapis-50: #eef2ff;
  --lapis-100: #dfe6ff;
  --lapis-300: #8ea3ff;
  --lapis-400: #5f7bff;
  --lapis-500: #3457f0;
  --lapis-600: #2443d0;
  --lapis-700: #1c34a3;
  --lapis-900: #0f1b5c;
  --gold-300: #ffd98a;
  --gold-400: #f8c35c;
  --gold-500: #eea932;
  --gold-600: #c9851a;
  --mint-400: #3fd6b5;

  --bg: #f6f7fb;
  --bg-alt: #eef1f8;
  --surface: #ffffff;
  --surface-2: #f8f9fd;
  --text: #0e1330;
  --text-muted: #56607f;
  --text-soft: #7a84a3;
  --border: #e2e6f1;
  --border-strong: #cfd5e6;
  --primary: var(--lapis-600);
  --primary-hover: var(--lapis-700);
  --primary-soft: var(--lapis-50);
  --on-primary: #ffffff;
  --accent: var(--gold-500);
  --accent-soft: #fff4dc;
  --ring: rgba(52, 87, 240, 0.45);
  --success: #12966f;
  --danger: #c93838;

  --shadow-sm: 0 1px 2px rgba(14, 19, 48, 0.06), 0 1px 1px rgba(14, 19, 48, 0.04);
  --shadow-md: 0 6px 20px -6px rgba(14, 19, 48, 0.14), 0 2px 6px rgba(14, 19, 48, 0.05);
  --shadow-lg: 0 24px 60px -18px rgba(15, 27, 92, 0.28), 0 8px 20px -8px rgba(14, 19, 48, 0.10);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 112px);
  --header-h: 72px;

  --font: "Readex Pro", "Segoe UI", system-ui, -apple-system, "SF Arabic", "Geeza Pro", "Noto Sans Arabic", "Noto Sans", Tahoma, Arial, sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light dark;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080c1d;
    --bg-alt: #0c122a;
    --surface: #111833;
    --surface-2: #151d3c;
    --text: #eef1fb;
    --text-muted: #a8b0cf;
    --text-soft: #8189ab;
    --border: #212a4f;
    --border-strong: #2d3764;
    --primary: var(--lapis-400);
    --primary-hover: var(--lapis-300);
    --primary-soft: rgba(95, 123, 255, 0.14);
    --on-primary: #ffffff;
    --accent: var(--gold-400);
    --accent-soft: rgba(248, 195, 92, 0.12);
    --ring: rgba(142, 163, 255, 0.55);
    --success: #3fd6a0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, 0.7), 0 8px 20px -8px rgba(0, 0, 0, 0.4);
  }
}
:root[data-theme="dark"] {
    --bg: #080c1d;
    --bg-alt: #0c122a;
    --surface: #111833;
    --surface-2: #151d3c;
    --text: #eef1fb;
    --text-muted: #a8b0cf;
    --text-soft: #8189ab;
    --border: #212a4f;
    --border-strong: #2d3764;
    --primary: var(--lapis-400);
    --primary-hover: var(--lapis-300);
    --primary-soft: rgba(95, 123, 255, 0.14);
    --on-primary: #ffffff;
    --accent: var(--gold-400);
    --accent-soft: rgba(248, 195, 92, 0.12);
    --ring: rgba(142, 163, 255, 0.55);
    --success: #3fd6a0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, 0.7), 0 8px 20px -8px rgba(0, 0, 0, 0.4);
  }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

[dir="rtl"] body { line-height: 1.8; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; line-height: 1.35; }

p, li { text-wrap: pretty; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--gold-300); color: #0e1330; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--on-primary); }

.nowrap { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--primary);
  --btn-fg: var(--on-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
[dir="rtl"] .btn .icon-arrow { transform: scaleX(-1); }

.btn-primary {
  background: linear-gradient(135deg, var(--lapis-500), var(--lapis-700));
  box-shadow: 0 8px 22px -8px rgba(36, 67, 208, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover { box-shadow: 0 12px 28px -8px rgba(36, 67, 208, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.18); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--text-soft); }

.btn-gold {
  --btn-bg: var(--gold-400);
  --btn-fg: #1a1405;
  box-shadow: 0 8px 22px -10px rgba(238, 169, 50, 0.8);
}
.btn-gold:hover { --btn-bg: var(--gold-300); }

.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header { background: var(--bg); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* comfortable tap target on phones */
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-name { line-height: 1; }
[dir="rtl"] .brand-name { font-size: 24px; letter-spacing: 0; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav a:hover,
.nav a[aria-current="true"], .nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
.nav a.nav-cta,
.nav a.nav-cta:hover { color: var(--on-primary); background: linear-gradient(135deg, var(--lapis-500), var(--lapis-700)); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lang-switch:hover { color: var(--text); background: var(--surface); border-color: var(--text-soft); }
.lang-switch svg { width: 16px; height: 16px; opacity: 0.75; }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.theme-toggle:hover { background: var(--surface); border-color: var(--text-soft); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (max-width: 400px) {
  .header-actions { gap: 6px; }
  .lang-switch { padding: 8px 11px; }
  .lang-switch svg { display: none; }
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }

@media (max-width: 1000px) {
  .header-cta { display: none; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  .nav a { padding: 14px 12px; font-size: 17px; border-radius: 12px; }
  .nav .nav-cta { display: flex; margin-top: 10px; }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
}
@media (min-width: 861px) {
  .nav .nav-cta { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 44px); }
.section-head p { font-size: 18px; color: var(--text-muted); margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 14px; }
/* On the dark blue contact panel */
.eyebrow.eyebrow-light { background: rgba(255, 255, 255, 0.12); color: #fff; }
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px) clamp(64px, 9vw, 120px);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  background:
    radial-gradient(40% 50% at 78% 30%, rgba(52, 87, 240, 0.20), transparent 70%),
    radial-gradient(30% 40% at 12% 12%, rgba(248, 195, 92, 0.22), transparent 70%),
    radial-gradient(35% 45% at 60% 95%, rgba(63, 214, 181, 0.12), transparent 70%);
}
[dir="rtl"] .hero-bg::before { transform: scaleX(-1); }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/pattern.svg");
  background-size: 56px 56px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-bg::after { opacity: 0.22; }
}
:root[data-theme="dark"] .hero-bg::after { opacity: 0.22; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero h1 {
  font-size: clamp(40px, 6.2vw, 68px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}
[dir="rtl"] .hero h1 { line-height: 1.3; letter-spacing: 0; font-size: clamp(38px, 5.8vw, 64px); }

.hero h1 .hl {
  background: linear-gradient(100deg, var(--lapis-500) 10%, var(--lapis-400) 45%, var(--gold-500) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* room for letter parts below the line (e.g. the dots under Arabic ي) so the gradient doesn't clip them */
  padding-block: 0.08em 0.3em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero h1 .hl { background-image: linear-gradient(100deg, var(--lapis-300) 10%, #b7c4ff 45%, var(--gold-400) 95%); }
}
:root[data-theme="dark"] .hero h1 .hl { background-image: linear-gradient(100deg, var(--lapis-300) 10%, #b7c4ff 45%, var(--gold-400) 95%); }

.hero .lead {
  font-size: clamp(18px, 1.6vw, 20px);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 15px;
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--success); flex: none; }

/* Hero visual: composed of real HTML so it translates with the page */
.hero-visual {
  position: relative;
  min-height: 590px;
  padding-top: 8px;
}

.mock-window {
  position: relative;
  margin-inline-start: auto;
  width: min(100%, 520px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.mock-bar i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border-strong);
}
.mock-bar i:nth-child(1) { background: #ff6b6b; }
.mock-bar i:nth-child(2) { background: #ffc94d; }
.mock-bar i:nth-child(3) { background: #3fd68c; }
.mock-url {
  flex: 1;
  margin-inline-start: 10px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--text-soft);
  font-size: 12px;
  direction: ltr;
  text-align: start;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
[dir="rtl"] .mock-url { text-align: end; }

.mock-body { padding: 20px; }
.mock-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
}
.mock-chip {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(18, 150, 111, 0.12);
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.mock-kpi {
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.mock-kpi span { display: block; color: var(--text-soft); font-size: 11.5px; line-height: 1.3; }
.mock-kpi strong { display: block; margin-top: 4px; font-size: 17px; font-weight: 650; letter-spacing: -0.01em; white-space: nowrap; }
.mock-kpi em { display: inline-block; direction: ltr; unicode-bidi: isolate; font-style: normal; font-size: 11px; color: var(--success); font-weight: 600; }
.mock-chart {
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 12px 12px 6px;
}
.mock-chart svg { width: 100%; height: auto; }
[dir="rtl"] .mock-chart svg { transform: scaleX(-1); }

.mock-phone {
  position: absolute;
  inset-inline-start: 0;
  top: 262px;
  width: 262px;
  padding: 14px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  animation: floaty 7s ease-in-out infinite;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.chat-avatar {
  width: 34px; height: 34px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--lapis-500), var(--lapis-700));
  color: #fff;
}
.chat-avatar svg { width: 18px; height: 18px; }
.chat-head strong { display: block; font-size: 14px; line-height: 1.2; }
.chat-head small { display: inline-flex; align-items: center; gap: 5px; color: var(--text-soft); font-size: 12px; }
.chat-head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3fd68c; }

.bubble {
  max-width: 88%;
  margin-bottom: 8px;
  padding: 9px 12px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.5;
}
.bubble-in {
  margin-inline-start: auto;
  background: var(--primary-soft);
  color: var(--text);
  border-end-end-radius: 6px;
}
.bubble-out {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-end-start-radius: 6px;
}
.typing {
  display: inline-flex;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-soft);
  animation: blink 1.2s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.2s; }
.typing i:nth-child(3) { animation-delay: 0.4s; }

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  animation: floaty 6s ease-in-out infinite;
}
.float-chip svg { width: 18px; height: 18px; flex: none; }
.float-chip.c1 { top: 318px; inset-inline-end: -14px; animation-delay: -2s; }
.float-chip.c1 svg { color: var(--accent); }
.float-chip.c2 { top: 498px; inset-inline-end: 9%; animation-delay: -4s; }
.float-chip.c2 svg { color: var(--primary); }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes blink {
  0%, 80%, 100% { opacity: 0.25; }
  40% { opacity: 1; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }
}
@media (max-width: 560px) {
  .hero-visual { min-height: 0; padding-bottom: 250px; }
  .mock-window { width: 100%; }
  .mock-phone { width: min(262px, 82%); inset-inline-start: 50%; transform: translateX(-50%); animation: none; top: auto; bottom: 0; }
  [dir="rtl"] .mock-phone { transform: translateX(50%); }
  .float-chip.c2 { display: none; }
  .float-chip.c1 { top: -16px; inset-inline-end: 10px; }
  .mock-kpi strong { font-size: 15px; }
  .mock-body { padding: 14px; }
}

/* ---------- Trust strip ---------- */
.strip {
  border-block: 1px solid var(--border);
  background: var(--surface);
}
.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.strip-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 20px;
}
.strip-item + .strip-item { border-inline-start: 1px solid var(--border); }
.strip-item svg { width: 26px; height: 26px; color: var(--primary); flex: none; }
.strip-item strong { display: block; font-size: 15.5px; line-height: 1.3; }
.strip-item span { display: block; color: var(--text-muted); font-size: 14px; line-height: 1.4; }
@media (max-width: 900px) {
  .strip-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip-item:nth-child(3) { border-inline-start: 0; }
  .strip-item:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 520px) {
  .strip-inner { grid-template-columns: 1fr; }
  .strip-item + .strip-item { border-inline-start: 0; border-top: 1px solid var(--border); }
  .strip-item { padding: 16px 4px; }
}

/* ---------- Cards / services ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 16px; margin-bottom: 16px; }
.card p:last-child { margin-bottom: 0; }

.icon-tile {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
}
.icon-tile svg { width: 26px; height: 26px; }
.icon-tile.gold { background: var(--accent-soft); color: var(--gold-600); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-tile.gold { color: var(--gold-400); }
}
:root[data-theme="dark"] .icon-tile.gold { color: var(--gold-400); }

.tick-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 15px;
  color: var(--text-muted);
}
.tick-list li { position: relative; padding-inline-start: 24px; }
.tick-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: 0.62em;
  width: 10px; height: 6px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-50%) rotate(-45deg);
}

.card-featured {
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(248, 195, 92, 0.18), transparent 60%),
    linear-gradient(160deg, var(--lapis-600), var(--lapis-900));
  border-color: transparent;
  color: #fff;
}
[dir="rtl"] .card-featured {
  background:
    radial-gradient(80% 60% at 0% 0%, rgba(248, 195, 92, 0.18), transparent 60%),
    linear-gradient(200deg, var(--lapis-600), var(--lapis-900));
}
.card-featured p, .card-featured .tick-list { color: rgba(255, 255, 255, 0.82); }
.card-featured .icon-tile { background: rgba(255, 255, 255, 0.12); color: var(--gold-300); }
.card-featured .tick-list li::before { border-color: var(--gold-300); }
.card-featured .badge { background: var(--gold-400); color: #1a1405; }
.card-featured:hover { border-color: transparent; }

.badge {
  position: absolute;
  top: 24px;
  inset-inline-end: 24px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--gold-600);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
[dir="rtl"] .badge { letter-spacing: 0; }


/* ---------- Industries ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  max-width: 960px;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.chips li:hover { border-color: var(--primary); transform: translateY(-2px); }
.chips svg { width: 20px; height: 20px; color: var(--primary); flex: none; }

/* ---------- Process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  inset-inline: 12% 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; padding-inline: 8px; }
.step-num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 0 0 8px var(--bg-alt);
}
.step:last-child .step-num {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  border-color: transparent;
  color: #1a1405;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 15.5px; margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
  .steps::before { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; text-align: start; padding: 0; }
  .step-num { margin: 0; }
}

/* ---------- Why us / about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 940px) { .about-grid { grid-template-columns: 1fr; } }

.about-art {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #070a1c;
  box-shadow: var(--shadow-lg);
}
.about-art img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.about-art figcaption {
  padding: 16px 20px 18px;
  background: #070a1c;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #c9d0ee;
  font-size: 15px;
  line-height: 1.55;
}
.about-art figcaption strong { color: var(--gold-300); font-weight: 650; }

.name-note {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 0 0 28px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.name-note .ar-word {
  flex: none;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-600);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .name-note .ar-word { color: var(--gold-400); }
}
:root[data-theme="dark"] .name-note .ar-word { color: var(--gold-400); }
.name-note p { margin: 0; font-size: 15.5px; color: var(--text); }

.why-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.why-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
.why-list .icon-tile { width: 40px; height: 40px; margin: 0; border-radius: 11px; }
.why-list .icon-tile svg { width: 20px; height: 20px; }
.why-list strong { display: block; font-size: 16.5px; margin-bottom: 2px; }
.why-list span { display: block; color: var(--text-muted); font-size: 15px; line-height: 1.55; }
@media (max-width: 560px) { .why-list { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.faq details[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-weight: 600;
  font-size: 17px;
  text-wrap: balance;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233457f0' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 20px; color: var(--text-muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 5vw, 56px);
  border-radius: 32px;
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(248, 195, 92, 0.16), transparent 60%),
    linear-gradient(150deg, var(--lapis-600), var(--lapis-900) 75%);
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
[dir="rtl"] .contact-wrap {
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(248, 195, 92, 0.16), transparent 60%),
    linear-gradient(210deg, var(--lapis-600), var(--lapis-900) 75%);
}
.contact-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../img/pattern-light.svg");
  background-size: 56px 56px;
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }

.contact-info h2 { font-size: clamp(30px, 4vw, 42px); color: #fff; }
.contact-info > p { color: rgba(255, 255, 255, 0.8); font-size: 17px; }
.contact-lines { display: grid; gap: 12px; margin: 28px 0; padding: 0; list-style: none; }
.contact-lines a, .contact-lines span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.contact-lines a:hover { color: var(--gold-300); }
.contact-lines .ic {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.contact-lines svg { width: 20px; height: 20px; }
.contact-lines .ltr { direction: ltr; unicode-bidi: isolate; }

.social-row { display: flex; gap: 10px; }
.social-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: inherit;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.social-link:hover { color: inherit; background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }
.social-link svg { width: 20px; height: 20px; }

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-md);
}
.form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}
.field label .opt { color: var(--text-soft); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a84a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px;
  background-position: right 14px center;
}
[dir="rtl"] .field select { background-position: left 14px center; }
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-soft); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--ring);
}
.field input[type="tel"], .field input[type="email"] { direction: ltr; }
[dir="rtl"] .field input[type="tel"], [dir="rtl"] .field input[type="email"] { text-align: right; }
[dir="rtl"] .field input[type="tel"]::placeholder, [dir="rtl"] .field input[type="email"]::placeholder { direction: ltr; }
.field .error-msg {
  display: none;
  margin-top: 6px;
  color: var(--danger);
  font-size: 13.5px;
}
.field.has-error input,
.field.has-error textarea { border-color: var(--danger); }
.field.has-error .error-msg { display: block; }

.form-note { margin: 0; color: var(--text-soft); font-size: 13.5px; line-height: 1.5; }
.form-note a { color: inherit; }
.form-status {
  display: none;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(18, 150, 111, 0.1);
  color: var(--success);
  font-size: 14.5px;
  font-weight: 500;
}
.form-status.show { display: block; }
.form-status.is-error { background: rgba(201, 56, 56, 0.1); color: var(--danger); }
.form-status a { color: inherit; font-weight: 700; }
.form button[type="submit"]:disabled { opacity: 0.6; cursor: progress; }
/* Spam trap: a field people never see (bots fill it in). Hidden without moving it off-screen,
   so it can't cause sideways scrolling on the right-to-left pages. */
.form .hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 64px 28px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 44px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-about p { color: var(--text-muted); max-width: 340px; margin: 14px 0 18px; }
.site-footer h4 {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
[dir="rtl"] .site-footer h4 { letter-spacing: 0; font-size: 14px; }
.footer-links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-links .ltr { direction: ltr; unicode-bidi: isolate; }

.site-footer .social-link {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text-muted);
}
.site-footer .social-link:hover { color: var(--primary); background: var(--primary-soft); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 14px;
}
.footer-bottom p { margin: 0; }
.footer-bottom .made {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Guides ---------- */
.eyebrow-link { text-decoration: none; min-height: 40px; padding-inline: 14px; } /* easy to tap on phones */
.eyebrow-link::before { content: none; }
.eyebrow-link::after { content: ""; order: -1; width: 7px; height: 7px; border-inline-start: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
[dir="rtl"] .eyebrow-link::after { transform: rotate(-45deg); }
.eyebrow-link:hover { filter: brightness(0.95); }
.guides-section { padding-top: 0; }
.guides-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 720px) { .guides-grid { grid-template-columns: 1fr; } }
.guide-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.guide-card:hover { color: inherit; }
.guide-card p { flex: 1; }
.guide-more { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 600; }
.guide-more .icon-arrow { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.guide-card:hover .guide-more .icon-arrow { transform: translateX(3px); }
[dir="rtl"] .guide-more .icon-arrow { transform: scaleX(-1); }
[dir="rtl"] .guide-card:hover .guide-more .icon-arrow { transform: scaleX(-1) translateX(3px); }
.guide-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
}
.guide-cta strong { display: block; font-size: 18px; color: var(--text); }
.guide-cta span { color: var(--text-muted); }
.faq-more { margin: 22px 0 0; text-align: center; color: var(--text-muted); }
.faq-more a { font-weight: 600; }

/* ---------- Legal pages ---------- */
.page-hero {
  padding-block: clamp(48px, 7vw, 88px) clamp(28px, 4vw, 44px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); margin: 0; font-size: 17px; }

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  padding-bottom: var(--section-y);
  align-items: start;
}
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; gap: 28px; } }

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14.5px;
}
.toc strong { display: block; margin-bottom: 10px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); }
[dir="rtl"] .toc strong { letter-spacing: 0; }
.toc ol { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.toc a { color: var(--text-muted); text-decoration: none; text-wrap: balance; }
.toc a:hover { color: var(--primary); }
@media (max-width: 900px) { .toc { position: static; } }

.prose { max-width: 760px; }
.prose h2 {
  font-size: 24px;
  margin: 44px 0 12px;
  padding-top: 8px;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-muted); }
.prose strong { color: var(--text); }
.prose ul { padding-inline-start: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--primary); }

.callout {
  display: flex;
  gap: 14px;
  margin: 0 0 32px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  color: var(--text);
  font-size: 15.5px;
}
.callout svg { width: 22px; height: 22px; flex: none; color: var(--primary); margin-top: 3px; }
.callout p { margin: 0; color: var(--text); }
/* "Something bigger in mind?" line under the service cards */
.services-more { margin: 28px 0 0; }
.services-more a { font-weight: 700; white-space: nowrap; }

.placeholder {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--gold-600);
  font-weight: 600;
  border: 1px dashed var(--accent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .placeholder { color: var(--gold-300); }
}
:root[data-theme="dark"] .placeholder { color: var(--gold-300); }

/* ---------- 404 ---------- */
.notfound {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 64px;
}
.notfound .big {
  font-size: clamp(90px, 18vw, 180px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(120deg, var(--lapis-500), var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.notfound .pair { display: grid; gap: 6px; margin-bottom: 28px; }
.notfound .pair p { margin: 0; color: var(--text-muted); font-size: 18px; }
.notfound .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 300;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: #0e1330;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .toast { background: #eef1fb; color: #0e1330; }
}
:root[data-theme="dark"] .toast { background: #eef1fb; color: #0e1330; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .reveal-stagger.in > * { opacity: 1; transform: none; }
.js .reveal-stagger.in > *:nth-child(2) { transition-delay: 0.07s; }
.js .reveal-stagger.in > *:nth-child(3) { transition-delay: 0.14s; }
.js .reveal-stagger.in > *:nth-child(4) { transition-delay: 0.21s; }
.js .reveal-stagger.in > *:nth-child(5) { transition-delay: 0.28s; }
.js .reveal-stagger.in > *:nth-child(6) { transition-delay: 0.35s; }
.js .reveal-stagger.in > *:nth-child(7) { transition-delay: 0.42s; }
.js .reveal-stagger.in > *:nth-child(8) { transition-delay: 0.49s; }

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

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .to-top, .toast, .hero-visual, .toc { display: none !important; }
  body { background: #fff; color: #000; }
  .legal-layout { display: block; }
}

/* ==========================================================================
   AI chat widget (assets/js/chat.js)
   ========================================================================== */
.has-chat .to-top { bottom: 92px; }

.mc-launcher {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 20px;
  z-index: 150;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lapis-500), var(--lapis-700));
  color: #fff;
  box-shadow: 0 12px 30px -8px rgba(36, 67, 208, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.mc-launcher:hover { transform: translateY(-2px) scale(1.03); }
.mc-launcher svg { width: 26px; height: 26px; }
.mc-launcher .mc-ico-close { display: none; }
.mc.is-open .mc-launcher .mc-ico-open { display: none; }
.mc.is-open .mc-launcher .mc-ico-close { display: block; }
.mc-dot {
  position: absolute;
  top: 6px;
  inset-inline-end: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 0 3px var(--bg);
}
.mc.is-open .mc-dot { display: none; }

.mc-panel {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 92px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100vw - 40px));
  height: min(600px, calc(100vh - 120px));
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: mc-in 0.22s var(--ease);
}
.mc-panel[hidden] { display: none; }
@keyframes mc-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.mc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  background: linear-gradient(135deg, var(--lapis-600), var(--lapis-900));
  color: #fff;
}
.mc-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--gold-300);
}
.mc-avatar svg { width: 20px; height: 20px; }
.mc-title { flex: 1; min-width: 0; line-height: 1.3; }
.mc-title strong { display: block; font-size: 15.5px; }
.mc-title small { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255, 255, 255, 0.75); }
.mc-title small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3fd68c; }
.mc-icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}
.mc-icon-btn:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.mc-icon-btn svg { width: 19px; height: 19px; }

.mc-log {
  flex: 1;
  min-height: 0; /* lets the message list shrink (and scroll) when the keyboard takes space */
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--bg);
}
.mc-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
[dir="rtl"] .mc-msg { line-height: 1.75; }
.mc-bot {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-end-start-radius: 6px;
}
.mc-user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--lapis-500), var(--lapis-700));
  color: #fff;
  border-end-end-radius: 6px;
}
.mc-user a { color: #fff; }
.mc-error { border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); color: var(--danger); }
.mc-error a { color: inherit; }
.mc-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.mc-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-soft);
  animation: blink 1.2s infinite;
}
.mc-typing i:nth-child(2) { animation-delay: 0.2s; }
.mc-typing i:nth-child(3) { animation-delay: 0.4s; }

.mc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.mc-chip {
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border));
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--primary);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.mc-chip:hover { background: var(--primary-soft); }

.mc-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 12px 6px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.mc-input {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  resize: none;
  overflow-y: hidden; /* chat.js turns scrolling on once the text is taller than max-height */
}
.mc-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.mc-send {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--lapis-500), var(--lapis-700));
  color: #fff;
  cursor: pointer;
}
.mc-send:disabled { opacity: 0.5; cursor: default; }
.mc-send svg { width: 20px; height: 20px; }
[dir="rtl"] .mc-send svg { transform: scaleX(-1); }
.mc-note {
  margin: 0;
  padding: 2px 14px 10px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}
.mc-note a { color: inherit; }

@media (max-width: 520px) {
  .mc-panel {
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    border-radius: 0;
    border: 0;
  }
  .mc.is-open .mc-launcher { display: none; }
  /* chat.js sets top/height to the visible area above the keyboard; the page behind stays put */
  html.mc-lock, html.mc-lock body { overflow: hidden; }
  .mc-head { padding-top: max(14px, env(safe-area-inset-top)); }
  .mc-note { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}
@media print { .mc { display: none !important; } }
