/* InnovateX Tech - company shell stays neutral; products carry the color. */

:root {
  color-scheme: light;
  /* Surface / content */
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;          /* 16.8:1 on #fff */
  --text-2: #6e6e73;        /* 5.1:1 on #fff, 4.6:1 on #f5f5f7 */
  --hairline: rgba(0, 0, 0, .1);
  --card: #ffffff;

  /* Action */
  --action: #0071e3;        /* white text on it: 4.6:1 */
  --link: #0066cc;          /* 5.6:1 on #fff */

  /* WhatChat - sampled from the app icon */
  --wc-ink: #072e29;        /* tile, one step deeper than the icon */
  --wc-brand: #0e4d45;      /* icon green; 9.7:1 on #fff */
  --wc-light: #ffffff;      /* icon bubble */
  --wc-mint: #7be495;       /* icon dot; 9.3:1 on ink */
  --wc-text: #f6f2e7;       /* icon cream; 13.1:1 on ink */
  --wc-text-2: #a8cdc2;     /* 8.5:1 on ink, 5.6:1 on brand */
  --wc-accent: var(--wc-brand);

  /* Forsa - sampled from its logo */
  --fx-red: #d1212b;        /* white text on it: 5.3:1 */
  --fx-deep: #6c121e;
  --fx-grey: #e7e7e7;       /* logo background */
  --fx-accent: #b01b25;     /* red as text: 5.6:1 on grey, 6.9:1 on #fff */
  --fx-series: #d1212b;     /* chart marks; validated vs #fff */

  /* Folyo - mint world */
  --fo-mint: #1db584;
  --fo-deep: #0b6b4f;       /* 6.6:1 on #fff */
  --fo-tint: #e7f7f0;
  --on-fo: #ffffff;         /* text on --fo-deep: 6.6:1 */

  --nav-bg: rgba(255, 255, 255, .72);
  --focus: #0071e3;

  --radius-l: 28px;
  --radius-m: 18px;
  --radius-s: 12px;
  --gutter: 16px;
  --max: 1120px;

  --font-en: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-ar: -apple-system, BlinkMacSystemFont, "SF Arabic", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

/* Dark: follows the system unless the visitor picked a theme with the switch */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000000;
    --bg-alt: #1c1c1e;
    --text: #f5f5f7;
    --text-2: #a1a1a6;      /* 8.3:1 on #000, 6.9:1 on #1c1c1e */
    --hairline: rgba(255, 255, 255, .14);
    --card: #1c1c1e;
    --action: #0071e3;
    --link: #2997ff;        /* 7.2:1 on #000 */
    --fo-deep: #4fd4a6;     /* used as text on dark */
    --on-fo: #04241a;       /* text on --fo-deep: 9.5:1 */
    --wc-accent: var(--wc-mint);
    --fx-accent: #ff6b72;   /* 6.2:1 on #1c1c1e */
    --fx-series: #f0444c;   /* chart marks; validated vs #1c1c1e */
    --fo-tint: #10291f;
    --nav-bg: rgba(22, 22, 23, .72);
    --focus: #2997ff;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --bg-alt: #1c1c1e;
  --text: #f5f5f7;
  --text-2: #a1a1a6;      /* 8.3:1 on #000, 6.9:1 on #1c1c1e */
  --hairline: rgba(255, 255, 255, .14);
  --card: #1c1c1e;
  --action: #0071e3;
  --link: #2997ff;        /* 7.2:1 on #000 */
  --fo-deep: #4fd4a6;     /* used as text on dark */
  --on-fo: #04241a;       /* text on --fo-deep: 9.5:1 */
  --wc-accent: var(--wc-mint);
    --fx-accent: #ff6b72;   /* 6.2:1 on #1c1c1e */
    --fx-series: #f0444c;   /* chart marks; validated vs #1c1c1e */
  --fo-tint: #10291f;
  --nav-bg: rgba(22, 22, 23, .72);
  --focus: #2997ff;
}

@media (prefers-contrast: more) {
  :root { --text-2: var(--text); --hairline: currentColor; }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ar);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: var(--font-en); line-height: 1.5; }

h1, h2, h3, p, ul, figure { margin: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 100;
}
.skip:focus { top: 12px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 52px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.wordmark {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -.02em;
  color: var(--text);
  direction: ltr;
}
.wordmark span { font-weight: 800; }
.wordmark:hover { text-decoration: none; }

.nav-links {
  display: flex;
  gap: 28px;
  margin-inline-start: auto;
}
.nav-links a {
  color: var(--text);
  opacity: .8;
  font-size: 14px;
  padding: 12px 0;
}
.nav-links a:hover { opacity: 1; text-decoration: none; }

.nav-actions { display: flex; align-items: center; gap: 4px; }
.lang {
  min-width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 600 14px/1 var(--font-en);
  border-radius: 10px;
  cursor: pointer;
}
html[lang="en"] .lang { font-family: var(--font-ar); font-size: 16px; }
.lang:hover, .theme:hover { background: var(--bg-alt); }

/* Light / dark switch: shows the mode you will switch to */
.theme {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.theme svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme .ic-moon, .theme[data-mode="dark"] .ic-sun { display: block; }
.theme .ic-sun, .theme[data-mode="dark"] .ic-moon { display: none; }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.menu-btn span {
  position: absolute;
  inset-inline-start: 13px;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform .25s ease;
}
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 819px) {  /* 7 nav links stop fitting below ~820px in English */
  .nav-actions { margin-inline-start: auto; }
  .menu-btn { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 52px;
    inset-inline: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: 22px; font-weight: 600; opacity: 1; padding: 10px 0; }
}

/* ---------- Shared ---------- */
.eyebrow {
  font-family: var(--font-en);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 12px;
}
.lead {
  font-size: 21px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 34em;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 32px;
}
.cta-row.center { justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  transition: filter .2s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-primary { background: var(--action); }
.btn-wc { background: var(--wc-mint); color: var(--wc-ink); }
.btn-fo { background: var(--fo-deep); color: var(--on-fo); }

.link-chev {
  font-size: 17px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
/* Chevron drawn with borders, not a ‹ › glyph: glyphs get mirrored by the
   bidi algorithm in Arabic text. Points right in LTR, left in RTL. */
.link-chev::after {
  content: "";
  flex: none;
  width: .42em;
  height: .42em;
  margin-inline-start: .45em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
[dir="rtl"] .link-chev::after {
  border-right: 0;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 112px var(--gutter) 96px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.015em;
}
html[lang="en"] .hero h1 { letter-spacing: -.035em; line-height: 1.05; }
.hero .lead { margin: 24px auto 0; }
.hero .cta-row { justify-content: center; }

/* ---------- Product tiles ---------- */
.tile {
  max-width: var(--max);
  margin: 0 auto 24px;
  border-radius: var(--radius-l);
  padding: 72px 64px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  overflow: hidden;
}
@media (max-width: 1152px) {
  .tile { margin-inline: var(--gutter); }
}
@media (max-width: 900px) {
  .tile { grid-template-columns: minmax(0, 1fr); padding: 48px 28px; gap: 40px; }
}
@media (max-width: 480px) {
  .tile { padding: 40px 20px; border-radius: 22px; }
}

.product-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-family: var(--font-en);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 14px;
}
.product-ar {
  font-family: var(--font-ar);
  font-weight: 500;
  opacity: .7;
}
.tile h2 {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.01em;
}
html[lang="en"] .tile h2 { letter-spacing: -.03em; line-height: 1.08; }
.tile-lead {
  font-size: 19px;
  line-height: 1.55;
  margin-top: 20px;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 28px;
  display: grid;
  gap: 12px;
}
.feature-list li {
  position: relative;
  padding-inline-start: 28px;
}
.feature-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .5em;
  width: 15px;
  height: 8px;
  /* Physical sides on purpose: a tick is not mirrored in RTL */
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transform-origin: center;
  color: var(--check);
}

/* WhatChat tile: always the icon's deep green, in both appearances */
.tile-whatchat {
  background:
    radial-gradient(110% 90% at 100% 0%, rgba(123, 228, 149, .16), transparent 60%),
    radial-gradient(80% 70% at 0% 100%, rgba(14, 77, 69, .9), transparent 65%),
    var(--wc-ink);
  color: var(--wc-text);
  --check: var(--wc-mint);
}
.tile-whatchat .tile-lead { color: var(--wc-text-2); }
.tile-whatchat .link-chev { color: var(--wc-mint); }

/* Folyo tile */
.tile-folyo {
  background: var(--bg-alt);
  --check: var(--fo-deep);
}
.tile-folyo .tile-lead { color: var(--text-2); }
.tile-folyo .link-chev { color: var(--fo-deep); }
.tile-folyo .product-name { color: var(--fo-deep); }

/* ---------- Signature: WhatChat conversation ---------- */
.chat {
  background: var(--wc-brand);
  border: 1px solid rgba(246, 242, 231, .14);
  border-radius: var(--radius-m);
  max-width: 400px;
  width: 100%;
  justify-self: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.chat-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(246, 242, 231, .12);
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--wc-ink);
  background: var(--wc-mint);
}
.chat-name { font-weight: 600; font-size: 16px; }
.chat-sub { font-size: 13px; color: var(--wc-text-2); }
.chat-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 300px;
}
.tag {
  align-self: center;
  font-size: 12px;
  color: var(--wc-text-2);
  background: rgba(7, 46, 41, .45);
  border-radius: 999px;
  padding: 3px 12px;
  margin-top: 6px;
}
.bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.45;
}
.bubble.out {
  align-self: flex-end;
  background: var(--wc-light);
  color: var(--wc-brand);
  border-end-end-radius: 6px;
}
.bubble.in {
  align-self: flex-start;
  background: rgba(246, 242, 231, .12);
  color: var(--wc-text);
  border-end-start-radius: 6px;
}

/* The one orchestrated moment: messages arrive in order */
.js .chat .chat-body > * {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}
.js .chat.is-live .chat-body > * { opacity: 1; transform: none; }
.js .chat.is-live .chat-body > :nth-child(2) { transition-delay: .25s; }
.js .chat.is-live .chat-body > :nth-child(3) { transition-delay: 1s; }
.js .chat.is-live .chat-body > :nth-child(4) { transition-delay: 1.7s; }
@media (prefers-reduced-motion: reduce) {
  .js .chat .chat-body > * { opacity: 1; transform: none; transition: none; }
}

/* ---------- Signature: Folyo slot picker ---------- */
.booking {
  background: var(--card);
  border-radius: var(--radius-m);
  padding: 24px;
  max-width: 400px;
  width: 100%;
  justify-self: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .08);
  border: 1px solid var(--hairline);
}
.booking-biz { font-size: 14px; color: var(--text-2); }
.booking-step { font-size: 21px; font-weight: 700; margin: 4px 0 18px; }
.days, .slots { display: grid; gap: 8px; }
.days { grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; }
.slots { grid-template-columns: repeat(3, 1fr); }
.day, .slot {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-s);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.day { padding: 8px 4px; font-size: 19px; font-weight: 600; line-height: 1.2; }
.day b { display: block; font-size: 12px; font-weight: 500; color: var(--text-2); margin-bottom: 2px; }
.slot { padding: 10px 4px; font-size: 15px; font-family: var(--font-en); }
.day.is-on, .slot.is-on {
  background: var(--fo-mint);
  border-color: var(--fo-mint);
  color: #04241a;           /* 6.9:1 on mint */
}
.day.is-on b { color: #04241a; }
.slot.is-off { color: var(--text-2); text-decoration: line-through; opacity: .6; }
.booking-confirm {
  display: block;
  margin-top: 18px;
  text-align: center;
  background: var(--fo-deep);
  color: var(--on-fo);
  border-radius: 980px;
  padding: 12px;
  font-weight: 600;
  font-size: 15px;
}

/* ---------- Teams ---------- */
.teams {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px var(--gutter) 40px;
}
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2, .contact h2 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.01em;
}
html[lang="en"] .section-head h2, html[lang="en"] .contact h2 { letter-spacing: -.03em; }
.section-head .lead { margin: 18px auto 0; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 733px) { .team-grid { grid-template-columns: 1fr; } }
.team {
  background: var(--bg-alt);
  border-radius: var(--radius-l);
  padding: 44px 40px;
}
@media (max-width: 480px) { .team { padding: 32px 22px; } }
.team-icon {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 20px;
}
[dir="rtl"] .team-icon { transform: scaleX(-1); }
.team h3 { font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.team p { color: var(--text-2); }
.team ul {
  list-style: none;
  padding: 0;
  margin-top: 24px;
  border-top: 1px solid var(--hairline);
}
.team li {
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
}

/* ---------- Contact ---------- */
.contact {
  max-width: 820px;
  margin: 0 auto;
  padding: 120px var(--gutter) 128px;
  text-align: center;
}
.contact .lead { margin: 18px auto 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-alt);
  font-size: 13px;
  color: var(--text-2);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--text); }

/* ================= Product pages ================= */
.nav-links a[aria-current="page"] { opacity: 1; font-weight: 600; }

.page-top { margin-top: 24px; }
.tile h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.01em;
}
html[lang="en"] .tile h1 { letter-spacing: -.035em; line-height: 1.05; }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 112px var(--gutter) 0;
}
.section-head.start { text-align: start; }

/* Steps: a real sequence, so the numbers carry meaning */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.steps li {
  counter-increment: step;
  border-top: 2px solid var(--step, var(--text));
  padding-top: 24px;
}
.steps li::before {
  content: counter(step);
  display: block;
  font: 600 15px/1 var(--font-en);
  color: var(--step-text, var(--text-2));
  margin-bottom: 14px;
}
.steps h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.steps p { color: var(--text-2); }

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--bg-alt);
  border-radius: var(--radius-m);
  padding: 32px 28px;
}
.feature h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--text-2); }
.feature-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot);
  margin-bottom: 20px;
}

/* Split section: copy beside a vignette */
.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.split h2 {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.15;
  font-weight: 700;
}
html[lang="en"] .split h2 { letter-spacing: -.03em; line-height: 1.08; }
.split .lead { margin-top: 18px; }

/* Quiet statement band */
.statement {
  max-width: 820px;
  margin: 0 auto;
  padding: 112px var(--gutter) 0;
  text-align: center;
}
.statement h2 {
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.15;
  font-weight: 700;
}
html[lang="en"] .statement h2 { letter-spacing: -.03em; }
.statement .lead { margin: 18px auto 0; }

/* FAQ - native disclosure, keyboard-ready */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq details:first-of-type { border-top: 1px solid var(--hairline); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  min-height: 44px;
  font-size: 19px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font: 300 28px/1 var(--font-en);
  color: var(--text-2);
  transition: transform .2s ease;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding: 0 0 24px; max-width: 40em; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Closing call to action */
.closing {
  max-width: 820px;
  margin: 0 auto;
  padding: 120px var(--gutter) 128px;
  text-align: center;
}
.closing h2 {
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.15;
  font-weight: 700;
}

/* Product accents for shared components */
.page-whatchat { --check: var(--wc-accent); --dot: var(--wc-accent); --step: var(--wc-accent); --step-text: var(--wc-accent); }
.page-folyo { --dot: var(--fo-mint); --step: var(--fo-mint); --step-text: var(--fo-deep); }

/* ---------- Folyo calendar vignette ---------- */
.cal {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-m);
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .08);
  font-size: 13px;
}
.cal-grid {
  display: grid;
  grid-template-columns: 44px repeat(3, 1fr);
  grid-template-rows: 34px repeat(6, 36px);
  gap: 0 6px;
  position: relative;
}
.cal-h {
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  align-self: center;
}
.cal-t {
  grid-column: 1;
  color: var(--text-2);
  font-family: var(--font-en);
  font-variant-numeric: tabular-nums;
  border-top: 1px solid var(--hairline);
  padding-top: 2px;
}
.cal-line {
  border-top: 1px solid var(--hairline);
}
.cal-ev {
  margin: 2px 0;
  border-radius: 8px;
  padding: 6px 8px;
  background: var(--fo-tint);
  border-inline-start: 3px solid var(--fo-mint);
  color: var(--text);
  font-weight: 500;
  z-index: 1;
  overflow: hidden;
}
.cal-ev.alt { border-inline-start-color: var(--action); background: color-mix(in srgb, var(--action) 12%, var(--card)); }
.cal-off {
  margin: 2px 0;
  border-radius: 8px;
  background: repeating-linear-gradient(135deg, transparent 0 6px, var(--hairline) 6px 7px);
  color: var(--text-2);
  display: grid;
  place-items: center;
  z-index: 1;
}
@media (max-width: 420px) {
  .cal { padding: 12px 10px; font-size: 11px; }
  .cal-grid { grid-template-columns: 36px repeat(3, 1fr); gap: 0 4px; }
  .cal-h { font-size: 12px; }
  .cal-ev { padding: 4px 5px; line-height: 1.3; }
}

/* Product app icons: the PNG ships with white corners, so clip to the icon's own radius */
.product-logo {
  width: 48px;
  height: 48px;
  border-radius: 22%;
  flex: none;
  box-shadow: 0 0 0 1px rgba(246, 242, 231, .14);
}
.product-logo.lg { width: 72px; height: 72px; }

/* ---------- About InnovateX (home) ---------- */
.about {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter) 112px;
}
.about .section-head { margin-bottom: 56px; }
.why {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
}
@media (max-width: 1000px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.why li {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
}
.why-icon {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 16px;
}
.why h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.why p { color: var(--text-2); }
.about-more { text-align: center; margin-top: 48px; }

/* ---------- Services (home) ---------- */
.services {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px var(--gutter) 24px;
}
.services .section-head { margin-bottom: 56px; }
.svc-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: minmax(0, 1fr); } }
.svc {
  background: var(--bg-alt);
  border-radius: var(--radius-l);
  padding: 36px 32px;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
}
.svc:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .08);
}
.svc-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--card);
  margin-bottom: 24px;
}
.svc-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--action);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svc h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.svc p { color: var(--text-2); }

/* Motion: cards rise in one after another, then each icon draws itself.
   Hover redraws the icon. Everything is static without JS or with reduced motion. */
.js [data-reveal] .svc {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
  transition-delay: calc(var(--i) * 90ms);
}
.js [data-reveal].is-in .svc { opacity: 1; transform: none; }
.js [data-reveal].is-in .svc:hover { transform: translateY(-4px); transition-delay: 0s; }

.js [data-reveal] .svc-icon svg > * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js [data-reveal].is-in .svc-icon svg > * {
  animation: svc-draw 1s cubic-bezier(.4, 0, .2, 1) forwards;
  animation-delay: calc(var(--i) * 90ms + 250ms);
}
.js [data-reveal].is-in .svc.redraw .svc-icon svg > * {
  animation: svc-redraw .8s cubic-bezier(.4, 0, .2, 1) forwards;
}
@keyframes svc-draw { to { stroke-dashoffset: 0; } }
@keyframes svc-redraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] .svc { opacity: 1; transform: none; transition: none; }
  .svc:hover, .js [data-reveal].is-in .svc:hover { transform: none; }
  .js [data-reveal] .svc-icon svg > *,
  .js [data-reveal].is-in .svc-icon svg > *,
  .js [data-reveal].is-in .svc.redraw .svc-icon svg > * { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
}

/* ---------- Department pages ---------- */
.page-dept { --check: var(--link); --dot: var(--link); --step: var(--action); --step-text: var(--link); }
.tile-dept { background: var(--bg-alt); }
.tile-dept .tile-lead { color: var(--text-2); }
.tile-dept .eyebrow { margin-bottom: 14px; }

.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps-4 { grid-template-columns: minmax(0, 1fr); } }

.dept-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--card);
  margin-bottom: 20px;
}
.dept-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--action);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Demo panels */
.panel {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-m);
  padding: 24px;
  max-width: 400px;
  width: 100%;
  justify-self: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .08);
}
.panel-sub { font-size: 14px; color: var(--text-2); }
.panel-title { font-size: 21px; font-weight: 700; margin: 4px 0 16px; }

.pipe { list-style: none; padding: 0; margin: 0; }
.pipe li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  font-weight: 500;
}
.pipe-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
  background: var(--fo-mint);
}
.pipe .live .pipe-dot { background: var(--action); box-shadow: 0 0 0 0 rgba(0, 113, 227, .45); }
.pipe-meta { margin-inline-start: auto; font-size: 14px; font-weight: 400; color: var(--text-2); }
.bar {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-alt);
  overflow: hidden;
  margin-top: 8px;
}
.bar span {
  display: block;
  height: 100%;
  width: var(--p);
  border-radius: inherit;
  background: var(--action);
}

.plan { list-style: none; padding: 0; margin: 0; }
.plan li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--hairline);
}
.plan b { width: 64px; flex: none; font-size: 14px; font-weight: 500; color: var(--text-2); }
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.chip.c1 { background: color-mix(in srgb, var(--action) 14%, var(--card)); }
.chip.c2 { background: color-mix(in srgb, var(--wc-mint) 32%, var(--card)); }
.chip.c3 { background: color-mix(in srgb, var(--fo-mint) 22%, var(--card)); }

/* Panel motion: rows arrive in order, the progress bar fills, the live dot breathes */
.js .panel[data-reveal] li { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; transition-delay: calc(var(--i) * 160ms + 150ms); }
.js .panel[data-reveal].is-in li { opacity: 1; transform: none; }
.js .panel[data-reveal] .bar span { width: 0; transition: width 1.4s cubic-bezier(.3, .7, .2, 1) .5s; }
.js .panel[data-reveal].is-in .bar span { width: var(--p); }
.panel .live .pipe-dot { animation: pipe-pulse 1.8s ease-out infinite; }
@keyframes pipe-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 113, 227, .45); }
  100% { box-shadow: 0 0 0 10px rgba(0, 113, 227, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .js .panel[data-reveal] li { opacity: 1; transform: none; transition: none; }
  .js .panel[data-reveal] .bar span { width: var(--p); transition: none; }
  .panel .live .pipe-dot { animation: none; }
}

/* Tool chips */
.chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
[dir="rtl"] .chips { justify-content: flex-end; }
.chips li {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg-alt);
  font: 500 15px/1.3 var(--font-en);
}

/* Product link cards */
.prod-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 640px) { .prod-links { grid-template-columns: minmax(0, 1fr); } }
.prod-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: var(--bg-alt);
  border-radius: var(--radius-l);
  padding: 32px;
  color: var(--text);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
}
.prod-link:hover { text-decoration: none; transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .08); }
.prod-link h3 { font: 700 24px/1.2 var(--font-en); margin-top: 8px; }
.prod-link p { color: var(--text-2); }
.prod-link .link-chev { color: var(--link); margin-top: 4px; }
.prod-link .product-logo { box-shadow: none; }
.mini-mark {
  width: 48px;
  height: 48px;
  border-radius: 22%;
  display: grid;
  place-items: center;
  background: var(--fo-mint);
  color: #04241a;
  font: 800 24px/1 var(--font-en);
}
@media (prefers-reduced-motion: reduce) { .prod-link, .prod-link:hover { transition: none; transform: none; } }

/* Home: link from each team card to its page */
.team-more { margin-top: 16px; }
.team .team-more a { color: var(--link); }

/* Contact address, shown as text so it can be copied */
.contact-email { margin-top: 20px; font: 500 19px/1.4 var(--font-en); }
.contact-email a { color: var(--text-2); }
.contact-email a:hover { color: var(--link); }

/* ---------- Forsa (marketing agency) ---------- */
.page-forsa { --check: var(--fx-accent); --dot: var(--fx-accent); --step: var(--fx-red); --step-text: var(--fx-accent); }
.tile-forsa {
  background: var(--fx-grey);
  color: #1d1d1f;           /* 13.6:1 on grey; the tile keeps the logo's grey in both themes */
  --check: #b01b25;
}
.tile-forsa .tile-lead { color: #55555a; }   /* 6.0:1 */
.tile-forsa .link-chev { color: #b01b25; }
.tile-forsa .product-ar { opacity: .75; }
.tile-forsa :focus-visible { outline-color: #b01b25; }
.btn-fx { background: var(--fx-red); color: #fff; }

.fx-logo {
  justify-self: center;
  width: 100%;
  max-width: 400px;
  padding: 24px;
}
.fx-mark-lg { display: block; width: 100%; height: auto; overflow: visible; }
.fx-mark-sm { width: 60px; height: 36px; }
.forsa-link { max-width: 560px; }

/* The one Forsa moment: pieces slide in from four directions and lock into the mark.
   Whole sequence = 0.5s (last piece starts at .2s and runs .3s).
   [data-play]: every time the page is shown; [data-reveal]: when scrolled into view. */
.js .fx-logo path {
  opacity: 0;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
}
.js .fx-logo .fx-a { transform: translate(-.7px, -.7px); transition-delay: 0s; }
.js .fx-logo .fx-b { transform: translate(-.9px, .6px); transition-delay: .07s; }
.js .fx-logo .fx-c { transform: translate(.7px, .7px); transition-delay: .14s; }
.js .fx-logo .fx-d { transform: translate(.8px, -.8px); transition-delay: .2s; }
.js .fx-logo.is-in path { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .fx-logo path { opacity: 1; transform: none; transition: none; }
}

/* ---------- Forsa results: notes, achievements, charts, case studies ---------- */
.sample-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fx-accent) 10%, transparent);
  color: var(--text);
  font-size: 14px;
}
[dir="rtl"] .sample-note { padding: 6px 8px 6px 14px; }
.sample-note > span[aria-hidden] {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--fx-accent);
  color: var(--bg);
  font: 700 12px/1 var(--font-en);
}
.sample-note[hidden] { display: none; }

/* Achievements: a KPI row of stat tiles */
.stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stats li { border-top: 2px solid var(--fx-red); padding-top: 20px; }
.stat-value {
  display: block;
  font: 600 clamp(40px, 5vw, 56px)/1.05 var(--font-en);
  letter-spacing: -.02em;
  text-align: start;
}
.stat-label { display: block; margin-top: 10px; color: var(--text-2); }
.js .stats[data-reveal] li { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i) * 110ms); }
.js .stats[data-reveal].is-in li { opacity: 1; transform: none; }

/* Report: two charts on one card */
.report {
  background: var(--bg-alt);
  border-radius: var(--radius-l);
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .report { grid-template-columns: minmax(0, 1fr); padding: 16px; } }
.chart-card {
  background: var(--card);
  border-radius: var(--radius-m);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.chart-card h3 { font-size: 19px; font-weight: 700; }
.chart-sub { font-size: 14px; color: var(--text-2); margin: 2px 0 16px; }

/* Line chart (always LTR: time runs left to right) */
.lc-box { position: relative; direction: ltr; }
.lc { display: block; width: 100%; height: auto; overflow: visible; }
.lc:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 8px; }
.lc-grid { stroke: var(--hairline); stroke-width: 1; }
.lc-tick { fill: var(--text-2); font: 400 12px var(--font-en); }
html[lang="ar"] .lc-tick { font-family: var(--font-ar); }
.lc-area { fill: var(--fx-series); opacity: .1; }
.lc-line { fill: none; stroke: var(--fx-series); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lc-dot { fill: var(--fx-series); stroke: var(--card); stroke-width: 2; }
.lc-end { fill: var(--text); font: 600 13px var(--font-en); }
.lc-cross { stroke: var(--text-2); stroke-width: 1; }
.lc-tip {
  position: absolute;
  transform: translate(14px, -50%);
  background: var(--text);
  color: var(--bg);
  border-radius: 10px;
  padding: 8px 12px;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.lc-tip.flip { transform: translate(calc(-100% - 14px), -50%); }
.lc-tip strong { display: block; font: 600 16px/1.2 var(--font-en); }
.lc-tip span { font-size: 13px; opacity: .8; }
.js .report[data-reveal] .lc-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .report[data-reveal].is-in .lc-line { animation: lc-draw 1.4s cubic-bezier(.4, 0, .2, 1) .2s forwards; }
.js .report[data-reveal] .lc-area, .js .report[data-reveal] .lc-dot:not(.lc-hot), .js .report[data-reveal] .lc-end { opacity: 0; transition: opacity .6s ease 1.2s; }
.js .report[data-reveal].is-in .lc-area { opacity: .1; }
.js .report[data-reveal].is-in .lc-dot, .js .report[data-reveal].is-in .lc-end { opacity: 1; }
@keyframes lc-draw { to { stroke-dashoffset: 0; } }

/* Horizontal bars: one hue, <=24px, 4px rounded data-end, value at the tip */
.hbars { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hbar { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 12px; }
.hbar-label { font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
.hbar-track { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hbar-fill {
  display: block;
  height: 20px;
  width: calc((100% - 52px) * var(--p));
  background: var(--fx-series);
  border-start-end-radius: 4px;
  border-end-end-radius: 4px;
  transition: width 1s cubic-bezier(.3, .7, .2, 1);
  transition-delay: calc(var(--i) * 90ms + .2s);
}
.hbar:hover .hbar-fill { filter: brightness(1.12); }
.hbar-val { font: 600 13px var(--font-en); color: var(--text); font-variant-numeric: tabular-nums; }
.js .report[data-reveal]:not(.is-in) .hbar-fill { width: 0; }

.chart-table { margin-top: 16px; font-size: 14px; }
.chart-table summary { cursor: pointer; color: var(--link); min-height: 32px; display: flex; align-items: center; }
.chart-table table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.chart-table th, .chart-table td { text-align: start; padding: 8px 4px; border-bottom: 1px solid var(--hairline); }
.chart-table th { color: var(--text-2); font-weight: 500; }
.chart-table td:last-child, .chart-table th:last-child { text-align: end; font-variant-numeric: tabular-nums; }

/* Case studies */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .cases { grid-template-columns: minmax(0, 1fr); } }
.case {
  background: var(--bg-alt);
  border-radius: var(--radius-l);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.case-tag {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--card);
  border-radius: 999px;
  padding: 4px 12px;
}
.case h3 { font-size: 21px; font-weight: 700; line-height: 1.3; }
.case > p:not(.case-tag):not(.case-result) { color: var(--text-2); }
.case-result {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.case-result b { font: 700 32px/1 var(--font-en); color: var(--fx-accent); letter-spacing: -.02em; }
.case-result span { color: var(--text-2); font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  .js .stats[data-reveal] li { opacity: 1; transform: none; transition: none; }
  .js .report[data-reveal] .lc-line { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .js .report[data-reveal] .lc-area { opacity: .1; transition: none; }
  .js .report[data-reveal] .lc-dot, .js .report[data-reveal] .lc-end { opacity: 1; transition: none; }
  .hbar-fill { transition: none; }
  .js .report[data-reveal]:not(.is-in) .hbar-fill { width: calc((100% - 52px) * var(--p)); }
}

/* Brand names that switch language (فرصة / Forsa) use the Arabic face in Arabic */
html[lang="ar"] .product-name[data-i18n],
html[lang="ar"] .prod-link h3[data-i18n] { font-family: var(--font-ar); }
